/* =========================================================
   CMPS - 2026 Light Theme
   Custom CSS, mobile-first, no framework.
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Color */
  --bg: #ffffff;
  --surface: #f8fafc;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --border-black: #000000;

  --text: #0f172a;
  --text-muted: #475569;
  --text-soft: #64748b;

  --primary: #1e3a8a;
  --primary-700: #1d3273;
  --primary-50: #eef2ff;
  --accent: #0ea5e9;
  --accent-50: #e0f2fe;
  --brand-red: #ba2708;

  --success: #16a34a;
  --danger: #dc2626;

  /* Type */
  --font-sans: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: 24px;
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;

  /* Shadow */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px rgba(15, 23, 42, 0.12);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --dur: 250ms;

  /* Careers apply-guide highlight */
  --apply-highlight-border: var(--primary);
  --apply-highlight-ring: var(--primary-50);
  --apply-highlight-glow: rgba(30, 58, 138, 0.28);

  /* Header height */
  --nav-h: 72px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, video, svg { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--accent); }
button { font: inherit; cursor: pointer; }
ul { padding-left: 18px; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-display);
  color: var(--text);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}
h1 { font-size: clamp(2.25rem, 4.5vw, 3.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
p  { margin: 0 0 16px; color: var(--text-muted); }

/* ---------- Layout ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section {
  /* padding: clamp(56px, 8vw, 96px) 0; */
  padding: clamp(25px, 5vw, 25px) 0;
}
.section--surface { background: var(--surface); }
.section--gradient {
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(14, 165, 233, .08), transparent 60%),
    radial-gradient(800px 400px at -10% 20%, rgba(30, 58, 138, .06), transparent 60%),
    var(--bg);
}

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--primary);
  background: var(--primary-50);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}
.section__head p { font-size: 1.0625rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  border: 1px solid transparent;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--brand-red);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-black);
}
.btn--ghost:hover {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}
.btn--accent {
  background: var(--accent);
  color: #fff;
}
.btn--accent:hover { background: #0284c7; color: #fff; }
.btn--lg { padding: 14px 28px; font-size: 1rem; }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-sm);
  background: rgba(255, 255, 255, 0.95);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.brand img,
.footer-brand img,
.logo-switch__light,
.logo-switch__dark {
  height: 70px;
  width: 200px;
}
.logo-switch {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}
.logo-switch__dark {
  display: none;
}
[data-theme="dark"] .logo-switch__light {
  display: none;
}
[data-theme="dark"] .logo-switch__dark {
  display: block;
}
/* Footer is always on a dark background */
.footer-brand .logo-switch__light {
  display: none;
  translate: -13px;
}
.footer-brand .logo-switch__dark {
  display: block;
  translate: -13px;
}
.nav__links {
  display: none;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav__links li { list-style: none; }
.nav__links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
}
.nav__links a:hover { color: var(--text); background: var(--surface-2); }
.nav__links a.is-active { color: var(--primary); background: var(--primary-50); }

.nav__cta {
  display: none;
  align-items: center;
  gap: 12px;
}

.nav__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
}
.nav__toggle:hover { background: var(--surface); }
.nav__toggle .bar {
  width: 18px; height: 2px; background: currentColor;
  position: relative;
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.nav__toggle .bar::before,
.nav__toggle .bar::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor;
  transition: transform var(--dur) var(--ease);
}
.nav__toggle .bar::before { top: -6px; }
.nav__toggle .bar::after  { top:  6px; }
.nav__toggle[aria-expanded="true"] .bar { background: transparent; }
.nav__toggle[aria-expanded="true"] .bar::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .bar::after  { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.nav__drawer {
  position: fixed;
  /* inset: var(--nav-h) 0 0 0; */
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 20px var(--gutter) 32px;
  transform: translateY(-8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
  z-index: 49;
  overflow-y: auto;
  width: 100%;
  box-shadow: 0px 11px 20px black;
}
.nav__drawer.is-open {
  opacity: 1; transform: translateY(0); pointer-events: auto;
}
.nav__drawer ul { list-style: none; margin: 0; padding: 0; }
.nav__drawer li + li { margin-top: 4px; }
.nav__drawer a {
  display: block;
  padding: 14px 12px;
  border-radius: 10px;
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid transparent;
}
.nav__drawer a:hover, .nav__drawer a.is-active {
  background: var(--surface);
  border-color: var(--border);
  color: var(--primary);
}
.nav__drawer .btn { width: 100%; margin-top: 16px; }

@media (min-width: 960px) {
  .nav__links { display: inline-flex; }
  .nav__cta { display: inline-flex; }
  .nav__toggle { display: none; }
  .nav__drawer { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  /* min-height: clamp(560px, 80vh, 760px); */
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  background: var(--bg);
}
.hero__media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}
.hero__media video,
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(1) contrast(1) brightness(0.75);
}
/*
 * Directional overlay:
 *  - Opaque on the left so headline + lede stay perfectly legible
 *  - Fades to mostly transparent on the right so the video is clearly visible
 *  - Soft bottom blend prevents a hard seam with the next section
 */
.hero__overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(100deg,
      rgba(255,255,255,.82) 0%,
      rgba(255,255,255,.65) 30%,
      rgba(255,255,255,.28) 60%,
      rgba(255,255,255,.10) 100%),
    linear-gradient(180deg,
      rgba(255,255,255,0) 65%,
      rgba(255,255,255,.55) 100%),
    radial-gradient(700px 400px at 90% 15%, rgba(14, 165, 233, .06), transparent 60%);
}
/* On narrow screens the headline spans the full width, so use a softer vertical wash instead. */
@media (max-width: 720px) {
  .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(255,255,255,.55) 0%,
        rgba(255,255,255,.72) 55%,
        rgba(255,255,255,.90) 100%);
  }
}
.hero__inner {
  padding: clamp(56px, 10vh, 120px) 0 clamp(40px, 8vh, 80px);
  max-width: 820px;
}
.hero h1 { margin-bottom: 20px; }
.hero h1 .accent {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__lede {
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
  color: var(--text-muted);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero__actions {
  display: flex; flex-wrap: wrap; gap: 12px;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  position: relative;
  /* padding: clamp(96px, 16vh, 160px) 0 clamp(48px, 8vh, 80px); */
  padding: clamp(25px, 5vh, 25px) 0;
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(14, 165, 233, .12), transparent 60%),
    radial-gradient(700px 360px at -10% 30%, rgba(30, 58, 138, .08), transparent 60%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.page-hero__inner { max-width: 760px; }
.page-hero p { font-size: 1.0625rem; }

/* Breadcrumb */
.crumbs {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; color: var(--text-soft);
  margin-bottom: 14px;
}
.crumbs a { color: var(--text-muted); }
.crumbs span { color: var(--border-strong); }

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.stat {
  background: #fff;
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: var(--radius);
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  color: var(--primary);
  letter-spacing: -0.02em;
}
.stat__lbl {
  font-size: 13px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-top: 4px;
}
@media (min-width: 720px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Cards ---------- */
.grid {
  display: grid;
  gap: 24px;
}
.grid--2 { grid-template-columns: 1fr; }
.grid--3 { grid-template-columns: 1fr; }
.grid--4 { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-50);
  color: var(--primary);
  margin-bottom: 18px;
}
.card__icon svg { width: 24px; height: 24px; }
.card h3 { margin: 0 0 10px; font-size: 1.1875rem; }
.card p  { margin: 0; font-size: 0.9375rem; }
.card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--primary);
}
.card__link:hover { color: var(--accent); }
.card__link .arrow { transition: transform var(--dur) var(--ease); }
.card__link:hover .arrow { transform: translateX(3px); }

/* Service / detail block (alternating) */
.detail {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}
.detail:last-child { border-bottom: 0; }
.detail__media {
  background: linear-gradient(135deg, var(--primary-50), var(--accent-50));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  min-height: 260px;
  color: var(--primary);
}
.detail__media svg { width: clamp(120px, 30vw, 200px); height: auto; }
.detail__body h3 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); }
.detail__body p { font-size: 1.0625rem; }
@media (min-width: 900px) {
  .detail { grid-template-columns: 1fr 1fr; gap: 56px; padding: 56px 0; }
  .detail--reverse .detail__media { order: 2; }
}

/* Product card (large) */
.product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.product:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.product__art {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  padding: 40px;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  line-height: 1.05;
  min-height: 220px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.02em;
  font-size: clamp(2.5rem, 6vw, 4rem);
}
.product__body { padding: 32px; }
.product__tag {
  display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 8px;
}
.product__features {
  list-style: none; padding: 0; margin: 16px 0 0;
}
.product__features li {
  position: relative; padding-left: 26px; margin-bottom: 8px; font-size: 0.9375rem; color: var(--text-muted);
}
.product__features li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 16px; height: 16px;
  background: var(--accent-50); border-radius: 50%;
}
.product__features li::after {
  content: ""; position: absolute; left: 4px; top: 12px; width: 8px; height: 4px;
  border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}
@media (min-width: 800px) {
  .product { grid-template-columns: 320px 1fr; }
  .product__body { padding: 40px; }
}

/* Career role card */
.role {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.role:hover { box-shadow: var(--shadow-sm); border-color: var(--border-strong); }
.role__head {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-bottom: 12px;
}
.role h3 { margin: 0; }
.role__meta {
  font-size: 13px; color: var(--text-soft);
  display: inline-flex; gap: 14px; flex-wrap: wrap;
}
.role__list {
  margin: 12px 0 16px; padding-left: 18px;
}
.role__list li { color: var(--text-muted); margin-bottom: 4px; font-size: 0.9375rem; }

#how-to-apply { scroll-margin-top: 88px; }

@keyframes how-to-apply-blink {
  0%, 100% {
    border-color: var(--border);
    box-shadow: none;
  }
  50% {
    border-color: var(--apply-highlight-border);
    box-shadow: 0 0 0 3px var(--apply-highlight-ring), 0 4px 16px var(--apply-highlight-glow);
  }
}

#how-to-apply.is-highlighted {
  animation: how-to-apply-blink 1.25s ease-in-out 4;
}

@keyframes apply-email-blink {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

#how-to-apply.is-highlighted .apply-email {
  animation: apply-email-blink 1.25s ease-in-out 4;
}

@media (prefers-reduced-motion: reduce) {
  #how-to-apply.is-highlighted {
    animation: none;
    border-color: var(--apply-highlight-border);
    box-shadow: 0 0 0 3px var(--apply-highlight-ring);
  }

  #how-to-apply.is-highlighted .apply-email {
    animation: none;
    opacity: 1;
  }
}

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--primary), #2447aa 60%, var(--accent));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(40px, 6vw, 64px);
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: center;
}
.cta-band h2, .cta-band p { color: #fff; margin: 0; }
.cta-band p { color: rgba(255,255,255,.85); margin-top: 8px; }
.cta-band .btn--primary { background: #fff; color: var(--primary); }
.cta-band .btn--primary:hover { background: #fff; color: var(--brand-red); }
.cta-band .btn--ghost { color: #fff; border-color: rgba(255,255,255,.5); }
.cta-band .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; border-color: #fff; }

.cta-band__actions {
  display: flex;
  gap: 12px;
}

@media (max-width: 720px) {
  .cta-band__actions {
    flex-wrap: wrap;
  }
}

@media (min-width: 900px) {
  .cta-band { grid-template-columns: 1.5fr 1fr; }
  .cta-band__actions { justify-self: end; }
}

/* Why-us list */
.why-list { display: grid; gap: 16px; grid-template-columns: 1fr; }
.why-list .card { padding: 24px; }
@media (min-width: 720px) { .why-list { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Technology tabs ---------- */
.tech-tabs {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(14, 165, 233, .08), transparent 60%),
    #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.tech-tabs__nav {
  display: flex;
  gap: 8px;
  padding: 12px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.tech-tabs__button {
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  padding: 10px 16px;
  font-size: 0.9375rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tech-tabs__button:hover {
  background: #fff;
  color: var(--text);
  border-color: var(--border);
}
.tech-tabs__button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .14);
}
.tech-tabs__button.is-active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: var(--shadow-xs);
}
.tech-tabs__panels {
  padding: clamp(24px, 5vw, 48px);
}
.tech-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
.tech-panel[hidden] { display: none; }
.tech-panel__content {
  max-width: 660px;
}
.tech-panel__content h3 {
  font-size: clamp(1.625rem, 3vw, 2.25rem);
  margin-bottom: 14px;
}
.tech-panel__content p {
  font-size: 1.0625rem;
}
.tech-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}
.tech-panel__cta {
  margin-top: 8px;
}
.tech-panel__visual {
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(300px 180px at 70% 20%, rgba(14, 165, 233, .14), transparent 60%),
    linear-gradient(135deg, var(--primary-50), #fff);
  color: var(--primary);
}
.tech-panel__visual svg {
  width: clamp(150px, 28vw, 240px);
  height: auto;
}

/* Elevated photo — use when replacing panel SVGs with JPEG/PNG */
.elevated-img {
  display: block;
  width: 100%;
  max-height: 320px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}

.tech-panel__visual:has(.elevated-img) {
  padding: 6px;
  min-height: auto;
  background: var(--surface);
}

.tech-panel__visual .elevated-img {
  border-radius: calc(var(--radius-lg) - 6px);
}

@media (min-width: 900px) {
  .tech-panel__visual .elevated-img {
    max-height: 320px;
  }
}

@media (min-width: 900px) {
  .tech-panel {
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 56px;
  }
  .tech-tabs__nav {
    justify-content: center;
    flex-wrap: wrap;
  }
}

/* ---------- Contact page ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: start;
}
@media (min-width: 960px) { .contact-grid { grid-template-columns: 1fr 1fr; gap: 48px; } }

.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.info-card h3 { margin-top: 0; }
.info-list { list-style: none; padding: 0; margin: 0; }
.info-list li {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 14px 0; border-top: 1px solid var(--border);
}
.info-list li:first-child { border-top: 0; padding-top: 0; }
.info-list .info-icon {
  flex: 0 0 36px; height: 36px; border-radius: 10px;
  background: var(--primary-50); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
}
.info-list .info-icon svg { width: 18px; height: 18px; }
.info-list strong { display: block; color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px; }
.info-list a { color: var(--text-muted); }
.info-list a:hover { color: var(--primary); }

.map-frame {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface);
}
.map-frame iframe { display: block; width: 100%; height: 320px; border: 0; }

/* ---------- Form ---------- */
.form {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
}
.field { margin-bottom: 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}
.input, .textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #fff;
  font: inherit;
  color: var(--text);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.input:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .12);
}
.textarea { resize: vertical; min-height: 120px; }
.field-error {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: var(--danger);
  min-height: 14px;
}
.form .btn { width: 100%; margin-top: 8px; }

.toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 60;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--success);
  padding: 14px 18px;
  border-radius: 10px;
  box-shadow: var(--shadow-lg);
  font-size: 0.9375rem;
  max-width: 360px;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.toast.is-show { opacity: 1; transform: translateY(0); pointer-events: auto; }
.toast.is-error { border-left-color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 64px 0 24px;
}
.site-footer h4 {
  color: #fff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin: 0 0 16px;
}
.site-footer a { color: #cbd5e1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; } }
.footer-brand img { height: 70px; }
.footer-brand p { color: #94a3b8; margin-top: 12px; max-width: 320px; font-size: 0.9375rem; }
.footer-list { list-style: none; padding: 0; margin: 0; }
.footer-list li { margin-bottom: 8px; font-size: 0.9375rem; }
.footer-contact { font-size: 0.9375rem; line-height: 1.7; color: #94a3b8; }
.footer-contact strong { display: block; color: #fff; margin-bottom: 6px; font-weight: 600; }

.socials { display: flex; gap: 8px; margin-top: 14px; }
.socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #cbd5e1;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.socials a:hover { background: var(--accent); color: #fff; transform: translateY(-2px); }
.socials svg { width: 16px; height: 16px; }

.footer-bottom {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding-top: 22px;
  font-size: 13px;
  color: #94a3b8;
}

/* ---------- Reveal-on-scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 600ms var(--ease), transform 600ms var(--ease);
  will-change: opacity, transform;
}
.reveal.is-in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- Utilities ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-8 { margin-top: 32px; }
.muted { color: var(--text-muted); }
.lead { font-size: 1.0625rem; color: var(--text-muted); }
.skip-link {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}
.skip-link:focus {
  left: 12px; top: 12px; width: auto; height: auto; padding: 8px 12px;
  background: var(--primary); color: #fff; border-radius: 8px; z-index: 100;
}

/* =========================================================
   Dark theme
   Activated by [data-theme="dark"] on <html>.
   Token overrides + targeted surface overrides for places
   that hard-code a white background in the base styles.
   ========================================================= */
[data-theme="dark"] {
  --bg: #0b1220;
  --surface: #111a2e;
  --surface-2: #1a2540;
  --border: #1f2a44;
  --border-strong: #2c3a5c;

  --text: #e6ecf5;
  --text-muted: #a3b0c7;
  --text-soft: #6f7c96;

  --primary: #8aa4ff;
  --primary-700: #6f8cff;
  --primary-50: rgba(138, 164, 255, 0.16);
  --accent: #38bdf8;
  --accent-50: rgba(56, 189, 248, 0.16);
  --brand-red: #ff6b48;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.55);

  --apply-highlight-border: var(--accent);
  --apply-highlight-ring: var(--accent-50);
  --apply-highlight-glow: rgba(56, 189, 248, 0.28);

  color-scheme: dark;
}

/* Surfaces hard-coded to #fff -> use --surface in dark */
[data-theme="dark"] .nav__toggle,
[data-theme="dark"] .nav__drawer,
[data-theme="dark"] .stat,
[data-theme="dark"] .card,
[data-theme="dark"] .product,
[data-theme="dark"] .role,
[data-theme="dark"] .info-card,
[data-theme="dark"] .form,
[data-theme="dark"] .input,
[data-theme="dark"] .textarea,
[data-theme="dark"] .toast {
  background: var(--surface);
  color: var(--text);
}

[data-theme="dark"] .tech-tabs {
  background:
    radial-gradient(700px 320px at 90% 0%, rgba(56, 189, 248, .10), transparent 60%),
    var(--surface);
}
[data-theme="dark"] .tech-tabs__button:hover {
  background: var(--surface-2);
  border-color: var(--border);
}
[data-theme="dark"] .tech-panel__visual {
  background:
    radial-gradient(300px 180px at 70% 20%, rgba(56, 189, 248, .14), transparent 60%),
    linear-gradient(135deg, var(--primary-50), var(--surface));
}
[data-theme="dark"] .tech-panel__visual:has(.elevated-img) {
  background: var(--surface);
}
[data-theme="dark"] .elevated-img {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

/* Sticky header */
[data-theme="dark"] .site-header {
  background: rgba(11, 18, 32, 0.78);
}
[data-theme="dark"] .site-header.is-scrolled {
  background: rgba(11, 18, 32, 0.92);
  border-bottom-color: var(--border);
}

/* Hero overlay - dark wash so the video stays visible against dark UI */
[data-theme="dark"] .hero__overlay {
  background:
    linear-gradient(100deg,
      rgba(8, 13, 25, .82) 0%,
      rgba(8, 13, 25, .65) 30%,
      rgba(8, 13, 25, .28) 60%,
      rgba(8, 13, 25, .10) 100%),
    linear-gradient(180deg,
      rgba(8, 13, 25, 0) 65%,
      rgba(8, 13, 25, .55) 100%),
    radial-gradient(700px 400px at 90% 15%, rgba(56, 189, 248, .08), transparent 60%);
}
@media (max-width: 720px) {
  [data-theme="dark"] .hero__overlay {
    background:
      linear-gradient(180deg,
        rgba(8, 13, 25, .55) 0%,
        rgba(8, 13, 25, .72) 55%,
        rgba(8, 13, 25, .90) 100%);
  }
}
[data-theme="dark"] .hero__bg {
  filter: saturate(1.05) contrast(1.05) brightness(0.7);
}

/* Page hero (inner pages) */
[data-theme="dark"] .page-hero {
  background:
    radial-gradient(900px 400px at 90% -10%, rgba(56, 189, 248, .14), transparent 60%),
    radial-gradient(700px 360px at -10% 30%, rgba(111, 140, 255, .12), transparent 60%),
    var(--surface);
}

/* CTA band — keep brand-blue gradient regardless of --primary lightening,
   and ensure the white pill keeps high-contrast dark text. */
[data-theme="dark"] .cta-band {
  background: linear-gradient(135deg, #1e3a8a, #2447aa 60%, #38bdf8);
}
[data-theme="dark"] .cta-band .btn--primary {
  background: #fff;
  color: #1e3a8a;
}
[data-theme="dark"] .cta-band .btn--primary:hover {
  background: #fff;
  color: var(--brand-red);
}

[data-theme="dark"] .btn--ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
[data-theme="dark"] .cta-band .btn--ghost:hover {
  background: rgba(255,255,255,.12);
  color: #fff;
  border-color: #fff;
}

/* Focus ring uses primary RGB - adjust for dark visibility */
[data-theme="dark"] .input:focus,
[data-theme="dark"] .textarea:focus,
[data-theme="dark"] .tech-tabs__button:focus-visible,
[data-theme="dark"] .theme-toggle:focus-visible {
  box-shadow: 0 0 0 4px rgba(138, 164, 255, .25);
}

/* Footer is already dark in light theme; nothing to do for dark mode */

/* ---------- Theme toggle button ---------- */
.nav__actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.theme-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}
.theme-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(30, 58, 138, .14);
}
.theme-toggle svg {
  width: 20px;
  height: 20px;
}
.theme-toggle__moon { display: none; }
[data-theme="dark"] .theme-toggle__sun { display: none; }
[data-theme="dark"] .theme-toggle__moon { display: inline-block; }