/* ============================================================
   Airside Maintenance Group — amg.aero
   The hero footage stays bright: only a bottom-up scrim sits under
   the copy. Everything below the hero is paper-light, including the
   footer; hierarchy comes from whitespace and hairlines.
   ============================================================ */

/* ---------- fonts (self-hosted, SIL Open Font License — see assets/fonts) ---------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-wght-normal.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: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('/assets/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('/assets/fonts/space-grotesk-variable.ttf') format('truetype');
}

:root {
  --ink:        #16161E;
  --ink-70:     #43434F;
  --ink-60:     #5A5A66;
  --ink-40:     #6E6E7B;
  --paper:      #FFFFFF;
  --paper-alt:  #F4F4F7;
  --line:       #E4E4EC;
  --line-soft:  #EDEDF2;
  --brand:      #4A1BCF;
  --brand-deep: #3A14A6;
  --brand-tint: rgba(74,27,207,.08);
  --aog:        #C50089;

  --display: 'Space Grotesk', system-ui, sans-serif;
  --text:    'Inter', system-ui, sans-serif;

  --container: 1320px;   /* 1200px of content + two 60px gutters */
  --gutter: 60px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  /* header logo and AOG link: large at the top of the page, compact once
     the page has scrolled (see .is-stuck) */
  --brand-h: 80px;
  --brand-h-stuck: 40px;
  --aog-fs: 17px;
  --aog-fs-stuck: 14.5px;

  /* ---- texture ----------------------------------------------------
     Grain is baked into background-image rather than a fixed overlay so
     it scrolls with its section. Its strength lives inside the SVG (rect
     opacity), since a background image cannot be faded with opacity.  */
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.62' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23g)' opacity='0.34'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 18px;
  line-height: 1.7;
}
img, svg { display: block; max-width: 100%; }
/* component display rules must never override the hidden attribute */
[hidden] { display: none !important; }
img { height: auto; }
/* content photos are wrapped in <picture> for AVIF/WebP; let the <img>
   size itself against the frame as if the wrapper weren't there */
picture { display: contents; }

/* page scroll is locked while the mobile menu or the PDF viewer is open */
body.is-menu, body.is-modal { overflow: hidden; }

/* keyboard focus: one consistent ring across links, buttons and fields */
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

.skipLink {
  position: fixed; top: 12px; left: 12px; z-index: 300;
  padding: 10px 18px; border-radius: 999px;
  background: var(--brand); color: #fff;
  font-family: var(--display); font-size: 15px; font-weight: 600; text-decoration: none;
  transform: translateY(-160%); transition: transform .2s ease;
}
.skipLink:focus-visible { transform: none; outline-color: var(--ink); }

/* visually hidden, still announced by screen readers */
.srOnly {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- flatter still: H1/body = 2.9x ---------- */
h1, h2, h3 { font-family: var(--display); margin: 0; }
h1 { font-size: 52px; font-weight: 500; letter-spacing: -1.1px; line-height: 1.14; }
h2 { font-size: 34px; font-weight: 500; letter-spacing: -0.5px; line-height: 1.24; }
h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.1px; line-height: 1.4; }
p  { margin: 0; }

/* small uppercase label; also used on <h2> where it is the section's only heading */
.eyebrow {
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.6px;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--brand);
}
.blockHead .eyebrow, .sectionHead .eyebrow { margin-top: 0; }

.sectionHead { text-align: center; }
.sectionHead h2 { margin-top: 16px; }
.sectionHead .lead {
  margin: 22px auto 0;
  max-width: 62ch;
  font-size: 18px;
  color: var(--ink-60);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 54px;
  padding: 0 30px;
  border-radius: 999px;                 /* pill, to rhyme with the nav */
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  background: none;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease, opacity .14s ease;
  white-space: nowrap;
}
.btn:disabled { opacity: .6; cursor: progress; }
.btn--primary { background: var(--brand); color: #fff; }
.btn--primary:hover { background: var(--brand-deep); }
.btn--ghostLight { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghostLight:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn--quiet { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--quiet:hover { border-color: var(--ink); }

/* ============================================================
   FLOATING NAV — three fixed pieces, no full-width bar
   ============================================================ */
.brand  { position: fixed; top: 30px; left: var(--gutter); z-index: 60; line-height: 0; }
/* a white chip fades in behind the logo with the pill, so the dark logo
   never lands on the dark hero photo mid-transition */
.brand::before {
  content: ''; position: absolute; inset: -9px -14px; border-radius: 999px;
  background: #fff; opacity: 0; transition: opacity .28s ease; z-index: -1;
}
.brand img {
  height: var(--brand-h); width: auto;
  transition: height .32s var(--ease), opacity .28s ease .06s;
}
.brand__dark { position: absolute; top: 0; left: 0; opacity: 0; }

/* home page only: sits under the large logo and fades out as the header
   compacts, so it never overlaps the small logo */
.brandTag {
  position: fixed;
  top: calc(30px + var(--brand-h) + 6px); left: var(--gutter);
  z-index: 60;
  margin: 0;
  font-family: var(--display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  transition: opacity .28s ease;
}
.is-stuck .brandTag { opacity: 0; pointer-events: none; }

.navPill {
  position: fixed;
  top: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  display: flex;
  width: max-content;     /* 7 items: don't let fixed-position shrink-to-fit wrap the labels */
  gap: 2px;
  padding: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px) saturate(1.2);
  transition: background .25s ease, border-color .25s ease;
}
.navPill a {
  padding: 9px 15px;
  border-radius: 999px;
  font-family: var(--display);
  font-size: 13.5px;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  transition: background .18s ease, color .18s ease;
}
.navPill a:hover { background: rgba(255,255,255,.18); }
/* on the dark photo the brand-coloured focus ring would disappear */
.navPill a:focus-visible, .aogLink:focus-visible, .brand:focus-visible { outline-color: #fff; }
.is-stuck .navPill a:focus-visible, .is-stuck .aogLink:focus-visible, .is-stuck .brand:focus-visible { outline-color: var(--brand); }

.aogLink {
  position: fixed;
  top: 30px; right: var(--gutter);
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--display);
  font-size: var(--aog-fs);
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  letter-spacing: .2px;
  transition: font-size .32s var(--ease), color .28s ease .06s;
}
.aogLink::before {
  content: ''; position: absolute; inset: -10px -18px; border-radius: 999px;
  background: #fff; opacity: 0; transition: opacity .28s ease; z-index: -1;
}
.aogLink__dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--aog);
  box-shadow: 0 0 0 0 rgba(197,0,137,.8);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(197,0,137,.75); }
  70%  { box-shadow: 0 0 0 9px rgba(197,0,137,0); }
  100% { box-shadow: 0 0 0 0 rgba(197,0,137,0); }
}

/* scrolled: the pill lands on white, the marks flip to ink */
.is-stuck .navPill { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 2px 18px rgba(22,22,30,.10); }
.is-stuck .navPill a { color: var(--ink); }
.is-stuck .navPill a:hover { background: var(--paper-alt); }
.is-stuck .brand::before, .is-stuck .aogLink::before { opacity: 1; }
.is-stuck .brand__light { opacity: 0; }
.is-stuck .brand__dark  { opacity: 1; }
.is-stuck .brand img { height: var(--brand-h-stuck); }
.is-stuck .aogLink { color: var(--ink); font-size: var(--aog-fs-stuck); }

/* ============================================================
   HERO — bottom-anchored copy, footage left bright
   ============================================================ */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  background: #0F1420 center / cover no-repeat;
}
@supports not (height: 100svh) { .hero { height: 100vh; } }

/* only the bottom is darkened; the top of the frame stays as shot */
.hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg,
      rgba(12,16,26,.32) 0%,     /* just enough for the nav pill */
      rgba(12,16,26,.04) 16%,    /* sky as shot */
      rgba(12,16,26,.18) 40%,
      rgba(12,16,26,.68) 66%,    /* copy band starts here */
      rgba(12,16,26,.93) 100%);
}

.hero__copy {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 64px;
  text-align: center;
}
/* max-width keeps the headline to two lines, inside the dark band */
.hero h1 { color: #fff; margin: 16px auto 0; max-width: 900px; }
.hero__sub {
  margin: 22px auto 0;
  max-width: 60ch;
  color: rgba(255,255,255,.94);
  font-size: 18px;
  line-height: 1.65;
}
.hero__actions { display: flex; justify-content: center; gap: 14px; margin-top: 36px; }

.hero__scroll {
  position: absolute;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  z-index: 2;
  width: 1px; height: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,.7));
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 128px 0; }

/* ---- textured band ----
   Grain on tinted bands only: on flat white it reads as dirt,
   on a tint as material. */
.section--textured { position: relative; }
.section--textured > * { position: relative; z-index: 1; }
.section--textured::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: var(--grain);
  background-size: 160px 160px;
}

.section--tight { padding-top: 0; }
.section--alt { background-color: var(--paper-alt); }

/* about: one wide statement, then a hairline stat row */
.statement {
  margin: 44px auto 0;
  max-width: 25ch;
  text-align: center;
  font-family: var(--display);
  font-size: 26px;
  font-weight: 400;
  line-height: 1.42;
  letter-spacing: -0.3px;
  color: var(--ink);
}
.statement em { font-style: normal; color: var(--brand); }

.support {
  margin: 30px auto 0;
  max-width: 64ch;
  text-align: center;
  color: var(--ink-60);
}

.statRow {
  margin-top: 84px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  border-top: 1px solid var(--line);
  padding-top: 34px;
}
.statRow__num {
  font-family: var(--display);
  font-size: 42px;
  font-weight: 500;
  letter-spacing: -1.2px;
  line-height: 1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.statRow__num span { color: var(--brand); }
.statRow__label {
  margin-top: 12px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink-60);
}

/* approvals: a quiet inline row, no badges */
.approvalRow {
  margin-top: 72px;
  padding: 26px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 34px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 500;
}
.approvalRow__key { color: var(--ink-40); font-weight: 600; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; }
.approvalRow__item { display: inline-flex; align-items: center; gap: 9px; }
.approvalRow__item svg { flex: none; }
.link {
  margin-left: auto;
  font-family: var(--display);
  font-size: 15px;
  font-weight: 600;
  color: var(--brand);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.link:hover { color: var(--brand-deep); }

/* ---------- partners ---------- */
.marquee {
  margin-top: 60px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: slide 50s linear infinite;
}
@keyframes slide { to { transform: translateX(-50%); } }
.marquee__slot { flex: none; width: 168px; height: 46px; display: grid; place-items: center; }
.marquee__slot--wide { width: 210px; }
.marquee__slot img {
  max-width: 100%; max-height: 40px;
  width: auto; height: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .55;
  transition: filter .25s ease, opacity .25s ease;
}
.marquee__slot:hover img { filter: none; opacity: 1; }

/* ---------- locations band ---------- */
.locations { background-color: var(--paper-alt); }
.map {
  margin-top: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #E9ECF1;
}
.contact__map { margin-top: 56px; }
/* the map image keeps its own aspect ratio, so the pin percentages
   below stay true at any container width */
.map__canvas { position: relative; }
.map__canvas > img { display: block; width: 100%; height: auto; }

/* 38% / 52% — where build-map.py placed the geocoded point */
.map__pin   { position: absolute; left: 38%; top: 52%; transform: translate(-50%, -100%); }
.map__label {
  position: absolute; left: 38%; top: 52%;
  transform: translate(26px, -100%);
  background: #fff;
  border-radius: 6px;
  padding: 12px 16px 13px;
  box-shadow: 0 6px 22px rgba(16,20,32,.16);
  white-space: nowrap;
  text-decoration: none;
  transition: box-shadow .15s ease;
}
/* the plaque links to Google Maps directions, like "Get directions" below */
a.map__label:hover { box-shadow: 0 8px 26px rgba(16,20,32,.24); }
.map__label strong {
  display: block;
  font-family: var(--display);
  font-size: 15px; font-weight: 600; line-height: 1.3;
  color: var(--ink);
}
.map__label span { display: block; margin-top: 2px; font-size: 13px; color: var(--ink-60); }

.map__attrib {
  position: absolute; right: 9px; bottom: 9px;
  margin: 0;
  padding: 3px 8px;
  border-radius: 3px;
  background: rgba(255,255,255,.82);
  font-size: 10.5px;
  line-height: 1.4;
  color: #5A5A66;
}
.map__bar {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  background: #fff;
  font-size: 15px;
  color: var(--ink-60);
}
.map__bar svg { flex: none; width: 15px; height: 15px; }
.map__bar strong { color: var(--ink); font-weight: 600; }
/* links only, no station summary: the first link sits left, the second right */
.map__bar--simple .link:first-child { margin-left: 0; }
.map__bar--simple .link + .link { margin-left: auto; }

/* ---------- contact: details left, form right ---------- */
.contact__grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  margin-top: 56px;
  /* stretch, not start: both columns must end on the same line */
  align-items: stretch;
}
.contact__grid--flush { margin-top: 0; }
.contact__title { margin-bottom: 4px; font-size: 20px; font-weight: 600; letter-spacing: -0.1px; line-height: 1.4; }
.contact__aside dl { margin: 26px 0 0; display: grid; gap: 20px; }
.contact__aside dt {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--ink-40); margin-bottom: 5px;
}
.contact__aside dd { margin: 0; font-size: 16.5px; line-height: 1.6; color: var(--ink-70); }
.contact__aside a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.contact__aside a:hover { color: var(--brand); border-color: var(--brand); }

.aogStrip {
  margin-top: 30px;
  padding: 22px 24px;
  border-radius: 8px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--aog);
  background: #fff;
}
.aogStrip__label {
  font-family: var(--display);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--aog);
}
.aogStrip__num {
  font-family: var(--display);
  font-size: 25px; font-weight: 600; letter-spacing: -.4px;
  margin-top: 5px; color: var(--ink);
}
.aogStrip p { margin-top: 6px; font-size: 14.5px; line-height: 1.5; color: var(--ink-60); }

.form {
  display: grid; gap: 20px; grid-template-rows: auto auto 1fr auto;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 36px 40px;
}
@media (max-width: 860px) { .form { padding: 26px 22px; } }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 9px; }
.field label {
  font-family: var(--display);
  font-size: 12px; font-weight: 600;
  letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--ink-40);
}
/* underline fields, not boxes — the other visible split from v1 */
.field input, .field textarea {
  height: 46px;
  padding: 0 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-family: var(--text);
  font-size: 16.5px;
  color: var(--ink);
  transition: border-color .16s ease;
}
.field textarea { height: 104px; padding-top: 10px; resize: none; line-height: 1.6; }
/* must follow the base .field textarea rule: same specificity, so
   source order decides which height wins */
.field--grow { grid-template-rows: auto 1fr; }
.field--grow textarea { height: 100%; min-height: 104px; }
.field input::placeholder, .field textarea::placeholder { color: #8A8A98; }
/* the underline itself is the focus indicator for fields */
.field input:focus-visible, .field textarea:focus-visible { outline: none; border-bottom-color: var(--brand); border-bottom-width: 2px; }
.form__submit { margin-top: 12px; display: flex; align-items: center; gap: 26px; flex-wrap: wrap; }
.form__note { font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }
.form__note a, .form__privacy a { color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.form__privacy { font-size: 13.5px; line-height: 1.55; color: var(--ink-40); }
.form__status { font-size: 15px; line-height: 1.5; font-weight: 500; }
.form__status:empty { display: none; }
.form__status.is-ok { color: #1F7A4D; }
.form__status.is-error { color: #B42318; }
/* spam trap: off-screen for people, still filled in by naive bots */
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ============================================================
   FOOTER — light, not a dark slab
   ============================================================ */
.footer {
  position: relative;
  background-color: var(--paper-alt);
  background-image: var(--grain);   /* the second, and last, textured surface */
  background-size: 160px 160px;
  color: var(--ink);
  padding: 78px 0 30px;
  border-top: 1px solid var(--line);
}
.footer > * { position: relative; z-index: 1; }
.footer__top { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; }
.footer__logo { height: 50px; width: auto; }
.footer__tag {
  margin-top: 16px;
  font-family: var(--display); font-size: 13px; font-weight: 600;
  letter-spacing: .8px; color: var(--ink-60);
}
.footer__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.footer__heading {
  margin: 0 0 18px;
  font-family: var(--display);
  font-size: 11.5px; font-weight: 600; line-height: 1.7;
  letter-spacing: 1.3px; text-transform: uppercase;
  color: var(--ink-40);
}
.footer__col a, .footer__col p {
  display: block;
  font-size: 15px; line-height: 1.55;
  color: var(--ink-70);
  text-decoration: none;
  margin-bottom: 11px;
}
.footer__col a:hover { color: var(--brand); }
.footer__bottom {
  /* 2x2 grid, not a single flex row: five items on one line wrapped
     into ragged fragments once the credit was added */
  margin-top: 62px;
  padding-top: 26px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px 32px;
  align-items: center;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-40);
}
.footer__bottom a { color: var(--ink-60); text-decoration: none; }
.footer__bottom a:hover { color: var(--brand); }
.footer__legal { display: flex; gap: 22px; justify-self: end; }
/* a button (it opens the consent banner) that reads like the links next to it */
.footer__cookies {
  padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; color: var(--ink-60);
}
.footer__cookies:hover { color: var(--brand); }

/* ---------- reveal (noscript.css keeps these visible without JavaScript) ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  :root { --gutter: 40px; }
  /* the burger takes over at the same breakpoint, so there is no width
     at which neither navigation is on screen */
  .navPill { display: none; }
  .aogLink { display: none; }
  .contact__grid { grid-template-columns: 1fr; gap: 56px; }
  .statRow { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 860px) {
  :root { --gutter: 24px; }
  body { font-size: 16.5px; }
  h1 { font-size: 36px; letter-spacing: -.7px; }
  h2 { font-size: 28px; }
  .statement { font-size: 21px; max-width: none; }
  .section { padding: 76px 0; }
  .hero__copy { padding-bottom: 56px; }
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: center; }
  .statRow { grid-template-columns: 1fr; gap: 26px; }
  .approvalRow { gap: 18px; }
  .link { margin-left: 0; }
  .form__row { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr; gap: 40px; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
  .footer__bottom { grid-template-columns: 1fr; gap: 12px; }
  .footer__legal { justify-self: start; flex-wrap: wrap; }
  .footer__credit { justify-self: start; white-space: normal; }
}

/* credit line — quieter than the legal links, still clickable */
.footer__credit { justify-self: end; white-space: nowrap; color: var(--ink-40); }
.footer__credit a { color: var(--ink-60); text-decoration: none; border-bottom: 1px solid var(--line); }
.footer__credit a:hover { color: var(--brand); border-bottom-color: var(--brand); }

/* ============================================================
   SUB-PAGES
   Same tokens and floating nav as the home page, plus a photo
   page banner and the content blocks each page needs.
   ============================================================ */
.navPill a[aria-current="page"] { background: rgba(255,255,255,.22); }
.is-stuck .navPill a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }

/* ---- page banner: full-bleed, nav floats over it (same as home) ---- */
.pageHero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: flex-end;
  padding: 148px 0 56px;   /* top padding clears the floating nav */
  overflow: hidden;
  background: #0F1420 center / cover no-repeat;
}
/* scrim: dark from the left and bottom where the copy sits, photo stays bright
   top-right. Same idea as the home hero, measured for white text. */
.pageHero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(12,16,26,.62) 0%, rgba(12,16,26,.26) 52%, rgba(12,16,26,0) 100%),
    linear-gradient(0deg,  rgba(12,16,26,.66) 0%, rgba(12,16,26,.04) 46%, rgba(12,16,26,.30) 100%);
}
/* second, local scrim: an ellipse anchored at the bottom-left, exactly where
   the copy sits. Keeps the rest of the frame bright while still passing AA on
   photos that have light patches behind the text. */
.pageHero::after {
  content: ''; position: absolute; left: 0; bottom: 0; z-index: 0;
  width: min(1150px, 88%); height: 74%;
  pointer-events: none;
  background: radial-gradient(120% 100% at 8% 100%,
    rgba(10,13,22,.80) 0%, rgba(10,13,22,.62) 38%, rgba(10,13,22,.28) 66%, rgba(10,13,22,0) 100%);
}
.pageHero__inner { position: relative; z-index: 1; max-width: 820px; }
.pageHero h1 { margin-top: 0; font-size: 48px; font-weight: 500; letter-spacing: -1px; line-height: 1.08; color: #fff; }

/* ---- generic content ---- */
.section--page { padding: 92px 0; }
/* for long runs of back-to-back sections (Services) */
.section--compact { padding: 56px 0; }
.blockHead { max-width: 62ch; margin-bottom: 42px; }
/* room for a one-line 34px heading across the full content width */
.blockHead--wide { max-width: 74ch; }
.blockHead--afterMap { margin-top: 64px; }
.blockHead--afterBanner { margin-top: 80px; }
/* editorial two-column head: title left, standfirst right */
.blockHead--split {
  max-width: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 20px 64px;
  align-items: start;
}
.blockHead--split .eyebrow { grid-column: 1; }
.blockHead--split h2 { grid-column: 1; margin-top: 14px; max-width: 18ch; }
.blockHead--split .lead { grid-column: 2; grid-row: 1 / span 2; margin-top: 6px; align-self: center; }
@media (max-width: 1080px) {
  .blockHead--split { grid-template-columns: 1fr; gap: 16px; }
  .blockHead--split h2 { max-width: none; }
  .blockHead--split .lead { grid-column: 1; grid-row: auto; align-self: start; }
}
.blockHead h2 { margin-top: 14px; }
.blockHead .lead { margin-top: 16px; color: var(--ink-60); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* ---- certificate cards ---- */
.certCard {
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 34px 34px 30px; display: flex; flex-direction: column;
}
.certCard__top { display: flex; align-items: flex-start; gap: 16px; }
.certCard__badge {
  flex: none; width: 48px; height: 48px; border-radius: 10px;
  background: var(--brand-tint); display: grid; place-items: center;
}
.certCard h3 { font-size: 22px; }
.certCard__sub { color: var(--ink-60); font-size: 15px; margin-top: 4px; }
.certCard__meta { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 22px; display: grid; gap: 15px; }
.certRow { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; }
.certRow dt {
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: .9px; text-transform: uppercase; color: var(--ink-40); margin: 0;
}
.certRow dd { margin: 0; color: var(--ink-70); font-size: 15px; text-align: right; }
/* the auto margin under the details absorbs the free space, so buttons sit
   on the card's bottom edge and line up across a row however much text
   each card carries; the button's own margin keeps a gap in the tallest */
.certCard__meta { margin-bottom: auto; }
.certCard .btn { margin-top: 26px; align-self: flex-start; }

/* ---- world map + numbered pins ---- */
.worldMap { position: relative; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #dfe3ea; }
.worldMap__img { display: block; width: 100%; height: auto; }
.worldPin { position: absolute; transform: translate(-50%, -50%); width: 0; height: 0; }
/* station positions on map-world.png, as computed by build-worldmap.py
   (assets/map-world-pins.json) */
.worldPin--1 { left: 56.66%; top: 21.01%; }
.worldPin--2 { left: 52.37%; top: 30.05%; }
.worldPin__dot {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--brand); color: #fff; display: grid; place-items: center;
  font-family: var(--display); font-weight: 600; font-size: 14px;
  box-shadow: 0 3px 12px rgba(16,20,32,.35); z-index: 2;
}
.worldPin__ring {
  position: absolute; transform: translate(-50%, -50%);
  width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--brand);
  animation: ripple 2.6s infinite; z-index: 1;
}
@keyframes ripple { 0% { transform: translate(-50%,-50%) scale(.9); opacity: .5; } 100% { transform: translate(-50%,-50%) scale(2.4); opacity: 0; } }
.worldMap__attrib {
  position: absolute; right: 9px; bottom: 9px; margin: 0;
  background: rgba(255,255,255,.82); padding: 3px 8px; border-radius: 3px;
  font-size: 10.5px; color: #5A5A66;
}

/* ---- station list ---- */
.stationCard {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 24px 28px;
}
.stationCard__n {
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-family: var(--display); font-weight: 600;
}
.stationCard__name { font-family: var(--display); font-size: 19px; font-weight: 600; line-height: 1.7; letter-spacing: 0; }
.stationCard__addr { color: var(--ink-60); font-size: 14.5px; margin-top: 3px; line-height: 1.5; }
.roleTag { font-family: var(--display); font-size: 12px; font-weight: 600; padding: 7px 14px; border-radius: 999px; white-space: nowrap; }
.roleTag--home { background: rgba(74,27,207,.09); color: var(--brand); }
.roleTag--line { background: rgba(197,0,137,.09); color: var(--aog); }
.roleTag--planned { background: transparent; color: var(--ink-40); }
.stationCard--soon { border-style: dashed; background: transparent; color: var(--ink-40); }
.stationCard--soon .stationCard__n { background: transparent; border: 1.5px dashed var(--ink-40); color: var(--ink-40); }

/* ---- AOG banner, info cards ---- */
.aogBanner {
  border-radius: 14px; background: var(--aog); color: #fff;
  padding: 52px 56px; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center;
}
.aogBanner__label { font-family: var(--display); font-size: 12px; font-weight: 600; letter-spacing: 1.4px; text-transform: uppercase; opacity: .85; }
.aogBanner__num { font-family: var(--display); font-size: 46px; font-weight: 600; letter-spacing: -1px; margin-top: 8px; }
.aogBanner p { margin-top: 12px; opacity: .92; max-width: 60ch; line-height: 1.6; white-space: nowrap; }
.aogBanner__actions { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--onAog { background: #fff; color: var(--aog); }
.btn--onAog:hover { background: rgba(255,255,255,.9); }
.btn--ghostOnAog { border-color: rgba(255,255,255,.5); color: #fff; }
.btn--ghostOnAog:hover { background: rgba(255,255,255,.14); border-color: #fff; }

.infoCard { border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 28px; }
.infoCard__icon { color: var(--brand); width: 28px; height: 28px; }
.infoCard h3 { margin-top: 16px; font-size: 18px; }
.infoCard p { margin-top: 8px; color: var(--ink-60); font-size: 14.5px; line-height: 1.55; }

/* ---- portal CTA band ---- */
.portalCTA {
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  padding: 40px 44px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.portalCTA h3 { font-size: 24px; }
.portalCTA p { margin-top: 8px; color: var(--ink-60); max-width: 52ch; }
/* heading and button only — a slimmer band */
.portalCTA--slim { padding: 28px 36px; }
.portalCTA--slim h3 { font-size: 21px; }
@media (max-width: 860px) { .portalCTA--slim { padding: 24px 24px; } }

/* ---- sub-page responsive ---- */
@media (max-width: 1080px) {
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .aogBanner { grid-template-columns: 1fr; }
  .aogBanner p { white-space: normal; }
  .portalCTA { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .pageHero h1 { font-size: 34px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .certRow { flex-direction: column; gap: 3px; }
  .certRow dd { text-align: left; }
  .stationCard { grid-template-columns: auto 1fr; }
  .stationCard .roleTag { grid-column: 2; justify-self: start; margin-top: 6px; }
  .aogBanner { padding: 36px 28px; }
  /* Riga and Zurich sit ~9% apart; full-size pins collide once the map is
     scaled to phone width */
  .worldPin__dot  { width: 22px; height: 22px; font-size: 11px; }
  .worldPin__ring { width: 22px; height: 22px; }
}

/* ---- services hub: photo + minimal text tiles (Maintenance, 24/7 AOG) ---- */
.tileGrid { margin-top: 44px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.tileCard {
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff;
  transition: border-color .18s ease, transform .18s var(--ease);
}
.tileCard:hover { border-color: var(--brand); transform: translateY(-2px); }
.tileCard__img { aspect-ratio: 16 / 9; overflow: hidden; background: #E9ECF1; }
.tileCard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.tileCard:hover .tileCard__img img { transform: scale(1.04); }
.tileCard__body { padding: 24px 26px 26px; }
.tileCard__body p { margin-top: 8px; color: var(--ink-60); font-size: 15px; line-height: 1.6; }
.tileCard__more { display: inline-block; margin-top: 16px; font-family: var(--display); font-size: 14px; font-weight: 600; color: var(--brand); }

/* ---- NDT method cards (image + name + typical applications) ---- */
.methodCard { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.methodCard__img { aspect-ratio: 4 / 3; overflow: hidden; background: #E9ECF1; }
.methodCard__img img { width: 100%; height: 100%; object-fit: cover; }
.methodGrid { margin-top: 44px; }
.methodCard__body { padding: 24px 24px 26px; }
.methodCard__abbr { color: var(--ink-40); font-weight: 500; }
.methodCard__body p { margin-top: 8px; color: var(--ink-60); font-size: 14.5px; line-height: 1.6; }
.methodCard__apps { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.methodCard__appsLabel {
  font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-40);
}
.methodCard__apps ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 7px; }
.methodCard__apps li { padding-left: 16px; position: relative; font-size: 14px; line-height: 1.5; color: var(--ink-70); }
.methodCard__apps li::before { content: '—'; position: absolute; left: 0; color: var(--brand); }
@media (max-width: 860px) {
  .tileGrid { grid-template-columns: 1fr; }
}

/* ---- exact rating table (verbatim from the Part-145 approval) ---- */
.ratingTable { margin-top: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; padding: 28px 30px 24px; }
.ratingTable__group {
  font-size: 13px; font-weight: 600; letter-spacing: 1.1px; text-transform: uppercase;
  color: var(--brand); padding-bottom: 14px; border-bottom: 2px solid var(--brand);
}
.ratingTable__group--second { margin-top: 46px; }
/* the NDT row is its own table; its colgroup mirrors the aircraft table's
   Base/Line columns, so the method list lands directly under them */
.ndtTable tbody th { font-weight: 500; color: var(--ink); vertical-align: top; }
.ndtTable col.ratingCol { width: 92px; }
.ndtTable td.methods { text-align: left; }
.ndtTable td.methods span { display: block; color: var(--ink-70); line-height: 1.9; }
.ratingTable table { width: 100%; border-collapse: collapse; margin-top: 18px; font-size: 15px; table-layout: fixed; }
.ratingTable thead th {
  text-align: left; font-family: var(--display); font-size: 11.5px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-40);
  padding: 0 12px 10px 0; border-bottom: 1px solid var(--line);
}
/* row headers (aircraft type, NDT) read as plain body cells */
.ratingTable tbody th, .ratingTable td {
  text-align: left; font-weight: 400;
  padding: 13px 12px 13px 0; border-bottom: 1px solid var(--line-soft); color: var(--ink-70);
}
.ratingTable th:not(:first-child), .ratingTable td:not(:first-child) { text-align: center; width: 92px; }
.ratingTable tr:last-child > * { border-bottom: 0; }
.ratingTable .yes { color: var(--brand); font-weight: 600; }
.ratingTable .no  { color: var(--ink-40); }

/* ---- note card (academy, etc.) ---- */
.noteCard {
  margin-top: 40px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 28px 32px; display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center;
}
.noteCard h3 { font-size: 19px; }
.noteCard p { margin-top: 8px; color: var(--ink-60); font-size: 15px; line-height: 1.55; max-width: 60ch; }

/* ---- text + image block (Services) ---- */
/* stretch, not start: the image column always matches the text height */
.splitMedia { display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: stretch; }
/* image on the left; markup order is swapped to match (see split_media() in build-pages.py) */
.splitMedia--rev { grid-template-columns: 5fr 7fr; }
.splitMedia h2 { margin-top: 14px; max-width: 20ch; }
.splitMedia .lead { margin-top: 16px; color: var(--ink-60); }
.splitMedia__body { margin-top: 20px; display: grid; gap: 14px; color: var(--ink-60); font-size: 16px; line-height: 1.65; }
.splitMedia__points { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.splitMedia__points li {
  font-family: var(--display); font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 999px; background: var(--brand-tint); color: var(--brand);
}
.splitMedia .btn { margin-top: 28px; }
.splitMedia__img { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); min-height: 520px; }
.splitMedia__img img { display: block; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1080px) {
  .splitMedia { grid-template-columns: 1fr; gap: 36px; }
  .splitMedia__img { order: -1; min-height: 280px; }
  .noteCard { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .ratingTable { padding: 22px 18px; }
  .ratingTable table { font-size: 14px; }
  .ratingTable th:not(:first-child), .ratingTable td:not(:first-child) { width: 62px; }
  .ndtTable col.ratingCol { width: 62px; }
}


/* ============================================================
   PHOTOGRAPHY — AMG's own images from the Riga base, built by
   optimize-photos.py (AVIF / WebP / progressive JPEG). Each rule
   declares a plain JPEG first; browsers without image-set() type()
   support drop the second declaration and keep the JPEG.
   ============================================================ */
.hero {
  background-image: url('/assets/photos/home-engine-2560.jpg');
  background-image: image-set(url('/assets/photos/home-engine-2560.avif') type('image/avif'), url('/assets/photos/home-engine-2560.webp') type('image/webp'), url('/assets/photos/home-engine-2560.jpg') type('image/jpeg'));
}
.pageHero--approvals, .pageHero--services {
  background-image: url('/assets/photos/approvals-base-2000.jpg');
  background-image: image-set(url('/assets/photos/approvals-base-2000.avif') type('image/avif'), url('/assets/photos/approvals-base-2000.webp') type('image/webp'), url('/assets/photos/approvals-base-2000.jpg') type('image/jpeg'));
}
.pageHero--locations {
  background-image: url('/assets/photos/locations-hangar-2000.jpg');
  background-image: image-set(url('/assets/photos/locations-hangar-2000.avif') type('image/avif'), url('/assets/photos/locations-hangar-2000.webp') type('image/webp'), url('/assets/photos/locations-hangar-2000.jpg') type('image/jpeg'));
}
.pageHero--aog {
  background-image: url('/assets/photos/aog-night-2000.jpg');
  background-image: image-set(url('/assets/photos/aog-night-2000.avif') type('image/avif'), url('/assets/photos/aog-night-2000.webp') type('image/webp'), url('/assets/photos/aog-night-2000.jpg') type('image/jpeg'));
}
.pageHero--training {
  background-image: url('/assets/photos/training-tech-2000.jpg');
  background-image: image-set(url('/assets/photos/training-tech-2000.avif') type('image/avif'), url('/assets/photos/training-tech-2000.webp') type('image/webp'), url('/assets/photos/training-tech-2000.jpg') type('image/jpeg'));
}
.pageHero--contacts {
  background-image: url('/assets/photos/contacts-flight-2000.jpg');
  background-image: image-set(url('/assets/photos/contacts-flight-2000.avif') type('image/avif'), url('/assets/photos/contacts-flight-2000.webp') type('image/webp'), url('/assets/photos/contacts-flight-2000.jpg') type('image/jpeg'));
}
.pageHero--about {
  background-image: url('/assets/photos/about-cockpit-2000.jpg');
  background-image: image-set(url('/assets/photos/about-cockpit-2000.avif') type('image/avif'), url('/assets/photos/about-cockpit-2000.webp') type('image/webp'), url('/assets/photos/about-cockpit-2000.jpg') type('image/jpeg'));
}

/* phones and tablets pull the smaller rendition — same crop, about half the bytes */
@media (max-width: 900px) {
  .hero {
    background-image: url('/assets/photos/home-engine-1600.jpg');
    background-image: image-set(url('/assets/photos/home-engine-1600.avif') type('image/avif'), url('/assets/photos/home-engine-1600.webp') type('image/webp'), url('/assets/photos/home-engine-1600.jpg') type('image/jpeg'));
  }
  .pageHero--approvals, .pageHero--services {
    background-image: url('/assets/photos/approvals-base-1200.jpg');
    background-image: image-set(url('/assets/photos/approvals-base-1200.avif') type('image/avif'), url('/assets/photos/approvals-base-1200.webp') type('image/webp'), url('/assets/photos/approvals-base-1200.jpg') type('image/jpeg'));
  }
  .pageHero--locations {
    background-image: url('/assets/photos/locations-hangar-1200.jpg');
    background-image: image-set(url('/assets/photos/locations-hangar-1200.avif') type('image/avif'), url('/assets/photos/locations-hangar-1200.webp') type('image/webp'), url('/assets/photos/locations-hangar-1200.jpg') type('image/jpeg'));
  }
  .pageHero--aog {
    background-image: url('/assets/photos/aog-night-1200.jpg');
    background-image: image-set(url('/assets/photos/aog-night-1200.avif') type('image/avif'), url('/assets/photos/aog-night-1200.webp') type('image/webp'), url('/assets/photos/aog-night-1200.jpg') type('image/jpeg'));
  }
  .pageHero--training {
    background-image: url('/assets/photos/training-tech-1200.jpg');
    background-image: image-set(url('/assets/photos/training-tech-1200.avif') type('image/avif'), url('/assets/photos/training-tech-1200.webp') type('image/webp'), url('/assets/photos/training-tech-1200.jpg') type('image/jpeg'));
  }
  .pageHero--contacts {
    background-image: url('/assets/photos/contacts-flight-1200.jpg');
    background-image: image-set(url('/assets/photos/contacts-flight-1200.avif') type('image/avif'), url('/assets/photos/contacts-flight-1200.webp') type('image/webp'), url('/assets/photos/contacts-flight-1200.jpg') type('image/jpeg'));
  }
  .pageHero--about {
    background-image: url('/assets/photos/about-cockpit-1200.jpg');
    background-image: image-set(url('/assets/photos/about-cockpit-1200.avif') type('image/avif'), url('/assets/photos/about-cockpit-1200.webp') type('image/webp'), url('/assets/photos/about-cockpit-1200.jpg') type('image/jpeg'));
  }
}

/* ============================================================
   TIMELINE — vertical rail; each milestone reveals on scroll
   ============================================================ */
.timeline { position: relative; margin-top: 52px; }
.timeline__track { position: relative; margin: 0; padding-left: 132px; list-style: none; }
/* the rail itself, drawn between the first and last dot */
.timeline__track::before {
  content: ''; position: absolute; left: 112px; top: 10px; bottom: 10px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--brand) 82%, var(--line));
}

.tlItem { position: relative; padding: 0 0 42px 34px; }
.tlItem:last-child { padding-bottom: 0; }
/* year sits in its own column to the left of the rail */
.tlItem__year {
  position: absolute; left: -132px; top: -4px; width: 96px; text-align: right;
  font-family: var(--display); font-size: 26px; font-weight: 600;
  letter-spacing: -.6px; line-height: 1.1; color: var(--brand);
}
/* month sits under the year; planned items read as future, not fact */
.tlItem__month {
  display: block; font-size: 12px; font-weight: 600; letter-spacing: .8px;
  text-transform: uppercase; color: var(--ink-40); margin-top: 2px;
}
.tlItem__dot {
  position: absolute; left: -26px; top: 3px;
  width: 15px; height: 15px; border-radius: 50%;
  background: #fff; border: 3px solid var(--brand); z-index: 1;
}
.tlItem--planned .tlItem__dot { border-style: dashed; }
.tlItem--planned .tlItem__year { color: var(--ink-40); }
.tlItem__title { font-family: var(--display); font-size: 18px; font-weight: 600; line-height: 1.35; }
.tlItem__tag {
  display: inline-block; margin-left: 8px; vertical-align: 2px;
  font-size: 10.5px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: var(--brand-tint); color: var(--brand);
}
.tlItem__text { margin-top: 6px; font-size: 15.5px; line-height: 1.6; color: var(--ink-60); max-width: 62ch; }

/* reveal: each milestone rises as it enters the viewport */
.tlItem { opacity: 0; transform: translateY(18px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
.tlItem.is-in { opacity: 1; transform: none; }

@media (max-width: 760px) {
  .timeline__track { padding-left: 30px; }
  .timeline__track::before { left: 7px; }
  .tlItem { padding-left: 4px; padding-bottom: 34px; }
  .tlItem__year {
    position: static; width: auto; text-align: left;
    font-size: 22px; margin-bottom: 6px;
  }
  .tlItem__dot { left: -30px; top: 6px; }
}

/* ---- news / LinkedIn cards ---- */
.newsGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
.newsCard {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px; background: #fff;
  text-decoration: none; color: inherit;
  transition: border-color .18s ease, transform .18s var(--ease);
}
.newsCard:hover { border-color: var(--brand); transform: translateY(-2px); }
/* LinkedIn's share-image proportion, so post graphics with text aren't cropped */
.newsCard__img { aspect-ratio: 1200 / 627; overflow: hidden; background: #E9ECF1; }
.newsCard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.newsCard:hover .newsCard__img img { transform: scale(1.04); }
.newsCard__body { flex: 1; display: flex; flex-direction: column; padding: 22px 28px 24px; }
.newsCard__date {
  font-family: var(--display); font-size: 12px; font-weight: 600;
  letter-spacing: 1px; text-transform: uppercase; color: var(--ink-40);
}
.newsCard h3 { margin-top: 12px; font-size: 18px; }
.newsCard p { margin-top: 8px; font-size: 14.5px; line-height: 1.55; color: var(--ink-60); }
.newsCard__more { margin-top: auto; padding-top: 18px; color: var(--brand); font-family: var(--display); font-size: 14px; font-weight: 600; }

.followBar {
  margin-top: 24px; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 24px 28px; display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
}
.followBar__icon { width: 40px; height: 40px; border-radius: 9px; background: #0A66C2; display: grid; place-items: center; }
.followBar__icon svg { width: 20px; height: 20px; }
.followBar h3 { font-size: 18px; }
.followBar p { margin-top: 4px; font-size: 14.5px; color: var(--ink-60); }
@media (max-width: 860px) {
  .newsGrid { grid-template-columns: 1fr; }
  .followBar { grid-template-columns: auto 1fr; }
  .followBar .btn { grid-column: 2; justify-self: start; }
}

/* ============================================================
   MOBILE MENU — below 1080px the nav pill has no room, so the
   links move into a full-screen drawer behind the burger
   ============================================================ */
.burger {
  display: none;                      /* desktop: the pill handles it */
  position: fixed; top: 26px; right: var(--gutter); z-index: 90;
  width: 46px; height: 46px; padding: 0;
  border-radius: 999px; background: rgba(255,255,255,.13);
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(16px) saturate(1.2);
  cursor: pointer;
  transition: background .25s ease, border-color .25s ease;
}
.burger span {
  display: block; width: 18px; height: 1.8px; margin: 4px auto;
  background: #fff; border-radius: 2px;
  transition: transform .28s var(--ease), opacity .2s ease, background .25s ease;
}
.is-stuck .burger { background: rgba(255,255,255,.94); border-color: var(--line); box-shadow: 0 2px 18px rgba(22,22,30,.10); }
.is-stuck .burger span { background: var(--ink); }

/* open state: bars become a cross, chip goes solid white */
.is-menu .burger { background: #fff; border-color: var(--line); }
.is-menu .burger span { background: var(--ink); }
.is-menu .burger span:nth-child(1) { transform: translateY(5.8px) rotate(45deg); }
.is-menu .burger span:nth-child(2) { opacity: 0; }
.is-menu .burger span:nth-child(3) { transform: translateY(-5.8px) rotate(-45deg); }

.drawer {
  position: fixed; inset: 0; z-index: 80;
  background: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: 96px var(--gutter) 40px;
  opacity: 0; visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease;
}
.is-menu .drawer { opacity: 1; visibility: visible; }

.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav a {
  font-family: var(--display);
  font-size: 27px; font-weight: 500; letter-spacing: -.5px;
  color: var(--ink); text-decoration: none;
  padding: 13px 0; border-bottom: 1px solid var(--line-soft);
  /* each link slides up slightly, staggered by its position */
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  transition-delay: 80ms;
}
.drawer__nav a:nth-child(2) { transition-delay: 125ms; }
.drawer__nav a:nth-child(3) { transition-delay: 170ms; }
.drawer__nav a:nth-child(4) { transition-delay: 215ms; }
.drawer__nav a:nth-child(5) { transition-delay: 260ms; }
.drawer__nav a:nth-child(6) { transition-delay: 305ms; }
.drawer__nav a:nth-child(7) { transition-delay: 350ms; }
.is-menu .drawer__nav a { opacity: 1; transform: none; }
.drawer__nav a[aria-current="page"] { color: var(--brand); }

.drawer__foot {
  margin-top: 36px; display: grid; gap: 14px;
  opacity: 0; transform: translateY(14px);
  transition: opacity .4s var(--ease) .34s, transform .4s var(--ease) .34s;
}
.is-menu .drawer__foot { opacity: 1; transform: none; }
.drawer__aog {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; border-radius: 999px; background: var(--aog); color: #fff;
  font-family: var(--display); font-size: 16px; font-weight: 600; text-decoration: none;
}
.drawer__mail { font-size: 16px; color: var(--ink-60); text-decoration: none; text-align: center; }
.drawer__mail:hover { color: var(--brand); }

@media (max-width: 1080px) {
  .burger { display: block; }
  .brand { z-index: 90; }              /* logo stays above the drawer */
  .is-menu .brand::before { opacity: 1; }
  .is-menu .brand__light { opacity: 0; }
  .is-menu .brand__dark  { opacity: 1; }
  /* no room for the large logo next to the burger */
  .brand img { height: var(--brand-h-stuck); }
  .brandTag { display: none; }
}
@media (min-width: 1081px) { .drawer { display: none; } }

/* ---- legal copy (Privacy Policy) ---- */
.legalCopy { max-width: 70ch; display: grid; gap: 18px; color: var(--ink-70); font-size: 16px; line-height: 1.7; }
.legalCopy a { color: var(--brand); }
.legalCopy h3 { margin-top: 14px; font-size: 18px; }
.legalCopy p, .legalCopy ol { margin: 0; }
.legalCopy ol { padding-left: 22px; display: grid; gap: 10px; }
.legalCopy li { padding-left: 4px; }

/* ============================================================
   PDF PREVIEW — on desktop, certificate links open in this on-page
   viewer (see main.js); elsewhere they open the PDF in a new tab
   ============================================================ */
.pdfModal {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center;
  padding: 40px 24px;
  background: rgba(12,16,26,.72);
  opacity: 0; visibility: hidden;
  /* hide only after the fade-out; show at once on open, so the close
     button can take focus in the same frame */
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.pdfModal.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
.pdfModal__panel {
  position: relative; width: min(880px, 100%); height: min(86vh, 1100px);
  background: #fff; border-radius: 12px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,.35);
  display: flex; flex-direction: column;
  transform: translateY(10px); transition: transform .22s ease;
}
.pdfModal.is-open .pdfModal__panel { transform: none; }
.pdfModal__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px 18px; border-bottom: 1px solid var(--line);
}
.pdfModal__title { font-family: var(--display); font-size: 14.5px; font-weight: 600; color: var(--ink); margin-right: auto; }
.pdfModal__open {
  font-family: var(--display); font-size: 13.5px; font-weight: 600;
  color: var(--brand); text-decoration: none; white-space: nowrap;
}
.pdfModal__open:hover { color: var(--brand-deep); }
.pdfModal__close {
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: #fff;
  color: var(--ink-60); font-size: 18px; line-height: 1; cursor: pointer; flex: none;
  transition: background .15s ease, color .15s ease;
}
.pdfModal__close:hover { background: var(--paper-alt); color: var(--ink); }
.pdfModal__frame { border: 0; width: 100%; height: 100%; flex: 1; background: var(--paper-alt); }
@media (max-width: 640px) {
  .pdfModal { padding: 0; }
  .pdfModal__panel { width: 100%; height: 100%; border-radius: 0; }
}

/* ---- analytics consent banner ----
   Non-modal: the page stays usable while it is open. Both choices carry
   the same visual weight, as EU consent guidance requires. */
.consent {
  position: fixed; left: 24px; bottom: 24px; z-index: 150;
  width: min(460px, calc(100% - 48px));
  padding: 22px 24px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff;
  box-shadow: 0 16px 48px rgba(16,20,32,.18);
}
.consent__text { font-size: 14.5px; line-height: 1.55; color: var(--ink-70); }
.consent__text a { color: var(--brand); }
.consent__actions { margin-top: 16px; display: flex; gap: 10px; }
.consent__actions .btn { flex: 1; justify-content: center; height: 46px; padding: 0 20px; }
@media (max-width: 640px) {
  .consent { left: 12px; bottom: 12px; width: calc(100% - 24px); padding: 18px; }
}

/* ---- short utility pages (404, message sent) ---- */
.notice { max-width: 62ch; }
.notice p { color: var(--ink-60); }
.notice__actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ============================================================
   REDUCED MOTION — last in the file so it outranks every
   animation and transition declared above
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal, .tlItem { opacity: 1; transform: none; transition: none; }
  .marquee__track, .aogLink__dot, .worldPin__ring { animation: none; }
  .drawer, .drawer__nav a, .drawer__foot, .pdfModal, .pdfModal__panel,
  .brand img, .aogLink, .tileCard, .tileCard__img img, .newsCard, .newsCard__img img { transition: none; }
}
