/* ============================================================
   TOKENS — Light mode (default)
   ============================================================ */
:root {
  /* Backgrounds */
  --bg:       #ffffff;
  --surface:  #f6f8fa;
  --border:   #d1d9e0;
  --border-l: #b0b8c1;

  /* Text hierarchy */
  --white:    #1a1f29;
  --text:     #2d333b;
  --muted:    #57606a;
  --subtle:   #8b949e;

  /* Accent */
  --copper:   #0060D6;
  --copper-d: #004DA6;
  --copper-l: #2E8DF7;
  --danger:   #cf222e;

  /* Theme-specific (previously hardcoded) */
  --nav-bg:         rgba(255,255,255,0.92);
  --nav-overlay:    rgba(255,255,255,1);
  --glow:           rgba(0,96,214,0.06);
  --logo-banner-bg: #ffffff;

  /* Type */
  --font-display: 'Bebas Neue', sans-serif;
  --font-body:    'Fraunces', serif;
  --font-mono:    'DM Mono', monospace;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --r: 2px;
}

/* ── Dark mode override ────────────────────────────── */
[data-theme="dark"] {
  --bg:       #0d1117;
  --surface:  #161b22;
  --border:   #30363d;
  --border-l: #484f58;

  --white:    #f0f6fc;
  --text:     #e6edf3;
  --muted:    #d0d7de;
  --subtle:   #8b949e;

  --copper:   #0070F2;
  --copper-d: #005BC1;
  --copper-l: #4DA3FF;
  --danger:   #f85149;

  --nav-bg:         rgba(11,13,15,0.92);
  --nav-overlay:    rgba(11,13,15,0.98);
  --glow:           rgba(200,121,65,0.07);
  --logo-banner-bg: white;
}

/* Smooth theme transition (applied only during toggle) */
html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease !important;
}

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

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.7;
  overflow-x: hidden;
  cursor: default;
}

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

/* ============================================================
   UTILITIES
   ============================================================ */
.label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
}

.label--copper { color: var(--copper); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-l);
  padding: 0.35rem 0.9rem;
  border-radius: 100px;
}

.tag::before {
  content: '';
  display: block;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--copper);
}

.divider {
  border: none;
  border-top: 1px solid var(--border);
}

/* fade-up animation */
.fade-up {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 3rem;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}

nav.scrolled {
  background: var(--nav-bg);
  border-color: var(--border);
  backdrop-filter: blur(12px);
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  letter-spacing: 0.05em;
  color: var(--white);
}

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

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

.nav-links a {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

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

.nav-cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--bg) !important;
  background: var(--copper);
  padding: 0.5rem 1.25rem;
  border-radius: var(--r);
  transition: background 0.2s ease !important;
}

.nav-cta:hover { background: var(--copper-d) !important; color: var(--white) !important; }

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  z-index: 101;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}
.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Theme Toggle */
.theme-toggle {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  padding: 0.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  transition: color 0.2s ease, border-color 0.2s ease;
  line-height: 0;
}

.theme-toggle:hover {
  color: var(--white);
  border-color: var(--border-l);
}

.theme-toggle svg { display: block; }

/* Show moon in light mode, sun in dark mode */
.theme-toggle .icon-sun  { display: none; }
.theme-toggle .icon-moon { display: block; }

[data-theme="dark"] .theme-toggle .icon-sun  { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 0 3rem;
  position: relative;
  overflow: hidden;
}

/* grid background */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  pointer-events: none;
}

/* radial glow */
.hero::after {
  content: '';
  position: absolute;
  top: -20%; left: 50%;
  transform: translateX(-50%);
  width: 900px; height: 700px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.hero-3d {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0;
  animation: fadeIn 2s ease 0.5s forwards;
}

.hero-3d canvas {
  width: 100% !important;
  height: 100% !important;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 8rem;
  padding-bottom: 4rem;
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.2s forwards;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(5rem, 10vw, 10rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
  color: var(--white);
  max-width: 14ch;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.35s forwards;
}

.hero-headline .accent { color: var(--copper); }

.hero-body-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  margin-top: 3rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.5s forwards;
}

.hero-deck {
  font-size: 1.1rem;
  line-height: 1.75;
  color: var(--text);
  max-width: 480px;
}

.hero-deck strong { color: var(--white); font-weight: 600; }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  align-self: start;
  border: 1px solid var(--border);
}

.hero-stat {
  background: var(--bg);
  padding: 1.25rem 1.5rem;
}

.hero-stat-num {
  font-family: var(--font-display);
  font-size: 2.2rem;
  color: var(--copper);
  line-height: 1;
  display: block;
  margin-bottom: 0.25rem;
}

.hero-stat-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero CTA button */
.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--copper);
  padding: 1rem 2rem;
  border-radius: var(--r);
  margin-top: 2.5rem;
  transition: background 0.2s ease;
  align-self: flex-start;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.65s forwards;
}

.hero-cta:hover { background: var(--copper-d); color: var(--white); }

.hero-scroll {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeUp 0.8s var(--ease) 0.7s forwards;
}

.hero-scroll-line {
  width: 40px;
  height: 1px;
  background: var(--border-l);
}

.hero-scroll-text {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============================================================
   SECTION CHROME
   ============================================================ */
section {
  padding: 7rem 3rem;
  border-bottom: 1px solid var(--border);
}

.section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4rem;
  gap: 3rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 5vw, 5rem);
  line-height: 0.95;
  letter-spacing: 0.02em;
  color: var(--white);
  max-width: 16ch;
}

.section-title .accent { color: var(--copper); }

.section-intro {
  max-width: 420px;
  font-size: 0.95rem;
  line-height: 1.8;
  color: var(--text);
  align-self: flex-end;
}

.section-link {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  transition: opacity 0.2s ease;
}

.section-link:hover { opacity: 0.7; }

/* ============================================================
   INDUSTRY SECTION (fault lines)
   ============================================================ */
#industry { background: var(--surface); }

.fault-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.fault-item {
  background: var(--surface);
  padding: 2.5rem 2rem;
  position: relative;
  transition: background 0.25s ease;
}

.fault-item:hover { background: var(--bg); }

.fault-num {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: 1;
  color: var(--subtle);
  opacity: 0.4;
  display: block;
  margin-bottom: 1.25rem;
}

.fault-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--copper);
  line-height: 1.3;
  margin-bottom: 1rem;
}

.fault-body {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
}

/* ============================================================
   RESPONSE / POSITIONING SECTION
   ============================================================ */
#positioning {
  background: var(--bg);
  position: relative;
  overflow: hidden;
}

#positioning::before {
  content: '';
  position: absolute;
  bottom: -30%; right: -10%;
  width: 700px; height: 700px;
  background: radial-gradient(ellipse, var(--glow) 0%, transparent 70%);
  pointer-events: none;
}

.positioning-pull {
  font-family: var(--font-body);
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 300;
  font-style: italic;
  line-height: 1.35;
  color: var(--white);
  max-width: 820px;
  margin-bottom: 4rem;
}

.positioning-pull strong {
  font-style: normal;
  font-weight: 600;
  color: var(--copper);
}

.positioning-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  padding-top: 3rem;
  border-top: 1px solid var(--border);
}

.positioning-cols p {
  font-size: 0.95rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.positioning-cols p:last-child { margin-bottom: 0; }

.positioning-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 3rem;
  max-width: 700px;
}

.positioning-bullets li {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}

.positioning-bullets li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.8rem;
}

/* ============================================================
   CLIENT LOGO CAROUSEL
   ============================================================ */
#clients {
  background: var(--surface);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.logo-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4rem;
  padding: 1rem 3rem;
  background: var(--logo-banner-bg);
  border-radius: 6px;
  margin: 0 2rem;
}

.logo-item {
  height: 24px;
  width: auto;
  display: block;
  opacity: 0.8;
}

.logo-item--tall {
  height: 34px;
}

/* ============================================================
   PARTNERS STRIP
   ============================================================ */
#partners {
  background: var(--surface);
  padding: 2.5rem 3rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.partners-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3.5rem;
}

.partners-label {
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-style: italic;
  color: var(--muted);
  white-space: nowrap;
  flex-shrink: 0;
}

.partners-strip .logo-item {
  height: 26px;
  opacity: 0.7;
  transition: opacity 0.2s ease;
}

.partners-strip .logo-item--tall {
  height: 36px;
}

.partners-strip .logo-item:hover {
  opacity: 1;
}

[data-theme="dark"] .partners-strip .logo-item {
  filter: brightness(0) invert(1);
  opacity: 0.6;
}

[data-theme="dark"] .partners-strip .logo-item:hover {
  opacity: 0.9;
}

/* ============================================================
   PRINCIPLES SECTION
   ============================================================ */
#principles { background: var(--surface); }

.principle-list { margin-top: 1rem; }

.principle-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 5rem;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
  align-items: start;
}

.principle-item:last-child { border-bottom: none; }

.principle-left { position: sticky; top: 7rem; }

.principle-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
  border: 1px solid var(--copper-d);
  padding: 0.25rem 0.75rem;
  margin-bottom: 1rem;
  border-radius: var(--r);
}

.principle-heading {
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.principle-vs {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: 0.75rem;
}

.principle-content h4 {
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 400;
  font-style: italic;
  color: var(--text);
  margin-bottom: 1rem;
}

.principle-content p {
  font-size: 0.9rem;
  line-height: 1.85;
  color: var(--text);
  margin-bottom: 1.25rem;
}

/* ============================================================
   SERVICES SECTION
   ============================================================ */
#services { background: var(--bg); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.service-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  transition: background 0.25s ease;
  position: relative;
}

.service-card:hover { background: var(--surface); }

.service-icon {
  color: var(--copper);
  line-height: 0;
  margin-bottom: 0.25rem;
  transition: color 0.25s ease;
}

.service-icon svg { display: block; }

.service-card:hover .service-icon { color: var(--copper-l); }

.service-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
}

.service-desc {
  font-size: 0.85rem;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
}

.service-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.service-bullets li {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
}

.service-bullets li:hover { color: var(--text); }

.service-bullets li::before {
  content: '\2192';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-size: 0.65rem;
}

/* ============================================================
   APPROACH SECTION
   ============================================================ */
#approach { background: var(--surface); }

.approach-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.approach-step {
  background: var(--surface);
  padding: 2.5rem 2rem;
  transition: background 0.25s ease;
}

.approach-step:hover { background: var(--bg); }

.approach-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  color: var(--subtle);
  opacity: 0.4;
  line-height: 1;
  margin-bottom: 1.5rem;
  display: block;
}

.approach-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 0.75rem;
}

.approach-body {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
}

/* ============================================================
   COMPARISON TABLE
   ============================================================ */
#comparison { background: var(--bg); }

.compare-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid var(--border);
  margin-top: 3rem;
  font-size: 0.88rem;
}

.compare-table thead tr {
  background: var(--surface);
  border-bottom: 1px solid var(--border-l);
}

.compare-table th {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  padding: 1rem 1.5rem;
  text-align: left;
  color: var(--muted);
}

.compare-table th.th-new {
  color: var(--copper);
  border-left: 1px solid var(--border);
}

.compare-table th.th-dim { color: var(--subtle); }

.compare-table td {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid var(--border);
  line-height: 1.6;
  vertical-align: top;
}

.compare-table tbody tr:last-child td { border-bottom: none; }

.compare-table td:first-child {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--subtle);
  white-space: nowrap;
  width: 180px;
}

.compare-table td.td-old { color: var(--subtle); }

.compare-table td.td-new {
  color: var(--text);
  border-left: 1px solid var(--border);
}

.compare-table td.td-new strong {
  color: var(--copper);
  font-weight: 400;
}

.compare-table tbody tr:hover td { background: var(--surface); }

/* ============================================================
   CREDENTIALS
   ============================================================ */
#credentials { background: var(--surface); }

.cert-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.cert-item {
  background: var(--surface);
  padding: 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
  transition: background 0.25s ease;
}

.cert-item:hover { background: var(--bg); }

.cert-img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--r);
}

.cert-text { text-align: center; }

.cert-name {
  font-size: 0.88rem;
  color: var(--text);
  line-height: 1.3;
}

.cert-org {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 0.35rem;
}

/* ============================================================
   CASE STUDIES
   ============================================================ */
#work { background: var(--bg); }

.work-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.work-item {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s ease;
  cursor: default;
}

.work-item:hover { background: var(--surface); }

.work-industry {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--copper);
}

.work-title {
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.work-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
}

/* ============================================================
   BLOG SECTION
   ============================================================ */
#blog { background: var(--surface); }

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.blog-card {
  background: var(--surface);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s ease;
  cursor: pointer;
}

.blog-card:hover { background: var(--bg); }

.blog-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
  margin-bottom: 0.25rem;
}

.blog-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.blog-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.4;
  flex: 1;
}

.blog-date {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--subtle);
}

/* ============================================================
   TOOLS SECTION
   ============================================================ */
#tools { background: var(--bg); }

.tools-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 3rem;
}

.tool-card {
  background: var(--bg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: background 0.25s ease;
  cursor: pointer;
}

.tool-card:hover { background: var(--surface); }

.tool-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: var(--r);
  border: 1px solid var(--border);
}

.tool-tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.tool-title {
  font-family: var(--font-body);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--white);
  line-height: 1.3;
}

.tool-desc {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
  flex: 1;
}

.tool-link {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--copper);
  transition: opacity 0.2s ease;
}

.tool-card:hover .tool-link { opacity: 0.75; }

/* ============================================================
   MCP SERVERS TABLE
   ============================================================ */
#mcp-servers { background: var(--surface); }

.mcp-cat-header {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
  background: var(--surface) !important;
  padding: 1.25rem 1.5rem !important;
  border-bottom: 1px solid var(--border) !important;
  font-weight: 500;
}

.mcp-link {
  color: var(--white);
  transition: color 0.2s ease;
  font-weight: 400;
}

.mcp-link:hover { color: var(--copper); }

.mcp-table td:first-child {
  white-space: normal;
  width: 240px;
}

/* ============================================================
   CONTACT / CTA
   ============================================================ */
#contact {
  background: var(--bg);
  border-bottom: none;
  position: relative;
  overflow: hidden;
}

#contact::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  pointer-events: none;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6rem;
  position: relative;
  z-index: 1;
}

.contact-statement {
  font-family: var(--font-display);
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.95;
  color: var(--white);
  letter-spacing: 0.02em;
}

.contact-statement .accent { color: var(--copper); }

.contact-cta {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--copper);
  padding: 1rem 2rem;
  border-radius: var(--r);
  margin-top: 1rem;
  transition: background 0.2s ease;
  align-self: flex-start;
}

.contact-cta:hover { background: var(--copper-d); color: var(--white); }

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 0.5rem;
}

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

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.form-input, .form-textarea {
  background: var(--surface);
  border: 1px solid var(--border-l);
  border-radius: var(--r);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 300;
  padding: 0.75rem 1rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.form-input:focus, .form-textarea:focus {
  border-color: var(--copper);
}

.form-input::placeholder, .form-textarea::placeholder {
  color: var(--subtle);
}

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

.form-submit {
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--bg);
  background: var(--copper);
  border: none;
  padding: 0.8rem 2rem;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.2s ease;
}

.form-submit:hover { background: var(--copper-d); color: var(--white); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.05em;
}

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

.footer-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.footer-links a {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color 0.2s ease;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  color: var(--subtle);
}

/* ============================================================
   ENGAGEMENT / PRICING SECTION
   ============================================================ */
#engagement { background: var(--surface); }

.engagement-table td.td-engagement-name {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--white);
  white-space: normal;
  text-transform: none;
  letter-spacing: 0;
  width: auto;
}

.engagement-table td.td-mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.pricing-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.pricing-bullets li {
  font-size: 0.88rem;
  line-height: 1.7;
  color: var(--text);
  padding-left: 1.5rem;
  position: relative;
}

.pricing-bullets li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--copper);
  font-weight: 600;
}

/* Timeline grid */
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.timeline-item {
  background: var(--surface);
  padding: 2rem 1.5rem;
  transition: background 0.25s ease;
}

.timeline-item:hover { background: var(--bg); }

.timeline-header {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}

.timeline-weeks {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--copper);
}

.timeline-phase {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: 0.03em;
  color: var(--white);
  line-height: 1.1;
}

.timeline-detail {
  font-size: 0.82rem;
  line-height: 1.75;
  color: var(--text);
}

/* ============================================================
   MEANS GRID (approach summary)
   ============================================================ */
.means-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.means-item {
  background: var(--surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  transition: background 0.25s ease;
}

.means-item:hover { background: var(--bg); }

.means-num {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--copper);
  line-height: 1;
}

.means-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   METRICS GRID (credentials delivery track record)
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
}

.metric-item {
  background: var(--surface);
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  text-align: center;
  transition: background 0.25s ease;
}

.metric-item:hover { background: var(--bg); }

.metric-num {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--copper);
  line-height: 1;
}

.metric-label {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}

/* ============================================================
   FIXED-PRICE SECTION
   ============================================================ */
#fixed-price { background: var(--surface); }

/* ============================================================
   KEYFRAMES
   ============================================================ */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .fault-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .approach-steps { grid-template-columns: repeat(2, 1fr); }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .tools-grid { grid-template-columns: repeat(2, 1fr); }
  .principle-item { grid-template-columns: 200px 1fr; gap: 3rem; }
  .timeline-grid { grid-template-columns: repeat(2, 1fr); }
  .means-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
  nav { padding: 1rem 1.5rem; }

  .nav-hamburger { display: flex; }

  .nav-links {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: var(--nav-overlay);
    backdrop-filter: blur(6px);
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    padding-top: 3rem;
    gap: 0;
    z-index: 100;
    overflow-y: auto;
  }

  .nav-links.open {
    display: flex;
    animation: nav-fade-in 0.2s ease forwards;
  }

  @keyframes nav-fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .nav-links li {
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .nav-links a {
    font-size: 1.1rem;
    letter-spacing: 0.08em;
    padding: 0.75rem 2rem;
    display: block;
    width: 100%;
    color: var(--text);
  }

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

  .nav-links .nav-cta {
    background: var(--copper);
    color: white;
    margin-top: 0.5rem;
    width: auto;
  }

  .nav-links .nav-cta:hover {
    background: var(--copper-d);
  }

  .nav-links .theme-toggle {
    padding: 0.75rem 1.5rem;
    color: var(--text);
    border-color: var(--border);
  }

  /* Hamburger X uses text color for contrast */
  .nav-hamburger.open .hamburger-line {
    background: var(--text);
  }

  section { padding: 5rem 1.5rem; }
  .hero { padding: 0 1.5rem; }
  .hero-headline { font-size: clamp(3.5rem, 16vw, 6rem); }
  .hero-body-row { grid-template-columns: 1fr; gap: 2rem; }
  .hero-stats { grid-template-columns: repeat(3, 1fr); }
  .section-header { flex-direction: column; }
  .fault-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .approach-steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: 1fr; }
  .blog-grid { grid-template-columns: 1fr; }
  .tools-grid { grid-template-columns: 1fr; }
  .positioning-cols { grid-template-columns: 1fr; gap: 2rem; }
  .principle-item { grid-template-columns: 1fr; gap: 1.5rem; }
  .principle-left { position: static; }
  .cert-row { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; }
  .timeline-grid { grid-template-columns: 1fr; }
  .means-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-inner { grid-template-columns: 1fr; gap: 3rem; }
  .form-row { grid-template-columns: 1fr; }
  footer { flex-direction: column; gap: 1.5rem; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  #clients { padding: 2.5rem 1.5rem; }
  .logo-banner { gap: 2rem; padding: 1rem 1.5rem; }
  .logo-item { height: 18px; }
  #partners { padding: 2rem 1.5rem; }
  .partners-strip { flex-direction: column; gap: 1.5rem; }
  .partners-strip .logo-item { height: 20px; }
  .partners-strip .logo-item--tall { height: 28px; }
}
