/* ============================================================
   TOPOMAP TECHNOLOGIES — Design System
   ============================================================ */

/* ── Variables ────────────────────────────────────────────── */
:root {
  --navy: #0A1628;
  --navy-light: #132038;
  --navy-mid: #1A2D4A;
  --blue: #1570EF;
  --blue-dark: #1254B7;
  --blue-light: #53B1FD;
  --blue-wash: #EFF6FF;
  --teal: #0D9488;
  --teal-wash: #F0FDFA;
  --white: #FFFFFF;
  --gray-50: #F8FAFC;
  --gray-100: #F1F5F9;
  --gray-200: #E2E8F0;
  --gray-300: #CBD5E1;
  --gray-400: #94A3B8;
  --gray-500: #64748B;
  --gray-600: #475569;
  --gray-700: #334155;
  --gray-800: #1E293B;
  --gray-900: #0F172A;
  --amber-100: #FEF3C7;
  --amber-400: #F59E0B;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --max-w: 1140px;
  --transition: 0.25s ease;
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; overscroll-behavior: none; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  background: var(--white);
  color: var(--gray-700);
  line-height: 1.7;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── Typography ───────────────────────────────────────────── */
h1, h2, h3, h4 { color: var(--gray-900); line-height: 1.2; font-weight: 700; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); letter-spacing: -0.03em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); letter-spacing: -0.02em; }
h3 { font-size: clamp(1.1rem, 1.6vw, 1.3rem); font-weight: 600; }
h4 { font-size: 1rem; font-weight: 600; }

.label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.label::before {
  content: '';
  width: 20px;
  height: 2px;
  background: var(--blue);
  border-radius: 1px;
}

/* ── Layout ───────────────────────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section-header p { color: var(--gray-500); margin-top: 12px; font-size: 1.05rem; }

/* ── Buttons ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all var(--transition);
  border: none;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
}
.btn-primary:hover {
  background: var(--blue-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35);
}
.btn-secondary {
  background: var(--white);
  color: var(--gray-700);
  border: 1.5px solid var(--gray-200);
}
.btn-secondary:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-wash);
}
.btn-white {
  background: var(--white);
  color: var(--blue);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}

/* ── Navbar ───────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  padding: 16px 0;
  transition: all 0.3s ease;
}
.navbar.scrolled {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--gray-200);
  padding: 10px 0;
  box-shadow: 0 1px 12px rgba(0,0,0,0.04);
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--navy);
}
.nav-logo img, .nav-logo svg { height: 56px; width: auto; transition: filter 0.3s; }
/* On homepage: logo is white initially, normal when scrolled */
.navbar--hero .nav-logo img { filter: brightness(0) invert(1); }
.navbar--hero.scrolled .nav-logo img { filter: none; }
/* Nav link colors for hero pages */
.navbar--hero .nav-cta .btn-primary { background: rgba(255,255,255,0.12); border: 1px solid rgba(255,255,255,0.2); }
.navbar--hero .nav-cta .btn-primary:hover { background: var(--blue); border-color: var(--blue); }
.navbar--hero.scrolled .nav-cta .btn-primary { background: var(--blue); border: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-links a, .nav-dropdown > span {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-600);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.nav-links a:hover, .nav-dropdown:hover > span {
  color: var(--blue);
  background: var(--blue-wash);
}
.nav-links a.active {
  color: var(--blue);
  font-weight: 600;
}
/* Hero page navbar — white text on dark hero */
.navbar--hero .nav-links a, .navbar--hero .nav-dropdown > span { color: rgba(255,255,255,0.75); }
.navbar--hero .nav-links a:hover, .navbar--hero .nav-dropdown:hover > span { color: var(--white); background: rgba(255,255,255,0.08); }
.navbar--hero .nav-dropdown-menu {
  background: var(--navy-light);
  border-color: rgba(255,255,255,0.1);
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
}
.navbar--hero .nav-dropdown-menu a { color: rgba(255,255,255,0.75); }
.navbar--hero .nav-dropdown-menu a:hover { background: rgba(255,255,255,0.1); color: var(--white); }
.navbar--hero .nav-dropdown-menu a.active { color: var(--blue-light); }
.navbar--hero .nav-links a.active { color: var(--white); }
.navbar--hero .hamburger span { background: rgba(255,255,255,0.8); }
/* Hero page scrolled — revert to normal */
.navbar--hero.scrolled .nav-links a, .navbar--hero.scrolled .nav-dropdown > span { color: var(--gray-600); }
.navbar--hero.scrolled .nav-links a:hover, .navbar--hero.scrolled .nav-dropdown:hover > span { color: var(--blue); background: var(--blue-wash); }
.navbar--hero.scrolled .nav-dropdown-menu {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.navbar--hero.scrolled .nav-dropdown-menu a { color: var(--gray-600); }
.navbar--hero.scrolled .nav-dropdown-menu a:hover { background: var(--blue-wash); color: var(--blue); }
.navbar--hero.scrolled .nav-links a.active { color: var(--blue); }
.navbar--hero.scrolled .hamburger span { background: var(--gray-700); }

/* Dropdown */
.nav-dropdown {
  position: relative;
}
.nav-dropdown > span svg {
  width: 14px; height: 14px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5;
  transition: transform 0.2s;
}
.nav-dropdown:hover > span svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  min-width: 220px;
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s ease;
}
.nav-dropdown:hover .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
  color: var(--gray-600);
}
.nav-dropdown-menu a:hover {
  background: var(--blue-wash);
  color: var(--blue);
}
.nav-cta .btn { padding: 9px 22px; font-size: 0.88rem; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gray-700);
  border-radius: 2px;
  transition: all 0.3s;
}
.hamburger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--white);
  z-index: 999;
  padding: 80px 24px 24px;
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  font-size: 1.1rem;
  font-weight: 500;
  color: var(--gray-700);
  padding: 14px 16px;
  border-radius: var(--radius);
  transition: all var(--transition);
}
.mobile-menu a:hover { background: var(--blue-wash); color: var(--blue); }
.mobile-menu .btn { margin-top: 16px; justify-content: center; color: var(--white) !important; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(160deg, #0A1628 0%, #0F2035 40%, #122B4A 70%, #0A1628 100%);
  color: var(--white);
}
.hero h1 { color: var(--white); }
.hero-bg-pattern {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 8L72 24V56L40 72L8 56V24L40 8z' fill='none' stroke='%2353B1FD' stroke-width='0.5'/%3E%3C/svg%3E");
  background-size: 80px 80px;
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--white) 0%, transparent 100%);
  pointer-events: none;
}
.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 100px;
  padding: 6px 16px 6px 10px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--blue-light);
  margin-bottom: 24px;
}
.hero-badge .dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-light);
  box-shadow: 0 0 8px var(--blue-light);
}
.hero-title { margin-bottom: 20px; }
.hero-title .highlight {
  color: var(--blue-light);
  position: relative;
}
.hero-desc {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 32px;
  max-width: 520px;
  line-height: 1.7;
}
.hero-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .btn-primary {
  background: var(--blue);
  box-shadow: 0 4px 20px rgba(21, 112, 239, 0.4);
}
.hero .btn-primary:hover {
  background: var(--blue-light);
  box-shadow: 0 4px 28px rgba(83, 177, 253, 0.4);
}
.hero .btn-secondary {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.2);
}
.hero .btn-secondary:hover {
  border-color: var(--blue-light);
  background: rgba(255,255,255,0.05);
  color: var(--blue-light);
}
.hero-trust {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.4);
  display: flex;
  align-items: center;
  gap: 6px;
}
.hero-trust svg { width: 16px; height: 16px; stroke: rgba(255,255,255,0.4); fill: none; stroke-width: 2; }

/* Hero visual */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Hero photo container */
.hero-photo-container {
  position: relative;
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.3), 0 0 0 1px rgba(37, 99, 235, 0.1);
}
.hero-photo {
  width: 100%;
  height: 360px;
  object-fit: cover;
  display: block;
}
.hero-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 22, 40, 0.3) 0%, rgba(37, 99, 235, 0.2) 100%);
  pointer-events: none;
}

/* Location pins */
.hero-pin {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.3));
  animation: hero-pin-float 3s ease-in-out infinite;
}
.hero-pin:nth-child(3) { animation-delay: -1s; }
.hero-pin:nth-child(4) { animation-delay: -2s; }
@keyframes hero-pin-float {
  0%, 100% { transform: translate(-50%, -100%); }
  50% { transform: translate(-50%, calc(-100% - 4px)); }
}

/* Pin pulse */
.hero-pin-pulse {
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(37, 99, 235, 0.4);
  animation: pin-pulse 2s ease-out infinite;
}
@keyframes pin-pulse {
  0% { transform: translateX(-50%) scale(1); opacity: 0.6; }
  100% { transform: translateX(-50%) scale(3); opacity: 0; }
}

/* GED floating label */
.hero-float-label {
  position: absolute;
  z-index: 3;
  background: rgba(37, 99, 235, 0.9);
  backdrop-filter: blur(8px);
  color: white;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4);
  animation: hero-pin-float 4s ease-in-out infinite;
  animation-delay: -0.5s;
}

/* Network lines SVG */
.hero-network-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

/* ── Cards ────────────────────────────────────────────────── */
.card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.card:hover {
  border-color: var(--blue);
  box-shadow: 0 8px 28px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-wash);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.card-icon svg {
  width: 24px; height: 24px;
  stroke: var(--blue); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.6; }
.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue);
  transition: gap var(--transition);
}
.card-link:hover { gap: 10px; }
.card-link svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}

/* Services grid */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

/* ── Why section ──────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.why-card {
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}
.why-card:hover {
  background: var(--white);
  border-color: var(--gray-200);
  box-shadow: 0 4px 16px rgba(0,0,0,0.04);
}
.why-card h3 { margin-bottom: 10px; font-size: 1.1rem; }
.why-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.65; }

/* ── Realisations grid ────────────────────────────────────── */
.real-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.real-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition);
  display: flex;
  flex-direction: column;
}
.real-card:hover {
  border-color: var(--blue);
  box-shadow: 0 12px 36px rgba(37, 99, 235, 0.1);
  transform: translateY(-4px);
}
.real-card-visual {
  height: 220px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.real-card-visual.ged-visual {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A5F 100%);
}
.real-card-visual.portail-visual {
  background: linear-gradient(135deg, #0C4A6E 0%, #0369A1 100%);
}
.real-card-visual.carto-visual {
  background: linear-gradient(135deg, #064E3B 0%, #047857 100%);
}
.real-card-visual svg {
  width: 100%;
  height: 100%;
  max-width: 280px;
}
.real-card-body { padding: 28px; flex: 1; display: flex; flex-direction: column; }
.real-card-body h3 { margin-bottom: 6px; font-size: 1.2rem; }
.real-card-sector {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--blue);
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.real-card-body p { color: var(--gray-500); font-size: 0.92rem; margin-bottom: 16px; line-height: 1.6; flex: 1; }
.real-card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--blue);
  margin-top: auto;
  transition: gap var(--transition);
}
.real-card:hover .real-card-arrow { gap: 10px; }
.real-card-arrow svg {
  width: 16px; height: 16px;
  stroke: currentColor; fill: none;
  stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag {
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 100px;
}
.tag-green { background: #ECFDF5; color: #047857; }

/* ── Timeline / Approach ──────────────────────────────────── */
.timeline {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  position: relative;
}
.timeline::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 12px);
  right: calc(12.5% + 12px);
  height: 2px;
  background: var(--gray-200);
}
.timeline-step { text-align: center; position: relative; }
.timeline-num {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  font-weight: 700;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  position: relative;
  z-index: 1;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--gray-200);
}
.timeline-step h4 { margin-bottom: 6px; color: var(--gray-900); }
.timeline-step p { font-size: 0.88rem; color: var(--gray-500); }

/* ── Contact section ──────────────────────────────────────── */
.contact-section {
  background: var(--navy);
  color: var(--white);
  padding: 100px 0;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
}
.contact-info h2 { color: var(--white); margin-bottom: 12px; }
.contact-info > p { color: var(--gray-400); margin-bottom: 32px; font-size: 1.05rem; }
.contact-detail {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}
.contact-detail-icon {
  width: 42px; height: 42px;
  border-radius: var(--radius);
  background: var(--navy-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-detail-icon svg {
  width: 20px; height: 20px;
  stroke: var(--blue-light); fill: none;
  stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
.contact-detail-text span { display: block; font-size: 0.8rem; color: var(--gray-400); margin-bottom: 2px; }
.contact-detail-text a, .contact-detail-text p { color: var(--gray-200); font-size: 0.95rem; }
.contact-detail-text a:hover { color: var(--blue-light); }

/* Contact form */
.contact-form {
  background: var(--navy-light);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-300);
  margin-bottom: 6px;
}
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  background: var(--navy);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  color: var(--white);
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--gray-500); }
.form-group input:focus, .form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.contact-form .btn { width: 100%; justify-content: center; margin-top: 4px; }

/* ── Footer ───────────────────────────────────────────────── */
.footer {
  background: var(--gray-900);
  color: var(--gray-400);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.footer-brand p { margin-top: 14px; font-size: 0.9rem; line-height: 1.6; max-width: 280px; }
.footer-brand .nav-logo { margin-bottom: 4px; }
.footer h4 { color: var(--gray-200); font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 18px; }
.footer ul li { margin-bottom: 10px; }
.footer ul a { font-size: 0.9rem; color: var(--gray-400); transition: color var(--transition); }
.footer ul a:hover { color: var(--white); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  font-size: 0.82rem;
}
.footer-bottom a { color: var(--gray-400); margin-left: 20px; }
.footer-bottom a:hover { color: var(--white); }

/* ── Placeholder style ────────────────────────────────────── */
.placeholder {
  display: none;
}

/* ── Page header (inner pages) ────────────────────────────── */
.page-header {
  background: linear-gradient(170deg, var(--white) 0%, var(--gray-50) 50%, var(--blue-wash) 100%);
  padding: 140px 0 60px;
  text-align: center;
}
.page-header .label { justify-content: center; }
.page-header p { color: var(--gray-500); margin-top: 12px; font-size: 1.05rem; max-width: 560px; margin-left: auto; margin-right: auto; }

/* ── Service detail page ──────────────────────────────────── */
.service-detail { max-width: 780px; margin: 0 auto; }
.service-block { margin-bottom: 48px; }
.service-block h2 { font-size: 1.5rem; margin-bottom: 14px; }
.service-block p { color: var(--gray-600); line-height: 1.8; }
.service-block ul { margin-top: 12px; }
.service-block li {
  padding: 8px 0 8px 24px;
  position: relative;
  color: var(--gray-600);
}
.service-block li::before {
  content: '';
  position: absolute;
  left: 0; top: 16px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--blue-wash);
  border: 2px solid var(--blue);
}
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.tech-tag {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 100px;
}

/* ── Case study detail ────────────────────────────────────── */
.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 32px 0;
  padding: 24px;
  background: var(--gray-50);
  border-radius: var(--radius);
}
.case-meta-item span { display: block; font-size: 0.78rem; color: var(--gray-400); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.case-meta-item p { font-weight: 600; color: var(--gray-800); font-size: 0.95rem; }
.case-results {
  background: var(--blue-wash);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin: 32px 0;
}
.case-results h3 { margin-bottom: 16px; }
.case-results li {
  padding: 8px 0;
  color: var(--gray-700);
  font-size: 0.95rem;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.case-results li::before {
  content: '→';
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Team page ────────────────────────────────────────────── */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: 0 8px 28px rgba(0,0,0,0.06); }
.team-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.team-card h3 { margin-bottom: 4px; }
.team-card .role { color: var(--blue); font-size: 0.88rem; font-weight: 500; margin-bottom: 12px; }
.team-card .bio { color: var(--gray-500); font-size: 0.9rem; line-height: 1.6; margin-bottom: 16px; }
.team-card .team-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--blue);
  font-weight: 500;
}
.team-card .team-link:hover { text-decoration: underline; }

/* ── Values ───────────────────────────────────────────────── */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.value-card {
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--gray-50);
  border: 1px solid var(--gray-100);
}
.value-card h3 { margin-bottom: 10px; color: var(--gray-900); }
.value-card p { color: var(--gray-500); font-size: 0.95rem; line-height: 1.65; }

/* ── About story ──────────────────────────────────────────── */
.story-content {
  max-width: 720px;
  margin: 0 auto;
}
.story-content p {
  color: var(--gray-600);
  font-size: 1.05rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

/* ── CTA Banner ───────────────────────────────────────────── */
.cta-banner {
  background: var(--blue);
  color: var(--white);
  text-align: center;
  padding: 64px 24px;
  border-radius: var(--radius-xl);
  margin: 0 24px;
}
.cta-banner h2 { color: var(--white); margin-bottom: 12px; }
.cta-banner p { color: rgba(255,255,255,0.8); margin-bottom: 28px; max-width: 480px; margin-left: auto; margin-right: auto; }

/* ── Case study navigation ───────────────────────────────── */
.case-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--gray-200);
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Scroll reveal ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: if JS hasn't run after 2s, show everything */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.35s; }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero-desc { margin-left: auto; margin-right: auto; }
  .hero-buttons { justify-content: center; }
  .hero-trust { justify-content: center; }
  .hero-visual { margin-top: 40px; }
  .hero-photo { height: 280px; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .real-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: repeat(2, 1fr); }
  .timeline::before { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .hero-visual { display: none; }
  .services-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; }
  .real-grid { grid-template-columns: 1fr; }
  .timeline { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .values-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .page-header { padding: 120px 0 48px; }
  .case-nav { flex-direction: column; gap: 12px; }
}
