*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:  #080808;
  --dark:   #0e0e0e;
  --border: #1c1c1c;
  --dim:    #555;
  --mid:    #888;
  --light:  #ccc;
  --white:  #f2f2f2;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: #2a2a2a; }

/* ─── NAV ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 48px;
  transition: background 0.4s, border-color 0.4s;
}
#nav.solid {
  background: rgba(8,8,8,0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(16px);
}
.nav-logo {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-decoration: none;
  color: var(--white);
}
#nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}
#nav ul a {
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
#nav ul a:hover, .nav-active { color: var(--white) !important; }
.nav-careers {
  font-size: 13px;
  font-weight: 500;
  color: var(--white);
  text-decoration: none;
  letter-spacing: 0.06em;
  border: 1px solid #2a2a2a;
  padding: 8px 20px;
  border-radius: 2px;
  transition: border-color 0.2s;
}
.nav-careers:hover { border-color: #555; }

@media (max-width: 760px) {
  #nav ul { display: none; }
  #nav { padding: 0 24px; }
}

/* ─── HERO ──────────────────────────────────────────── */
#hero {
  position: relative;
  height: 100vh;
  min-height: 680px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-visual {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 120% 60% at 62% 28%, #0e1b30 0%, transparent 58%),
    radial-gradient(ellipse 70% 70% at 15% 85%, #080c0a 0%, transparent 55%),
    linear-gradient(170deg, #0b1322 0%, #060609 45%, #080808 100%);
}
.hero-visual::before {
  content: '';
  position: absolute;
  top: 50%; left: 58%;
  transform: translate(-50%, -50%);
  width: 220px; height: 220px;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 50%;
  box-shadow: 0 0 0 50px rgba(255,255,255,0.012), 0 0 0 100px rgba(255,255,255,0.006);
}
.hero-visual::after {
  content: '';
  position: absolute;
  left: 0; right: 0; top: 52%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.035) 35%, rgba(255,255,255,0.035) 65%, transparent);
}
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(8,8,8,0.45) 0%, transparent 25%, transparent 55%, rgba(8,8,8,1) 100%),
    linear-gradient(to right, rgba(8,8,8,0.6) 0%, transparent 55%);
}
.hero-body {
  position: relative;
  z-index: 2;
  padding: 0 48px 110px;
  max-width: 760px;
}
#hero h1 {
  font-size: clamp(52px, 7.5vw, 96px);
  font-weight: 300;
  letter-spacing: -0.035em;
  line-height: 1.02;
  color: var(--white);
  margin-bottom: 24px;
}
.hero-desc {
  font-size: 18px;
  font-weight: 300;
  color: var(--mid);
  margin-bottom: 44px;
  letter-spacing: 0.01em;
}
.btn-solid {
  display: inline-block;
  padding: 13px 32px;
  background: var(--white);
  color: var(--black);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s;
}
.btn-solid:hover { background: #ddd; }

.hero-scroll {
  position: absolute;
  bottom: 40px; right: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.2;
}
.hero-scroll-line {
  width: 1px; height: 64px;
  background: linear-gradient(to bottom, var(--white), transparent);
  animation: scrollDrop 2.2s ease-in-out infinite;
}
@keyframes scrollDrop {
  0%   { transform: scaleY(0); transform-origin: top; opacity: 1; }
  55%  { transform: scaleY(1); transform-origin: top; opacity: 1; }
  100% { transform: scaleY(1); transform-origin: top; opacity: 0; }
}
@media (max-width: 640px) {
  .hero-body { padding: 0 24px 80px; }
  .hero-scroll { display: none; }
}

/* ─── SYSTEMS ───────────────────────────────────────── */
#systems {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.systems-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 48px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 48px;
}
.systems-list {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--border);
  margin-bottom: 40px;
}
.system-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
  cursor: default;
}
.system-item:hover .system-name { color: var(--white); }
.system-name {
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--light);
  transition: color 0.2s;
}
.system-tagline {
  font-size: 13px;
  font-weight: 400;
  color: var(--dim);
  letter-spacing: 0.04em;
}
.systems-note {
  font-size: 12px;
  color: var(--dim);
  font-weight: 300;
  font-style: italic;
  letter-spacing: 0.02em;
}
@media (max-width: 640px) {
  .systems-inner { padding: 72px 24px; }
  .system-item { flex-direction: column; gap: 6px; }
}

/* ─── ABOUT ─────────────────────────────────────────── */
#about {
  border-bottom: 1px solid var(--border);
  background: var(--dark);
}
.about-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
  max-width: 800px;
}
.about-inner h2 {
  font-size: clamp(28px, 3.5vw, 48px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 24px;
  margin-top: 24px;
}
.about-inner p {
  font-size: 16px;
  font-weight: 300;
  color: var(--mid);
  line-height: 1.8;
  max-width: 560px;
}
@media (max-width: 640px) {
  .about-inner { padding: 80px 24px; }
}

/* ─── CONTACT ───────────────────────────────────────── */
#contact {
  border-bottom: 1px solid var(--border);
}
.contact-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 120px 48px;
}
.contact-inner h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 300;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 24px 0 72px;
}
.contact-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--border);
}
.contact-cols > div {
  padding: 48px 48px 48px 0;
  border-right: 1px solid var(--border);
  margin-right: 48px;
}
.contact-cols > div:last-child {
  border-right: none; padding-right: 0; margin-right: 0;
}
.contact-cols h4 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 14px;
}
.contact-cols a {
  font-size: 15px;
  font-weight: 300;
  color: var(--white);
  text-decoration: none;
  transition: color 0.2s;
}
.contact-cols a:hover { color: var(--mid); }
@media (max-width: 760px) {
  .contact-inner { padding: 80px 24px; }
  .contact-cols { grid-template-columns: 1fr; }
  .contact-cols > div { border-right: none; border-bottom: 1px solid var(--border); padding: 36px 0; margin-right: 0; }
  .contact-cols > div:last-child { border-bottom: none; }
}

/* ─── EU / EFRE FUNDING STRIP ───────────────────────── */
#funding {
  border-bottom: 1px solid var(--border);
  background: var(--dark);
}
.funding-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  gap: 48px;
}
.funding-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
}
.funding-logos img {
  height: 48px;
  width: auto;
  /* full colour — no filter, no dimming */
}
.funding-text {
  border-left: 1px solid var(--border);
  padding-left: 48px;
}
.funding-text p {
  font-size: 12px;
  font-weight: 300;
  color: var(--dim);
  line-height: 1.75;
  margin-bottom: 8px;
  max-width: 520px;
}
.funding-text a {
  font-size: 12px;
  font-weight: 500;
  color: var(--light);
  text-decoration: none;
  border-bottom: 1px solid #2a2a2a;
  padding-bottom: 1px;
  transition: border-color 0.2s;
}
.funding-text a:hover { border-color: var(--mid); }
@media (max-width: 760px) {
  .funding-inner { flex-direction: column; align-items: flex-start; gap: 28px; padding: 36px 24px; }
  .funding-text { border-left: none; border-top: 1px solid var(--border); padding-left: 0; padding-top: 24px; }
}

/* ─── FOOTER ────────────────────────────────────────── */
footer {
  padding: 40px 48px 28px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.footer-logo {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--white);
}
.footer-links {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 12px;
  color: var(--dim);
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--mid); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer-bottom p {
  font-size: 11px;
  color: #2e2e2e;
  letter-spacing: 0.06em;
}

/* ─── SCROLL REVEALS ────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.in { opacity: 1; transform: translateY(0); }

/* ─── HARD-ENVIRONMENT REFRESH ──────────────────────── */
.hero-visual { background-image:
  linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
  linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px),
  radial-gradient(ellipse 120% 60% at 62% 28%, #0e1b30 0%, transparent 58%),
  linear-gradient(170deg, #0b1322 0%, #060609 45%, #080808 100%);
  background-size: 64px 64px, 64px 64px, auto, auto; }
.hero-kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.24em; text-transform: uppercase; color: var(--mid); margin-bottom: 28px; }
.hero-kicker::before { content: ''; display: inline-block; width: 28px; height: 1px; background: var(--mid); vertical-align: middle; margin-right: 14px; }
.hero-desc { max-width: 560px; line-height: 1.65; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-ghost { display: inline-block; padding: 13px 32px; border: 1px solid #333; color: var(--white); font-size: 13px; font-weight: 500; letter-spacing: 0.07em; text-decoration: none; border-radius: 2px; transition: border-color 0.2s; }
.btn-ghost:hover { border-color: #777; }
#environments { border-top: 1px solid var(--border); background: var(--dark); }
.env-inner { max-width: 1200px; margin: 0 auto; padding: 100px 48px; }
.env-inner h2 { font-size: clamp(28px, 3.5vw, 48px); font-weight: 300; letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 64px; }
.env-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.env-item { padding: 32px 28px 8px 0; }
.env-idx { font-size: 11px; letter-spacing: 0.2em; color: var(--dim); }
.env-item h3 { font-size: 22px; font-weight: 400; margin: 14px 0 12px; letter-spacing: -0.01em; }
.env-item p { font-size: 14px; font-weight: 300; color: var(--mid); line-height: 1.7; }
@media (max-width: 900px) { .env-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .env-inner { padding: 72px 24px; } .env-grid { grid-template-columns: 1fr; } }

/* ─── SELF-HOSTED FONT (no third-party requests) ───── */
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 300 600; font-display: swap; src: url(assets/fonts/inter-latin.woff2) format('woff2'); }
