:root {
  --bg: #07080a;
  --bg-soft: #0d1015;
  --card: rgba(255,255,255,0.045);
  --card-strong: rgba(255,255,255,0.075);
  --text: #f3f4f6;
  --muted: #a2a9b4;
  --line: rgba(255,255,255,0.12);
  --line-strong: rgba(255,255,255,0.22);
  --accent: #e5e7eb;
  --legal: #b8a6ff;
  --health: #8ee8d8;
  --gov: #ffd18a;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  z-index: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.2) 1px, transparent 0);
  background-size: 22px 22px;
}
.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 20% 10%, rgba(184,166,255,0.14), transparent 28%),
    radial-gradient(circle at 80% 20%, rgba(142,232,216,0.08), transparent 24%),
    radial-gradient(circle at 50% 90%, rgba(255,209,138,0.08), transparent 28%),
    linear-gradient(to bottom, #07080a, #090b10 55%, #07080a);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(18px, 4vw, 48px);
  backdrop-filter: blur(18px);
  background: rgba(7,8,10,0.72);
  border-bottom: 1px solid var(--line);
}
.brand, .nav, .header-actions, .footer-links {
  display: flex;
  align-items: center;
  gap: 18px;
}
.brand { font-weight: 650; letter-spacing: -0.02em; }
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font-size: 12px;
  color: var(--muted);
}
.nav a, .footer-links a {
  color: var(--muted);
  font-size: 14px;
  transition: color 0.2s ease;
}
.nav a:hover, .footer-links a:hover { color: var(--text); }
.lang-toggle, .menu-button, .contact-pill, .primary-button, .secondary-button {
  border: 1px solid var(--line-strong);
  background: rgba(255,255,255,0.04);
  color: var(--text);
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease, border 0.2s ease;
}
.lang-toggle:hover, .contact-pill:hover, .primary-button:hover, .secondary-button:hover {
  transform: translateY(-1px);
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.34);
}
.menu-button { display: none; }
.mobile-menu {
  position: fixed;
  top: 72px;
  right: 18px;
  z-index: 30;
  display: none;
  flex-direction: column;
  min-width: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(13,16,21,0.96);
  box-shadow: 0 24px 80px rgba(0,0,0,0.35);
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 12px 8px; color: var(--muted); }

.immersive-section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 112px clamp(18px, 4vw, 48px);
}
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 140px;
}
.hero-kicker, .eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.16em;
  font-weight: 700;
}
.hero-title {
  max-width: 980px;
  margin: 18px 0 0;
  font-size: clamp(48px, 8vw, 106px);
  line-height: 0.94;
  letter-spacing: -0.075em;
}
.hero-title span { display: block; }
.text-gradient {
  background: linear-gradient(90deg, #fff, #b8a6ff 35%, #8ee8d8 70%, #ffd18a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  max-width: 760px;
  margin-top: 30px;
  color: #c4cad3;
  font-size: clamp(18px, 2.3vw, 24px);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.primary-button { background: #f3f4f6; color: #07080a; }
.secondary-button { color: var(--text); }
.system-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 52px;
}
.system-strip span {
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  background: rgba(255,255,255,0.03);
}

.section-heading { max-width: 760px; margin-bottom: 34px; }
.section-heading h2, .research-panel h2 {
  margin: 10px 0 0;
  font-size: clamp(32px, 5vw, 62px);
  line-height: 1;
  letter-spacing: -0.055em;
}
.domain-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.domain-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(255,255,255,0.065));
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.domain-card::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  opacity: 0.22;
  filter: blur(28px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.domain-card.legal::before { background: var(--legal); }
.domain-card.health::before { background: var(--health); }
.domain-card.gov::before { background: var(--gov); }
.domain-card:hover { transform: translateY(-8px); border-color: rgba(255,255,255,0.28); }
.domain-card:hover::before { opacity: 0.38; transform: scale(1.12); }
.domain-number { color: var(--muted); font-size: 13px; margin-bottom: auto; }
.domain-card h3 {
  margin: 0 0 12px;
  font-size: 34px;
  letter-spacing: -0.04em;
}
.domain-card p { color: #c6ccd4; margin: 0 0 18px; }
.domain-card ul { list-style: none; padding: 0; margin: 0 0 24px; color: var(--muted); font-size: 14px; }
.domain-card li { padding: 6px 0; border-top: 1px solid rgba(255,255,255,0.08); }
.card-link { font-weight: 700; }

.proof-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.proof-card {
  min-height: 190px;
  padding: 22px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background: var(--card);
}
.proof-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.proof-card span { color: var(--muted); }
.research-panel {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 30px;
  align-items: end;
  padding: clamp(26px, 5vw, 54px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(135deg, rgba(184,166,255,0.11), rgba(142,232,216,0.07), rgba(255,255,255,0.035));
}
.research-panel p { color: #c8ced7; font-size: 18px; }
.research-panel .secondary-button { justify-self: start; }
.site-footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px clamp(18px, 4vw, 48px) 60px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer p { margin: 6px 0 0; }

.page-hero { padding-top: 150px; padding-bottom: 60px; }
.page-label { display: flex; align-items: center; gap: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-size: 12px; font-weight: 800; }
.page-title { font-size: clamp(54px, 10vw, 132px); line-height: 0.88; letter-spacing: -0.08em; margin: 20px 0 24px; }
.page-subtitle { color: #c8ced7; max-width: 820px; font-size: clamp(20px, 3vw, 30px); line-height: 1.25; }
.content-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.side-index { position: sticky; top: 110px; display: flex; flex-direction: column; gap: 12px; color: var(--muted); font-size: 14px; }
.side-index a { padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,0.08); }
.content-stack { display: flex; flex-direction: column; gap: 26px; }
.content-block {
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255,255,255,0.045);
}
.content-block h2 { margin: 0 0 18px; font-size: 30px; letter-spacing: -0.04em; }
.content-block h3 { margin: 22px 0 8px; font-size: 21px; }
.content-block p, .content-block li { color: #c9ced6; }
.content-block p { margin: 0 0 14px; }
.project-list { display: grid; gap: 18px; }
.project-item { padding: 20px; border: 1px solid rgba(255,255,255,0.1); border-radius: 22px; background: rgba(0,0,0,0.14); }
.project-item strong { display: block; margin-bottom: 8px; font-size: 18px; color: #fff; }
.tag-list { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-list span { padding: 8px 11px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 13px; }
.back-link { color: var(--muted); display: inline-block; margin-bottom: 24px; }
.back-link:hover { color: #fff; }
.contact-block { border-color: rgba(255,255,255,0.24); }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.65s ease, transform 0.65s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 920px) {
  .nav { display: none; }
  .menu-button { display: inline-flex; }
  .domain-grid, .proof-grid, .research-panel, .content-layout { grid-template-columns: 1fr; }
  .domain-card { min-height: 390px; }
  .side-index { position: static; flex-direction: row; overflow-x: auto; padding-bottom: 12px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand span:last-child { display: none; }
  .contact-pill { display: none; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .primary-button, .secondary-button { text-align: center; }
  .immersive-section { padding-top: 84px; padding-bottom: 84px; }
}


/* Portal index concept */
.portal-home .site-header { background: rgba(7,8,10,0.64); }
.portal-shell {
  min-height: 100svh;
  max-width: 1440px;
  margin: 0 auto;
  padding: 108px clamp(18px, 4vw, 48px) 42px;
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(620px, 1.35fr);
  gap: clamp(24px, 4vw, 54px);
  align-items: stretch;
}
.portal-intro {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100svh - 150px);
  padding: clamp(10px, 2vw, 24px) 0;
}
.portal-kicker {
  margin: 0 0 18px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  font-weight: 800;
}
.portal-intro h1 {
  margin: 0;
  font-size: clamp(44px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.075em;
}
.portal-statement {
  max-width: 650px;
  margin: 26px 0 0;
  font-size: clamp(21px, 2.3vw, 34px);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: #f5f6f8;
}
.portal-subtext { max-width: 620px; margin: 22px 0 0; color: #aeb6c2; font-size: 16px; }
.portal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.portal-index {
  min-height: calc(100svh - 150px);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-content: stretch;
}
.portal-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: clamp(22px, 2.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 34px;
  background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.025)), rgba(255,255,255,0.035);
  transition: transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}
.portal-card::before {
  content: "";
  position: absolute;
  inset: auto -40% -18% auto;
  width: 280px;
  height: 280px;
  border-radius: 999px;
  opacity: 0.18;
  filter: blur(34px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.portal-card.legal::before { background: var(--legal); }
.portal-card.health::before { background: var(--health); }
.portal-card.gov::before { background: var(--gov); }
.portal-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255,255,255,0.32);
  background: linear-gradient(180deg, rgba(255,255,255,0.095), rgba(255,255,255,0.035)), rgba(255,255,255,0.045);
}
.portal-card:hover::before { opacity: 0.36; transform: scale(1.12); }
.portal-number { color: var(--muted); font-size: 13px; letter-spacing: 0.12em; font-weight: 800; }
.portal-card h2 { margin: auto 0 14px; font-size: clamp(30px, 2.25vw, 42px); line-height: 0.95; letter-spacing: -0.055em; white-space: nowrap; }
.portal-card-line { min-height: 72px; margin: 0 0 26px; color: #c9d0da; font-size: 16px; }
.portal-card-meta { position: relative; z-index: 1; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.12); }
.portal-card-meta strong { display: block; min-height: 72px; color: #fff; font-size: 18px; line-height: 1.18; letter-spacing: -0.025em; }
.portal-open { display: inline-flex; align-items: center; margin-top: 26px; color: #fff; font-weight: 800; }
.below-portal { padding-top: 72px; }
.project-need { display: block; margin: 0 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 11px; font-weight: 800; }
.project-item p + p { margin-top: 10px; }
@media (max-width: 1180px) {
  .portal-shell { grid-template-columns: 1fr; padding-top: 104px; }
  .portal-intro { min-height: auto; padding-top: 30px; }
  .portal-index { min-height: 420px; }
}
@media (max-width: 760px) {
  .portal-index { grid-template-columns: 1fr; min-height: auto; }
  .portal-card { min-height: 320px; }
  .portal-card h2 { margin-top: 58px; }
}
