/* =========================================================
   Zenvoriq Software — site styles
   Plain CSS, no build step. Edit tokens below to re-theme.
   ========================================================= */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --bg-dark: #0b1220;
  --bg-dark-2: #111a2e;
  --text: #0f172a;
  --text-muted: #55627a;
  --text-on-dark: #e7ecf5;
  --text-on-dark-muted: #9aa8c2;
  --border: #e3e8f0;
  --border-dark: rgba(255, 255, 255, 0.09);
  --primary: #4f7cff;
  --primary-dark: #3b63d9;
  --accent: #22d3ee;
  --gradient: linear-gradient(120deg, #4f7cff 0%, #22d3ee 100%);
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, 0.18);
  --container: 1160px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }
.container.narrow { max-width: 780px; }

/* ---------- Typography helpers ---------- */
.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 1rem;
}
.section-dark .eyebrow { color: var(--accent); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.2rem; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-muted); max-width: 680px; }
.sub { color: var(--text-muted); max-width: 640px; margin-top: 1rem; font-size: 1.05rem; }
.section-dark .sub { color: var(--text-on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1.5px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 8px 20px -8px rgba(79, 124, 255, 0.7);
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-ghost { border-color: var(--border); color: var(--text); background: transparent; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.hero .btn-ghost { border-color: var(--border-dark); color: var(--text-on-dark); }
.hero .btn-ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn-sm { padding: 0.6rem 1.2rem; font-size: 0.875rem; }
.btn-block { width: 100%; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 18, 32, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-dark);
  color: var(--text-on-dark);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark { width: 40px; height: 40px; flex-shrink: 0; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 800; font-size: 1.25rem; letter-spacing: -0.03em; color: #fff; }
.brand-sub {
  margin-top: 0.22rem;
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
  padding-left: 0.1em;
}
.nav { display: flex; align-items: center; gap: 1.75rem; }
.nav a:not(.btn) { font-size: 0.93rem; font-weight: 500; color: var(--text-on-dark-muted); transition: color 0.15s; }
.nav a:not(.btn):hover { color: #fff; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: 8px;
}
.nav-toggle span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: transform 0.2s, opacity 0.2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  padding: clamp(5rem, 12vw, 9rem) 0 clamp(4rem, 8vw, 6rem);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 80% 10%, rgba(79, 124, 255, 0.35), transparent 70%),
    radial-gradient(40% 40% at 10% 90%, rgba(34, 211, 238, 0.22), transparent 70%),
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: auto, auto, 56px 56px, 56px 56px;
  mask-image: linear-gradient(to bottom, #000 60%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 60%, transparent);
}
.hero-inner { position: relative; }
.hero .eyebrow { color: var(--accent); }
.hero .lead { color: var(--text-on-dark-muted); margin-top: 1.5rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: 2.25rem; }

/* Hero two-column layout with photo */
/* headline is sized for the narrower hero column, not the full page width */
.hero-copy h1 { font-size: clamp(2.1rem, 3.05vw, 2.95rem); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero-media {
  position: relative;
  margin: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid var(--border-dark);
  box-shadow: 0 30px 60px -25px rgba(0, 0, 0, 0.8);
}
.hero-media img {
  width: 100%;
  height: clamp(340px, 46vw, 560px);
  object-fit: cover;
  /* nudge the photo toward the brand palette */
  filter: saturate(0.92) contrast(1.03);
}
/* blue wash so the photo sits in the navy hero rather than fighting it */
.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(34, 211, 238, 0.14) 0%, rgba(11, 18, 32, 0.12) 45%, rgba(79, 70, 229, 0.3) 100%);
  pointer-events: none;
}
.media-badge {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  right: 1rem;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border-radius: 14px;
  background: rgba(11, 18, 32, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--border-dark);
  font-size: 0.85rem;
}
.media-badge .dot {
  width: 9px; height: 9px; flex-shrink: 0;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 4px rgba(52, 211, 153, 0.18);
}
.media-badge strong { display: block; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.media-badge span:last-child { color: var(--text-on-dark); line-height: 1.3; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 4rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border-dark);
}
.stats li { display: flex; flex-direction: column; gap: 0.35rem; }
.stats strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.stats span { font-size: 0.9rem; color: var(--text-on-dark-muted); line-height: 1.4; }

/* ---------- Capability strip ---------- */
.strip { background: var(--bg-dark-2); border-top: 1px solid var(--border-dark); border-bottom: 1px solid var(--border-dark); }
.strip-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  padding: 1.1rem 0;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-on-dark-muted);
}

/* ---------- Sections ---------- */
.section { padding: clamp(4rem, 9vw, 7rem) 0; }
.section-alt { background: var(--bg-alt); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); }
.section-head { max-width: 760px; margin-bottom: 3.25rem; }

.grid { display: grid; gap: 1.5rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Service cards */
.card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.card h3 { margin: 1.25rem 0 0.6rem; }
.card p { color: var(--text-muted); font-size: 0.97rem; }
.card-icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(79,124,255,0.12), rgba(34,211,238,0.12));
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* How we work */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.team-panel {
  padding: 2.25rem;
  border-radius: var(--radius);
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  overflow: hidden;
}
.panel-photo {
  width: calc(100% + 4.5rem);
  margin: -2.25rem -2.25rem 1.75rem;
  height: 210px;
  object-fit: cover;
  filter: saturate(0.95);
}
.team-badge {
  display: inline-block;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  margin-bottom: 1.25rem;
}
.team-panel h3 { font-size: 1.5rem; margin-bottom: 0.75rem; }
.team-panel p { color: var(--text-on-dark-muted); }
.check-list { margin-top: 1.5rem; display: grid; gap: 0.6rem; }
.check-list li { position: relative; padding-left: 1.75rem; font-size: 0.97rem; }
.check-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.4em;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--gradient);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='8'/%3E%3C/svg%3E") center/contain no-repeat;
}
.check-list li::after {
  content: "";
  position: absolute; left: 4px; top: calc(0.4em + 4px);
  width: 8px; height: 5px;
  border-left: 2px solid #fff; border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.flow {
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px dashed var(--border-dark);
}
.flow-step {
  flex: 1;
  display: flex; flex-direction: column; justify-content: center;
  text-align: center;
  padding: 1rem 0.75rem;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
}
.flow-step span { font-weight: 700; }
.flow-step small { color: var(--text-on-dark-muted); font-size: 0.82rem; margin-top: 0.2rem; }
.flow-arrow { align-self: center; color: var(--accent); font-size: 1.4rem; }

/* Full-width photo band */
.band {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(280px, 34vw, 420px);
  overflow: hidden;
  background: var(--bg-dark);
}
.band-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(95deg, rgba(11, 18, 32, 0.94) 0%, rgba(11, 18, 32, 0.78) 45%, rgba(29, 78, 216, 0.45) 100%);
}
.band-inner { position: relative; z-index: 1; padding: 3rem 0; }
.band-tagline {
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: #fff;
}
.band-tagline span { color: var(--accent); margin: 0 0.5rem; }
.band-copy {
  margin-top: 0.9rem;
  max-width: 540px;
  color: var(--text-on-dark-muted);
  font-size: 1.05rem;
}

/* Features */
.feature { padding: 1.5rem 0; border-top: 2px solid var(--border); }
.feature-num { font-size: 0.85rem; font-weight: 700; color: var(--primary); letter-spacing: 0.1em; }
.feature h3 { margin: 0.75rem 0 0.5rem; }
.feature p { color: var(--text-muted); font-size: 0.95rem; }

/* Timeline */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem; counter-reset: step; position: relative; }
.timeline::before {
  content: "";
  position: absolute; top: 22px; left: 0; right: 0;
  height: 2px; background: var(--border);
}
.timeline li { position: relative; padding-top: 3.75rem; }
.tl-step {
  position: absolute; top: 0; left: 0;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--gradient);
  color: #fff; font-weight: 700;
  box-shadow: 0 0 0 6px var(--bg-alt);
}
.timeline h3 { margin-bottom: 0.5rem; }
.timeline p { color: var(--text-muted); font-size: 0.95rem; }

/* Stack */
.stack-groups { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stack-group h4 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-muted); margin-bottom: 0.9rem; }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.tags span {
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--bg-alt);
  border: 1px solid var(--border);
}

/* ---------- Careers: open roles ---------- */
.nav a.is-active { color: #fff; font-weight: 600; }

.roles { display: grid; gap: 1rem; }
.role {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.role:hover { border-color: #cdd7e6; box-shadow: var(--shadow); }
.role[open] { border-color: var(--primary); }
.role summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem 1.5rem;
  padding: 1.4rem 1.75rem;
}
.role summary::-webkit-details-marker { display: none; }
.role summary::after {
  content: "+";
  font-size: 1.5rem;
  line-height: 1;
  color: var(--primary);
  transition: transform 0.2s ease;
}
.role[open] summary::after { transform: rotate(45deg); }
.role-title { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; flex: 1 1 auto; }
.role-tag {
  display: inline-block;
  margin-left: 0.6rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
  background: rgba(79, 124, 255, 0.1);
  vertical-align: middle;
}
.role-meta { font-size: 0.88rem; color: var(--text-muted); white-space: nowrap; }
.role-body { padding: 0 1.75rem 1.75rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.role-body > p { color: var(--text-muted); }
.role-body h4 {
  margin: 1.5rem 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
}
/* check-list is styled for dark panels; this variant works on white */
.dark-check li { color: var(--text-muted); }
.role-comp {
  margin-top: 1.5rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius-sm);
  background: var(--bg-alt);
  font-size: 0.92rem;
  color: var(--text-muted);
}
.role-comp strong { color: var(--text); }
.role-apply { margin-top: 1.5rem; }

/* Timeline on a white section needs a white step halo */
.light-timeline .tl-step { box-shadow: 0 0 0 6px var(--bg); }
.light-timeline::before { background: var(--border); }

.eeo {
  margin-top: 2rem;
  font-size: 0.85rem;
  line-height: 1.6;
  color: var(--text-on-dark-muted);
  max-width: 460px;
}
.form-note { font-size: 0.85rem; color: var(--text-on-dark-muted); text-align: center; }
.form-note a { color: var(--accent); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 1.1rem 0; }
.faq summary {
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin-top: 0.85rem; color: var(--text-muted); }

/* Contact */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 4rem; align-items: start; }
.contact-list { margin-top: 2.25rem; display: grid; gap: 1rem; }
.contact-list li { display: grid; gap: 0.15rem; }
.contact-list strong { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-on-dark-muted); }
.contact-list a:hover { color: var(--accent); }

.contact-form {
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--bg-dark-2);
  border: 1px solid var(--border-dark);
  display: grid; gap: 1.1rem;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.contact-form label { display: grid; gap: 0.4rem; font-size: 0.85rem; font-weight: 600; color: var(--text-on-dark-muted); }
.contact-form input, .contact-form select, .contact-form textarea {
  font: inherit;
  font-size: 0.95rem;
  color: #fff;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.05);
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.contact-form select option { color: var(--text); }
.contact-form textarea { resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79,124,255,0.25);
}
.contact-form input::placeholder, .contact-form textarea::placeholder { color: rgba(255,255,255,0.35); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-status { font-size: 0.9rem; min-height: 1.4em; }
.form-status.ok { color: #6ee7b7; }
.form-status.err { color: #fca5a5; }

/* ---------- Footer ---------- */
.site-footer { background: #070d19; color: var(--text-on-dark-muted); border-top: 1px solid var(--border-dark); }
.footer-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 3rem; padding: 3.5rem 0 2.5rem; }
.footer-brand p { margin-top: 0.75rem; max-width: 380px; font-size: 0.95rem; }
.footer-brand .tagline {
  margin-top: 1.1rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #c7d0e3;
}
.footer-brand .tagline span { color: var(--accent); margin: 0 0.35rem; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.footer-links h4 { color: #fff; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.9rem; }
.footer-links a { display: block; font-size: 0.95rem; padding: 0.25rem 0; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.75rem;
  padding: 1.25rem 0 2rem;
  border-top: 1px solid var(--border-dark);
  font-size: 0.85rem;
}
.to-top:hover { color: #fff; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- Legal pages ---------- */
.legal { padding: 4rem 0 6rem; max-width: 780px; }
.legal h1 { font-size: 2.4rem; margin-bottom: 0.5rem; }
.legal .updated { color: var(--text-muted); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.35rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--text-muted); margin-bottom: 0.75rem; }
.legal ul { list-style: disc; padding-left: 1.4rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero-copy h1 { font-size: clamp(2.2rem, 5.2vw, 3.6rem); }
  .hero-media img { height: clamp(300px, 52vw, 420px); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .stack-groups, .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
  .contact-wrap { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 768px) {
  .nav-toggle { display: flex; }
  .nav {
    position: absolute;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--bg-dark);
    border-bottom: 1px solid var(--border-dark);
    padding: 0.5rem 1.25rem 1.25rem;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 0.85rem 0; border-bottom: 1px solid var(--border-dark); }
  .nav .btn { margin-top: 1rem; }

  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.75rem 1rem; }
  .panel-photo { height: 180px; }
  .two-col, .grid-3, .grid-4, .stack-groups, .timeline { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .form-row { grid-template-columns: 1fr; }
  .role summary { padding: 1.15rem 1.25rem; }
  .role-body { padding-left: 1.25rem; padding-right: 1.25rem; }
  .role-meta { white-space: normal; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* Region code inside team badges */
.badge-code {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  margin-right: 0.35rem;
  border-radius: 6px;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--gradient);
  color: #fff;
}
