:root {
  --navy-950: #070f1f;
  --navy-900: #0b1a33;
  --navy-800: #13284a;
  --navy-700: #1d3a66;
  --red: #d4202f;
  --red-hot: #e8394a;
  --gold: #f2c46d;
  --ink: #eef2f8;
  --muted: #aab6c9;
  --line: rgba(255, 255, 255, 0.12);
  --card: rgba(255, 255, 255, 0.04);
  --radius: 14px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--navy-950);
  color: var(--ink);
  font: 17px/1.6 var(--font);
  overflow-x: hidden;
}

a { color: inherit; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--gold); color: var(--navy-950); padding: 8px 14px; border-radius: 8px;
  font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  background: rgba(7, 15, 31, 0.55);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 12px; }
.brand {
  font-family: var(--serif); font-weight: 700; font-size: 1.3rem; letter-spacing: 0.01em;
  text-decoration: none; white-space: nowrap;
}
.brand::after { content: ""; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 50%; background: var(--red-hot); }
.nav { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.nav a { text-decoration: none; color: var(--muted); font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
@media (max-width: 560px) {
  .nav { gap: 14px; }
  .nav li:nth-child(2), .nav li:nth-child(3) { display: none; }
}

/* Hero */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: 110px 0 72px;
  /* CSS fallback when WebGL is unavailable */
  background:
    radial-gradient(60% 50% at 80% 20%, rgba(212, 32, 47, 0.35), transparent 70%),
    radial-gradient(70% 60% at 15% 85%, rgba(29, 58, 102, 0.9), transparent 70%),
    linear-gradient(160deg, var(--navy-800), var(--navy-950));
}
#bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; opacity: 0; transition: opacity 1.2s ease; }
.gl-on #bg { opacity: 1; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 140px; z-index: -1;
  background: linear-gradient(to bottom, transparent, var(--navy-950));
}
.eyebrow {
  margin: 0 0 14px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold);
}
h1 {
  font-family: var(--serif); font-weight: 700;
  font-size: clamp(2.6rem, 8vw, 5.4rem); line-height: 1.02; letter-spacing: -0.01em;
  margin: 0 0 20px; max-width: 12ch;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.35);
}
.lede { font-size: clamp(1.05rem, 2.2vw, 1.25rem); color: #d6deea; max-width: 38rem; margin: 0 0 32px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 22px; border-radius: 999px; font-weight: 600; text-decoration: none; font-size: 1rem;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--red); color: #fff; box-shadow: 0 8px 30px rgba(212, 32, 47, 0.35); }
.btn-primary:hover { background: #b81a28; }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.35); background: rgba(7, 15, 31, 0.35); color: #fff; }
.btn-ghost:hover { border-color: #fff; background: rgba(7, 15, 31, 0.55); }
@media (max-width: 420px) { .cta .btn { flex: 1 1 100%; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--navy-900); border-block: 1px solid var(--line); }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0 0 28px; }
h3 { font-size: 1.15rem; margin: 0 0 8px; }
.sub { color: var(--muted); margin: -12px 0 24px; }
.more { color: var(--gold); text-decoration: none; font-weight: 600; }
.more:hover { text-decoration: underline; }

.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
  position: relative; overflow: hidden;
}
.card::before { content: ""; position: absolute; left: 24px; top: 0; width: 32px; height: 3px; background: var(--red-hot); border-radius: 0 0 3px 3px; }
.card p { color: var(--muted); margin: 0 0 10px; }
.card p:last-child { margin-bottom: 0; }

.split { display: grid; gap: 8px 48px; grid-template-columns: 1fr; }
.split p { color: #c9d3e2; margin: 0 0 14px; max-width: 40rem; }
@media (min-width: 860px) { .split { grid-template-columns: 1fr 1.4fr; } }

.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 16px; font-size: 0.95rem; }

.offices { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.office { font-style: normal; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.office p { margin: 0 0 8px; color: #c9d3e2; }
.office a { color: var(--ink); text-decoration-color: var(--red-hot); text-underline-offset: 3px; overflow-wrap: anywhere; }
.office a:hover { color: var(--gold); }

/* Footer */
.footer { padding: 36px 0 44px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.92rem; }
.footer p { margin: 0 0 8px; }
.footer strong { color: var(--ink); }
.eho { display: flex; align-items: center; gap: 8px; }
.eho svg { flex: none; }
.small { font-size: 0.85rem; }

/* 404 */
.notfound { min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; padding: 24px; }
