:root {
  --navy-950: #07182b;
  --navy-900: #0a213b;
  --navy-800: #123555;
  --blue-600: #0878d1;
  --blue-500: #1195e6;
  --blue-100: #dff2ff;
  --ink: #122033;
  --muted: #5c6b7b;
  --line: #dce5ed;
  --surface: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 24px 60px rgba(7, 24, 43, .12);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  color: var(--white);
  background: var(--navy-950);
}

.skip-link:focus { transform: translateY(0); }

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  border-bottom: 1px solid transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.site-header.scrolled,
.site-header.menu-open {
  border-color: var(--line);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 30px rgba(7, 24, 43, .07);
  backdrop-filter: blur(14px);
}

.nav-wrap {
  width: min(calc(100% - 40px), var(--max));
  min-height: 82px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy-950);
}

.brand-mark {
  position: relative;
  width: 36px;
  height: 36px;
  border: 2px solid var(--navy-900);
  border-radius: 50%;
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  border: 2px solid var(--blue-500);
  transform: rotate(45deg);
}

.brand-mark::after {
  inset: 13px;
  border: 0;
  background: var(--blue-500);
}

.brand-copy { display: grid; line-height: 1.08; }
.brand-name { font-weight: 800; letter-spacing: .16em; font-size: 1.02rem; }
.brand-sub { margin-top: 4px; font-size: .58rem; letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }

.nav-panel,
.nav-links,
.nav-tools { display: flex; align-items: center; }
.nav-panel { gap: 32px; }
.nav-links { gap: 26px; }
.nav-tools { gap: 14px; }

.nav-links a,
.language-link {
  position: relative;
  text-decoration: none;
  font-size: .9rem;
  font-weight: 650;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -8px;
  height: 2px;
  background: var(--blue-500);
  transition: right .2s ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after { right: 0; }

.language-link {
  padding: 7px 11px;
  border: 1px solid #c8d6e2;
  border-radius: 999px;
  color: var(--navy-900);
}

.language-link:hover { border-color: var(--blue-500); color: var(--blue-600); }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.menu-toggle span { display: block; height: 2px; margin: 5px 0; background: var(--navy-900); transition: transform .2s ease, opacity .2s ease; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.container { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }

.hero {
  position: relative;
  min-height: 760px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 150px 0 90px;
  background: linear-gradient(118deg, #fff 0%, #fff 55%, #edf7fd 100%);
}

.hero::before {
  content: "";
  position: absolute;
  width: 620px;
  height: 620px;
  right: -240px;
  top: 45px;
  border: 1px solid rgba(17, 149, 230, .2);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(17, 149, 230, .035), 0 0 0 160px rgba(17, 149, 230, .025);
}

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); align-items: center; gap: 80px; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 22px;
  color: var(--blue-600);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }

h1 {
  max-width: 760px;
  margin-bottom: 25px;
  color: var(--navy-950);
  font-size: clamp(3.25rem, 6vw, 6.1rem);
  line-height: .98;
  letter-spacing: -.058em;
}

h1 span { display: block; color: var(--blue-600); }

.hero-lead { max-width: 640px; margin-bottom: 36px; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }

.button-row { display: flex; flex-wrap: wrap; gap: 12px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 12px 21px;
  border: 1px solid var(--navy-900);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 750;
  transition: transform .2s ease, color .2s ease, background .2s ease, border-color .2s ease;
}

.button:hover { transform: translateY(-2px); }
.button-primary { color: var(--white); background: var(--navy-900); }
.button-primary:hover { border-color: var(--blue-600); background: var(--blue-600); }
.button-secondary { color: var(--navy-900); background: transparent; }
.button-secondary:hover { color: var(--blue-600); border-color: var(--blue-600); }
.arrow { font-size: 1.25em; }

.hero-visual { position: relative; min-height: 460px; }
.system-orbit { position: absolute; inset: 5% 0 0 8%; border: 1px solid rgba(10, 33, 59, .16); border-radius: 50%; animation: slow-spin 40s linear infinite; }
.system-orbit::before { content: ""; position: absolute; width: 15px; height: 15px; top: 10%; left: 15%; border: 5px solid var(--white); border-radius: 50%; background: var(--blue-500); box-shadow: 0 4px 15px rgba(8, 120, 209, .35); }

.system-core {
  position: absolute;
  inset: 22% 13% 8% 23%;
  display: grid;
  place-items: center;
  color: var(--white);
  background: linear-gradient(145deg, var(--navy-800), var(--navy-950));
  border-radius: 34px 90px 34px 90px;
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.system-core::before { content: ""; position: absolute; inset: 26px; border: 1px solid rgba(255,255,255,.18); border-radius: 24px 68px 24px 68px; }
.core-lines { position: relative; width: 125px; height: 125px; border: 1px solid rgba(255,255,255,.38); border-radius: 50%; }
.core-lines::before, .core-lines::after { content: ""; position: absolute; background: var(--blue-500); }
.core-lines::before { width: 48px; height: 2px; left: -25px; top: 62px; box-shadow: 126px 0 var(--blue-500); }
.core-lines::after { width: 2px; height: 48px; left: 61px; top: -25px; box-shadow: 0 126px var(--blue-500); }
.core-dot { position: absolute; inset: 42px; border: 2px solid var(--blue-500); border-radius: 8px; transform: rotate(45deg); }

@keyframes slow-spin { to { transform: rotate(360deg); } }

.section { padding: 112px 0; }
.section-soft { background: var(--surface); }
.section-dark { position: relative; overflow: hidden; color: var(--white); background: var(--navy-950); }
.section-dark::after { content: ""; position: absolute; width: 440px; height: 440px; right: -180px; bottom: -250px; border: 1px solid rgba(17,149,230,.3); border-radius: 50%; box-shadow: 0 0 0 80px rgba(17,149,230,.03), 0 0 0 160px rgba(17,149,230,.02); }

.section-heading { max-width: 760px; margin-bottom: 56px; }
.section-heading h2 { margin-bottom: 20px; color: var(--navy-950); font-size: clamp(2.25rem, 4vw, 3.65rem); line-height: 1.08; letter-spacing: -.04em; }
.section-heading p { max-width: 680px; margin-bottom: 0; color: var(--muted); font-size: 1.08rem; }
.section-dark .section-heading h2 { color: var(--white); }
.section-dark .section-heading p { color: #b9c9d8; }

.about-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 100px; align-items: start; }
.statement { color: var(--navy-950); font-size: clamp(1.65rem, 3vw, 2.55rem); line-height: 1.25; letter-spacing: -.03em; }
.body-copy p { color: var(--muted); }
.fact-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 35px; }
.fact { padding: 20px 22px; border-left: 3px solid var(--blue-500); background: var(--surface); }
.fact strong { display: block; color: var(--navy-950); font-size: 1.05rem; }
.fact span { color: var(--muted); font-size: .88rem; }

.expertise-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.expertise-card { position: relative; min-height: 270px; padding: 32px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.expertise-card:hover { transform: translateY(-5px); border-color: #b5d9f1; box-shadow: 0 18px 45px rgba(7,24,43,.09); }
.card-number { display: block; margin-bottom: 48px; color: var(--blue-600); font-size: .74rem; font-weight: 800; letter-spacing: .16em; }
.expertise-card h3 { margin-bottom: 12px; color: var(--navy-950); font-size: 1.25rem; }
.expertise-card p { margin-bottom: 0; color: var(--muted); font-size: .95rem; }
.expertise-card::after { content: ""; position: absolute; width: 80px; height: 80px; right: -42px; top: -42px; border: 1px solid var(--blue-100); border-radius: 50%; }

.approach-layout { display: grid; grid-template-columns: minmax(260px, .65fr) minmax(0, 1.35fr); gap: 90px; position: relative; z-index: 1; }
.approach-intro { position: sticky; top: 130px; align-self: start; }
.approach-intro h2 { font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1.08; letter-spacing: -.04em; }
.approach-intro p { color: #b9c9d8; }
.steps { counter-reset: step; }
.step { counter-increment: step; display: grid; grid-template-columns: 68px 1fr; gap: 22px; padding: 28px 0; border-top: 1px solid rgba(255,255,255,.16); }
.step:last-child { border-bottom: 1px solid rgba(255,255,255,.16); }
.step::before { content: "0" counter(step); color: var(--blue-500); font-weight: 800; letter-spacing: .12em; }
.step h3 { margin-bottom: 8px; font-size: 1.28rem; }
.step p { margin-bottom: 0; color: #aebfce; }

.contact-panel { display: grid; grid-template-columns: 1.15fr .85fr; gap: 70px; padding: 60px; border: 1px solid var(--line); border-radius: 26px; box-shadow: var(--shadow); background: var(--white); }
.contact-panel h2 { margin-bottom: 20px; color: var(--navy-950); font-size: clamp(2.3rem, 4vw, 3.7rem); line-height: 1.06; letter-spacing: -.04em; }
.contact-panel p { color: var(--muted); }
.contact-details { display: grid; align-content: center; gap: 20px; }
.detail { padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.detail:last-child { border-bottom: 0; }
.detail-label { display: block; margin-bottom: 5px; color: var(--blue-600); font-size: .72rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.detail-value { color: var(--navy-950); font-weight: 700; }

.site-footer { padding: 0 0 32px; color: #aebfce; background: #051321; }
.funding-strip { min-height: 88px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 19px 0; border-bottom: 1px solid rgba(255,255,255,.13); color: var(--white); text-decoration: none; }
.funding-strip img { display: block; width: min(430px, 62%); height: auto; }
.funding-strip > span { flex: 0 0 auto; font-size: .84rem; font-weight: 750; letter-spacing: .04em; }
.funding-strip:hover > span { color: #79c8f4; }
.footer-row { display: flex; justify-content: space-between; gap: 20px; align-items: center; }
.footer-row { padding-top: 30px; }
.footer-row p { margin-bottom: 0; font-size: .86rem; }
.footer-brand { color: var(--white); font-weight: 800; letter-spacing: .11em; }

.subpage-hero { padding: 165px 0 86px; background: linear-gradient(125deg, #fff 0%, #fff 56%, #edf7fd 100%); }
.subpage-hero h1 { max-width: 960px; margin-bottom: 25px; font-size: clamp(2.7rem, 5.5vw, 5.3rem); }
.subpage-lead { max-width: 780px; margin-bottom: 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.25rem); }
.project-summary { display: grid; grid-template-columns: 1fr 340px; gap: 80px; align-items: start; }
.project-summary h2 { color: var(--navy-950); font-size: clamp(2rem, 3.5vw, 3rem); line-height: 1.12; letter-spacing: -.035em; }
.project-summary p { color: var(--muted); }
.project-facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--line); }
.project-fact { padding: 22px 24px; background: var(--white); }
.project-fact span { display: block; margin-bottom: 5px; color: var(--blue-600); font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.project-fact strong { color: var(--navy-950); font-size: 1.08rem; }
.project-sheet { max-width: 860px; margin: 0 auto; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); background: var(--white); }
.project-sheet img { display: block; width: 100%; height: auto; }
.project-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.project-funding { max-width: 580px; margin: 48px auto 0; padding-top: 34px; border-top: 1px solid var(--line); text-align: center; }
.project-funding img { display: block; width: 100%; height: auto; }
.back-link { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: var(--blue-600); text-decoration: none; font-weight: 750; }
.back-link:hover { color: var(--navy-900); }

.reveal { opacity: 0; transform: translateY(22px); transition: opacity .65s ease, transform .65s ease; }
.reveal.visible { opacity: 1; transform: none; }

:focus-visible { outline: 3px solid rgba(17,149,230,.45); outline-offset: 4px; }

@media (max-width: 940px) {
  .menu-toggle { display: block; }
  .nav-panel { position: absolute; inset: 82px 0 auto; display: none; padding: 28px 20px 34px; border-bottom: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 35px rgba(7,24,43,.1); }
  .menu-open .nav-panel { display: block; }
  .nav-links { align-items: stretch; flex-direction: column; gap: 4px; }
  .nav-links a { padding: 10px 0; font-size: 1rem; }
  .nav-links a::after { display: none; }
  .nav-tools { margin-top: 18px; }
  .hero { min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero-visual { min-height: 390px; max-width: 520px; width: 100%; margin: -10px auto 0; }
  .about-grid, .approach-layout, .contact-panel, .project-summary { grid-template-columns: 1fr; gap: 50px; }
  .expertise-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-intro { position: static; }
}

@media (max-width: 640px) {
  .nav-wrap, .container { width: min(calc(100% - 30px), var(--max)); }
  .brand-sub { display: none; }
  .hero { padding-top: 125px; }
  .hero-grid { gap: 32px; }
  .hero-visual { min-height: 300px; }
  .system-core { inset: 20% 9% 6% 16%; }
  .section { padding: 82px 0; }
  .section-heading { margin-bottom: 38px; }
  .expertise-grid, .fact-row { grid-template-columns: 1fr; }
  .expertise-card { min-height: auto; }
  .card-number { margin-bottom: 30px; }
  .contact-panel { padding: 34px 25px; border-radius: 18px; }
  .funding-strip { align-items: flex-start; flex-direction: column; gap: 15px; }
  .funding-strip img { width: min(100%, 280px); }
  .footer-row { align-items: flex-start; flex-direction: column; }
}

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