/* ============================================================
   RAPID SCALE CAPITAL — Design System
   Brand: Poppins · Purple #8340ff→#5900ff · Navy #06052F
   ============================================================ */

/* ── Reset & Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: 'Poppins', sans-serif;
  background: #06052F;
  color: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── CSS Custom Properties ────────────────────────────────── */
:root {
  --navy:        #06052F;
  --navy-mid:    #0d0c3d;
  --navy-light:  #14134a;
  --purple:      #7c4fe0;
  --purple-hi:   #8340ff;
  --purple-lo:   #5900ff;
  --blue:        #0449c4;
  --violet:      #be63f9;
  --white:       #ffffff;
  --muted:       rgba(255, 255, 255, 0.55);
  --muted-dark:  rgba(255, 255, 255, 0.35);
  --border:      rgba(255, 255, 255, 0.08);
  --card-bg:     rgba(255, 255, 255, 0.04);
  --card-hover:  rgba(255, 255, 255, 0.07);
  --gradient:    linear-gradient(135deg, #8340ff 0%, #5900ff 100%);
  --gradient-h:  linear-gradient(135deg, #be63f9 0%, #8340ff 60%, #0449c4 100%);
  --gradient-text: linear-gradient(135deg, #be63f9 0%, #8340ff 100%);
  --light-bg:    #f5f4ff;
  --light-text:  #06052F;
  --light-muted: #4a4880;
  --radius:      12px;
  --radius-lg:   20px;
  --transition:  0.3s ease;
  --shadow:      0 8px 40px rgba(131, 64, 255, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4, h5 {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

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

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--violet);
  display: inline-block;
  margin-bottom: 1rem;
}

.eyebrow-dark {
  color: var(--purple);
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  margin-bottom: 1.25rem;
}

.section-sub {
  font-size: 1.05rem;
  line-height: 1.8;
  max-width: 560px;
}

.section-sub.centered { margin-left: auto; margin-right: auto; text-align: center; }

/* ── Layout ───────────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.section { padding: 7rem 0; }
.section-sm { padding: 4rem 0; }

.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

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

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

.grid-2-1 {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--gradient);
  color: white;
  box-shadow: 0 4px 20px rgba(131, 64, 255, 0.4);
}
.btn-primary:hover {
  box-shadow: 0 6px 30px rgba(131, 64, 255, 0.6);
  transform: translateY(-2px);
  color: white;
}

.btn-outline {
  background: transparent;
  color: white;
  border: 1px solid rgba(255,255,255,0.3);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.6);
  color: white;
}

.btn-outline-dark {
  background: transparent;
  color: var(--light-text);
  border: 1.5px solid rgba(6,5,47,0.25);
}
.btn-outline-dark:hover {
  background: var(--gradient);
  color: white;
  border-color: transparent;
}

.btn-sm {
  padding: 0.6rem 1.4rem;
  font-size: 0.82rem;
}

/* ── Navigation ───────────────────────────────────────────── */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 1.5rem 0;
  transition: all 0.4s ease;
}

#nav.scrolled {
  background: rgba(6, 5, 47, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 0.6rem;
}

.nav-logo-img {
  height: 36px;
  width: auto;
  display: block;
}

.nav-logo-name {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: white;
}

.nav-logo-tag {
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--violet);
  margin-top: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--white);
  transition: color var(--transition);
  letter-spacing: 0.01em;
}

.nav-links a:hover,
.nav-links a.active { color: var(--purple-hi); }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.nav-portal {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.nav-portal:hover { color: white; }

.nav-cta { padding: 0.6rem 1.5rem; font-size: 0.82rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: white;
  transition: all 0.3s;
  border-radius: 2px;
}

/* ── Hero ─────────────────────────────────────────────────── */
#hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

/* Video fills the section behind everything */
.hero-video-bg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
}

/* Dark overlay dims the light video so white text remains legible */
.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(6, 5, 47, 0.72);
  z-index: 1;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

/* Animated gradient orbs */
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
  animation: orbFloat 8s ease-in-out infinite;
}

.orb-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, #8340ff 0%, transparent 70%);
  top: -15%; left: -10%;
  animation-delay: 0s;
}

.orb-2 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, #0449c4 0%, transparent 70%);
  bottom: -10%; right: -5%;
  animation-delay: -3s;
}

.orb-3 {
  width: 350px; height: 350px;
  background: radial-gradient(circle, #be63f9 0%, transparent 70%);
  top: 40%; right: 20%;
  opacity: 0.25;
  animation-delay: -5s;
}

@keyframes orbFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%       { transform: translate(20px, -30px) scale(1.05); }
  66%       { transform: translate(-15px, 20px) scale(0.97); }
}

/* Dot grid overlay */
.hero-grid {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 30%, transparent 100%);
}

.hero-content {
  position: relative;
  z-index: 3;
  max-width: 860px;
}


.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(131, 64, 255, 0.15);
  border: 1px solid rgba(131, 64, 255, 0.3);
  border-radius: 50px;
  padding: 0.4rem 1rem;
  font-size: 0.585rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--violet);
  margin-bottom: 2rem;
}

.hero-badge i { font-size: 0.49rem; }

.hero-h1 {
  font-size: clamp(2.25rem, 5.25vw, 4.125rem);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin-bottom: 1.75rem;
}

.hero-sub {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
  color: var(--white);
  max-width: 620px;
  line-height: 1.8;
  margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.hero-scroll {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted-dark);
  font-size: 0.54rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  animation: scrollBounce 2s ease-in-out infinite;
  z-index: 3;
}

.hero-scroll i { font-size: 0.675rem; }

@keyframes scrollBounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%       { transform: translateX(-50%) translateY(6px); }
}

/* ── Metrics Strip ────────────────────────────────────────── */
#metrics {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 3rem 0;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.metric-item {
  padding: 1.5rem 2rem;
  border-right: 1px solid var(--border);
  transition: background var(--transition);
}

.metric-item:last-child { border-right: none; }
.metric-item:hover { background: var(--card-hover); }

.metric-value {
  font-size: 2.4rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 0.4rem;
}

.metric-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.04em;
}

/* ── About ────────────────────────────────────────────────── */
#about {
  background: var(--navy);
  position: relative;
  overflow: hidden;
}

#about::before {
  content: '';
  position: absolute;
  top: 0; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(131, 64, 255, 0.12) 0%, transparent 70%);
  pointer-events: none;
}

.about-text .section-sub {
  color: var(--muted);
  margin-bottom: 2rem;
}

.about-pillars {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.pillar {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}

.pillar:hover {
  background: var(--card-hover);
  border-color: rgba(131, 64, 255, 0.3);
  transform: translateX(4px);
}

.pillar-icon {
  width: 38px; height: 38px;
  background: var(--gradient);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.pillar-body h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.pillar-body p {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
}

.about-visual {
  position: relative;
}

.about-card-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  transition: all var(--transition);
}

.stat-card:hover {
  background: var(--card-hover);
  border-color: rgba(131, 64, 255, 0.25);
}

.stat-card-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 0.5rem;
}

.stat-card-value {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 0.25rem;
}

.stat-card-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.badge-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.75rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: rgba(131, 64, 255, 0.12);
  border: 1px solid rgba(131, 64, 255, 0.25);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--violet);
}

.trend-up {
  color: #34d399;
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ── Technology ───────────────────────────────────────────── */
#technology {
  background: var(--light-bg);
  color: var(--light-text);
}

#technology .eyebrow { color: var(--purple); }

#technology .section-title { color: var(--light-text); }
#technology .section-sub { color: var(--light-muted); }

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

.tech-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.25rem 2rem;
  border: 1.5px solid rgba(6, 5, 47, 0.06);
  box-shadow: 0 2px 16px rgba(6, 5, 47, 0.06);
  transition: all 0.35s ease;
}

.tech-card:hover {
  box-shadow: 0 8px 40px rgba(131, 64, 255, 0.12);
  border-color: rgba(131, 64, 255, 0.2);
  transform: translateY(-4px);
}

.tech-icon {
  width: 52px; height: 52px;
  background: var(--gradient);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: white;
  margin-bottom: 1.5rem;
}

.tech-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--light-text);
  margin-bottom: 0.75rem;
}

.tech-card p {
  font-size: 0.9rem;
  color: var(--light-muted);
  line-height: 1.75;
}

/* ── Services ─────────────────────────────────────────────── */
#services {
  background: var(--navy-mid);
  position: relative;
  overflow: hidden;
}

#services::after {
  content: '';
  position: absolute;
  bottom: -200px; left: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(4, 73, 196, 0.1) 0%, transparent 70%);
  pointer-events: none;
}

.services-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3.5rem;
  gap: 2rem;
}

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

.service-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2.25rem;
  transition: all 0.35s ease;
  position: relative;
  overflow: hidden;
  cursor: default;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0;
  transition: opacity var(--transition);
}

.service-card:hover {
  background: var(--card-hover);
  border-color: rgba(131, 64, 255, 0.25);
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

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

.service-number {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  color: var(--muted-dark);
  margin-bottom: 1.25rem;
}

.service-icon {
  width: 56px; height: 56px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 1.5rem;
  transition: all var(--transition);
}

.service-card:hover .service-icon {
  background: var(--gradient);
  border-color: transparent;
}

.service-card h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.service-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.8;
  margin-bottom: 1.75rem;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--muted);
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 0.25rem 0.75rem;
  letter-spacing: 0.02em;
}

/* ── Investment Principles ────────────────────────────────── */
#principles {
  background: var(--navy);
  position: relative;
}

.principles-header { margin-bottom: 4rem; }

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

.principle-card {
  padding: 2.5rem 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--card-bg);
  transition: all 0.35s ease;
}

.principle-card:hover {
  background: var(--card-hover);
  border-color: rgba(131, 64, 255, 0.25);
  transform: translateY(-4px);
}

.principle-num {
  font-size: 3.5rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 1.25rem;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.principle-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.principle-card p {
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.75;
}

/* ── Contact ──────────────────────────────────────────────── */
#contact {
  background: var(--light-bg);
  color: var(--light-text);
}

#contact .eyebrow { color: var(--purple); }
#contact .section-title { color: var(--light-text); }

.contact-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 5rem;
  align-items: start;
}

.contact-info { padding-top: 0.5rem; }

.contact-info .section-sub {
  color: var(--light-muted);
  margin-bottom: 2.5rem;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.contact-detail {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
}

.contact-detail-icon {
  width: 40px; height: 40px;
  background: var(--gradient);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.contact-detail-text { color: var(--light-muted); }
.contact-detail-text strong { color: var(--light-text); font-weight: 600; display: block; }

.contact-form-wrap {
  background: white;
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: 0 4px 30px rgba(6, 5, 47, 0.1);
  border: 1.5px solid rgba(6, 5, 47, 0.06);
}

.form-group { margin-bottom: 1.25rem; }

.form-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--light-text);
  margin-bottom: 0.4rem;
  letter-spacing: 0.02em;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1.1rem;
  font-family: 'Poppins', sans-serif;
  font-size: 0.88rem;
  color: var(--light-text);
  background: #f8f8ff;
  border: 1.5px solid rgba(6, 5, 47, 0.1);
  border-radius: var(--radius);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--purple-hi);
  box-shadow: 0 0 0 3px rgba(131, 64, 255, 0.12);
  background: white;
}

.form-textarea { resize: vertical; min-height: 130px; }

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

.btn-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  font-size: 0.85rem;
  font-weight: 500;
  display: none;
  text-align: center;
}

.form-status.success {
  display: block;
  background: rgba(52, 211, 153, 0.1);
  color: #059669;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.form-status.error {
  display: block;
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ── Footer ───────────────────────────────────────────────── */
footer {
  background: var(--navy-mid);
  border-top: 1px solid var(--border);
  padding: 3rem 0 2rem;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.footer-brand .nav-logo-name { font-size: 1rem; }
.footer-brand .nav-logo-tag { color: var(--violet); }
.footer-brand p {
  font-size: 0.82rem;
  color: var(--muted);
  max-width: 280px;
  line-height: 1.7;
  margin-top: 0.75rem;
}

.footer-links-group {
  display: flex;
  gap: 4rem;
}

.footer-col h5 {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  margin-bottom: 1rem;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--muted);
  transition: color var(--transition);
}

.footer-col ul a:hover { color: white; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 2rem;
  flex-wrap: wrap;
}

.footer-legal {
  font-size: 0.72rem;
  color: var(--muted-dark);
  line-height: 1.7;
  max-width: 680px;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--muted-dark);
  white-space: nowrap;
}

/* ── Fade-in animation ────────────────────────────────────── */
.fade-up {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-up-delay-1 { transition-delay: 0.1s; }
.fade-up-delay-2 { transition-delay: 0.2s; }
.fade-up-delay-3 { transition-delay: 0.3s; }
.fade-up-delay-4 { transition-delay: 0.4s; }

/* ── Mobile nav drawer ────────────────────────────────────── */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999;
  background: rgba(6, 5, 47, 0.98);
  backdrop-filter: blur(20px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
}

.mobile-nav.open { display: flex; }

.mobile-nav a {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--muted);
  transition: color var(--transition);
}

.mobile-nav a:hover { color: white; }

.mobile-nav-close {
  position: absolute;
  top: 2rem; right: 2rem;
  background: none;
  border: none;
  color: white;
  font-size: 1.5rem;
  cursor: pointer;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-item:nth-child(2) { border-right: none; }
  .metric-item:nth-child(3) { border-top: 1px solid var(--border); }
  .metric-item:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }
  .contact-wrapper { grid-template-columns: 1fr; gap: 3rem; }
  .footer-top { flex-direction: column; }
}

@media (max-width: 768px) {
  .section { padding: 5rem 0; }
  .grid-2 { grid-template-columns: 1fr; gap: 3rem; }
  .grid-3 { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .services-header { flex-direction: column; align-items: flex-start; }
  .principles-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-portal { display: none; }
  .nav-toggle { display: flex; }
  .hero-h1 { font-size: 2.1rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .footer-links-group { flex-direction: column; gap: 2rem; }
  .footer-bottom { flex-direction: column; }
  .form-row { grid-template-columns: 1fr; }
  .about-card-stack { display: grid; grid-template-columns: 1fr 1fr; }
}

@media (max-width: 480px) {
  .container { padding: 0 1.25rem; }
  .hero-h1 { font-size: 1.65rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; justify-content: center; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-item { border-right: none; border-bottom: 1px solid var(--border); }
  .metric-item:last-child { border-bottom: none; }
  .about-card-stack { grid-template-columns: 1fr; }
}
