/* ══════════════════════════════════════════════
   AGENCE 402 — DESIGN SYSTEM
   Luxe Tech Editorial · Gold × Ivory × Precision
   Shared across all pages (EN + FR)
   ══════════════════════════════════════════════ */

:root {
  /* Gold palette — warm, rich, not brassy */
  --gold-100: #F5EDDC;
  --gold-200: #E8D5B0;
  --gold-300: #D4B97A;
  --gold-400: #C9A55A;
  --gold-500: #B8923E;
  --gold-600: #A07A2E;
  --gold-700: #7D5F24;

  /* Neutrals — near-white base */
  --ivory: #FDFCFA;
  --ivory-warm: #FAF9F7;
  --cream: #F2F0EC;
  --stone-100: #D8D4CC;
  --stone-200: #B5B0A6;
  --stone-300: #8A857B;
  --ink: #1C1B18;
  --ink-soft: #2E2D28;
  --ink-muted: #5A5850;

  /* Typography scale — modular scale 1.333 */
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-base: 1rem;
  --fs-md: 1.125rem;
  --fs-lg: 1.333rem;
  --fs-xl: 1.777rem;
  --fs-2xl: 2.369rem;
  --fs-3xl: 3.157rem;
  --fs-4xl: 4.209rem;
  --fs-5xl: 5.61rem;

  /* Spacing */
  --sp-xs: 0.5rem;
  --sp-sm: 1rem;
  --sp-md: 1.5rem;
  --sp-lg: 2.5rem;
  --sp-xl: 4rem;
  --sp-2xl: 6rem;
  --sp-3xl: 10rem;

  /* Easing */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Outfit', sans-serif;
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  line-height: 1.7;
  overflow-x: hidden;
}

::selection {
  background: var(--gold-300);
  color: var(--ink);
}

a { color: inherit; }

/* ══════════ ANIMATED CIRCUIT BACKGROUND ══════════ */
.circuit-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.circuit-bg svg { width: 100%; height: 100%; }

.circuit-grid {
  stroke: var(--gold-300);
  stroke-width: 0.5;
  opacity: 0.12;
}

.circuit-accent {
  stroke: var(--gold-500);
  stroke-width: 1.2;
  fill: none;
  stroke-dasharray: 800;
  animation: accentDraw 8s ease-in-out infinite;
  opacity: 0.22;
}

.circuit-accent:nth-child(2) { animation-delay: -2.6s; stroke-width: 0.9; opacity: 0.18; }
.circuit-accent:nth-child(3) { animation-delay: -5.2s; stroke-width: 0.7; opacity: 0.15; }
.circuit-accent:nth-child(4) { animation-delay: -1.3s; stroke-width: 1; opacity: 0.20; }
.circuit-accent:nth-child(5) { animation-delay: -3.9s; stroke-width: 0.8; opacity: 0.16; }
.circuit-accent:nth-child(6) { animation-delay: -6.5s; stroke-width: 0.6; opacity: 0.14; }

.circuit-node {
  fill: var(--gold-500);
  animation: nodeFlash 3s ease-in-out infinite;
}

.circuit-node:nth-child(odd) { animation-delay: -1.5s; }
.circuit-node:nth-child(3n) { animation-delay: -2.2s; }
.circuit-node:nth-child(4n) { animation-delay: -0.8s; }

@keyframes accentDraw {
  0% { stroke-dashoffset: 800; }
  100% { stroke-dashoffset: 0; }
}

@keyframes nodeFlash {
  0%, 100% { opacity: 0.08; r: 2.5; }
  50% { opacity: 0.4; r: 4; }
}

/* ══════════ LAYOUT ══════════ */
.page-wrapper { position: relative; z-index: 1; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.container-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

/* ══════════ NAVIGATION ══════════ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: var(--sp-md) 0;
  transition: all 0.6s var(--ease-out-expo);
}

.nav.scrolled {
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--gold-200);
  padding: var(--sp-sm) 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--sp-lg);
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: var(--fs-lg);
  color: var(--ink);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav-logo span { color: var(--gold-500); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--sp-lg);
  list-style: none;
}

.nav-links a {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--ink-muted);
  text-decoration: none;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  position: relative;
  transition: color 0.3s ease;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold-500);
  transition: width 0.4s var(--ease-out-expo);
}

.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  font-size: var(--fs-sm) !important;
  font-weight: 500 !important;
  color: var(--ink) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  padding: 0.65em 1.6em;
  border: 1px solid var(--gold-400);
  background: transparent;
  transition: all 0.4s var(--ease-out-expo) !important;
  cursor: pointer;
}

.nav-cta:hover {
  background: var(--gold-500) !important;
  color: var(--ivory) !important;
  border-color: var(--gold-500) !important;
}

.nav-cta::after { display: none !important; }

/* Language switcher */
.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.35em;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
}

.lang-switch a,
.lang-switch span {
  text-decoration: none;
  text-transform: uppercase;
  color: var(--stone-300);
  transition: color 0.3s ease;
}

.lang-switch a::after { display: none !important; }
.lang-switch a:hover { color: var(--ink); }
.lang-switch .current { color: var(--gold-600); font-weight: 500; }
.lang-switch .divider { color: var(--stone-100); }
.lang-switch .disabled { color: var(--stone-100); cursor: not-allowed; }

/* Mobile menu */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 1.5px;
  background: var(--ink);
  transition: all 0.3s ease;
}

/* ══════════ HERO ══════════ */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 5rem 0 var(--sp-2xl);
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-xl);
  align-items: center;
}

.hero-content { max-width: 600px; }

.hero-eyebrow {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-md);
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.35s forwards;
}

.hero-h1 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  font-size: clamp(2.5rem, 5vw, var(--fs-5xl));
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-md);
  opacity: 0;
  transform: translateY(30px);
  animation: fadeUp 1s var(--ease-out-expo) 0.5s forwards;
}

.hero-h1 em { font-style: italic; color: var(--gold-500); }

.hero-sub {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 480px;
  opacity: 0;
  transform: translateY(20px);
  animation: fadeUp 0.8s var(--ease-out-expo) 0.7s forwards;
}

.hero-sub strong { font-weight: 500; color: var(--ink-soft); }

/* Code terminal */
.hero-terminal {
  position: relative;
  opacity: 0;
  transform: translateY(40px) rotate(1deg);
  animation: fadeUp 1s var(--ease-out-expo) 0.9s forwards;
}

.terminal-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at center, rgba(184, 146, 62, 0.08) 0%, transparent 70%);
  border-radius: 20px;
  z-index: -1;
}

.terminal {
  background: var(--ink);
  border-radius: 12px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(28, 27, 24, 0.06),
    0 4px 8px rgba(28, 27, 24, 0.04),
    0 16px 40px rgba(28, 27, 24, 0.08),
    0 0 0 1px rgba(184, 146, 62, 0.1);
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: #E5534B; }
.terminal-dot:nth-child(2) { background: #E8B73A; }
.terminal-dot:nth-child(3) { background: #56A64B; }

.terminal-title {
  flex: 1;
  text-align: center;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.3);
  letter-spacing: 0.05em;
}

.terminal-body {
  padding: 24px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.9;
  color: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.terminal-body .line { opacity: 0; transform: translateX(-8px); }
.terminal-body .comment { color: rgba(255, 255, 255, 0.25); }
.terminal-body .keyword { color: var(--gold-300); }
.terminal-body .string { color: #8CB9A3; }
.terminal-body .func { color: #D4B97A; }
.terminal-body .operator { color: rgba(255, 255, 255, 0.4); }
.terminal-body .progress { color: var(--gold-400); }
.terminal-body .assert { color: #C07A6E; }

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--gold-400);
  opacity: 0;
  animation: blink 1s step-end infinite 4s;
  vertical-align: text-bottom;
}

@keyframes blink { 50% { opacity: 1; } }

/* ══════════ DIVIDER ══════════ */
.section-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-200) 20%, var(--gold-400) 50%, var(--gold-200) 80%, transparent 100%);
  position: relative;
}

.section-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: var(--gold-400);
  border-radius: 50%;
}

/* ══════════ SECTION SCAFFOLD ══════════ */
.section { padding: var(--sp-3xl) 0; position: relative; }
.section-sm { padding: var(--sp-2xl) 0; position: relative; }

.section-label {
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-600);
  margin-bottom: var(--sp-xl);
  display: flex;
  align-items: center;
  gap: 1em;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--gold-200), transparent);
}

.section-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, var(--fs-3xl));
  font-weight: 300;
  line-height: 1.12;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.section-heading em { font-style: italic; color: var(--gold-500); }

.section-lead {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
  max-width: 720px;
  margin-bottom: var(--sp-xl);
}

/* ══════════ SERVICES / CARDS ══════════ */
.services { padding: var(--sp-3xl) 0; position: relative; }

.services-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.services-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }

.service-card {
  position: relative;
  padding: var(--sp-xl);
  background: var(--ivory-warm);
  border: 1px solid var(--cream);
  border-radius: 2px;
  transition: all 0.6s var(--ease-out-expo);
  overflow: hidden;
  opacity: 0;
  transform: translateY(30px);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease-out-expo);
}

.service-card:hover::before { transform: scaleX(1); }

.service-card:hover {
  border-color: var(--gold-200);
  box-shadow: 0 8px 32px rgba(184, 146, 62, 0.06);
  transform: translateY(-2px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 1px solid var(--gold-100);
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.6s ease;
}

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

.service-number {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-4xl);
  font-weight: 300;
  color: var(--gold-200);
  line-height: 1;
  margin-bottom: var(--sp-md);
}

.service-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: var(--sp-md);
  line-height: 1.3;
}

.service-title .arrow { color: var(--gold-500); margin-right: 0.3em; }

.service-body {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
}

.service-audience {
  margin-top: var(--sp-md);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.05em;
  color: var(--gold-600);
  text-transform: uppercase;
}

/* ══════════ APPROACH ══════════ */
.approach { padding: var(--sp-3xl) 0; position: relative; }

.approach-inner {
  display: grid;
  grid-template-columns: 0.4fr 0.6fr;
  gap: var(--sp-xl);
  align-items: start;
}

.approach-headline {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 3.5vw, var(--fs-3xl));
  font-weight: 300;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.02em;
  position: sticky;
  top: 120px;
}

.approach-headline em { font-style: italic; color: var(--gold-500); }

.approach-pillars {
  display: flex;
  flex-direction: column;
  gap: var(--sp-lg);
}

.pillar {
  padding: var(--sp-md) 0;
  border-top: 1px solid var(--cream);
  opacity: 0;
  transform: translateY(20px);
}

.pillar-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--gold-500);
  letter-spacing: 0.1em;
  margin-bottom: var(--sp-xs);
}

.pillar-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.pillar-text {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ══════════ PHILOSOPHY / DIFFERENTIATORS ══════════ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-lg);
  margin-top: var(--sp-lg);
}

.diff-item {
  padding-top: var(--sp-md);
  border-top: 2px solid var(--gold-300);
  opacity: 0;
  transform: translateY(20px);
}

.diff-item h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-lg);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-xs);
}

.diff-item p {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ══════════ STORY / EDITORIAL TEXT ══════════ */
.editorial p {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.9;
  margin-bottom: var(--sp-md);
}

.editorial p:last-child { margin-bottom: 0; }
.editorial em { font-style: italic; color: var(--gold-600); }

/* ══════════ TEAM ══════════ */
.team { padding: var(--sp-3xl) 0; }

.team-intro { max-width: 600px; margin-bottom: var(--sp-xl); }

.team-intro p {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.8;
}

.team-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-lg);
}

.team-member {
  padding: var(--sp-xl);
  border: 1px solid var(--cream);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.5s var(--ease-out-expo);
}

.team-member:hover { border-color: var(--gold-200); }

.team-member-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: var(--sp-md);
}

.team-member-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-xl);
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
}

.team-member-role {
  font-size: var(--fs-sm);
  font-weight: 400;
  color: var(--gold-600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.team-member-exp {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--ink);
  margin-bottom: var(--sp-sm);
}

.team-member-bio {
  font-size: var(--fs-base);
  font-weight: 300;
  color: var(--ink-muted);
  line-height: 1.7;
}

/* ══════════ DOMAIN BLOCKS (detailed) ══════════ */
.domain-block {
  display: grid;
  grid-template-columns: 0.32fr 0.68fr;
  gap: var(--sp-xl);
  padding: var(--sp-xl) 0;
  border-top: 1px solid var(--cream);
  align-items: start;
  opacity: 0;
  transform: translateY(24px);
}

.domain-block:first-of-type { border-top: none; }

.domain-aside { position: sticky; top: 120px; }

.domain-name {
  font-family: 'Cormorant Garamond', serif;
  font-size: var(--fs-2xl);
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.domain-name .arrow { color: var(--gold-500); }

.domain-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  color: var(--gold-500);
  letter-spacing: 0.15em;
  margin-bottom: var(--sp-sm);
}

.domain-body p { margin-bottom: var(--sp-sm); color: var(--ink-muted); }
.domain-body .domain-lead { color: var(--ink-soft); font-weight: 400; }

.domain-constraint {
  display: block;
  margin: var(--sp-md) 0;
  padding-left: var(--sp-md);
  border-left: 2px solid var(--gold-300);
  font-style: italic;
  color: var(--ink-soft);
}

.domain-example {
  margin-top: var(--sp-md);
  padding: var(--sp-md);
  background: var(--ivory-warm);
  border: 1px solid var(--cream);
  border-radius: 2px;
  font-size: var(--fs-sm);
}

.domain-example strong {
  display: block;
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold-600);
  margin-bottom: var(--sp-xs);
  font-weight: 500;
}

/* ══════════ PARTNERS ══════════ */
.partners-note {
  margin-top: var(--sp-lg);
  padding: var(--sp-lg);
  border: 1px dashed var(--gold-200);
  border-radius: 2px;
  text-align: center;
  color: var(--stone-300);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-sm);
  letter-spacing: 0.04em;
}

/* ══════════ CTA SECTION ══════════ */
.cta-section { padding: var(--sp-3xl) 0; text-align: center; }

.cta-inner { max-width: 700px; margin: 0 auto; position: relative; }

.cta-heading {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 4vw, var(--fs-4xl));
  font-weight: 300;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-md);
}

.cta-heading em { font-style: italic; color: var(--gold-500); }

.cta-text {
  font-size: var(--fs-md);
  font-weight: 300;
  color: var(--ink-muted);
  margin-bottom: var(--sp-xl);
  line-height: 1.7;
}

.cta-meta {
  margin-top: var(--sp-lg);
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-sm);
  letter-spacing: 0.08em;
  color: var(--stone-300);
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 0.8em;
  padding: 1em 2.5em;
  background: var(--gold-500);
  color: var(--ivory);
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--gold-500);
  transition: all 0.5s var(--ease-out-expo);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s var(--ease-out-expo);
}

.cta-button:hover::before { transform: translateX(100%); }

.cta-button:hover {
  background: var(--gold-600);
  border-color: var(--gold-600);
  box-shadow: 0 4px 20px rgba(184, 146, 62, 0.25);
  transform: translateY(-1px);
}

.cta-button svg { width: 16px; height: 16px; transition: transform 0.3s ease; }
.cta-button:hover svg { transform: translateX(4px); }

/* Secondary / ghost link button */
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: 'Outfit', sans-serif;
  font-size: var(--fs-sm);
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  padding: 0.7em 1.6em;
  border: 1px solid var(--gold-400);
  transition: all 0.4s var(--ease-out-expo);
}

.btn-ghost:hover {
  background: var(--gold-500);
  color: var(--ivory);
  border-color: var(--gold-500);
}

.btn-ghost svg { width: 15px; height: 15px; transition: transform 0.3s ease; }
.btn-ghost:hover svg { transform: translateX(3px); }

/* ══════════ PAGE HEADER (interior pages) ══════════ */
.page-header { padding: calc(var(--sp-3xl) + 2rem) 0 var(--sp-2xl); }

.breadcrumb {
  font-family: 'JetBrains Mono', monospace;
  font-size: var(--fs-xs);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone-300);
  margin-bottom: var(--sp-md);
}

.breadcrumb a { color: var(--gold-600); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold-500); }

.page-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.5rem, 5vw, var(--fs-4xl));
  font-weight: 300;
  line-height: 1.05;
  color: var(--ink);
  letter-spacing: -0.03em;
  margin-bottom: var(--sp-md);
}

.page-title em { font-style: italic; color: var(--gold-500); }

/* ══════════ FOOTER ══════════ */
.footer { padding: var(--sp-xl) 0; border-top: 1px solid var(--cream); }

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
}

.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--ink);
}

.footer-logo span { color: var(--gold-500); }

.footer-left { display: flex; align-items: center; gap: var(--sp-lg); }
.footer-copy { font-size: var(--fs-sm); color: var(--stone-200); }

.footer-nav {
  display: flex;
  gap: var(--sp-md);
  list-style: none;
  font-size: var(--fs-sm);
}

.footer-nav a { color: var(--ink-muted); text-decoration: none; transition: color 0.3s ease; }
.footer-nav a:hover { color: var(--gold-600); }

.footer-right { font-size: var(--fs-sm); color: var(--stone-300); }
.footer-right a { color: var(--gold-600); text-decoration: none; transition: color 0.3s ease; }
.footer-right a:hover { color: var(--gold-500); }

/* ══════════ ANIMATIONS ══════════ */
@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0) rotate(0deg); }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.8s var(--ease-out-expo);
}

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

.stagger-children .reveal:nth-child(1) { transition-delay: 0s; }
.stagger-children .reveal:nth-child(2) { transition-delay: 0.12s; }
.stagger-children .reveal:nth-child(3) { transition-delay: 0.24s; }
.stagger-children .reveal:nth-child(4) { transition-delay: 0.36s; }
.stagger-children .reveal:nth-child(5) { transition-delay: 0.48s; }
.stagger-children .reveal:nth-child(6) { transition-delay: 0.6s; }

/* ══════════ GRAIN OVERLAY ══════════ */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  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-repeat: repeat;
  background-size: 256px 256px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .reveal, .service-card, .pillar, .team-member, .domain-block, .diff-item { opacity: 1 !important; transform: none !important; }
}

/* ══════════ RESPONSIVE ══════════ */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--sp-xl); }
  .hero-terminal { max-width: 500px; }
  .services-grid, .services-grid.cols-3 { grid-template-columns: 1fr; }
  .approach-inner { grid-template-columns: 1fr; gap: var(--sp-lg); }
  .approach-headline { position: static; }
  .team-grid { grid-template-columns: 1fr; }
  .diff-grid { grid-template-columns: 1fr; }
  .domain-block { grid-template-columns: 1fr; gap: var(--sp-md); }
  .domain-aside { position: static; }
}

@media (max-width: 640px) {
  :root {
    --sp-lg: 1.5rem;
    --sp-xl: 2.5rem;
    --sp-2xl: 4rem;
    --sp-3xl: 6rem;
  }

  .nav-links { display: none; }

  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(253, 252, 250, 0.98);
    backdrop-filter: blur(20px);
    padding: var(--sp-lg);
    border-bottom: 1px solid var(--cream);
  }

  .nav-toggle { display: flex; }

  .footer-inner { flex-direction: column; gap: var(--sp-md); text-align: center; }
  .footer-left { flex-direction: column; gap: var(--sp-xs); }
}
