/* SwarmCeptor: simple company page, 2026-11-04.
   Colour tokens between the TOKENS markers come from the chosen variant
   (A: Tactical Green approx. #4a5a46; B: Nardo Grey approx. #686a6c; no official hex exists).
   Dark by default, light under prefers-color-scheme: light. The hero keeps the variant colour in both.
   No web fonts (system sans), no scripts, no inline styles: the CSP allows styles from this origin only.
   EU marks are always full colour on a white panel (FE handbook ch. 11.1: no achromatic marks on websites). */

/* TOKENS:BEGIN */
:root {
  --hero-bg: #4a5a46;
  --hero-text: #f6f5ef;
  --hero-muted: #e2e7da;
  --hero-line: #6d7c68;
  --hero-accent: #c9d6b8;
  --bg: #131612;
  --bg-2: #1a1e19;
  --line: #2d352b;
  --text: #ecebe4;
  --muted: #bcc2b4;
  --faint: #a1a998;
  --link: #c6d3b6;
  --label: #adbd9c;
  --accent: #8fa47f;
  --focus: #e3ecd6;
  --logo-main: #ecebe4;
  --logo-lead: #cfe5ef;
  --logo-word: #ecebe4;
  --hero-logo-lead: #cfe5ef;
  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f4ef;
    --bg-2: #e7e9e1;
    --line: #c5cabd;
    --text: #1a1e18;
    --muted: #41483e;
    --faint: #535b4f;
    --link: #3c4a38;
    --label: #4a5a46;
    --accent: #4a5a46;
    --focus: #2f3b2c;
    --logo-main: #4a5a46;
    --logo-lead: #1a1e18;
    --logo-word: #1a1e18;
    color-scheme: light;
  }
}
/* TOKENS:END */

:root {
  --sans:
    "Segoe UI", -apple-system, BlinkMacSystemFont, system-ui, Roboto,
    "Helvetica Neue", Arial, "Liberation Sans", sans-serif;
  --wrap: 1080px;
  --gutter: 20px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  --eubar-h: 60px;
  margin: 0;
  padding-bottom: var(--eubar-h);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}

main {
  flex: 1 0 auto;
}

a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-thickness: 2px;
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -60px;
  z-index: 10;
  padding: 8px 14px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* Header */

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
}

.wordmark {
  color: var(--text);
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
}

.wordmark:hover {
  text-decoration: none;
  opacity: 0.85;
}

/* Logo (concept 5 "Constellation", 2026-11-04): inline SVG, outlined IBM Plex Sans, coloured here.
   Height 26 px puts the wordmark's capitals at 14 px. Light: Tactical Green stars, Ink lead and name;
   dark: Bone; on the green header: Cream with the Ice lead star. */

.wordmark {
  display: inline-flex;
  align-items: center;
}

.wordmark .logo {
  display: block;
  height: 26px;
  width: auto;
}

.wordmark .lg-line {
  stroke: var(--logo-main);
}

.wordmark .lg-star {
  fill: var(--logo-main);
}

.wordmark .lg-lead {
  fill: var(--logo-lead);
}

.wordmark .lg-word {
  fill: var(--logo-word);
}

.site-header.on-hero .wordmark .lg-line {
  stroke: var(--hero-text);
}

.site-header.on-hero .wordmark .lg-star,
.site-header.on-hero .wordmark .lg-word {
  fill: var(--hero-text);
}

.site-header.on-hero .wordmark .lg-lead {
  fill: var(--hero-logo-lead);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

.main-nav a,
.lang-switch a {
  display: inline-block;
  padding: 6px 2px;
  color: var(--muted);
  font-size: 15px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover,
.lang-switch a:hover {
  color: var(--text);
}

.main-nav a[aria-current="page"],
.lang-switch a[aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  border-bottom-color: var(--accent);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 0.06em;
}

.lang-switch a {
  font-size: 14px;
}

.lang-switch .sep {
  color: var(--line);
}

/* Header and hero on the home pages: the variant colour, same in light and dark mode */

.site-header.on-hero,
.intro {
  background: var(--hero-bg);
  color: var(--hero-text);
}

.site-header.on-hero .wordmark,
.site-header.on-hero .main-nav a,
.site-header.on-hero .lang-switch a {
  color: var(--hero-muted);
}

.site-header.on-hero .wordmark,
.site-header.on-hero a[aria-current="page"],
.site-header.on-hero a:hover {
  color: var(--hero-text);
}

.site-header.on-hero a[aria-current="page"] {
  border-bottom-color: var(--hero-accent);
}

.site-header.on-hero .sep {
  color: var(--hero-line);
}

.site-header.on-hero a:focus-visible,
.intro a:focus-visible {
  outline-color: var(--hero-text);
}

.intro {
  padding: clamp(40px, 9vh, 104px) 0 clamp(32px, 6vh, 64px);
}

/* Honeycomb texture (brand pattern), lines only, faded out under the text from the left and the top.
   Line #566751 on #4a5a46 is 1.2:1; the hero text keeps at least 4.8:1 even on a line. */
.intro {
  background-image:
    linear-gradient(90deg, #4a5a46 0%, #4a5a46 30%, rgba(74, 90, 70, 0) 78%),
    linear-gradient(180deg, #4a5a46 0, rgba(74, 90, 70, 0) 72px),
    url("/assets/honeycomb-hero.svg?v=7");
  background-size: auto, auto, 90px 52px;
  background-position: 0 0, 0 0, right top;
}

.intro .bar {
  display: block;
  width: 56px;
  height: 4px;
  margin: 0 0 22px;
  background: var(--hero-accent);
}

.intro h1 {
  margin: 0;
  font-size: clamp(46px, 10vw, 112px);
  font-weight: 650;
  line-height: 1;
  letter-spacing: -0.02em;
  overflow-wrap: anywhere;
}

.intro .lead {
  margin: 24px 0 0;
  max-width: 42ch;
  font-size: clamp(19px, 2.4vw, 26px);
  line-height: 1.38;
}

.intro .status {
  margin: 14px 0 0;
  color: var(--hero-muted);
}

.intro a {
  color: var(--hero-text);
}

/* EU marks panel on the EU pages.
   Full colour on white; the Smart UP slot sits after a black dividing line (FE handbook 8.7). */

.marks {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  max-width: 100%;
  margin: 28px 0 0;
  padding: 8px 14px;
  background: #ffffff;
  border-radius: 6px;
  color: #26292c;
}

.marks .fe {
  display: block;
  height: 40px;
  width: auto;
  max-width: 100%;
}

.marks .sep-line {
  align-self: stretch;
  width: 1px;
  background: #000000;
}

.marks .slot {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  width: 132px;
  padding: 2px 6px;
  border: 1px dashed #5d6166;
  color: #3a3d40;
  font-size: 11px;
  line-height: 1.25;
  text-align: center;
}


.page .marks {
  margin: 24px 0 8px;
  padding: 14px 18px;
}

.page .marks .fe {
  height: 64px;
}

.page .marks .slot {
  min-height: 64px;
  width: 150px;
}

@media (max-width: 640px) {
  .marks {
    display: flex;
    flex-wrap: wrap;
    width: 100%;
  }

  .marks .fe,
  .page .marks .fe {
    height: auto;
    width: 100%;
  }

  .marks .sep-line {
    width: 100%;
    height: 1px;
  }

  .marks .slot,
  .page .marks .slot {
    width: 100%;
    min-height: 34px;
  }
}

/* EU funding bar: fixed at the bottom of every page, closable without JavaScript
   (checkbox + label; it comes back on the next page load). Full-colour marks on a white chip
   (FE handbook 8.6, 11.1). The Smart UP logo (§ 18) goes after a black .sep-line once the operator sends it. */

body:has(.eubar-x:checked) {
  padding-bottom: 0;
}

.eubar-x {
  position: fixed;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
}

.eubar-x:checked,
.eubar-x:checked + .eubar {
  display: none;
}

.eubar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 20;
  height: var(--eubar-h);
  background: var(--bg-2);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.eubar-in {
  display: flex;
  align-items: center;
  gap: 16px;
  height: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eubar-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  height: 48px;
  padding: 5px 10px;
  background: #ffffff;
  border-radius: 4px;
  color: #2f3236;
  text-decoration: none;
}

.eubar-chip img {
  display: block;
  height: 38px;
  width: auto;
}

.eubar-chip .sep-line {
  align-self: stretch;
  width: 1px;
  background: #000000;
}

.eubar-slot {
  display: flex;
  align-items: center;
  height: 30px;
  padding: 0 6px;
  border: 1px dashed #5d6166;
  color: #2f3236;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}

.eubar-link {
  color: var(--muted);
  white-space: nowrap;
}

.eubar-close {
  position: relative;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  margin-left: auto;
  border-radius: 4px;
  cursor: pointer;
}

.eubar-close::before,
.eubar-close::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 15px;
  height: 2px;
  background: var(--muted);
}

.eubar-close::before {
  transform: rotate(45deg);
}

.eubar-close::after {
  transform: rotate(-45deg);
}

.eubar-close:hover::before,
.eubar-close:hover::after {
  background: var(--text);
}

.eubar-x:focus-visible + .eubar .eubar-close {
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

@media (max-width: 640px) {
  body {
    --eubar-h: 48px;
  }

  .eubar-in {
    gap: 10px;
    padding: 0 12px;
  }

  .eubar-chip {
    height: 36px;
    gap: 6px;
    padding: 4px 6px;
  }

  .eubar-chip img {
    height: 28px;
  }

  .eubar-slot {
    height: 24px;
    padding: 0 4px;
    font-size: 10px;
  }

  .eubar-slot .note,
  .eubar-link {
    display: none;
  }
}

/* Home sections: research areas and R&D collaboration */

.section {
  padding: clamp(40px, 7vh, 72px) 0;
}

.section + .section {
  border-top: 1px solid var(--line);
}

.section h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 62ch;
  margin: 0 0 24px;
  color: var(--muted);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card {
  padding: 18px 20px 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: 6px;
}

.card h3 {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 650;
  line-height: 1.3;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.mail-label {
  margin: 0 0 4px;
  color: var(--faint);
  font-size: 15px;
}

/* Contact */

.contact {
  padding: 36px 0 clamp(48px, 9vh, 96px);
}

.label {
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--label);
}

.mail {
  font-size: clamp(20px, 3vw, 28px);
  overflow-wrap: anywhere;
}

/* Legal, EU and 404 pages */

.page {
  padding: clamp(36px, 7vh, 72px) 0 clamp(56px, 10vh, 100px);
}

.page .wrap > div {
  max-width: 760px;
}

.page h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 5vw, 46px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

.page h2 {
  margin: 36px 0 8px;
  font-size: 20px;
  font-weight: 650;
  line-height: 1.3;
}

.page p,
.page ul {
  margin: 0 0 14px;
}

.page ul {
  padding-left: 22px;
}

.page li {
  margin-bottom: 6px;
}

.updated,
.lede {
  color: var(--muted);
}

.updated {
  font-size: 15px;
}

.back {
  margin-top: 36px;
}

.eu-entry h2 {
  margin-top: 28px;
}

.facts {
  margin: 0 0 18px;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: minmax(150px, 220px) 1fr;
  gap: 4px 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--faint);
  font-size: 15px;
}

.facts dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.cofund {
  margin-top: 18px;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-2);
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer .wrap {
  padding-top: 28px;
  padding-bottom: 32px;
}

.site-footer a {
  color: var(--muted);
}

.site-footer a:hover {
  color: var(--text);
}

.legal {
  font-style: normal;
}

.legal p {
  margin: 0 0 4px;
}

.legal .brand-line {
  color: var(--text);
  margin-bottom: 10px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.copy {
  margin: 14px 0 0;
  color: var(--faint);
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .site-header .wrap {
    min-height: 58px;
  }

  .wordmark {
    font-size: 17px;
  }

  .wordmark .logo {
    height: 22px;
  }

  .nav-right {
    gap: 14px;
  }

  .main-nav a {
    font-size: 14px;
  }

  .facts > div {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 380px) {
  .site-header .wrap {
    gap: 10px;
  }

  .nav-right {
    gap: 10px;
  }

  .lang-switch {
    gap: 4px;
  }

  .wordmark {
    font-size: 16px;
  }

  .wordmark .logo {
    height: 20px;
  }
}

@media print {
  .eubar,
  .eubar-x {
    display: none;
  }

  body,
  .site-footer,
  .site-header.on-hero,
  .intro {
    background: #fff;
    color: #000;
  }

  .wordmark .lg-line,
  .site-header.on-hero .wordmark .lg-line {
    stroke: #000;
  }

  .wordmark .lg-star,
  .wordmark .lg-lead,
  .wordmark .lg-word,
  .site-header.on-hero .wordmark .lg-star,
  .site-header.on-hero .wordmark .lg-lead,
  .site-header.on-hero .wordmark .lg-word {
    fill: #000;
  }
}
