/* ============================================
   ELIVARD.COM v2 — Design System
   Dark-first premium midnight theme
   ============================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--text-primary);
  background-color: var(--bg-deep);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

input, textarea, select {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

/* ---------- DESIGN TOKENS ---------- */
:root {
  /* Backgrounds — Midnight */
  --bg-deep:        hsl(225, 25%, 5%);
  --bg-surface:     hsl(225, 20%, 8%);
  --bg-card:        hsl(225, 18%, 11%);
  --bg-card-hover:  hsl(225, 18%, 14%);
  --bg-elevated:    hsl(225, 18%, 16%);

  /* Text */
  --text-primary:   hsl(220, 15%, 90%);
  --text-secondary: hsl(220, 12%, 55%);
  --text-muted:     hsl(220, 10%, 35%);
  --text-inverse:   hsl(225, 25%, 5%);

  /* Accents — Coral Energy */
  --accent-primary:       hsl(350, 70%, 55%);
  --accent-primary-light: hsl(350, 70%, 65%);
  --accent-primary-dim:   hsl(350, 50%, 35%);
  --accent-secondary:     hsl(175, 65%, 50%);
  --accent-secondary-dim: hsl(175, 45%, 30%);
  --accent-warm:          hsl(35, 85%, 60%);

  /* Borders & Glow */
  --border:         hsl(225, 15%, 15%);
  --border-hover:   hsl(225, 15%, 22%);
  --border-subtle:  hsl(225, 12%, 12%);
  --glow-primary:   hsla(350, 70%, 55%, 0.15);
  --glow-secondary: hsla(175, 65%, 50%, 0.1);
  --glow-strong:    hsla(350, 70%, 55%, 0.3);

  /* Typography */
  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;

  /* Fluid type scale */
  --text-xs:   clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.83rem + 0.2vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem + 0.5vw, 1.375rem);
  --text-xl:   clamp(1.25rem, 1.1rem + 0.75vw, 1.75rem);
  --text-2xl:  clamp(1.5rem, 1.2rem + 1.5vw, 2.25rem);
  --text-3xl:  clamp(1.875rem, 1.4rem + 2.3vw, 3rem);
  --text-4xl:  clamp(2.25rem, 1.5rem + 3.5vw, 4rem);
  --text-5xl:  clamp(2.75rem, 1.8rem + 4.5vw, 5rem);

  /* Spacing scale */
  --space-3xs: 0.25rem;
  --space-2xs: 0.375rem;
  --space-xs:  0.5rem;
  --space-sm:  0.75rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  --space-4xl: 6rem;
  --space-5xl: 8rem;
  --space-6xl: 10rem;

  /* Border radius */
  --radius-sm: 0.375rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:  0 1px 2px hsla(0, 0%, 0%, 0.3);
  --shadow-md:  0 4px 12px hsla(0, 0%, 0%, 0.4);
  --shadow-lg:  0 8px 32px hsla(0, 0%, 0%, 0.5);
  --shadow-xl:  0 16px 48px hsla(0, 0%, 0%, 0.6);
  --shadow-glow-coral: 0 0 30px hsla(350, 70%, 55%, 0.2);
  --shadow-glow-teal:  0 0 30px hsla(175, 65%, 50%, 0.15);

  /* Easing */
  --ease-out:    cubic-bezier(0.25, 0.1, 0.25, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-expo:   cubic-bezier(0.16, 1, 0.3, 1);

  /* Layout */
  --content-max:  1200px;
  --content-wide: 1400px;
  --nav-height:   72px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

p {
  font-size: var(--text-base);
  color: var(--text-secondary);
  max-width: 65ch;
}

.text-gradient {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-coral { color: var(--accent-primary); }
.text-teal  { color: var(--accent-secondary); }
.text-muted { color: var(--text-muted); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.container--wide {
  max-width: var(--content-wide);
}

.section {
  padding-block: var(--space-5xl);
  position: relative;
}

.section--compact {
  padding-block: var(--space-3xl);
}

/* ---------- SKIP LINK (Accessibility) ---------- */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-md);
  background: var(--accent-primary);
  color: var(--text-primary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-sm);
  z-index: 10000;
  font-size: var(--text-sm);
  transition: top 0.2s var(--ease-out);
}

.skip-link:focus {
  top: var(--space-md);
}

/* ---------- SCROLL PROGRESS BAR ---------- */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
  z-index: 10001;
  transition: width 0.1s linear;
}

/* ---------- PLAYFUL CURSOR ---------- */
.cursor-glow {
  position: fixed;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    hsla(350, 70%, 55%, 0.06) 0%,
    hsla(350, 60%, 45%, 0.02) 40%,
    transparent 65%
  );
  pointer-events: none;
  z-index: 9999;
  will-change: transform;
  mix-blend-mode: screen;
}

.cursor-sparkle {
  position: fixed;
  border-radius: 50%;
  background: var(--accent-primary);
  pointer-events: none;
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.4s ease, transform 0.4s ease;
  will-change: opacity, transform;
}

/* Hide custom cursor on touch devices */
@media (hover: none) {
  .cursor-glow,
  .cursor-sparkle {
    display: none;
  }
}

/* ---------- NAVIGATION ---------- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  z-index: 1000;
  background: hsla(225, 25%, 5%, 0.8);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border-subtle);
  transition: transform 0.35s var(--ease-smooth), background 0.3s var(--ease-smooth);
}

.nav--hidden {
  transform: translateY(-100%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: var(--content-wide);
  margin-inline: auto;
  padding-inline: var(--space-lg);
}

.nav__logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: var(--space-xs);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-2xl);
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  position: relative;
  transition: color 0.25s var(--ease-smooth);
  padding-block: var(--space-xs);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s var(--ease-expo);
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

.nav__cta {
  font-size: var(--text-sm);
  font-weight: 600;
  padding: var(--space-xs) var(--space-lg);
  background: var(--accent-primary);
  color: var(--text-primary);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-smooth);
}

.nav__cta:hover {
  background: var(--accent-primary-light);
  box-shadow: var(--shadow-glow-coral);
  transform: translateY(-1px);
}

/* Mobile nav toggle */
.nav__toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: var(--space-xs);
}

.nav__toggle span {
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s var(--ease-smooth);
}

/* Mobile panel */
.nav__mobile-panel {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg-deep);
  z-index: 999;
  flex-direction: column;
  padding: var(--space-2xl) var(--space-lg);
  gap: var(--space-lg);
  opacity: 0;
  transform: translateY(-20px);
  transition: all 0.3s var(--ease-smooth);
}

.nav__mobile-panel.open {
  display: flex;
  opacity: 1;
  transform: translateY(0);
}

.nav__mobile-panel .nav__link {
  font-size: var(--text-xl);
  font-weight: 600;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--nav-height) + var(--space-3xl));
  padding-bottom: var(--space-3xl);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

/* Gradient orbs — ambient atmosphere */
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.07;
  will-change: transform;
}

.hero__orb--coral {
  width: 600px;
  height: 600px;
  background: var(--accent-primary);
  top: -10%;
  right: -10%;
  animation: float-orb 30s ease-in-out infinite;
}

.hero__orb--teal {
  width: 500px;
  height: 500px;
  background: var(--accent-secondary);
  bottom: -15%;
  left: -5%;
  animation: float-orb 25s ease-in-out infinite reverse;
}

.hero__orb--amber {
  width: 350px;
  height: 350px;
  background: var(--accent-warm);
  top: 40%;
  left: 50%;
  animation: float-orb 35s ease-in-out infinite 5s;
}

@keyframes float-orb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%      { transform: translate(30px, -40px) scale(1.05); }
  50%      { transform: translate(-20px, 20px) scale(0.95); }
  75%      { transform: translate(40px, 30px) scale(1.02); }
}

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

/* Hero split layout */
.hero__split {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-3xl);
}

.hero__text {
  max-width: 600px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  padding: var(--space-3xs) var(--space-md);
  background: hsla(350, 70%, 55%, 0.1);
  border: 1px solid hsla(350, 70%, 55%, 0.2);
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  color: var(--accent-primary);
  font-weight: 500;
  margin-bottom: var(--space-xl);
  letter-spacing: 0.02em;
}

.hero__badge svg {
  width: 14px;
  height: 14px;
}

.hero__title {
  margin-bottom: var(--space-lg);
  opacity: 0;
  animation: fade-in-up 0.8s var(--ease-expo) 0.2s forwards;
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero__title .word {
  display: inline-block;
  opacity: 0;
  transform: translateY(20px);
  animation: word-reveal 0.6s var(--ease-expo) forwards;
}

@keyframes word-reveal {
  from {
    opacity: 0;
    transform: translateY(20px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

.hero__subtitle {
  opacity: 0;
  animation: fade-in-up 0.7s var(--ease-expo) 0.8s forwards;
}

.hero__actions {
  opacity: 0;
  animation: fade-in-up 0.7s var(--ease-expo) 1s forwards;
}

/* Rotating word in headline */
.hero__rotating {
  display: block;
  position: relative;
  height: 1.2em;
  overflow: hidden;
}

.hero__rotating-word {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-block;
  opacity: 0;
  transform: translateY(100%);
  transition: opacity 0.5s var(--ease-expo), transform 0.5s var(--ease-expo);
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

.hero__rotating-word.active {
  opacity: 1;
  transform: translateY(0);
}

.hero__rotating-word.exit {
  opacity: 0;
  transform: translateY(-100%);
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 600px;
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

/* Hero illustration (right column) */
.hero__illustration {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.hero__illustration-glow {
  position: absolute;
  width: 160%;
  height: 160%;
  top: -30%;
  left: -30%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    hsla(350, 70%, 45%, 0.22) 0%,
    hsla(350, 60%, 40%, 0.12) 30%,
    hsla(350, 50%, 30%, 0.05) 55%,
    transparent 70%
  );
  filter: blur(25px);
  animation: glow-pulse 8s ease-in-out infinite;
}

@keyframes glow-pulse {
  0%, 100% { opacity: 0.8; transform: scale(1); }
  50%      { opacity: 1; transform: scale(1.08); }
}

.hero__svg {
  width: 100%;
  max-width: 500px;
  height: auto;
}

/* SVG line draw-in animation */
.hero-line {
  stroke-dasharray: var(--line-length);
  stroke-dashoffset: var(--line-length);
  animation: draw-line 0.8s var(--ease-expo) forwards;
  animation-delay: var(--line-delay);
}

@keyframes draw-line {
  to { stroke-dashoffset: 0; }
}

/* SVG node fade-in + scale */
.hero-node {
  opacity: 0;
  transform-origin: center;
  animation: node-appear 0.5s var(--ease-spring) forwards;
  animation-delay: var(--node-delay);
}

@keyframes node-appear {
  0%   { opacity: 0; transform: scale(0); }
  70%  { opacity: 1; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

/* Center node ring pulse */
.hero-node-ring {
  opacity: 0;
  animation: ring-pulse 3s ease-in-out infinite;
  animation-delay: 1.5s;
}

@keyframes ring-pulse {
  0%, 100% { opacity: 0.15; r: 48; }
  50%      { opacity: 0.35; r: 56; }
}

/* Cursor blink in code editor */
.hero-cursor {
  animation: cursor-blink 1s step-end infinite;
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0; }
}

/* Rocket flame flicker */
.hero-flame {
  animation: flame-flicker 0.4s ease-in-out infinite alternate;
}

@keyframes flame-flicker {
  0%   { opacity: 0.3; transform: scaleY(0.85); }
  100% { opacity: 0.7; transform: scaleY(1.15); }
}

/* Globe location ping */
.hero-ping {
  animation: ping-dot 2s ease-in-out infinite;
}

@keyframes ping-dot {
  0%, 100% { opacity: 0.4; r: 2; }
  50%      { opacity: 1; r: 4; }
}

/* Data flow particles along motion paths */
.hero-data-flow {
  opacity: 0.6;
}

/* Small gear counter-rotation */
.hero-gear-sm {
  animation: gear-counter 20s linear infinite;
  transform-origin: 140px 360px;
}

@keyframes gear-counter {
  from { transform: rotate(0deg); }
  to   { transform: rotate(-360deg); }
}

/* Ambient floating particles */
.hero-particle {
  opacity: 0;
  animation: particle-drift var(--p-dur) ease-in-out infinite;
  animation-delay: var(--p-delay);
}

@keyframes particle-drift {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 0.6; }
  85%  { opacity: 0.6; }
  100% { opacity: 0; transform: translate(var(--p-dx), var(--p-dy)); }
}

/* ---------- TRUST SECTION ---------- */
.trust-section {
  padding-block: var(--space-2xl);
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-surface);
}

.trust-section .trust-bar {
  justify-content: center;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-full);
  transition: all 0.3s var(--ease-smooth);
  white-space: nowrap;
}

.btn--primary {
  padding: var(--space-sm) var(--space-xl);
  background: linear-gradient(135deg, var(--accent-primary), hsl(350, 65%, 50%));
  color: white;
  box-shadow: 0 4px 20px hsla(350, 70%, 55%, 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 30px hsla(350, 70%, 55%, 0.4);
}

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

.btn--ghost {
  padding: var(--space-sm) var(--space-xl);
  background: transparent;
  border: 1px solid var(--border-hover);
  color: var(--text-secondary);
}

.btn--ghost:hover {
  border-color: var(--text-secondary);
  color: var(--text-primary);
  transform: translateY(-1px);
}

.btn--icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* ---------- TRUST BAR ---------- */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xl);
  align-items: center;
}

.trust-bar__item {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.trust-bar__icon {
  width: 20px;
  height: 20px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

.trust-bar__text {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.trust-bar__text strong {
  color: var(--text-primary);
  font-weight: 700;
}

/* ---------- SECTION HEADERS ---------- */
.section-header {
  margin-bottom: var(--space-3xl);
  max-width: 700px;
}

.section-header__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-primary);
  margin-bottom: var(--space-md);
}

.section-header__label svg {
  width: 16px;
  height: 16px;
}

.section-header__title {
  margin-bottom: var(--space-md);
}

.section-header__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
}

/* ---------- CARDS ---------- */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  transition: all 0.4s var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

/* Fully clickable card (anchor tag) */
.card--link {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

/* ---- Animated radial border on hover ---- */
.card--border-anim::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: conic-gradient(
    from var(--border-angle, 0deg),
    transparent 0%,
    var(--card-accent, var(--accent-primary)) 25%,
    transparent 50%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--ease-smooth);
}

.card--border-anim:hover::before {
  opacity: 1;
  animation: border-spin 1.5s linear infinite;
}

@keyframes border-spin {
  to { --border-angle: 360deg; }
}

@property --border-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Inner glow on hover */
.card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  opacity: 0;
  transition: opacity 0.5s var(--ease-smooth);
  pointer-events: none;
  z-index: 0;
}

.card:hover {
  transform: translateY(-4px);
  border-color: transparent;
  box-shadow: var(--shadow-lg);
}

.card:hover::after {
  opacity: 1;
}

/* Per-card accent colors */
#card-systemes { --card-accent: var(--accent-primary); }
#card-mvp { --card-accent: var(--accent-secondary); }
#card-web { --card-accent: var(--accent-warm); }

#card-systemes::after {
  background: radial-gradient(ellipse at 30% 80%, hsla(350, 70%, 55%, 0.08) 0%, transparent 60%);
}
#card-mvp::after {
  background: radial-gradient(ellipse at 70% 20%, hsla(175, 65%, 50%, 0.08) 0%, transparent 60%);
}
#card-web::after {
  background: radial-gradient(ellipse at 50% 90%, hsla(35, 85%, 60%, 0.08) 0%, transparent 60%);
}

/* ---- Card illustration ---- */
.card__illus {
  width: 100%;
  height: 140px;
  margin-bottom: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.card__svg {
  width: 100%;
  height: 100%;
  transition: transform 0.4s var(--ease-smooth);
}

.card:hover .card__svg {
  transform: scale(1.04);
}

/* SVG element hover animations */
.card__gear {
  transition: transform 0.6s var(--ease-smooth);
  transform-origin: 40px 120px;
}
.card:hover .card__gear {
  animation: card-gear-spin 4s linear infinite;
  transform-origin: 40px 120px;
}
@keyframes card-gear-spin {
  to { transform: rotate(360deg); }
}

.card__flame {
  transition: opacity 0.3s;
}
.card:hover .card__flame {
  animation: card-flame-flicker 0.3s ease-in-out infinite alternate;
}
@keyframes card-flame-flicker {
  from { opacity: 0.3; transform: scaleY(0.85); }
  to   { opacity: 0.6; transform: scaleY(1.2); }
}

.card__flow-line {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 0.5s;
}
.card:hover .card__flow-line {
  animation: card-flow 2s linear infinite;
}
@keyframes card-flow {
  to { stroke-dashoffset: -28; }
}

.card__globe {
  transition: transform 0.6s var(--ease-smooth);
  transform-origin: 210px 140px;
}
.card:hover .card__globe {
  animation: card-globe-spin 6s linear infinite;
  transform-origin: 210px 140px;
}
@keyframes card-globe-spin {
  to { transform: rotate(360deg); }
}

/* ---- Card tags ---- */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
  position: relative;
  z-index: 1;
}

.tag--subtle {
  background: hsla(225, 15%, 25%, 0.5);
  color: var(--text-muted);
  font-size: 0.72rem;
  padding: 0.2em 0.65em;
  border-radius: var(--radius-sm);
  letter-spacing: 0.02em;
  border: 1px solid hsla(225, 15%, 30%, 0.3);
}

.card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
  position: relative;
  z-index: 1;
}

.card__body {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

/* Card icon — mini unDraw illustration container */
.card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.card__icon svg {
  width: 32px;
  height: 32px;
}

.card__icon--coral {
  background: hsla(350, 70%, 55%, 0.1);
  color: var(--accent-primary);
}

.card__icon--teal {
  background: hsla(175, 65%, 50%, 0.1);
  color: var(--accent-secondary);
}

.card__icon--amber {
  background: hsla(35, 85%, 60%, 0.1);
  color: var(--accent-warm);
}

/* ---------- BACK LINK (service pages) ---------- */
.hero__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-lg);
  transition: color 0.2s ease, gap 0.2s ease;
  position: relative;
  z-index: 2;
}

.hero__back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.hero__back:hover {
  color: var(--text-primary);
}

.hero__back:hover svg {
  transform: translateX(-3px);
}

/* ---------- SERVICE HERO LAYOUT (2-col with illustration) ---------- */
.hero--service .hero__content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: var(--space-2xl);
}

.hero--service .hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hero__illus {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.hero__illus-svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* Illustration animations */
@keyframes floatSlow {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes gearSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes pulse {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.7; }
}

@keyframes dashFlow {
  from { stroke-dashoffset: 20; }
  to { stroke-dashoffset: 0; }
}

.illus-float { animation: floatSlow 4s ease-in-out infinite; }
.illus-float-delay { animation: floatSlow 4s ease-in-out infinite 1s; }
.illus-float-delay2 { animation: floatSlow 4s ease-in-out infinite 2s; }
.illus-gear { animation: gearSpin 12s linear infinite; transform-origin: center; }
.illus-pulse { animation: pulse 3s ease-in-out infinite; }
.illus-dash { stroke-dasharray: 6 4; animation: dashFlow 1.5s linear infinite; }

@media (max-width: 900px) {
  .hero--service .hero__content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero--service .hero__text {
    align-items: center;
  }

  .hero__illus {
    order: -1;
    max-width: 300px;
    margin-inline: auto;
  }
}

.card__link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-xs);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--accent-primary);
  transition: gap 0.3s var(--ease-smooth);
  position: relative;
  z-index: 1;
}

.card__link:hover {
  gap: var(--space-sm);
}

.card__link svg {
  width: 16px;
  height: 16px;
  transition: transform 0.3s var(--ease-smooth);
}

.card__link:hover svg {
  transform: translateX(4px);
}

/* Cards grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.cards-grid--4col {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .cards-grid--4col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 580px) {
  .cards-grid--4col {
    grid-template-columns: 1fr;
  }
}

/* ---------- GLASS CARD (Services, Contact) ---------- */
.glass-card {
  background: hsla(225, 20%, 10%, 0.6);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid hsla(225, 15%, 20%, 0.3);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
}

/* ---------- ACT DIVIDER ---------- */
.act-divider {
  position: relative;
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.act-divider__line {
  width: 100%;
  max-width: 300px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-primary), var(--accent-secondary), transparent);
  opacity: 0.4;
}

/* ---------- ABOUT / PROFILE ---------- */
.about__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

/* Photo placeholder */
.about__photo {
  width: 280px;
  height: 340px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--bg-card), var(--bg-elevated));
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.about__photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

.about__photo-initials {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.4;
}

.about__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 60%, var(--bg-deep) 100%);
}

.about__details {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.about__detail {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  color: var(--text-secondary);
}

.about__detail svg {
  width: 18px;
  height: 18px;
  color: var(--accent-primary);
  flex-shrink: 0;
}

/* ---------- CASE STUDIES ---------- */
.case-studies {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: var(--space-xl);
}

.case-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all 0.4s var(--ease-smooth);
}

.case-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.case-card__image {
  height: 200px;
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-elevated));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  border-bottom: 1px solid var(--border);
}

/* Placeholder for project images */
.case-card__image-placeholder {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.case-card__content {
  padding: var(--space-xl);
}

.case-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.tag {
  font-size: var(--text-xs);
  font-weight: 500;
  padding: var(--space-3xs) var(--space-sm);
  border-radius: var(--radius-full);
  background: hsla(225, 15%, 20%, 0.5);
  color: var(--text-secondary);
}

.tag--coral {
  background: hsla(350, 70%, 55%, 0.12);
  color: var(--accent-primary);
}

.tag--teal {
  background: hsla(175, 65%, 50%, 0.12);
  color: var(--accent-secondary);
}

.case-card__title {
  font-size: var(--text-xl);
  margin-bottom: var(--space-sm);
}

.case-card__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.case-card__metrics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.case-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-md);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s, gap 0.2s;
}

.case-card__link:hover {
  color: var(--accent-primary);
  gap: 10px;
}

.case-card__link svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.metric {
  display: flex;
  align-items: center;
  gap: var(--space-2xs);
  font-size: var(--text-xs);
  font-weight: 600;
}

.metric__value {
  color: var(--accent-primary);
  font-weight: 700;
}

.metric__label {
  color: var(--text-muted);
}

/* ---------- METHOD / TIMELINE ---------- */
/* ---------- APPROACH / TIMELINE ---------- */
.approach {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-xl);
  position: relative;
  padding-top: var(--space-2xl);
}

/* Radial glow behind the line — centered on the path area */
.approach::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 400px;
  background: radial-gradient(
    ellipse 80% 60% at 50% 55%,
    hsla(0, 0%, 100%, 0.06) 0%,
    hsla(0, 0%, 100%, 0.03) 40%,
    transparent 80%
  );
  z-index: 0;
  pointer-events: none;
}

/* SVG path — sits behind illustrations */
.approach__path-svg {
  position: absolute;
  top: 60px;
  left: 0;
  width: 100%;
  height: 180px;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
  /* Override reveal-stagger initial hide */
  opacity: 1 !important;
  transform: none !important;
}

.approach__path-line {
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
  transition: stroke-dashoffset 2s cubic-bezier(0.4, 0, 0.2, 1);
}

.approach.is-visible .approach__path-line {
  stroke-dashoffset: 0;
}

/* Each step */
.approach__step {
  text-align: center;
  position: relative;
  z-index: 1;
}

/* Illustration container */
.approach__illus {
  width: 100%;
  height: 140px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  margin-bottom: var(--space-lg);
  position: relative;
  z-index: 2;
}

.approach__svg {
  width: 100%;
  max-width: 180px;
  height: auto;
  transition: transform 0.4s var(--ease-smooth);
}

.approach__step:hover .approach__svg {
  transform: translateY(-6px) scale(1.03);
}

/* Step number */
.approach__number {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-sm);
  color: var(--accent-primary);
  letter-spacing: 0.05em;
  margin-bottom: var(--space-2xs);
  text-transform: uppercase;
}

/* Title */
.approach__title {
  font-size: var(--text-xl);
  font-weight: 700;
  margin-bottom: var(--space-3xs);
}

/* Duration badge */
.approach__duration {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-secondary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-sm);
}

/* Description */
.approach__desc {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  max-width: 260px;
  margin-inline: auto;
  line-height: 1.6;
}

/* ---------- CONTACT FORM ---------- */
.contact {
  background: var(--bg-surface);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: start;
}

.contact__info {
  padding-top: var(--space-xl);
}

.contact__promise {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin-top: var(--space-2xl);
  padding: var(--space-md);
  background: hsla(175, 65%, 50%, 0.06);
  border: 1px solid hsla(175, 65%, 50%, 0.12);
  border-radius: var(--radius-md);
}

.contact__promise svg {
  width: 20px;
  height: 20px;
  color: var(--accent-secondary);
  flex-shrink: 0;
}

.contact__promise span {
  font-size: var(--text-sm);
  color: var(--accent-secondary);
  font-weight: 500;
}

.form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-2xl);
}

.form__group {
  margin-bottom: var(--space-lg);
}

.form__label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--space-xs);
}

.form__input,
.form__textarea {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: var(--text-base);
  transition: all 0.25s var(--ease-smooth);
}

.form__input:focus,
.form__textarea:focus {
  border-color: var(--accent-primary);
  box-shadow: 0 0 0 3px hsla(350, 70%, 55%, 0.1);
}

.form__textarea {
  min-height: 140px;
  resize: vertical;
}

.form__input::placeholder,
.form__textarea::placeholder {
  color: var(--text-muted);
}

.form__submit {
  width: 100%;
  padding: var(--space-sm) var(--space-xl);
  background: linear-gradient(135deg, var(--accent-primary), hsl(350, 65%, 50%));
  color: white;
  font-weight: 600;
  font-size: var(--text-base);
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: all 0.3s var(--ease-smooth);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
}

.form__submit:hover {
  box-shadow: 0 6px 30px hsla(350, 70%, 55%, 0.35);
  transform: translateY(-1px);
}

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

/* Service chips */
.form__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.form__chip {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-secondary);
  font-size: var(--text-sm);
  font-family: var(--font-body);
  cursor: pointer;
  transition: all 0.2s var(--ease-smooth);
}

.form__chip:hover {
  border-color: var(--accent-primary);
  color: var(--text-primary);
}

.form__chip.active {
  background: hsla(350, 70%, 55%, 0.08);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  font-weight: 500;
}

/* Budget select */
.form__select {
  width: 100%;
  padding: var(--space-sm) var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-family: var(--font-body);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23888' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  cursor: pointer;
  transition: border-color 0.2s;
}

.form__select:focus {
  outline: none;
  border-color: var(--accent-primary);
}

/* RGPD consent text */
.form__consent {
  font-size: var(--text-xs);
  color: var(--text-muted);
  line-height: 1.5;
  margin-top: var(--space-sm);
  text-align: center;
}

.form__consent a {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__consent a:hover {
  color: var(--accent-primary);
}

/* Error message */
.form__error {
  display: none;
  color: var(--accent-primary);
  font-size: var(--text-sm);
  line-height: 1.5;
  margin: var(--space-md) 0;
  padding: var(--space-sm) var(--space-md);
  background: hsla(350, 70%, 55%, 0.08);
  border-left: 3px solid var(--accent-primary);
  border-radius: var(--radius-sm);
  animation: form-step-in 0.3s ease forwards;
}

/* Form step transitions */
.form__step {
  display: none;
}

.form__step.active {
  display: block;
  animation: form-step-in 0.4s var(--ease-expo) forwards;
}

@keyframes form-step-in {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Success state */
.form__success {
  display: none;
  text-align: center;
  padding: var(--space-3xl) var(--space-xl);
  animation: form-step-in 0.5s var(--ease-expo) forwards;
}

.form__success.active {
  display: block;
}

.form__success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: hsla(175, 65%, 50%, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-lg);
}

.form__success-icon svg {
  width: 32px;
  height: 32px;
  color: var(--accent-secondary);
}

/* ---------- FOOTER ---------- */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding-block: var(--space-3xl);
}

.footer__inner {
  display: flex;
  justify-content: space-between;
  align-items: start;
  flex-wrap: wrap;
  gap: var(--space-2xl);
}

.footer__brand {
  max-width: 300px;
}

.footer__brand-name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-xs);
}

.footer__brand-desc {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.6;
}

.footer__links {
  display: flex;
  gap: var(--space-3xl);
}

.footer__col-title {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: var(--space-md);
}

.footer__col a {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-muted);
  padding-block: var(--space-3xs);
  transition: color 0.2s var(--ease-smooth);
}

.footer__col a:hover {
  color: var(--accent-primary);
}

.footer__bottom {
  margin-top: var(--space-2xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-md);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__social {
  display: flex;
  gap: var(--space-md);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: all 0.3s var(--ease-smooth);
}

.footer__social a:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  transform: translateY(-2px);
}

.footer__social svg {
  width: 18px;
  height: 18px;
}

/* ---------- FLOATING CTA ---------- */
.floating-cta {
  position: fixed;
  bottom: var(--space-xl);
  right: var(--space-xl);
  z-index: 900;
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
  transition: all 0.4s var(--ease-spring);
}

.floating-cta.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: all;
}

.floating-cta.hidden-near-contact {
  opacity: 0;
  transform: translateY(20px) scale(0.9);
  pointer-events: none;
}

.floating-cta__btn {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-xl);
  background: linear-gradient(135deg, var(--accent-primary), hsl(350, 65%, 50%));
  color: white;
  font-weight: 600;
  font-size: var(--text-sm);
  border-radius: var(--radius-full);
  box-shadow: 0 8px 32px hsla(350, 70%, 55%, 0.3);
  transition: all 0.3s var(--ease-smooth);
}

.floating-cta__btn:hover {
  box-shadow: 0 12px 40px hsla(350, 70%, 55%, 0.4);
  transform: translateY(-2px);
}

.floating-cta__btn svg {
  width: 18px;
  height: 18px;
}

/* ---------- SCROLL REVEAL ANIMATIONS ---------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s var(--ease-expo), transform 0.7s var(--ease-expo);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal--left {
  transform: translateX(-40px);
}

.reveal--left.visible {
  transform: translateX(0);
}

.reveal--right {
  transform: translateX(40px);
}

.reveal--right.visible {
  transform: translateX(0);
}

.reveal--scale {
  transform: scale(0.95);
}

.reveal--scale.visible {
  transform: scale(1);
}

/* Stagger children */
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease-expo), transform 0.6s var(--ease-expo);
}

.reveal-stagger.visible > *:nth-child(1) { transition-delay: 0ms; }
.reveal-stagger.visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.visible > *:nth-child(6) { transition-delay: 400ms; }

.reveal-stagger.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* ---------- REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }

  .reveal-stagger > * {
    opacity: 1;
    transform: none;
  }

  .hero__orb {
    animation: none;
  }

  .hero__title .word {
    opacity: 1;
    transform: none;
    animation: none;
  }
}

/* ---------- RESPONSIVE ---------- */

/* Tablet */
@media (max-width: 1024px) {
  .approach {
    grid-template-columns: repeat(2, 1fr);
  }

  .approach__path-svg {
    display: none;
  }

  .about__grid {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .about__details {
    justify-content: center;
  }

  .contact__grid {
    grid-template-columns: 1fr;
  }

  .hero__split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .hero__svg {
    max-width: 380px;
  }

  .footer__links {
    gap: var(--space-2xl);
  }
}

/* Mobile */
@media (max-width: 768px) {
  .section {
    padding-block: var(--space-3xl);
  }

  .nav__links {
    display: none;
  }

  .nav__toggle {
    display: flex;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .case-studies {
    grid-template-columns: 1fr;
  }

  .approach {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .trust-bar {
    gap: var(--space-lg);
  }

  .hero__split {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__text {
    max-width: 100%;
  }

  .hero__illustration {
    order: -1;
    max-width: 240px;
    margin-inline: auto;
  }

  .hero__actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero__rotating {
    overflow: visible;
  }

  .footer__inner {
    flex-direction: column;
  }

  .footer__links {
    flex-direction: column;
    gap: var(--space-xl);
  }

  .footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .floating-cta {
    right: var(--space-md);
    bottom: var(--space-md);
  }

  .hero__orb--coral { width: 300px; height: 300px; }
  .hero__orb--teal { width: 250px; height: 250px; }
  .hero__orb--amber { display: none; }

  .form__step [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .container {
    padding-inline: var(--space-md);
  }

  .hero__subtitle {
    font-size: var(--text-base);
  }

  .card {
    padding: var(--space-lg);
  }

  .form {
    padding: var(--space-lg);
  }

  .about__photo {
    width: 200px;
    height: 240px;
  }
}
