/* ============================================================
   SPACE::LAB — space.saske.sk
   Department of Space Physics · IEP SAS · Košice
   Design tokens per client brief (navy / Space Grotesk / mono)
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* Surfaces */
  --bg: #1C2033;            /* Deep Space Navy — primary background */
  --surface: #252A40;       /* Dark Slate — card / surface bg */
  --surface-2: #2A3047;     /* slightly lifted */
  --border: #2E3450;        /* hairline border / divider */

  /* Brand — confined to logo + nav only */
  --science-blue: #005A99;  /* LAB wordmark + orbital + SK active */
  --solar-yellow: #FDC300;  /* ONLY the Open Positions button */
  --pale-yellow: #FFE60B;   /* Open Positions hover */

  /* Neutral interactive (hovers, underlines, links) */
  --sky-blue: #C8CFE0;      /* cool light gray — replaces all body accent */

  /* Text */
  --text: #FFFFFF;
  --text-muted: #8A93A8;

  /* Type — Titillium Web (institutional, ESA-flavoured) + mono for data */
  --font-display: 'Titillium Web', system-ui, sans-serif;
  --font-body: 'Titillium Web', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --fs-display: clamp(40px, 6vw, 56px);
  --fs-h1: clamp(32px, 4.5vw, 40px);
  --fs-h2: clamp(24px, 3vw, 28px);
  --fs-h3: 20px;
  --fs-body: 16px;
  --fs-caption: 13px;
  --fs-data: 14px;

  /* Layout */
  --maxw: 1200px;
  --pad-x: 24px;
  --section-y: 120px;
  --radius: 12px;
  --glass: rgba(37, 42, 64, 0.55);
  --glass-border: rgba(255, 255, 255, 0.08);
  --lift-shadow: 0 18px 44px -18px rgba(0, 0, 0, 0.55);
  --hairline-grad: linear-gradient(90deg, rgba(200,207,224,.5), rgba(200,207,224,0));

  /* Chrome */
  --nav-h: 72px;
}

/* ---------- RESET ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 700px at 85% -5%, rgba(0,90,153,0.16), transparent 60%),
    radial-gradient(1000px 800px at -10% 45%, rgba(0,90,153,0.10), transparent 55%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
html { scrollbar-width: thin; scrollbar-color: var(--border) var(--bg); }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--sky-blue); color: var(--bg); }

/* ---------- TYPE ---------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: 0.02em;
}
.display { font-size: var(--fs-display); font-weight: 700; letter-spacing: 0.01em; line-height: 1.05; }
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); }
p { margin: 0 0 1em; max-width: 68ch; }
.lede { font-size: 19px; color: var(--text-muted); line-height: 1.7; }

/* Mono data / eyebrow */
.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--fs-caption);
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 0 0 18px;
  display: inline-block;
  white-space: nowrap;
}
.eyebrow--muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); font-size: var(--fs-data); letter-spacing: 0.02em; }
.dim { color: var(--text-muted); }
.cc { color: var(--text); }      /* :: now neutral in body */

/* ---------- LAYOUT ---------- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-left: var(--pad-x); padding-right: var(--pad-x); }
section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section-tight { padding-top: 80px; padding-bottom: 80px; }

/* Neutral section-opener rule — gradient hairline */
.rule {
  width: 72px; height: 2px;
  background: var(--hairline-grad);
  border: 0; margin: 0 0 28px;
}

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--nav-h);
  display: flex; align-items: center;
  transition: background .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(28, 32, 51, 0.82);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--border);
}
.nav .wrap { display: flex; align-items: center; gap: 32px; width: 100%; }

.logo { display: flex; align-items: center; }
.logo img { height: 34.5px; width: auto; display: block; margin-left: -4px; }
.footer__brand .logo img { height: 39px; margin-left: -5px; }
.logo img.logo-light { display: none; }
@media print {
  .logo img.logo-dark { display: none; }
  .logo img.logo-light { display: block; }
}

.nav-links { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav-links a {
  font-size: 15px; color: var(--text-muted); font-weight: 500; white-space: nowrap;
  position: relative; padding: 6px 0; transition: color .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--text); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--sky-blue);
}

.nav-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); }
.lang button { background: none; border: 0; color: var(--text-muted); cursor: pointer; font-family: inherit; font-size: inherit; padding: 2px 4px; }
.lang button.on { color: var(--science-blue); font-weight: 700; }
.lang span { opacity: .4; }

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--font-body); font-weight: 600; font-size: 15px;
  padding: 11px 24px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 28px -12px rgba(0,0,0,.6); }
.btn .arr { transition: transform .15s ease; }
.btn:hover .arr { transform: translateX(3px); }
.btn--solar { background: var(--solar-yellow); color: var(--bg); }
.btn--solar:hover { background: var(--pale-yellow); }
.btn--sky { background: #FFFFFF; color: var(--bg); font-weight: 700; }
.btn--sky:hover { background: #E6EAF2; }
.btn--ghost { background: transparent; border-color: var(--border); color: var(--text); }
.btn--ghost:hover { border-color: var(--sky-blue); color: var(--sky-blue); }
.btn--ghost-solar { background: transparent; border: 1px solid var(--border); color: var(--text-muted); font-weight: 400; }
.btn--ghost-solar:hover { border-color: var(--sky-blue); color: var(--text); }
.btn--lg { padding: 14px 30px; font-size: 16px; }

/* Hamburger */
.hamburger { display: none; background: none; border: 0; cursor: pointer; flex-direction: column; gap: 5px; padding: 6px; margin-left: auto; }
.hamburger span { width: 24px; height: 2px; background: var(--text); transition: .2s; }

/* Mobile overlay menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  display: none; flex-direction: column; padding: calc(var(--nav-h) + 24px) var(--pad-x) 40px;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { font-family: var(--font-display); font-size: 26px; font-weight: 700; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu a.active { color: var(--sky-blue); }
.mobile-menu .btn { margin-top: 24px; align-self: flex-start; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding-top: var(--nav-h); overflow: hidden;
  background: var(--bg);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.hero__starfield { position: absolute; inset: 0; z-index: 1; }
.hero__veil {
  position: absolute; inset: 0; z-index: 2;
  background:
    linear-gradient(90deg, var(--bg) 8%, rgba(28,32,51,.78) 42%, rgba(28,32,51,.15) 75%, rgba(28,32,51,.05) 100%),
    linear-gradient(180deg, transparent 78%, var(--bg) 100%);
}
.hero .wrap { position: relative; z-index: 3; width: 100%; }
.hero__inner { max-width: 760px; padding: 60px 0; }
.hero h1 { margin: 0 0 22px; }
.hero .sub { font-family: var(--font-body); font-weight: 300; font-size: 17px; color: var(--text-muted); letter-spacing: normal; line-height: 1.7; max-width: 60ch; margin: 0 0 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 56px; }
.stats { display: flex; flex-wrap: wrap; gap: 0; border-top: 1px solid rgba(255,255,255,.12); }
.stat { padding: 20px 48px 0 0; margin-right: 48px; position: relative; }
.stat::before { content: ""; position: absolute; top: -1px; left: 0; width: 36px; height: 1px; background: #FFFFFF; }
.stat__val { font-family: var(--font-display); font-size: 38px; font-weight: 900; letter-spacing: 0.01em; color: #FFFFFF; line-height: 1; margin-bottom: 8px; }
.stat__label { font-size: 14px; color: var(--text-muted); max-width: 22ch; }

/* Scroll indicator */
.scroll-ind {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em; color: var(--text-muted); text-transform: uppercase;
}
.scroll-ind .arr { animation: bob 1.8s ease-in-out infinite; }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

/* ---------- SECTION HEAD ---------- */
/* Option 1 — clear surface alternation: navy slab / lifted band, hairline separated */
main > section { position: relative; isolation: isolate; }
main > section > .wrap { position: relative; z-index: 1; }
#pillars::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none; background-repeat: no-repeat;
  background-image:
    radial-gradient(1px 1px at 12% 18%, rgba(255,255,255,.32), transparent),
    radial-gradient(1px 1px at 28% 64%, rgba(255,255,255,.26), transparent),
    radial-gradient(1px 1px at 44% 32%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 62% 74%, rgba(255,255,255,.24), transparent),
    radial-gradient(1px 1px at 76% 22%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 88% 58%, rgba(255,255,255,.26), transparent),
    radial-gradient(1px 1px at 8% 84%, rgba(255,255,255,.22), transparent),
    radial-gradient(1px 1px at 36% 90%, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 54% 12%, rgba(255,255,255,.26), transparent),
    radial-gradient(1px 1px at 70% 44%, rgba(255,255,255,.2), transparent),
    radial-gradient(1px 1px at 92% 84%, rgba(255,255,255,.24), transparent),
    radial-gradient(1px 1px at 18% 46%, rgba(255,255,255,.2), transparent);
}
#pillars > .wrap { position: relative; z-index: 1; }
.sec-head { margin-bottom: 56px; max-width: 720px; }
.sec-head h2 { margin: 0 0 16px; }

/* ---------- GRID / CARDS ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-radius: var(--radius); padding: 24px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.card--link:hover { border-color: var(--sky-blue); transform: translateY(-3px); box-shadow: var(--lift-shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.card h3 { margin: 0 0 10px; }
.card p { color: var(--text-muted); margin: 0; }
.card__more { margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--sky-blue); letter-spacing: .04em; display: inline-flex; gap: 7px; }

/* Pillar card with circular media */
.pillar { text-align: left; }
.pillar__circle {
  display: block; width: 220px; height: 220px; border-radius: 50%; margin-bottom: 32px;
  border: 2px solid #2E3450; position: relative; overflow: hidden;
  background: var(--surface-2); flex: none;
  box-shadow: 0 0 0 6px rgba(37,42,64,.45), 0 24px 48px -20px rgba(0,0,0,.6);
  transition: transform .25s ease, border-color .25s ease;
}
.pillar:hover .pillar__circle { transform: scale(1.03); border-color: rgba(200,207,224,.5); }
.pillar__circle img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.pillar__circle::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: inset 0 0 20px rgba(0,0,0,0.5); pointer-events: none;
}
.pillar .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: .2em; }
.pillar h3 { font-size: 22px; margin: 12px 0 12px; text-transform: uppercase; letter-spacing: .01em; }

/* Badge */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; border: 1px solid var(--border); color: var(--text-muted);
}
.badge--esa { color: var(--sky-blue); border-color: var(--border); }
.badge--active { color: #4be38f; border-color: rgba(75,227,143,.4); }
.badge--active .dot { width: 6px; height: 6px; border-radius: 50%; background: #4be38f; box-shadow: 0 0 8px #4be38f; }
.badge--done { color: var(--text-muted); }

/* ESA cooperation columns */
.coop { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--border); }
.coop__col { padding: 36px 28px 36px 0; border-right: 1px solid var(--border); position: relative; transition: background .2s ease; }
.coop__col::before { content: ""; position: absolute; top: -1px; left: 0; width: 0; height: 1px; background: #FFFFFF; transition: width .3s ease; }
.coop__col:hover::before { width: 48px; }
.coop__col:last-child { border-right: 0; padding-right: 0; }
.coop__col h4 { font-family: var(--font-display); font-weight: 700; font-size: 18px; letter-spacing: .02em; text-transform: uppercase; color: #FFFFFF; margin: 0 0 14px; }
.coop__col p { font-size: 15px; color: var(--text-muted); margin: 0 0 16px; }
.coop__col a { font-family: var(--font-mono); font-size: 12px; color: var(--sky-blue); letter-spacing: .04em; }

/* Partners */
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.partner {
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  min-height: 116px; padding: 20px; background: var(--glass);
  border: 1px solid var(--glass-border); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  font-weight: 600; font-size: 15px; color: var(--text-muted);
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.partner:hover { border-color: var(--sky-blue); color: var(--text); transform: translateY(-2px); box-shadow: var(--lift-shadow); }
.partner small { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: 8px; }

/* Split / public teaser */
.split { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.teaser-card {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 26px 28px; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.teaser-card:hover { border-color: var(--sky-blue); transform: translateY(-2px); box-shadow: var(--lift-shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.teaser-card .arr { transition: transform .18s ease; }
.teaser-card:hover .arr { transform: translateX(4px); }
.teaser-card h4 { font-size: 18px; margin: 0 0 4px; }
.teaser-card p { margin: 0; font-size: 14px; color: var(--text-muted); }
.teaser-card .arr { color: var(--sky-blue); font-size: 22px; }

/* Band (alt bg section) — a clearly lifted slab, hairline separated from the navy sections */
.band {
  background:
    linear-gradient(180deg, rgba(255,255,255,.028), rgba(255,255,255,.012) 42%, rgba(255,255,255,.02)),
    linear-gradient(180deg, rgba(46,52,80,.92), rgba(41,46,72,.86));
  border-top: 1px solid rgba(184,196,224,.16); border-bottom: 1px solid rgba(184,196,224,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045), inset 0 -1px 0 rgba(255,255,255,.03);
}

/* Mission statement */
.mission {
  background: var(--glass); border: 1px solid var(--glass-border);
  border-left: 3px solid var(--sky-blue); border-radius: var(--radius);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  padding: 44px 48px;
}
.mission p { font-family: var(--font-display); font-weight: 700; font-size: clamp(22px, 3vw, 30px); line-height: 1.35; color: var(--text); max-width: 50ch; margin: 0; letter-spacing: 0.02em; }
.mission-note { font-size: 17px; color: var(--text-muted); max-width: 52ch; margin: 22px 0 0; }
.ambition { font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 25px); line-height: 1.4; letter-spacing: 0.01em; color: var(--text); max-width: 40ch; margin: 72px 0 8px; }
.mission .mission__ambition { font-family: var(--font-body); font-weight: 400; font-size: 17px; line-height: 1.6; letter-spacing: normal; color: var(--text-muted); max-width: 52ch; margin: 20px 0 0; padding-top: 20px; border-top: 1px solid var(--border); }

/* ---------- TIMELINE ---------- */
.timeline { position: relative; }
.timeline__track {
  display: flex; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory;
  padding-bottom: 28px; scrollbar-width: thin; scrollbar-color: var(--border) transparent;
}
.timeline__track::-webkit-scrollbar { height: 6px; }
.timeline__track::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.tl-item {
  scroll-snap-align: start; flex: 0 0 380px; padding: 0 36px 0 0; position: relative;
}
.tl-item::before {
  content: ""; position: absolute; top: 7px; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, rgba(200,207,224,.35), var(--border));
}
.tl-item .node { position: relative; width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--text-muted); margin-bottom: 26px; transition: border-color .2s ease, box-shadow .2s ease; }
.tl-item:hover .node { border-color: #FFFFFF; box-shadow: 0 0 12px rgba(200,207,224,.4); }
.tl-item .yr { font-family: var(--font-mono); font-size: 22px; font-weight: 400; color: #FFFFFF; margin-bottom: 12px; }
.tl-item h3 { font-size: 19px; margin: 0 0 12px; line-height: 1.3; }
.tl-item p { font-size: 15px; color: var(--text-muted); margin: 0; }
.tl-hint { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); margin-top: 6px; display: flex; align-items: center; gap: 8px; }

/* ---------- STAFF ---------- */
.staff-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.staff {
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius);
  padding: 28px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.staff:hover { border-color: var(--sky-blue); transform: translateY(-2px); box-shadow: var(--lift-shadow), inset 0 1px 0 rgba(255,255,255,.05); }
.staff__photo {
  width: 132px; height: 132px; border-radius: 50%; margin-bottom: 22px;
  background: var(--surface-2); border: 1px solid var(--border);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-weight: 700; font-size: 34px; color: var(--text-muted);
}
.staff__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.staff h3 { font-size: 18px; margin: 0 0 4px; }
.staff .title { font-size: 14px; color: var(--text-muted); margin: 0 0 14px; }
.staff .focus { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: .03em; margin: 0 0 16px; }
.staff .mail { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); opacity: 0; transition: opacity .18s ease; }
.staff:hover .mail { opacity: 1; }
.staff .mail:hover { color: var(--sky-blue); }

/* ---------- FEATURE (observatory) ---------- */
.feature { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.feature__img { width: 100%; height: 420px; object-fit: cover; }
.feature__body { padding: 40px; background: var(--surface); }
.feature__data { display: flex; flex-wrap: wrap; gap: 32px; margin-top: 24px; }
.feature__data .k { font-family: var(--font-mono); font-size: 13px; color: var(--text-muted); letter-spacing: .04em; }
.feature__data .k b { display: block; color: #FFFFFF; font-size: 20px; margin-bottom: 4px; }

/* ---------- FOOTER ---------- */
.footer { background: linear-gradient(180deg, rgba(22,26,43,.6), #161A2B); border-top: 1px solid var(--glass-border); padding: 80px 0 36px; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer__brand p { font-size: 15px; color: var(--text-muted); max-width: 30ch; margin: 18px 0 0; }
.footer__col h4 { font-family: var(--font-mono); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 16px; }
.footer__col a { display: block; font-size: 15px; color: var(--text-muted); padding: 6px 0; transition: color .15s; }
.footer__col a:hover { color: var(--sky-blue); }
.footer__bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 28px; border-top: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.social { display: flex; gap: 8px; }
.social a { width: 38px; height: 38px; border: 1px solid var(--border); border-radius: 6px; display: flex; align-items: center; justify-content: center; color: var(--text-muted); transition: .15s; }
.social a:hover { color: var(--sky-blue); border-color: var(--sky-blue); }
.social svg { width: 17px; height: 17px; }

/* ---------- EDIT MODE ---------- */
.edit-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  display: flex; align-items: center; gap: 9px;
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-body); font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: 999px; cursor: pointer;
  box-shadow: 0 8px 30px rgba(0,0,0,.4); transition: .15s;
}
.edit-fab:hover { border-color: var(--sky-blue); }
.edit-fab .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--text-muted); }
body.editing .edit-fab { background: var(--sky-blue); color: var(--bg); border-color: var(--sky-blue); }
body.editing .edit-fab .dot { background: var(--bg); box-shadow: none; }

.edit-tools {
  position: fixed; right: 22px; bottom: 74px; z-index: 200;
  display: none; flex-direction: column; gap: 8px;
}
body.editing .edit-tools { display: flex; }
.edit-tools button {
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-mono); font-size: 12px; letter-spacing: .04em;
  padding: 9px 14px; border-radius: 8px; cursor: pointer; text-align: left; transition: .15s;
}
.edit-tools button:hover { border-color: var(--sky-blue); color: var(--sky-blue); }

/* editable affordance */
body.editing [data-edit] { cursor: text; outline: 1px dashed rgba(200,207,224,.45); outline-offset: 4px; border-radius: 3px; transition: outline-color .15s, background .15s; }
body.editing [data-edit]:hover { outline-color: var(--sky-blue); background: rgba(200,207,224,.07); }
body.editing [data-edit]:focus { outline: 2px solid var(--sky-blue); background: rgba(200,207,224,.1); }
[data-edit]:focus { outline: none; }

.edit-toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px);
  background: var(--surface); border: 1px solid var(--border); color: var(--text);
  font-family: var(--font-mono); font-size: 12px; padding: 10px 18px; border-radius: 8px;
  z-index: 220; opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
}
.edit-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- RESPONSIVE ---------- */
@media (max-width: 1100px) {
  .footer__top { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .nav-links, .nav-right .lang, .nav-right .btn { display: none; }
  .hamburger { display: flex; }
  .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; }
  .coop { grid-template-columns: 1fr 1fr; }
  .coop__col { border-right: 0; padding-right: 28px; border-bottom: 1px solid var(--border); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .staff-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  :root { --section-y: 64px; }
  .grid-3, .grid-4, .grid-2, .partners, .staff-grid, .coop { grid-template-columns: 1fr; }
  .stats { border-top: 0; }
  .stat { padding: 14px 0 0; margin-right: 28px; }
  .stat__val { font-size: 26px; }
  .mission { padding: 28px 24px; }
  .feature__body { padding: 26px; }
  .tl-item { flex-basis: 280px; }
  .footer__top { grid-template-columns: 1fr; gap: 28px; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--sky-blue); outline-offset: 3px; border-radius: 4px; }

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}


/* ============================================================
   SHARED PAGE SCAFFOLDING
   Sub-page patterns used by about / research / infrastructure /
   facility-* / results / public / contact / mission-* pages.
   Per-page deltas (hero widths, panel offsets) stay in the
   page's own <style> block and override these.
   ============================================================ */

/* Sub-page hero — image band under the fixed nav */
.page-hero { position: relative; padding: calc(var(--nav-h) + 96px) 0 96px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-hero__bg { position: absolute; inset: 0; z-index: 0; }
.page-hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,32,51,.6), var(--bg) 92%), linear-gradient(90deg, var(--bg) 10%, rgba(28,32,51,.2) 80%); }
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 18ch; margin: 0 0 20px; }
.page-hero .lede { max-width: 64ch; }

/* Section sub-navigation with scroll-spy underline */
.subnav { position: sticky; top: var(--nav-h); z-index: 50; background: rgba(28,32,51,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--glass-border); }
.subnav .wrap { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.subnav .wrap::-webkit-scrollbar { display: none; }
.subnav a { font-size: 14px; font-weight: 600; color: var(--text-muted); padding: 16px 0; white-space: nowrap; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
.subnav a:hover { color: var(--text); }
.subnav a.active { color: #fff; border-bottom-color: #fff; }

/* Breadcrumb above a detail-page headline */
.crumb { display: flex; gap: 10px; align-items: center; font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 24px; }
.crumb a { color: var(--text-muted); }
.crumb a:hover { color: #fff; }

/* Standfirst / lead paragraph on detail pages */
.standfirst { font-size: 19px; line-height: 1.65; color: var(--text); max-width: 66ch; margin: 0; }

/* Sticky "at a glance" side panel */
.glance { position: sticky; top: calc(var(--nav-h) + 28px); background: var(--glass); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 26px; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.glance h3 { font-family: var(--font-mono); font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 18px; }
.glance dl { display: grid; grid-template-columns: 1fr; gap: 14px; margin: 0; }
.glance dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.glance dd { margin: 0; font-size: 14px; line-height: 1.5; color: var(--text); }
.glance .btn { width: 100%; justify-content: center; }

/* Specification table */
.spec { width: 100%; border-collapse: collapse; margin: 8px 0 26px; font-size: 14.5px; }
.spec th, .spec td { text-align: left; vertical-align: top; padding: 12px 0; border-bottom: 1px solid var(--border); }
.spec th { width: 34%; font-family: var(--font-mono); font-weight: 400; font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); padding-right: 22px; }
.spec td { color: var(--text); line-height: 1.55; }

/* Facility layout: reading column + glance panel */
.fac { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; margin-top: 8px; }
.fac__body { min-width: 0; max-width: 68ch; }
.fac__body p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin: 0 0 18px; }
.fac__body p.lead { font-size: 17px; color: var(--text); }
.fac__body h3 { font-size: 20px; margin: 38px 0 14px; }

/* Facility index cards */
.faccard { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.faccard article { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.faccard img { width: 100%; height: 220px; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.faccard .in { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.faccard .meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.faccard h3 { margin: 0; font-size: 22px; }
.faccard p { margin: 0; }
.faccard .cap { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: .03em; }
.faccard .card__more { margin-top: auto; padding-top: 6px; }

/* In-body photograph + caption */
.shot { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); margin: 0 0 12px; }
.shotcap { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin: 0 0 34px; }
.shotcap .cred, .portrait figcaption .cred, figcaption .cred { display: block; font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); opacity: .72; margin-top: 6px; }

/* Text + portrait figure side by side */
.fig-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; align-items: start; }
.fig-split p:first-child { margin-top: 0; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
.portrait figcaption { font-size: 13px; line-height: 1.6; color: var(--text-muted); margin-top: 10px; }

/* Bulleted capability list */
.ulist { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.ulist li { position: relative; padding-left: 18px; font-size: 15.5px; line-height: 1.6; color: var(--text-muted); }
.ulist li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--text-muted); opacity: .6; }
.ulist li b { color: var(--text); font-weight: 600; }

/* Pull quote and attributed quotation */
.pullquote { border-left: 2px solid var(--sky-blue); padding: 2px 0 2px 22px; margin: 30px 0; font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.5; color: var(--text); letter-spacing: .01em; }
.quote { margin: 28px 0; padding: 2px 0 2px 22px; border-left: 2px solid var(--sky-blue); }
.quote p { font-size: 17px; line-height: 1.65; color: var(--text); margin: 0 0 12px; }
.quote cite { font-style: normal; font-family: var(--font-mono); font-size: 12px; letter-spacing: .05em; color: var(--text-muted); }
.credit-note { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); opacity: .72; padding-top: 8px; }

/* Enquiry band */
.enquire { border: 1px solid var(--glass-border); background: var(--glass); border-radius: var(--radius); padding: 40px; display: flex; flex-wrap: wrap; gap: 28px; align-items: center; justify-content: space-between; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.enquire h2 { margin: 0 0 8px; font-size: 26px; }
.enquire p { margin: 0; color: var(--text-muted); max-width: 56ch; font-size: 15.5px; }

/* Long-form detail article (mission pages) */
.mhero { position: relative; padding: calc(var(--nav-h) + 88px) 0 80px; overflow: hidden; border-bottom: 1px solid var(--border); }
.mhero__bg { position: absolute; inset: 0; z-index: 0; }
.mhero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.mhero__veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(28,32,51,.62), var(--bg) 94%), linear-gradient(90deg, var(--bg) 8%, rgba(28,32,51,.15) 82%); }
.mhero .wrap { position: relative; z-index: 2; }
.mhero h1 { max-width: 20ch; margin: 0 0 22px; }
.marticle { padding: 88px 0; }
.marticle .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 64px; align-items: start; }
.mbody { min-width: 0; max-width: 68ch; }
.mbody h2 { font-size: 26px; margin: 56px 0 16px; letter-spacing: .01em; }
.mbody h2:first-child { margin-top: 0; }
.mbody p { font-size: 16px; line-height: 1.75; color: var(--text-muted); margin: 0 0 18px; }
.mbody p strong { color: var(--text); font-weight: 600; }
.mbody .lead { font-size: 17px; color: var(--text); }
.mbody figure { margin: 34px 0; }
.mbody figure img, figure.plate img, figure.diagram img { width: 100%; height: auto; display: block; border-radius: var(--radius); border: 1px solid var(--border); }
figure.narrow { max-width: 670px; }
figure.plate img, figure.diagram img { background: #fff; }
.mbody figcaption { font-size: 13.5px; line-height: 1.6; color: var(--text-muted); margin-top: 12px; }
figure a.zoom { display: block; }
figure a.zoom:hover img { border-color: var(--sky-blue); }
.people { border-top: 1px solid var(--border); margin-top: 44px; padding-top: 22px; }
.people p { font-size: 15px; }
.backlink { border-top: 1px solid var(--border); margin-top: 52px; padding-top: 26px; }
.linklist { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.linklist a { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .02em; color: var(--sky-blue); word-break: break-word; }
.linklist a:hover { text-decoration: underline; }

@media (max-width: 1000px) {
  .fac, .marticle .wrap { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .glance { position: static; order: -1; }
  .fig-split { grid-template-columns: minmax(0, 1fr); }
  .portrait img { max-width: 420px; }
}
@media (max-width: 820px) {
  .faccard { grid-template-columns: 1fr; }
}
