/* ==========================================================================
   11F (Brooklands) Squadron, RAF Air Cadets

   Design note: follows the look of the 2025 RAF websites (raf.mod.uk and
   recruitment.raf.mod.uk) - night-navy grounds lit by a soft blue and red
   glow, heavy uppercase headlines, small yellow tag labels, photo tiles
   with arrow links, and pale-blue panels set beside photographs.

   The squadron's own touch is the Brooklands banking: a yellow flight-path
   curve that sweeps across the home page hero.
   ========================================================================== */

:root {
  /* Colour. Taken from the RAF sites. */
  --night:      #050B16;   /* deepest ground: hero, header, footer */
  --night-2:    #0A1628;   /* raised surfaces on the night ground */
  --navy:       #002F5F;   /* RAF navy: dark bands (white text 13.6:1) */
  --navy-2:     #003B74;
  --blue:       #005499;   /* RAF blue: links and accents (7.6:1 on white) */
  --blue-glow:  #1D6EE9;   /* only ever used as light, never for text */
  --red-glow:   #C8102E;   /* roundel red, only ever used as light */
  --sky:        #CDE1FF;   /* pale blue panels; text on dark (10:1 on navy) */
  --sky-pale:   #EAF2FE;   /* light section ground */
  --yellow:     #FECB00;   /* tags and the one action we want people to take */
  --yellow-2:   #FFD83D;
  --white:      #FFFFFF;
  --ink:        #18212B;   /* body text, 16:1 on white */
  --ink-muted:  #46546A;   /* 7.4:1 on white, 6.2:1 on --sky-pale */
  --on-dark:    #C6D4E8;   /* body text on night and navy */
  --rule:       #D3DEEC;
  --rule-dark:  rgba(205, 225, 255, .18);

  /* Type. Montserrat stands in for the RAF's Gotham; Source Sans 3 is
     Adobe's open cousin of Myriad, the RAF's body face. */
  --display: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --body: "Source Sans 3", "Myriad Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --t-xs:  .75rem;
  --t-sm:  .9375rem;
  --t-0:   1.125rem;
  --t-1:   1.3rem;
  --t-2:   1.75rem;

  --wrap: 1240px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --header-h: 64px;

  color-scheme: light;
}

/* ------------------------------------------------------------------ Base */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 1.5rem);
}

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: var(--t-0);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  font-family: var(--display);
  color: var(--navy);
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.4rem, 6.4vw, 5.25rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.02em;
  line-height: .95;
}
h2 {
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1;
}
h3 {
  font-size: var(--t-1);
  font-weight: 800;
  letter-spacing: -.01em;
  line-height: 1.2;
}
h4 { font-size: var(--t-0); font-weight: 800; }

p, ul, ol, dl { margin: 0 0 1.15rem; }
p { max-width: 66ch; }
li { margin-bottom: .4rem; }

a { color: var(--blue); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--navy); }

strong { font-weight: 700; }

/* ------------------------------------------------- Focus and skip link */

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}
.on-dark :focus-visible,
.site-header :focus-visible,
.site-footer :focus-visible,
.hero :focus-visible,
.page-head :focus-visible,
.block-dark :focus-visible,
.cta-band :focus-visible,
.tile:focus-visible { outline-color: var(--yellow); }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 200;
  background: var(--yellow);
  color: var(--night);
  font-weight: 700;
  padding: .7rem 1.1rem;
  text-decoration: none;
  transition: top .15s;
}
.skip-link:focus { top: .75rem; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------- Structure */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap--narrow { max-width: 820px; }

section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
section.tight { padding-block: clamp(1.75rem, 4vw, 2.5rem); }

.block-pale { background: var(--sky-pale); }
.block-sky  { background: var(--sky); }
.ruled { border-top: 1px solid var(--rule); }
.block-pale.ruled, .block-sky.ruled { border-top: 0; }

/* Dark bands: RAF navy, lit from one corner. */
.block-dark {
  position: relative;
  background:
    radial-gradient(60rem 30rem at 100% 0%, rgba(29, 110, 233, .28), transparent 60%),
    var(--navy);
  color: var(--white);
}
.block-dark h1, .block-dark h2, .block-dark h3 { color: var(--white); }
.block-dark p, .block-dark li { color: var(--on-dark); }
.block-dark a:not(.btn) { color: var(--sky); }
.block-dark a:not(.btn):hover { color: var(--white); }
.block-dark strong { color: var(--white); }

.lead {
  font-size: clamp(var(--t-0), 2.2vw, 1.35rem);
  line-height: 1.5;
  color: var(--ink-muted);
}
.block-dark .lead { color: var(--on-dark); }

/* -------------------------------------------------------------- Tags */

/* The small yellow label the RAF sites put above headings and on photos. */
.tag {
  display: inline-block;
  margin: 0 0 1rem;
  padding: .3rem .55rem .25rem;
  background: var(--yellow);
  color: var(--night);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
}
.tag--outline {
  background: transparent;
  color: var(--yellow);
  box-shadow: inset 0 0 0 1.5px var(--yellow);
}

/* A drawn arrow, so no icon files or fonts are needed. */
.arrow {
  position: relative;
  display: inline-block;
  flex: none;
  width: 1.1rem;
  height: 2px;
  background: currentColor;
  vertical-align: middle;
  transition: transform .2s;
}
.arrow::after {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  width: .5rem;
  height: .5rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: translateY(-50%) rotate(45deg);
}

/* --------------------------------------------------------------- Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5, 11, 22, .94);
  color: var(--white);
  border-bottom: 1px solid var(--rule-dark);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(5, 11, 22, .82); backdrop-filter: blur(14px) saturate(140%); }
}

.header-inner {
  display: flex;
  align-items: center;
  gap: .75rem;
  min-height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  gap: .7rem;
  margin-right: auto;
  color: var(--white);
  text-decoration: none;
}
.brand:hover { color: var(--white); }
.brand__crest { width: 44px; height: 44px; flex: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -.01em;
  text-transform: uppercase;
}
.brand__sub {
  margin-top: .2rem;
  font-family: var(--display);
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sky);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 42px;
  padding: .35rem .8rem;
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255, 255, 255, .4);
  border-radius: 999px;
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--white); }
.nav-toggle__bars { position: relative; width: 16px; height: 2px; background: currentColor; }
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px; height: 2px;
  background: currentColor;
  transition: transform .18s;
}
.nav-toggle__bars::before { top: -5px; }
.nav-toggle__bars::after  { top: 5px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after  { transform: translateY(-5px) rotate(-45deg); }

.nav {
  position: absolute;
  inset-inline: 0;
  top: 100%;
  display: none;
  background: var(--night);
  border-top: 1px solid var(--rule-dark);
  padding: .5rem var(--gutter) 1.5rem;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.nav.is-open { display: block; }
.nav ul { list-style: none; margin: 0 0 1.25rem; padding: 0; }
.nav li { margin: 0; border-bottom: 1px solid var(--rule-dark); }
.nav a:not(.btn) {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem .1rem;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:not(.btn):hover { color: var(--yellow); }
.nav a[aria-current="page"]:not(.btn) { color: var(--yellow); }
.nav .btn { width: 100%; }

@media (min-width: 68rem) {
  :root { --header-h: 76px; }
  .nav-toggle, a.header-cta { display: none; }
  .nav {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.75rem;
    background: transparent;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .nav ul { display: flex; align-items: center; gap: 1.6rem; margin: 0; }
  .nav li { border: 0; flex: none; }
  .nav a:not(.btn) {
    position: relative;
    display: block;
    padding: .4rem 0;
    font-size: var(--t-xs);
    font-style: normal;
    font-weight: 700;
    letter-spacing: .09em;
    white-space: nowrap;
  }
  .nav a:not(.btn)::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -.1rem;
    height: 2px;
    background: var(--yellow);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .2s;
  }
  .nav a:not(.btn):hover { color: var(--white); }
  .nav a:not(.btn):hover::after,
  .nav a[aria-current="page"]:not(.btn)::after { transform: scaleX(1); }
  .nav a[aria-current="page"]:not(.btn) { color: var(--white); }
  .nav .btn { width: auto; flex: none; white-space: nowrap; }
}

/* Compact action kept visible on small screens. */
.header-cta { min-height: 42px; padding: .45rem 1rem; }
.brand__name { white-space: nowrap; }

/* Narrow phones: a round menu button with its label read out but not shown. */
@media (max-width: 30rem) {
  .header-inner { gap: .5rem; }
  .brand { gap: .5rem; min-width: 0; }
  .brand__crest { width: 38px; height: 38px; }
  .brand__name { font-size: .9rem; }
  .brand__sub { font-size: .56rem; letter-spacing: .1em; }
  .header-cta { padding: .45rem .85rem; }
  .nav-toggle { width: 42px; padding: 0; justify-content: center; }
  .nav-toggle > span:last-child {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
  }
}

/* -------------------------------------------------------------- Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 50px;
  padding: .8rem 1.5rem;
  border: 1.5px solid transparent;
  border-radius: 0;
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.2;
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn:hover .arrow { transform: translateX(4px); }
.btn--primary { background: var(--yellow); color: var(--night); }
.btn--primary:hover { background: var(--yellow-2); color: var(--night); }
.btn--dark { background: var(--navy); color: var(--white); }
.btn--dark:hover { background: var(--night); color: var(--white); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--ghost:hover { background: var(--navy); color: var(--white); }
.on-dark .btn--ghost,
.block-dark .btn--ghost,
.hero .btn--ghost,
.page-head .btn--ghost,
.cta-band .btn--ghost { border-color: rgba(255, 255, 255, .6); color: var(--white); }
.on-dark .btn--ghost:hover,
.block-dark .btn--ghost:hover,
.hero .btn--ghost:hover,
.page-head .btn--ghost:hover,
.cta-band .btn--ghost:hover { background: var(--white); border-color: var(--white); color: var(--night); }
.btn--lg { min-height: 58px; padding: 1rem 2rem; font-size: .875rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }

/* The round outline arrow button from the recruitment site. */
.circle-link {
  display: inline-flex;
  align-items: center;
  gap: .9rem;
  color: var(--navy);
  font-family: var(--display);
  font-size: .8125rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  text-decoration: none;
}
.circle-link__ring {
  display: inline-grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: background-color .2s, color .2s, border-color .2s;
}
.circle-link:hover { color: var(--navy); }
.circle-link:hover .circle-link__ring { background: var(--navy); border-color: var(--navy); color: var(--white); }
.circle-link:hover .arrow { transform: translateX(3px); }
.on-dark .circle-link, .block-dark .circle-link, .cta-band .circle-link { color: var(--white); }
.on-dark .circle-link:hover .circle-link__ring,
.block-dark .circle-link:hover .circle-link__ring,
.cta-band .circle-link:hover .circle-link__ring { background: var(--yellow); border-color: var(--yellow); color: var(--night); }

/* ------------------------------------------------- Night ground + glow */

/* The recruitment site's look: near-black navy with a blue glow rising
   from one side and a little roundel red from the other. */
.glow {
  position: relative;
  isolation: isolate;
  background: var(--night);
  color: var(--white);
  overflow: hidden;
}
.glow::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(48rem 34rem at 12% 110%, rgba(29, 110, 233, .55), transparent 62%),
    radial-gradient(40rem 26rem at 96% 108%, rgba(200, 16, 46, .38), transparent 60%),
    radial-gradient(50rem 30rem at 70% -20%, rgba(0, 84, 153, .45), transparent 60%);
  pointer-events: none;
}
.glow h1, .glow h2, .glow h3 { color: var(--white); }
.glow p, .glow li { color: var(--on-dark); }
.glow a:not(.btn):not(.circle-link):not(.tile) { color: var(--sky); }
.glow a:not(.btn):not(.circle-link):not(.tile):hover { color: var(--white); }

/* ----------------------------------------------------------------- Hero */

.hero.glow::before {
  background:
    linear-gradient(90deg, rgba(5, 11, 22, .92) 0%, rgba(5, 11, 22, .55) 50%, rgba(5, 11, 22, .2) 100%),
    radial-gradient(48rem 34rem at 12% 110%, rgba(29, 110, 233, .55), transparent 62%),
    radial-gradient(40rem 26rem at 96% 108%, rgba(200, 16, 46, .4), transparent 60%);
}
.hero {
  padding-block: 0;
  min-height: min(92vh, 56rem);
  display: flex;
  flex-direction: column;
}
/* The 1938 parade, faded into the night like a memory. */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
  opacity: .16;
  filter: grayscale(1) contrast(1.15);
  mix-blend-mode: luminosity;
}
.hero__art {
  position: absolute;
  left: -4%;
  right: -4%;
  bottom: -1px;
  z-index: -1;
  width: 108%;
  max-width: none;
  pointer-events: none;
}
.hero__inner {
  flex: 1;
  display: grid;
  gap: 2.5rem clamp(2rem, 5vw, 4.5rem);
  align-content: center;
  padding-block: clamp(3rem, 9vw, 6rem) clamp(7rem, 16vw, 11rem);
}
@media (min-width: 64rem) {
  .hero__inner { grid-template-columns: 1.15fr .85fr; align-items: center; }
}
.hero h1 {
  font-size: clamp(2.5rem, 6.4vw, 5.6rem);
  line-height: .9;
  margin-bottom: 1.5rem;
}
/* Second line of the headline in outline, as on raf.mod.uk. */
.hero h1 .outline {
  display: block;
  color: transparent;
  -webkit-text-stroke: 2px var(--white);
}
@supports not (-webkit-text-stroke: 2px white) {
  .hero h1 .outline { color: var(--white); }
}
.hero h1 .accent { color: var(--yellow); }
.hero .lead { max-width: 38ch; color: var(--on-dark); margin-bottom: 2rem; }

.hero__photo { margin: 0; position: relative; }
.hero__photo img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, .2);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7);
}
.hero__photo .tag { position: absolute; top: -.75rem; left: 1rem; margin: 0; }
.hero__photo figcaption { color: var(--on-dark); border-top-color: var(--rule-dark); }

/* --------------------------------------------- Spec strip (hero facts) */

/* Set like the aircraft specification rows on raf.mod.uk. */
.spec {
  display: grid;
  gap: 0;
  margin: 0;
  background: var(--yellow);
  color: var(--night);
}
@media (min-width: 46rem) { .spec { grid-template-columns: repeat(4, 1fr); } }
.spec > div {
  padding: 1.4rem var(--gutter) 1.5rem;
  border-bottom: 1px solid rgba(5, 11, 22, .15);
}
@media (min-width: 46rem) {
  .spec > div { border-bottom: 0; border-right: 1px solid rgba(5, 11, 22, .15); }
  .spec > div:last-child { border-right: 0; }
}
.spec dt {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.spec dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 2.6vw, 2rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
}
.spec dd span {
  display: block;
  margin-top: .45rem;
  font-family: var(--body);
  font-size: var(--t-sm);
  font-style: normal;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  line-height: 1.35;
}

/* ------------------------------------------------- Inner page openers */

.page-head {
  padding-block: clamp(3.5rem, 9vw, 7rem) clamp(3rem, 7vw, 5.5rem);
}
.page-head h1 { max-width: 17ch; margin-bottom: 1.25rem; }
.page-head .lead { color: var(--on-dark); max-width: 52ch; margin-bottom: 0; }
.page-head .btn-row { margin-top: 2rem; }
/* A thin flight-path line along the bottom edge. */
.page-head::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow) 0 18%, transparent 18%);
}

/* ------------------------------------------------------ Section heads */

.section-head { max-width: 50rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head h2 { margin-bottom: .75rem; }
.section-head > :last-child { margin-bottom: 0; }
.section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  max-width: none;
}
.section-head--split > div { max-width: 46rem; }
.section-head--split > div > :last-child { margin-bottom: 0; }

/* ---------------------------------------------------------- Photo tiles */

/* Photo cards with the label sitting on the picture, as on raf.mod.uk. */
.tiles { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
@media (min-width: 40rem) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 64rem) { .tiles--4 { grid-template-columns: repeat(4, 1fr); } }

.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 27rem;
  overflow: hidden;
  background: var(--night-2);
  color: var(--white);
  text-decoration: none;
  isolation: isolate;
}
.tile img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
/* Placeholder artwork only fills the top of the tile, so its label stays
   readable. Remove tile--placeholder when a real photo goes in. */
.tile--placeholder img { height: 44%; }
.tile::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 11, 22, 0) 30%, rgba(5, 11, 22, .92) 100%);
}
.tile__body { padding: 1.4rem 1.4rem 1.5rem; }
.tile .tag { margin-bottom: .75rem; }
.tile h3 {
  margin: 0 0 .5rem;
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
}
.tile p { margin: 0 0 1rem; color: var(--on-dark); font-size: var(--t-sm); line-height: 1.5; }
.tile__more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: .9rem;
  border-top: 1px solid rgba(255, 255, 255, .25);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tile:hover { color: var(--white); }
.tile:hover img { transform: scale(1.05); }
.tile:hover .tile__more { color: var(--yellow); }
.tile:hover .arrow { transform: translateX(4px); }

/* ------------------------------------------------ Panel split (50 / 50) */

/* A photograph edge to edge on one half, a pale-blue panel on the other,
   as on the recruitment site. */
.panel-split { padding: 0; display: grid; }
@media (min-width: 58rem) { .panel-split { grid-template-columns: 1fr 1fr; } }
.panel-split__media { position: relative; min-height: 20rem; margin: 0; }
.panel-split__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.panel-split__media figcaption {
  position: absolute;
  left: 1rem; bottom: 1rem;
  margin: 0;
  padding: .45rem .7rem;
  border: 0;
  background: rgba(5, 11, 22, .85);
  color: var(--white);
  font-size: var(--t-sm);
  max-width: calc(100% - 2rem);
}
.panel-split__panel {
  position: relative;
  overflow: hidden;
  background: var(--sky);
  padding: clamp(3rem, 7vw, 6rem) clamp(1.25rem, 6vw, 5rem);
}
.panel-split__panel h2 {
  font-style: italic;
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  line-height: .95;
  max-width: 12ch;
}
.panel-split__panel p { color: var(--ink); }
.panel-split__panel > * { position: relative; }
/* A big outlined year, sitting behind the copy. */
.panel-split__panel .panel-split__numeral {
  position: absolute;
  right: -.04em;
  top: -.12em;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(8rem, 20vw, 15rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(0, 47, 95, .14);
  pointer-events: none;
  user-select: none;
}
@supports not (-webkit-text-stroke: 2px black) { .panel-split__panel .panel-split__numeral { display: none; } }
@media (min-width: 58rem) {
  .panel-split--reverse .panel-split__media { order: 2; }
}

/* --------------------------------------------------- Parade info strip */

.facts { display: grid; gap: 1.75rem 2.5rem; margin: 0; }
@media (min-width: 46rem) { .facts { grid-template-columns: repeat(3, 1fr); } }
.facts > div { border-top: 3px solid var(--yellow); padding-top: 1.1rem; }
.facts dt {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--yellow);
  margin-bottom: .45rem;
}
.facts dd { margin: 0 0 1rem; color: var(--white); }
.facts dd:last-child { margin-bottom: 0; }
.facts dd strong { font-family: var(--display); font-weight: 800; }

/* ---------------------------------------------------- Audience cards */

.cards { display: grid; gap: clamp(.75rem, 1.5vw, 1.25rem); }
@media (min-width: 52rem) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.75rem 1.75rem;
  background: var(--white);
  border-top: 4px solid var(--navy);
  color: var(--ink);
  text-decoration: none;
  transition: border-color .2s, transform .2s;
}
.block-pale .card, .block-sky .card { background: var(--white); }
.card h3 {
  font-size: 1.5rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  margin-bottom: .75rem;
}
.card p { color: var(--ink-muted); }
.card .circle-link { margin-top: auto; }
a.card:hover { border-top-color: var(--yellow); color: var(--ink); transform: translateY(-3px); }
a.card:hover .circle-link__ring { background: var(--navy); border-color: var(--navy); color: var(--white); }
a.card:hover .arrow { transform: translateX(3px); }

/* ------------------------------------------------------------ CTA band */

.cta-band { text-align: left; }
.cta-band h2 {
  font-size: clamp(2.4rem, 7vw, 5.5rem);
  font-style: italic;
  line-height: .9;
  max-width: 13ch;
  margin-bottom: 1.25rem;
}
.cta-band .lead { color: var(--on-dark); max-width: 48ch; margin-bottom: 2rem; }

/* --------------------------------------------------- Generic content */

.layout {
  display: grid;
  gap: 1.75rem clamp(1.5rem, 4vw, 3.5rem);
}
@media (min-width: 60rem) {
  .layout { grid-template-columns: minmax(16rem, 28%) 1fr; }
}

.grid { display: grid; gap: clamp(1rem, 2vw, 1.5rem); }
@media (min-width: 40rem) { .grid--2, .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 62rem) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Items are flat panels with a navy bar, the card the RAF sites use for
   short peers. */
.item {
  position: relative;
  padding: 1.6rem 1.5rem 1.5rem;
  background: var(--sky-pale);
  border-top: 4px solid var(--navy);
}
.block-pale .item { background: var(--white); }
.item h3 { margin-bottom: .45rem; }
.item p { color: var(--ink-muted); margin-bottom: .75rem; font-size: 1.05rem; }
.item img {
  width: calc(100% + 3rem);
  max-width: none;
  margin: -1.6rem -1.5rem 1.4rem;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}
.item > :last-child { margin-bottom: 0; }
.block-dark .item {
  background: rgba(255, 255, 255, .06);
  border-top-color: var(--yellow);
}
.block-dark .item p { color: var(--on-dark); }

.row__more {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue);
  text-decoration: none;
}
.row__more::after {
  content: "";
  width: .45rem;
  height: .45rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s;
}
.row__more:hover::after { transform: translateX(3px) rotate(45deg); }

/* Steps are a real sequence, so they are numbered - big, in outline. */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: clamp(.75rem, 1.5vw, 1.25rem);
}
@media (min-width: 52rem) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps > li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: 1.75rem 1.6rem 1.6rem;
  background: var(--white);
  border-top: 4px solid var(--yellow);
}
.steps > li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 1rem;
  font-family: var(--display);
  font-size: 3.5rem;
  font-weight: 900;
  font-style: italic;
  line-height: .9;
  color: transparent;
  -webkit-text-stroke: 2px var(--navy);
}
@supports not (-webkit-text-stroke: 2px black) { .steps > li::before { color: var(--navy); } }
.steps h3 { margin: 0 0 .5rem; font-size: 1.4rem; font-weight: 900; font-style: italic; text-transform: uppercase; }
.steps p { margin: 0; color: var(--ink-muted); }
.steps p + p { margin-top: .6rem; }
.block-dark .steps > li { background: rgba(255, 255, 255, .06); }
.block-dark .steps > li::before { -webkit-text-stroke-color: var(--yellow); }
@supports not (-webkit-text-stroke: 2px black) { .block-dark .steps > li::before { color: var(--yellow); } }
.block-dark .steps p { color: var(--on-dark); }

.ticks { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.ticks li {
  position: relative;
  padding: .7rem 0 .7rem 2rem;
  border-bottom: 1px solid var(--rule);
  margin: 0;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: .2rem; top: 1.05rem;
  width: .45rem;
  height: .8rem;
  border-right: 2.5px solid var(--blue);
  border-bottom: 2.5px solid var(--blue);
  transform: rotate(45deg);
}
.block-dark .ticks li, .glow .ticks li { border-color: var(--rule-dark); }
.block-dark .ticks li::before, .glow .ticks li::before { border-color: var(--yellow); }

/* --------------------------------------------------------- Media + text */

.split { display: grid; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
@media (min-width: 58rem) {
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split__media { order: 2; }
}
.split__media { position: relative; }
.split__media img { width: 100%; }
/* A yellow corner mark behind each photograph. */
.split__media figure:not(.crest-figure)::before {
  content: "";
  position: absolute;
  top: -.75rem;
  left: -.75rem;
  width: 5rem;
  height: 5rem;
  border-top: 4px solid var(--yellow);
  border-left: 4px solid var(--yellow);
  pointer-events: none;
}
.split__media figure { position: relative; }

figure { margin: 0; }
figcaption {
  font-size: var(--t-sm);
  color: var(--ink-muted);
  margin-top: .6rem;
  padding-top: .6rem;
  border-top: 1px solid var(--rule);
}
.block-dark figcaption { color: var(--on-dark); border-color: var(--rule-dark); }

/* The crest is artwork, not a photograph: no frame around it. */
figure.crest-figure { text-align: center; }
figure.crest-figure img { max-width: 340px; margin-inline: auto; filter: drop-shadow(0 20px 40px rgba(0, 47, 95, .25)); }
figure.crest-figure figcaption { border-top: 0; padding-top: 0; margin-top: 1.25rem; }

.quote { margin: 0; }
.quote p {
  font-family: var(--display);
  font-size: clamp(1.7rem, 4.4vw, 3rem);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.015em;
  line-height: 1.02;
  color: var(--white);
  margin: 0;
  max-width: 22ch;
}
.quote p::before {
  content: "";
  display: block;
  width: 4rem;
  height: 4px;
  margin-bottom: 1.5rem;
  background: var(--yellow);
}

/* ------------------------------------------------------------- Timeline */

/* A chronology: a vertical flight line with a node at each date. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  top: .5rem; bottom: 0;
  left: .4rem;
  width: 2px;
  background: linear-gradient(var(--navy), rgba(0, 47, 95, .15));
}
.timeline > li {
  position: relative;
  display: grid;
  gap: .25rem 3rem;
  padding: 0 0 3rem 2.5rem;
  margin: 0;
}
.timeline > li::before {
  content: "";
  position: absolute;
  left: 0; top: .35rem;
  width: 1rem;
  height: 1rem;
  background: var(--yellow);
  border: 3px solid var(--navy);
  border-radius: 50%;
}
@media (min-width: 52rem) {
  .timeline::before { left: calc(13rem + 1.5rem + .4rem); }
  .timeline > li {
    grid-template-columns: 13rem minmax(0, 1fr);
    padding-left: 0;
    column-gap: 4rem;
  }
  .timeline > li::before { left: calc(13rem + 1.5rem); }
  .tl__date { grid-row: 1 / span 6; text-align: right; }
}
.tl__date {
  font-family: var(--display);
  font-size: var(--t-2);
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  letter-spacing: -.01em;
  line-height: 1;
  color: var(--blue);
  margin: 0 0 .6rem;
}
.tl__title { margin-bottom: .5rem; font-size: 1.5rem; font-weight: 900; text-transform: uppercase; }
.timeline p { color: var(--ink-muted); }
.timeline figure { margin-top: 1.25rem; max-width: 36rem; }
.timeline figure img { width: 100%; }
.tl__note {
  margin: .25rem 0 1rem;
  padding: 1rem 1.25rem;
  background: var(--sky);
  border-left: 4px solid var(--yellow);
}
.tl__note p { color: var(--ink); margin: 0; font-weight: 600; }

/* ------------------------------------------------------------------ FAQ */

.faq { max-width: 60rem; border-top: 2px solid var(--navy); }
.faq details { border-bottom: 1px solid var(--rule); }
.block-pale .faq details { border-bottom-color: #C8D6EA; }
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.35rem 0;
  font-family: var(--display);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  font-weight: 800;
  color: var(--navy);
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1.5px solid var(--navy);
  border-radius: 50%;
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1;
  transition: background-color .15s, color .15s, transform .2s;
}
.faq summary:hover::after { background: var(--navy); color: var(--white); }
.faq details[open] summary::after { content: "\2013"; background: var(--yellow); border-color: var(--yellow); color: var(--night); }
.faq .faq__body { padding: 0 0 1.5rem; max-width: 62ch; }
.faq .faq__body > :last-child { margin-bottom: 0; }

/* -------------------------------------------------------------- Notices */

.note {
  padding: 1.4rem 1.6rem;
  background: var(--sky);
  border-left: 4px solid var(--navy);
}
.note > :last-child { margin-bottom: 0; }
.note:not(:last-child) { margin-bottom: 2rem; }
.grid + p, .tiles + p { margin-top: 1.75rem; }
.note h3 { margin-bottom: .35rem; }

.todo {
  display: inline-block;
  padding: .05rem .45rem;
  background: #FFF4C2;
  box-shadow: inset 0 -2px 0 var(--yellow);
  color: #5C4500;
  font-size: .9em;
  font-weight: 700;
}
.block-dark .todo, .glow .todo, .site-footer .todo, .spec .todo {
  background: rgba(254, 203, 0, .16);
  color: #FFE27A;
  box-shadow: inset 0 0 0 1px rgba(254, 203, 0, .5);
}
.spec .todo { background: rgba(5, 11, 22, .1); color: var(--night); box-shadow: inset 0 0 0 1px rgba(5, 11, 22, .35); }

/* ---------------------------------------------------------------- Table */

.table-scroll { overflow-x: auto; margin-bottom: 1.75rem; }
table { border-collapse: collapse; width: 100%; min-width: 32rem; }
th, td { text-align: left; padding: 1rem 1.25rem 1rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
td:first-child { font-weight: 700; color: var(--navy); }
thead th {
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--navy);
  border-bottom: 3px solid var(--navy);
}

/* ----------------------------------------------------------------- Form */

.form { max-width: 40rem; }
.field { margin-bottom: 1.25rem; }
.field label {
  display: block;
  font-family: var(--display);
  font-size: .875rem;
  font-weight: 800;
  color: var(--navy);
  margin-bottom: .4rem;
}
.field .hint { display: block; font-family: var(--body); font-size: var(--t-sm); color: var(--ink-muted); font-weight: 400; }
.hint { font-size: var(--t-sm); color: var(--ink-muted); }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: .7rem .85rem;
  font: inherit;
  color: var(--ink);
  background: var(--white);
  border: 1.5px solid #9DB0C8;
  border-bottom-width: 3px;
  border-bottom-color: var(--navy);
  border-radius: 0;
}
textarea { min-height: 9rem; resize: vertical; }
input:hover, select:hover, textarea:hover { border-color: var(--blue); }
input:focus-visible, select:focus-visible, textarea:focus-visible { border-color: var(--blue); }

/* ------------------------------------------------------------------ Map */

.map { position: relative; margin-bottom: 1rem; border-top: 4px solid var(--yellow); }
.map iframe { width: 100%; height: 380px; border: 0; }
@media (min-width: 48rem) { .map iframe { height: 460px; } }
.map__shield {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  padding: 0 0 1.25rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}
.map__shield span {
  padding: .65rem 1.1rem;
  background: var(--night);
  color: var(--white);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

address { font-style: normal; }

/* --------------------------------------------------------------- Footer */

.site-footer {
  padding-block: clamp(3rem, 7vw, 5rem) 1.75rem;
  font-size: var(--t-sm);
}
.site-footer h2 {
  color: var(--yellow);
  font-family: var(--display);
  font-size: var(--t-xs);
  font-weight: 800;
  font-style: normal;
  letter-spacing: .12em;
  margin-bottom: 1rem;
}
.site-footer a { color: var(--sky); text-decoration: none; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.footer-grid { display: grid; gap: 2.5rem; }
@media (min-width: 48rem) { .footer-grid { grid-template-columns: 1.5fr 1fr 1.3fr; } }
.site-footer ul { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer address { margin-bottom: 1rem; line-height: 1.75; color: var(--on-dark); }
.site-footer address .brand__sub { display: block; margin-top: .35rem; color: var(--yellow); }
.site-footer p { max-width: 42ch; }
.footer-brand {
  display: flex;
  align-items: center;
  gap: .9rem;
  margin-bottom: 1.25rem;
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 900;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  color: var(--white);
}
.footer-brand img { width: 64px; height: 64px; }
.footer-brand span { display: block; }
.footer-bottom {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule-dark);
  font-size: .875rem;
}
.footer-bottom p { max-width: 80ch; margin-bottom: .5rem; color: #9FB2CC; }

/* Tags keep their dark lettering wherever they sit. */
.glow .tag, .block-dark .tag, .tile .tag, .panel-split__panel .tag, .hero__photo .tag { color: var(--night); max-width: none; }

/* ---------------------------------------------------------- Motion */

/* Content rises in gently as it scrolls into view. Switched off for
   anyone using "reduce motion", and nothing is hidden without JS. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease-out, transform .6s ease-out; }
.js .reveal.is-visible { opacity: 1; transform: none; }

/* The hero headline slides in once, on load. */
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { stroke-dashoffset: 1600; } to { stroke-dashoffset: 0; } }
.hero__text > * { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero__text > :nth-child(2) { animation-delay: .1s; }
.hero__text > :nth-child(3) { animation-delay: .2s; }
.hero__text > :nth-child(4) { animation-delay: .3s; }
.hero__photo { animation: rise .9s .25s cubic-bezier(.2, .7, .2, 1) both; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------------------------------------------------------------- Print */

@media print {
  .site-header, .nav, .skip-link, .hero__art, .hero__bg, .map { display: none; }
  .glow, .block-dark { background: none; color: #000; }
  .glow h1, .glow h2, .block-dark h2 { color: #000; }
  body { font-size: 11pt; color: #000; }
}
