@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #07070e;
  --surface: #0d0d1a;
  --card: #111122;
  --card-hover: #161630;
  --border: #1c1c38;
  --border-bright: #2a2a55;
  --indigo: #6366f1;
  --indigo-light: #818cf8;
  --cyan: #22d3ee;
  --cyan-dim: #0ea5e9;
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --gradient: linear-gradient(135deg, #6366f1, #22d3ee);
  --gradient-text: linear-gradient(90deg, #818cf8, #22d3ee);
  --glow: 0 0 40px rgba(99, 102, 241, 0.15);
  --glow-cyan: 0 0 40px rgba(34, 211, 238, 0.1);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── Typography ─── */
h1, h2, h3, h4 { font-family: 'Space Grotesk', sans-serif; line-height: 1.2; }

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

/* ─── Layout ─── */
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }
.section { padding: 100px 0; }
.section-sm { padding: 60px 0; }

/* ─── Nav ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 20px 0;
  transition: background 0.3s, border-bottom 0.3s, backdrop-filter 0.3s;
}

nav.scrolled {
  background: rgba(7, 7, 14, 0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
  text-decoration: none;
  color: var(--text);
  letter-spacing: -0.02em;
}

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

.nav-links { display: flex; align-items: center; gap: 36px; list-style: none; }

.nav-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--text); }

.nav-cta {
  background: var(--gradient) !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: unset !important;
  background-clip: unset !important;
  color: white !important;
  padding: 8px 20px;
  border-radius: 8px;
  font-weight: 600;
  transition: opacity 0.2s, transform 0.2s !important;
}
.nav-cta:hover { opacity: 0.85; transform: translateY(-1px); }

.nav-hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-hamburger span { display: block; width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s; }

/* ─── Buttons ─── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: 'Inter', sans-serif;
}

.btn-primary {
  background: var(--gradient);
  color: white;
}
.btn-primary:hover { opacity: 0.85; transform: translateY(-2px); box-shadow: 0 8px 30px rgba(99, 102, 241, 0.35); }

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border-bright);
}
.btn-outline:hover { border-color: var(--indigo-light); color: var(--indigo-light); transform: translateY(-2px); }

/* ─── Hero ─── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

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

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
}

.hero-orb-1 {
  width: 600px; height: 600px;
  background: var(--indigo);
  top: -100px; left: -100px;
  animation: float 8s ease-in-out infinite;
}

.hero-orb-2 {
  width: 400px; height: 400px;
  background: var(--cyan);
  bottom: -50px; right: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99, 102, 241, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99, 102, 241, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}

.hero-content { position: relative; z-index: 1; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.1);
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 100px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: var(--indigo-light);
  font-weight: 500;
  margin-bottom: 28px;
}

.hero-badge-dot {
  width: 6px; height: 6px;
  background: var(--cyan);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  max-width: 700px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 560px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 64px; }

.hero-stats {
  display: flex;
  gap: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.stat-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label { font-size: 0.82rem; color: var(--text-dim); margin-top: 2px; }

/* ─── Section headers ─── */
.section-label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--indigo-light);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.section-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 520px;
  line-height: 1.7;
}

.section-header { margin-bottom: 64px; }
.section-header.center { text-align: center; }
.section-header.center .section-sub { margin: 0 auto; }

/* ─── Cards ─── */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 32px;
  transition: background 0.25s, border-color 0.25s, transform 0.25s, box-shadow 0.25s;
}
.card:hover {
  background: var(--card-hover);
  border-color: var(--border-bright);
  transform: translateY(-4px);
  box-shadow: var(--glow);
}

/* ─── Services ─── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.service-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 20px;
}

.service-icon-indigo { background: rgba(99, 102, 241, 0.12); }
.service-icon-cyan { background: rgba(34, 211, 238, 0.1); }
.service-icon-purple { background: rgba(168, 85, 247, 0.12); }

.service-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 10px; }
.service-desc { color: var(--text-muted); font-size: 0.92rem; line-height: 1.7; margin-bottom: 20px; }

.service-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.15);
  color: var(--text-muted);
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 500;
}

/* ─── Tech stack ─── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 16px;
}

.tech-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  transition: all 0.2s;
}
.tech-item:hover {
  border-color: var(--border-bright);
  background: var(--card-hover);
  transform: translateY(-3px);
}

.tech-icon { font-size: 1.8rem; margin-bottom: 8px; }
.tech-name { font-size: 0.8rem; color: var(--text-muted); font-weight: 500; }

/* ─── Process ─── */
.process-list { display: flex; flex-direction: column; gap: 24px; }

.process-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 24px;
  align-items: start;
}

.process-num {
  width: 56px; height: 56px;
  border-radius: 14px;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--indigo-light);
  flex-shrink: 0;
}

.process-title { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.process-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.7; }

/* ─── CTA section ─── */
.cta-section {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  padding: 80px 60px;
  text-align: center;
}

.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.12) 0%, transparent 60%);
  pointer-events: none;
}

.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); letter-spacing: -0.03em; margin-bottom: 16px; }
.cta-section p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 36px; max-width: 480px; margin-left: auto; margin-right: auto; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ─── About page ─── */
.about-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }

.about-portrait {
  position: sticky;
  top: 120px;
}

.portrait-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  text-align: center;
}

.portrait-avatar {
  width: 100px; height: 100px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.4rem;
  margin: 0 auto 20px;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: white;
}

.portrait-name { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; }
.portrait-role { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 20px; }

.portrait-links { display: flex; flex-direction: column; gap: 10px; }
.portrait-link {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.88rem;
  transition: all 0.2s;
}
.portrait-link:hover { color: var(--text); border-color: var(--border-bright); }

.about-content h2 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 20px; }
.about-content p { color: var(--text-muted); line-height: 1.8; margin-bottom: 20px; }

.skills-section { margin-top: 48px; }
.skills-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 20px; }

.skill-group { margin-bottom: 28px; }
.skill-group-label { font-size: 0.8rem; color: var(--text-dim); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; }
.skill-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.skill-pill {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 500;
  transition: all 0.2s;
}
.skill-pill:hover { border-color: var(--indigo); color: var(--indigo-light); }

/* ─── Services page ─── */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.pricing-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 36px;
  position: relative;
  transition: all 0.25s;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: var(--glow); }

.pricing-card.featured {
  border-color: var(--indigo);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.08), rgba(22, 22, 48, 0.8));
}

.featured-badge {
  position: absolute;
  top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--gradient);
  color: white;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 16px;
  border-radius: 100px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.pricing-title { font-size: 1.1rem; font-weight: 600; margin-bottom: 8px; }
.pricing-price {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  margin: 16px 0 4px;
}
.pricing-period { color: var(--text-dim); font-size: 0.88rem; margin-bottom: 24px; }
.pricing-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; margin-bottom: 28px; }

.pricing-features { list-style: none; margin-bottom: 32px; }
.pricing-features li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  color: var(--text-muted);
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features .check { color: var(--cyan); font-size: 0.9rem; }

/* ─── Contact ─── */
.contact-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 64px; align-items: start; }

.contact-info h2 { font-size: 2rem; letter-spacing: -0.03em; margin-bottom: 16px; }
.contact-info p { color: var(--text-muted); line-height: 1.8; margin-bottom: 32px; }

.contact-methods { display: flex; flex-direction: column; gap: 16px; }
.contact-method {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: all 0.2s;
}
.contact-method:hover { border-color: var(--border-bright); transform: translateX(4px); }

.contact-method-icon {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(99, 102, 241, 0.1);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.contact-method-label { font-size: 0.78rem; color: var(--text-dim); }
.contact-method-value { font-size: 0.92rem; font-weight: 500; }

/* ─── Form ─── */
.form-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 40px;
}

.form-title { font-size: 1.3rem; font-weight: 600; margin-bottom: 28px; }

.form-group { margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

label { display: block; font-size: 0.85rem; font-weight: 500; color: var(--text-muted); margin-bottom: 8px; }

input, textarea, select {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  color: var(--text);
  font-size: 0.92rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
  resize: vertical;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}
input::placeholder, textarea::placeholder { color: var(--text-dim); }

select option { background: var(--surface); }

textarea { min-height: 130px; }

.form-submit { width: 100%; justify-content: center; margin-top: 8px; }

/* ─── Contextual overrides (replaces per-element inline styles) ─── */
.footer-logo span { color: var(--indigo-light); }
.page-header .section-title { max-width: 640px; }
.scroll-story-lead .section-sub { max-width: 340px; }
.about-content strong { color: var(--text); }

/* ─── Footer ─── */
footer {
  border-top: 1px solid var(--border);
  padding: 48px 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  color: var(--text);
}

.footer-links { display: flex; gap: 28px; }
.footer-links a { text-decoration: none; color: var(--text-dim); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--text); }

.footer-copy { color: var(--text-dim); font-size: 0.82rem; }

/* ─── Reveal animations ─── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.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.4s; }

/* ─── Keyframes ─── */
@keyframes float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-30px) scale(1.05); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.8); }
}

/* ─── Scroll Story (sticky-scroll carousel) ─── */
.scroll-story {
  position: relative;
  /* height is set by JS; default to auto so page renders without JS */
}

.scroll-story-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.scroll-story-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  padding: 80px 0 40px; /* top offset accounts for fixed nav */
}

.scroll-story-lead {
  /* static left panel */
}

/* Stage: all items stack in one grid cell; active one is opaque */
.scroll-story-stage {
  display: grid;
}

.ss-item {
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.55s ease, transform 0.55s ease;
  pointer-events: none;
  visibility: hidden;
}

.ss-item.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  visibility: visible;
}

.ss-item.is-exit {
  opacity: 0;
  transform: translateY(-20px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  visibility: visible;
  pointer-events: none;
}

/* Service items */
.ss-service-icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 28px;
}

/* Philosophy step number */
.ss-step-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(4rem, 7vw, 6rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.9;
  margin-bottom: 20px;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  opacity: 0.75;
}

.ss-title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 18px;
  color: var(--text);
}

.ss-desc {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 28px;
  max-width: 460px;
}

/* Progress track */
.ss-progress-track {
  height: 2px;
  background: var(--border);
  border-radius: 2px;
  margin-top: 44px;
  margin-bottom: 20px;
  overflow: hidden;
}

.ss-progress-bar {
  height: 100%;
  background: var(--gradient);
  border-radius: 2px;
  transition: width 0.45s ease;
}

/* Nav dots */
.ss-dots {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.ss-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border-bright);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: background 0.25s, transform 0.25s;
}

.ss-dot.is-active {
  background: var(--indigo-light);
  transform: scale(1.4);
}

/* Counter */
.ss-counter {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.82rem;
  color: var(--text-dim);
}
.ss-current { color: var(--text-muted); font-weight: 600; }

/* ─── Scroll Story mobile fallback ─── */
@media (max-width: 768px) {
  .scroll-story {
    height: auto !important;
  }

  .scroll-story-pin {
    position: relative;
    height: auto;
    padding: 64px 0;
  }

  .scroll-story-layout {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 0;
  }

  .scroll-story-stage {
    display: flex;
    flex-direction: column;
    gap: 40px;
  }

  .ss-item {
    grid-area: unset;
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }

  .ss-progress-track,
  .ss-dots,
  .ss-counter { display: none; }

  .ss-step-num { font-size: 3.5rem; }
  .ss-title { font-size: 1.5rem; }
}

/* ─── Split grid (2-col layout used on homepage) ─── */
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

/* ─── Responsive ─── */
@media (max-width: 768px) {
  /* Nav */
  .nav-links { display: none; flex-direction: column; position: absolute; top: 70px; left: 0; right: 0; background: rgba(7, 7, 14, 0.98); border-bottom: 1px solid var(--border); padding: 24px; gap: 20px; }
  .nav-links.open { display: flex; }
  .nav-hamburger { display: flex; }

  /* Hero */
  .hero { min-height: auto; padding: 120px 0 72px; }
  .hero h1 { font-size: 2.2rem; }
  .hero-sub { font-size: 1rem; }
  .hero-stats { gap: 24px; flex-wrap: wrap; }
  .hero-stats > div { flex: 1; min-width: 120px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { text-align: center; justify-content: center; }

  /* Grids */
  .philosophy-grid { grid-template-columns: repeat(2, 1fr); }
  .split-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-grid { grid-template-columns: 1fr; }
  .about-portrait { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); }

  /* Typography */
  .section-title { font-size: 1.7rem; }
  .stat-value { font-size: 1.6rem; }

  /* Components */
  .cta-section { padding: 48px 24px; }
  .form-card { padding: 28px 20px; }
  .portrait-card { max-width: 340px; margin: 0 auto; }
  .process-item { grid-template-columns: 44px 1fr; gap: 16px; }

  /* Spacing */
  .section { padding: 64px 0; }
  .section-header { margin-bottom: 40px; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; gap: 16px; }
}

/* ─── Page transition ─── */
.page-enter { animation: pageEnter 0.4s ease forwards; }
@keyframes pageEnter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
