/* CKCOM one-page site — plain HTML + CSS
   Put these files in one folder:
   - index.html
   - style.css
   - logo-ckcom.png
   - eu-cofunded.png
   - leader-1.jpg, leader-2.jpg, leader-3.jpg (optional placeholders)
*/

:root {
  --ink: #0f172a;
  --muted: #475569;
  --border: #e2e8f0;
  --bg: #ffffff;

  /* Logo-inspired gradient */
  --g1: #1f3c88;
  --g2: #1fa2a6;
  --g3: #6ddf4f;

  --radius: 24px;
  --shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 10px 30px rgba(15, 23, 42, .08);
}

* {
  box-sizing: border-box
}

html {
  scroll-behavior: smooth
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

/* Utilities */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Background glows */
.bg-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.glow {
  position: absolute;
  filter: blur(60px);
  opacity: .40;
  border-radius: 999px;
}

.glow--top {
  top: -120px;
  left: 50%;
  width: min(1000px, 92vw);
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side,
      rgba(31, 60, 136, .25),
      rgba(31, 162, 166, .18),
      rgba(109, 223, 79, .18),
      transparent 70%);
}

.glow--bottom {
  bottom: -120px;
  right: -120px;
  width: min(560px, 70vw);
  height: 420px;
  background: radial-gradient(closest-side,
      rgba(109, 223, 79, .18),
      rgba(31, 162, 166, .12),
      transparent 72%);
  opacity: .32;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: 75px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  height: 67px;
  width: 100px;
  display: grid;
  place-items: center;
  /* background: transparent; */
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0px;
}

.brand-text {
  display: none
}

.brand-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.1;
}

.brand-subtitle {
  display: block;
  font-size: 14px;
  color: #64748b;
  margin-top: 2px;
}

.nav {
  display: none;
  gap: 22px;
}

.nav-link {
  text-decoration: none;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
}

.nav-link:hover {
  color: #0f172a
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  padding: 4px 6px;
  color: #334155;
  font-weight: 600;
  font-size: 13px;
}

.pill:hover {
  box-shadow: var(--shadow)
}

.pill-logo {
  height: 45px;
  width: auto;
  object-fit: contain;
}

.pill-label {
  font-size: 12px;
  color: #475569;
  font-weight: 600;
}

.pill-ext {
  color: #64748b
}

.nav-mobile select {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 10px 12px;
  background: #fff;
  font-size: 13px;
  color: #334155;
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 8px 18px rgba(15, 23, 42, .06);
}

/* Hero */
.hero {
  padding: 44px 0 18px;
}

.hero-grid {
  display: grid;
  gap: 26px;
  align-items: center;
}

.hero-title {
  font-size: clamp(28px, 4vw, 52px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
  font-weight: 800;
}

.hero-gradient {
  display: block;
  background: linear-gradient(90deg, var(--g1), var(--g2), var(--g3));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(15px, 1.6vw, 18px);
  line-height: 1.6;
  max-width: 56ch;
}

.hero-cta {
  margin-top: 18px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  padding: 12px 16px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;

}

.btn-primary {
  color: white;
  background: linear-gradient(90deg, var(--g1) 0%, var(--g2) 50%, var(--g3) 101%);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .05), 0 10px 24px rgba(15, 23, 42, .12);
  border: 1px solid transparent;
  background-repeat: no-repeat;
  background-size: 101% 100%;
}

.btn-primary:hover {
  filter: saturate(1.06)
}

.btn-outline {
  color: #0f172a;
  background: #fff;
  border-color: var(--border);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 10px 24px rgba(15, 23, 42, .08);
}

.btn-outline:hover {
  box-shadow: var(--shadow)
}

.hero-hint {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.chev {
  font-size: 18px;
  line-height: 1;
}

.hero-card {
  position: relative;
}

.logo-card {
  background: transparent;
  padding: 18px;
}

.logo-card img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Sections */
.section {
  padding: 38px 0;
}

.section-head {
  max-width: 760px;
}

.kicker {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #64748b;
}

.section h2 {
  margin: 10px 0 0;
  font-size: clamp(22px, 2.3vw, 34px);
  letter-spacing: -0.02em;
}

.section-head p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

/* Cards */
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 14px 34px rgba(15, 23, 42, .08);
}

.card h3 {
  margin: 12px 0 0;
  font-size: 16px;
}

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

.card-pi{
  font-size:0.9rem;
  color:#64748b;   /* subtle gray */
  margin-top:2px;
}

.cards-3 {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.cards-3 .card {
  padding: 18px;
}

.cards-2 {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.cards-2 .card {
  padding: 18px;
}

.icon {
  height: 40px;
  width: 40px;
  border-radius: 16px;
  color: white;

  display: flex;
  align-items: center;
  justify-content: center;
}

.icon--chem {
  background: linear-gradient(135deg, rgba(31, 60, 136, .95), rgba(31, 162, 166, .65));
}

.icon--qt {
  background: linear-gradient(135deg, rgba(31, 162, 166, .95), rgba(109, 223, 79, .60));
}

.icon--dev {
  background: linear-gradient(135deg, rgba(31, 60, 136, .75), rgba(109, 223, 79, .75));
}

.icon img {
  width: 30px;
  height: 30px;
  filter: invert(1);
  /* turns black SVG to white */
}

.card-top{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

/*.chip-badge {
  height: 34px;
  width: 34px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(31, 60, 136, .20), rgba(31, 162, 166, .14), rgba(109, 223, 79, .16));
}*/

.chip-badge{
  display:flex;
  align-items:center;
  justify-content:center;

  width:40px;
  height:40px;
  border-radius:10px;

  background: linear-gradient(135deg, rgba(31,60,136,.9), rgba(31,162,166,.8));
}

.chip-badge img{
  width:30px;
  height:30px;
  filter: invert(1);   /* turns black SVG icons white */
}
.chip-theory{
  background: linear-gradient(135deg, rgba(31,60,136,.95), rgba(31,162,166,.75));
}

.chip-synthesis{
  background: linear-gradient(135deg, rgba(31,162,166,.95), rgba(109,223,79,.75));
}

.chip-spectroscopy{
  background: linear-gradient(135deg, rgba(31,60,136,.8), rgba(31,162,166,.7));
}

.chip-transport{
  background: linear-gradient(135deg, rgba(31,162,166,.85), rgba(109,223,79,.65));
}

.chip-devices{
  background: linear-gradient(135deg, rgba(31,60,136,.85), rgba(109,223,79,.85));
}

/* Tags */
.tags {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  border: 1px solid var(--border);
  background: #fff;
  padding: 6px 10px;
  border-radius: 999px;
  color: #475569;
  font-size: 12px;
}

/* Facts */
.facts {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 14px 34px rgba(15, 23, 42, .06);
}

.facts-title {
  font-weight: 800;
  font-size: 13px;
}

.facts-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

/* Leaders */
.leaders {
  margin-top: 18px;
  display: grid;
  gap: 14px;
}

.leader {
  overflow: hidden;
}

.leader-photo {
  aspect-ratio: 10/10;
  background: #f1f5f9;
}

.leader-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.leader-photo--empty {
  background: linear-gradient(135deg, rgba(31, 60, 136, .10), rgba(31, 162, 166, .10), rgba(109, 223, 79, .12));
}

.leader-body {
  padding: 18px;
}

.leader-header{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  margin-bottom:8px;
}

.leader-title{
  display:flex;
  flex-direction:column;
}

.leader-links{
  display:flex;
  gap:10px;
}

.leader-links img{
  width:22px;
  height:22px;
  opacity:.75;
  transition:opacity .15s ease, transform .1s ease;
}

.leader-links img:hover{
  opacity:1;
  transform:translateY(-1px);
}

.leader-name{
  font-weight:600;
  font-size:1.05rem;
  display:flex;
  align-items:center;
  gap:6px;
}



.leader-role {
  color: #64748b;
  font-size: 13px;
  margin-top: 2px;
}

.leader-body p {
  margin-top: 10px;
}

.leader--director {
  border: 2px solid rgba(30, 180, 150, .35);
}

.readmore {
  display: inline-block;
  margin-top: 10px;
  font-weight: 700;
  color: #334155;
  text-decoration: none;
}

.readmore:hover {
  text-decoration: underline;
}

/* Footer */
.footer {
  margin-top: 10px;
  padding: 26px 0 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: #64748b;
  font-size: 13px;
}

.footer-right {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.footer a {
  color: #475569;
  text-decoration: none;
  font-weight: 600;
}

.footer a:hover {
  color: #0f172a
}



.eu-banner {
  width: 100%;
  display: flex;
  justify-content: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.eu-banner img {
  max-width: 900px;
  width: 100%;
  height: auto;
}

.project-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 18px;
  line-height: 1.6;
}

.project-text h1 {
  font-size: 34px;
  margin-bottom: 10px;
}

.project-text h2 {
  font-size: 22px;
  margin-top: 30px;
}

.project-text ul {
  margin-left: 25px;
}


/* Language switch */
.lang {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: 6px;
}

.lang-link {
  text-decoration: none;
  font-weight: 700;
  font-size: 12px;
  color: #64748b;
}

.lang-link:hover {
  color: #0f172a;
}

.lang-link.is-active {
  color: #0f172a;
}

.lang-sep {
  color: #cbd5e1;
  font-size: 12px;
}
/* Responsive */
@media (min-width: 640px) {
  .brand-text {
    display: block
  }

  .nav--desktop {
    display: flex
  }

  .nav-mobile {
    display: none
  }
}

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: 1.1fr .9fr;
    gap: 34px;
  }

  .cards-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .cards-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .leaders {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 959px){
/* Leader card: photo left, text right */
  .leader{
    display:grid;
    grid-template-columns: 1fr 2fr;
    gap: 12px;
    align-items: stretch;
  }

  .leader-photo{
    aspect-ratio: 10/10;   /* stop forcing a square that becomes tall */
    /* optional: nicer on mobile */
    overflow: hidden;
    /* match your padding feel */
  }

  .leader-body{
    padding: 14px;
  }

  /* Keep header (name+role) and links aligned nicely on mobile */
  .leader-header{
    align-items: center;      /* instead of flex-start */
  }

  .leader-links img{
    width: 20px;
    height: 20px;
  }
}