/* grail.works — global chrome (header / footer / section scaffolding).
   Faithful rebuild of the production Squarespace chrome as it RENDERS
   (see production-capture/screenshots + tokens.md). Section content styles
   live inline per page (ported verbatim from the production code blocks). */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  padding: 0;
  background: #F5F5F5;
  font-family: sans-serif; /* production default; custom sections set their own */
}
img { max-width: 100%; }

/* ---------- a11y skip link ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: #FDB833;
  color: #1C2331;
  padding: 10px 18px;
  z-index: 200;
  font-family: 'Muli', sans-serif;
}
.skip-link:focus { left: 0; }

/* ---------- header (fixed, dark navy — production header height 98px) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 98px;
  background: #1C2331;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4vw 0 5.4vw;
  z-index: 100;
}
.site-header .logo-link { display: block; line-height: 0; }
.site-header .logo-link img { height: 40px; width: auto; display: block; }
.site-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 33px;
  margin: 0;
  padding: 0;
}
.site-nav a {
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: #FDB833;
  text-decoration: none;
  padding-bottom: 4px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background-image: linear-gradient(#FDB833, #FDB833);
  background-size: 100% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
}
/* burger (mobile) */
.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 10px 0;
  cursor: pointer;
  width: 36px;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: #FDB833;
  margin: 7px 0;
  transition: transform .25s ease, opacity .25s ease;
}
.nav-open .nav-toggle span:first-child { transform: translateY(4.5px) rotate(45deg); }
.nav-open .nav-toggle span:last-child { transform: translateY(-4.5px) rotate(-45deg); }

/* mobile overlay menu */
.nav-overlay {
  display: none;
  position: fixed;
  inset: 80px 0 0 0;
  background: #1C2331;
  z-index: 99;
  padding: 48px 8vw;
  flex-direction: column;
  gap: 30px;
}
.nav-open .nav-overlay { display: flex; }
.nav-overlay a {
  font-family: 'Muli', sans-serif;
  font-size: 22px;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #FDB833;
  text-decoration: none;
}

/* the fixed header overlays the page — main clears it (production: 97.64px) */
main { padding-top: 98px; }

@media (max-width: 949px) {
  .site-header { height: 80px; padding: 0 7.7vw; }
  .site-header .logo-link img { height: 32px; }
  .site-nav ul { display: none; }
  .nav-toggle { display: block; }
  main { padding-top: 80px; }
}

/* ---------- page sections (Squarespace fluid-engine parity) ---------- */
/* Squarespace clips every section horizontally (overflow-x: clip) — decorative
   pseudo-elements must never widen the page. */
main section { overflow-x: clip; }
@media (max-width: 767px) {
  /* production insets every page section at mobile: dark page bg shows as
     ~5.5vw gutters either side (visible beside light sections) */
  body:has(main section) { background: #1C2331; }
  /* !important: several sections' own CSS declares margin: 0 */
  main section { margin-left: 5.5vw !important; margin-right: 5.5vw !important; width: auto !important; }
}

/* ---------- section scaffolding (photo-background sections) ---------- */
.ps { position: relative; }
.ps-bg { position: absolute; inset: 0; overflow: hidden; }
.ps-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ps-content { position: relative; z-index: 1; }

/* ---------- footer (dark navy, text-only — matches rendered production) ---------- */
.site-footer {
  background: #1C2331;
  padding: 100px 4vw 38px 4vw;
}
.site-footer .f-label {
  font-family: 'Oswald', sans-serif;
  font-weight: 600;
  font-size: 17.7px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: #FDB833;
  margin: 0 0 12px 0;
}
.site-footer .f-label + .f-label,
.site-footer .f-contact-label { margin-top: 28px; }
.site-footer address {
  font-style: normal;
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  line-height: 25px;
  color: #F5F5F5;
  margin: 0;
}
.site-footer .f-email-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}
.site-footer .f-mail-icon { width: 40px; height: 30px; flex: none; }
.site-footer .f-email {
  display: inline-block;
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  letter-spacing: .04em;
  color: #D0D0D0; /* production rendered this near-invisible (#121827) — fixed by decision */
  text-decoration: none;
}
.site-footer .f-email:hover { color: #FDB833; }
.site-footer .f-terms {
  display: inline-block;
  margin-top: 30px;
  font-family: 'Muli', sans-serif;
  font-size: 16px;
  color: #F5F5F5;
  text-decoration: underline;
}
.site-footer .f-terms:hover { color: #FDB833; }
.site-footer .f-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 48px;
  max-width: 1420px;
  margin: 0 auto;
}
.site-footer .f-social {
  display: flex;
  align-items: center;
  gap: clamp(40px, 6vw, 88px);
}
.site-footer .f-social a { display: block; line-height: 0; }
.site-footer .f-social svg { height: 84px; width: auto; display: block; }
.site-footer .f-social a:hover svg { opacity: .8; }
.site-footer .f-brand {
  justify-self: end;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding-right: clamp(0px, 3vw, 60px);
}
.site-footer .f-wordmark {
  font-family: 'Oswald', sans-serif;
  font-weight: 700;
  font-size: 92px;
  line-height: .85;
  letter-spacing: .01em;
  color: #FFFFFF;
}
.site-footer .f-wordmark-ai { color: #FDB833; }
.site-footer .f-copyright {
  font-family: 'Muli', sans-serif;
  font-size: 13px;
  color: #8A93A3;
  text-align: center;
  margin: 64px 0 0;
}
.site-footer .f-wordmark-rule {
  display: block;
  width: 128px;
  height: 4px;
  background: #FDB833;
}
@media (max-width: 949px) {
  .site-footer { padding: 96px 6vw 48px 6vw; }
  .site-footer .f-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 64px;
  }
  /* production mobile order: wordmark, icons, then the info columns (left-aligned) */
  .site-footer .f-brand { order: 1; justify-self: auto; padding-right: 0; }
  .site-footer .f-social { order: 2; gap: 44px; }
  .site-footer .f-social svg { height: 56px; }
  .site-footer .f-info { order: 3; width: 100%; }
  .site-footer .f-wordmark { font-size: 108px; }
}

/* ---------- YouTube click-to-play lightbox (home) ---------- */
.yt-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(10, 14, 20, .92);
  z-index: 300;
  align-items: center;
  justify-content: center;
  padding: 4vw;
}
.yt-lightbox.open { display: flex; }
.yt-lightbox .yt-frame-wrap {
  position: relative;
  width: min(1120px, 92vw);
  aspect-ratio: 16 / 9;
  background: #000;
}
.yt-lightbox iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
.yt-lightbox .yt-close {
  position: absolute;
  top: -44px;
  right: 0;
  background: none;
  border: 0;
  color: #F5F5F5;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  font-family: 'Muli', sans-serif;
}

/* ---------- accessibility baseline (2026) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
:focus-visible {
  outline: 3px solid #FDB833;
  outline-offset: 2px;
  border-radius: 2px;
}

/* balanced display headings: no orphan last words (progressive enhancement) */
h1, h2, h3 { text-wrap: balance; }
