/* =========================================================
   HAIRSENSE — Design System
   Direction: Refined editorial luxury × scientific precision
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Source+Serif+4:ital,opsz,wght@0,8..60,400;0,8..60,500;0,8..60,600;0,8..60,700;1,8..60,400&family=JetBrains+Mono:wght@400;500&display=swap');

/* ---------- Tokens ---------- */
:root {
  /* Surfaces — Blue / DWI institutional (default) */
  --bg:        #F4F6FA;
  --bg-alt:    #E9EEF6;
  --bg-warm:   #EBF0F7;
  --bg-dark:   #0D1B2E;
  --bg-deep:   #081220;
  --surface:   #FFFFFF;

  /* Text */
  --ink:       #0D1B2E;
  --ink-soft:  #1E3050;
  --ink-mid:   #3D5070;
  --muted:     #6B7E98;
  --on-dark:   #EFF4FB;
  --on-dark-soft: #8AAAC8;

  /* Lines */
  --line:      #C4D2E8;
  --line-soft: #D8E4F0;
  --line-dark: #1A2D46;
  --bg-glass: rgba(244, 246, 250, 0.88);
  --bg-glass-solid: rgba(244, 246, 250, 0.97);
  --accent-glow: rgba(26, 82, 150, 0.12);
  --ink-overlay: rgba(13, 27, 46, 0.18);
  --sidebar-hover-bg: rgba(26, 82, 150, 0.06);

  /* Accent — DWI institutional blue */
  --accent:        #1A5296;
  --accent-hover:  #0D3870;
  --accent-deep:   #0A2850;
  --accent-soft:   #9BBAD8;
  --accent-tint:   #DDE9F5;

  /* Status */
  --success:   #4A6B4F;
  --warn:      #B5762D;
  --danger:    #9B3A2A;

  /* Typography */
  --font-display: 'Source Serif 4', 'Charter', 'Iowan Old Style', Georgia, 'Times New Roman', serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  /* Layout */
  --container:        1280px;
  --container-narrow: 960px;
  --container-tight:  720px;
  --radius:    4px;
  --radius-md: 8px;
  --radius-lg: 14px;

  /* Motion */
  --ease:      cubic-bezier(0.22, 1, 0.36, 1);
  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:    180ms;
  --t-med:     320ms;
  --t-slow:    640ms;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11', 'ss01', 'ss03';
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast) var(--ease); }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: inherit; }

/* ---------- Typography ---------- */
.font-display { font-family: var(--font-display); }
.font-mono { font-family: var(--font-mono); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  font-variation-settings: "opsz" 24;
}
h1 { font-size: clamp(1.3rem, 2vw, 1.625rem); line-height: 1.2; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.1rem, 1.5vw, 1.35rem); line-height: 1.24; }
h3 { font-size: clamp(0.95rem, 1.1vw, 1.05rem); line-height: 1.32; }
h4 { font-size: 0.96rem; letter-spacing: -0.005em; line-height: 1.4; }
h5 { font-size: 0.9rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 16px;
}
.eyebrow::before {
  content: "";
  display: block;
  width: 24px;
  height: 1px;
  background: currentColor;
}
.eyebrow.center::before { display: none; }

.lead {
  font-size: clamp(1rem, 1.1vw, 1.1rem);
  line-height: 1.6;
  color: var(--ink-soft);
  font-weight: 400;
}

.serif-italic { font-family: var(--font-display); font-style: italic; font-weight: 400; }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
.container-tight  { max-width: var(--container-tight);  margin: 0 auto; padding: 0 32px; }

section { padding: clamp(64px, 10vh, 128px) 0; }
.section-tight { padding: clamp(48px, 6vh, 80px) 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  border-radius: 2px;
  background: transparent;
  cursor: pointer;
  transition: all var(--t-med) var(--ease);
  white-space: nowrap;
  line-height: 1;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 12px 28px rgba(26, 82, 150, 0.18);
}
.btn-primary:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
  transform: translateY(-1px);
}
.btn-accent {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.btn-accent:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.btn-ghost {
  border-color: var(--ink);
  color: var(--ink);
}
.btn-ghost:hover {
  background: var(--ink);
  color: var(--on-dark);
}
.btn-line {
  background: transparent;
  color: var(--ink);
  border: none;
  padding: 8px 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}
.btn-line:hover { color: var(--accent); border-color: var(--accent); }
.btn-large { padding: 18px 32px; font-size: 1rem; }
.btn-small { padding: 10px 16px; font-size: 0.82rem; }
.btn .arrow {
  display: inline-block;
  transition: transform var(--t-med) var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid transparent;
  transition: background var(--t-med) var(--ease), border-color var(--t-med) var(--ease), backdrop-filter var(--t-med) var(--ease);
}
.site-header.scrolled,
.site-header.solid {
  background: var(--bg-glass);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: var(--line);
}
/* Over video: white text + logo */
.site-header.over-video .brand { color: #fff; }
.site-header.over-video .nav-links a { color: rgba(255,255,255,0.92); font-weight: 500; }
.site-header.over-video .nav-links a:hover { color: #fff; }
.site-header.over-video .nav-links a.active { color: #fff; border-bottom-color: #fff; }
.site-header.over-video .btn-ghost {
  border-color: rgba(255,255,255,0.6);
  color: #fff;
}
.site-header.over-video .btn-ghost:hover { border-color: #fff; }
/* Lang switch + login over video */
.site-header.over-video [data-lang-switch] a,
.site-header.over-video [data-lang-switch] span,
.site-header.over-video [data-lang-switch] button { color: #fff !important; border-color: rgba(255,255,255,0.5) !important; }
/* Logo: white version over video */
.site-header.over-video .brand-mark {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
}
.site-header.over-video .brand-mark img { filter: brightness(0) invert(1); }
.site-header.over-video .nav-toggle span,
.site-header.over-video .nav-toggle span::before,
.site-header.over-video .nav-toggle span::after { background: #fff; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.brand-mark {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--ink);
  border-radius: 50%;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--ink);
  background: var(--bg);
  overflow: hidden;
}
.brand-mark img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 22px;
  list-style: none;
  margin: 0; padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.85rem;
  color: var(--ink-soft);
  font-weight: 500;
  position: relative;
  padding: 4px 0;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--accent);
}
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-toggle {
  display: none; background: none; border: none;
  width: 36px; height: 36px; padding: 0;
  align-items: center; justify-content: center;
}
.nav-toggle span {
  display: block; width: 22px; height: 1px;
  background: var(--ink); position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
  width: 22px; height: 1px; background: var(--ink);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top:  6px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-top: 160px;
  padding-bottom: 96px;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 80px;
  align-items: center;
}
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 100px;
  background: rgba(255,255,255,0.5);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  margin-bottom: 28px;
}
.hero-tag .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-glow);
}
.hero h1 {
  font-size: clamp(1.4rem, 2.2vw, 1.75rem);
  margin-bottom: 24px;
}
.hero h1 .accent-italic {
  font-style: italic;
  color: var(--accent);
  font-weight: 300;
}
.hero-lead {
  font-size: 1.15rem;
  line-height: 1.65;
  color: var(--ink-soft);
  margin-bottom: 36px;
  max-width: 560px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.hero-meta .stat-num {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--ink);
  line-height: 1;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.hero-meta .stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 2px;
  overflow: hidden;
  background: var(--bg-alt);
}
.hero-visual img {
  width: 100%; height: 100%; object-fit: cover;
  filter: contrast(0.98) brightness(0.98);
}
.hero-visual::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, var(--ink-overlay) 100%);
  pointer-events: none;
}
.hero-badge {
  position: absolute;
  bottom: 24px; left: 24px;
  background: var(--bg-glass-solid);
  backdrop-filter: blur(10px);
  padding: 16px 18px;
  max-width: 260px;
  border-left: 2px solid var(--accent);
}
.hero-badge .label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.hero-badge .value {
  font-family: var(--font-display);
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.3;
}

/* ---------- Background flourishes ---------- */
.bg-grain {
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' /%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.6'/%3E%3C/svg%3E");
  opacity: 0.04;
  pointer-events: none;
  mix-blend-mode: multiply;
}

/* ---------- Trust strip ---------- */
.trust-strip {
  padding: 36px 0;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--accent-deep) 100%);
}
.trust-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.trust-label {
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-soft);
}
.trust-items {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--on-dark);
  letter-spacing: -0.01em;
  font-weight: 500;
}

/* ---------- Section headers ---------- */
.section-head {
  margin-bottom: 64px;
  max-width: 720px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { margin-bottom: 20px; }
.section-head p {
  font-size: 1.05rem;
  color: var(--ink-mid);
  max-width: 560px;
  line-height: 1.6;
}
.section-head.center p { margin-left: auto; margin-right: auto; }

/* ---------- Heritage section (DWI) ---------- */
.heritage {
  background: var(--bg-alt);
  position: relative;
}
.heritage-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 80px;
  align-items: center;
}
.heritage-image {
  position: relative;
  aspect-ratio: 5 / 6;
  background: var(--bg);
  overflow: hidden;
}
.heritage-image img { width: 100%; height: 100%; object-fit: cover; }
.heritage-meta {
  position: absolute;
  bottom: -28px; right: -28px;
  background: var(--bg-alt);
  padding: 18px 22px;
  border-top: 1px solid var(--accent);
}
.heritage-meta .num {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--accent);
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.02em;
}
.heritage-meta .label {
  font-size: 0.74rem;
  color: var(--ink-mid);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.heritage-content h2 {
  margin-bottom: 24px;
}
.heritage-content p { font-size: 1rem; color: var(--ink-mid); line-height: 1.65; }
.heritage-list {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
}
.heritage-list li {
  display: flex;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  align-items: baseline;
}
.heritage-list li:last-child { border-bottom: 1px solid var(--line); }
.heritage-list .year {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent);
  font-weight: 500;
  flex-shrink: 0;
  width: 56px;
}
.heritage-list .desc { color: var(--ink-soft); font-size: 0.96rem; }

/* ---------- Cards / features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.feature {
  padding: 40px 32px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  box-shadow: inset 0 2px 0 rgba(26, 82, 150, 0.10);
  transition: background var(--t-med) var(--ease), box-shadow var(--t-med) var(--ease), transform var(--t-med) var(--ease);
}
.feature:hover { background: var(--bg-alt); box-shadow: inset 0 2px 0 var(--accent); transform: translateY(-1px); }
.feature-num {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}
.feature h3 {
  font-size: 1.15rem;
  margin-bottom: 12px;
  letter-spacing: -0.012em;
  font-weight: 600;
}
.feature p { font-size: 0.95rem; color: var(--ink-mid); }

/* ---------- Process ---------- */
.process {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.process h2, .process h3 { color: var(--on-dark); }
.process .section-head p { color: var(--on-dark-soft); }
.process .eyebrow { color: var(--accent-soft); }

.process-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  position: relative;
  margin-top: 24px;
}
.process-steps::before {
  content: ""; position: absolute;
  top: 30px; left: 0; right: 0; height: 1px;
  background: var(--line-dark);
}
.step {
  position: relative;
  padding: 0 24px 0 0;
}
.step-marker {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--bg-dark);
  border: 1px solid var(--line-dark);
  display: grid; place-items: center;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--accent-soft);
  margin-bottom: 28px;
  position: relative;
  z-index: 2;
}
.step h4 {
  color: var(--on-dark);
  font-size: 1.2rem;
  margin-bottom: 12px;
}
.step p {
  color: var(--on-dark-soft);
  font-size: 0.92rem;
  line-height: 1.6;
}

/* ---------- Service / pricing card ---------- */
.service-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: stretch;
}
.service-detail {
  background: var(--surface);
  padding: 56px;
  border: 1px solid var(--line);
  position: relative;
}
.service-detail .tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 24px;
  border-radius: 2px;
}
.service-detail h3 {
  font-size: 1.4rem;
  margin-bottom: 14px;
  font-weight: 500;
}
.service-detail .price {
  font-family: var(--font-display);
  font-size: 1.75rem;
  color: var(--ink);
  margin: 28px 0 8px;
  font-weight: 400;
}
.service-detail .price small {
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0;
}
.service-features {
  list-style: none;
  padding: 0;
  margin: 24px 0 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--ink-soft);
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
}
.service-features li:last-child { border-bottom: none; }
.service-features svg {
  flex-shrink: 0;
  margin-top: 4px;
  color: var(--accent);
}

.service-process {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.process-card {
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--bg);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  align-items: start;
}
.process-card .pn {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1;
}
.process-card h4 { font-size: 1.05rem; margin-bottom: 6px; }
.process-card p { font-size: 0.92rem; color: var(--ink-mid); margin: 0; }

/* ---------- Quote / testimonial ---------- */
.quote-block {
  padding: 96px 0;
  background: var(--bg-warm);
  text-align: center;
}
.quote-block blockquote {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 1.8vw, 1.6rem);
  font-weight: 300;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.015em;
  margin: 0 auto 32px;
  max-width: 880px;
  font-style: italic;
}
.quote-block cite {
  display: block;
  font-style: normal;
  font-size: 0.92rem;
  color: var(--ink-mid);
  letter-spacing: 0.04em;
}
.quote-block cite strong {
  display: block;
  color: var(--ink);
  font-weight: 600;
  margin-bottom: 4px;
}

/* ---------- CTA section ---------- */
.cta-block {
  padding: 96px 0;
  background: var(--bg-deep);
  color: var(--on-dark);
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  color: var(--on-dark);
  max-width: 720px;
  margin-bottom: 24px;
}
.cta-block p {
  color: var(--on-dark-soft);
  font-size: 1rem;
  max-width: 560px;
  margin-bottom: 32px;
}
.cta-block .btn-primary {
  background: var(--accent-soft);
  color: var(--ink);
  border-color: var(--accent-soft);
}
.cta-block .btn-primary:hover {
  background: var(--bg);
  border-color: var(--bg);
}
.cta-block .btn-ghost {
  border-color: var(--on-dark-soft);
  color: var(--on-dark);
}
.cta-block .btn-ghost:hover {
  background: var(--on-dark);
  color: var(--ink);
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-soft);
  padding: 80px 0 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 48px;
  margin-bottom: 64px;
}
.footer-brand .brand { color: var(--on-dark); margin-bottom: 20px; }
.footer-brand .brand-mark { color: var(--on-dark); border-color: var(--on-dark-soft); background: transparent; }
.footer-brand .brand-mark img,
.auth-aside .brand-mark img,
.cta-block .brand-mark img {
  filter: brightness(0) invert(1);
}
.footer-brand p { font-size: 0.92rem; max-width: 320px; line-height: 1.6; }
.footer-col h5 {
  color: var(--on-dark);
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  font-size: 0.92rem;
  color: var(--on-dark-soft);
}
.footer-col a:hover { color: var(--on-dark); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 28px;
  border-top: 1px solid var(--line-dark);
  font-size: 0.82rem;
  color: var(--on-dark-soft);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-legal { display: flex; gap: 24px; flex-wrap: wrap; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 100px 0 56px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.page-hero h1 {
  font-size: clamp(1.3rem, 2vw, 1.625rem);
  margin-bottom: 20px;
  max-width: 760px;
  font-weight: 500;
}
.page-hero p {
  font-size: 1.15rem;
  color: var(--ink-mid);
  max-width: 640px;
  line-height: 1.6;
}

/* ---------- Two-column content ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 80px;
  align-items: start;
}
.two-col.reversed { grid-template-columns: 1.3fr 1fr; }
.two-col h2 { margin-bottom: 24px; }
.two-col-image {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--bg-alt);
  overflow: hidden;
}
.two-col-image img { width: 100%; height: 100%; object-fit: cover; }
.two-col-text > p { color: var(--ink-mid); font-size: 1.02rem; line-height: 1.7; }

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 48px;
}
.timeline::before {
  content: ""; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--line);
}
.timeline-item {
  position: relative;
  padding-bottom: 44px;
}
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute;
  left: -52px;
  top: 8px;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--bg);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--accent);
  font-weight: 400;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
  line-height: 1;
}
.timeline-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  margin-bottom: 8px;
  line-height: 1.3;
}
.timeline-desc { font-size: 0.96rem; color: var(--ink-mid); line-height: 1.6; }

/* ---------- Team ---------- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.team-card {
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 22px 24px;
  transition: border-color var(--t-med) var(--ease);
}
.team-card:hover {
  border-color: var(--accent);
}
.team-photo {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-alt);
  overflow: hidden;
}
.team-photo img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(0.2);
}
.team-card:hover .team-photo img { filter: grayscale(0); }
.team-info { padding: 0; flex: 1; min-width: 0; }
.team-info .role {
  font-size: 0.7rem;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
  font-family: var(--font-mono);
}
.team-info h4 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}
.team-info .affiliation {
  font-size: 0.84rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0;
}
}

/* ---------- Standards table ---------- */
.standards-table {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}
.standard-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 36px;
  position: relative;
}
.standard-card .code {
  font-family: var(--font-mono);
  font-size: 0.86rem;
  color: var(--accent);
  letter-spacing: 0.04em;
  margin-bottom: 16px;
  font-weight: 500;
}
.standard-card h3 { font-size: 1.15rem; margin-bottom: 12px; font-weight: 600; }
.standard-card p { color: var(--ink-mid); font-size: 0.94rem; line-height: 1.6; }

/* ---------- Forms (contact, login) ---------- */
.form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 48px;
}
.form-row { margin-bottom: 20px; }
.form-row.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
  width: 100%;
  padding: 14px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 2px;
  color: var(--ink);
  font-size: 0.95rem;
  transition: border-color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}
textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.form-help {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 6px;
}
.checkbox-row {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 0.9rem; color: var(--ink-soft);
}
.checkbox-row input { margin-top: 4px; }
.checkbox-row label {
  margin: 0; text-transform: none; letter-spacing: 0;
  font-size: 0.92rem; font-weight: 400; color: var(--ink-soft);
}

/* ---------- Login layout ---------- */
.auth-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
.auth-aside {
  background: var(--bg-dark);
  color: var(--on-dark);
  padding: 64px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-aside .brand { color: var(--on-dark); }
.auth-aside .brand-mark { color: var(--on-dark); border-color: var(--on-dark-soft); background: transparent; }
.auth-aside-content { max-width: 440px; }
.auth-aside h2 { color: var(--on-dark); margin-bottom: 18px; font-size: 1.625rem; line-height: 1.2; }
.auth-aside p { color: var(--on-dark-soft); font-size: 1.02rem; line-height: 1.6; }
.auth-aside .quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.2rem;
  color: var(--on-dark);
  line-height: 1.5;
  padding-left: 20px;
  border-left: 2px solid var(--accent);
}
.auth-aside .quote-author {
  margin-top: 16px;
  font-style: normal;
  font-family: var(--font-body);
  font-size: 0.86rem;
  color: var(--on-dark-soft);
}

.auth-main {
  background: var(--bg);
  padding: 64px 56px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-card {
  width: 100%;
  max-width: 420px;
}
.auth-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--line);
}
.auth-tab {
  flex: 1;
  padding: 14px 0;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: -1px;
  transition: all var(--t-fast) var(--ease);
}
.auth-tab.active { color: var(--ink); border-bottom-color: var(--accent); }

/* ---------- Helpers ---------- */
.divider {
  height: 1px;
  background: var(--line);
  border: none;
  margin: 0;
}
.text-accent { color: var(--accent); }
.text-muted { color: var(--muted); }
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-2 { margin-top: 16px; }
.mb-2 { margin-bottom: 16px; }
.mb-4 { margin-bottom: 32px; }

.tag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border: 1px solid var(--accent-soft);
}
.tag-pill.dark { background: var(--ink); color: var(--on-dark); border-color: var(--ink); }
.tag-pill.line { background: transparent; border: 1px solid var(--line); color: var(--ink-soft); }

/* ---------- Animations ---------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0;
  animation: fadeUp 800ms var(--ease) forwards;
}
.reveal.d-1 { animation-delay: 100ms; }
.reveal.d-2 { animation-delay: 200ms; }
.reveal.d-3 { animation-delay: 320ms; }
.reveal.d-4 { animation-delay: 440ms; }
.reveal.d-5 { animation-delay: 560ms; }

/* ---------- Mobile ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-visual { aspect-ratio: 16 / 11; max-height: 540px; }
  .heritage-grid, .two-col, .two-col.reversed, .service-grid { grid-template-columns: 1fr; gap: 56px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { grid-template-columns: repeat(2, 1fr); gap: 32px; }
  .process-steps::before { display: none; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .standards-table { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .auth-layout { grid-template-columns: 1fr; }
  .auth-aside { padding: 40px 32px; min-height: auto; }
}
@media (max-width: 720px) {
  .container, .container-narrow, .container-tight { padding: 0 22px; }
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
  .feature-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 124px; }
  .form-card { padding: 32px 24px; }

}

/* ---------- Legal text block (Impressum/AGB/Datenschutz) ---------- */
.legal-block { color: var(--ink-soft); font-size: 0.96rem; line-height: 1.75; }
.legal-block h3 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  margin: 36px 0 10px;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.legal-block h3:first-child { margin-top: 0; }
.legal-block p { margin: 0 0 14px; }
.legal-block ul, .legal-block ol { margin: 0 0 14px 0; padding-left: 22px; }
.legal-block li { margin-bottom: 6px; }
.legal-block strong { color: var(--ink); }
@media (max-width: 720px) {
  .service-detail { padding: 36px 28px; }
  .form-row.split { grid-template-columns: 1fr; }
  .quote-block { padding: 64px 0; }
  .cta-block { padding: 64px 0; }
  .timeline { padding-left: 32px; }
  .timeline-item::before { left: -36px; }
}

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 60;
  padding: 80px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  transform: translateY(-100%);
  transition: transform var(--t-med) var(--ease);
}
.mobile-nav.open { transform: translateY(0); }
.mobile-nav a {
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--ink);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-nav-close {
  position: absolute;
  top: 24px; right: 24px;
  background: none; border: none;
  font-size: 1.4rem;
  color: var(--ink);
}

/* =====================================================
   VIDEO HERO — Fullscreen, Loro Piana style
   ===================================================== */
.video-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0a0d12; /* Immediate dark bg — prevents flash before video loads */
}

/* --- Video background --- */
.video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-color: #0a0d12;
  background-image: var(--video-poster); /* poster is generated from the first frame of the current video */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.video-wrap video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  opacity: 0;
  transition: opacity 180ms ease;
}
.video-hero.video-frame-ready .video-wrap video,
.video-hero.video-playing .video-wrap video {
  opacity: 1;
}
.video-hero.video-playing .video-wrap {
  background-image: none;
}
.video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(8, 18, 40, 0.62) 0%,
    rgba(8, 18, 40, 0.38) 50%,
    rgba(8, 18, 40, 0.55) 100%
  );
}

/* --- Centered text content --- */
.video-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  color: #fff;
  padding: 0 24px;
  transform: translateY(0);
  opacity: 1;
  transition: transform 0.6s cubic-bezier(0.25,0.46,0.45,0.94),
              opacity 0.6s ease;
}
.video-hero-content.fading {
  transform: translateY(-40px);
  opacity: 0;
}

.video-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  color: rgba(255,255,255,0.65);
  text-transform: uppercase;
  margin-bottom: 20px;
}

.video-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5.5rem);
  font-weight: 300;
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: #fff;
  margin-bottom: 20px;
}
.video-title em {
  font-style: italic;
  font-weight: 300;
  color: rgba(255,255,255,0.85);
}

.video-sub {
  font-family: var(--font-body);
  font-size: clamp(0.9rem, 1.5vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,255,255,0.7);
  letter-spacing: 0.04em;
  margin-bottom: 40px;
}

.video-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-video-primary {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: #fff;
  color: var(--ink, #0D1B2E);
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 200ms ease, color 200ms ease;
}
.btn-video-primary:hover { background: rgba(255,255,255,0.88); }

.btn-video-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 32px;
  background: transparent;
  color: rgba(255,255,255,0.9);
  font-size: 0.88rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.45);
  transition: border-color 200ms ease, color 200ms ease;
}
.btn-video-ghost:hover { border-color: #fff; color: #fff; }

/* --- Scroll indicator --- */
.scroll-indicator {
  position: absolute;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  color: rgba(255,255,255,0.65);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  transition: color 200ms, opacity 200ms;
  animation: scrollBob 2.4s ease-in-out infinite;
}
.scroll-indicator:hover { color: #fff; }
.scroll-indicator.hidden { opacity: 0; pointer-events: none; }

@keyframes scrollBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}

/* --- Smooth scroll-out: video scale + fade --- */
.video-wrap video {
  will-change: transform, opacity;
  transition: none; /* JS handles this via inline styles */
}

/* --- Section immediately after video has no top padding shift --- */
.video-hero + * { margin-top: 0; }

/* =====================================================
   CONTENT FADE-IN after video
   ===================================================== */
.post-video-section {
  position: relative;
  background: var(--bg);
}

/* =====================================================
   RESPONSIVE — Mobile & Tablet
   Breakpoints: 768px (tablet), 480px (mobile)
   ===================================================== */

/* ── Navigation ── */
@media (max-width: 900px) {
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 0.82rem; }
}

@media (max-width: 768px) {
  /* Hide desktop nav links, show hamburger */
  .nav-links { display: none; }
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    inset: 0;
    background: #14181F;
    z-index: 200;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 0;
    padding: 72px 32px 40px;
    overflow-y: auto;
  }
  .nav-links.open li {
    width: 100%;
    border-bottom: 1px solid rgba(255,255,255,0.1);
  }
  .nav-links.open li a {
    display: block;
    padding: 20px 0;
    font-size: 1.25rem;
    font-weight: 400;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: 0.01em;
  }
  .nav-links.open li a:hover { opacity: 0.7; }
  .mobile-close {
    position: fixed;
    top: 18px; right: 18px;
    z-index: 201;
    background: none;
    border: none;
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
    width: 44px; height: 44px;
    display: none;
    align-items: center;
    justify-content: center;
    line-height: 1;
  }

  /* Sections */
  .container { padding: 0 16px; }
  section { padding: 48px 0 !important; }

  /* Hero stats */
  .hero-meta { flex-wrap: wrap; gap: 16px; }

  /* Features grid */
  .features-grid { grid-template-columns: 1fr !important; }

  /* Testimonials */
  #testimonialGrid { grid-template-columns: 1fr !important; }

  /* Logo row */
  [class*="logo-row"] img, .funder-logos img { height: 32px !important; }

  /* Tables → card layout */
  table.data-table { display: block; }
  table.data-table thead { display: none; }
  table.data-table tbody { display: block; }
  table.data-table tr {
    display: block;
    border: 1px solid var(--line);
    border-radius: 4px;
    margin-bottom: 12px;
    padding: 12px 16px;
  }
  table.data-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border: none;
    font-size: 0.88rem;
  }
  table.data-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.7rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 12px;
  }

  /* KPI grid */
  .kpi-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .kpi-value { font-size: 1.8rem !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 32px; }

  /* Auth layout */
  .auth-layout { grid-template-columns: 1fr !important; }
  .auth-aside { display: none; }
  .auth-main { padding: 32px 16px; }
}

@media (max-width: 480px) {
  .video-title { font-size: 2rem; }
  .kpi-grid { grid-template-columns: 1fr !important; }
  .detail-grid { grid-template-columns: 1fr !important; }
  .form-row.split { grid-template-columns: 1fr !important; }
  h1, .portal-h1 { font-size: 1.4rem !important; }
  h2 { font-size: 1.1rem !important; }
}

/* ── Show hamburger only mobile ── */

@media (max-width: 768px) {
  .nav-hamburger { display: flex; }
}

/* =====================================================
   NEWSLETTER POPUP
   ===================================================== */
.nl-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(10,13,18,0.65);
  backdrop-filter: blur(4px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 300ms ease;
}
.nl-backdrop.visible { opacity: 1; }

.nl-box {
  background: var(--surface);
  max-width: 480px;
  width: 100%;
  padding: 40px;
  position: relative;
  border: 1px solid var(--line);
  transform: translateY(20px);
  transition: transform 300ms ease;
}
.nl-backdrop.visible .nl-box { transform: translateY(0); }

.nl-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
  padding: 4px;
}
.nl-close:hover { color: var(--ink); }

.nl-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 12px;
}

.nl-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: 10px;
}

.nl-sub {
  font-size: 0.88rem;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-bottom: 24px;
}

.nl-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.nl-input {
  padding: 11px 14px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 0.9rem;
  font-family: var(--font-body);
  border-radius: 2px;
  transition: border-color 150ms;
  width: 100%;
}
.nl-input:focus { outline: none; border-color: var(--accent); }

.nl-btn {
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border: none;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 150ms;
}
.nl-btn:hover { background: var(--accent-dark, #0D2F5E); }
.nl-btn:disabled { opacity: 0.6; cursor: not-allowed; }

.nl-note {
  font-size: 0.75rem;
  color: var(--muted);
  line-height: 1.4;
  margin-top: 4px;
}

.nl-success {
  text-align: center;
  padding: 16px 0;
}
.nl-success .check { font-size: 2rem; margin-bottom: 12px; }
.nl-success p { color: var(--ink-mid); font-size: 0.9rem; }

@media (max-width: 480px) {
  .nl-box { padding: 28px 20px; }
  .nl-title { font-size: 1.15rem; }
}

/* =====================================================
   RESPONSIVE FIXES — Specific page elements
   ===================================================== */

/* Contact: stack address + form on mobile */
@media (max-width: 700px) {
  .contact-grid,
  [class*="contact"] .two-col,
  .kontakt-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
  /* Any inline grid with 2 cols on contact/wissen */
  section .two-col { grid-template-columns: 1fr !important; }
}

/* General: any 2-col grid → 1 col on mobile */
@media (max-width: 600px) {
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat(2"],
  [style*="grid-template-columns: 1fr 1.6fr"],
  [style*="grid-template-columns: 1.6fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
  /* Cards: full width */
  .article-card, .news-card, .detail-card {
    max-width: 100% !important;
  }
  /* Name/company split in forms */
  [style*="grid-template-columns: 1fr 1fr"] input {
    width: 100%;
  }
}

/* Nav-toggle: hide the X that appears on desktop */
.nav-toggle { display: none; }
@media (max-width: 768px) {
  .nav-toggle { display: inline-flex !important; }
}


/* =====================================================
   MOBILE NAV — Universal override
   Must be OUTSIDE media queries, at end of file
   Fixes: white text on beige bg (over-video conflict)
   ===================================================== */

/* When mobile menu is open: always dark background, always white text */
.nav-links.open {
  display: flex !important;
  flex-direction: column !important;
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: #13171e !important;
  z-index: 9999 !important;
  padding: 72px 32px 40px !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  overflow-y: auto !important;
  gap: 0 !important;
}

.nav-links.open li {
  display: block !important;
  width: 100% !important;
  border-bottom: 1px solid rgba(255,255,255,0.12) !important;
}

/* White text — overrides EVERYTHING including over-video */
.nav-links.open li a,
.site-header.over-video .nav-links.open li a,
.site-header.over-video .nav-links.open a,
.nav-links.open a {
  display: block !important;
  color: #ffffff !important;
  padding: 22px 0 !important;
  font-size: 1.3rem !important;
  font-weight: 400 !important;
  text-decoration: none !important;
  letter-spacing: 0.01em !important;
  opacity: 1 !important;
}
.nav-links.open a:hover { opacity: 0.7 !important; }

/* Close button — always white, always visible */
.mobile-close {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 10000 !important;
  background: none !important;
  border: none !important;
  color: #ffffff !important;
  font-size: 1.8rem !important;
  cursor: pointer !important;
  width: 44px !important;
  height: 44px !important;
  display: none !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

/* =====================================================
   SINGLE-COLUMN OVERRIDES — Mobile (<600px)
   Targets inline-style grids that CSS selectors miss
   ===================================================== */
@media (max-width: 599px) {

  /* Awards grid, stat grids, any repeat(3) or repeat(2) */
  #awardsGrid,
  #testimonialGrid,
  [id$="Grid"] {
    grid-template-columns: 1fr !important;
  }

  /* Stat/KPI blocks with dark background (wissen schwarze Blöcke) */
  .stat-blocks,
  .kpi-dark-grid,
  [style*="repeat(3, 1fr)"],
  [style*="repeat(2, 1fr)"],
  [style*="grid-template-columns: 1fr 1fr"],
  [style*="grid-template-columns: repeat"] {
    grid-template-columns: 1fr !important;
  }

  /* Logo rows — scroll instead of wrap */
  .funder-logos,
  .logo-row,
  [style*="flex-wrap: wrap"] {
    gap: 16px !important;
  }

  /* Prevent text word-break in small containers */
  [style*="font-size: 2rem"],
  [style*="font-size:2rem"] {
    font-size: 1.6rem !important;
    word-break: break-word;
  }
}

/* Tablet 600-768px: max 2 columns */
@media (min-width: 600px) and (max-width: 768px) {
  #awardsGrid,
  [style*="repeat(3, 1fr)"],
  [style*="repeat(4, 1fr)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Stat blocks (wissen page dark boxes) */
@media (max-width: 599px) {
  .stat-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (min-width: 600px) and (max-width: 768px) {
  .stat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

/* Trust strip mobile */
@media (max-width: 600px) {
  .trust-grid { flex-direction: column; align-items: flex-start; gap: 12px; }
  .trust-items { gap: 16px; flex-direction: column; align-items: flex-start; }
  .trust-item { font-size: 1rem; }
}

/* Portal admin table card layout — add labels */
@media (max-width: 768px) {
  .data-table thead { display: none !important; }
  .data-table, .data-table tbody, .data-table tr, .data-table td {
    display: block !important;
    width: 100% !important;
  }
  .data-table tr {
    border: 1px solid var(--line) !important;
    border-radius: 4px !important;
    margin-bottom: 12px !important;
    padding: 4px 0 !important;
  }
  .data-table td {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 8px 14px !important;
    border: none !important;
    border-bottom: 1px solid var(--line) !important;
    font-size: 0.87rem !important;
    min-height: 40px !important;
  }
  .data-table td:last-child { border-bottom: none !important; }
  .data-table td::before {
    content: attr(data-label);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    flex-shrink: 0;
    margin-right: 12px;
    min-width: 80px;
  }
  .data-table td:not([data-label]) { display: none !important; }

  /* Detail grid: stack on mobile */
  .detail-grid { grid-template-columns: 1fr !important; }

  /* Admin form 2-col */
  [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
}

/* =====================================================
   COOKIE CONSENT BANNER
   ===================================================== */
#cookieBanner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 8000;
  transform: translateY(100%);
  transition: transform 300ms ease;
  padding: 0 16px 16px;
}
#cookieBanner.cb-visible { transform: translateY(0); }

.cb-inner {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 20px 24px;
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  box-shadow: 0 -4px 24px rgba(0,0,0,0.08);
  position: relative;
}
.cb-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.cb-desc {
  font-size: 0.82rem;
  color: var(--ink-mid);
  line-height: 1.5;
  margin: 0;
}
.cb-desc a { color: var(--accent); }
.cb-text { flex: 1; }
.cb-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cb-btn {
  padding: 9px 18px;
  border-radius: 3px;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: all 150ms;
}
.cb-accept {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cb-accept:hover { opacity: 0.9; }
.cb-decline:hover { background: var(--bg-alt); }
.cb-settings {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  flex-shrink: 0;
}

/* Cookie Settings Modal */
#cbSettingsModal {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  opacity: 0;
  transition: opacity 250ms;
}
#cbSettingsModal.cb-visible { opacity: 1; }
.cb-modal {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  max-width: 500px;
  width: 100%;
  overflow: hidden;
}
.cb-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
}
.cb-modal-header h2 { font-size: 1rem; font-weight: 600; }
.cb-modal-header button {
  background: none; border: none; font-size: 1.3rem;
  cursor: pointer; color: var(--muted); padding: 4px;
}
.cb-modal-body { padding: 20px 24px; }
.cb-category {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.cb-category:last-child { border-bottom: none; }
.cb-cat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.cb-cat-name { font-weight: 500; font-size: 0.9rem; }
.cb-toggle-on { font-size: 0.78rem; color: var(--accent); }
.cb-category p { font-size: 0.82rem; color: var(--ink-mid); margin: 0; }
.cb-modal-footer { padding: 16px 24px; border-top: 1px solid var(--line); }
.cb-modal-footer .cb-btn { width: 100%; }

/* Toggle switch */
.cb-toggle { position: relative; display: inline-block; width: 42px; height: 24px; }
.cb-toggle input { opacity: 0; width: 0; height: 0; }
.cb-slider {
  position: absolute; inset: 0;
  background: var(--line);
  border-radius: 24px;
  cursor: pointer;
  transition: background 200ms;
}
.cb-slider::before {
  content: '';
  position: absolute;
  width: 18px; height: 18px;
  left: 3px; top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 200ms;
}
.cb-toggle input:checked + .cb-slider { background: var(--accent); }
.cb-toggle input:checked + .cb-slider::before { transform: translateX(18px); }

@media (max-width: 600px) {
  .cb-inner { flex-direction: column; gap: 14px; align-items: flex-start; }
  .cb-actions { width: 100%; }
  .cb-btn { flex: 1; text-align: center; }
}


/* =====================================================
   HOMEPAGE — funding pennant & EXIST section
   ===================================================== */
.hero-pennant {
  position: absolute;
  top: 110px;
  left: 28px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 16px;
  background: linear-gradient(135deg, rgba(10, 29, 74, 0.95) 0%, rgba(23, 78, 170, 0.88) 100%);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 30px rgba(3, 15, 39, 0.26);
  backdrop-filter: blur(6px);
}
.hero-pennant::after {
  content: '';
  position: absolute;
  right: -14px;
  top: 0;
  width: 0;
  height: 0;
  border-top: 23px solid transparent;
  border-bottom: 23px solid transparent;
  border-left: 14px solid rgba(23, 78, 170, 0.88);
}
.hero-pennant strong {
  letter-spacing: 0.02em;
  font-family: var(--font-body);
  font-size: 0.86rem;
  text-transform: none;
}
.hero-pennant small {
  display: block;
  color: rgba(255,255,255,0.72);
  letter-spacing: 0.08em;
  margin-top: 2px;
}
.exist-highlight {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 40px;
  align-items: center;
}
.exist-photo-wrap {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(9, 23, 54, 0.08);
}
.exist-photo-wrap > img {
  width: 100%;
  display: block;
  height: auto;
}
.exist-stat-card {
  position: absolute;
  top: 22px;
  left: 22px;
  background: rgba(8, 26, 69, 0.92);
  color: #fff;
  padding: 18px 20px;
  min-width: 190px;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}
.exist-stat-card strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1;
  margin-bottom: 8px;
  color: #fff;
}
.exist-stat-card span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
}
.photo-origin-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding: 18px 22px;
  background: linear-gradient(180deg, rgba(245,248,252,0.98) 0%, rgba(234,240,247,0.96) 100%);
  border-top: 1px solid var(--line);
}
.photo-origin-band .origin-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.photo-origin-band .origin-copy strong {
  font-size: 0.92rem;
  color: var(--ink);
}
.photo-origin-band .origin-copy span {
  font-size: 0.82rem;
  color: var(--ink-mid);
}
.photo-origin-band .origin-logos {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.photo-origin-band .origin-logos img {
  height: 34px;
  width: auto;
  display: block;
}
.exist-text-card {
  background: linear-gradient(160deg, rgba(9, 26, 69, 1) 0%, rgba(15, 56, 134, 0.98) 100%);
  color: #fff;
  padding: 34px 34px 30px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(7, 21, 54, 0.14);
}
.exist-text-card .eyebrow {
  color: rgba(255,255,255,0.74);
}
.exist-text-card h2,
.exist-text-card p,
.exist-text-card li,
.exist-text-card strong {
  color: #fff;
}
.exist-text-card p {
  color: rgba(255,255,255,0.86);
  line-height: 1.7;
}
.exist-list {
  list-style: none;
  margin: 22px 0 26px;
  padding: 0;
  display: grid;
  gap: 12px;
}
.exist-list li {
  padding-left: 18px;
  position: relative;
  color: rgba(255,255,255,0.92);
}
.exist-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent-soft);
}
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 22px;
  align-items: stretch;
}
.partner-logo-card {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.86);
  border: 1px solid var(--line);
  min-height: 104px;
  padding: 14px 18px;
}
.partner-logo-card img {
  max-width: 100%;
  max-height: 64px;
  object-fit: contain;
}
@media (max-width: 980px) {
  .hero-pennant {
    top: 96px;
    left: 18px;
    right: 18px;
    width: auto;
    max-width: calc(100% - 54px);
  }
  .exist-highlight {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 700px) {
  .hero-pennant {
    padding: 10px 14px 10px 14px;
    font-size: 0.64rem;
  }
  .hero-pennant::after { display: none; }
  .exist-stat-card {
    position: static;
    margin: 18px 18px 0;
  }
  .photo-origin-band {
    padding: 16px 18px;
  }
  .photo-origin-band .origin-logos img {
    height: 28px;
  }
  .exist-text-card {
    padding: 28px 22px 24px;
  }
}


/* =====================================================
   HOMEPAGE v1.62 — customer focus / network cards
   ===================================================== */
.hero-pennant {
  background: linear-gradient(135deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.98) 100%);
  color: #17356f;
  border: 1px solid rgba(19,53,111,0.10);
  box-shadow: 0 14px 30px rgba(9, 24, 56, 0.14);
  text-decoration: none;
}
.hero-pennant::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(180deg, #111111 0 33%, #d9392f 33% 66%, #f0c849 66% 100%);
}
.hero-pennant::after {
  border-left-color: rgba(248,250,252,0.98);
}
.hero-pennant strong { color: #1b3f8b; }
.hero-pennant small { color: #8a2f2f; }
.hero-pennant:hover { transform: translateY(-1px); box-shadow: 0 18px 34px rgba(9, 24, 56, 0.18); }

.exist-highlight {
  grid-template-columns: 1.15fr 0.95fr;
  align-items: stretch;
}
.exist-photo-wrap {
  display: flex;
  flex-direction: column;
}
.exist-photo-wrap > img {
  flex: 1;
  object-fit: cover;
}
.exist-side-card {
  background: linear-gradient(160deg, rgba(9, 26, 69, 1) 0%, rgba(16, 57, 135, 0.98) 100%);
  color: #fff;
  padding: 32px 32px 28px;
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: 0 18px 48px rgba(7, 21, 54, 0.14);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.exist-side-card p,
.exist-side-card li,
.exist-side-card strong,
.exist-side-card h3 { color: #fff; }
.exist-side-card p { color: rgba(255,255,255,0.88); line-height: 1.72; }
.exist-side-card h3 { font-size: 1.18rem; margin-bottom: 14px; }
.exist-side-card .btn-video-ghost { color: #fff; border-color: rgba(255,255,255,0.42); }
.home-network-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.home-network-card {
  display: block;
  padding: 22px 20px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  min-height: 210px;
}
.home-network-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 10px 24px rgba(11, 33, 79, 0.08);
}
.home-network-card img {
  height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  display: block;
  margin-bottom: 16px;
}
.home-network-card .meta {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.home-network-card h3 {
  font-size: 0.98rem;
  margin-bottom: 8px;
}
.home-network-card p {
  font-size: 0.86rem;
  line-height: 1.55;
  color: var(--ink-mid);
  margin-bottom: 12px;
}
.home-network-card .more {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent);
  border-bottom: 1px solid var(--accent);
}
.footer-origin {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 0.83rem;
  color: var(--muted);
}
.footer-origin strong { color: var(--ink); font-weight: 600; }
@media (max-width: 1200px) {
  .home-network-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  .exist-highlight { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .home-network-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   HOMEPAGE v1.63 — stronger visual system
   ===================================================== */
:root {
  --font-brand: 'Tenorite', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}
.brand,
.footer-brand .brand,
.auth-aside .brand,
.cta-block .brand {
  font-family: var(--font-brand);
  font-weight: 500;
  letter-spacing: -0.01em;
}
.hero-pennant {
  background: linear-gradient(135deg, rgba(246,248,252,0.97) 0%, rgba(234,238,246,0.98) 100%);
}
.hero-pennant strong { font-family: var(--font-brand); font-weight: 600; }
.visual-banner-section {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(110deg, #edf2f8 0%, #dde8f5 32%, #cfddec 100%);
}
.visual-banner-section img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.visual-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(244,246,250,0.16) 0%, rgba(13,27,46,0.08) 100%);
}
.feature-grid.clean-home > .feature .footer-origin { display: none; }
.section-cool {
  background: linear-gradient(180deg, #eef3f9 0%, #e6edf6 100%);
}
.home-network-card.card-with-photo {
  padding: 0 0 18px;
  overflow: hidden;
}
.home-network-card.card-with-photo .card-photo {
  width: 100%;
  height: 132px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.home-network-card.card-with-photo .card-inner {
  padding: 16px 18px 0;
}
.home-network-card.card-with-photo .card-logo {
  height: 28px;
  max-width: 140px;
  object-fit: contain;
  margin-bottom: 12px;
}
.exist-article-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.exist-article-photo {
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.exist-article-photo img {
  width: 100%;
  height: 100%;
  min-height: 340px;
  object-fit: cover;
  display: block;
}
.exist-article-photo figcaption {
  padding: 12px 14px;
  font-size: 0.84rem;
  color: var(--ink-mid);
  border-top: 1px solid var(--line);
  background: rgba(255,255,255,0.92);
}
.exist-article-copy {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 34px 36px;
  box-shadow: 0 10px 24px rgba(11,33,79,0.05);
}
@media (max-width: 980px) {
  .exist-article-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   v1.64 refinements
   ===================================================== */
.exist-photo-wrap > img {
  object-fit: contain;
  background: linear-gradient(180deg, #f5f5f5 0%, #eceff4 100%);
}
.quote-figure {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 32px 36px;
  margin: 0;
}
.quote-figure .quote-body {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: start;
}
.quote-figure .quote-portrait {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(10, 31, 68, 0.08);
}
.quote-figure blockquote {
  margin: 0 0 16px;
}
.logo-strip-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.logo-strip-inline img {
  height: 30px;
  width: auto;
  object-fit: contain;
  opacity: 0.95;
}
.exist-summary-box {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 28px 30px;
  box-shadow: 0 10px 24px rgba(12, 33, 74, 0.05);
}
.exist-summary-box p { color: var(--ink-mid); line-height: 1.72; }
.tech-brand-banner {
  padding: 10px 0 12px;
}
.tech-brand-banner .banner-frame {
  background: linear-gradient(180deg, #eef3f9 0%, #e6edf7 100%);
  border: 1px solid var(--line);
  overflow: hidden;
}
.tech-brand-banner img {
  width: 100%;
  max-height: 240px;
  object-fit: contain;
  display: block;
}
.problem-layout {
  align-items: start;
}
.problem-copy {
  height: auto;
  box-shadow: 0 12px 28px rgba(13, 32, 64, 0.04);
}
.problem-callout {
  margin-top: 20px;
  padding: 18px 20px;
  background: linear-gradient(180deg, rgba(221,233,245,0.7) 0%, rgba(255,255,255,0.75) 100%);
  border: 1px solid var(--line);
}
.problem-callout .title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 10px;
}
.problem-callout ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-mid);
}
.problem-callout li { margin-bottom: 8px; line-height: 1.55; }
.problem-callout li:last-child { margin-bottom: 0; }
.news-card-media {
  width: calc(100% + 60px);
  margin: -28px -30px 18px;
  height: 180px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
@media (max-width: 720px) {
  .quote-figure .quote-body { grid-template-columns: 1fr; }
  .quote-figure .quote-portrait { width: 84px; height: 84px; }
}


/* =====================================================
   v1.65 refinements
   ===================================================== */
.exist-kicker-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 0 0;
}
.exist-logo-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  padding: 8px 12px;
}
.exist-logo-pill img { height: 22px; width: auto; object-fit: contain; filter: brightness(0) invert(1); opacity: 0.96; }
.exist-subgrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 18px 0 16px;
}
.exist-subitem {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 12px 14px;
}
.exist-subitem strong {
  display: block;
  font-size: 0.82rem;
  margin-bottom: 4px;
  color: #fff;
}
.exist-subitem span {
  display: block;
  font-size: 0.84rem;
  line-height: 1.45;
  color: rgba(255,255,255,0.78);
}
.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 18px;
}
.news-card {
  background: var(--surface);
  border: 1px solid var(--line);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.news-card:hover {
  transform: translateY(-3px);
  border-color: rgba(29, 92, 181, 0.22);
  box-shadow: 0 12px 32px rgba(11, 32, 69, 0.08);
}
.news-card-media {
  width: 100%;
  height: 184px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--line);
}
.news-card-body { padding: 24px 26px 22px; display:flex; flex-direction:column; flex:1; }
.news-card-top { display:flex; justify-content:space-between; align-items:flex-start; gap: 12px; margin-bottom: 12px; }
.news-card-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.news-card-meta {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-align: right;
  line-height: 1.45;
}
.news-card h3 { font-size: 1.05rem; font-weight: 600; line-height: 1.32; margin: 0 0 10px; }
.news-card p { margin: 0; font-size: 0.92rem; color: var(--ink-mid); line-height: 1.64; }
.news-card-link { margin-top: auto; padding-top: 16px; }
.news-card-link a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.84rem;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.news-card-link a:hover { border-bottom-color: var(--accent); }
.knowledge-intro-card {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line-soft);
  padding: 28px 32px;
  box-shadow: 0 14px 28px rgba(11, 31, 66, 0.04);
}
.knowledge-keyfacts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 12px;
  margin: 0 0 18px;
}
.knowledge-keyfact {
  background: linear-gradient(180deg, rgba(233,241,249,0.95) 0%, rgba(247,250,253,0.96) 100%);
  border: 1px solid var(--line);
  padding: 14px 16px;
}
.knowledge-keyfact strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 6px;
}
.knowledge-keyfact span { display:block; color: var(--ink-mid); font-size: 0.88rem; line-height: 1.45; }
.knowledge-cards-grid {
  display:grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 24px;
}
.knowledge-cards-grid .knowledge-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 24px;
}
.knowledge-cards-grid .knowledge-card .tag {
  font-family: var(--font-mono); font-size: 0.72rem; color: var(--accent); letter-spacing:0.12em; margin-bottom: 10px;
}
.knowledge-cards-grid .knowledge-card h3 { font-size:1rem; margin: 0 0 10px; }
.knowledge-cards-grid .knowledge-card p { font-size: 0.88rem; color: var(--ink-mid); line-height:1.62; margin:0 0 12px; }
.knowledge-cards-grid .knowledge-card a { font-size: 0.82rem; color: var(--accent); text-decoration:none; border-bottom:1px solid transparent; }
.knowledge-cards-grid .knowledge-card a:hover { border-bottom-color: var(--accent); }
@media (max-width: 980px) {
  .exist-subgrid, .knowledge-keyfacts, .knowledge-cards-grid, .news-cards-grid { grid-template-columns: 1fr; }
}


/* =====================================================
   v1.66 — content consolidation, event logos, footer strip
   ===================================================== */
.news-card-logo-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
}
.news-card-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  height: 40px;
  padding: 6px 10px;
  background: rgba(255,255,255,0.78);
  border: 1px solid var(--line);
}
.news-card-logo img {
  max-height: 26px;
  max-width: 120px;
  object-fit: contain;
  display: block;
}
.news-card-logo-large {
  width: 100%;
  min-height: 116px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(238,244,250,0.96) 0%, rgba(248,251,253,0.98) 100%);
  border-bottom: 1px solid var(--line);
  padding: 18px;
}
.news-card-logo-large img {
  max-height: 70px;
  max-width: 82%;
  object-fit: contain;
}
.footer-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.10);
}
.footer-logo-strip img {
  height: 28px;
  width: auto;
  max-width: 120px;
  object-fit: contain;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.10);
  padding: 4px 6px;
}
.footer-logo-strip .footer-logo-note {
  flex-basis: 100%;
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--muted);
}
.home-news-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-end;
}
.content-route-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.content-route-note::before {
  content: '';
  width: 26px;
  height: 1px;
  background: var(--accent);
}
@media (max-width: 720px) {
  .home-news-actions { justify-content: flex-start; }
  .footer-logo-strip img { height: 24px; }
}


/* =====================================================
   v1.67 — unified visual language + responsive audit tools
   ===================================================== */
:root {
  --card-radius: 14px;
  --card-shadow: 0 12px 28px rgba(10, 28, 58, 0.06);
  --card-shadow-hover: 0 16px 34px rgba(10, 28, 58, 0.10);
}

section { position: relative; }
.section-head { margin-bottom: 28px; }
.section-head p { max-width: 760px; }

.page-hero {
  background: linear-gradient(180deg, #f5f7fb 0%, #eef2f8 100%);
  padding: 92px 0 52px;
}
.page-hero .container-narrow,
.page-hero .container { max-width: 900px; }
.page-hero p { font-size: 1.02rem; max-width: 720px; }

.feature-grid,
.news-cards-grid,
.knowledge-cards-grid,
.team-grid,
.home-network-grid {
  gap: 16px;
}

.feature-grid {
  border: 0;
}
.feature {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
  padding: 30px 28px;
  background: rgba(255,255,255,0.96);
}
.feature:hover {
  background: #fff;
  border-color: rgba(26,82,150,0.24);
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.feature h3 { font-size: 1.05rem; }
.feature-num { margin-bottom: 16px; }

.two-col-image,
.exist-summary-box,
.quote-figure,
.problem-copy,
.knowledge-cards-grid .knowledge-card,
.news-card,
.home-network-card,
.team-card {
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}

.two-col-image {
  border: 1px solid var(--line-soft);
  background: #fff;
}

.news-card,
.home-network-card,
.knowledge-cards-grid .knowledge-card,
.team-card,
.exist-summary-box,
.quote-figure {
  border-color: var(--line-soft);
}

.home-network-card {
  padding: 24px;
  border-radius: var(--card-radius);
  box-shadow: var(--card-shadow);
}
.home-network-card:hover {
  box-shadow: var(--card-shadow-hover);
  transform: translateY(-2px);
}
.home-network-card img {
  height: 34px;
  max-width: 148px;
  object-fit: contain;
}
.home-network-card .meta { margin-bottom: 14px; }
.home-network-card h3 { margin-bottom: 10px; }

.news-card {
  border-radius: var(--card-radius);
  min-height: 100%;
}
.news-card-media,
.news-card-logo-large {
  border-top-left-radius: var(--card-radius);
  border-top-right-radius: var(--card-radius);
}
.news-card-logo-large {
  min-height: 148px;
  padding: 22px;
  background: linear-gradient(180deg, #eef3fa 0%, #f8fbfd 100%);
}
.news-card-logo-row { margin-bottom: 10px; }
.news-card-logo {
  min-width: 72px;
  height: 34px;
  padding: 4px 8px;
  background: transparent;
  border: 0;
}
.news-card-body { padding: 22px 24px 20px; }
.news-card-top { margin-bottom: 10px; }
.news-card-tag, .news-card-meta { font-size: 0.72rem; }
.news-card h3 { font-size: 1rem; }
.news-card p { font-size: 0.9rem; }

.news-chip {
  border-radius: 999px;
  padding: 9px 16px;
  background: rgba(255,255,255,0.78);
}

.team-card {
  padding: 22px;
  box-shadow: var(--card-shadow);
}
.team-card:hover { box-shadow: var(--card-shadow-hover); }

.quote-figure,
.exist-summary-box,
.problem-copy,
.knowledge-cards-grid .knowledge-card {
  background: rgba(255,255,255,0.95);
}
.problem-copy {
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  padding: 28px 30px;
  min-height: 100%;
}
.problem-images img {
  border-radius: var(--card-radius);
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
}
.problem-layout { gap: 24px; align-items: stretch; }

.exist-highlight {
  grid-template-columns: minmax(0,1.08fr) minmax(0,0.92fr);
  gap: 20px;
}
.exist-photo-wrap,
.exist-side-card {
  border-radius: var(--card-radius);
  overflow: hidden;
  min-height: 100%;
}
.exist-side-card {
  box-shadow: var(--card-shadow);
}
.exist-subgrid { gap: 10px; }
.exist-subitem {
  border-radius: 10px;
}
.exist-logo-pill {
  border-radius: 999px;
}

.hero-pennant {
  border-radius: 999px;
  padding: 12px 18px 12px 16px;
  box-shadow: 0 14px 32px rgba(9, 24, 56, 0.14);
}
.hero-pennant::after { display: none; }
.hero-pennant strong { font-size: 0.77rem; }
.hero-pennant small { font-size: 0.7rem; }

.footer-logo-strip {
  gap: 10px;
}
.footer-logo-strip img {
  background: transparent;
  border: 0;
  padding: 0;
  opacity: 0.92;
  max-width: 110px;
}
.footer-brand p { max-width: 420px; }
.footer-origin {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255,255,255,0.10);
  max-width: 440px;
}

.content-audit-note {
  margin-top: 18px;
  font-size: 0.84rem;
  color: var(--muted);
}

@media (max-width: 1180px) {
  .two-col { gap: 48px; }
  .exist-highlight { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .page-hero { padding-top: 82px; }
  .two-col { grid-template-columns: 1fr; gap: 26px; }
  .home-network-grid,
  .feature-grid.clean-home,
  .feature-grid[style*="repeat(3"] {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 720px) {
  section[style*="padding: 96px 0 72px"],
  section[style*="padding: 88px 0"],
  section[style*="padding: 80px 0"],
  section[style*="padding-bottom: 100px"],
  section[style*="padding: 56px 0"] {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .feature, .home-network-card, .news-card-body, .knowledge-cards-grid .knowledge-card, .team-card, .problem-copy, .exist-summary-box {
    padding-left: 20px;
    padding-right: 20px;
  }
  .video-sub { max-width: 100%; }
  .trust-items { gap: 8px; }
  .footer-grid { gap: 32px; }
}


/* =====================================================
   v1.68 — final polish pass: rhythm, CTA consistency, mobile safety
   ===================================================== */

/* Global layout rhythm */
main, section, .container, .container-narrow { min-width: 0; }
.container > *, .container-narrow > *, .two-col > *, .feature-grid > *, .news-cards-grid > *, .team-grid > *, .knowledge-cards-grid > * { min-width: 0; }

section:not(.video-hero):not(.page-hero):not(.tech-brand-banner) {
  scroll-margin-top: 92px;
}

/* Consistent section spacing and less "assembled" feel */
.section-head {
  max-width: 860px;
}
.section-head.center {
  max-width: 820px;
}
.section-head h2 {
  margin-bottom: 14px;
}
.section-head p {
  font-size: 0.98rem;
  line-height: 1.66;
}

/* CTA system harmonization */
.btn,
.btn-line,
.btn-primary,
.btn-ghost,
.btn-small,
.btn-large,
.btn-video-primary,
.btn-video-ghost {
  border-radius: 999px;
  white-space: nowrap;
}
.btn-line {
  background: rgba(255,255,255,0.62);
}
.btn-line:hover,
.btn-ghost:hover {
  transform: translateY(-1px);
}

/* Hero and pennant: keep prominent but not floating-chaotic */
.hero-pennant {
  max-width: min(520px, calc(100vw - 42px));
}
.video-hero-content {
  z-index: 5;
}
.video-cta {
  align-items: center;
}

/* Card system: ensure equal perception and no half-empty blocks */
.feature,
.news-card,
.home-network-card,
.knowledge-cards-grid .knowledge-card,
.team-card,
.exist-summary-box,
.quote-figure,
.problem-copy {
  min-height: 0;
}
.feature-grid,
.news-cards-grid,
.home-network-grid,
.knowledge-cards-grid,
.team-grid {
  align-items: stretch;
}
.feature,
.news-card,
.home-network-card,
.knowledge-cards-grid .knowledge-card {
  display: flex;
  flex-direction: column;
}
.feature p,
.home-network-card p,
.knowledge-cards-grid .knowledge-card p {
  margin-bottom: 0;
}
.feature .btn,
.home-network-card .more,
.news-card-link {
  margin-top: auto;
}

/* EXIST block: reduce overlay risk and keep photo readable */
.exist-photo-wrap {
  min-height: 420px;
}
.exist-photo-wrap > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.exist-stat-card {
  border-radius: 12px;
  left: 18px;
  top: 18px;
  max-width: calc(100% - 36px);
}
.exist-stat-card strong {
  font-size: clamp(1.45rem, 3vw, 2.2rem);
}
.exist-stat-card span {
  font-size: 0.78rem;
}

/* News: logos relevant but visually quiet */
.news-card-logo-row {
  min-height: 36px;
}
.news-card-logo {
  justify-content: flex-start;
}
.news-card-logo-large img {
  filter: none;
}
.news-card-media {
  background: var(--bg-alt);
}

/* Knowledge page: more balanced text/image block */
.problem-layout {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
}
.problem-copy p {
  max-width: 72ch;
}
.problem-images {
  height: 100%;
}
.problem-images img {
  min-height: 190px;
}

/* Footer: logos belong together, but secondary to navigation */
.footer-logo-strip {
  max-width: 460px;
}
.footer-logo-strip img {
  max-height: 26px;
  opacity: 0.9;
}
.footer-logo-note {
  opacity: 0.85;
}

/* Tables and wide content must not break mobile */
table {
  min-width: 680px;
}
.table-wrap,
div[style*="overflow-x: auto"] {
  -webkit-overflow-scrolling: touch;
}

/* Mobile-first safety */
@media (max-width: 1180px) {
  .feature-grid[style*="repeat(4"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .feature-grid[style*="repeat(3"] { grid-template-columns: repeat(2, minmax(0,1fr)) !important; }
  .knowledge-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .news-cards-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .problem-layout { grid-template-columns: 1fr; }
  .problem-images {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }
}

@media (max-width: 860px) {
  .video-title { font-size: clamp(2.4rem, 12vw, 4.2rem); }
  .video-sub { font-size: 1rem; }
  .hero-pennant {
    top: 86px;
    left: 14px;
    right: 14px;
    max-width: none;
  }
  .trust-grid {
    gap: 12px;
  }
  .exist-photo-wrap {
    min-height: auto;
  }
  .exist-stat-card {
    position: static;
    margin: 14px;
  }
  .exist-photo-wrap > img {
    height: auto;
  }
  .exist-subgrid,
  .knowledge-cards-grid,
  .news-cards-grid,
  .home-network-grid,
  .feature-grid,
  .feature-grid[style],
  .team-grid,
  #teamCore,
  #teamAdvisory {
    grid-template-columns: 1fr !important;
  }
  .two-col-image img,
  .two-col-image[style] img {
    height: auto !important;
    max-height: 420px;
  }
  .problem-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .container, .container-narrow {
    padding-left: 20px;
    padding-right: 20px;
  }
  .page-hero {
    padding-top: 78px;
    padding-bottom: 42px;
  }
  .page-hero h1 {
    font-size: clamp(1.45rem, 8vw, 2.1rem);
  }
  .lead, .page-hero p {
    font-size: 0.98rem;
  }
  .video-cta {
    flex-direction: column;
    align-items: stretch;
  }
  .btn-video-primary, .btn-video-ghost {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .feature, .home-network-card, .knowledge-cards-grid .knowledge-card, .team-card, .news-card-body, .problem-copy, .exist-side-card, .quote-figure {
    padding: 20px;
  }
  .quote-figure .quote-body {
    gap: 14px;
  }
  .footer-bottom {
    align-items: flex-start;
  }
  .footer-logo-strip {
    gap: 10px 12px;
  }
  .footer-logo-strip img {
    max-width: 92px;
    max-height: 22px;
  }
}


/* =====================================================
   v1.69 — visual correction pass from screenshots
   ===================================================== */

/* Header: collapse earlier before links touch login */
@media (max-width: 1180px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; }
}
@media (min-width: 1181px) {
  .nav-toggle { display: none !important; }
}

/* EXIST funding arrow badge */
.hero-pennant {
  top: 104px;
  left: 28px;
  border-radius: 8px 999px 999px 8px;
  padding: 11px 28px 11px 26px;
  background: linear-gradient(135deg, rgba(255,255,255,0.97) 0%, rgba(239,244,250,0.98) 100%);
  border: 1px solid rgba(26,82,150,0.16);
  box-shadow: 0 14px 34px rgba(4,16,38,0.22);
  overflow: visible;
}
.hero-pennant::before {
  left: 0;
  top: 0;
  bottom: 0;
  width: 7px;
  border-radius: 8px 0 0 8px;
  background: linear-gradient(180deg,#111 0 33.33%,#dd2c2c 33.33% 66.66%,#ffd747 66.66% 100%);
}
.hero-pennant::after {
  display: block !important;
  content: "";
  position: absolute;
  right: -18px;
  top: -1px;
  width: 0;
  height: 0;
  border-top: 25px solid transparent;
  border-bottom: 25px solid transparent;
  border-left: 18px solid rgba(239,244,250,0.98);
  filter: drop-shadow(4px 4px 8px rgba(4,16,38,0.10));
}
.hero-pennant strong {
  color: var(--accent-deep);
  font-weight: 700;
}
.hero-pennant small {
  color: #9b3a2a;
  letter-spacing: 0.12em;
}

/* EXIST section: elegant highlight, no heavy dark box */
.exist-highlight {
  align-items: stretch;
  gap: 26px;
}
.exist-photo-wrap {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--card-radius);
  overflow: hidden;
}
.exist-photo-wrap > img {
  object-fit: cover;
  object-position: center;
  background: #fff;
}
.exist-stat-card {
  background: rgba(255,255,255,0.92);
  color: var(--ink);
  border: 1px solid rgba(196,210,232,0.9);
  box-shadow: 0 12px 28px rgba(8,22,48,0.14);
  backdrop-filter: blur(8px);
}
.exist-stat-card strong {
  color: var(--accent-deep);
}
.exist-stat-card span {
  color: var(--ink-mid);
}
.exist-side-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(243,247,252,0.98) 100%);
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  border-top: 5px solid var(--accent);
  box-shadow: var(--card-shadow);
}
.exist-side-card h3,
.exist-side-card p,
.exist-side-card li,
.exist-side-card strong {
  color: var(--ink);
}
.exist-side-card p { color: var(--ink-mid); }
.exist-side-card .exist-list li { color: var(--ink-mid); }
.exist-subitem {
  background: rgba(221,233,245,0.72);
  border: 1px solid var(--line-soft);
}
.exist-subitem span { color: var(--ink-mid); }
.exist-logo-pill {
  background: rgba(255,255,255,0.88);
  border: 1px solid var(--line);
  color: var(--accent-deep);
}
.exist-logo-pill img {
  filter: none !important;
}
.exist-side-card .btn-video-ghost {
  color: var(--accent-deep) !important;
  border-color: var(--accent-soft) !important;
  background: rgba(255,255,255,0.55);
}
.exist-side-card .btn-video-ghost:hover { border-color: var(--accent) !important; }

/* Network cards: centered, larger logos */
.home-network-card {
  text-align: center;
  align-items: center;
}
.home-network-card img {
  height: 58px;
  max-width: 190px;
  margin: 0 auto 22px;
}
.home-network-card p { text-align: left; width: 100%; }
.home-network-card .meta,
.home-network-card h3 { width: 100%; }
.home-network-card .more {
  display: inline-block;
  margin-top: 22px;
}

/* Footer: white logo row, no patchwork look */
.site-footer { padding-top: 72px; }
.footer-grid {
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(160px, 0.75fr));
  align-items: start;
}
.footer-logo-strip {
  background: #fff;
  border: 1px solid rgba(196,210,232,0.42);
  border-radius: 14px;
  padding: 16px 18px;
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(5, minmax(78px,1fr));
  gap: 12px 18px;
  align-items: center;
  max-width: 100%;
}
.footer-logo-strip img {
  max-height: 42px;
  max-width: 100%;
  width: auto;
  justify-self: center;
  object-fit: contain;
  opacity: 1;
}
.footer-logo-strip .footer-logo-note {
  grid-column: 1 / -1;
  text-align: center;
  color: #53637a;
  font-size: 0.72rem;
  margin-top: 2px;
}

/* Technology banner: no box, fade sides */
.tech-brand-banner {
  padding: 24px 0 28px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.tech-brand-banner .banner-frame {
  border: 0 !important;
  background: transparent !important;
  overflow: visible;
}
.tech-brand-banner img {
  width: min(100%, 1200px);
  margin: 0 auto;
  max-height: 230px;
  object-fit: contain;
  border: 0;
  box-shadow: none;
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}

/* Technology / standards cards */
.standards-table { gap: 24px; }
.standard-card {
  border-radius: var(--card-radius);
  border-color: var(--line-soft);
  box-shadow: var(--card-shadow);
  padding: 30px;
}
.standard-card .code {
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}

/* Services: cards rounded and consistent */
.service-detail,
.service-process > div,
.process-card {
  border-radius: var(--card-radius) !important;
  border-color: var(--line-soft) !important;
  box-shadow: var(--card-shadow);
}
.service-detail { padding: 44px; }
.service-process > div { background: rgba(255,255,255,0.78) !important; }
.service-detail .tag { border-radius: 999px; }

/* About / image boxes: no empty image containers */
.two-col-image {
  overflow: hidden;
  border-radius: var(--card-radius);
  min-height: 320px;
}
.two-col-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}
.two-col:has(.two-col-image) {
  align-items: stretch;
}

/* About cards with logos */
.about-card-grid a,
section a[style*="display:block"][style*="background:var(--surface)"] {
  border-radius: var(--card-radius) !important;
  border-color: var(--line-soft) !important;
  box-shadow: var(--card-shadow);
}
.about-card-grid img,
section a[style*="display:block"][style*="background:var(--surface)"] img {
  height: 58px !important;
  max-width: 190px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  object-fit: contain;
}

/* Team cards: founders larger, LinkedIn link */
#teamCore.team-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  max-width: 980px !important;
}
#teamCore .team-card {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 24px;
  padding: 28px;
}
#teamCore .team-photo {
  width: 120px;
  height: 120px;
}
.team-social {
  display: inline-flex;
  margin-top: 12px;
  font-size: 0.82rem;
  color: var(--accent);
  border-bottom: 1px solid transparent;
}
.team-social:hover { border-bottom-color: var(--accent); }

/* Knowledge: round all tables/text boxes; font unified */
.knowledge-keyfact,
.problem-callout,
.table-wrap,
table,
th,
td {
  font-family: var(--font-body) !important;
}
.knowledge-keyfact,
.problem-callout,
.table-wrap,
.knowledge-card,
.knowledge-cards-grid .knowledge-card {
  border-radius: var(--card-radius);
}
table {
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: var(--card-radius);
}
th:first-child { border-top-left-radius: var(--card-radius); }
th:last-child { border-top-right-radius: var(--card-radius); }
tr:last-child td:first-child { border-bottom-left-radius: var(--card-radius); }
tr:last-child td:last-child { border-bottom-right-radius: var(--card-radius); }

/* Earlier compact nav */
@media (max-width: 1220px) {
  .nav-links { display: none !important; }
  .nav-toggle { display: flex !important; }
}
@media (min-width: 1221px) {
  .nav-toggle { display: none !important; }
}

@media (max-width: 860px) {
  .hero-pennant { top: 88px; left: 16px; max-width: calc(100vw - 54px); }
  .hero-pennant::after { border-top-width: 24px; border-bottom-width: 24px; }
  #teamCore.team-grid { grid-template-columns: 1fr !important; }
  #teamCore .team-card { grid-template-columns: 88px 1fr; }
  #teamCore .team-photo { width: 88px; height: 88px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-logo-strip { grid-template-columns: repeat(2, minmax(90px,1fr)); }
  .home-network-card { text-align: left; align-items: flex-start; }
  .home-network-card img { margin-left: 0; margin-right: 0; }
}
@media (max-width: 560px) {
  .hero-pennant { position: absolute; font-size: 0.66rem; padding-right: 22px; }
  .hero-pennant strong { font-size: 0.72rem; }
  .hero-pennant small { font-size: 0.62rem; }
  .exist-subgrid { grid-template-columns: 1fr; }
  .service-detail { padding: 26px 22px; }
  #teamCore .team-card { grid-template-columns: 1fr; }
  #teamCore .team-photo { width: 104px; height: 104px; }
  .footer-logo-strip { grid-template-columns: 1fr 1fr; }
}


/* =====================================================
   v1.70 — structural cleanup and teaser/footer pass
   ===================================================== */

/* custom image teaser */
.hero-pennant.hero-pennant-image {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  overflow: visible !important;
  width: auto;
  max-width: min(68vw, 440px);
}
.hero-pennant.hero-pennant-image::before,
.hero-pennant.hero-pennant-image::after {
  display: none !important;
  content: none !important;
}
.hero-pennant.hero-pennant-image img {
  display: block;
  width: 100%;
  height: auto;
}

/* EXIST highlight – less box-in-box */
.exist-highlight {
  gap: 30px;
  align-items: start;
}
.exist-photo-wrap {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
}
.exist-photo-wrap > img {
  width: 100%;
  display: block;
}
.exist-stat-card {
  background: rgba(22, 45, 99, 0.95);
  color: #fff;
  border-radius: 24px;
  border: none;
  box-shadow: 0 18px 38px rgba(8, 18, 44, 0.18);
}
.exist-stat-card strong,
.exist-stat-card span { color: #fff; }
.exist-side-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  color: var(--ink);
}
.exist-side-card h3,
.exist-side-card p,
.exist-side-card strong,
.exist-side-card span { color: inherit; }
.exist-subgrid {
  display: grid;
  gap: 0;
  margin-top: 18px;
  border-top: 1px solid var(--line);
}
.exist-subitem {
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid var(--line);
  border-radius: 0 !important;
  padding: 16px 0 !important;
}
.exist-subitem:last-child { border-bottom: 0; }
.exist-logo-pill {
  background: #f3f7fc;
  border: 1px solid var(--line-soft);
}

/* Full-width footer logo row */
.site-footer {
  overflow: hidden;
}
.site-footer .container {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.footer-grid {
  width: 100%;
  display: grid !important;
  grid-template-columns: minmax(280px, 1.35fr) repeat(3, minmax(140px, 0.72fr));
  gap: 34px 42px !important;
  align-items: start !important;
}
.footer-brand,
.footer-col {
  min-width: 0;
}
.footer-logo-row {
  width: 100%;
}
.footer-logo-strip {
  width: 100%;
  background: #fff !important;
  border: 1px solid rgba(201, 212, 229, 0.78) !important;
  border-radius: 22px !important;
  padding: 18px 24px !important;
  margin: 0 !important;
  display: grid !important;
  grid-template-columns: repeat(5, minmax(105px, 1fr));
  gap: 14px 22px;
  align-items: center;
  justify-items: center;
  box-shadow: 0 10px 28px rgba(8, 19, 44, 0.10);
}
.footer-logo-strip img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 48px !important;
  max-height: 52px !important;
  object-fit: contain;
  opacity: 1 !important;
  justify-self: center !important;
}
.footer-logo-strip img.logo-bmwe { height: 50px !important; max-height: 54px !important; }
.footer-logo-strip img.logo-exist { height: 56px !important; max-height: 60px !important; }
.footer-logo-strip img.logo-dwi { height: 48px !important; max-height: 52px !important; }
.footer-logo-strip img.logo-esf { height: 48px !important; max-height: 52px !important; }
.footer-logo-strip img.logo-leibniz { height: 64px !important; max-height: 68px !important; }
.footer-logo-note {
  grid-column: 1 / -1;
  text-align: center;
  color: #5a6b83;
  font-size: 0.86rem;
  line-height: 1.45;
  margin-top: 2px;
}
.footer-bottom {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}

/* Selected programme cards */
.selected-programmes-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px !important;
}
.home-network-card {
  border-radius: 24px !important;
  min-height: 0;
  text-align: left;
  align-items: stretch;
  justify-content: flex-start;
  padding: 32px 28px !important;
}
.home-network-card img {
  display: block;
  margin: 0 auto 18px !important;
  height: 64px !important;
  max-height: 64px;
  max-width: 180px !important;
  object-fit: contain;
}
.home-network-card .meta,
.home-network-card h3,
.home-network-card p,
.home-network-card .more {
  width: 100%;
}
.home-network-card .meta {
  text-align: left;
  margin-top: 6px;
}
.home-network-card p {
  text-align: left !important;
}
.home-network-card .more {
  margin-top: 20px !important;
}

/* Knowledge area */
.knowledge-intro-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 28px;
  padding: 34px 34px 28px;
  box-shadow: var(--card-shadow);
}
.knowledge-keyfacts-stack {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  gap: 16px !important;
  margin-bottom: 26px;
}
.knowledge-keyfact {
  background: #eef3f9 !important;
  border: 1px solid #d7e2f0 !important;
  border-radius: 22px !important;
  padding: 20px 22px !important;
}
.problem-callout {
  background: #f5f8fc !important;
  border: 1px solid #d7e2f0 !important;
  border-radius: 22px !important;
}
.problem-stat-grid {
  gap: 20px !important;
}
.stat-box {
  border-radius: 26px !important;
  border: 1px solid rgba(25, 60, 119, 0.2);
  overflow: hidden;
  box-shadow: var(--card-shadow);
}
.sources-grid {
  gap: 20px !important;
}
.article-card {
  border-radius: 24px !important;
  border: 1px solid #d9e3ef !important;
  background: #f7f9fc !important;
  box-shadow: none !important;
}
.article-card .tag {
  color: var(--accent) !important;
}
.article-card .meta {
  color: #6c7b91 !important;
}

/* Technology standards */
.standard-card {
  border-radius: 24px !important;
}

/* More breathing space in boxed content */
section .container > .section-head,
.technology-workflow .container,
#standards .container {
  padding-left: 6px;
  padding-right: 6px;
}

/* Sweater / image cards on smaller screens */
@media (max-width: 900px) {
  .two-col {
    gap: 24px;
  }
  .two-col-image {
    max-height: none !important;
    min-height: 0 !important;
    height: auto !important;
  }
  .two-col-image img,
  .two-col-image[style] img,
  .two-col-image img[style] {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 4 / 5;
    object-fit: cover !important;
    display: block;
  }
  .selected-programmes-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .home-network-card {
    text-align: left;
  }
  .home-network-card img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .footer-grid {
    grid-template-columns: 1fr !important;
  }
  .footer-logo-strip {
    grid-template-columns: repeat(3, minmax(90px,1fr)) !important;
  }
}
@media (max-width: 640px) {
  .hero-pennant.hero-pennant-image {
    max-width: min(86vw, 360px);
  }
  .problem-copy.knowledge-intro-card {
    padding: 22px;
  }
  .selected-programmes-grid {
    grid-template-columns: 1fr !important;
  }
  .home-network-card {
    padding: 26px 22px !important;
  }
  .home-network-card img {
    max-width: 160px !important;
    height: 58px !important;
  }
  .footer-logo-strip {
    grid-template-columns: repeat(2, minmax(100px,1fr)) !important;
    padding: 16px 16px !important;
  }
  .footer-logo-strip img.logo-leibniz { height: 58px !important; max-height: 62px !important; }
  .footer-logo-note {
    font-size: 0.8rem;
  }
}


/* =====================================================
   v1.71 — footer / teaser / process / quote refinement
   ===================================================== */

/* Hero teaser: compact, never over content */
.video-hero { overflow: hidden; }
.hero-pennant.hero-pennant-image {
  position: absolute;
  top: 104px;
  left: clamp(18px, 3vw, 36px);
  z-index: 4;
  max-width: clamp(250px, 28vw, 420px);
  width: min(420px, calc(100vw - 36px));
}
.hero-pennant.hero-pennant-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1120px) {
  .hero-pennant.hero-pennant-image {
    max-width: 340px;
    top: 96px;
  }
}
@media (max-width: 840px) {
  .hero-pennant.hero-pennant-image {
    max-width: 280px;
    top: 86px;
    left: 14px;
  }
}
@media (max-width: 560px) {
  .hero-pennant.hero-pennant-image {
    max-width: 240px;
    top: 84px;
    left: 12px;
  }
}

/* Services process card: highlighted but consistent */
.service-process {
  align-self: stretch;
}
.service-process-highlight {
  background: linear-gradient(180deg, #eef4fb 0%, #e7eef8 100%) !important;
  border: 1px solid #d2dced !important;
  border-radius: 28px !important;
  box-shadow: var(--card-shadow);
  padding: 28px 28px 24px !important;
}
.service-process-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}
.service-process-list li {
  border-top: 1px solid rgba(55, 83, 131, 0.14);
  padding-top: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  font-size: 0.98rem;
}
.service-process-list li:first-child { border-top: 0; padding-top: 0; }
.service-process-list strong { color: var(--ink); }
.service-process-list span { color: var(--accent); margin: 0 2px; }

/* Technology quote block centered */
.technology-quote-section {
  background: var(--bg-alt);
}
.section-head-centered {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 26px;
}
.section-head-centered .eyebrow,
.section-head-centered h2,
.section-head-centered p { text-align: center; }
.quote-figure-centered {
  max-width: 1080px;
  margin: 0 auto;
}
.quote-figure-centered .quote-body {
  align-items: center;
  grid-template-columns: 120px 1fr;
  gap: 34px;
}
.quote-figure-centered blockquote {
  margin-bottom: 22px;
}
@media (max-width: 720px) {
  .quote-figure-centered .quote-body {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .quote-figure-centered .quote-portrait {
    margin: 0 auto;
  }
}

/* Footer like top navigation: clean white full-width band */
.site-footer {
  background: #ffffff !important;
  color: var(--ink) !important;
  border-top: 1px solid var(--line-soft);
  padding: 0 !important;
  overflow: hidden;
}
.site-footer .container {
  max-width: 1280px;
  padding-top: 0;
  padding-bottom: 0;
  gap: 0;
}
.footer-logo-row {
  width: 100%;
  padding: 26px 0 22px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-logo-strip {
  width: 100%;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 34px;
}
.footer-logo-strip img {
  height: 46px !important;
  max-height: 54px !important;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}
.footer-logo-strip img.logo-bmwe { height: 50px !important; }
.footer-logo-strip img.logo-exist { height: 58px !important; }
.footer-logo-strip img.logo-esf { height: 48px !important; }
.footer-logo-strip img.logo-dwi { height: 52px !important; }
.footer-logo-strip img.logo-leibniz { height: 70px !important; }
.footer-logo-note {
  flex-basis: 100%;
  text-align: center;
  color: #5a6b83;
  margin-top: 4px;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
  gap: 28px 38px !important;
  padding: 30px 0 26px;
}
.footer-brand p, .footer-col a, .footer-bottom, .footer-bottom span {
  color: var(--ink-mid) !important;
}
.footer-col h4, .footer-brand h4, .footer-brand .brand {
  color: var(--ink) !important;
}
.footer-col ul { gap: 12px; }
.footer-col a:hover, .footer-legal a:hover { color: var(--accent) !important; }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding: 18px 0 20px;
}
.site-footer > div:last-child {
  background: #ffffff;
  border-top: 1px solid var(--line-soft) !important;
  margin-top: 0 !important;
}
.site-footer > div:last-child a { color: var(--ink-mid) !important; }
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .footer-logo-row { padding: 20px 0 18px; }
  .footer-logo-strip {
    gap: 14px 24px;
  }
  .footer-logo-strip img.logo-leibniz { height: 60px !important; }
  .footer-logo-strip img.logo-exist { height: 52px !important; }
}


/* v1.71.1 footer row spanning full grid */
.footer-logo-row {
  grid-column: 1 / -1;
  order: -1;
}

/* =====================================================
   v1.72 — spacing / rectangular media / footer rollback
   ===================================================== */

/* Use the existing user banner and keep it small enough not to interfere */
.hero-pennant.hero-pennant-image {
  top: 28px !important;
  left: clamp(18px, 2.2vw, 34px) !important;
  width: clamp(210px, 18vw, 300px) !important;
  max-width: calc(100vw - 36px) !important;
  z-index: 4;
}
.hero-pennant.hero-pennant-image img {
  width: 100%;
  height: auto;
  display: block;
}
@media (max-width: 1100px) {
  .hero-pennant.hero-pennant-image {
    top: 22px !important;
    width: clamp(200px, 24vw, 280px) !important;
  }
}
@media (max-width: 760px) {
  .hero-pennant.hero-pennant-image {
    top: 16px !important;
    left: 14px !important;
    width: min(240px, calc(100vw - 28px)) !important;
  }
}
@media (max-width: 520px) {
  .hero-pennant.hero-pennant-image {
    width: min(220px, calc(100vw - 24px)) !important;
  }
}

/* More visible spacing between technology cards */
.standards-table {
  gap: 30px !important;
}
@media (max-width: 720px) {
  .standards-table {
    gap: 24px !important;
  }
}
.standard-card {
  border-radius: 22px !important;
}

/* Photos should be rectangular rather than circular */
.quote-figure .quote-portrait,
.quote-figure-centered .quote-portrait {
  width: 112px !important;
  height: 132px !important;
  border-radius: 16px !important;
  object-fit: cover;
}
.problem-images {
  display: grid;
  gap: 18px;
  align-content: start;
}
.problem-images img {
  border-radius: 14px !important;
}

/* Knowledge intro: no nested box-in-box */
.problem-copy.knowledge-intro-card {
  background: #eef3f8 !important;
  border: 1px solid #d8e2ef !important;
  box-shadow: none !important;
  border-radius: 24px !important;
}
.problem-callout {
  display: none !important;
}

/* Footer: dark content area, only logo strip stays white */
.site-footer {
  background: var(--bg-dark) !important;
  color: #d7e0ee !important;
  border-top: 0 !important;
  padding: 0 !important;
}
.site-footer .container {
  max-width: 1280px;
  padding-top: 0;
  padding-bottom: 0;
}
.footer-grid {
  display: grid !important;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 0.9fr;
  gap: 28px 38px !important;
  padding: 30px 0 24px;
}
.footer-brand p,
.footer-col a,
.footer-bottom,
.footer-bottom span,
.site-footer > div:last-child a {
  color: #b8c6db !important;
}
.footer-brand .brand,
.footer-col h5,
.footer-origin strong,
.footer-legal a:hover,
.footer-col a:hover {
  color: #ffffff !important;
}
.footer-origin {
  color: #aebcd1 !important;
}
.footer-logo-row {
  grid-column: 1 / -1;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #ffffff;
  padding: 12px 18px 10px;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.footer-logo-strip {
  max-width: 1280px !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 24px;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.footer-logo-strip img {
  width: auto;
  max-width: 150px;
  height: 38px !important;
  max-height: 42px !important;
  object-fit: contain;
}
.footer-logo-strip img.logo-bmwe { height: 42px !important; max-height: 46px !important; }
.footer-logo-strip img.logo-exist { height: 48px !important; max-height: 52px !important; }
.footer-logo-strip img.logo-esf { height: 40px !important; max-height: 44px !important; }
.footer-logo-strip img.logo-dwi { height: 42px !important; max-height: 46px !important; }
.footer-logo-strip img.logo-leibniz { height: 50px !important; max-height: 54px !important; }
.footer-logo-note {
  flex-basis: 100%;
  text-align: center;
  color: #5c6c82 !important;
  margin-top: 2px;
  font-size: 0.84rem;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 18px 0 20px;
}
.site-footer > div:last-child {
  background: rgba(4, 14, 33, 0.92) !important;
  border-top: 1px solid rgba(255,255,255,0.08) !important;
  margin-top: 0 !important;
}
@media (max-width: 980px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .footer-logo-row {
    padding: 10px 12px 8px;
  }
  .footer-logo-strip {
    gap: 10px 18px;
  }
  .footer-logo-strip img.logo-bmwe { height: 36px !important; }
  .footer-logo-strip img.logo-exist { height: 42px !important; }
  .footer-logo-strip img.logo-esf { height: 36px !important; }
  .footer-logo-strip img.logo-dwi { height: 36px !important; }
  .footer-logo-strip img.logo-leibniz { height: 44px !important; }
}

/* =====================================================
   v1.73 — use user EXIST banner + solid header on scroll
   ===================================================== */

/* Exact user-provided EXIST banner */
.hero-pennant.hero-pennant-image {
  top: 92px !important;
  left: clamp(20px, 2.4vw, 40px) !important;
  width: clamp(260px, 24vw, 420px) !important;
  max-width: calc(100vw - 40px) !important;
  height: auto !important;
  padding: 0 !important;
  overflow: visible !important;
}
.hero-pennant.hero-pennant-image img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}
@media (max-width: 1100px) {
  .hero-pennant.hero-pennant-image {
    top: 90px !important;
    width: clamp(240px, 28vw, 360px) !important;
  }
}
@media (max-width: 760px) {
  .hero-pennant.hero-pennant-image {
    top: 82px !important;
    left: 16px !important;
    width: min(270px, calc(100vw - 32px)) !important;
  }
}
@media (max-width: 520px) {
  .hero-pennant.hero-pennant-image {
    top: 78px !important;
    width: min(230px, calc(100vw - 24px)) !important;
  }
}

/* Overview header should not stay transparent once the user scrolls */
.site-header.scrolled,
.site-header.solid {
  background: rgba(245, 247, 250, 0.96) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom-color: rgba(180, 190, 206, 0.55) !important;
}
.site-header.scrolled .brand,
.site-header.scrolled .nav-links a,
.site-header.scrolled .btn-ghost,
.site-header.scrolled [data-lang-switch] a,
.site-header.scrolled [data-lang-switch] span,
.site-header.scrolled [data-lang-switch] button,
.site-header.solid .brand,
.site-header.solid .nav-links a,
.site-header.solid .btn-ghost,
.site-header.solid [data-lang-switch] a,
.site-header.solid [data-lang-switch] span,
.site-header.solid [data-lang-switch] button {
  color: var(--ink) !important;
  border-color: rgba(25, 43, 82, 0.28) !important;
}
.site-header.scrolled .brand-mark img,
.site-header.solid .brand-mark img {
  filter: none !important;
}
.site-header.scrolled .nav-links a.active,
.site-header.solid .nav-links a.active {
  color: var(--ink) !important;
  border-bottom-color: var(--accent) !important;
}

/* =====================================================
   v1.74 — overview cleanup, real Leibniz logo, tighter layouts
   ===================================================== */

/* Real Leibniz logo fits better in footer/logo strips */
.footer-logo-strip img.logo-leibniz,
.logo-strip-inline img[alt*="Leibniz"],
img.logo-leibniz {
  height: 58px !important;
  width: auto !important;
  max-width: 200px !important;
  object-fit: contain !important;
}

/* More spacing between technology cards */
.standards-table {
  gap: 38px !important;
}

/* Photos should read more editorial, less rounded */
.two-col-image,
.two-col-image img,
.exist-photo-wrap,
.exist-photo-wrap > img,
.exist-article-photo,
.exist-article-photo img,
.problem-images img,
.news-card-media,
.home-network-card.card-with-photo .card-photo {
  border-radius: 0 !important;
}

/* Knowledge intro: remove box-in-box effect */
.problem-copy.knowledge-intro-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.problem-copy .knowledge-keyfacts {
  margin-bottom: 24px !important;
}

/* Overview funding / transfer panel cleanup */
.exist-side-card {
  padding: 28px 34px 26px !important;
}
.exist-side-card h3 {
  margin-bottom: 12px !important;
}
.exist-side-card p {
  margin-bottom: 0 !important;
}
.exist-subgrid {
  gap: 24px !important;
  margin: 24px 0 18px !important;
}
.exist-subitem {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.exist-subitem strong {
  margin-bottom: 8px !important;
}
.exist-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}
.exist-action-row .btn {
  min-width: 120px;
  justify-content: center;
  font-size: 0.98rem !important;
  font-family: var(--font-sans) !important;
  line-height: 1.2;
  padding: 14px 26px !important;
}

/* Latest news logos larger and centered */
.news-card-logo-row {
  justify-content: center !important;
  min-height: 48px !important;
  margin-bottom: 14px !important;
}
.news-card-logo {
  justify-content: center !important;
  min-width: 120px !important;
  height: 48px !important;
  padding: 6px 12px !important;
}
.news-card-logo img {
  max-height: 34px !important;
  max-width: 170px !important;
}

/* Selected programmes / traction cards: centered logos, but EXIST slightly smaller */
.home-network-card {
  text-align: center !important;
  align-items: center !important;
}
.home-network-card img {
  display: block;
  margin: 0 auto 18px !important;
  height: 64px !important;
  max-height: 64px !important;
  max-width: 200px !important;
}
.home-network-card img[alt="EXIST"] {
  height: 52px !important;
  max-height: 52px !important;
  max-width: 156px !important;
}
.home-network-card .meta,
.home-network-card h3,
.home-network-card p,
.home-network-card .more {
  width: 100%;
}
.home-network-card .meta,
.home-network-card h3 {
  text-align: left;
}
.home-network-card p,
.home-network-card .more {
  text-align: left !important;
}

/* About: institution image should be square-edged */
.two-col-image {
  border-radius: 0 !important;
}

@media (max-width: 980px) {
  .exist-subgrid {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }
}


/* =========================================================
   v1.75 refinements — overview/about cleanup
   ========================================================= */
.brand-mark { width: 38px; height: 38px; }
.brand-mark img { width: 26px; height: 26px; }
.site-header.over-video .brand-mark { width: 38px; height: 38px; }

.exist-highlight { align-items: stretch; gap: 28px; }
.exist-photo-wrap { background: transparent; border: 0; padding: 0; box-shadow: none; }
.exist-photo-wrap > img { border-radius: 18px; border: 1px solid var(--line); }
.exist-stat-card { display: none !important; }
.exist-side-card.compact-exist-card { background: var(--surface); color: var(--ink); border: 1px solid var(--line); padding: 34px 34px 28px; display: flex; flex-direction: column; justify-content: flex-start; }
.exist-side-card.compact-exist-card h3 { color: var(--ink); margin-bottom: 12px; }
.exist-side-card.compact-exist-card p { color: var(--ink-mid); margin-bottom: 16px; }
.exist-side-card.compact-exist-card .exist-subgrid { margin-top: 4px; margin-bottom: 16px; }
.exist-subitem { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.exist-action-row { display: flex; gap: 14px; flex-wrap: wrap; margin-top: auto; padding-top: 4px; }

.about-card-grid.industry-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.about-info-card { display:block; background:var(--surface); border:1px solid var(--line); padding:28px; text-decoration:none; color:inherit; border-radius: 18px; }
.about-info-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(17,24,39,0.08); }
.about-info-card .programme-logo { height: 56px; width: auto; display:block; margin-bottom: 20px; object-fit: contain; }
.about-info-card .meta-small { font-family:var(--font-mono); font-size:0.72rem; color:var(--accent); letter-spacing:0.12em; margin-bottom:10px; }
.about-info-card h3 { font-size:1rem; font-weight:600; margin-bottom:10px; }
.about-info-card p { font-size:0.9rem; color:var(--ink-mid); line-height:1.6; margin:0 0 14px; }
.about-info-card span { display:inline-block; font-size:0.82rem; color:var(--accent); border-bottom:1px solid var(--accent); }

.about-wide-image { width: 100%; overflow: hidden; border-radius: 22px; border: 1px solid var(--line); background: var(--surface); }
.about-wide-image img { width: 100%; height: 340px; display: block; object-fit: cover; object-position: center 52%; }
.about-aachen-note { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; margin-top: 24px; }
.about-fact-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.about-fact-card strong { display:block; margin-bottom: 8px; font-size: 0.96rem; color: var(--ink); }
.about-fact-card span { display:block; font-size: 0.9rem; color: var(--ink-mid); line-height: 1.58; }

.footer-logo-strip img.logo-bmwe { height: 48px !important; max-height: 52px !important; }
.footer-logo-strip img.logo-exist { height: 48px !important; max-height: 52px !important; }
.footer-logo-strip img.logo-esf { height: 40px !important; max-height: 44px !important; }
.footer-logo-strip img.logo-dwi { height: 42px !important; max-height: 46px !important; }
.footer-logo-strip img.logo-leibniz { height: 62px !important; max-height: 66px !important; object-fit: contain; }

@media (max-width: 980px) {
  .about-card-grid.industry-grid, .about-aachen-note { grid-template-columns: 1fr; }
  .about-wide-image img { height: 280px; }
}
@media (max-width: 720px) {
  .brand-mark { width: 34px; height: 34px; }
  .brand-mark img { width: 24px; height: 24px; }
  .exist-side-card.compact-exist-card { padding: 24px 22px; }
  .about-info-card .programme-logo { height: 48px; }
  .footer-logo-strip img.logo-bmwe { height: 38px !important; }
  .footer-logo-strip img.logo-leibniz { height: 52px !important; }
}


/* =========================================================
   v1.76 — central news hub, Fiber spelling, less redundancy
   ========================================================= */
.news-hub-intro { background: var(--bg-alt); padding: 56px 0 40px; border-top: 1px solid var(--line); }
.news-hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.news-hub-card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 34px; box-shadow: 0 18px 48px rgba(17,24,39,0.05); }
.news-hub-card.muted { background: rgba(255,255,255,0.58); }
.news-hub-card h2 { margin: 8px 0 12px; font-size: 1.28rem; }
.news-hub-card p { margin: 0; color: var(--ink-mid); line-height: 1.7; }
.news-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 32px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.news-chip {
  appearance: none;
  border: 2px solid rgba(27,33,48,0.55);
  background: var(--surface);
  color: var(--ink);
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 0.96rem;
  line-height: 1;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}
.news-chip:hover { transform: translateY(-1px); border-color: var(--accent); }
.news-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (max-width: 820px) {
  .news-hub-grid { grid-template-columns: 1fr; }
  .news-hub-card { padding: 26px 22px; }
  .news-filter { gap: 8px; }
  .news-chip { padding: 9px 16px; font-size: 0.9rem; }
}


/* =========================================================
   v1.77 — structure refinements, news hub, DWI hero, layout fixes
   ========================================================= */
.refined-exist-highlight {
  display:grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(360px, 0.95fr);
  gap: 28px;
  align-items: stretch;
}
.exist-text-flow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 34px 34px 28px;
  box-shadow: 0 20px 44px rgba(17,24,39,0.05);
}
.exist-text-flow h3 { font-size: clamp(1.2rem, 2vw, 1.7rem); margin-bottom: 14px; }
.exist-text-flow > p { font-size: 1.02rem; line-height: 1.7; color: var(--ink-soft); margin-bottom: 22px; }
.exist-mini-grid { display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 18px; }
.exist-mini-card { background: var(--bg); border: 1px solid var(--line); border-radius: 18px; padding: 18px 16px; min-width:0; }
.exist-mini-card strong { display:block; font-size: 0.9rem; color: var(--ink); margin-bottom: 8px; }
.exist-mini-card span { display:block; font-size: 0.92rem; line-height: 1.58; color: var(--ink-mid); }
.exist-photo-wrap img { width:100%; height:100%; object-fit: cover; object-position: center 28%; border-radius: 28px; }
.exist-action-row { margin-top: 22px; display:flex; gap: 18px; flex-wrap:wrap; align-items:center; }
.standards-table { display:grid; gap: 26px; }
.standard-card { margin:0; }
.technology-workflow .feature-grid { gap: 24px; align-items: stretch; }
.technology-workflow .feature { height: 100%; }
.dwi-page-hero { padding: 0; margin: 0 0 24px; }
.dwi-page-hero img { width:100%; display:block; max-height: 460px; object-fit: cover; border-radius: 0; }
.about-dwi-intro .section-head p { max-width: 920px; }
.no-round img { border-radius: 0 !important; }
.about-history-grid { align-items: start; }
.history-steps { display:grid; gap: 18px; }
.history-step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.history-step strong { display:block; color:var(--ink); margin-bottom: 6px; }
.history-step span { color: var(--ink-mid); line-height: 1.6; }
#timelineContainer { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 26px 16px; box-shadow: 0 12px 32px rgba(17,24,39,0.04); }
.news-card-tag { display:inline-flex; align-items:center; padding: 6px 12px; border: 1px solid transparent; border-radius: 999px; font-weight: 600; }
.news-card-logo-large { display:flex; align-items:center; justify-content:center; min-height: 180px; padding: 28px; background: linear-gradient(180deg, rgba(255,255,255,0.94), rgba(244,246,250,0.96)); }
.news-card-logo-large img { max-height: 120px; width: auto; object-fit: contain; }
.news-card-logo-row { margin-bottom: 14px; }
.news-card-logo { display:inline-flex; align-items:center; justify-content:flex-start; min-height: 62px; }
.news-card-logo img { max-height: 56px; width:auto; object-fit: contain; }
.news-card-media { width:100%; aspect-ratio: 16/9; object-fit: cover; }
.news-card-top { align-items:center; }
.brand-mark img { width: 44px; height: 44px; object-fit: contain; }
@media (max-width: 1100px) {
  .refined-exist-highlight, .exist-mini-grid { grid-template-columns: 1fr; }
  .refined-exist-highlight { gap: 22px; }
  .exist-photo-wrap { order: -1; }
}
@media (max-width: 820px) {
  .exist-text-flow { padding: 24px 22px 22px; border-radius: 22px; }
  .dwi-page-hero img { max-height: 320px; }
  #timelineContainer { padding: 22px 18px 10px; }
}


/* =========================================================
   v1.78 — legal/footer harmonisation, EXIST section update,
   technology hero, about consolidation, historical stats
   ========================================================= */
.flat-exist-copy {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.flat-exist-highlight {
  align-items: start;
}
.exist-photo-plain img {
  border-radius: 24px;
  box-shadow: 0 18px 40px rgba(17,24,39,0.08);
  object-position: center top;
}
.exist-gratitude {
  margin-top: 18px;
  font-size: 0.92rem;
  line-height: 1.65;
  color: var(--ink-mid);
  max-width: 720px;
}
.tech-page-hero { margin-bottom: 6px; }
.tech-page-hero img {
  width: 100%;
  display: block;
  max-height: 360px;
  object-fit: cover;
  border-radius: 0;
}
.history-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.history-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 20px;
}
.history-stat-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 8px;
}
.history-stat-card span {
  display: block;
  color: var(--ink-mid);
  line-height: 1.6;
  font-size: 0.94rem;
}
.about-dwi-intro #timelineContainer { margin-top: 8px; }
@media (max-width: 1100px) {
  .history-stats-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .tech-page-hero img { max-height: 230px; }
  .exist-photo-plain img { border-radius: 18px; }
}


/* =========================================================
   v1.79 — logo scale, safe wrapping, technology hero alignment,
   and cleaner Aachen history layout
   ========================================================= */
.brand { gap: 14px; }
.brand-mark {
  width: 46px !important;
  height: 46px !important;
  border-width: 1.25px !important;
  flex: 0 0 46px;
}
.brand-mark img {
  width: 31px !important;
  height: 31px !important;
  object-fit: contain;
}
.site-header.over-video .brand-mark {
  width: 46px !important;
  height: 46px !important;
}
.footer-brand .brand { margin-bottom: 22px; }
.tech-hero-visual {
  width: 100%;
  max-height: 380px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.tech-hero-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.exist-mini-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
  gap: 18px;
}
.exist-mini-card,
.standard-card,
.history-stat-card,
.history-step,
.feature,
.news-card,
.service-card,
.knowledge-keyfact {
  min-width: 0;
}
.exist-mini-card *,
.standard-card *,
.history-stat-card *,
.history-step *,
.feature *,
.news-card *,
.service-card *,
.knowledge-keyfact * {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}
.standards-table {
  display: grid;
  gap: 34px !important;
  margin-top: 10px;
}
.standard-card { border-radius: 22px !important; }
.history-stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 0 0 22px;
}
.history-stat-card {
  background: transparent;
  border: 0;
  border-top: 2px solid var(--line);
  border-radius: 0;
  padding: 14px 0 0;
}
.compact-history-layout {
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.85fr);
  gap: 38px;
  align-items: start;
}
.history-transition {
  margin: 0 0 18px;
  color: var(--ink);
  line-height: 1.72;
  font-size: 1.02rem;
}
.history-steps-plain {
  display: grid;
  gap: 12px;
}
.history-steps-plain .history-step {
  background: transparent;
  border: 0;
  border-left: 2px solid var(--line);
  border-radius: 0;
  padding: 2px 0 2px 16px;
}
.history-image-compact {
  max-width: 420px;
  justify-self: end;
  min-height: 0;
  aspect-ratio: 4 / 4.5;
}
.history-image-compact img {
  width: 100%;
  height: 100%;
  max-height: 460px;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 1100px) {
  .exist-mini-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)) !important;
  }
}
@media (max-width: 980px) {
  .history-stats-grid,
  .compact-history-layout,
  .standards-table {
    grid-template-columns: 1fr !important;
  }
  .history-image-compact {
    max-width: 100%;
    justify-self: stretch;
    aspect-ratio: 16 / 10;
  }
}
@media (max-width: 720px) {
  .brand-mark {
    width: 40px !important;
    height: 40px !important;
    flex-basis: 40px;
  }
  .brand-mark img {
    width: 27px !important;
    height: 27px !important;
  }
}


/* =========================================================
   v1.80 — homepage EXIST bookmark and news card media/logo refinements
   ========================================================= */
.hero-bookmark {
  position: absolute;
  z-index: 5;
  top: 108px;
  left: 0;
  width: clamp(230px, 18vw, 360px);
  display: block;
  padding: 0;
  line-height: 0;
  background: transparent;
  box-shadow: 0 16px 30px rgba(8, 20, 46, 0.18);
  border-radius: 0;
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.hero-bookmark img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-bookmark:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 34px rgba(8, 20, 46, 0.22);
}
@media (max-width: 1200px) {
  .hero-bookmark { width: clamp(220px, 24vw, 320px); top: 104px; }
}
@media (max-width: 760px) {
  .hero-bookmark { width: min(250px, calc(100vw - 92px)); top: 88px; }
}
@media (max-width: 520px) {
  .hero-bookmark { width: min(220px, calc(100vw - 74px)); top: 84px; }
}
.news-card-media-wrap {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
}
.news-card-media-wrap .news-card-media {
  margin: 0;
  border-bottom: 0;
}
.news-card-media-overlay-logo {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(205, 214, 228, 0.95);
  box-shadow: 0 10px 24px rgba(11, 31, 66, 0.16);
  max-width: min(42%, 220px);
}
.news-card-media-overlay-logo.is-large {
  left: 22px;
  padding: 16px 20px;
  max-width: min(48%, 250px);
}
.news-card-media-overlay-logo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}
.news-card-media-overlay-logo.is-large img {
  max-height: 86px;
}
@media (max-width: 640px) {
  .news-card-media-overlay-logo,
  .news-card-media-overlay-logo.is-large {
    left: 14px;
    right: auto;
    max-width: 52%;
    padding: 10px 12px;
  }
  .news-card-media-overlay-logo img,
  .news-card-media-overlay-logo.is-large img {
    max-height: 62px;
  }
}


/* =========================================================
   v1.81 — services portal card, contact photo card, bookmark removed
   ========================================================= */
.contact-photo-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}
.contact-photo-thumb {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid var(--line);
}
@media (max-width: 900px) {
  .contact-photo-card { margin-top: 12px; }
}


/* =========================================================
   v1.82 — funding block cleanup, contact image only, transparent history image
   ========================================================= */
.exist-action-row { display: none !important; }
.contact-photo-only { display:block; }
.contact-photo-plain {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
.history-image-transparent,
.history-image-transparent img,
.history-image-compact,
.history-image-compact img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}


/* =========================================================
   v2.0 — portal/admin integration
   ========================================================= */
.support-admin-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.38fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.support-thread-list,
.support-thread-detail {
  min-width: 0;
}
.support-thread-item {
  width: 100%;
  display: block;
  text-align: left;
  padding: 14px 16px;
  margin: 0 0 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  border-radius: 10px;
}
.support-thread-item:hover,
.support-thread-item.active {
  border-color: var(--accent);
  background: var(--bg-alt);
}
.support-thread-item strong,
.support-thread-item span,
.support-thread-item em {
  display: block;
}
.support-thread-item span {
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 3px;
}
.support-thread-item em {
  color: var(--ink-mid);
  font-style: normal;
  font-size: 0.86rem;
  margin-top: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.admin-chat-card {
  min-height: 520px;
}
@media (max-width: 900px) {
  .support-admin-grid { grid-template-columns: 1fr; }
}


/* =========================================================
   v2.1 — overview/news/knowledge refinements
   ========================================================= */
.exist-combined-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
}
.exist-combined-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}
.exist-combined-item {
  min-width: 0;
}
.exist-combined-item strong {
  display: block;
  margin-bottom: 10px;
  color: var(--ink);
  font-size: 1rem;
}
.exist-combined-item span {
  display: block;
  color: var(--ink-soft);
  line-height: 1.55;
  hyphens: none;
  word-break: normal;
  overflow-wrap: anywhere;
}
.exist-combined-item + .exist-combined-item {
  border-left: 1px solid var(--line);
  padding-left: 20px;
}
.page-hero-visual {
  width: 100%;
  max-height: 430px;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.page-hero-visual img {
  width: 100%;
  display: block;
  object-fit: cover;
}
.knowledge-image-block {
  margin-top: 24px;
}
.knowledge-image-frame {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #101215;
}
.knowledge-image-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.knowledge-image-caption {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}
.service-process-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.65;
}
@media (max-width: 900px) {
  .exist-combined-grid { grid-template-columns: 1fr; }
  .exist-combined-item + .exist-combined-item {
    border-left: 0;
    padding-left: 0;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 1px solid var(--line);
  }
}


/* =========================================================
   v2.3 — news hero crop, concise contact page, sem knowledge image
   ========================================================= */
.page-hero-visual.news-hero-goat {
  max-height: none;
}
.page-hero-visual.news-hero-goat img {
  width: 100%;
  height: 380px;
  display: block;
  object-fit: cover;
  object-position: center 68%;
}
.contact-photo-only {
  align-self: stretch;
}
.contact-photo-only .contact-photo-plain {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
@media (max-width: 900px) {
  .page-hero-visual.news-hero-goat img {
    height: 280px;
    object-position: center 72%;
  }
  .contact-photo-only .contact-photo-plain {
    min-height: 280px;
  }
}

/* =========================================================
   v2.4 — cleaner content blocks and SEM / methods sections
   ========================================================= */
.clean-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 28px;
}
.clean-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}
.clean-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.clean-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.clean-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  min-width: 0;
}
.clean-card h3,
.clean-block h3 { margin-bottom: 10px; }
.clean-card p,
.clean-block p { color: var(--ink-mid); line-height: 1.65; }
.clean-kicker {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.clean-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
}
.clean-list li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-mid);
  line-height: 1.55;
}
.clean-list li strong { color: var(--ink); }
.sem-gallery {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}
.sem-gallery figure {
  margin: 0;
  background: #111;
  border: 1px solid var(--line);
  overflow: hidden;
}
.sem-gallery img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  display: block;
}
.sem-gallery figure:first-child {
  grid-row: span 2;
}
.sem-gallery figure:first-child img {
  min-height: 340px;
}
.sem-caption {
  margin-top: 10px;
  font-family: var(--font-mono);
  color: var(--muted);
  font-size: .76rem;
  line-height: 1.45;
}
.method-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--line);
  background: var(--surface);
}
.method-strip > div {
  padding: 24px;
  border-right: 1px solid var(--line);
}
.method-strip > div:last-child { border-right: 0; }
.method-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
}
.method-strip span {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .12em;
}
.methods-compare {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.method-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
}
.method-card.is-focus {
  border-color: rgba(42, 92, 170, .35);
  background: linear-gradient(180deg, rgba(221,234,249,.55), #fff);
}
.method-card h3 { margin-bottom: 10px; }
.method-card ul {
  margin: 16px 0 0;
  padding-left: 18px;
  color: var(--ink-mid);
  line-height: 1.55;
}
@media (max-width: 980px) {
  .clean-grid-2, .clean-grid-3, .clean-grid-4, .methods-compare, .method-strip {
    grid-template-columns: 1fr;
  }
  .method-strip > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .method-strip > div:last-child { border-bottom: 0; }
  .sem-gallery {
    grid-template-columns: 1fr;
  }
  .sem-gallery figure:first-child { grid-row: auto; }
  .sem-gallery figure:first-child img { min-height: 220px; }
}

/* v2.5 — portal deletion, analysis chart and payment method */
.danger-link{color:var(--danger)!important;border-color:var(--danger)!important;}
.analysis-chart{margin-top:18px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:16px;}
.analysis-bars{display:grid;gap:12px;margin-top:14px;}
.analysis-bar-row{display:grid;grid-template-columns:120px 1fr 56px;gap:12px;align-items:center;font-size:.88rem;}
.analysis-bar-track{height:16px;background:var(--bg-alt);border:1px solid var(--line);overflow:hidden;border-radius:999px;}
.analysis-bar-fill{height:100%;background:var(--accent);border-radius:999px;min-width:2px;}
.deviation-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:.86rem;}
.deviation-table th,.deviation-table td{padding:10px 12px;border-bottom:1px solid var(--line);text-align:left;}
.deviation-table th{font-family:var(--font-mono);font-size:.7rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:500;}
.payment-badge{display:inline-flex;align-items:center;gap:8px;padding:4px 10px;border:1px solid var(--line);background:var(--bg-alt);border-radius:999px;font-size:.82rem;color:var(--ink-mid);}
@media(max-width:720px){.analysis-bar-row{grid-template-columns:1fr;gap:6px}.deviation-table{font-size:.78rem}.deviation-table th,.deviation-table td{padding:8px}}


/* =========================================================
   v2.6 — tighter spacing, cleaner cards, contact form,
   simplified overview blocks and SEM single-image treatment
   ========================================================= */
section:not(.video-hero):not(.page-hero):not(.tech-brand-banner) {
  padding-top: 68px !important;
  padding-bottom: 68px !important;
}
.page-hero {
  padding-top: 84px !important;
  padding-bottom: 40px !important;
}
.section-head {
  margin-bottom: 22px !important;
}
.section-head h2 {
  margin-bottom: 12px !important;
}
.section-head p,
.two-col-text p,
.clean-card p,
.feature p,
.standard-card p,
.method-card p {
  line-height: 1.68;
}
.feature,
.clean-card,
.clean-block,
.standard-card,
.method-card,
.knowledge-card,
.article-card,
.history-step,
.history-stat-card,
.method-strip > div,
.problem-copy,
.stat-box,
.news-hub-card,
.scope-points > div,
.contact-form-card,
.knowledge-image-frame {
  border-radius: 22px !important;
}
.method-strip > div {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 22px 20px;
}
.exist-inline-points {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
}
.exist-inline-points p {
  margin: 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-mid);
}
.exist-inline-points p:last-child { border-bottom: 0; padding-bottom: 0; }
.exist-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}
.exist-links a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
}
.exist-links a:hover { border-color: var(--accent); color: var(--accent); }
.exist-photo-plain {
  background: linear-gradient(180deg, rgba(244,247,252,0.88), rgba(235,240,247,0.92));
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 28px;
}
.exist-photo-plain img {
  box-shadow: none;
}
.overview-divider {
  padding: 0 0 8px;
}
.overview-divider img {
  width: 100%;
  max-height: 110px;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 22px;
  border: 1px solid var(--line);
}
.scope-points {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.scope-points > div {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 18px 20px;
}
.scope-points strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}
.scope-points p {
  margin: 0;
  color: var(--ink-mid);
}
.contact-form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(340px, 0.98fr);
  gap: 28px;
  align-items: start;
}
.contact-form-card {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 30px;
}
.contact-form {
  margin-top: 18px;
}
.contact-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.contact-form .form-row {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}
.contact-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit;
  color: var(--ink);
  background: var(--bg);
}
.contact-form textarea { resize: vertical; min-height: 180px; }
.contact-form-status {
  margin-top: 14px;
  font-size: 0.92rem;
  color: var(--ink-mid);
}
.contact-side-note {
  margin: 14px 4px 0;
  color: var(--ink-mid);
  line-height: 1.6;
  font-size: 0.92rem;
}
.contact-photo-only .contact-photo-plain {
  width: 100%;
  min-height: 560px;
  object-fit: cover;
  border-radius: 24px;
  border: 1px solid var(--line);
}
.sem-single-figure {
  margin-top: 28px;
}
.sem-single-figure .knowledge-image-frame {
  background: #101215;
}
.sem-single-figure img {
  width: 100%;
  height: auto;
  display: block;
}
.page-hero-visual.news-hero-goat {
  background: linear-gradient(180deg, rgba(248,250,252,0.8), rgba(241,245,249,0.88));
}
.page-hero-visual.news-hero-goat img {
  height: 430px;
  object-position: center 74%;
}
@media (max-width: 980px) {
  .contact-form-layout,
  .scope-visual-grid {
    grid-template-columns: 1fr !important;
  }
  .contact-photo-only .contact-photo-plain {
    min-height: 320px;
  }
}
@media (max-width: 900px) {
  .page-hero-visual.news-hero-goat img {
    height: 320px;
    object-position: center 76%;
  }
}
@media (max-width: 700px) {
  .contact-form-grid {
    grid-template-columns: 1fr;
  }
  .contact-form-card {
    padding: 24px 20px;
  }
}

/* =========================================================
   v2.7 — full-width image separators, cleaner EXIST row,
   unrounded images, workflow spacing, morphology alignment,
   smaller contact form
   ========================================================= */
.overview-divider.container {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.overview-divider {
  padding: 0 !important;
}
.overview-divider img {
  width: 100%;
  height: 160px;
  max-height: none !important;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
}

/* Images should stay clean and square */
.two-col-image,
.two-col-image img,
.exist-team-banner,
.exist-team-banner img,
.exist-photo-wrap img,
.contact-photo-only .contact-photo-plain,
.knowledge-image-frame,
.knowledge-image-frame img,
.services-visual-img,
.page-hero img,
.tech-hero-visual img {
  border-radius: 0 !important;
}

.exist-team-banner {
  margin-top: 24px;
  border: 1px solid var(--line);
  background: var(--surface);
  overflow: hidden;
}
.exist-team-banner img {
  width: 100%;
  display: block;
  height: auto;
}
.exist-summary-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.exist-summary-row p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-mid);
  border-radius: 22px;
}
.exist-summary-row strong { color: var(--ink); }

.method-strip {
  gap: 18px;
  border: 0 !important;
  background: transparent !important;
}
.method-strip > div {
  border: 1px solid var(--line) !important;
  background: var(--surface);
  padding: 24px 22px !important;
}

.morphology-compare {
  max-width: 1360px;
  margin: 32px auto 0;
}
.morphology-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}
.morphology-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.morphology-table thead tr {
  background: var(--bg-dark);
}
.morphology-table th {
  text-align: left;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  color: var(--accent-soft);
  font-weight: 500;
}
.morphology-table td {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  font-weight: 400;
}
.morphology-table tbody tr:nth-child(odd) { background: var(--bg-alt); }
.morphology-table tbody tr.is-focus-row {
  background: var(--surface);
  box-shadow: inset 3px 0 0 var(--accent);
}
.morphology-table tbody tr.is-focus-row td:first-child {
  color: var(--accent);
}
.morphology-ref {
  font-size: 0.76rem;
  color: var(--muted);
  margin: 10px 2px 18px;
  font-family: var(--font-mono);
  text-align: right;
}
.no-round-frame.knowledge-image-block {
  margin-top: 0;
}
.no-round-frame .knowledge-image-frame {
  padding: 0;
  border: 1px solid var(--line);
  background: #101215;
}
.no-round-frame .knowledge-image-frame img {
  width: 100%;
  display: block;
}
.knowledge-image-caption {
  max-width: 1360px;
  margin: 10px auto 0;
}

.contact-form-layout.compact {
  gap: 34px;
}
.contact-form-card.plain {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
}
.contact-form-card.plain h2 {
  font-size: clamp(1.8rem, 2.2vw, 2.3rem);
  margin-bottom: 6px;
}
.contact-form-card.plain > p {
  font-size: 0.98rem;
  color: var(--ink-mid);
}
.contact-form {
  margin-top: 16px;
}
.contact-form .form-row {
  gap: 6px;
  margin-bottom: 12px;
}
.contact-form label {
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.contact-form input,
.contact-form textarea {
  padding: 12px 14px;
  font-size: 0.96rem;
  background: rgba(255,255,255,0.58);
}
.contact-form textarea {
  min-height: 170px;
}
.contact-photo-only .contact-photo-plain {
  min-height: 520px;
}
.contact-side-note {
  font-size: 0.86rem;
}

@media (max-width: 980px) {
  .exist-summary-row {
    grid-template-columns: 1fr;
  }
  .overview-divider img {
    height: 120px;
  }
  .contact-photo-only .contact-photo-plain {
    min-height: 320px;
  }
}
.method-strip > div:last-child {
  border-right: 1px solid var(--line) !important;
  border-bottom: 1px solid var(--line) !important;
}

/* =========================================================
   v2.8 — layout cleanup, admin-requested public UI fixes
   ========================================================= */
.exist-funding-section .exist-copy-top,
.exist-funding-section .exist-copy-bottom {
  max-width: 980px;
  color: var(--ink-mid);
  margin: 0 0 22px;
}
.exist-funding-section .exist-copy-bottom {
  margin: 18px 0 0;
}
.exist-team-banner {
  border: 0 !important;
  background: transparent !important;
  margin-top: 0;
}
.exist-team-banner img {
  border-radius: 0 !important;
  border: 0 !important;
  display: block;
}
.exist-summary-row { display: none !important; }

.overview-divider,
.overview-divider.container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  line-height: 0;
}
.overview-divider img {
  border-radius: 0 !important;
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.two-col-image,
.scope-visual-grid .two-col-image,
.plain-history-image,
.no-round-frame .knowledge-image-frame,
.contact-photo-only,
.contact-photo-only .contact-photo-plain {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: hidden;
  border-radius: 0 !important;
}
.two-col-image img,
.services-visual-img,
.plain-history-image img,
.contact-photo-only .contact-photo-plain,
.no-round-frame .knowledge-image-frame img,
.page-hero img,
.tech-hero-visual img {
  border-radius: 0 !important;
  display: block;
}
.scope-visual-grid .two-col-image {
  align-self: stretch;
}
.scope-visual-grid .two-col-image img,
.scope-visual-grid .two-col-image .services-visual-img {
  width: 100%;
  height: 100% !important;
  min-height: 380px;
  object-fit: cover;
}

.workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px !important;
  border: 0 !important;
  background: transparent !important;
  align-items: stretch;
}
.workflow-strip > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 10px;
  min-height: 100%;
  border-radius: 22px;
  padding: 26px 24px !important;
  border: 1px solid var(--line) !important;
  background: var(--surface) !important;
}
.workflow-strip > div p { margin-top: 0; }
.technology-workflow .container {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.morphology-compare {
  max-width: 1180px;
}
.morphology-table-wrap,
.morphology-image-block {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}
.morphology-table-wrap {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
.morphology-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  table-layout: fixed;
}
.morphology-table td,
.morphology-table th {
  font-weight: 400;
}
.morphology-table tbody td:first-child {
  font-weight: 400;
  color: var(--ink);
}
.morphology-table tbody tr:nth-child(odd) {
  background: #f4efe7;
}
.morphology-table tbody tr:nth-child(even) {
  background: #ffffff;
}
.morphology-table tbody tr.is-focus-row {
  background: #ece3d3;
  box-shadow: none;
}
.morphology-table tbody tr.is-focus-row td:first-child {
  color: var(--ink);
}
.morphology-image-block .knowledge-image-frame,
.morphology-image-block img {
  width: 100%;
}
.morphology-ref,
.knowledge-image-caption {
  max-width: 1180px;
}

.plain-history-layout {
  align-items: center;
}
.plain-history-copy p + p {
  margin-top: 14px;
}

.contact-form-layout.compact {
  gap: 36px;
  align-items: start;
}
.contact-form-card.plain {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.contact-form-card.plain h2 {
  font-size: clamp(1.55rem, 1.9vw, 2rem);
}
.contact-form-card.plain > p,
.contact-side-note {
  font-size: 0.9rem;
}
.contact-form label {
  font-size: 0.72rem;
}
.contact-form input,
.contact-form textarea {
  padding: 11px 13px;
  font-size: 0.92rem;
  background: rgba(255,255,255,0.44);
}
.contact-form textarea {
  min-height: 150px;
}
.contact-photo-only .contact-photo-plain {
  min-height: 500px;
}

.footer-logo-row {
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
  width: 100vw !important;
  max-width: 100vw !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}
.footer-logo-strip {
  width: min(1280px, calc(100vw - 40px));
  margin: 0 auto !important;
}

@media (max-width: 980px) {
  .workflow-strip {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 720px) {
  .workflow-strip,
  .plain-history-layout,
  .contact-form-layout.compact {
    grid-template-columns: 1fr !important;
  }
  .overview-divider img {
    height: 126px;
  }
  .scope-visual-grid .two-col-image img,
  .scope-visual-grid .two-col-image .services-visual-img,
  .contact-photo-only .contact-photo-plain {
    min-height: 280px;
  }
}

/* =========================================================
   v2.8.1 — requested layout fixes, responsive admin, footer sync
   ========================================================= */
.exist-funding-section .section-head,
.exist-funding-section .exist-funding-head,
.exist-funding-section .exist-copy-top,
.exist-funding-section .exist-copy-bottom {
  max-width: none !important;
  width: 100% !important;
}
.exist-funding-section .section-head p {
  max-width: none !important;
}
.exist-team-banner {
  max-width: 70% !important;
  margin: 0 auto !important;
}
.exist-team-banner img {
  width: 100% !important;
  height: auto !important;
}
.clean-grid-2 {
  align-items: start;
}
.clean-grid-2 > .clean-block {
  height: 100%;
}
.clean-kicker {
  white-space: normal;
}
.sem-single-figure,
.knowledge-image-block.sem-single-figure {
  max-width: 1180px;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.sem-single-figure .knowledge-image-frame {
  max-width: 620px;
  margin-left: 0 !important;
  margin-right: auto !important;
}
.sem-single-figure img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
.services-visual-img {
  object-fit: contain !important;
  background: transparent !important;
}
.scope-visual-grid .two-col-image img,
.scope-visual-grid .two-col-image .services-visual-img {
  object-fit: contain !important;
}
.morphology-table tbody tr:nth-child(odd),
.morphology-table tbody tr:nth-child(even),
.morphology-table tbody tr.is-focus-row {
  background: rgba(255,255,255,0.72) !important;
}
.morphology-table th,
.morphology-table td {
  border-bottom: 1px solid rgba(202,213,229,0.65) !important;
}
.morphology-image-block,
.morphology-table-wrap,
.morphology-ref {
  margin-left: 0 !important;
  margin-right: auto !important;
}
.admin-shell,
.admin-dashboard,
.dashboard-grid,
.admin-card-grid,
.stats-grid,
.kpi-grid,
.portal-grid {
  min-width: 0;
}
@media (max-width: 1100px) {
  .dashboard-grid,
  .admin-card-grid,
  .stats-grid,
  .kpi-grid,
  .portal-grid,
  .support-admin-grid {
    grid-template-columns: 1fr !important;
  }
  .admin-shell,
  .portal-shell {
    grid-template-columns: 1fr !important;
  }
  .admin-sidebar,
  .portal-sidebar {
    position: static !important;
    width: 100% !important;
  }
}
@media (max-width: 980px) {
  .exist-team-banner { max-width: 100% !important; }
  .clean-grid-2 { grid-template-columns: 1fr !important; }
}

/* =========================================================
   v2.8.2 — consistency audit refinements
   ========================================================= */
:root {
  --space-section-y: 68px;
  --space-card-gap: 28px;
  --card-radius-system: 22px;
}

/* Keep two-column hero blocks harmonious and responsive even when legacy inline styles exist. */
.page-hero .container > div[style*="grid-template-columns"] {
  gap: clamp(28px, 4vw, 48px) !important;
}
@media (max-width: 900px) {
  .page-hero .container > div[style*="grid-template-columns"] {
    grid-template-columns: 1fr !important;
    align-items: start !important;
  }
  .page-hero .container > div[style*="grid-template-columns"] > div:first-child {
    padding-bottom: 24px !important;
  }
}

/* Make the bottleneck/engpass section stack cleanly before text or cards become cramped. */
section .clean-grid-2 {
  gap: var(--space-card-gap) !important;
}
@media (max-width: 1120px) {
  section[style*="--bg-alt"] .clean-grid-2 {
    grid-template-columns: 1fr !important;
  }
}
.clean-block,
.clean-card,
.scope-points > div,
.contact-form input,
.contact-form textarea,
.auth-card,
.portal-card,
.kpi-card {
  border-color: rgba(196, 210, 232, 0.86) !important;
}

/* Services visual: never crop the display artwork; keep it aligned with the card column. */
.scope-visual-grid {
  gap: clamp(28px, 5vw, 72px) !important;
}
.scope-visual-grid .two-col-image {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-width: 0 !important;
}
.scope-visual-grid .services-visual-img {
  width: 100% !important;
  max-width: 620px !important;
  height: auto !important;
  max-height: 480px !important;
  object-fit: contain !important;
  object-position: left center !important;
}
@media (max-width: 980px) {
  .scope-visual-grid .services-visual-img {
    max-width: 100% !important;
    max-height: none !important;
  }
}

/* Fiber example image stays left-aligned and visually consistent with the standards table below. */
.sem-single-figure .knowledge-image-frame,
.morphology-table-wrap,
.morphology-image-block,
.morphology-ref,
.knowledge-image-caption {
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Tables use subtle white/blue surfaces only; no warm beige rows. */
.morphology-table tbody tr:nth-child(odd),
.morphology-table tbody tr:nth-child(even),
.morphology-table tbody tr.is-focus-row,
.standards-table .standard-card {
  background: rgba(255,255,255,0.74) !important;
}
.morphology-table thead tr {
  background: rgba(13,27,46,0.96) !important;
}

/* Admin and customer portal: compress into one column on smaller windows. */
@media (max-width: 1180px) {
  .portal-shell {
    grid-template-columns: 1fr !important;
  }
  .portal-sidebar {
    position: relative !important;
    top: auto !important;
    height: auto !important;
    min-height: 0 !important;
  }
  .portal-content {
    padding: 32px 24px 64px !important;
  }
  .portal-topbar {
    padding: 0 24px !important;
  }
  .kpi-grid,
  .admin-dashboard-grid,
  .dashboard-grid,
  .portal-grid,
  .admin-card-grid,
  .stats-grid {
    grid-template-columns: 1fr !important;
  }
}
@media (max-width: 560px) {
  .portal-content { padding: 24px 16px 56px !important; }
  .portal-topbar { padding: 0 16px !important; }
  .portal-sidebar .brand,
  .sidebar-label,
  .sidebar-nav a,
  .sidebar-foot { padding-left: 18px !important; padding-right: 18px !important; }
}

/* =========================================================
   v2.8.3 — EXIST team/quote layout, tighter fiber strip,
   full-width SEM knowledge image
   ========================================================= */
.exist-team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.62fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: center;
  margin-top: 22px;
}
.exist-team-copy {
  position: relative;
  padding-right: clamp(22px, 3vw, 42px);
  border-right: 2px solid rgba(43, 92, 184, 0.34);
}
.exist-team-layout .exist-copy-top,
.exist-team-layout .exist-copy-bottom {
  max-width: 100% !important;
  width: 100% !important;
}
.franz-overview-quote {
  margin: 20px 0 22px;
  padding: 20px 22px;
  background: rgba(255,255,255,0.64);
  border: 1px solid rgba(196, 210, 232, 0.86);
  border-radius: 22px;
}
.franz-overview-quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  line-height: 1.68;
  color: var(--ink);
  font-style: italic;
}
.franz-overview-quote figcaption {
  margin-top: 12px;
  display: grid;
  gap: 2px;
  font-size: 0.9rem;
  color: var(--ink-mid);
}
.franz-overview-quote figcaption strong { color: var(--ink); }
.franz-overview-quote figcaption span { color: var(--muted); }
.exist-team-layout .exist-team-banner {
  max-width: 42% !important;
  min-width: 260px;
  justify-self: center;
  margin: 0 !important;
}
.exist-team-layout .exist-team-banner img {
  width: 100% !important;
  height: auto !important;
}

/* Place the textile strip directly under the overview text without the visual mega-gap. */
.overview-divider,
.overview-divider.container {
  margin-top: -20px !important;
  margin-bottom: 0 !important;
}
.overview-divider img {
  height: 150px !important;
  object-position: center !important;
}

/* Knowledge: use the new SEM grid as a full-width content image on DE/EN pages. */
.morphology-image-block,
.knowledge-image-block.sem-single-figure.morphology-image-block {
  max-width: none !important;
  width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.morphology-image-block .knowledge-image-frame,
.knowledge-image-block.sem-single-figure.morphology-image-block .knowledge-image-frame {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  background: #101215 !important;
}
.morphology-image-block .knowledge-image-frame img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .exist-team-layout {
    grid-template-columns: 1fr;
    align-items: start;
  }
  .exist-team-copy {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 2px solid rgba(43, 92, 184, 0.34);
  }
  .exist-team-layout .exist-team-banner {
    max-width: min(420px, 100%) !important;
    min-width: 0;
    justify-self: start;
  }
  .overview-divider,
  .overview-divider.container {
    margin-top: -8px !important;
  }
  .overview-divider img {
    height: 120px !important;
  }
}
@media (max-width: 560px) {
  .franz-overview-quote { padding: 18px; }
  .overview-divider img { height: 96px !important; }
}

/* =========================================================
   v2.8.4 — content sync, process visuals, tighter rhythm
   ========================================================= */
section:not(.video-hero):not(.page-hero):not(.tech-brand-banner):not(.dwi-page-hero) {
  padding-top: clamp(52px, 6.2vh, 82px);
  padding-bottom: clamp(52px, 6.2vh, 82px);
}
.section-tight {
  padding-top: clamp(42px, 5vh, 68px) !important;
  padding-bottom: clamp(42px, 5vh, 68px) !important;
}
.exist-funding-section { padding: 72px 0 !important; }
.exist-team-layout {
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.78fr) !important;
  align-items: stretch !important;
}
.exist-team-copy {
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.exist-team-layout .exist-team-banner {
  max-width: 100% !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  justify-self: stretch !important;
  align-self: stretch !important;
  display: flex;
}
.exist-team-layout .exist-team-banner img {
  width: 100% !important;
  height: 100% !important;
  min-height: 320px;
  object-fit: contain !important;
  object-position: center !important;
}
.process-visual-block,
.knowledge-process-image {
  margin-top: 30px;
  border: 1px solid var(--line-soft);
  border-radius: 22px;
  overflow: hidden;
  background: rgba(255,255,255,0.86);
  box-shadow: var(--card-shadow);
}
.process-visual-block img,
.knowledge-process-image img {
  display:block;
  width:100%;
  height:auto;
}
.technology-innovation .clean-block p + p { margin-top: 14px; }
.about-hero-clean { padding-bottom: 44px; }
.about-team-layout,
.about-dwi-layout {
  display:grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: clamp(28px, 4.5vw, 64px);
  align-items: stretch;
}
.about-team-copy {
  padding-right: clamp(20px, 3vw, 40px);
  border-right: 2px solid rgba(43, 92, 184, 0.34);
  display:flex;
  flex-direction:column;
  justify-content:center;
}
.about-team-photo,
.dwi-side-photo {
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  background: #fff;
  min-height: 360px;
}
.about-team-photo img,
.dwi-side-photo img {
  width:100%;
  height:100%;
  min-height: 360px;
  display:block;
  object-fit: cover;
  object-position: center;
}
.about-franz-quote { margin-bottom: 0; }
.about-dwi-layout #timelineContainer { margin-top: 24px; }
.contact-photo-only img.contact-photo-plain {
  object-fit: cover;
  object-position: center 28%;
}
.knowledge-isolation-section .section-head p { max-width: 900px; }
@media (max-width: 980px) {
  .exist-team-layout,
  .about-team-layout,
  .about-dwi-layout { grid-template-columns: 1fr !important; }
  .exist-team-copy,
  .about-team-copy {
    padding-right: 0;
    padding-bottom: 24px;
    border-right: 0;
    border-bottom: 2px solid rgba(43, 92, 184, 0.34);
  }
  .exist-team-layout .exist-team-banner img,
  .about-team-photo img,
  .dwi-side-photo img { min-height: 260px; }
  .about-team-photo,
  .dwi-side-photo { min-height: 260px; }
}
@media (max-width: 560px) {
  section:not(.video-hero):not(.page-hero):not(.tech-brand-banner):not(.dwi-page-hero) {
    padding-top: 44px;
    padding-bottom: 44px;
  }
  .process-visual-block,
  .knowledge-process-image { border-radius: 14px; margin-top: 22px; }
}


/* =========================================================
   v2.8.5 — problem block, technology solution graphics,
   no rounded photos, EXIST cleanup
   ========================================================= */
.exist-funding-section .exist-funding-head h2 {
  max-width: 1180px;
}
.exist-team-layout {
  grid-template-columns: minmax(0, 0.95fr) minmax(430px, 0.95fr) !important;
  gap: clamp(28px, 4vw, 58px) !important;
}
.exist-team-copy {
  border-right: 0 !important;
  padding-right: 0 !important;
}
.exist-team-layout .exist-team-banner img {
  min-height: 360px !important;
  object-fit: contain !important;
}
@media (max-width: 980px) {
  .exist-team-copy {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  .exist-team-layout .exist-team-banner img { min-height: 260px !important; }
}

/* Photos: square / clean edges, not rounded. Graphic cards may remain subtly framed. */
.about-team-photo,
.about-team-photo img,
.dwi-side-photo,
.dwi-side-photo img,
.contact-photo-only .contact-photo-plain,
.problem-figure,
.problem-figure img,
.two-col-image.no-round,
.two-col-image.no-round img {
  border-radius: 0 !important;
}
.about-team-photo,
.dwi-side-photo,
.contact-photo-only .contact-photo-plain {
  box-shadow: var(--card-shadow);
}
.about-team-photo img { object-position: center 24%; }
.dwi-side-photo img { object-position: center center; }
.about-dwi-layout { align-items: stretch !important; }
.dwi-side-photo { align-self: stretch !important; }
.dwi-side-photo img { min-height: 100% !important; }

/* Contact: keep two-column layout clean, no vertical separator/border. */
.contact-form-layout.compact,
.contact-form-layout.compact > * {
  border-right: 0 !important;
  border-left: 0 !important;
}
.contact-photo-only .contact-photo-plain {
  min-height: 500px;
  width: 100%;
  display: block;
}

/* Knowledge problem section with source collage on the right. */
.problem-layout-v285 {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: clamp(26px, 4vw, 54px);
  align-items: stretch;
}
.problem-layout-v285 .problem-copy {
  background: rgba(255,255,255,0.68);
  border: 1px solid var(--line-soft);
  padding: clamp(24px, 3vw, 36px);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.problem-figure {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,0.72);
  overflow: hidden;
  display: flex;
}
.problem-figure img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: center;
  display: block;
}
@media (max-width: 980px) {
  .problem-layout-v285 { grid-template-columns: 1fr; }
  .problem-figure img { min-height: 260px; }
}

/* Technology graphics: replace old text-heavy workflow with clean solution visuals. */
.process-visual-block.process-steps-visual,
.technology-solution-visual {
  margin-top: 28px;
  border: 1px solid var(--line-soft);
  border-radius: 0 !important;
  overflow: hidden;
  background: rgba(255,255,255,0.92);
  box-shadow: var(--card-shadow);
}
.process-visual-block.process-steps-visual img,
.technology-solution-visual img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}
.technology-solution-copy .clean-block a {
  color: var(--accent);
  border-bottom: 1px solid rgba(43,92,184,0.3);
  text-decoration: none;
}
.technology-bottleneck-focus .clean-block {
  background: rgba(255,255,255,0.72);
}
@media (max-width: 720px) {
  .process-visual-block.process-steps-visual,
  .technology-solution-visual { margin-top: 20px; }
}


/* =========================================================
   v2.8.6 — Header click-layer and mobile-nav hardening
   Fixes desktop issue where the customer-login layer could overlap
   the navigation and absorb clicks.
   ========================================================= */
.site-header {
  overflow: visible !important;
}
.site-header .container,
.site-header .nav {
  position: relative;
  z-index: 50;
}
.site-header .nav {
  display: flex !important;
  align-items: center !important;
  gap: clamp(18px, 2.4vw, 42px) !important;
}
.site-header .brand {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
}
.site-header .nav-links {
  position: relative !important;
  z-index: 4 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  justify-content: center !important;
}
.site-header .nav-links li,
.site-header .nav-links a {
  position: relative !important;
  z-index: 5 !important;
}
.site-header .nav-cta {
  position: relative !important;
  z-index: 3 !important;
  flex: 0 0 auto !important;
  min-width: max-content !important;
  width: auto !important;
  max-width: max-content !important;
  pointer-events: none !important;
}
.site-header .nav-cta > * {
  flex: 0 0 auto !important;
  pointer-events: auto !important;
}
.site-header .nav-cta .btn,
.site-header .nav-cta a.btn,
.site-header .nav-cta .btn-small {
  position: relative !important;
  inset: auto !important;
  display: inline-flex !important;
  width: auto !important;
  height: auto !important;
  max-width: max-content !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  pointer-events: auto !important;
}
.site-header .nav-cta .btn::before,
.site-header .nav-cta .btn::after {
  pointer-events: none !important;
}

/* The old static mobile-nav markup must never sit invisibly over the header. */
.mobile-nav {
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
  transform: translateY(-110%) !important;
}
.mobile-nav.open {
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}

/* Desktop: always keep the real menu inline; neutralize accidental mobile-open states. */
@media (min-width: 1181px) {
  .site-header .nav-toggle { display: none !important; }
  .site-header .nav-links,
  .site-header .nav-links.open {
    display: flex !important;
    position: relative !important;
    inset: auto !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    padding: 0 !important;
    z-index: 4 !important;
    overflow: visible !important;
    gap: clamp(16px, 1.5vw, 24px) !important;
  }
  .site-header .nav-links.open li {
    width: auto !important;
    border-bottom: 0 !important;
  }
  .site-header .nav-links.open a,
  .site-header .nav-links.open li a {
    color: var(--ink-soft) !important;
    padding: 4px 0 !important;
    font-size: 0.85rem !important;
    font-weight: 500 !important;
  }
  .mobile-close { display: none !important; }
}

/* Tablet / narrow desktop: switch earlier to hamburger instead of letting CTA overlap menu. */
@media (max-width: 1180px) {
  .site-header .nav-links { display: none !important; }
  .site-header .nav-toggle { display: inline-flex !important; }
  .site-header .nav { gap: 18px !important; }
}
@media (max-width: 520px) {
  .site-header .brand { font-size: 1rem !important; }
  .site-header .brand-mark { width: 40px !important; height: 40px !important; flex-basis: 40px !important; }
  .site-header .brand-mark img { width: 28px !important; height: 28px !important; }
  .site-header .nav-cta .btn { padding: 9px 12px !important; font-size: 0.78rem !important; }
}


/* =========================================================
   v2.8.7 — Information architecture cleanup
   Services / Technology / Knowledge separation, advisors photos
   ========================================================= */
.split-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.88fr);
  gap: clamp(28px, 4vw, 58px);
  align-items: end;
}
.split-hero-copy { padding-bottom: clamp(36px, 5vw, 62px); }
.split-hero-image {
  overflow: hidden;
  border: 1px solid var(--line-soft);
  box-shadow: var(--card-shadow);
  background: #fff;
}
.split-hero-image img {
  display: block;
  width: 100%;
  height: 340px;
  object-fit: cover;
}
.team-section-label {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--accent);
  letter-spacing: 0.14em;
  margin: 44px 0 18px;
  text-transform: uppercase;
}
.clean-block a:not(.btn) {
  color: var(--accent);
  border-bottom: 1px solid rgba(43,92,184,0.28);
  text-decoration: none;
}
.team-photo,
.team-photo img {
  border-radius: 0 !important;
}
.team-photo {
  width: 68px;
  height: 68px;
  border: 1px solid var(--line-soft);
  background: #fff;
}
.team-card {
  align-items: stretch;
}
.service-process-list {
  margin: 18px 0 0;
  padding-left: 20px;
}
.service-process-list li {
  padding: 10px 0;
  color: var(--ink-mid);
  line-height: 1.55;
}
.service-process-list li strong { color: var(--ink); }
.technology-focus-grid .clean-block,
.technology-solution-copy .clean-block {
  align-self: stretch;
}
.technology-innovation .clean-card {
  min-height: 100%;
}
.process-visual-block.process-steps-visual img,
.technology-solution-visual img,
.knowledge-process-image img {
  background: #fff;
}
@media (max-width: 980px) {
  .split-hero-grid { grid-template-columns: 1fr; }
  .split-hero-copy { padding-bottom: 0; }
  .split-hero-image img { height: 280px; }
  #teamCore.team-grid,
  #teamAdvisory.team-grid { grid-template-columns: 1fr !important; max-width: none !important; }
}
@media (max-width: 560px) {
  .split-hero-image img { height: 220px; }
  .team-card { padding: 18px; gap: 16px; }
  .team-photo { width: 58px; height: 58px; }
}


/* =========================================================
   v2.8.8 — information architecture and layout refinement
   ---------------------------------------------------------
   - About: remove vertical separator, smaller team/DWI/history images
   - Team cards: circular portraits again
   - Services: combined use-points, compact output with report image
   - Technology: solution/output blocks stacked, not side-by-side
   - Knowledge: show problem collage uncropped
   - Contact: text-only side panel, no team photo
   ========================================================= */

/* Team/advisory card portraits are intentional portraits: round them. */
.team-photo,
.team-photo img {
  border-radius: 50% !important;
}
.team-photo {
  overflow: hidden;
}

/* About page cleanup: no blue separator; image less dominant. */
.about-team-copy {
  border-right: 0 !important;
  padding-right: 0 !important;
}
.about-team-photo {
  max-width: 70% !important;
  width: 70% !important;
  justify-self: center !important;
  align-self: center !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.about-team-photo img {
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.about-team-layout {
  align-items: center !important;
}

/* DWI and Aachen history visuals smaller and square-edged. */
.dwi-side-photo,
.plain-history-image {
  max-width: 50% !important;
  width: 50% !important;
  justify-self: center !important;
  align-self: center !important;
  min-height: 0 !important;
  border-radius: 0 !important;
}
.dwi-side-photo img,
.plain-history-image img {
  height: auto !important;
  min-height: 0 !important;
  border-radius: 0 !important;
  object-fit: contain !important;
}

/* Technology: headline/copy box stacked for easier reading. */
.section-head-left {
  text-align: left !important;
  max-width: 980px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.technology-solution-copybox,
.technology-output-box {
  max-width: 980px;
  margin-top: 20px;
}
.technology-solution-copybox p,
.technology-output-box p {
  max-width: 840px;
}

/* Services: combined application strip and compact output block. */
.application-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}
.application-strip > div {
  background: rgba(255,255,255,0.72);
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 20px 22px;
}
.application-strip span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(43,92,184,0.35);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  margin-bottom: 12px;
}
.application-strip strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}
.application-strip p {
  margin: 0;
  color: var(--ink-mid);
  font-size: 0.92rem;
  line-height: 1.55;
}
.service-output-grid {
  align-items: center;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr) !important;
}
.service-output-box {
  padding: clamp(26px, 3vw, 38px) !important;
}
.compact-checklist {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}
.compact-checklist li {
  color: var(--ink-mid);
  line-height: 1.5;
  padding-left: 22px;
  position: relative;
}
.compact-checklist li::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  position: absolute;
  left: 0;
  top: 0.62em;
}
.service-output-visual {
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.service-output-visual .services-visual-img {
  width: 100%;
  height: auto !important;
  max-height: 520px;
  object-fit: contain !important;
  display: block;
}

/* Knowledge: show Problem.png as full collage, never cropped. */
.problem-figure {
  align-items: center !important;
  justify-content: center !important;
  background: rgba(255,255,255,0.72) !important;
}
.problem-figure img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

/* Contact: no photo; keep a calm information card. */
.contact-side-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
}
.contact-info-card h3 {
  margin-top: 8px;
}
.contact-info-card p {
  color: var(--ink-mid);
  line-height: 1.65;
}
.contact-info-card a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,92,184,0.28);
}

@media (max-width: 980px) {
  .about-team-photo,
  .dwi-side-photo,
  .plain-history-image {
    width: 100% !important;
    max-width: 100% !important;
  }
  .application-strip,
  .service-output-grid {
    grid-template-columns: 1fr !important;
  }
  .about-team-copy {
    border-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
}


/* =========================================================
   v2.8.9 — service/contact/overview/technology refinements
   ---------------------------------------------------------
   - Contact form sends via noreply@hairanalytics.com and CCs sender
   - EXIST explanatory copy moved into the image-side content box
   - Services output made compact and height-aligned with flyer image
   - Pilot process removed from Services; portal block kept focused
   - Technology focus box and output section removed
   - About images enlarged again while keeping clean square picture edges
   ========================================================= */

.exist-team-copy {
  background: rgba(255,255,255,0.62) !important;
  border: 1px solid var(--line-soft) !important;
  padding: clamp(24px, 3vw, 36px) !important;
  justify-content: center !important;
}
.exist-team-copy .exist-copy-main {
  color: var(--ink-mid);
  font-size: clamp(1rem, 1.28vw, 1.16rem);
  line-height: 1.68;
  margin: 0 0 18px;
}
.exist-team-copy .exist-copy-top,
.exist-team-copy .exist-copy-bottom {
  color: var(--ink-mid);
  line-height: 1.65;
  margin: 0;
}
.exist-team-copy .exist-copy-bottom { margin-top: 18px; }

.service-output-grid {
  align-items: stretch !important;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 1.22fr) !important;
}
.service-output-box {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-height: 0 !important;
}
.service-output-box p {
  font-size: 1.02rem !important;
  line-height: 1.65 !important;
  max-width: 560px !important;
}
.service-output-visual {
  display: flex !important;
  align-items: stretch !important;
}
.service-output-visual .services-visual-img {
  height: 100% !important;
  max-height: 420px !important;
  object-fit: contain !important;
  align-self: center !important;
}
.service-portal-single {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  max-width: 900px !important;
  margin: 0 auto !important;
}
.service-portal-box {
  min-height: auto !important;
}

.technology-focus-single {
  display: block !important;
  max-width: 980px !important;
}
.technology-focus-single > div {
  max-width: 980px !important;
}

/* About: enlarge team/DWI/history visuals again, but keep square image treatment. */
.about-team-layout,
.about-dwi-layout,
.two-col {
  align-items: stretch !important;
}
.about-team-photo {
  width: 92% !important;
  max-width: 92% !important;
  align-self: stretch !important;
  justify-self: center !important;
  min-height: 420px !important;
}
.about-team-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 420px !important;
  object-fit: cover !important;
  object-position: center 24% !important;
}
.dwi-side-photo,
.plain-history-image {
  width: 84% !important;
  max-width: 84% !important;
  align-self: stretch !important;
  justify-self: center !important;
  min-height: 360px !important;
}
.dwi-side-photo img,
.plain-history-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 360px !important;
  object-fit: cover !important;
}
.plain-history-image img { object-position: center; }
.dwi-side-photo img { object-position: center; }

@media (max-width: 980px) {
  .service-output-grid { grid-template-columns: 1fr !important; }
  .service-output-visual .services-visual-img { height: auto !important; max-height: none !important; }
  .about-team-photo,
  .dwi-side-photo,
  .plain-history-image {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 260px !important;
  }
  .about-team-photo img,
  .dwi-side-photo img,
  .plain-history-image img {
    min-height: 260px !important;
  }
}


/* =========================================================
   v2.8.10 — visual hierarchy and layout refinements
   ---------------------------------------------------------
   - Overview hero copy shortened and EXIST links moved into the white copy box
   - Technology process graphics visually toned to match the webpage
   - About DWI image sits next to origin text; timeline spans full width below
   - Aachen image height follows the adjacent text block
   - Services output box fits its copy instead of stretching to image height
   - Knowledge problem image is placed next to the copy without a white card
   ========================================================= */

.video-eyebrow {
  letter-spacing: 0.24em;
}
.video-sub {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  letter-spacing: 0.02em;
  line-height: 1.7;
}

.exist-team-copy .exist-links {
  margin-top: 24px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.exist-team-copy .exist-links a {
  background: #fff;
  border-color: var(--line-soft);
}
.exist-team-layout + .exist-links { display: none !important; }

/* Make raster process graphics visually calmer and closer to the HairSense page palette. */
.technology-solution-visual img,
.process-visual-block.process-steps-visual img {
  filter: saturate(0.76) contrast(0.98) brightness(1.01);
}
.technology-solution-visual,
.process-visual-block.process-steps-visual {
  background: linear-gradient(180deg, rgba(255,255,255,0.98), rgba(248,251,255,0.96)) !important;
  border-color: rgba(196,210,232,0.72) !important;
}

/* About: DWI origin text + DWI image side by side; timeline full width underneath. */
.about-dwi-layout {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.78fr) !important;
  align-items: stretch !important;
}
.about-dwi-layout > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.about-dwi-layout .dwi-side-photo {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  min-height: 0 !important;
}
.about-dwi-layout .dwi-side-photo img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}
.timeline-full-width,
.about-dwi-intro #timelineContainer.timeline-full-width {
  margin-top: 34px !important;
  width: 100% !important;
  max-width: none !important;
}

/* Aachen history image should match the visual height of the text block, not dominate it. */
.plain-history-layout {
  align-items: stretch !important;
}
.plain-history-image {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  justify-self: stretch !important;
  min-height: 0 !important;
  max-height: none !important;
}
.plain-history-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

/* Services: compact output text card, image to the right without forcing equal height. */
.service-output-grid {
  align-items: start !important;
  grid-template-columns: minmax(280px, 0.72fr) minmax(360px, 1.28fr) !important;
}
.service-output-box {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  display: block !important;
  padding: clamp(22px, 2.4vw, 30px) !important;
}
.service-output-box h2 { margin-bottom: 10px !important; }
.service-output-box p {
  margin-bottom: 0 !important;
  font-size: 1rem !important;
  line-height: 1.58 !important;
  max-width: 520px !important;
}
.service-output-visual {
  align-items: flex-start !important;
}
.service-output-visual .services-visual-img {
  height: auto !important;
  max-height: 480px !important;
  object-fit: contain !important;
}

/* Knowledge problem: image as large adjacent visual, not inside a white box. */
.problem-layout-v285 {
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr) !important;
  align-items: center !important;
}
.problem-figure {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.problem-figure img {
  width: 100% !important;
  height: auto !important;
  max-width: none !important;
  min-height: 0 !important;
  object-fit: contain !important;
  display: block !important;
}

@media (max-width: 980px) {
  .about-dwi-layout,
  .service-output-grid,
  .problem-layout-v285 { grid-template-columns: 1fr !important; }
  .about-dwi-layout .dwi-side-photo img,
  .plain-history-image img { height: auto !important; }
  .problem-figure { margin-top: 8px; }
  .service-output-visual .services-visual-img { max-height: none !important; }
}


/* =========================================================
   v2.8.11 — final visual and registration refinements
   ---------------------------------------------------------
   - Working registration auth.js with backend-compatible payload
   - Shorter overview hero copy
   - Services output text and flyer aligned side-by-side
   - Updated textile strip and problem collage images
   - Aachen history image reduced by 30%
   ========================================================= */

.video-title {
  max-width: 980px;
}
.video-sub {
  max-width: 560px !important;
  font-size: clamp(1rem, 1.28vw, 1.16rem) !important;
}

.service-output-grid {
  display: grid !important;
  grid-template-columns: minmax(280px, 0.42fr) minmax(520px, 0.58fr) !important;
  gap: clamp(28px, 4vw, 70px) !important;
  align-items: start !important;
}
.service-output-grid .service-output-box {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 100% !important;
}
.service-output-grid .service-output-visual {
  aspect-ratio: auto !important;
  align-self: start !important;
  justify-self: stretch !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
}
.service-output-grid .service-output-visual .services-visual-img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-height: 430px !important;
  object-fit: contain !important;
  object-position: top center !important;
}

.plain-history-image {
  width: 70% !important;
  max-width: 70% !important;
  justify-self: center !important;
  align-self: center !important;
  min-height: 0 !important;
}
.plain-history-image img {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  object-fit: contain !important;
}

.problem-layout-v285 {
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr) !important;
}
.problem-figure {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.problem-figure img {
  width: 100% !important;
  height: auto !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .service-output-grid,
  .problem-layout-v285 {
    grid-template-columns: 1fr !important;
  }
  .plain-history-image {
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* =========================================================
   v2.8.12 — final layout refinements requested 2026-05-31
   ========================================================= */
/* EXIST: make the copy box look like the normal rounded HairSense cards. */
.exist-team-layout .exist-team-copy,
.exist-team-copy {
  border-radius: 30px !important;
  border: 1px solid var(--line) !important;
  background: rgba(255,255,255,0.82) !important;
  box-shadow: 0 18px 42px rgba(15,27,45,0.045) !important;
}

/* Services: single combined row of customer groups + use cases. */
.service-audience-grid { margin-top: 28px !important; }
.service-use-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-use-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border, #C7D7EE);
  border-radius: 999px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.02rem;
  background: var(--surface);
  margin-bottom: 6px;
}
.service-use-card h3 { margin-bottom: 2px !important; }
.service-use-card p { margin: 0 !important; }

/* Services output: keep the text next to the image on normal screens. */
.service-output-grid {
  grid-template-columns: minmax(300px, 0.78fr) minmax(420px, 1.22fr) !important;
  align-items: start !important;
  gap: clamp(36px, 5vw, 84px) !important;
}
.service-output-grid .service-output-box {
  align-self: start !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: 560px !important;
}
.service-output-grid .service-output-visual { align-self: start !important; }

/* About: make Aachen image closer to the height of the text block. */
.plain-history-layout { align-items: stretch !important; }
.plain-history-layout .plain-history-copy { align-self: center !important; }
.plain-history-image {
  align-self: stretch !important;
  max-width: 100% !important;
  min-height: clamp(300px, 27vw, 430px) !important;
}
.plain-history-image img {
  width: 100% !important;
  height: 100% !important;
  min-height: clamp(300px, 27vw, 430px) !important;
  object-fit: cover !important;
}

/* Knowledge: show problem graphic larger and as an image, not as a card. */
.problem-visual,
.problem-visual img,
.knowledge-problem-image,
.knowledge-problem-image img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.problem-visual img,
.knowledge-problem-image img {
  width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
}

@media (max-width: 980px) {
  .service-output-grid { grid-template-columns: 1fr !important; }
  .plain-history-layout { align-items: start !important; }
  .plain-history-image,
  .plain-history-image img { min-height: 0 !important; height: auto !important; }
}


/* =========================================================
   v2.8.13 — service/technology/problem/admin refinements
   ---------------------------------------------------------
   - Services combines output and customer portal in one side card next to the flyer.
   - Technology removes duplicate Steps_Process workflow and keeps one solution/process block.
   - Knowledge uses the newest Problem.png with cache busting.
   - Admin customer bulk activation/deactivation made more robust.
   ========================================================= */
.service-output-combined {
  grid-template-columns: minmax(340px, 0.86fr) minmax(430px, 1.14fr) !important;
  align-items: center !important;
  gap: clamp(30px, 4.5vw, 72px) !important;
}
.service-output-combined .service-output-box {
  max-width: 680px !important;
  align-self: center !important;
  padding: clamp(28px, 3vw, 42px) !important;
}
.service-output-combined .service-output-box p {
  max-width: 620px !important;
}
.service-output-combined .service-output-visual {
  align-self: center !important;
}
.service-output-combined .services-visual-img {
  max-height: 470px !important;
  object-position: center center !important;
}
.technology-solution-copybox a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(43,92,184,0.28);
}
.problem-layout-v285 .problem-figure img {
  width: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: contain !important;
}
@media (max-width: 980px) {
  .service-output-combined { grid-template-columns: 1fr !important; }
}


/* =========================================================
   v2.8.14 — asset refresh, softer visuals, zero-gap separator
   ========================================================= */
.overview-divider,
.overview-divider.container {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0 !important;
}
.overview-divider img {
  display: block !important;
  width: 100% !important;
  height: 150px !important;
  max-height: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  object-fit: cover !important;
  object-position: center center !important;
}

.service-output-visual,
.technology-solution-visual,
.split-hero-image,
.dwi-side-photo,
.plain-history-image {
  border-radius: 22px !important;
  overflow: hidden !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(243,247,252,0.96)) !important;
  border: 1px solid rgba(199,215,238,0.9) !important;
  box-shadow: 0 18px 42px rgba(15,27,45,0.08) !important;
}
.service-output-visual .services-visual-img,
.technology-solution-visual img,
.split-hero-image img,
.dwi-side-photo img,
.plain-history-image img {
  display: block;
  width: 100%;
  border-radius: inherit !important;
}
.dwi-side-photo img,
.plain-history-image img {
  background: #f8fbff;
}
.service-output-visual .services-visual-img,
.technology-solution-visual img,
.split-hero-image img {
  box-shadow: none !important;
}
.problem-figure {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(15,27,45,0.08);
}
.problem-figure img {
  display: block;
}
@media (max-width: 980px) {
  .overview-divider img { height: 120px !important; }
}
@media (max-width: 560px) {
  .overview-divider img { height: 96px !important; }
}


/* =========================================================
   v2.8.15 — Conservative scroll-reveal motion
   Calm, industry-safe micro-interactions with accessibility guard.
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hs-reveal {
    opacity: 0;
    transform: translateY(14px);
    transition:
      opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
      transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
    will-change: opacity, transform;
  }

  .hs-reveal.hs-visible {
    opacity: 1;
    transform: translateY(0);
  }

  .hs-reveal[data-hs-reveal="image"] {
    transform: translateY(10px) scale(0.992);
    transition-duration: 620ms;
  }

  .hs-reveal[data-hs-reveal="image"].hs-visible {
    transform: translateY(0) scale(1);
  }

  .hs-reveal[data-hs-reveal="card"] {
    transition-duration: 480ms;
  }

  .hs-reveal-delay-1 { transition-delay: 70ms; }
  .hs-reveal-delay-2 { transition-delay: 120ms; }
  .hs-reveal-delay-3 { transition-delay: 170ms; }
  .hs-reveal-delay-4 { transition-delay: 220ms; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-reveal {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}


/* =========================================================
   v2.8.16 — Images without artificial boxes
   Keeps the conservative layout but removes wrapper boxes around photos/figures.
   ========================================================= */
.service-output-visual,
.technology-solution-visual,
.split-hero-image,
.dwi-side-photo,
.plain-history-image,
.two-col-image,
.problem-figure {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  overflow: visible !important;
}
.service-output-visual .services-visual-img,
.technology-solution-visual img,
.split-hero-image img,
.dwi-side-photo img,
.plain-history-image img,
.two-col-image img,
.problem-figure img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
/* Large non-portrait website visuals should not appear framed like cards. */
.service-output-visual,
.technology-solution-visual,
.split-hero-image,
.dwi-side-photo,
.plain-history-image,
.problem-figure {
  border-radius: 0 !important;
}
.service-output-visual .services-visual-img,
.technology-solution-visual img,
.split-hero-image img,
.dwi-side-photo img,
.plain-history-image img,
.problem-figure img {
  border-radius: 0 !important;
}
/* Keep actual people/advisor portraits round where intentionally designed. */
.team-card img,
.advisor-card img,
.member-photo,
.avatar,
.profile-avatar img {
  border-radius: 50% !important;
}


/* =========================================================
   v2.8.17 — Final image handling: no artificial image boxes
   ========================================================= */
/* Large website visuals should be images, not cards. */
.service-output-grid,
.service-output-combined,
.technology-solution-section,
.split-hero-grid,
.about-dwi-layout,
.plain-history-layout {
  overflow: visible !important;
}
.service-output-visual,
.service-output-grid .service-output-visual,
.service-output-combined .service-output-visual,
.technology-solution-visual,
.split-hero-image,
.dwi-side-photo,
.plain-history-image,
.two-col-image,
.problem-figure {
  background: none !important;
  background-color: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: visible !important;
}
.service-output-visual::before,
.service-output-visual::after,
.technology-solution-visual::before,
.technology-solution-visual::after,
.split-hero-image::before,
.split-hero-image::after,
.dwi-side-photo::before,
.dwi-side-photo::after,
.plain-history-image::before,
.plain-history-image::after,
.problem-figure::before,
.problem-figure::after {
  display: none !important;
  content: none !important;
}
.service-output-visual .services-visual-img,
.service-output-grid .service-output-visual .services-visual-img,
.service-output-combined .services-visual-img,
.technology-solution-visual img,
.split-hero-image img,
.dwi-side-photo img,
.plain-history-image img,
.two-col-image img,
.problem-figure img {
  display: block !important;
  width: 100% !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: none !important;
  object-fit: contain !important;
  object-position: center center !important;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
/* Keep intentionally designed people/profile images round. */
.team-card img,
.advisor-card img,
.member-photo,
.avatar,
.profile-avatar img,
.user-avatar img,
.portal-avatar img {
  border-radius: 50% !important;
}


/* =========================================================
   v2.8.18 — stronger motion, image rules, equal-height pairs
   ========================================================= */
@media (prefers-reduced-motion: no-preference) {
  .hs-reveal {
    opacity: 0;
    transform: translateY(34px) scale(0.985);
    transition:
      opacity 760ms cubic-bezier(0.16, 1, 0.3, 1),
      transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
      box-shadow 240ms ease,
      border-color 240ms ease,
      background-color 240ms ease;
  }
  .hs-reveal.hs-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  .hs-reveal[data-hs-reveal="image"] {
    transform: translateY(38px) scale(0.975);
    transition-duration: 860ms;
  }
  .hs-reveal[data-hs-reveal="image"].hs-visible {
    transform: translateY(0) scale(1);
  }
}

/* Calm but clearer hover feedback for all text/card boxes. */
.clean-card,
.clean-block,
.detail-card,
.feature,
.kpi-card,
.service-output-box,
.technology-solution-copybox,
.morphology-table-wrap,
.team-card,
.advisor-card,
.news-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.clean-card:hover,
.clean-block:hover,
.detail-card:hover,
.feature:hover,
.kpi-card:hover,
.service-output-box:hover,
.technology-solution-copybox:hover,
.morphology-table-wrap:hover,
.team-card:hover,
.advisor-card:hover,
.news-card:hover {
  transform: translateY(-5px);
  border-color: rgba(24,87,184,0.28) !important;
  box-shadow: 0 20px 46px rgba(15,27,45,0.10) !important;
  background-color: rgba(255,255,255,0.96) !important;
}

/* Never frame or round large content images. Portrait/avatar exceptions remain below. */
.two-col-image,
.service-output-visual,
.technology-solution-visual,
.split-hero-image,
.dwi-side-photo,
.plain-history-image,
.knowledge-process-image,
.problem-figure,
.knowledge-image-frame {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border-radius: 0 !important;
}
.two-col-image img,
.service-output-visual img,
.technology-solution-visual img,
.split-hero-image img,
.dwi-side-photo img,
.plain-history-image img,
.knowledge-process-image img,
.problem-figure img,
.knowledge-image-frame img {
  border-radius: 0 !important;
  box-shadow: none !important;
  border: 0 !important;
  background: transparent !important;
}
.team-card img,
.advisor-card img,
.member-photo,
.avatar,
.profile-avatar img,
.user-avatar img,
.portal-avatar img {
  border-radius: 50% !important;
}

/* Equal-height text/image pairs. */
.clean-grid-2,
.split-hero-grid,
.about-team-layout,
.about-dwi-layout,
.plain-history-layout,
.service-output-grid,
.service-output-combined,
.technology-solution-section {
  align-items: stretch !important;
}
.clean-grid-2 > .clean-block,
.clean-grid-2 > .two-col-image,
.clean-grid-2 > .split-hero-image,
.clean-grid-2 > .technology-solution-visual,
.clean-grid-2 > .service-output-visual,
.service-output-grid > .clean-block,
.service-output-grid > .service-output-visual,
.service-output-combined > .clean-block,
.service-output-combined > .service-output-visual {
  height: 100% !important;
  align-self: stretch !important;
}
.clean-grid-2 > .two-col-image,
.clean-grid-2 > .split-hero-image,
.clean-grid-2 > .technology-solution-visual,
.clean-grid-2 > .service-output-visual,
.service-output-grid > .service-output-visual,
.service-output-combined > .service-output-visual {
  display: flex !important;
  align-items: stretch !important;
}
.clean-grid-2 > .two-col-image img,
.clean-grid-2 > .split-hero-image img,
.clean-grid-2 > .technology-solution-visual img,
.clean-grid-2 > .service-output-visual img,
.service-output-grid > .service-output-visual img,
.service-output-combined > .service-output-visual img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.service-output-combined .services-visual-img {
  object-fit: contain !important;
  min-height: 360px !important;
}

/* Knowledge process graphic: full-width hero-like image, never rounded. */
.knowledge-isolation-section .container {
  overflow: visible !important;
}
.knowledge-process-image {
  width: 100vw !important;
  max-width: 100vw !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: calc(50% - 50vw) !important;
  margin-top: clamp(28px, 4vw, 52px) !important;
  margin-bottom: 0 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}
.knowledge-process-image img {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  object-fit: cover !important;
  object-position: center center !important;
}
@media (max-width: 980px) {
  .clean-grid-2 > .two-col-image img,
  .clean-grid-2 > .split-hero-image img,
  .clean-grid-2 > .technology-solution-visual img,
  .clean-grid-2 > .service-output-visual img,
  .service-output-grid > .service-output-visual img,
  .service-output-combined > .service-output-visual img {
    height: auto !important;
    min-height: 0 !important;
  }
}


/* =========================================================
   v2.8.19 — forms, alignment and admin engagement UI
   ========================================================= */
.service-hero .service-hero-align {
  align-items: center !important;
}
.service-hero .split-hero-copy {
  padding-bottom: 0 !important;
}
.service-hero .split-hero-image img {
  object-fit: cover !important;
}
.service-form-grid {
  align-items: stretch !important;
}
.service-form-grid > .clean-block {
  height: 100%;
}
.compact-form-card form {
  display: grid;
  gap: 14px;
}
.compact-form-card .form-row,
.newsletter-card-inline .form-row {
  margin-bottom: 0;
}
.inline-form-status {
  min-height: 20px;
  font-size: 0.9rem;
  color: var(--muted);
}
.inline-form-status.ok { color: var(--success); }
.inline-form-status.error { color: var(--danger); }
.service-waitlist-section .clean-block,
.newsletter-inline-section .clean-block,
.partner-card,
.newsletter-card-inline {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, background-color 220ms ease;
}
.service-waitlist-section .clean-block:hover,
.newsletter-inline-section .clean-block:hover,
.partner-card:hover,
.newsletter-card-inline:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 42px rgba(15,27,45,0.09);
  border-color: rgba(43,92,184,0.28);
}
.admin-filter-row {
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin: 18px 0 22px;
}
.admin-filter-row input,
.admin-filter-row select {
  min-width: 170px;
}
.admin-message-box {
  display:grid;
  gap:10px;
  margin: 18px 0 24px;
  max-width: 880px;
}
.admin-message-box textarea { min-height: 110px; }
@media (max-width: 900px) {
  .service-hero .service-hero-align { align-items: stretch !important; }
}

/* =========================================================
   v2.8.21 — mobile and portal stability layer
   CSS/layout-only. No content changes.
   ========================================================= */

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

* {
  box-sizing: border-box;
}

img,
video,
canvas,
svg {
  max-width: 100%;
  height: auto;
}

p,
li,
td,
th,
label,
button,
a,
.card,
.clean-card,
.detail-card,
.feature,
.timeline,
.timeline-item,
.message-bubble,
.chat-message {
  overflow-wrap: anywhere;
  word-break: normal;
}

.table-wrap,
.table-scroll,
.orders-table-wrap,
.admin-table-wrap,
.portal-table-wrap,
.responsive-table,
.clean-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

@media (max-width: 820px) {
  table {
    max-width: 100%;
    min-width: 680px;
  }

  .table-wrap table,
  .table-scroll table,
  .orders-table-wrap table,
  .admin-table-wrap table,
  .portal-table-wrap table,
  .responsive-table table,
  .clean-table-wrap table {
    width: max-content;
    min-width: 680px;
  }
}

@media (max-width: 860px) {
  .container,
  .container-wide,
  .container-narrow,
  .page-section,
  .section,
  main > section {
    max-width: 100%;
  }

  .split,
  .split-grid,
  .two-col,
  .two-col-grid,
  .three-col,
  .cards-grid,
  .feature-grid,
  .clean-grid,
  .service-grid,
  .equal-pair,
  .text-image-grid,
  .overview-grid,
  .technology-grid,
  .knowledge-grid,
  .contact-grid {
    grid-template-columns: 1fr !important;
  }

  .split > *,
  .split-grid > *,
  .two-col > *,
  .two-col-grid > *,
  .equal-pair > *,
  .text-image-grid > * {
    min-width: 0 !important;
  }

  .split img,
  .split-grid img,
  .two-col img,
  .two-col-grid img,
  .equal-pair img,
  .text-image-grid img {
    width: 100%;
    height: auto !important;
    object-fit: contain !important;
  }
}

@media (max-width: 860px) {
  .portal-shell,
  .customer-shell,
  .app-shell,
  .admin-shell {
    display: block !important;
    min-height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  .portal-main,
  .customer-main,
  .app-main,
  .admin-main,
  .portal-content,
  .customer-content,
  .app-content,
  .admin-content {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding-left: clamp(18px, 5vw, 28px) !important;
    padding-right: clamp(18px, 5vw, 28px) !important;
    padding-top: 24px !important;
    min-width: 0 !important;
    overflow-x: hidden !important;
  }

  .portal-main::before,
  .customer-main::before,
  .app-main::before,
  .admin-main::before,
  .portal-content::before,
  .customer-content::before {
    display: none !important;
    content: none !important;
  }

  .portal-spacer,
  .mobile-spacer,
  .hero-spacer,
  .dashboard-spacer {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
  }

  .portal-sidebar,
  .customer-sidebar,
  .app-sidebar,
  .admin-sidebar,
  aside.sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    width: min(84vw, 340px) !important;
    height: 100dvh !important;
    z-index: 9999 !important;
    transform: translateX(-105%) !important;
    transition: transform 240ms ease !important;
    overflow-y: auto !important;
    overscroll-behavior: contain !important;
    box-shadow: 18px 0 42px rgba(15, 27, 45, 0.18) !important;
  }

  body.portal-menu-open .portal-sidebar,
  body.portal-menu-open .customer-sidebar,
  body.portal-menu-open .app-sidebar,
  body.portal-menu-open .admin-sidebar,
  body.portal-menu-open aside.sidebar,
  body.mobile-menu-open .portal-sidebar,
  body.mobile-menu-open .customer-sidebar,
  body.mobile-menu-open .app-sidebar,
  body.mobile-menu-open .admin-sidebar,
  body.mobile-menu-open aside.sidebar {
    transform: translateX(0) !important;
  }

  .portal-backdrop,
  .mobile-menu-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(15, 27, 45, 0.32);
    opacity: 0;
    pointer-events: none;
    transition: opacity 200ms ease;
  }

  body.portal-menu-open .portal-backdrop,
  body.mobile-menu-open .mobile-menu-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 700px) {
  .portal-card,
  .dashboard-card,
  .order-card,
  .message-card,
  .settings-card,
  .support-card,
  .clean-card,
  .detail-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .dashboard-grid,
  .stats-grid,
  .orders-grid,
  .portal-grid,
  .customer-grid {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }

  .dashboard-cta,
  .portal-cta,
  .hero-card {
    padding: 28px 22px !important;
  }

  .dashboard-cta .btn,
  .portal-cta .btn,
  .hero-card .btn,
  .btn-large {
    width: 100%;
    max-width: 100%;
    white-space: normal;
  }

  .messages-panel,
  .messages-list,
  .chat-panel,
  .chat-list {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 260px;
    overflow-x: hidden !important;
  }

  .message-bubble,
  .chat-message,
  .message-item {
    max-width: 92% !important;
    overflow-wrap: anywhere !important;
  }

  .message-form,
  .chat-form,
  .reply-form {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .message-form input,
  .message-form textarea,
  .chat-form input,
  .chat-form textarea,
  .reply-form input,
  .reply-form textarea {
    width: 100% !important;
    min-width: 0 !important;
  }

  .message-form button,
  .chat-form button,
  .reply-form button {
    width: 100% !important;
  }
}

@media (max-width: 760px) {
  .timeline,
  .history-timeline,
  .origin-timeline {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    overflow: hidden !important;
  }

  .timeline::before,
  .history-timeline::before,
  .origin-timeline::before {
    left: 22px !important;
    right: auto !important;
  }

  .timeline-item,
  .history-timeline .timeline-item,
  .origin-timeline .timeline-item {
    display: grid !important;
    grid-template-columns: 56px 1fr !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .timeline-year,
  .timeline-date {
    grid-column: 1 !important;
    width: auto !important;
    text-align: right !important;
    font-size: 0.9rem !important;
  }

  .timeline-content {
    grid-column: 2 !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    overflow-wrap: anywhere !important;
  }

  .knowledge-table,
  .morphology-table,
  .comparison-table {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .knowledge-table table,
  .morphology-table table,
  .comparison-table table {
    min-width: 720px !important;
  }

  .skeleton-table,
  .skeleton-list,
  .loading-table {
    width: 100% !important;
    max-width: 100% !important;
    overflow: hidden !important;
  }

  .skeleton-row,
  .skeleton-line {
    max-width: 100% !important;
  }
}

/* =========================================================
   v2.8.22 — EXIST funding block responsive stacking
   CSS/layout-only. No text/content changes.
   ========================================================= */

@media (max-width: 1180px) {
  .exist-funding-section .exist-team-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: clamp(22px, 5vw, 42px) !important;
    align-items: start !important;
  }

  .exist-funding-section .exist-team-copy {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    order: 1 !important;
  }

  .exist-funding-section .exist-team-banner {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    height: auto !important;
    justify-self: stretch !important;
    align-self: start !important;
    order: 2 !important;
    display: block !important;
  }

  .exist-funding-section .exist-team-banner img {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    object-fit: contain !important;
    object-position: center !important;
  }
}

@media (max-width: 680px) {
  .exist-funding-section {
    padding-top: 52px !important;
    padding-bottom: 52px !important;
  }

  .exist-funding-section .exist-funding-head {
    margin-bottom: 18px !important;
  }

  .exist-funding-section .exist-team-copy {
    padding: 22px !important;
    border-radius: 22px !important;
  }

  .exist-funding-section .exist-team-banner img {
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
