/* layout.css — header, footer, grid */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .3s var(--ease-out), border-color .3s var(--ease-out), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(11, 11, 15, 0.78);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--line-dark);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: var(--container-wide); margin: 0 auto; padding: 0 var(--s-5);
}
.site-header__brand { display: flex; align-items: center; gap: var(--s-3); }
.site-header__brand img { height: 36px; width: auto; }
.site-header__nav { display: flex; align-items: center; gap: var(--s-6); }
.site-header__nav a {
  position: relative;
  color: var(--paper);
  font-size: 15px;
  font-weight: 500;
  padding: 6px 0;
  letter-spacing: 0.01em;
  transition: color .2s;
}
.site-header__nav a::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.site-header__nav a:hover::after,
.site-header__nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header__cta { display: flex; align-items: center; gap: var(--s-3); }

.nav-toggle { display: none; }

/* mobile nav */
@media (max-width: 900px) {
  .site-header__nav { display: none; }
  .site-header__nav.is-open {
    display: flex; flex-direction: column; align-items: flex-start;
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--ink); padding: var(--s-7) var(--s-5); gap: var(--s-5);
    border-top: 1px solid var(--line-dark);
    animation: xw-fade-in .4s var(--ease-out);
  }
  .site-header__nav.is-open a { font-size: 28px; font-weight: 700; }
  .nav-toggle { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; color: var(--paper); }
  .site-header__cta .btn { display: none; }
}

/* footer */
.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding: var(--s-10) 0 var(--s-6);
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.site-footer__grid {
  display: grid; gap: var(--s-8);
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  margin-bottom: var(--s-9);
}
.site-footer__col h4 {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.16em;
  font-weight: 600; color: var(--gold-soft); margin-bottom: var(--s-4);
}
.site-footer__col a { display: block; padding: 6px 0; color: rgba(244, 244, 241, 0.78); font-size: 15px; transition: color .2s; }
.site-footer__col a:hover { color: var(--gold); }
.site-footer__brand img { height: 40px; }
.site-footer__brand p { color: rgba(244, 244, 241, 0.7); margin-top: var(--s-4); font-size: 14px; line-height: 1.7; }
.site-footer__social { display: flex; gap: var(--s-3); margin-top: var(--s-5); }
.site-footer__social a { width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line-dark); display: inline-flex; align-items: center; justify-content: center; }
.site-footer__social a:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.site-footer__bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: var(--s-5);
  display: flex; flex-wrap: wrap; gap: var(--s-4);
  align-items: center; justify-content: space-between;
  font-size: 13px; color: rgba(244, 244, 241, 0.6);
}
.site-footer__bottom nav { display: flex; gap: var(--s-5); }
.site-footer__bottom nav a { color: rgba(244, 244, 241, 0.7); }
.site-footer__bottom nav a:hover { color: var(--gold); }

@media (max-width: 900px) {
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .site-footer__grid { grid-template-columns: 1fr; }
}

/* page wrap */
.page { padding-top: var(--nav-h); min-height: 100vh; }

/* main grid utilities */
.grid-3 { display: grid; gap: var(--s-5); grid-template-columns: repeat(3, 1fr); }
.grid-2 { display: grid; gap: var(--s-5); grid-template-columns: repeat(2, 1fr); }
.grid-4 { display: grid; gap: var(--s-5); grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) {
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 540px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* split */
.split { display: grid; gap: var(--s-8); grid-template-columns: 1fr 1fr; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

/* hero base */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: center;
  color: var(--paper);
  overflow: hidden;
  isolation: isolate;
  background: var(--ink);
}
.hero__media { position: absolute; inset: 0; z-index: -1; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; opacity: .78; }
.hero__media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,11,15,0.55) 0%, rgba(11,11,15,0.25) 35%, rgba(11,11,15,0.85) 100%);
}
.hero__content { max-width: 980px; padding: var(--s-10) 0; }
.hero h1 { color: var(--paper); font-size: var(--fs-hero); letter-spacing: -0.03em; line-height: 0.95; }
.hero h1 .accent { color: var(--gold); font-style: italic; }
.hero p.lede { color: rgba(244, 244, 241, 0.85); margin-top: var(--s-5); }
.hero__actions { margin-top: var(--s-7); display: flex; gap: var(--s-4); flex-wrap: wrap; }
.hero__mascot { position: absolute; left: var(--s-6); bottom: var(--s-6); width: 96px; }
.hero__mascot img { animation: xw-float 6s ease-in-out infinite; }
@keyframes xw-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-12px) rotate(2deg); }
}

/* section eyebrow + heading */
.section-head { max-width: 760px; margin-bottom: var(--s-8); }
.section-head .eyebrow { margin-bottom: var(--s-3); }
.section-head p.lede { margin-top: var(--s-4); }

/* image reveal */
.xw-reveal { overflow: hidden; }
.xw-reveal > img { transform: scale(1.08); transition: transform 1.2s var(--ease-out-expo), filter 1.2s; }
.xw-reveal.in-view > img { transform: scale(1); }
