/* ==========================================================================
   Standard Aviation · site foundation
   Base, layout, header, navigation, pills, media, reveal.
   ========================================================================== */

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 110px; } /* keeps focused fields clear of the fixed header */
body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--olive-500); outline-offset: 3px; border-radius: 2px; }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--charcoal); color: var(--porcelain);
  padding: 10px 16px; border-radius: var(--r-pill); font-size: var(--fs-small);
}
.skip-link:focus { top: 16px; }

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

/* ---------- Type primitives ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-size: var(--fs-eyebrow); font-weight: 500;
  letter-spacing: var(--track-eyebrow); text-transform: uppercase;
  line-height: 1.4;
}
.eyebrow--olive   { color: var(--olive-500); }
.eyebrow--inverse { color: rgba(250, 248, 243, .78); }
.eyebrow__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }

.display-2 {
  font-family: var(--font-display);
  font-size: var(--fs-display-2); font-weight: 400;
  letter-spacing: var(--track-display); line-height: .98;
  text-wrap: balance;
}

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 15px; font-weight: 500;
  border-bottom: 1px solid var(--line-strong); padding-bottom: 3px;
  transition: border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease);
}
.text-link svg { transition: transform var(--t-fast) var(--ease); }
.text-link:hover { border-color: var(--charcoal); }
.text-link:hover svg { transform: translate(2px, -2px); }
.text-link--lg { font-size: 17px; }

/* ---------- Pills (CTAs) ---------- */
.pill {
  --h: 46px;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: var(--h); padding: 0 22px; border-radius: var(--r-pill);
  font-family: var(--font-display); font-size: 15px; font-weight: 500; letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.pill--sm { --h: 40px; padding: 0 18px; font-size: 14px; }
.pill--lg { --h: 60px; padding: 0 8px 0 28px; font-size: 18px; gap: 22px; }
.pill:has(.pill__icon) { padding-right: 6px; }
.pill--lg:has(.pill__icon) { padding-right: 7px; }

.pill__icon {
  display: grid; place-items: center;
  width: calc(var(--h) - 12px); height: calc(var(--h) - 12px); border-radius: 50%;
  background: var(--olive-600); color: var(--porcelain);
  transition: transform var(--t-med) var(--ease-out);
}
.pill--lg .pill__icon { width: 46px; height: 46px; }
.pill--lg .pill__icon svg { width: 20px; height: 20px; }
.pill:hover .pill__icon { transform: rotate(-12deg) scale(1.04); }

.pill--olive   { background: var(--olive-900); color: var(--porcelain); }
.pill--olive:hover { background: #3A3B2B; }
.pill--light   { background: var(--porcelain); color: var(--charcoal); }
.pill--light:hover { background: var(--paper); }
.pill--outline { border: 1px solid var(--line-strong); color: var(--charcoal); }
.pill--outline:hover { border-color: var(--charcoal); }
.pill--glass {
  background: rgba(250, 248, 243, .10); color: var(--porcelain);
  border: 1px solid var(--line-inverse);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.pill--glass:hover { background: rgba(250, 248, 243, .2); }
.dot-live { width: 7px; height: 7px; border-radius: 50%; background: #B9C77E; box-shadow: 0 0 0 3px rgba(185, 199, 126, .22); }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 12px; }
.logo__mark { width: 26px; height: 26px; }
.logo__type {
  font-family: var(--font-display); font-size: 20px; font-weight: 500;
  letter-spacing: -0.03em; line-height: 1;
}
.logo__thin { font-weight: 300; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; z-index: 50;
  top: var(--frame); left: var(--frame); right: var(--frame);
  color: var(--porcelain);
  transition: top var(--t-med) var(--ease), left var(--t-med) var(--ease), right var(--t-med) var(--ease),
              background var(--t-med) var(--ease), color var(--t-med) var(--ease), border-color var(--t-med) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header__inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: var(--max); margin-inline: auto;
  height: 88px; padding-inline: calc(var(--gutter) - var(--frame));
  transition: height var(--t-med) var(--ease);
}
.site-header__actions { justify-self: end; display: flex; align-items: center; gap: 12px; }

.primary-nav ul { display: flex; gap: clamp(20px, 2.3vw, 44px); }
.primary-nav a {
  position: relative; font-family: var(--font-display); font-size: 14.5px; font-weight: 400;
  letter-spacing: -0.005em; padding: 6px 0; opacity: .92;
}
.primary-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right;
  transition: transform var(--t-med) var(--ease-out);
}
.primary-nav a:hover::after, .primary-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.primary-nav a:hover { opacity: 1; }

.menu-toggle { display: none; align-items: center; gap: 12px; height: 40px; padding: 0 4px 0 16px;
  border-radius: var(--r-pill); border: 1px solid var(--line-inverse); font-family: var(--font-display); font-size: 14px; }
.menu-toggle__bars { display: grid; gap: 5px; width: 30px; height: 30px; place-content: center; }
.menu-toggle__bars span { display: block; width: 14px; height: 1.5px; background: currentColor; }

/* Scrolled state */
.site-header.is-scrolled {
  top: 0; left: 0; right: 0;
  background: rgba(250, 248, 243, .88);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  color: var(--charcoal); border-bottom-color: var(--line);
}
.site-header.is-scrolled .site-header__inner { height: 68px; padding-inline: var(--gutter); }
.site-header.is-scrolled .site-header__cta { background: var(--olive-900); color: var(--porcelain); }
.site-header.is-scrolled .menu-toggle { border-color: var(--line-strong); }

@media (max-width: 1180px) {
  .primary-nav { display: none; }
  .site-header__inner { grid-template-columns: 1fr auto; }
  .menu-toggle { display: inline-flex; }
}
@media (max-width: 560px) {
  .site-header__cta { display: none; }
  .site-header__inner { height: 72px; }
  .logo__type { font-size: 18px; }
}

/* ---------- Mobile menu ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 60;
  background: var(--porcelain); color: var(--charcoal);
  display: flex; flex-direction: column;
  padding: 0 var(--gutter) max(24px, env(safe-area-inset-bottom));
  overflow-y: auto;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu.is-open { animation: menu-in .5s var(--ease-out) both; }
@keyframes menu-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.mobile-menu__top { display: flex; justify-content: space-between; align-items: center; height: 72px; }
.menu-close { height: 40px; padding: 0 18px; border: 1px solid var(--line-strong); border-radius: var(--r-pill); font-family: var(--font-display); font-size: 14px; }
.mobile-menu__list { margin-top: 24px; border-top: 1px solid var(--line); }
.mobile-menu__list a {
  display: flex; align-items: baseline; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--line);
  font-family: var(--font-display); font-size: clamp(30px, 8vw, 44px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1;
}
.mobile-menu__list .idx { font-size: 12px; letter-spacing: .08em; color: var(--olive-500); min-width: 22px; }
.mobile-menu__foot { margin-top: auto; padding-top: 32px; display: grid; gap: 12px; }
.mobile-menu__foot .pill { width: 100%; justify-content: space-between; }
.mobile-menu__foot .pill--outline { justify-content: center; }
.mobile-menu__meta { font-size: var(--fs-small); color: var(--stone-600); text-align: center; margin-top: 4px; }
body.menu-open { overflow: hidden; }

/* ---------- Media + placeholders ---------- */
.media { position: relative; display: block; overflow: hidden; aspect-ratio: var(--ratio, 16/9); border-radius: var(--r-frame); }
.media picture { display: block; width: 100%; height: 100%; }
.media img { width: 100%; height: 100%; object-fit: cover; object-position: var(--focal, 50% 50%); }

.media--placeholder {
  background:
    radial-gradient(90% 70% at 72% 18%, rgba(255,255,255,.35), transparent 60%),
    linear-gradient(160deg, var(--ph-a), var(--ph-b));
}
.media--placeholder::before { /* quiet architectural grid so placeholders read as intentional */
  content: ""; position: absolute; inset: 0; opacity: .5;
  background:
    linear-gradient(90deg, transparent calc(50% - .5px), var(--ph-line) calc(50% - .5px), var(--ph-line) calc(50% + .5px), transparent calc(50% + .5px)),
    linear-gradient(0deg, transparent calc(62% - .5px), var(--ph-line) calc(62% - .5px), var(--ph-line) calc(62% + .5px), transparent calc(62% + .5px));
}
.tone-stone    { --ph-a: #DDD7CB; --ph-b: #B4AC9B; --ph-line: rgba(34,35,30,.10); --ph-ink: rgba(34,35,30,.62); }
.tone-ivory    { --ph-a: #F1ECE2; --ph-b: #D6CDBB; --ph-line: rgba(34,35,30,.08); --ph-ink: rgba(34,35,30,.58); }
.tone-olive    { --ph-a: #8C8E68; --ph-b: #4D4F35; --ph-line: rgba(250,248,243,.12); --ph-ink: rgba(250,248,243,.78); }
.tone-charcoal { --ph-a: #4A4A41; --ph-b: #1F201B; --ph-line: rgba(250,248,243,.08); --ph-ink: rgba(250,248,243,.72); }
.ph-label {
  position: absolute; top: 16px; right: 16px; max-width: 58%;
  display: flex; align-items: flex-start; justify-content: flex-end; gap: 8px; text-align: right; line-height: 1.5;
  font-family: var(--font-display); font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ph-ink);
}
.ph-dot { width: 5px; height: 5px; margin-top: .55em; border-radius: 50%; background: currentColor; flex: none; }

/* ---------- Reveal on scroll ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Review note (staging only) ---------- */
.review-note { padding-block: 40px 64px; }
.review-note p { font-size: var(--fs-small); color: var(--stone-600); border-top: 1px solid var(--line); padding-top: 20px; }

/* ---------- 404 ---------- */
.not-found { min-height: 80svh; display: grid; align-content: center; gap: 24px; padding-block: 120px; }
.not-found__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--olive-900); color: var(--porcelain); padding-top: var(--section); overflow: hidden; }
.site-footer__top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 80px); }
.site-footer__cta { display: grid; gap: 16px; justify-items: start; align-content: start; }
.site-footer__cta .brand { margin-bottom: 20px; }
.site-footer__tagline { font-family: var(--font-display); font-size: clamp(26px, 2.4vw, 38px); letter-spacing: -0.03em; line-height: 1.1; }
.site-footer__lede { color: rgba(250, 248, 243, .66); max-width: 26em; margin-bottom: 10px; }
.site-footer__head { font-family: var(--font-display); font-size: var(--fs-eyebrow); font-weight: 500; letter-spacing: var(--track-eyebrow); text-transform: uppercase; color: rgba(250, 248, 243, .5); margin-bottom: 16px; }
.site-footer__col li { font-family: var(--font-display); font-size: 15.5px; line-height: 2; }
.site-footer__col li span { color: rgba(250, 248, 243, .5); }
.site-footer__col a { transition: opacity var(--t-fast) var(--ease); }
.site-footer__col a:hover { opacity: .7; }
.site-footer__col a.u { border-bottom: 1px solid var(--line-inverse); }
.site-footer__giant {
  font-family: var(--font-display); font-weight: 500; font-size: 26.5vw; letter-spacing: -0.065em; line-height: .74;
  color: #3A3B2C; text-align: center; white-space: nowrap; user-select: none;
  margin: clamp(48px, 7vw, 120px) 0 0;
  height: .58em; overflow: hidden;   /* editorial crop at the base of the letters */
}
.site-footer__bottom {
  position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line-inverse); padding-block: 22px max(22px, env(safe-area-inset-bottom));
  font-size: 13px; color: rgba(250, 248, 243, .6);
}
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__legal a:hover { color: var(--porcelain); }
@media (max-width: 1100px) { .site-footer__top { grid-template-columns: 1fr 1fr; } .site-footer__cta { grid-column: 1 / -1; } }
@media (max-width: 560px) { .site-footer__top { grid-template-columns: 1fr; } .site-footer__cta .pill { width: 100%; justify-content: space-between; } }

/* ---------- CMS preview bar (editors only) ---------- */
.preview-bar {
  position: fixed; z-index: 70; left: 50%; bottom: 16px; transform: translateX(-50%);
  display: flex; gap: 16px; align-items: center; padding: 10px 18px; border-radius: 999px;
  background: #A4452C; color: #fff; font-size: 14px; box-shadow: 0 8px 30px rgba(0,0,0,.18); white-space: nowrap;
}
.preview-bar a { color: #fff; text-decoration: underline; }
