/* ============================================================
   go-FWD · shared page chrome (nav, footer, base styles)
   Loaded after colors_and_type.css.
   ============================================================ */

:root {
  --navy-0:   #050B14;
  --navy-1:   #0A1628;
  --navy-2:   #0F2238;
  --navy-3:   #16314F;
  --indigo:   #28257B;
  --indigo-2: #305BA2;
  --blue:     #3080B9;
  --cyan:     #3CBAE1;
  --cyan-2:   #38A7D7;
  --silver-0: #E8ECEF;
  --silver-1: #C7CDD3;
  --silver-2: #8A95A1;
  --silver-3: #5A6573;
  --rule:      rgba(232,236,239,.08);
  --rule-soft: rgba(232,236,239,.04);
}

html, body { background: var(--navy-1); color: var(--silver-0); max-width: 100%; overflow-x: hidden; }
body { font-family: var(--font-body); -webkit-font-smoothing: antialiased; }
::selection { background: var(--cyan); color: var(--navy-0); }
a { color: inherit; text-decoration: none; }
img, svg, video { max-width: 100%; height: auto; }

.wrap { width: min(100% - 48px, 1320px); margin: 0 auto; }
em { font-family: 'Instrument Serif', 'Times New Roman', serif; font-style: italic; font-weight: 400; letter-spacing: -.005em; color: var(--cyan); }

/* ===== NAV ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding: 14px 0;
  transition: padding .35s var(--ease-out), transform .45s var(--ease-out);
  background: transparent;
}
.nav.is-scrolled { padding: 8px 0; }
.nav.is-hidden { transform: translateY(-120%); }
/* While the mobile menu is open, keep .nav un-transformed — a transformed
   ancestor would trap the fixed .nav__mobile overlay in its containing block
   and break the fullscreen menu. */
body.nav-open .nav { transform: none !important; }
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  max-width: 1280px; margin: 0 auto;
  padding: 0 18px; height: 64px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  transition: background .45s var(--ease-out), border-color .45s var(--ease-out), box-shadow .45s var(--ease-out), backdrop-filter .45s var(--ease-out);
}
.nav.is-scrolled .nav__inner,
.nav.is-pinned .nav__inner {
  background: rgba(10,22,40,.72);
  border-color: var(--rule);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: 0 8px 32px rgba(0,0,0,.35);
}
.nav__brand { display: inline-flex; align-items: center; }
.nav__brand img { height: 38px; width: auto; display: block; filter: brightness(0) invert(1); transition: filter .45s var(--ease-out); }
.nav__links { display: flex; align-items: center; gap: 32px; }
.nav__links a {
  font-size: 14px; color: var(--silver-2); font-weight: 500;
  position: relative; padding: 4px 0;
  transition: color .2s var(--ease-out);
}
.nav__links a::after {
  content: ''; position: absolute; left: 0; bottom: -2px;
  width: 100%; height: 2px; background: var(--cyan); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease-out);
}
.nav__links a:hover, .nav__links a.is-active { color: var(--silver-0); }
.nav__links a:hover::after, .nav__links a.is-active::after { transform: scaleX(1); }
.nav__cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--cyan); color: var(--navy-0);
  padding: 12px 22px; border-radius: 9999px;
  font-weight: 600; font-size: 14px;
  transition: all .25s var(--ease-out);
}
.nav__cta:hover { background: var(--cyan-2); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(60,186,225,.3); }
.nav__cta::after { content: '→'; font-weight: 700; }

.nav__burger {
  display: none;
  flex-direction: column; justify-content: center; align-items: center;
  width: 42px; height: 42px; gap: 6px;
  border-radius: 12px; border: 1px solid var(--rule);
  background: transparent; cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  z-index: 60;
}
.nav__burger span {
  display: block; width: 18px; height: 1.5px;
  background: var(--silver-0); border-radius: 2px;
  transition: transform .35s var(--ease-out), opacity .25s, background .35s;
  transform-origin: center;
}
body.nav-open .nav__burger span:first-child { transform: translateY(3.75px) rotate(45deg); background: var(--cyan); }
body.nav-open .nav__burger span:last-child  { transform: translateY(-3.75px) rotate(-45deg); background: var(--cyan); }

.nav__mobile {
  position: fixed; inset: 0;
  background: rgba(8,18,34,.96);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  gap: 48px; padding: 96px 24px 48px;
  opacity: 0; visibility: hidden;
  transition: opacity .4s var(--ease-out), visibility .4s;
  z-index: 40;
}
body.nav-open .nav__mobile { opacity: 1; visibility: visible; }
body.nav-open { overflow: hidden; }
.nav__mobile-links { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.nav__mobile-links a {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(28px, 7vw, 40px); letter-spacing: -.02em;
  color: var(--silver-0);
  opacity: 0; transform: translateY(18px);
  transition: opacity .35s var(--ease-out), transform .35s var(--ease-out), color .2s;
}
body.nav-open .nav__mobile-links a { opacity: 1; transform: translateY(0); }
body.nav-open .nav__mobile-links a:nth-child(1) { transition-delay: .08s; }
body.nav-open .nav__mobile-links a:nth-child(2) { transition-delay: .12s; }
body.nav-open .nav__mobile-links a:nth-child(3) { transition-delay: .16s; }
body.nav-open .nav__mobile-links a:nth-child(4) { transition-delay: .20s; }
body.nav-open .nav__mobile-links a:nth-child(5) { transition-delay: .24s; }
body.nav-open .nav__mobile-links a:nth-child(6) { transition-delay: .28s; }
.nav__mobile-cta { color: var(--cyan) !important; font-style: italic; }

@media (max-width: 900px) {
  .nav__burger { display: flex; }
  .nav__links, .nav__cta { display: none !important; }
  .nav__inner { padding: 0 14px; height: 56px; }
}

/* ===== FOOTER ===== */
.foot { background: var(--navy-0); border-top: 1px solid var(--rule); padding: 80px 0 32px; }
.foot__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 64px; align-items: start; }
.foot__brand { display: flex; flex-direction: column; gap: 20px; }
.foot__brand .logo { display: flex; align-items: center; gap: 14px; }
.foot__brand .logo img { height: 36px; width: auto; }
.foot__brand .logo .name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -.02em; color: var(--silver-0); }
.foot__brand p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--silver-2); max-width: 32ch; }
.foot__col h4 { font-family: var(--font-body); font-weight: 600; font-size: 14px; color: var(--silver-0); margin: 0 0 18px; }
.foot__col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.foot__col a { font-size: 15px; color: var(--silver-2); transition: color .2s var(--ease-out); }
.foot__col a:hover { color: var(--silver-0); }
.foot__big {
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(80px, 16vw, 240px);
  line-height: .82; letter-spacing: -.05em;
  color: transparent;
  -webkit-text-stroke: 1px rgba(232,236,239,.16);
  margin: 0 0 48px; text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(60,186,225,.12) 0%, transparent 80%);
  -webkit-background-clip: text; background-clip: text; padding-top: 24px;
}
.foot__bottom {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  gap: 32px; padding-top: 32px; border-top: 1px solid var(--rule);
  font-size: 13px; color: var(--silver-3);
}
.foot__bottom .center { text-align: center; }
.foot__bottom .right { display: flex; gap: 18px; justify-content: flex-end; }
.foot__bottom a { color: var(--silver-2); }
.foot__bottom a:hover { color: var(--silver-0); }

@media (max-width: 900px) {
  .foot { padding: 64px 0 28px; }
  .foot__top { grid-template-columns: 1fr 1fr; gap: 40px; }
  .foot__brand { grid-column: 1 / -1; }
  .foot__bottom { grid-template-columns: 1fr; gap: 14px; text-align: left; }
  .foot__bottom .center, .foot__bottom .right { text-align: left; justify-content: flex-start; }
}
@media (max-width: 600px) {
  .foot__top { grid-template-columns: 1fr; }
  .foot__brand { grid-column: auto; }
}

/* ===== PILL BUTTONS ===== */
.pill {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 24px; border-radius: 9999px;
  font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
  letter-spacing: -.005em;
  transition: all .25s var(--ease-out); cursor: pointer;
  border: 1px solid transparent; text-decoration: none;
}
.pill--cyan { background: var(--cyan); color: var(--navy-0); }
.pill--cyan:hover { background: var(--cyan-2); transform: translateY(-2px); box-shadow: 0 10px 28px rgba(60,186,225,.4); }
.pill--ghost { background: rgba(232,236,239,.06); color: var(--silver-0); border-color: var(--rule); backdrop-filter: blur(8px); }
.pill--ghost:hover { border-color: var(--silver-1); background: rgba(232,236,239,.10); }
.pill--outline {
  background: transparent; color: var(--cyan); border-color: var(--cyan);
  box-shadow: 0 0 16px rgba(60,186,225,.18);
}
.pill--outline:hover { background: rgba(60,186,225,.10); box-shadow: 0 0 0 4px rgba(60,186,225,.10), 0 0 24px rgba(60,186,225,.45); transform: translateY(-1px); }
.pill .arrow {
  width: 22px; height: 22px; border-radius: 50%;
  background: currentColor; display: inline-flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.pill .arrow::after { content: '→'; font-size: 11px; font-weight: 700; }
.pill--cyan .arrow { background: var(--navy-0); }
.pill--cyan .arrow::after { color: var(--cyan); }
.pill--ghost .arrow { background: var(--cyan); }
.pill--ghost .arrow::after { color: var(--navy-0); }
.pill--outline .arrow { background: transparent; }
.pill--outline .arrow::after { color: var(--cyan); }

/* ===== HERO BACKGROUND PATTERN ===== */
.subhero {
  position: relative; overflow: hidden;
  padding: 160px 0 80px;
  background-color: var(--navy-0);
  border-bottom: 1px solid var(--rule);
}
.subhero__bg {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(ellipse 70% 75% at 28% 22%, #2A4A6A 0%, #1A314A 30%, transparent 60%),
    radial-gradient(ellipse 90% 100% at 88% 95%, #1A1855 0%, #0F1A3A 35%, transparent 75%),
    linear-gradient(155deg, #0A1628 0%, #0F2238 40%, #16314F 70%, #0A1628 100%);
}
.subhero__wash {
  position: absolute; inset: 0; pointer-events: none; z-index: 1;
  opacity: .35; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 280px;
}
.subhero__inner { position: relative; z-index: 3; }

/* ===== INTRO VEIL (page-load fade) ===== */
.intro-veil {
  position: fixed; inset: 0; z-index: 9998;
  background: #000; pointer-events: none; opacity: 1;
  animation: introFade 1.5s cubic-bezier(.4, .05, .7, .2) forwards;
}
@keyframes introFade { from { opacity: 1; } to { opacity: 0; } }
.intro-veil.is-done { display: none; }
@media (prefers-reduced-motion: reduce) { .intro-veil { animation: none; opacity: 0; display: none; } }

/* ===== UTILITY ===== */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: 18px;
}
.eyebrow::before { content: ''; width: 28px; height: 1px; background: var(--cyan); }
