/* ============================================================
   Rapid Squad — Production Stylesheet
   Brand: Midnight ink + electric teal + signal amber
   ============================================================ */

:root {
  --rs-ink: #05080f;
  --rs-ink-2: #0a101c;
  --rs-ink-3: #121a2b;
  --rs-slate: #1a2438;
  --rs-muted: #8b9bb4;
  --rs-text: #e8eef8;
  --rs-text-dim: #a8b4c8;
  --rs-teal: #2ee6a8;
  --rs-teal-dim: #1a9e74;
  --rs-teal-glow: rgba(46, 230, 168, 0.35);
  --rs-amber: #f0a04b;
  --rs-amber-dim: #c47a28;
  --rs-glass: rgba(14, 22, 38, 0.55);
  --rs-glass-border: rgba(232, 238, 248, 0.08);
  --rs-glass-strong: rgba(18, 26, 43, 0.82);
  --rs-danger: #ff5c7a;
  --rs-radius: 18px;
  --rs-radius-sm: 10px;
  --rs-font-display: "Syne", system-ui, sans-serif;
  --rs-font-body: "Manrope", system-ui, sans-serif;
  --rs-font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --rs-header-h: 76px;
  --rs-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --rs-max: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: auto;
  font-size: 16px;
}

html.lenis,
html.lenis body {
  height: auto;
}

.lenis.lenis-smooth {
  scroll-behavior: auto !important;
}

body {
  font-family: var(--rs-font-body);
  background: var(--rs-ink);
  color: var(--rs-text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}

ul,
ol {
  list-style: none;
}

/* ---------- Canvas / Atmosphere ---------- */
#rs-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.85;
}

.rs-noise {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rs-glow-orb {
  position: fixed;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.18;
}

.rs-glow-orb--1 {
  top: -10%;
  left: -10%;
  background: radial-gradient(circle, var(--rs-teal) 0%, transparent 70%);
}

.rs-glow-orb--2 {
  bottom: 10%;
  right: -15%;
  background: radial-gradient(circle, var(--rs-amber) 0%, transparent 70%);
  opacity: 0.1;
}

.site-wrap {
  position: relative;
  z-index: 2;
}

/* ---------- Typography ---------- */
h1,
h2,
h3,
h4 {
  font-family: var(--rs-font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.6rem, 6vw, 4.75rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.65rem);
}

h4 {
  font-size: 1.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--rs-font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rs-teal);
  margin-bottom: 1rem;
}

.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--rs-teal);
}

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  color: var(--rs-text-dim);
  max-width: 36rem;
}

.text-gradient {
  background: linear-gradient(120deg, #fff 10%, var(--rs-teal) 55%, var(--rs-amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Layout ---------- */
.container {
  width: min(100% - 2.5rem, var(--rs-max));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 10vw, 7.5rem) 0;
  position: relative;
}

.section--tight {
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.section-head {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.5rem, 5vw, 3.5rem);
  max-width: 42rem;
}

.section-head--center {
  text-align: center;
  margin-inline: auto;
  justify-items: center;
}

.section-head--center .lead {
  margin-inline: auto;
}

.grid-2 {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
}

.grid-3 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

.grid-4 {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }
  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ---------- Glass / Surfaces ---------- */
.glass {
  background: var(--rs-glass);
  border: 1px solid var(--rs-glass-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-radius: var(--rs-radius);
}

.glass-strong {
  background: var(--rs-glass-strong);
  border: 1px solid var(--rs-glass-border);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: var(--rs-radius);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.95rem 1.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: transform 0.35s var(--rs-ease), background 0.35s var(--rs-ease),
    border-color 0.35s var(--rs-ease), box-shadow 0.35s var(--rs-ease);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: linear-gradient(135deg, var(--rs-teal), #1ecf92);
  color: #04140f;
  box-shadow: 0 0 0 0 var(--rs-teal-glow);
}

.btn-primary:hover {
  box-shadow: 0 10px 40px var(--rs-teal-glow);
}

.btn-secondary {
  background: transparent;
  border-color: rgba(232, 238, 248, 0.22);
  color: var(--rs-text);
}

.btn-secondary:hover {
  border-color: var(--rs-teal);
  background: rgba(46, 230, 168, 0.08);
}

.btn-ghost {
  background: transparent;
  color: var(--rs-text-dim);
  padding-inline: 0.5rem;
}

.btn-ghost:hover {
  color: var(--rs-teal);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.75rem;
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--rs-header-h);
  transition: background 0.4s var(--rs-ease), border-color 0.4s var(--rs-ease),
    backdrop-filter 0.4s var(--rs-ease);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  background: rgba(5, 8, 15, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--rs-glass-border);
}

.nav {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-shrink: 0;
}

.logo svg {
  width: 38px;
  height: 38px;
}

.logo-word {
  font-family: var(--rs-font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.03em;
}

.logo-word span {
  color: var(--rs-teal);
}

.nav-links {
  display: none;
  align-items: center;
  gap: 0.15rem;
}

.nav-links a {
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  color: var(--rs-text-dim);
  border-radius: 8px;
  transition: color 0.25s, background 0.25s;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-cta {
  display: none;
}

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--rs-glass-border);
  background: var(--rs-glass);
  display: grid;
  place-items: center;
  cursor: pointer;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--rs-text);
  transition: 0.3s var(--rs-ease);
}

.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);
}

.mobile-nav {
  position: fixed;
  inset: var(--rs-header-h) 0 0 0;
  background: rgba(5, 8, 15, 0.96);
  backdrop-filter: blur(20px);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transform: translateX(100%);
  transition: transform 0.45s var(--rs-ease);
  z-index: 99;
}

.mobile-nav.is-open {
  transform: translateX(0);
}

.mobile-nav a {
  padding: 1rem;
  border-radius: 12px;
  font-size: 1.1rem;
  border: 1px solid transparent;
}

.mobile-nav a:hover {
  background: var(--rs-ink-3);
  border-color: var(--rs-glass-border);
}

@media (min-width: 980px) {
  .nav-links,
  .nav-cta {
    display: flex;
  }
  .nav-toggle,
  .mobile-nav {
    display: none;
  }
}

/* Dropdown */
.nav-item {
  position: relative;
}

.nav-item > button {
  background: none;
  border: none;
  padding: 0.55rem 0.8rem;
  font-size: 0.9rem;
  color: var(--rs-text-dim);
  cursor: pointer;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.nav-item > button:hover {
  color: var(--rs-text);
  background: rgba(255, 255, 255, 0.04);
}

.nav-dropdown {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  min-width: 260px;
  padding: 0.5rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: 0.3s var(--rs-ease);
  z-index: 50;
}

.nav-item:hover .nav-dropdown,
.nav-item:focus-within .nav-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown a {
  display: block;
  padding: 0.75rem 0.9rem;
  border-radius: 10px;
  font-size: 0.88rem;
}

.nav-dropdown a:hover {
  background: rgba(46, 230, 168, 0.08);
  color: var(--rs-teal);
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--rs-header-h) + 2rem) 0 4rem;
  position: relative;
}

.hero-inner {
  display: grid;
  gap: 2.5rem;
  align-items: end;
}

@media (min-width: 960px) {
  .hero-inner {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.brand-hero {
  font-family: var(--rs-font-display);
  font-weight: 800;
  font-size: clamp(3.2rem, 9vw, 6.5rem);
  letter-spacing: -0.045em;
  line-height: 0.92;
  margin-bottom: 1.25rem;
}

.brand-hero .accent {
  color: var(--rs-teal);
}

.hero h1 {
  font-size: clamp(1.55rem, 3.2vw, 2.35rem);
  font-weight: 600;
  max-width: 18ch;
  margin-bottom: 1rem;
  color: var(--rs-text);
}

.hero-panel {
  padding: 1.5rem;
  display: grid;
  gap: 1rem;
}

.hero-stat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rs-glass-border);
}

.hero-stat:last-child {
  border-bottom: none;
}

.hero-stat strong {
  font-family: var(--rs-font-display);
  font-size: 1.6rem;
  color: var(--rs-teal);
}

.hero-stat span {
  color: var(--rs-muted);
  font-size: 0.88rem;
}

.scroll-cue {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--rs-font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rs-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  animation: floatY 2.4s ease-in-out infinite;
}

.scroll-cue i {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, var(--rs-teal), transparent);
}

@keyframes floatY {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-50%, 8px);
  }
}

/* ---------- Metrics ---------- */
.metrics {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .metrics {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  padding: 1.6rem 1.4rem;
  position: relative;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, var(--rs-teal-glow), transparent 70%);
  opacity: 0.5;
}

.metric-value {
  font-family: var(--rs-font-display);
  font-size: clamp(2.2rem, 4vw, 3rem);
  color: var(--rs-text);
  margin-bottom: 0.35rem;
}

.metric-value .suffix {
  color: var(--rs-teal);
  font-size: 0.7em;
}

.metric-label {
  color: var(--rs-muted);
  font-size: 0.9rem;
}

/* ---------- Service Cards (3D tilt) ---------- */
.service-card {
  padding: 1.6rem;
  min-height: 280px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transform-style: preserve-3d;
  transition: box-shadow 0.35s var(--rs-ease), border-color 0.35s;
  will-change: transform;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  border-color: rgba(46, 230, 168, 0.35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.service-card .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(46, 230, 168, 0.1);
  color: var(--rs-teal);
  margin-bottom: 1.25rem;
  transform: translateZ(30px);
}

.service-card h3 {
  margin-bottom: 0.6rem;
  transform: translateZ(24px);
}

.service-card p {
  color: var(--rs-text-dim);
  font-size: 0.95rem;
  transform: translateZ(18px);
}

.service-card .card-link {
  margin-top: 1.5rem;
  color: var(--rs-teal);
  font-weight: 600;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  transform: translateZ(28px);
}

.service-card .sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    125deg,
    transparent 30%,
    rgba(46, 230, 168, 0.08) 45%,
    transparent 60%
  );
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.service-card:hover .sheen {
  opacity: 1;
}

/* ---------- Why / Feature list ---------- */
.feature-list {
  display: grid;
  gap: 1rem;
}

.feature-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  padding: 1.25rem;
  align-items: start;
}

.feature-num {
  font-family: var(--rs-font-mono);
  color: var(--rs-teal);
  font-size: 0.85rem;
  padding-top: 0.2rem;
}

.feature-item h3 {
  margin-bottom: 0.4rem;
}

.feature-item p {
  color: var(--rs-text-dim);
  font-size: 0.95rem;
}

.media-frame {
  position: relative;
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid var(--rs-glass-border);
  aspect-ratio: 4 / 5;
  background: var(--rs-ink-3);
}

.media-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame .caption {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  padding: 0.85rem 1rem;
  font-size: 0.85rem;
}

.media-placeholder {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  background:
    linear-gradient(160deg, rgba(46, 230, 168, 0.12), transparent 50%),
    linear-gradient(var(--rs-ink-3), var(--rs-ink-2));
  color: var(--rs-muted);
  text-align: center;
  padding: 2rem;
  font-size: 0.9rem;
}

.media-placeholder strong {
  display: block;
  color: var(--rs-text);
  font-family: var(--rs-font-display);
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}

/* ---------- Testimonials ---------- */
.slider {
  position: relative;
  overflow: hidden;
}

.slider-track {
  display: flex;
  gap: 1.25rem;
  transition: transform 0.55s var(--rs-ease);
}

.slide {
  flex: 0 0 100%;
  padding: 2rem;
  min-height: 280px;
}

@media (min-width: 800px) {
  .slide {
    flex: 0 0 calc(50% - 0.625rem);
  }
}

.slide blockquote {
  font-size: 1.15rem;
  line-height: 1.55;
  margin-bottom: 1.5rem;
}

.slide-meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rs-teal-dim), var(--rs-ink-3));
  display: grid;
  place-items: center;
  font-weight: 700;
  color: var(--rs-teal);
  border: 1px solid var(--rs-glass-border);
}

.slide-meta strong {
  display: block;
}

.slide-meta span {
  color: var(--rs-muted);
  font-size: 0.85rem;
}

.slider-controls {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.5rem;
}

.slider-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--rs-glass-border);
  background: var(--rs-glass);
  color: var(--rs-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.3s;
}

.slider-btn:hover {
  border-color: var(--rs-teal);
  color: var(--rs-teal);
}

/* ---------- Quote Calculator ---------- */
.calc-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.form-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .form-grid .full {
    grid-column: 1 / -1;
  }
}

.field label {
  display: block;
  font-size: 0.82rem;
  color: var(--rs-muted);
  margin-bottom: 0.4rem;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.9rem 1rem;
  border-radius: var(--rs-radius-sm);
  border: 1px solid var(--rs-glass-border);
  background: rgba(5, 8, 15, 0.55);
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: rgba(46, 230, 168, 0.45);
  box-shadow: 0 0 0 3px rgba(46, 230, 168, 0.12);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.calc-result {
  margin-top: 1.25rem;
  padding: 1.25rem;
  border-radius: var(--rs-radius-sm);
  border: 1px dashed rgba(46, 230, 168, 0.35);
  background: rgba(46, 230, 168, 0.06);
  display: none;
}

.calc-result.is-visible {
  display: block;
}

.calc-result strong {
  font-family: var(--rs-font-display);
  font-size: 1.75rem;
  color: var(--rs-teal);
}

/* Multi-step form */
.steps {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.step-dot {
  flex: 1;
  height: 4px;
  border-radius: 4px;
  background: var(--rs-slate);
}

.step-dot.is-active {
  background: var(--rs-teal);
}

.step-panel {
  display: none;
}

.step-panel.is-active {
  display: block;
}

/* ---------- Page Hero (inner pages) ---------- */
.page-hero {
  padding: calc(var(--rs-header-h) + 4rem) 0 3rem;
}

.page-hero h1 {
  max-width: 16ch;
  margin-bottom: 1rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  font-size: 0.85rem;
  color: var(--rs-muted);
  margin-bottom: 1.5rem;
}

.breadcrumb a:hover {
  color: var(--rs-teal);
}

/* ---------- Content prose ---------- */
.prose {
  color: var(--rs-text-dim);
  display: grid;
  gap: 1rem;
  max-width: 68ch;
}

.prose h2,
.prose h3,
.prose h4 {
  color: var(--rs-text);
  margin-top: 0.5rem;
}

.prose ul {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.1rem;
}

.prose li {
  list-style: disc;
}

.prose li::marker {
  color: var(--rs-teal);
}

.sla-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
  margin: 1.5rem 0;
}

.sla-table th,
.sla-table td {
  text-align: left;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--rs-glass-border);
}

.sla-table th {
  color: var(--rs-muted);
  font-weight: 500;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.chip {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--rs-glass-border);
  font-size: 0.8rem;
  color: var(--rs-text-dim);
  background: rgba(255, 255, 255, 0.03);
}

/* ---------- Timeline ---------- */
.timeline {
  position: relative;
  padding-left: 1.5rem;
  border-left: 1px solid var(--rs-glass-border);
  display: grid;
  gap: 1.75rem;
}

.timeline-item {
  position: relative;
  padding-left: 0.5rem;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -1.75rem;
  top: 0.35rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--rs-teal);
  box-shadow: 0 0 0 4px rgba(46, 230, 168, 0.2);
}

.timeline-item time {
  font-family: var(--rs-font-mono);
  font-size: 0.78rem;
  color: var(--rs-teal);
}

.timeline-item h3 {
  margin: 0.35rem 0;
}

.timeline-item p {
  color: var(--rs-text-dim);
  font-size: 0.95rem;
}

/* ---------- Careers ---------- */
.job-card {
  padding: 1.4rem;
  display: grid;
  gap: 0.75rem;
}

.job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr 1.1fr;
  }
}

.map-placeholder {
  min-height: 320px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 2rem;
}

.contact-card {
  padding: 1.25rem;
}

.contact-card h3 {
  margin-bottom: 0.35rem;
}

.contact-card a {
  color: var(--rs-teal);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--rs-glass-border);
  padding: 4rem 0 2rem;
  margin-top: 2rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.35), transparent);
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 3rem;
}

@media (min-width: 800px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
  }
}

.footer-brand p {
  color: var(--rs-muted);
  margin-top: 1rem;
  max-width: 28ch;
  font-size: 0.95rem;
}

.footer-col h4 {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  color: var(--rs-muted);
  padding: 0.3rem 0;
  font-size: 0.92rem;
  transition: color 0.25s;
}

.footer-col a:hover {
  color: var(--rs-teal);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rs-glass-border);
  color: var(--rs-muted);
  font-size: 0.85rem;
}

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  place-items: center;
  padding: 1.5rem;
}

.modal-backdrop.is-open {
  display: grid;
}

.modal {
  width: min(100%, 520px);
  padding: 1.75rem;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.modal-close {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  border: 1px solid var(--rs-glass-border);
  background: transparent;
  color: var(--rs-text);
  cursor: pointer;
}

/* ---------- Live chat trigger ---------- */
.chat-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--rs-teal), #1ab884);
  color: #04140f;
  cursor: pointer;
  box-shadow: 0 12px 40px var(--rs-teal-glow);
  display: grid;
  place-items: center;
  transition: transform 0.3s var(--rs-ease);
}

.chat-fab:hover {
  transform: scale(1.06);
}

/* ---------- Reveal animations ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--rs-ease), transform 0.8s var(--rs-ease);
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- Utility ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

.mt-1 {
  margin-top: 0.5rem;
}
.mt-2 {
  margin-top: 1rem;
}
.mt-3 {
  margin-top: 1.5rem;
}
.mb-2 {
  margin-bottom: 1rem;
}

.divider {
  height: 1px;
  background: var(--rs-glass-border);
  margin: 2rem 0;
}

.stack-lg {
  display: grid;
  gap: 1.5rem;
}

.visually-branded::after {
  content: "Rapid Squad";
  position: absolute;
  inset: auto 1rem 1rem auto;
  font-family: var(--rs-font-display);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(46, 230, 168, 0.7);
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--rs-teal);
  color: #04140f;
  padding: 0.75rem 1rem;
  z-index: 999;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* Theme note: dark is primary brand; light logo variant for overlays */
.logo--light .logo-mark-bg {
  fill: #e8eef8;
}
.logo--dark .logo-mark-bg {
  fill: #0a101c;
}

/* ---------- Industries ---------- */
.industry-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .industry-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1100px) {
  .industry-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-card {
  padding: 1.4rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  min-height: 100%;
  transition: border-color 0.3s var(--rs-ease), transform 0.3s var(--rs-ease);
}

.industry-card:hover {
  border-color: rgba(46, 230, 168, 0.35);
  transform: translateY(-3px);
}

a.industry-card--link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

a.industry-card--link .card-link {
  color: var(--rs-teal);
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 0.35rem;
}

.nav-dropdown--scroll {
  max-height: min(70vh, 420px);
  overflow-y: auto;
  min-width: 280px;
}

/* ---------- Industry page media ---------- */
.industry-hero-media {
  width: min(100% - 2.5rem, var(--rs-max));
  margin: 0 auto 0.5rem;
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid var(--rs-glass-border);
  aspect-ratio: 21 / 9;
  background: var(--rs-ink-3);
}

.industry-hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-gallery {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
  margin-top: 1.5rem;
}

@media (min-width: 720px) {
  .industry-gallery {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.industry-gallery figure {
  margin: 0;
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid var(--rs-glass-border);
  background: var(--rs-ink-3);
  min-height: 200px;
}

.industry-gallery figure:first-child {
  min-height: 260px;
}

@media (min-width: 720px) {
  .industry-gallery figure:first-child {
    grid-row: span 2;
    min-height: 100%;
  }
}

.industry-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 200px;
}

.industry-gallery figcaption,
.industry-band figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.85rem;
  padding: 0.55rem 0.75rem;
  font-size: 0.78rem;
  color: var(--rs-text);
  background: var(--rs-glass-strong);
  border: 1px solid var(--rs-glass-border);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.industry-gallery figure,
.industry-band {
  position: relative;
}

.industry-band {
  margin-top: 2rem;
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid var(--rs-glass-border);
  aspect-ratio: 2.4 / 1;
  background: var(--rs-ink-3);
}

.industry-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-aside-media {
  border-radius: var(--rs-radius);
  overflow: hidden;
  border: 1px solid var(--rs-glass-border);
  aspect-ratio: 4 / 5;
  background: var(--rs-ink-3);
}

.industry-aside-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.industry-aside-media--wide {
  aspect-ratio: 16 / 10;
}

.industry-card h3 {
  font-size: 1.15rem;
}

.industry-card > p {
  color: var(--rs-text-dim);
  font-size: 0.92rem;
}

.industry-card--wide {
  grid-column: 1 / -1;
}

.industry-list {
  display: grid;
  gap: 0.45rem 1.25rem;
  grid-template-columns: 1fr;
  margin-top: 0.35rem;
}

@media (min-width: 600px) {
  .industry-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .industry-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.industry-list li {
  list-style: none;
  position: relative;
  padding-left: 1rem;
  color: var(--rs-text-dim);
  font-size: 0.9rem;
  line-height: 1.45;
}

.industry-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rs-teal);
}

.markets-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 1.25rem 1.4rem;
  margin-top: 1.5rem;
}

.markets-bar strong {
  font-family: var(--rs-font-display);
  margin-right: 0.35rem;
}

.market-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(46, 230, 168, 0.35);
  background: rgba(46, 230, 168, 0.08);
  color: var(--rs-teal);
  font-size: 0.88rem;
  font-weight: 600;
}
