:root {
  --bg: #08090a;
  --bg-deep: #050607;
  --surface: #0d0f11;
  --surface-2: #121416;
  --surface-3: #17191c;
  --surface-glass: rgba(14, 16, 18, 0.74);
  --text: #f2f1ed;
  --text-soft: #cfcdc7;
  --muted: #9b9993;
  --muted-2: #686a6d;
  --stone: #c9c4b9;
  --stone-soft: #e6e1d7;
  --steel: #8c949c;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.18);
  --line-soft: rgba(255, 255, 255, 0.05);
  --positive: #91a99a;
  --negative: #ad8d8d;
  --warning: #b5a17d;
  --brand-gold: #d6aa36;
  --brand-gold-soft: #edc760;
  --brand-gold-deep: #8a681d;
  --max: 1360px;
  --pad: clamp(20px, 4vw, 56px);
  --radius: 22px;
  --shadow: 0 30px 100px rgba(0, 0, 0, 0.46);
  --font-display: "Helvetica Neue", Helvetica, Arial, ui-sans-serif, system-ui, sans-serif;
  --font-body: Inter, "Helvetica Neue", Arial, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg-deep); color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 14% 8%, rgba(166, 171, 177, 0.08), transparent 26%),
    radial-gradient(circle at 86% 1%, rgba(214, 208, 196, 0.06), transparent 23%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-deep) 100%);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -4;
  pointer-events: none;
  opacity: 0.38;
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000 0%, rgba(0,0,0,.55) 68%, transparent 100%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1000;
  pointer-events: none;
  opacity: .035;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 240 240' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='.55'/%3E%3C/svg%3E");
}

::selection { background: rgba(230,225,215,.22); color: #fff; }

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
img, svg, canvas { display: block; max-width: 100%; }

.container { width: min(calc(100% - (var(--pad) * 2)), var(--max)); margin-inline: auto; }
.container.wide { width: min(calc(100% - 32px), 1580px); }
.container.narrow { width: min(calc(100% - (var(--pad) * 2)), 980px); }

.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.stone { color: var(--stone-soft); }
.positive { color: var(--positive) !important; }
.negative { color: var(--negative) !important; }
.warning { color: var(--warning) !important; }

.eyebrow,
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--stone);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-size: .68rem;
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 34px;
  height: 1px;
  background: linear-gradient(90deg, var(--stone), transparent);
}
.kicker { color: var(--muted); letter-spacing: .17em; }

.btn,
.nav-cta,
.text-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-size: .68rem;
  font-weight: 700;
  transition: transform .25s ease, background .25s ease, border-color .25s ease, color .25s ease;
}
.btn,
.nav-cta {
  min-height: 48px;
  padding: 0 20px;
  background: linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  position: relative;
  overflow: hidden;
}
.btn::before,
.nav-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255,255,255,.12) 50%, transparent 80%);
  transform: translateX(-125%);
  transition: transform .65s ease;
}
.btn:hover::before,
.nav-cta:hover::before { transform: translateX(125%); }
.btn:hover,
.nav-cta:hover { transform: translateY(-2px); border-color: rgba(255,255,255,.34); background: rgba(255,255,255,.08); }
.btn.secondary { background: transparent; border-color: var(--line); color: var(--text-soft); }
.btn.small { min-height: 38px; padding: 0 14px; font-size: .6rem; }
.text-link { border: 0; justify-content: flex-start; color: var(--stone); }
.text-link:hover { color: #fff; transform: translateX(4px); }

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(7, 8, 9, .76);
  border-color: var(--line);
  backdrop-filter: blur(22px) saturate(120%);
}
.nav {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; min-width: 0; position: relative; }
.brand-image { display: block; object-fit: contain; object-position: left center; user-select: none; -webkit-user-drag: none; }
.brand-horizontal {
  width: clamp(205px, 15.5vw, 252px);
  height: 58px;
  filter: drop-shadow(0 12px 26px rgba(0,0,0,.35));
  transition: filter .3s ease, transform .3s ease;
}
.brand-primary:hover .brand-horizontal { transform: translateY(-1px); filter: drop-shadow(0 14px 32px rgba(0,0,0,.45)) drop-shadow(0 0 18px rgba(214,170,54,.06)); }
.brand-primary::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 3px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--brand-gold), transparent);
  transition: width .45s cubic-bezier(.2,.8,.2,1);
}
.brand-primary:hover::after { width: 72%; }
.brand-icon-mobile { display: none; width: 44px; height: 50px; filter: drop-shadow(0 10px 22px rgba(0,0,0,.38)); }
.brand-division-icon { width: 43px; height: 52px; object-fit: contain; filter: drop-shadow(0 12px 22px rgba(0,0,0,.45)); }
.brand-copy strong { display: block; color: #f5f4f1; font-size: .77rem; letter-spacing: .17em; white-space: nowrap; }
.brand-copy span { display: block; margin-top: 4px; color: var(--muted-2); font-size: .57rem; letter-spacing: .15em; text-transform: uppercase; }
.portal-lockup .brand-copy { padding-left: 2px; }
.login-brand { display: grid; justify-items: start; gap: 15px; }
.brand-login-logo { width: min(325px, 100%); height: auto; }
.login-brand .brand-copy { padding-left: 5px; border-left: 1px solid rgba(214,170,54,.5); }
.nav-links { display: flex; align-items: center; justify-content: center; gap: clamp(16px, 2.3vw, 34px); }
.nav-links a { position: relative; color: #9d9fa2; font-size: .68rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; transition: color .25s ease; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -9px; height: 1px; background: var(--stone-soft); transition: right .25s ease; }
.nav-links a:hover,
.nav-links a.active { color: #fff; }
.nav-links a:hover::after,
.nav-links a.active::after { right: 0; }
.nav-cta { min-height: 42px; padding-inline: 16px; }
.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.02);
  cursor: pointer;
  place-items: center;
}
.menu-button span { width: 18px; height: 1px; background: #fff; display: block; transition: transform .25s ease; }
.menu-button span + span { margin-top: 6px; }
.menu-button[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-button[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.footer { border-top: 1px solid var(--line); padding: 44px 0 52px; background: rgba(0,0,0,.14); }
.footer-grid { display: grid; grid-template-columns: 1.15fr .7fr .7fr; gap: 40px; align-items: start; }
.footer-copy { max-width: 460px; color: var(--muted); font-size: .75rem; line-height: 1.7; }
.footer h4 { margin: 0 0 16px; color: var(--muted-2); font-size: .6rem; letter-spacing: .15em; text-transform: uppercase; }
.footer-links { display: grid; gap: 11px; }
.footer-links a { color: var(--text-soft); font-size: .74rem; }
.footer-links a:hover { color: #fff; }
.footer-bottom { margin-top: 42px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 24px; color: var(--muted-2); font-size: .64rem; line-height: 1.6; }

.reveal { opacity: 0; transform: translate3d(0, 36px, 0); transition: opacity .85s cubic-bezier(.2,.8,.2,1), transform .85s cubic-bezier(.2,.8,.2,1); }
.reveal.visible { opacity: 1; transform: translate3d(0,0,0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
.reveal.delay-4 { transition-delay: .32s; }

.cursor-glow {
  position: fixed;
  width: 480px;
  height: 480px;
  left: 0;
  top: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(230,225,215,.065), transparent 68%);
  transform: translate3d(-50%, -50%, 0);
  filter: blur(2px);
  opacity: .9;
}

[data-tilt] { transform-style: preserve-3d; will-change: transform; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes floatSoft { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pulseSoft { 0%,100% { opacity: .45; } 50% { opacity: 1; } }
@keyframes rotateSlow { to { transform: rotate(360deg); } }
@keyframes reverseRotate { to { transform: rotate(-360deg); } }
@keyframes scan { from { transform: translateY(-110%); } to { transform: translateY(110%); } }

@media (max-width: 1100px) {
  .nav-links { position: fixed; inset: 84px 20px auto 20px; display: none; padding: 20px; border: 1px solid var(--line); background: rgba(9,10,11,.96); backdrop-filter: blur(20px); flex-direction: column; align-items: stretch; box-shadow: var(--shadow); }
  .nav-links.open { display: flex; animation: fadeIn .2s ease; }
  .nav-links a { padding: 12px 4px; }
  .nav-links a::after { display: none; }
  .nav-cta { margin-left: auto; }
  .menu-button { display: grid; }
}

@media (max-width: 720px) {
  :root { --pad: 20px; }
  .nav { min-height: 72px; }
  .site-header .brand-horizontal { display: none; }
  .site-header .brand-icon-mobile { display: block; }
  .footer .brand-horizontal { display: block; width: min(235px, 74vw); height: auto; }
  .footer .brand-icon-mobile { display: none; }
  .brand-copy strong { font-size: .68rem; }
  .brand-copy span { font-size: .52rem; }
  .nav-cta { display: none; }
  .nav-links { inset: 72px 20px auto 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; }
  .cursor-glow { display: none; }
}

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