/* ============================================================
   RF RESCUE — Main Stylesheet
   Ing. Michal Červený, Ph.D. — rfrescue.com
============================================================ */

/* ── Reset & Base ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.loading > *:not(nav):not(.bg-grid):not(noscript):not(script) {
  opacity: 0;
}
body.loaded > * {
  transition: opacity 0.4s ease;
  opacity: 1;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ── Variables ── */
:root {
  --bg:           #080c14;
  --bg-card:      #0d1424;
  --bg-dark:      #060a10;
  --blue:         #3d8bff;
  --blue-dim:     rgba(61, 139, 255, 0.15);
  --blue-border:  rgba(61, 139, 255, 0.18);
  --text:         #c8d8ee;
  --text-muted:   #a8c0dc;
  --text-dim:     #5a7898;
  --border:       rgba(61, 139, 255, 0.12);
  --font-display: 'Orbitron', monospace;
  --font-body:    'Space Grotesk', sans-serif;
}

/* ── Background grid — removed ── */
.bg-grid { display: none; }

/* ── Scroll reveal ── */
.reveal {
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1; transform: translateY(0);
}

/* ── Focus styles for accessibility ── */
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Selection colour ── */
::selection {
  background: rgba(61, 139, 255, 0.3);
  color: #c0d4ea;
}

/* ── Max-width container ── */
.container {
  width: 100%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Navigation ── */
nav {
  position: sticky; top: 0; z-index: 100;
  border-bottom: 1px solid var(--border);
  background: rgba(8, 12, 20, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
nav > .container {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 4rem;
}
.nav-logo {
  display: inline-flex; align-items: center;
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.2rem; letter-spacing: 0.12em;
  text-decoration: none; color: #c0d4ea;
}
.nav-logo-rf    { color: #c0d4ea; }
.nav-logo-rescue { color: #c0d4ea; }
.nav-logo-dot {
  display: inline-block; width: 6px; height: 6px;
  background: var(--blue); border-radius: 50%;
  margin: 0 3px; flex-shrink: 0;
}
.nav-links { display: flex; gap: 2.2rem; list-style: none; }
.nav-links a {
  font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8aaac8; transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }
.nav-cta {
  background: transparent; border: 1px solid var(--blue); color: var(--blue);
  padding: 0.5rem 1.3rem; font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.1em; text-transform: uppercase; cursor: pointer;
  border-radius: 2px; transition: background 0.2s, color 0.2s;
}
.nav-cta:hover { background: var(--blue); color: #fff; }
.nav-toggle {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: 4px;
}
.nav-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--text); transition: all 0.2s;
}

/* ── Hero ── */
.hero {
  position: relative; z-index: 1;
  min-height: 92vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.hero-canvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-center {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 2rem 2rem 8rem;
  max-width: 760px;
  /* soft dark vignette so text stays legible over animation */
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(8,12,20,0.72) 0%, rgba(8,12,20,0.0) 100%);
  will-change: transform, opacity;
}
.hero-tag {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border: 1px solid rgba(61, 139, 255, 0.35); color: var(--blue);
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.3rem 0.9rem; border-radius: 2px; margin-bottom: 2rem; width: fit-content;
}
.hero-tag::before { content: ''; width: 6px; height: 6px; background: var(--blue); border-radius: 50%; }
.hero-brand-block {
  border-top: 1px solid rgba(61, 139, 255, 0.2);
  border-bottom: 1px solid rgba(61, 139, 255, 0.2);
  padding: 1.2rem 0; margin-bottom: 1.4rem; width: 100%;
}
.hero-brand {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 900; color: #c0d4ea; line-height: 1;
  display: flex; align-items: center; justify-content: center; letter-spacing: 0.1em;
}
.hero-brand-rf     { color: #c0d4ea; }
.hero-brand-rescue { color: #c0d4ea; }
.hero-brand-dot {
  display: inline-block; width: 0.22em; height: 0.22em;
  background: var(--blue); border-radius: 50%;
  margin: 0 0.06em; flex-shrink: 0;
}
.hero-tagline {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); margin-top: 0.6rem;
}
.hero-body {
  font-size: 1rem; line-height: 1.8; color: var(--text-muted);
  margin-bottom: 2.5rem; max-width: 540px;
}
.hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }

/* ── Buttons ── */
.btn-primary {
  background: var(--blue); color: #fff; border: none;
  padding: 0.9rem 2.2rem; font-family: var(--font-body);
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.06em;
  cursor: pointer; border-radius: 2px; transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: #2372e8; transform: translateY(-1px); }
.btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid rgba(200, 216, 240, 0.25);
  padding: 0.9rem 2.2rem; font-family: var(--font-body);
  font-size: 0.88rem; cursor: pointer; border-radius: 2px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

/* ── Stats bar ── */
.stats-bar {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--bg-dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.stat {
  padding: 1.8rem 2rem;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-display);
  font-size: 1.8rem; font-weight: 900;
  color: #c0d4ea; letter-spacing: 0.04em;
}
.stat-num span {
  color: var(--blue); font-weight: 400;
}
.stat-label {
  font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--text-dim); margin-top: 0.3rem;
}

/* ── Pipeline ── */
.pipeline {
  position: relative; z-index: 2;
  background: var(--bg-dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.pipeline > .container { padding: 4rem 4rem; }
.pipeline-label {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim); margin-bottom: 2.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.pipeline-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--text-dim); }
.pipeline-steps {
  display: grid; grid-template-columns: repeat(5, 1fr);
  align-items: start; gap: 0;
}
.pipeline-step {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; padding: 0 0.5rem; position: relative;
}
.pipeline-step:not(:last-child)::after {
  content: ''; position: absolute;
  left: 50%; right: -50%; top: 22px;
  height: 1px; background: rgba(61, 139, 255, 0.25); z-index: 0;
}
.step-circle {
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid var(--blue); background: rgba(61, 139, 255, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.8rem; position: relative; z-index: 1;
}
.step-circle svg { width: 18px; height: 18px; }
.step-label {
  font-family: var(--font-display); font-size: 0.6rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: #a0c0e0; line-height: 1.5;
}

/* ── Sections shared ── */
section { position: relative; z-index: 2; }
section > .container { padding: 4rem 4rem; }
.section-tag {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 0.8rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.section-tag::before { content: ''; display: block; width: 24px; height: 1px; background: var(--blue); }
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
  font-weight: 700; color: #c0d4ea; margin-bottom: 0.6rem;
}
.section-sub {
  font-size: 0.97rem; color: var(--text-muted);
  max-width: 640px; margin-bottom: 2.8rem; line-height: 1.75;
}
hr.divider {
  border: none; border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}

/* ── Primary services ── */
.primary-services {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.5px; background: var(--blue-border); border: 1px solid var(--blue-border);
}
.primary-card {
  background: var(--bg-card); padding: 3rem 2.5rem;
  transition: background 0.2s; cursor: pointer;
  position: relative; overflow: hidden;
}
.primary-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--blue); opacity: 0; transition: opacity 0.2s;
}
.primary-card:hover { background: #111c30; }
.primary-card:hover::before { opacity: 1; }
.primary-card .badge {
  display: inline-block; font-size: 0.6rem; letter-spacing: 0.2em;
  text-transform: uppercase; border: 1px solid rgba(61, 139, 255, 0.3);
  color: var(--blue); padding: 0.2rem 0.6rem; border-radius: 2px; margin-bottom: 1.5rem;
}
.primary-card h3 {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.04em; color: #c0d4ea; margin-bottom: 1rem;
}
.primary-card p { font-size: 0.93rem; line-height: 1.8; color: var(--text-muted); margin-bottom: 1.5rem; }
.primary-card ul { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.primary-card ul li {
  font-size: 0.85rem; color: #7a9abe;
  display: flex; align-items: center; gap: 0.6rem;
}
.primary-card ul li::before {
  content: ''; width: 4px; height: 4px; background: var(--blue);
  border-radius: 50%; flex-shrink: 0; opacity: 0.7;
}
.service-more {
  display: inline-block; margin-top: 1.5rem;
  font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue);
}

/* ── Secondary services ── */
.secondary-label {
  font-size: 0.7rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim); margin: 3rem 0 1.5rem;
  display: flex; align-items: center; gap: 0.7rem;
}
.secondary-label::before { content: ''; display: block; width: 24px; height: 1px; background: var(--text-dim); }
.secondary-services {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5px; background: rgba(61, 139, 255, 0.08); border: 1px solid rgba(61, 139, 255, 0.08);
}
.secondary-card {
  background: #0a1020; padding: 1.8rem 1.6rem;
  transition: all 0.2s; cursor: pointer; border-top: 2px solid transparent;
}
.secondary-card:hover { background: #0e1830; border-top-color: rgba(61, 139, 255, 0.4); }
.secondary-icon { width: 32px; height: 32px; margin-bottom: 1rem; }
.secondary-card h4 {
  font-family: var(--font-display); font-size: 0.68rem; font-weight: 700;
  letter-spacing: 0.04em; color: #90b0cc; margin-bottom: 0.5rem;
}
.secondary-card p { font-size: 0.85rem; line-height: 1.7; color: #8aaac8; }

/* ── Software ── */
.software-section {
  background: var(--bg-dark);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.software-inner {
  padding: 3.5rem 4rem;
  display: flex; flex-direction: column; gap: 1.5rem;
  max-width: 1280px; margin: 0 auto;
}
.software-left {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--text-dim); white-space: nowrap; line-height: 2; padding-top: 0.5rem;
}
.software-tools { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.sw-tool {
  display: flex; align-items: center; gap: 1rem;
  border: 1px solid rgba(61, 139, 255, 0.2); background: rgba(61, 139, 255, 0.04);
  padding: 0.9rem 1.5rem; border-radius: 2px; transition: all 0.2s; cursor: default;
}
.sw-tool:hover { border-color: rgba(61, 139, 255, 0.45); background: rgba(61, 139, 255, 0.09); }
.sw-tool-icon { width: 36px; height: 36px; flex-shrink: 0; }
.sw-tool-name {
  font-family: var(--font-display); font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.04em; color: #b8d0e8;
}
.sw-tool-desc { font-size: 0.74rem; color: #8aaac8; margin-top: 0.15rem; }
.sw-note {
  font-size: 0.82rem; color: #6a8aaa; margin-top: 1.4rem;
  padding-top: 1.2rem; border-top: 1px solid var(--border); font-style: italic;
}

/* ── About ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: start; }
.about-pull {
  font-family: var(--font-display); font-size: 1.05rem; font-weight: 700;
  color: #c0d4ea; line-height: 1.5; letter-spacing: 0.03em;
  border-left: 2px solid var(--blue); padding-left: 1.4rem; margin: 1.8rem 0 2rem;
}
.about-text p { font-size: 0.97rem; line-height: 1.9; color: var(--text-muted); margin-bottom: 1.4rem; }
/* .cred-grid removed — credentials now live in acp panel only */

/* About photo */
.about-photo { border: 1px solid var(--border); overflow: hidden; background: #060d1a; }
.about-photo-inner {
  padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1rem; min-height: 340px;
}
.about-photo-label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: rgba(61, 139, 255, 0.3); text-align: center; line-height: 2;
}
.about-photo-hint {
  font-size: 0.62rem; color: rgba(61, 139, 255, 0.18);
  text-align: center; max-width: 180px; line-height: 1.6;
}
.about-photo-caption { border-top: 1px solid var(--border); padding: 1rem 1.2rem; background: var(--bg-dark); }
.about-photo-caption .name { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim); }
.about-photo-caption .role { font-size: 0.75rem; color: #4a6888; margin-top: 0.2rem; }

/* ── Contact ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.5fr; gap: 5rem; align-items: start; }
.contact-info h3 {
  font-family: var(--font-display); font-size: 0.88rem; font-weight: 700;
  letter-spacing: 0.04em; color: #c0d4ea; margin-bottom: 1rem;
}
.contact-info p { font-size: 0.9rem; line-height: 1.75; color: var(--text-muted); margin-bottom: 2rem; }
.contact-detail {
  display: flex; align-items: flex-start; gap: 0.8rem;
  font-size: 0.83rem; color: #6a8aaa;
  padding: 0.65rem 0; border-bottom: 1px solid var(--border); line-height: 1.5;
}
.contact-dot { width: 5px; height: 5px; background: var(--blue); border-radius: 50%; flex-shrink: 0; margin-top: 0.35rem; }
.contact-label { font-size: 0.62rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 0.1rem; }
.contact-legal {
  margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--border);
  font-size: 0.75rem; line-height: 1.8; color: #4a6888;
}
.contact-legal strong { color: #6a8aaa; font-weight: 500; }

/* Contact email link */
.contact-email-link { color: #6a8aaa; transition: color 0.2s; }
.contact-email-link:hover { color: var(--blue); }

/* Email CTA panel (replaces form) */
.contact-email-panel {
  border: 1px solid var(--border);
  background: var(--bg-card);
  padding: 3.5rem 3rem;
  display: flex; flex-direction: column; align-items: flex-start; gap: 1.2rem;
  border-radius: 2px;
}
.contact-email-icon svg { opacity: 0.7; }
.contact-email-label {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-dim);
}
.contact-email-address {
  font-family: var(--font-display); font-size: 1rem; font-weight: 700;
  letter-spacing: 0.06em; color: #c0d4ea; transition: color 0.2s; word-break: break-all;
}
.contact-email-address:hover { color: var(--blue); }
.contact-email-hint {
  font-size: 0.88rem; line-height: 1.75; color: var(--text-muted); max-width: 380px;
}
.btn-email-cta {
  display: inline-block;
  background: var(--blue); color: #fff; border: none;
  padding: 0.9rem 2rem; font-family: var(--font-body);
  font-size: 0.85rem; font-weight: 500; letter-spacing: 0.08em;
  cursor: pointer; border-radius: 2px; transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}
.btn-email-cta:hover { background: #2372e8; transform: translateY(-1px); }

/* ── Footer ── */
footer {
  position: relative; z-index: 2;
  border-top: 1px solid var(--border);
  background: rgba(5, 8, 16, 0.95);
}
footer > .container {
  padding: 2rem 4rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-logo {
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  letter-spacing: 0.12em;
  display: flex; align-items: center;
}
.footer-logo-rf      { color: #c0d4ea; }
.footer-logo-rescue  { color: #c0d4ea; }
.footer-logo-dot {
  display: inline-block; width: 5px; height: 5px;
  background: var(--blue); border-radius: 50%;
  margin: 0 3px; flex-shrink: 0;
}
footer p { font-size: 0.78rem; color: #4a6888; }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a { font-size: 0.78rem; color: #4a6888; transition: color 0.2s; }
.footer-links a:hover { color: var(--blue); }

/* ── Responsive — Tablet (max 1024px) ── */

/* ============================================================
   LINKEDIN BUTTON
============================================================ */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.nav-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: transparent;
  color: var(--blue);
  border: 1px solid var(--blue);
  padding: 0.5rem 1.1rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  border-radius: 2px;
  transition: background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-linkedin:hover {
  background: var(--blue);
  color: #fff;
}

/* ============================================================
   ABOUT — CREDENTIALS PANEL
============================================================ */
.about-creds-panel {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--border);
}

.acp-block {
  padding: 1.3rem 1.6rem;
  border-bottom: 1px solid var(--border);
  transition: background 0.2s;
}

.acp-block:last-child { border-bottom: none; }
.acp-block:hover { background: rgba(61, 139, 255, 0.04); }

.acp-label {
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.35rem;
}

.acp-value {
  font-size: 0.92rem;
  font-weight: 500;
  color: #e8f0fc;
  line-height: 1.45;
}

.acp-sub {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.5;
}

.acp-linkedin {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: #0a66c2;
  color: #c0d4ea;
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  border-radius: 2px;
  text-decoration: none;
  transition: background 0.2s;
  margin-top: 0.2rem;
}

.acp-linkedin:hover { background: #0856a8; }

/* Sponsor tags */
.acp-sponsors {
  display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.8rem;
}
.acp-sponsor-tag {
  font-size: 0.62rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--blue); border: 1px solid rgba(61,139,255,0.3);
  background: rgba(61,139,255,0.06);
  padding: 0.15rem 0.55rem; border-radius: 2px; white-space: nowrap;
}

/* ============================================================
   RESPONSIVE — TABLET  (max 1024px)
============================================================ */
@media (max-width: 1024px) {

  /* Nav */
  nav > .container { padding: 1.2rem 2rem; }
  .nav-links { gap: 1.4rem; }
  .nav-actions { gap: 0.6rem; }
  .nav-linkedin { padding: 0.45rem 0.8rem; font-size: 0.72rem; }

  /* Hero */
  .hero { min-height: auto; }
  .hero-center { padding: 4rem 2rem 3rem; }

  /* Stats */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat:nth-child(3),
  .stat:nth-child(4) { border-top: 1px solid var(--border); }

  /* Sections */
  section > .container { padding: 4rem 2rem; }
  .pipeline > .container { padding: 3rem 2rem; }

  /* Services */
  .primary-services { grid-template-columns: 1fr; }
  .secondary-services { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .related-grid  { grid-template-columns: repeat(2, 1fr); }

  /* Software */
  .software-inner { padding: 2.5rem 2rem; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .cred-grid  { grid-template-columns: 1fr 1fr; }
  .about-creds-panel { margin-top: 0; }

  /* Contact */
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }

  /* Footer */
  footer > .container { padding: 2rem; }
}

/* ============================================================
   RESPONSIVE — MOBILE  (max 640px)
============================================================ */
@media (max-width: 640px) {

  /* Nav — hamburger */
  nav {
    padding: 0;
    flex-wrap: wrap;
  }
  nav > .container {
    padding: 1rem 1.5rem;
    flex-wrap: wrap;
    gap: 0.8rem;
  }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 0.8rem;
    padding: 1rem 0;
    border-top: 1px solid var(--border);
  }

  .nav-toggle  { display: flex; }
  .nav-linkedin { display: none; }
  .nav-cta { display: none; }

  /* Hero */
  .hero-center { padding: 2.5rem 1.5rem 2rem; }
  .hero-brand { font-size: 2rem; letter-spacing: 0.06em; }
  .hero-tagline { font-size: 0.72rem; }
  .hero-body { font-size: 0.95rem; }
  .hero-btns { flex-direction: column; }
  .btn-primary,
  .btn-outline { width: 100%; text-align: center; }

  /* Stats — 2 columns on mobile */
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 1.2rem 1.5rem; }
  .stat-num { font-size: 1.5rem; }

  /* Sections */
  section > .container { padding: 3rem 1.5rem; }
  .pipeline > .container { padding: 2.5rem 1.5rem; }
  .section-title { font-size: 1.3rem; }

  /* Pipeline */
  .pipeline-steps { grid-template-columns: repeat(3, 1fr); gap: 1.5rem 0; }
  .pipeline-step:not(:last-child)::after { display: none; }

  /* Services — single column */
  .primary-services { grid-template-columns: 1fr; }
  .secondary-services { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .related-grid  { grid-template-columns: 1fr; }

  /* Software tags — wrap naturally, already flex-wrap */
  .software-inner { padding: 2rem 1.5rem; }
  .sw-tag { font-size: 0.75rem; }

  /* About */
  .cred-grid { grid-template-columns: 1fr; }

  /* Contact form */
  .form-row { grid-template-columns: 1fr; }

  /* Footer */
  footer > .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1.5rem;
  }
}

/* ============================================================
   RESPONSIVE — SMALL MOBILE  (max 380px)
============================================================ */
@media (max-width: 380px) {
  .hero-brand { font-size: 1.65rem; }
  .stat-num   { font-size: 1.3rem; }
  .nav-logo   { font-size: 1rem; }
}
