:root {
  /* ── 
  Base palette (RGB channels for rgba() compositing) 
  --cardinal-rgb: 188, 32, 61;
  ── */
  /* ── Buttons, shadows, hover glows, spec item backgrounds, pulse animation, form focus borders, nav arrow backgrounds, ghost button borders — the primary accent everywhere, adjusted from: 188, 32, 61 ── */
  --cardinal-rgb: 182, 41, 68;
  /* ── Text labels (team positions, footer headings, news dates, career labels, legal section numbers, all uppercase category labels), link hover colors, error text ── */
  --cardinal-light-rgb: 212, 53, 79;
  /* ── Currently unused — available as a reserve for darker red states ── */
  --cardinal-dark-rgb: 138, 23, 48;
  /* ── Body background, header background, modal overlay, footer background, form input backgrounds, credit overlay, checkbox backgrounds ── */
  --deep-navy-rgb: 10, 22, 40;
  /* ── Team & news section tinted backgrounds, modal card body, select dropdown option background ── */
  --navy-rgb: 15, 33, 64;
  /* ── Body ambient glow, nav pill background, team card image placeholder, product image placeholder, card gradient start ── */
  --slate-rgb: 26, 45, 74;
  /* ── Only the legal TOC counter numbers — very subtle UI ── */
  --steel-rgb: 45, 66, 99;
  /* ── The workhorse — all secondary text, every border/divider on the site, placeholder text, nav links, footer links, metadata, legal body text labels, form checkbox borders ── */
  --mist-rgb: 148, 163, 184;
  /* ── Primary body text on dark backgrounds — legal page paragraphs, form labels, contact info, callout text, mobile nav links ── */
  --cloud-rgb: 226, 232, 240;
  /* ── Headings, bright text, button labels, input text, hover states, CTA glow, border on outline buttons, checkbox checkmark ── */
  --white-rgb: 255, 255, 255;
  /* ── Card hover shadows only (panel, team, news, job, white button) ── */
  --black-rgb: 0, 0, 0;
  /* ── Just the green success text on forms ── */
  --success-rgb: 74, 222, 128;
  /* ── Just the funding strip caption text ── */
  --warm-gray-rgb: 107, 98, 88;
  /* ── Just the funding strip background ── */
  --warm-cream-rgb: 245, 242, 236;

  /* ── Solid colors (derived from RGB channels) ────────── */
  --cardinal: rgba(var(--cardinal-rgb), 1);
  --cardinal-light: rgba(var(--cardinal-light-rgb), 1);
  --cardinal-dark: rgba(var(--cardinal-dark-rgb), 1);
  --deep-navy: rgba(var(--deep-navy-rgb), 1);
  --navy: rgba(var(--navy-rgb), 1);
  --slate: rgba(var(--slate-rgb), 1);
  --steel: rgba(var(--steel-rgb), 1);
  --mist: rgba(var(--mist-rgb), 1);
  --cloud: rgba(var(--cloud-rgb), 1);
  --white: rgba(var(--white-rgb), 1);
  --success: rgba(var(--success-rgb), 1);
  --warm-gray: rgba(var(--warm-gray-rgb), 1);
  --warm-cream: rgba(var(--warm-cream-rgb), 1);

  /* ── Gradients ───────────────────────────────────────── */
  --gradient-card: linear-gradient(145deg, rgba(var(--slate-rgb), 0.6) 0%, rgba(var(--navy-rgb), 0.8) 100%);
  --gradient-accent: linear-gradient(135deg, rgba(var(--cardinal-rgb), 1) 0%, rgba(var(--cardinal-light-rgb), 1) 100%);

  /* ── Radii & transitions ─────────────────────────────── */
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --radius-pill: 100px;
  --transition: 0.35s cubic-bezier(.4,0,.2,1);
}

/* ── RESET ──────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  /* font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; */
  font-family: 'Outfit', sans-serif;
  background: var(--deep-navy);
  color: var(--white);
  line-height: 1.7;
  overflow-x: hidden;
  min-height: 100vh;
}

/* subtle ambient glow */
body::before {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 15%, rgba(var(--cardinal-rgb), 0.07) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 85%, rgba(var(--slate-rgb), 0.45) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

img { max-width: 100%; display: block; }
a { color: inherit; }

/* ── HEADER ─────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0.4rem 3.5rem;
  background: rgba(var(--deep-navy-rgb), 0.88);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.08);
}

.logo img { height: 100px; width: auto; transition: transform var(--transition); }
.logo img:hover { transform: scale(1.03); }

/* Desktop: centered pill nav */
.main-nav {
  position: absolute; left: 50%; transform: translateX(-50%);
  background: rgba(var(--slate-rgb), 0.55);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-pill);
  padding: 0.3rem;
  border: 1px solid rgba(var(--mist-rgb), 0.12);
}

.main-nav ul { display: flex; list-style: none; gap: 0.2rem; }

.main-nav a {
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.6rem 1.3rem;
  border-radius: var(--radius-pill);
  transition: all var(--transition);
  display: block;
  white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active { color: var(--white); background: rgba(var(--white-rgb), 0.1); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-contact {
  background: var(--gradient-accent);
  color: var(--white);
  text-decoration: none;
  padding: 0.65rem 1.5rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem;
  font-weight: 600;
  transition: all var(--transition);
  box-shadow: 0 4px 18px rgba(var(--cardinal-rgb), 0.3);
  border: none; cursor: pointer;
}
.btn-contact:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--cardinal-rgb), 0.45);
}

/* Hamburger toggle — hidden on desktop */
.nav-toggle {
  display: none;
  background: none; border: none; cursor: pointer;
  padding: 0.5rem;
  z-index: 1001;
}
.nav-toggle span {
  display: block; width: 24px; height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: all var(--transition);
  border-radius: 2px;
}
.nav-toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ── MOBILE NAV (≤ 900px): hamburger + fullscreen overlay ── */
@media (max-width: 900px) {
  .site-header { padding: 0.5rem 1.5rem; }
  .logo img { height: 65px; }
  .nav-toggle { display: block; }
  .header-actions .btn-contact { display: none; }

  .main-nav {
    /* override ALL desktop styles explicitly */
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    height: 100dvh; /* dynamic viewport height for iOS */
    transform: none; /* kill the desktop translateX(-50%) */
    border-radius: 0;
    border: none;
    background: var(--deep-navy);
    backdrop-filter: none;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
    padding: 0;
    z-index: 999;
  }
  .main-nav.open {
    opacity: 1;
    pointer-events: auto;
  }
  .main-nav ul {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }
  .main-nav a {
    font-size: 1.6rem;
    font-weight: 600;
    padding: 1rem 3rem;
    color: var(--cloud);
    border-radius: var(--radius-sm);
  }
  .main-nav a:hover,
  .main-nav a:active {
    color: var(--white);
    background: rgba(var(--cardinal-rgb), 0.15);
  }
}

/* ── SECTIONS ───────────────────────────────────────────── */
section { padding: 0 3.5rem; scroll-margin-top: 100px; }
.container { max-width: 1400px; margin: 0 auto; }

.section-header {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 3rem; padding-bottom: 2rem;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.12);
}
.section-header h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem; font-weight: 700;
}
.section-header p {
  color: var(--mist); max-width: 400px; text-align: right; font-size: 0.95rem;
}

/* ── HERO ───────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex; align-items: center;
  padding-top: 120px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: center;
}
.hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.2rem);
  font-weight: 700; line-height: 1.08;
  margin-bottom: 1.5rem;
}
.hero-text h1 .highlight {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text .tagline {
  font-size: 1.2rem; color: var(--mist);
  margin-bottom: 2.5rem; max-width: 480px;
}
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-image { display: flex; justify-content: center; }
.hero-image img {
  width: 100%; max-width: 600px;
  filter: drop-shadow(0 20px 60px rgba(var(--cardinal-rgb), 0.18));
  animation: float 6s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-18px); }
}

/* ── ABOUT ──────────────────────────────────────────────── */
#about { padding-top: 7rem; padding-bottom: 7rem; }
.about-intro { max-width: 900px; margin-bottom: 3.5rem; }
.about-intro h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem; font-weight: 700;
  margin-bottom: 1.25rem; line-height: 1.2;
}
.about-intro h2 .highlight { color: var(--cardinal); }
.about-intro p { font-size: 1.1rem; color: var(--mist); line-height: 1.85; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.panel {
  background: var(--gradient-card);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 2.25rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  transition: all 0.4s ease;
  position: relative; overflow: hidden;
}
.panel::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--gradient-accent);
  opacity: 0; transition: opacity 0.3s;
}
.panel:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--cardinal-rgb), 0.3);
  box-shadow: 0 20px 50px rgba(var(--black-rgb), 0.3);
}
.panel:hover::before { opacity: 1; }
.panel-label {
  font-size: 1rem; font-weight: 600; color: var(--cardinal);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.7rem;
}
.panel h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.4rem; font-weight: 600;
  margin-bottom: 0.5rem;
}
.panel p { color: var(--mist); font-size: 0.93rem; }

/* ── TEAM ───────────────────────────────────────────────── */
#team {
  padding-top: 6rem; padding-bottom: 7rem;
  background: rgba(var(--navy-rgb), 0.45);
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem; max-width: 1400px; margin: 0 auto;
}
.team-card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  transition: all 0.4s ease;
}
.team-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 55px rgba(var(--black-rgb), 0.3);
  border-color: rgba(var(--cardinal-rgb), 0.3);
}
.team-card img {
  width: 100%; aspect-ratio: 1; object-fit: cover;
  background: var(--slate);
  transition: transform 0.5s ease;
}
.team-card:hover img { transform: scale(1.04); }
.team-info { padding: 1rem; }
.team-info h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600; margin-bottom: 0.15rem;
}
.team-info .position {
  color: var(--cardinal-light);
  font-size: 0.82rem; font-weight: 500;
}
/* ── TEAM GROUPS (add to TEAM section in style.css) ──── */

/* Group container — each group (Founders, Advisors, Team) */
.team-group {
  margin-bottom: 3.5rem;
}
.team-group:last-child {
  margin-bottom: 0;
}

/* Group label — uppercase red, same style as other labels */
.team-group-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 1.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.1);
}

/* Grid adapts to group size */
.team-grid--small {
  grid-template-columns: repeat(2, 1fr);
  max-width: 560px;
}
.team-grid--medium {
  grid-template-columns: repeat(3, 1fr);
  max-width: 840px;
}

/* Linked card (person with URL) */
.team-card--linked {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.team-card-img {
  position: relative;
  overflow: hidden;
}

.team-credit {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(var(--deep-navy-rgb), 0.85);
  color: var(--mist);
  font-size: 0.68rem;
  letter-spacing: 0.3px;
  padding: 0.4rem 0.75rem;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.team-card-img:hover .team-credit {
  transition-delay: 2s;
  opacity: 1;
}

.team-card-img:not(:hover) .team-credit {
  transition-delay: 0s;
  opacity: 0;
}

/* ── RESPONSIVE OVERRIDES ──────────────────────────────── */
@media (max-width: 1024px) {
  .team-grid--small {
    max-width: 480px;
  }
  .team-grid--medium {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .team-grid--small,
  .team-grid--medium {
    grid-template-columns: 1fr 1fr;
    max-width: 100%;
  }
  .team-group {
    margin-bottom: 2.5rem;
  }
}

@media (max-width: 480px) {
  .team-grid--small,
  .team-grid--medium {
    grid-template-columns: 1fr;
    max-width: 320px;
    margin: 0 auto;
  }
}

/* ── PRODUCTS ────────────────────────────────────────────── */
#products { padding-top: 6rem; padding-bottom: 7rem; }
.products-showcase {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 3.5rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.products-showcase::after {
  content: ''; position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(var(--cardinal-rgb), 0.08) 0%, transparent 70%);
  pointer-events: none;
}
.products-showcase[id] {
  scroll-margin-top: 120px;
}
.products-showcase--compact {
  grid-template-columns: 1fr;
  height: 100%;
}
.products-showcase--compact .products-content {
  height: 100%;
  display: flex;
  flex-direction: column;
}
.products-showcase--compact .products-content .label {
  min-height: 1.5em;
}
.products-showcase--compact .products-content h3 {
  min-height: 4.8rem;
}
.products-showcase--compact .products-content > p {
  min-height: 4rem;
}
.products-compact-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
  align-items: stretch;
}
@media (max-width: 768px) {
  .products-compact-row {
    grid-template-columns: 1fr;
  }
}
.products-content { position: relative; z-index: 1; }
.products-content .label {
  font-size: 1rem; font-weight: 600; color: var(--cardinal);
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 0.9rem;
}
.products-content h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  margin-bottom: 1rem; line-height: 1.1;
}
.products-content h3 span { color: var(--cardinal); }
.products-content > p { color: var(--mist); font-size: 1.05rem; margin-bottom: 1.5rem; }
.products-specs { display: flex; gap: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.spec-item {
  background: rgba(var(--cardinal-rgb), 0.1);
  border: 1px solid rgba(var(--cardinal-rgb), 0.25);
  border-radius: var(--radius-sm);
  padding: 0.9rem 1.3rem; text-align: center;
  min-width: 120px;
}
.spec-value {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem; font-weight: 700;
  color: var(--cardinal-light); display: block;
}
.spec-label {
  font-size: 0.78rem; color: var(--mist);
  text-transform: uppercase; letter-spacing: 0.5px;
}
.coming-soon-badge {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--cardinal-light);
  background: rgba(var(--cardinal-rgb), 0.12);
  border: 1px solid rgba(var(--cardinal-rgb), 0.25);
  border-radius: var(--radius-sm);
  padding: 0.5rem 1.2rem;
  float: right;
}

.coming-soon-badge--available {
  color: var(--success);
  background: rgba(var(--success-rgb), 0.1);
  border-color: rgba(var(--success-rgb), 0.25);
}
.products-visual {
  display: flex; justify-content: center; align-items: center;
  position: relative; z-index: 1;
}
.products-visual img {
  max-width: 100%; max-height: 340px;
  filter: drop-shadow(0 20px 40px rgba(var(--cardinal-rgb), 0.18));
  background: var(--slate); border-radius: var(--radius-md);
}
.products-showcase--compact .coming-soon-badge {
  align-self: flex-start;
  margin-top: auto;
}

/* ── NEWS ───────────────────────────────────────────────── */
#news {
  padding-top: 6rem; padding-bottom: 7rem;
  background: rgba(var(--navy-rgb), 0.45);
}
.news-grid {
  display: flex;
  gap: 1.5rem;
}
.news-card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  padding: 2rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  transition: all 0.4s ease;
  display: flex; flex-direction: column;
}
.news-card:hover {
  transform: translateY(-4px);
  border-color: rgba(var(--cardinal-rgb), 0.3);
  box-shadow: 0 18px 45px rgba(var(--black-rgb), 0.25);
}
.news-date {
  font-size: 1rem; color: var(--cardinal-light);
  font-weight: 600; margin-bottom: 0.9rem;
  letter-spacing: 0.5px;
}
.news-card h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem; font-weight: 600;
  margin-bottom: 0.7rem; line-height: 1.35;
}
.news-card p { color: var(--mist); font-size: 0.9rem; flex-grow: 1; }
.news-card .read-more {
  display: inline-block; margin-top: 1rem;
  color: var(--cardinal-light);
  font-size: 0.85rem; font-weight: 600;
  text-decoration: none; transition: color var(--transition);
}
.news-card .read-more:hover { color: var(--white); }

/* ── CAREERS ────────────────────────────────────────────── */
#careers {
  padding-top: 6rem; padding-bottom: 7rem;
}
#careers.hidden { display: none; }

.jobs-list { display: flex; flex-direction: column; gap: 1.25rem; }

.job-card {
  background: var(--gradient-card);
  border-radius: var(--radius-md);
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  transition: all 0.4s ease;
  overflow: hidden;
}
.job-card:hover {
  border-color: rgba(var(--cardinal-rgb), 0.25);
  box-shadow: 0 12px 40px rgba(var(--black-rgb), 0.2);
}
.job-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.75rem 2rem;
  cursor: pointer; user-select: none;
}
.job-header:hover { background: rgba(var(--white-rgb), 0.02); }
.job-title-group h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem;
}
.job-meta { display: flex; gap: 1.25rem; }
.job-meta span {
  font-size: 0.82rem; color: var(--mist);
  display: flex; align-items: center; gap: 0.35rem;
}
.job-meta span::before {
  content: ''; display: inline-block;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--cardinal);
}
.job-toggle {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(var(--cardinal-rgb), 0.12);
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition);
  flex-shrink: 0;
}
.job-toggle svg { transition: transform var(--transition); }
.job-card.open .job-toggle svg { transform: rotate(180deg); }
.job-card.open .job-toggle { background: var(--cardinal); }

.job-body {
  max-height: 0; overflow: hidden;
  transition: max-height 0.5s ease;
}
.job-body-inner {
  padding: 0 2rem 2rem;
  border-top: 1px solid rgba(var(--mist-rgb), 0.08);
}
.job-body-inner p { color: var(--mist); font-size: 0.95rem; margin: 1rem 0; }
.job-body-inner h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem; font-weight: 600;
  margin-top: 1.25rem; margin-bottom: 0.5rem;
}
.job-body-inner ul {
  list-style: none; padding: 0;
}
.job-body-inner ul li {
  color: var(--mist); font-size: 0.9rem;
  padding: 0.25rem 0 0.25rem 1.2rem;
  position: relative;
}
.job-body-inner ul li::before {
  content: ''; position: absolute; left: 0; top: 0.65rem;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--cardinal-light);
}
.btn-apply {
  display: inline-block; margin-top: 1.25rem;
  background: var(--gradient-accent);
  color: var(--white);
  padding: 0.65rem 1.6rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; border: none;
  transition: all var(--transition);
  box-shadow: 0 4px 15px rgba(var(--cardinal-rgb), 0.3);
}
.btn-apply:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(var(--cardinal-rgb), 0.45);
}

/* ── CTA SECTION ────────────────────────────────────────── */
.cta-section { padding: 5rem 3.5rem; }
.cta-card {
  background: var(--gradient-accent);
  border-radius: var(--radius-lg);
  padding: 4.5rem;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-card::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(var(--white-rgb), 0.08) 0%, transparent 60%);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-content h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.6rem; font-weight: 700;
  line-height: 1.2; margin-bottom: 2rem;
}
.cta-buttons { display: flex; gap: 1rem; flex-wrap: wrap; }

/* ── CONTACT FORM ───────────────────────────────────────── */
#contact-form-section {
  padding-top: 6rem; padding-bottom: 7rem;
}
.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem; align-items: start;
}
.contact-info h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 2.4rem; font-weight: 700;
  margin-bottom: 1rem; line-height: 1.2;
}
.contact-info > p { color: var(--mist); font-size: 1.05rem; margin-bottom: 2rem; }
.contact-detail { margin-bottom: 1.5rem; }
.contact-detail h4 {
  font-size: 0.78rem; font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 0.4rem;
}
.contact-detail p, .contact-detail a {
  color: var(--mist); font-size: 0.95rem;
  text-decoration: none; display: block; line-height: 1.6;
}
.contact-detail a:hover { color: var(--white); }

.contact-form {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
}
.form-group { margin-bottom: 1.25rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--cloud); margin-bottom: 0.4rem;
  letter-spacing: 0.3px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  background: rgba(var(--deep-navy-rgb), 0.6);
  border: 1px solid rgba(var(--mist-rgb), 0.15);
  border-radius: var(--radius-sm);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-family: inherit;
  font-size: 0.92rem;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--cardinal);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-group select option { background: var(--navy); }

/* honeypot */
.hp-field { position: absolute; left: -9999px; opacity: 0; height: 0; width: 0; overflow: hidden; }

.form-status {
  margin-top: 0.75rem;
  font-size: 0.88rem;
  min-height: 1.5em;
}
.form-status.success { color: var(--success); }
.form-status.error { color: var(--cardinal-light); }

/* ── BUTTONS ────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-pill);
  font-size: 0.92rem; font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer; border: none;
}
.btn-primary {
  background: var(--gradient-accent);
  color: var(--white);
  box-shadow: 0 4px 18px rgba(var(--cardinal-rgb), 0.3);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(var(--cardinal-rgb), 0.45);
}
.btn-white { background: var(--white); color: var(--cardinal); }
.btn-white:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.2); }
.btn-outline {
  background: transparent; color: var(--white);
  border: 2px solid rgba(var(--white-rgb), 0.45);
}
.btn-outline:hover { background: rgba(var(--white-rgb), 0.1); border-color: var(--white); }
.btn-ghost {
  background: rgba(var(--cardinal-rgb), 0.1);
  color: var(--cardinal-light);
  border: 1px solid rgba(var(--cardinal-rgb), 0.3);
}
.btn-ghost:hover {
  background: rgba(var(--cardinal-rgb), 0.2);
  color: var(--white);
}

/* ── FOOTER ─────────────────────────────────────────────── */
.site-footer {
  padding: 2rem 3.5rem 2rem;
  background: rgba(var(--deep-navy-rgb), 0.6);
  border-top: 1px solid rgba(var(--mist-rgb), 0.08);
}
.footer-grid {
  max-width: 1400px; margin: 0 auto;
  display: grid;
  grid-template-columns: 4fr 1fr 1fr 1fr;
  gap: 3.5rem;
}
.footer-brand img { height: 100px; margin-bottom: 1rem; }
.footer-brand p { color: var(--mist); font-size: 0.88rem; max-width: 280px; }
.footer-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem; font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase; letter-spacing: 1.5px;
  margin-bottom: 1.15rem;
}
.footer-col p,
.footer-col a {
  color: var(--mist); font-size: 0.92rem;
  line-height: 1.8; text-decoration: none; display: block;
  transition: color var(--transition);
}
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  max-width: 1400px; margin: 3.5rem auto 0;
  padding-top: 1.75rem;
  border-top: 1px solid rgba(var(--mist-rgb), 0.08);
  display: flex; justify-content: space-between; align-items: center;
  color: var(--mist); font-size: 0.85rem;
  flex-wrap: wrap; gap: 1rem;
}
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { color: var(--mist); text-decoration: none; font-size: 0.85rem; }
.footer-legal a:hover { color: var(--white); }

/* ── IMPRESSUM MODAL ────────────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(var(--deep-navy-rgb), 0.85);
  backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex; align-items: center; justify-content: center;
  padding: 2rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: auto; }

.modal {
  background: var(--navy);
  border: 1px solid rgba(var(--mist-rgb), 0.15);
  border-radius: var(--radius-lg);
  max-width: 700px; width: 100%;
  max-height: 85vh; overflow-y: auto;
  padding: 3rem;
  transform: translateY(20px);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: translateY(0); }

.modal-close {
  float: right;
  background: rgba(var(--mist-rgb), 0.1);
  border: none; color: var(--mist);
  width: 36px; height: 36px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.modal-close:hover { background: rgba(var(--cardinal-rgb), 0.2); color: var(--white); }

.modal h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem; font-weight: 700;
  margin-bottom: 1.5rem;
}
.modal h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem; font-weight: 600;
  margin-top: 1.5rem; margin-bottom: 0.5rem;
  color: var(--cardinal-light);
}
.modal p {
  color: var(--mist); font-size: 0.92rem; line-height: 1.75;
}

/* ── APPLICATION MODAL ──────────────────────────────────── */
.application-form .form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */

/* Tablet */
@media (max-width: 1024px) {
  section, .cta-section { padding-left: 2rem; padding-right: 2rem; }

  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-text .tagline { margin-left: auto; margin-right: auto; }
  .hero-cta { justify-content: center; }
  .hero-image { display: none; }

  .panel-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .products-showcase { grid-template-columns: 1fr; text-align: center; }
  .products-specs { justify-content: center; }
  .cta-card { grid-template-columns: 1fr; padding: 3rem; }
  .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
  .footer-brand img { height: 90px; }
}

/* Phone */
@media (max-width: 768px) {
  .site-header { padding: 0.5rem 1rem; }
  .logo img { height: 50px; }

  section { padding-left: 1.25rem; padding-right: 1.25rem; }
  .cta-section { padding: 3rem 1.25rem; }

  .section-header {
    flex-direction: column; align-items: flex-start; gap: 0.75rem;
  }
  .section-header h2 { font-size: 2rem; }
  .section-header p { text-align: left; }

  .hero-text h1 { font-size: 2.2rem; }
  .about-intro h2 { font-size: 2rem; }

  .team-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .news-grid { grid-template-columns: 1fr; }
  .products-specs { flex-direction: column; align-items: center; gap: 0.75rem; }
  .cta-card { padding: 2.25rem; }
  .cta-content h2 { font-size: 1.8rem; }
  .cta-buttons { flex-direction: column; }

  .contact-layout { gap: 2rem; }
  .contact-form { padding: 1.75rem; }
  .application-form .form-row { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .site-footer { padding: 3rem 1.25rem 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .job-header { padding: 1.25rem; flex-wrap: wrap; gap: 0.75rem; }
  .job-body-inner { padding: 0 1.25rem 1.5rem; }
  .job-meta { flex-wrap: wrap; gap: 0.75rem; }

  .modal { padding: 2rem; }
}

@media (max-width: 480px) {
  .team-grid { grid-template-columns: 1fr; max-width: 320px; margin: 0 auto; }
}

/* ============================================================
   CONTACT PAGE STYLES (contact.html)
   ============================================================ */

/* ── CONTACT HERO ──────────────────────────────────────── */
.contact-hero {
  padding-top: 10rem;
  padding-bottom: 5rem;
}
.contact-hero-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 4rem;
  align-items: start;
}
.contact-hero-text h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.1;
}
.contact-hero-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding-top: 0.5rem;
}
.contact-hero-col h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.75rem;
}
.contact-hero-col p {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-link {
  color: var(--cardinal-light);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: color var(--transition);
}
.contact-link:hover { color: var(--white); }
.contact-link .arrow {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform var(--transition);
}
.contact-link:hover .arrow { transform: translate(2px, -2px); }

/* ── CONTACT FORM (on contact page — wider, centered) ──── */
.contact-form-wrapper {
  max-width: 800px;
}
.contact-form-wrapper .contact-form {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
}
.contact-form-wrapper .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── CAREERS SECTION (contact page) ────────────────────── */
#careers {
  padding-top: 6rem;
  padding-bottom: 7rem;
  border-top: 1px solid rgba(var(--mist-rgb), 0.08);
}
.careers-header {
  margin-bottom: 2.5rem;
}
.careers-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Empty state — simple and clean like the reference */
.careers-empty p {
  color: var(--mist);
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 500px;
}
.careers-empty p + p {
  margin-top: 0.75rem;
}

/* ── CONTACT PAGE RESPONSIVE ───────────────────────────── */
@media (max-width: 1024px) {
  .contact-hero-layout {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 768px) {
  .contact-hero { padding-top: 8rem; padding-bottom: 3rem; }
  .contact-hero-details {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .contact-form-wrapper .form-row {
    grid-template-columns: 1fr;
  }
  .contact-form-wrapper .contact-form {
    padding: 1.75rem;
  }
}

/* ============================================================
   LEGAL PAGES (impressum.html, privacy.html)
   ============================================================ */

.legal-page {
  padding-top: 10rem;
  padding-bottom: 6rem;
  position: relative;
}

/* ── HERO BLOCK ────────────────────────────────────────── */
.legal-hero {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding-bottom: 3rem;
  margin-bottom: 3rem;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.12);
}

.legal-crumb {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mist);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  width: fit-content;
  transition: color var(--transition);
}
.legal-crumb::before {
  content: '←';
  display: inline-block;
  transition: transform var(--transition);
}
.legal-crumb:hover {
  color: var(--cardinal-light);
}
.legal-crumb:hover::before {
  transform: translateX(-3px);
}

.legal-label {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
}

.legal-hero h1 {
  font-family: 'Outfit', sans-serif;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-top: 0.25rem;
  letter-spacing: -0.01em;
}

.legal-hero h1 .accent {
  background: var(--gradient-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.legal-meta {
  display: flex;
  gap: 2rem;
  flex-wrap: wrap;
  color: var(--mist);
  font-size: 0.88rem;
  margin-top: 0.75rem;
}
.legal-meta > span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.legal-meta strong {
  color: var(--cloud);
  font-weight: 600;
}

/* ── LAYOUT: sidebar TOC + body ────────────────────────── */
.legal-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 5rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 110px;
  border-left: 1px solid rgba(var(--mist-rgb), 0.15);
  padding-left: 1.5rem;
}
.legal-toc-label {
  font-family: 'Outfit', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 1rem;
}
.legal-toc ol {
  list-style: none;
  counter-reset: toc-counter;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.legal-toc ol li {
  counter-increment: toc-counter;
}
.legal-toc ol li a {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  color: var(--mist);
  text-decoration: none;
  font-size: 0.9rem;
  line-height: 1.4;
  transition: color var(--transition);
  padding: 0.15rem 0;
}
.legal-toc ol li a::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--steel);
  letter-spacing: 0.5px;
  flex-shrink: 0;
  transition: color var(--transition);
}
.legal-toc ol li a:hover {
  color: var(--white);
}
.legal-toc ol li a:hover::before {
  color: var(--cardinal-light);
}

/* ── BODY CONTENT ──────────────────────────────────────── */
.legal-body {
  max-width: 720px;
  min-width: 0;
}

/* Section card */
.legal-section {
  padding: 2.5rem 0 2rem;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.08);
  scroll-margin-top: 110px;
}
.legal-section:first-child {
  padding-top: 0;
}
.legal-section:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.legal-section-head {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.legal-section-num {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  letter-spacing: 2px;
  flex-shrink: 0;
  width: 40px;
}
.legal-section h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.3;
  letter-spacing: -0.005em;
}

.legal-section p {
  color: var(--cloud);
  font-size: 1rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.legal-section p:last-child {
  margin-bottom: 0;
}
.legal-section p a {
  color: var(--cardinal-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--cardinal-light-rgb), 0.3);
  transition: border-color var(--transition), color var(--transition);
}
.legal-section p a:hover {
  color: var(--white);
  border-color: var(--cardinal-light);
}

/* Styled bullet lists */
.legal-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 0.5rem 0 1rem;
}
.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--cloud);
  line-height: 1.7;
  font-size: 0.98rem;
}
.legal-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.7rem;
  width: 6px;
  height: 6px;
  background: var(--cardinal-light);
  border-radius: 50%;
}

/* Data sheet — key/value pairs for Impressum */
.legal-datasheet {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 0.75rem 2rem;
  margin: 0.25rem 0 0.5rem;
}
.legal-datasheet dt {
  font-family: 'Outfit', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--mist);
  text-transform: uppercase;
  letter-spacing: 1px;
  padding-top: 0.1rem;
}
.legal-datasheet dd {
  color: var(--cloud);
  font-size: 1rem;
  line-height: 1.6;
}
.legal-datasheet dd.mono {
  font-family: 'SF Mono', 'Monaco', 'Consolas', monospace;
  font-size: 0.92rem;
  color: var(--white);
  letter-spacing: 0.5px;
}
.legal-datasheet dd a {
  color: var(--cardinal-light);
  text-decoration: none;
  border-bottom: 1px solid rgba(var(--cardinal-light-rgb), 0.3);
}
.legal-datasheet dd a:hover {
  color: var(--white);
  border-color: var(--cardinal-light);
}

/* Pretty callout / highlighted info block */
.legal-callout {
  background: var(--gradient-card);
  border: 1px solid rgba(var(--mist-rgb), 0.1);
  border-left: 3px solid var(--cardinal);
  border-radius: var(--radius-md);
  padding: 1.5rem 1.75rem;
  margin: 1.5rem 0;
}
.legal-callout p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--cloud);
}
.legal-callout p + p {
  margin-top: 0.5rem;
}
.legal-callout .callout-label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.5rem;
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .legal-toc {
    position: static;
    border-left: none;
    border-top: 1px solid rgba(var(--mist-rgb), 0.15);
    border-bottom: 1px solid rgba(var(--mist-rgb), 0.15);
    padding: 1.5rem 0;
  }
  .legal-toc ol {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .legal-page {
    padding-top: 7rem;
    padding-bottom: 4rem;
  }
  .legal-hero {
    padding-bottom: 2rem;
    margin-bottom: 2rem;
  }
  .legal-datasheet {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    margin-bottom: 1.25rem;
  }
  .legal-datasheet dt {
    font-size: 0.72rem;
  }
  .legal-datasheet dd + dt {
    margin-top: 0.75rem;
  }
  .legal-section-head {
    gap: 0.85rem;
    flex-wrap: wrap;
  }
  .legal-section-num {
    width: auto;
  }
  .legal-section h2 {
    font-size: 1.3rem;
  }
  .legal-toc ol {
    flex-direction: column;
    gap: 0.5rem;
  }
}
/* ============================================================
   CONTACT PAGE — refined layout
   ============================================================ */

/* Main side-by-side layout */
.contact-main {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 4rem;
  align-items: start;
  margin-bottom: 6rem;
}

/* Left info panel */
.contact-info-panel {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.contact-info-block h4 {
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 0.85rem;
}

.contact-info-block p {
  color: var(--cloud);
  font-size: 1rem;
  line-height: 1.65;
  margin: 0;
}

.contact-info-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  color: var(--white);
  text-decoration: none;
  font-size: 1.1rem;
  font-weight: 500;
  border-bottom: 1px solid rgba(var(--cardinal-light-rgb), 0.4);
  padding-bottom: 2px;
  transition: all var(--transition);
}
.contact-info-link:hover {
  color: var(--cardinal-light);
  border-color: var(--cardinal-light);
}
.contact-info-link .arrow {
  font-size: 0.85em;
  transition: transform var(--transition);
  display: inline-block;
}
.contact-info-link:hover .arrow {
  transform: translate(3px, -3px);
}

.contact-info-note {
  padding-top: 1.5rem;
  border-top: 1px solid rgba(var(--mist-rgb), 0.12);
}
.contact-info-note p {
  font-size: 0.9rem;
  color: var(--mist);
  line-height: 1.75;
}

/* Right: the form itself — stripped of the "wrapper" card look,
   letting it breathe on the dark bg like legal content */
.contact-page .contact-form {
  background: var(--gradient-card);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  border: 1px solid rgba(var(--mist-rgb), 0.1);
}
.contact-page .contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ── CUSTOM CHECKBOX (newsletter opt-in) ─────────────── */
.form-checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  cursor: pointer;
  padding: 1rem 1.1rem;
  margin-top: 1.25rem;
  background: rgba(var(--deep-navy-rgb), 0.4);
  border: 1px solid rgba(var(--mist-rgb), 0.15);
  border-radius: var(--radius-sm);
  transition: all var(--transition);
}
.form-checkbox:hover {
  border-color: rgba(var(--cardinal-rgb), 0.35);
  background: rgba(var(--deep-navy-rgb), 0.6);
}

.form-checkbox input[type="checkbox"] {
  /* Visually hide the native checkbox but keep it accessible */
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.form-checkbox-box {
  display: inline-block;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 1.5px solid var(--mist);
  border-radius: 5px;
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: all var(--transition);
}

.form-checkbox-box::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 1px;
  width: 6px;
  height: 11px;
  border: solid var(--white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform var(--transition);
}

.form-checkbox input[type="checkbox"]:checked + .form-checkbox-box {
  background: var(--gradient-accent);
  border-color: var(--cardinal);
}
.form-checkbox input[type="checkbox"]:checked + .form-checkbox-box::after {
  transform: rotate(45deg) scale(1);
}
.form-checkbox input[type="checkbox"]:focus-visible + .form-checkbox-box {
  outline: 2px solid var(--cardinal-light);
  outline-offset: 2px;
}

.form-checkbox-label {
  color: var(--cloud);
  font-size: 0.88rem;
  line-height: 1.6;
}

/* ── CAREERS SECTION ON CONTACT PAGE ─────────────────── */
.careers-section {
  padding-top: 3rem;
  border-top: 1px solid rgba(var(--mist-rgb), 0.12);
}

/* ── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 1024px) {
  .contact-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .contact-info-panel {
    position: static;
  }
}

@media (max-width: 768px) {
  .contact-page .contact-form {
    padding: 1.5rem;
  }
  .contact-page .contact-form .form-row {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   FOOTER NEWSLETTER BAR
   ============================================================ */
.footer-newsletter {
  padding: 2.5rem 0;
  border-bottom: 1px solid rgba(var(--mist-rgb), 0.1);
  margin-bottom: 3rem;
}

.footer-newsletter-inner {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.footer-newsletter-label {
  display: inline-block;
  font-family: 'Outfit', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--cardinal-light);
  text-transform: uppercase;
  letter-spacing: 2.5px;
  margin-bottom: 0.65rem;
}

.footer-newsletter-text h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.footer-newsletter-text p {
  color: var(--mist);
  font-size: 0.95rem;
  line-height: 1.6;
  max-width: 440px;
}

.footer-newsletter-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  position: relative;
}

.footer-newsletter-form input[type="email"] {
  background: rgba(var(--deep-navy-rgb), 0.7);
  border: 1px solid rgba(var(--mist-rgb), 0.2);
  border-radius: var(--radius-pill);
  color: var(--white);
  padding: 0.95rem 1.4rem;
  font-family: inherit;
  font-size: 0.95rem;
  outline: none;
  transition: border-color var(--transition);
  width: 100%;
}
.footer-newsletter-form input[type="email"]:focus {
  border-color: var(--cardinal);
}
.footer-newsletter-form input[type="email"]::placeholder {
  color: var(--mist);
}

.footer-newsletter-form .btn {
  padding: 0.85rem 2rem;
  white-space: nowrap;
}

.footer-newsletter-form .form-status {
  grid-column: 1 / -1;
  margin-top: 0.5rem;
  min-height: 0;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .footer-newsletter-inner {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 600px) {
  .footer-newsletter {
    padding: 2.5rem 1.25rem;
    }
  .footer-newsletter-form {
    grid-template-columns: 1fr;
    gap: 0.75rem;
    }
  .footer-newsletter-form .btn {
    width: 100%;
    }
  }
/* ── NEWS CAROUSEL ─────────────────────────────────────── */
.news-wrapper {
  position: relative;
}

.news-grid {
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
  scroll-snap-type: x mandatory;
}
.news-grid::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.news-card {
  scroll-snap-align: start;
  width: calc((100% - 3rem) / 3);
  flex-shrink: 0;
}

.news-arrows {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
  justify-content: center;
}

.news-arrow {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(var(--cardinal-rgb), 0.12);
  border: 1px solid rgba(var(--cardinal-rgb), 0.25);
  color: var(--cardinal-light);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}
.news-arrow:hover {
  background: var(--cardinal);
  color: var(--white);
  border-color: var(--cardinal);
}
.news-arrow:disabled {
  opacity: 0.3;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 1024px) {
  .news-card {
    min-width: calc(50% - 0.75rem);
  }
}

@media (max-width: 768px) {
  .news-card {
    min-width: 100%;
  }
}
/* ============================================================
   FUNDING STRIP — standalone section above footer
   ============================================================ */
.funding-strip {
  background: var(--warm-cream);
  padding: 1.5rem 3.5rem;
}

.funding-strip-inner {
  max-width: 1400px;
  margin: 0 auto;
  text-align: center;
}

.funding-strip-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--warm-gray);
  /* text-transform: uppercase; */
  letter-spacing: 1.8px;
  line-height: 1.6;
  margin: 0 auto 1.75rem;
  max-width: 700px;
}

.funding-strip-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
  flex-wrap: wrap;
}

.funding-strip-logos img {
  height: 48px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}

/* The AWS logo is wider/taller proportionally */
.funding-strip-logos img:first-child {
  height: 54px;
}

@media (max-width: 768px) {
  .funding-strip {
    padding: 2rem 1.5rem;
  }
  .funding-strip-logos {
    gap: 2rem;
  }
  .funding-strip-logos img {
    height: 38px;
  }
  .funding-strip-logos img:first-child {
    height: 44px;
  }
  .funding-strip-text {
    font-size: 0.7rem;
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .funding-strip-logos {
    flex-direction: column;
    gap: 1.5rem;
  }
}

/* ============================================================
   FOOTER — FUNDING (inside footer, below newsletter)
   ============================================================ */
.footer-funding {
  max-width: 1400px;
  margin: 0 auto 2.5rem;
  padding: 2rem 2.5rem;
  background: rgba(var(--white-rgb), 0.03);
  border: 1px solid rgba(var(--mist-rgb), 0.08);
  border-radius: var(--radius-lg);
  text-align: center;
}
 
.footer-funding-text {
  font-family: 'Outfit', sans-serif;
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--mist);
  letter-spacing: 1px;
  line-height: 1.6;
  margin: 0 auto 1.5rem;
  max-width: 600px;
}
 
.footer-funding-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
 
.footer-funding-logos img {
  height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) invert(0.75);
  opacity: 0.65;
  transition: opacity var(--transition);
}
 
.footer-funding-logos img:hover {
  opacity: 1;
}
 
/* AWS logo is wider */
.footer-funding-logos img:first-child {
  height: 46px;
}
 
@media (max-width: 900px) {
  .footer-funding {
    padding: 1.75rem 2rem;
  }
  .footer-funding-logos {
    gap: 2rem;
  }
  .footer-funding-logos img {
    height: 34px;
  }
  .footer-funding-logos img:first-child {
    height: 40px;
  }
}
 
@media (max-width: 600px) {
  .footer-funding {
    padding: 1.5rem;
    margin-bottom: 2rem;
  }
  .footer-funding-logos {
    gap: 1.5rem;
  }
  .footer-funding-logos img {
    height: 28px;
  }
  .footer-funding-logos img:first-child {
    height: 32px;
  }
  .footer-funding-text {
    font-size: 0.7rem;
    margin-bottom: 1rem;
  }
}