@font-face {
  font-family: 'SF Pro Display';
  src: local('SF Pro Display'), local('-apple-system'), local('BlinkMacSystemFont');
  font-weight: 100 900;
}

:root {
  --bg: #fafafa;
  --bg-warm: #f2f0ec;
  --bg-cream: #ede8df;
  --ink: #0a0a0a;
  --ink-soft: #3d3d3d;
  --ink-muted: #8e8e93;
  --ink-faint: #c7c7cc;
  --rule: #e5e5e7;
  --accent: #ff4824;
  --accent-soft: #ffece6;
  --accent-deep: #c8351b;
  --gold: #d4a574;
  --sage: #a8b5a0;
  --sky: #b8c5d6;
  --display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', system-ui, sans-serif;
  --text: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', system-ui, sans-serif;
  --mono: 'SF Mono', ui-monospace, 'JetBrains Mono', Menlo, monospace;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
}

.container--narrow { max-width: 920px; }
.container--wide { max-width: 1440px; }

/* ============ NAV ============ */
nav {
  position: sticky;
  top: 0;
  background: rgba(250, 250, 250, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 100;
  padding: 16px 0;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.nav-logo-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  margin-left: 2px;
  vertical-align: 1px;
}

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

.nav-links a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 14px;
  font-weight: 450;
  letter-spacing: -0.01em;
  transition: color 0.2s;
}

.nav-links a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--bg) !important;
  padding: 9px 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-cta:hover {
  background: var(--accent) !important;
  transform: scale(1.02);
}

@media (max-width: 768px) {
  /* On mobile, hide page nav links but keep theme toggle + CTA visible */
  .nav-links li:not(:last-child):not(.nav-toggle-item) { display: none; }
}

/* ============ HERO ============ */
.hero {
  padding: 100px 0 120px;
  position: relative;
  overflow: hidden;
}

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

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

.hero-orb--1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #ffd4c4 0%, transparent 70%);
  top: -200px;
  right: -100px;
}

.hero-orb--2 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #e8e0d0 0%, transparent 70%);
  bottom: -150px;
  left: -100px;
}

.hero-grid-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 0, 0, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 0, 0, 0.025) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

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

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--ink-soft);
  margin-bottom: 40px;
  padding: 7px 14px 7px 12px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 72, 36, 0.15);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(255, 72, 36, 0.15); }
  50% { box-shadow: 0 0 0 8px rgba(255, 72, 36, 0.04); }
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(52px, 8vw, 108px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  font-weight: 600;
  margin-bottom: 36px;
  max-width: 14ch;
  color: var(--ink);
}

.hero h1 .accent {
  color: var(--accent);
  font-weight: 500;
}

.hero-lede {
  font-size: clamp(20px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 56ch;
  margin-bottom: 48px;
  font-weight: 400;
  letter-spacing: -0.015em;
}

.hero-lede strong {
  color: var(--ink);
  font-weight: 600;
}

.hero-ctas {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 16px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  border: none;
  font-family: inherit;
  white-space: nowrap;
}

.btn-primary {
  background: var(--ink);
  color: var(--bg);
}

.btn-primary:hover {
  background: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(255, 72, 36, 0.25);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(10px);
  color: var(--ink);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(0, 0, 0, 0.12);
}

.btn .arrow {
  transition: transform 0.25s;
  font-size: 14px;
}

.btn:hover .arrow { transform: translateX(3px); }

/* Hero portrait card */
.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 64px;
  padding-top: 32px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.hero-portrait {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--gold) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(255, 72, 36, 0.2);
  position: relative;
  overflow: hidden;
}

.hero-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.3), transparent 50%);
}

.hero-meta-text {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink-soft);
}

.hero-meta-text strong {
  color: var(--ink);
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

/* ============ RITSON QUOTE ============ */
.ritson {
  padding: 80px 0;
  background: var(--ink);
  color: var(--bg);
  position: relative;
  overflow: hidden;
}

.ritson::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 72, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 80% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%);
}

.ritson .container { position: relative; z-index: 1; }

.ritson-inner {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 48px;
  align-items: center;
}

.ritson-portrait {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4a3a2a 0%, #2a2018 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #d4a574;
  font-family: var(--display);
  font-weight: 700;
  font-size: 48px;
  letter-spacing: -0.03em;
  flex-shrink: 0;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08), 0 20px 40px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

.ritson-portrait::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.15), transparent 60%);
}

.ritson-quote {
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 38px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.025em;
  margin-bottom: 24px;
  color: white;
}

.ritson-quote .mark {
  color: var(--accent);
  font-weight: 600;
}

.ritson-attr {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 12px;
}

.ritson-attr strong {
  color: white;
  font-weight: 600;
}

.ritson-attr::before {
  content: '';
  width: 32px;
  height: 1px;
  background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .ritson-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .ritson-portrait { margin: 0 auto; width: 100px; height: 100px; font-size: 36px; }
  .ritson-attr { justify-content: center; }
  .ritson-attr::before { display: none; }
}

/* ============ TRUST STRIP ============ */
.trust {
  padding: 64px 0;
  background: var(--bg);
}

.trust-label {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  text-align: center;
  margin-bottom: 36px;
  font-weight: 500;
}

.trust-logos {
  display: flex;
  justify-content: center;
  gap: 64px;
  flex-wrap: wrap;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.02em;
  opacity: 0.5;
}

.trust-logos span {
  transition: opacity 0.2s;
  cursor: default;
}

.trust-logos:hover span { opacity: 0.4; }
.trust-logos span:hover { opacity: 1; }

@media (max-width: 768px) {
  .trust-logos { gap: 28px; font-size: 16px; }
}

/* ============ SECTION HEADINGS ============ */
.section-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-eyebrow-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
}

.section-title {
  font-family: var(--display);
  font-size: clamp(40px, 5.5vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 600;
  max-width: 16ch;
  margin-bottom: 56px;
  color: var(--ink);
}

.section-title .accent {
  color: var(--accent);
  font-weight: 500;
}

/* ============ WORK / CASE STUDY ============ */
.work {
  padding: 56px 0 120px;
  background: var(--bg);
  position: relative;
}

.case-hero {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 80px;
  align-items: start;
  margin-bottom: 100px;
}

.case-body {
  position: relative;
}

.case-image {
  width: 100%;
  aspect-ratio: 4/3;
  background:
    linear-gradient(135deg, var(--bg-cream) 0%, var(--bg-warm) 100%);
  border-radius: 16px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06), 0 8px 24px rgba(0,0,0,0.04);
}

.case-image::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 72, 36, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.2) 0%, transparent 50%);
}

.case-image-content {
  position: absolute;
  inset: 0;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.case-image-label {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.case-image-chart {
  position: absolute;
  inset: 50% 40px 40px 40px;
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 35%;
}

.chart-bar {
  flex: 1;
  background: var(--ink);
  border-radius: 4px 4px 0 0;
  opacity: 0.08;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar:nth-child(1) { height: 8%; }
.chart-bar:nth-child(2) { height: 12%; }
.chart-bar:nth-child(3) { height: 15%; }
.chart-bar:nth-child(4) { height: 22%; }
.chart-bar:nth-child(5) { height: 30%; }
.chart-bar:nth-child(6) { height: 42%; }
.chart-bar:nth-child(7) { height: 58%; }
.chart-bar:nth-child(8) { height: 72%; }
.chart-bar:nth-child(9) { height: 88%; background: var(--accent); opacity: 1; }
.chart-bar:nth-child(10) { height: 100%; background: var(--accent); opacity: 1; }

.case-image-stamp {
  position: absolute;
  top: 32px;
  right: 32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--ink);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.case-image-stamp .num {
  font-size: 28px;
  line-height: 1;
}

.case-image-stamp .label {
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 500;
  opacity: 0.7;
}

.case-tag {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
  font-weight: 500;
}

.case-title {
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin-bottom: 28px;
  font-weight: 600;
  color: var(--ink);
}

.case-body p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.case-body p:last-child { margin-bottom: 0; }
.case-body p strong { color: var(--ink); font-weight: 600; }

.case-stats {
  background: var(--ink);
  color: white;
  padding: 44px 36px;
  border-radius: 16px;
  position: sticky;
  top: 100px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: sticky;
}

.case-stats::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 72, 36, 0.2) 0%, transparent 50%);
}

.case-stats-inner { position: relative; z-index: 1; }

.case-stat {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.case-stat:first-child { padding-top: 0; }
.case-stat:last-child { padding-bottom: 0; border-bottom: none; }

.case-stat-number {
  font-family: var(--display);
  font-size: 48px;
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 8px;
  color: white;
}

.case-stat-number .accent {
  color: var(--accent);
  font-weight: 500;
}

.case-stat-label {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .case-hero { grid-template-columns: 1fr; gap: 48px; }
  .case-stats { position: relative; top: 0; }
}

.other-work-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.other-work-label {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
}

.other-work-count {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.other-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.other-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

.other-image {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.other-image--equiniti {
  background: linear-gradient(135deg, #4a5d6e 0%, #2a3a4a 100%);
}

.other-image--kinrock {
  background: linear-gradient(135deg, #5d4e3a 0%, #3a2e1f 100%);
}

.other-image-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 28px;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: -0.02em;
}

.other-content {
  flex: 1;
}

.other-content h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.other-content h4 span {
  color: var(--accent);
  font-weight: 500;
}

.other-content p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

@media (max-width: 768px) {
  .other-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ============ AI OS ============ */
.ai-os {
  padding: 140px 0;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
}

.ai-os::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 72, 36, 0.2) 0%, transparent 40%),
    radial-gradient(circle at 10% 90%, rgba(212, 165, 116, 0.1) 0%, transparent 50%);
}

.ai-os::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 80%);
}

.ai-os .container { position: relative; z-index: 1; }
.ai-os .section-title { color: white; }

.ai-os-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: start;
}

.ai-os-prose p {
  font-size: 18px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 24px;
  letter-spacing: -0.01em;
}

.ai-os-prose p strong { color: white; font-weight: 600; }

.ai-os-prose .pull {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.3;
  color: white;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 28px 32px;
  border-left: 3px solid var(--accent);
  margin: 36px 0;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 0 12px 12px 0;
}

.agents {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(20px);
}

.agents-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 8px;
}

.agents-title {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.agents-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

.agents-status-dot {
  width: 6px;
  height: 6px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(74, 222, 128, 0.05); }
}

.agent {
  display: grid;
  grid-template-columns: 40px 1fr auto;
  align-items: center;
  padding: 14px 16px;
  border-radius: 10px;
  transition: background 0.2s;
  gap: 12px;
}

.agent:hover { background: rgba(255, 255, 255, 0.04); }

.agent-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  color: white;
  letter-spacing: -0.01em;
}

.agent-avatar.a1 { background: linear-gradient(135deg, #ff4824, #c8351b); }
.agent-avatar.a2 { background: linear-gradient(135deg, #d4a574, #a07a4a); }
.agent-avatar.a3 { background: linear-gradient(135deg, #a8b5a0, #6a7a5e); }
.agent-avatar.a4 { background: linear-gradient(135deg, #b8c5d6, #6a7a8e); }
.agent-avatar.a5 { background: linear-gradient(135deg, #c8a8a0, #8e6e66); }
.agent-avatar.a6 { background: linear-gradient(135deg, #a0b8c8, #5e7a8e); }
.agent-avatar.a7 { background: linear-gradient(135deg, #d4c8a0, #a0966a); }

.agent-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.agent-name {
  font-weight: 600;
  font-size: 14px;
  color: white;
  letter-spacing: -0.01em;
}

.agent-role {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  letter-spacing: -0.005em;
}

.agent-status {
  font-family: var(--mono);
  font-size: 10px;
  color: #4ade80;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .ai-os-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* ============ SERVICES ============ */
.services {
  padding: 140px 0 120px;
  background: var(--bg-warm);
  position: relative;
}

.services-intro {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 64px;
  letter-spacing: -0.01em;
}

.service-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.service {
  background: white;
  padding: 40px 36px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.service::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.service:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 20px 40px rgba(0,0,0,0.08);
}

.service-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
}

.service-name {
  font-family: var(--display);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ink-muted);
  padding: 6px 12px;
  background: var(--bg-warm);
  border-radius: 999px;
}

.service-price {
  text-align: right;
}

.service-price-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.service-price-amount {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.service-headline {
  font-family: var(--display);
  font-size: 24px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
  color: var(--ink);
}

.service-desc {
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  margin-bottom: 28px;
  flex-grow: 1;
  letter-spacing: -0.005em;
}

.service-features {
  list-style: none;
  font-size: 14px;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.service-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.005em;
}

.service-features li::before {
  content: '✓';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

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

/* ============ APPROACH ============ */
.approach {
  padding: 140px 0;
  background: var(--bg);
}

.approach-intro {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 60ch;
  margin-bottom: 72px;
  letter-spacing: -0.01em;
}

.approach-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.principle {
  background: white;
  padding: 36px 32px;
  border-radius: 20px;
  border: 1px solid var(--rule);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.principle:hover {
  border-color: var(--ink-faint);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.principle-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}

.principle-num {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  background: var(--accent-soft);
  border-radius: 6px;
}

.principle-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 700;
  color: var(--ink);
  font-size: 18px;
  margin-left: auto;
}

.principle h3 {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.025em;
  margin-bottom: 12px;
  line-height: 1.2;
}

.principle p {
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

@media (max-width: 768px) {
  .approach-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* ============ TESTIMONIALS ============ */
.testimonials {
  padding: 140px 0;
  background: var(--bg-cream);
  position: relative;
  overflow: hidden;
}

.testimonials::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 0% 0%, rgba(255, 72, 36, 0.04) 0%, transparent 40%),
    radial-gradient(circle at 100% 100%, rgba(212, 165, 116, 0.08) 0%, transparent 40%);
}

.testimonials .container { position: relative; z-index: 1; }

.test-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 56px;
}

.test {
  background: white;
  padding: 32px 28px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.test:hover {
  transform: translateY(-4px);
  box-shadow: 0 1px 2px rgba(0,0,0,0.04), 0 16px 32px rgba(0,0,0,0.06);
}

.test-quote {
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.55;
  margin-bottom: 24px;
  flex-grow: 1;
  font-weight: 400;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.test-attr {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}

.test-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  color: white;
  letter-spacing: -0.01em;
  position: relative;
  overflow: hidden;
}

.test-avatar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,0.2), transparent 60%);
}

.test-avatar.t1 { background: linear-gradient(135deg, #2d4a5e, #1a2d3a); }
.test-avatar.t2 { background: linear-gradient(135deg, #5e4a2d, #3a2e1a); }
.test-avatar.t3 { background: linear-gradient(135deg, #4a5e2d, #2e3a1a); }
.test-avatar.t4 { background: linear-gradient(135deg, #5e2d4a, #3a1a2e); }
.test-avatar.t5 { background: linear-gradient(135deg, #2d5e4a, #1a3a2e); }
.test-avatar.t6 { background: linear-gradient(135deg, #4a2d5e, #2e1a3a); }

.test-name {
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 2px;
  letter-spacing: -0.005em;
}

.test-role {
  font-size: 13px;
  color: var(--ink-muted);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .test-grid { grid-template-columns: 1fr; }
}

/* ============ PROCESS ============ */
.process {
  padding: 140px 0;
  background: var(--bg);
}

.process-steps {
  margin-top: 56px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.step {
  display: grid;
  grid-template-columns: 120px 200px 1fr auto;
  gap: 32px;
  padding: 32px 36px;
  align-items: center;
  border-bottom: 1px solid var(--rule);
  transition: background 0.2s;
}

.step:last-child { border-bottom: none; }

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

.step-num {
  font-family: var(--display);
  font-size: 32px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: -0.03em;
}

.step-when {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-muted);
  font-weight: 500;
  padding: 6px 12px;
  background: var(--bg-warm);
  border-radius: 999px;
  display: inline-block;
  text-align: center;
  width: fit-content;
}

.step-content h4 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}

.step-content p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.005em;
}

.step-arrow {
  font-size: 20px;
  color: var(--ink-faint);
  transition: all 0.2s;
}

.step:hover .step-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .step { grid-template-columns: 60px 1fr; gap: 16px; padding: 24px; }
  .step-when { grid-column: 2; }
  .step-content { grid-column: 2; }
  .step-arrow { display: none; }
}

/* ============ FAQ ============ */
.faq {
  padding: 140px 0;
  background: var(--bg-warm);
}

.faq-list {
  margin-top: 56px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--rule);
  overflow: hidden;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

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

.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 32px;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.02em;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  transition: all 0.2s;
}

.faq-q:hover { background: var(--bg-warm); }

.faq-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg-warm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--ink);
  font-weight: 400;
  transition: all 0.3s;
  flex-shrink: 0;
}

.faq-item.open .faq-icon {
  transform: rotate(45deg);
  background: var(--accent);
  color: white;
}

.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.6;
  padding: 0 32px;
  letter-spacing: -0.005em;
}

.faq-item.open .faq-a {
  max-height: 500px;
  padding: 0 32px 28px;
}

/* ============ FINAL ============ */
.final {
  padding: 160px 0;
  background: var(--ink);
  color: white;
  position: relative;
  overflow: hidden;
  text-align: center;
}

.final::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 72, 36, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 20% 30%, rgba(212, 165, 116, 0.08) 0%, transparent 40%);
}

.final::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 0%, transparent 70%);
}

.final .container { position: relative; z-index: 1; }

.final h2 {
  font-family: var(--display);
  font-size: clamp(44px, 6.5vw, 84px);
  line-height: 1;
  letter-spacing: -0.04em;
  font-weight: 600;
  margin-bottom: 28px;
  max-width: 18ch;
  margin-left: auto;
  margin-right: auto;
  color: white;
}

.final h2 .accent {
  color: var(--accent);
  font-weight: 500;
}

.final-sub {
  font-size: 19px;
  color: rgba(255, 255, 255, 0.65);
  max-width: 56ch;
  margin: 0 auto 56px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.final-list {
  list-style: none;
  text-align: left;
  max-width: 480px;
  margin: 0 auto 56px;
  font-size: 16px;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 8px;
  backdrop-filter: blur(20px);
}

.final-list li {
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  line-height: 1.5;
  letter-spacing: -0.005em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.final-list li:last-child { border-bottom: none; }

.final-list li::before {
  content: '→';
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
  line-height: 1;
}

.final .btn-primary {
  background: var(--accent);
  color: white;
  padding: 18px 32px;
  font-size: 16px;
}

.final .btn-primary:hover {
  background: white;
  color: var(--ink);
  box-shadow: 0 12px 32px rgba(255, 72, 36, 0.4);
}

.final-email {
  display: block;
  margin-top: 28px;
  font-family: var(--display);
  font-size: 16px;
  color: rgba(255, 255, 255, 0.5);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.01em;
}

.final-email:hover { color: white; }

/* ============ FOOTER ============ */
footer {
  padding: 48px 0 32px;
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

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

.footer-meta {
  font-size: 13px;
  letter-spacing: -0.005em;
}

.footer-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.footer-links a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  transition: color 0.2s;
  letter-spacing: -0.005em;
}

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

/* ============ REVEAL ============ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.hero-badge, .hero h1, .hero-lede, .hero-ctas, .hero-meta {
  opacity: 0;
  animation: rise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.hero-badge { animation-delay: 0.05s; }
.hero h1 { animation-delay: 0.15s; }
.hero-lede { animation-delay: 0.3s; }
.hero-ctas { animation-delay: 0.45s; }
.hero-meta { animation-delay: 0.6s; }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Chart animation on reveal */
.case-image.in .chart-bar {
  animation: barRise 1s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}

.case-image .chart-bar {
  transform-origin: bottom;
  transform: scaleY(0);
}

.case-image.in .chart-bar:nth-child(1) { animation-delay: 0.1s; }
.case-image.in .chart-bar:nth-child(2) { animation-delay: 0.15s; }
.case-image.in .chart-bar:nth-child(3) { animation-delay: 0.2s; }
.case-image.in .chart-bar:nth-child(4) { animation-delay: 0.25s; }
.case-image.in .chart-bar:nth-child(5) { animation-delay: 0.3s; }
.case-image.in .chart-bar:nth-child(6) { animation-delay: 0.35s; }
.case-image.in .chart-bar:nth-child(7) { animation-delay: 0.4s; }
.case-image.in .chart-bar:nth-child(8) { animation-delay: 0.45s; }
.case-image.in .chart-bar:nth-child(9) { animation-delay: 0.5s; }
.case-image.in .chart-bar:nth-child(10) { animation-delay: 0.55s; }

@keyframes barRise {
  to { transform: scaleY(1); }
}


/* ============ IMAGE & LOGO OVERRIDES (single source of truth) ============ */

/* Hero portrait */
.hero-portrait { width: 64px; height: 64px; background: var(--bg-warm); overflow: hidden; padding: 0; }
.hero-portrait::after { display: none; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }

/* Ritson portrait */
.ritson-portrait { background: #2a2018; overflow: hidden; padding: 0; }
.ritson-portrait::after { display: none; }
.ritson-portrait img { width: 100%; height: 100%; object-fit: cover; }

/* Testimonial avatars */
.test-avatar { background: var(--bg-warm); overflow: hidden; }
.test-avatar::after { display: none; }
.test-avatar img { width: 100%; height: 100%; object-fit: cover; }

/* ============ TRUST STRIP — clean 5-column grid ============ */
section.trust { padding: 72px 0 32px; background: var(--bg); }
section.trust .trust-logos {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
  opacity: 1;
  flex-wrap: nowrap;
  justify-content: stretch;
}

section.trust .trust-tile {
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
  height: 120px;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

section.trust .trust-tile:hover {
  border-color: var(--ink-faint);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.06);
}

section.trust .trust-tile img {
  height: 44px;
  max-height: 44px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(100%);
  opacity: 0.6;
  transition: all 0.3s;
}

section.trust .trust-tile:hover img {
  filter: grayscale(0%);
  opacity: 1;
}

@media (max-width: 1000px) {
  section.trust .trust-logos { gap: 12px; }
  section.trust .trust-tile { height: 96px; padding: 16px; }
  section.trust .trust-tile img { height: 32px; max-height: 32px; }
}

@media (max-width: 640px) {
  section.trust .trust-logos { gap: 6px; }
  section.trust .trust-tile { height: 64px; padding: 10px; border-radius: 10px; }
  section.trust .trust-tile img { height: 20px; max-height: 20px; }
}

/* ============ CASE STUDY LOGO TILE ============ */
.case-image-logo-tile {
  background: white;
  border-radius: 10px;
  padding: 10px 16px;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-bottom: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.case-image-logo-tile img { height: 24px; width: auto; object-fit: contain; }

/* ============ OTHER WORK TILES ============ */
.other-image {
  width: 88px;
  height: 88px;
  border-radius: 14px;
  background: white;
  border: 1px solid var(--rule);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  flex-shrink: 0;
  transition: all 0.3s;
}
.other-item:hover .other-image {
  border-color: var(--ink-faint);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.05);
}
.other-image img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.other-image-text { display: none; }


.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 20px;
  border-radius: 8px;
  text-decoration: none;
  z-index: 200;
  font-weight: 500;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 16px; }


/* === Inline link style — content links === */
.inline-link {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(var(--accent), var(--accent));
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 100% 1px;
  padding-bottom: 1px;
  transition: all 0.2s;
}
.inline-link:hover {
  color: var(--accent);
  background-size: 100% 2px;
}

/* === Featured / podcast strip === */
.featured {
  padding: 56px 0 32px;
  background: var(--bg);
  border-top: 1px solid var(--rule);
}

.featured-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.featured-meta {
  flex-shrink: 0;
}

.featured-eyebrow {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.featured-eyebrow::after {
  content: '';
  width: 24px;
  height: 1px;
  background: var(--rule);
}

.featured-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex: 1;
  padding: 24px 28px;
  background: white;
  border: 1px solid var(--rule);
  border-radius: 16px;
  text-decoration: none;
  color: var(--ink);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: 280px;
}

.featured-link:hover {
  border-color: var(--ink-faint);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.05);
}

.featured-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.featured-name {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.featured-desc {
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
}

.featured-arrow {
  font-size: 22px;
  color: var(--ink-muted);
  transition: all 0.2s;
  flex-shrink: 0;
}

.featured-link:hover .featured-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

@media (max-width: 640px) {
  .featured-inner { gap: 16px; }
  .featured-link { padding: 18px 20px; }
  .featured-name { font-size: 17px; }
}

/* === Final CTA LinkedIn secondary === */
.final-linkedin {
  display: block;
  margin-top: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 0.2s;
}

.final-linkedin:hover {
  color: var(--accent);
}

/* ============================================================
   MOBILE-FIRST OVERHAUL
   Three tiers: tablet ≤900px, mobile ≤640px, small ≤400px
   Built to feel as good as desktop on iPhone/Android.
   ============================================================ */

/* ---------- TABLET (≤900px) ---------- */
@media (max-width: 900px) {
  .container { padding: 0 24px; }

  /* Generally tighten section padding */
  .hero { padding: 64px 0 80px; }
  .ritson { padding: 56px 0; }
  .trust { padding: 56px 0 24px; }
  .work { padding: 40px 0 80px; }
  .ai-os { padding: 80px 0; }
  .services { padding: 80px 0 64px; }
  .approach { padding: 80px 0; }
  .testimonials { padding: 80px 0; }
  .featured { padding: 40px 0 24px; }
  .process { padding: 80px 0; }
  .faq { padding: 80px 0; }
  .final { padding: 96px 0; }

  /* Section titles shrink a bit */
  .section-title { margin-bottom: 40px; }

  /* Trust strip: 5 across is fine here */
  section.trust .trust-logos { gap: 10px; }
  section.trust .trust-tile { height: 84px; padding: 14px 16px; }
  section.trust .trust-tile img { height: 28px; max-height: 28px; }
}

/* ---------- MOBILE (≤640px) ---------- */
@media (max-width: 640px) {
  .container { padding: 0 20px; }
  body { font-size: 16px; }

  /* === NAV === */
  nav { padding: 12px 0; }
  .nav-logo { font-size: 17px; }
  .nav-cta { padding: 9px 16px; font-size: 13px; }

  /* === HERO === */
  .hero { padding: 48px 0 64px; }
  .hero-badge {
    font-size: 12px;
    padding: 6px 12px 6px 10px;
    margin-bottom: 28px;
  }
  .hero h1 {
    font-size: 44px;
    line-height: 1;
    letter-spacing: -0.035em;
    margin-bottom: 24px;
    max-width: none;
  }
  .hero-lede {
    font-size: 17px;
    line-height: 1.45;
    margin-bottom: 32px;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .hero-ctas .btn {
    justify-content: center;
    width: 100%;
    padding: 16px 24px;
    font-size: 15px;
  }
  .hero-meta {
    margin-top: 40px;
    padding-top: 24px;
    gap: 14px;
  }
  .hero-portrait { width: 52px; height: 52px; }
  .hero-meta-text { font-size: 13px; }

  /* Soften the hero orbs on mobile so they don't dominate */
  .hero-orb--1 { width: 400px; height: 400px; right: -150px; top: -150px; }
  .hero-orb--2 { width: 350px; height: 350px; left: -150px; bottom: -200px; }

  /* === RITSON === */
  .ritson { padding: 48px 0; }
  .ritson-inner {
    grid-template-columns: 1fr;
    gap: 24px;
    text-align: center;
  }
  .ritson-portrait {
    width: 96px;
    height: 96px;
    margin: 0 auto;
    font-size: 36px;
  }
  .ritson-quote {
    font-size: 22px;
    line-height: 1.28;
    margin-bottom: 20px;
  }
  .ritson-attr {
    flex-direction: column;
    gap: 8px;
    justify-content: center;
  }
  .ritson-attr::before { display: none; }

  /* === TRUST === */
  .trust { padding: 40px 0 16px; }
  .trust-label {
    font-size: 11px;
    letter-spacing: 0.1em;
    margin-bottom: 24px;
  }
  /* On phone, 5 across is too cramped — go 3 + 2 layout */
  section.trust .trust-logos {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    max-width: 400px;
  }
  section.trust .trust-logos .trust-tile:nth-child(4),
  section.trust .trust-logos .trust-tile:nth-child(5) {
    /* These two go on the second row, but we want them centered */
  }
  section.trust .trust-tile {
    height: 72px;
    padding: 12px;
    border-radius: 12px;
  }
  section.trust .trust-tile img {
    height: 26px;
    max-height: 26px;
    opacity: 0.75; /* Less aggressive on mobile since no hover */
  }

  /* === SECTION TITLES === */
  .section-eyebrow { font-size: 11px; margin-bottom: 16px; }
  .section-title {
    font-size: 36px;
    line-height: 1.05;
    letter-spacing: -0.025em;
    margin-bottom: 32px;
    max-width: none;
  }

  /* === WORK / CASE STUDY === */
  .work { padding: 24px 0 64px; }
  .case-hero {
    grid-template-columns: 1fr;
    gap: 32px;
    margin-bottom: 64px;
  }
  .case-image { aspect-ratio: 16/10; }
  .case-image-stamp {
    width: 72px;
    height: 72px;
    top: 20px;
    right: 20px;
  }
  .case-image-stamp .num { font-size: 22px; }
  .case-image-stamp .label { font-size: 8px; }
  .case-image-content { padding: 24px; }
  .case-image-chart {
    inset: 50% 24px 24px 24px;
  }
  .case-title {
    font-size: 26px;
    line-height: 1.12;
    margin-bottom: 20px;
  }
  .case-body p { font-size: 16px; line-height: 1.6; }
  .case-stats {
    position: static;
    padding: 32px 24px;
    border-radius: 14px;
  }
  .case-stat { padding: 18px 0; }
  .case-stat-number { font-size: 36px; }
  .case-stat-label { font-size: 13px; }

  /* Other work */
  .other-work-header { margin-bottom: 28px; }
  .other-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .other-item { gap: 16px; }
  .other-image {
    width: 72px;
    height: 72px;
    padding: 12px;
    border-radius: 12px;
  }
  .other-content h4 { font-size: 19px; }
  .other-content p { font-size: 15px; }

  /* === AI OS === */
  .ai-os { padding: 64px 0; }
  .ai-os-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .ai-os-prose p { font-size: 16px; }
  .ai-os-prose .pull {
    font-size: 19px;
    padding: 20px 22px;
    margin: 24px 0;
  }
  .agents { padding: 6px; }
  .agents-header { padding: 14px 16px; }
  .agent {
    padding: 12px 14px;
    grid-template-columns: 36px 1fr auto;
    gap: 10px;
  }
  .agent-avatar { width: 28px; height: 28px; font-size: 12px; }
  .agent-name { font-size: 13px; }
  .agent-role { font-size: 11px; }
  .agent-status { font-size: 9px; }

  /* === SERVICES === */
  .services { padding: 64px 0 48px; }
  .services-intro {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 40px;
  }
  .service-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .service {
    padding: 28px 24px;
    border-radius: 16px;
  }
  .service-header {
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
  }
  .service-name { font-size: 12px; }
  .service-price-amount { font-size: 18px; }
  .service-headline {
    font-size: 21px;
    line-height: 1.2;
    margin-bottom: 14px;
  }
  .service-desc {
    font-size: 14px;
    line-height: 1.55;
    margin-bottom: 22px;
  }
  .service-features { font-size: 13px; gap: 10px; padding-top: 20px; }

  /* === APPROACH === */
  .approach { padding: 64px 0; }
  .approach-intro {
    font-size: 17px;
    margin-bottom: 40px;
  }
  .approach-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .principle {
    padding: 28px 24px;
    border-radius: 16px;
  }
  .principle h3 { font-size: 22px; margin-bottom: 10px; }
  .principle p { font-size: 15px; }
  .principle-icon { width: 36px; height: 36px; font-size: 16px; border-radius: 10px; }

  /* === TESTIMONIALS === */
  .testimonials { padding: 64px 0; }
  .test-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 40px;
  }
  .test {
    padding: 26px 24px;
    border-radius: 16px;
  }
  .test-quote { font-size: 15px; line-height: 1.55; margin-bottom: 20px; }
  .test-avatar { width: 40px; height: 40px; }
  .test-name { font-size: 13px; }
  .test-role { font-size: 12px; }

  /* === FEATURED / PODCAST === */
  .featured { padding: 28px 0 16px; }
  .featured-inner { gap: 14px; flex-direction: column; align-items: stretch; }
  .featured-meta { text-align: center; }
  .featured-link { padding: 18px 20px; min-width: 0; }
  .featured-name { font-size: 16px; }
  .featured-desc { font-size: 13px; }

  /* === PROCESS === */
  .process { padding: 64px 0; }
  .process-steps {
    margin-top: 40px;
    border-radius: 16px;
  }
  .step {
    grid-template-columns: 48px 1fr;
    gap: 16px;
    padding: 24px 20px;
  }
  .step-num { font-size: 26px; }
  .step-when {
    grid-column: 2;
    margin-bottom: 8px;
    font-size: 10px;
    padding: 4px 10px;
  }
  .step-content { grid-column: 2; }
  .step-content h4 { font-size: 19px; margin-bottom: 4px; }
  .step-content p { font-size: 14px; }
  .step-arrow { display: none; }

  /* === FAQ === */
  .faq { padding: 64px 0; }
  .faq-list { margin-top: 40px; border-radius: 16px; }
  .faq-q {
    font-size: 16px;
    padding: 20px 22px;
    gap: 16px;
  }
  .faq-icon { width: 24px; height: 24px; font-size: 14px; }
  .faq-a {
    font-size: 15px;
    line-height: 1.55;
    padding: 0 22px;
  }
  .faq-item.open .faq-a { padding: 0 22px 22px; }

  /* === FINAL CTA === */
  .final { padding: 80px 0; }
  .final h2 {
    font-size: 38px;
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
    max-width: none;
  }
  .final-sub {
    font-size: 16px;
    margin-bottom: 36px;
    line-height: 1.5;
  }
  .final-list {
    margin-bottom: 36px;
    padding: 6px;
    font-size: 14px;
  }
  .final-list li {
    padding: 14px 16px;
    line-height: 1.45;
  }
  .final .btn-primary {
    padding: 16px 28px;
    font-size: 15px;
  }
  .final-email { font-size: 14px; }
  .final-linkedin { font-size: 13px; }

  /* === FOOTER === */
  footer { padding: 32px 0 24px; }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .footer-meta {
    font-size: 12px;
    line-height: 1.5;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 14px 20px;
  }
  .footer-links a { font-size: 12px; }
}

/* ---------- SMALL MOBILE (≤400px) ---------- */
@media (max-width: 400px) {
  .container { padding: 0 16px; }

  /* Hero gets tighter at this size */
  .hero h1 { font-size: 38px; }
  .hero-lede { font-size: 16px; }

  /* Section titles */
  .section-title { font-size: 32px; }
  .final h2 { font-size: 34px; }

  /* Ritson quote shrinks slightly */
  .ritson-quote { font-size: 20px; }

  /* Trust logos: 3 per row stays but smaller tiles */
  section.trust .trust-tile { height: 64px; padding: 10px; }
  section.trust .trust-tile img { height: 22px; max-height: 22px; }
}

/* ============================================================
   TOUCH-FRIENDLY INTERACTIONS
   Disable hover transforms on touch devices to avoid sticky states
   ============================================================ */
@media (hover: none) {
  .service:hover,
  .principle:hover,
  .test:hover,
  .featured-link:hover,
  .other-item:hover .other-image,
  .btn-primary:hover,
  section.trust .trust-tile:hover {
    transform: none;
  }
  .step:hover { padding-left: 24px; }
  .agent:hover { padding-left: 14px; }
}


/* === SCROLL OFFSET FOR STICKY NAV === */
section[id], main[id] {
  scroll-margin-top: 80px;
}
section .section-title {
  scroll-margin-top: 80px;
}

/* === Ensure section content isn't tucked under the sticky nav === */
.faq, .work, .services, .approach, .process, .final {
  scroll-margin-top: 60px;
}


/* ============================================================
   DARK MODE
   Triggered by system preference. Maintains brand integrity.
   Strategy: invert background/text but preserve accent;
   keep editorial dark sections darker than the page itself
   so visual hierarchy is preserved.
   ============================================================ */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    /* Backgrounds */
    --bg: #0e0e10;            /* main page bg — softer than pure black */
    --bg-warm: #1a1a1d;       /* subtle elevation */
    --bg-cream: #16161a;      /* "cream" sections become deep neutral */
    
    /* Text — soft white, not pure white (easier on eyes) */
    --ink: #f0eee9;
    --ink-soft: #b8b4ad;
    --ink-muted: #807a72;
    --ink-faint: #4a463f;
    
    /* Lines */
    --rule: #2a2a2e;
    
    /* Accent stays, but slightly desaturated for dark mode comfort */
    --accent: #ff5a39;
    --accent-soft: rgba(255, 90, 57, 0.12);
    --accent-deep: #d44528;
  }
  /* ===== NAV ===== */
  html:not([data-theme="light"]) nav {
    background: rgba(14, 14, 16, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  html:not([data-theme="light"]) .nav-cta {
    background: var(--ink);
    color: var(--bg) !important;
  }
  html:not([data-theme="light"]) .nav-cta:hover {
    background: var(--accent) !important;
    color: white !important;
  }
  /* ===== HERO ===== */
  html:not([data-theme="light"]) .hero-badge {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ink-soft);
  }
  html:not([data-theme="light"]) .hero-orb--1 {
    background: radial-gradient(circle, rgba(255, 90, 57, 0.15) 0%, transparent 70%);
    opacity: 0.6;
  }
  html:not([data-theme="light"]) .hero-orb--2 {
    background: radial-gradient(circle, rgba(255, 200, 150, 0.06) 0%, transparent 70%);
  }
  html:not([data-theme="light"]) .hero-grid-bg {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  }
  html:not([data-theme="light"]) .btn-primary {
    background: var(--ink);
    color: var(--bg);
  }
  html:not([data-theme="light"]) .btn-primary:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 90, 57, 0.35);
  }
  html:not([data-theme="light"]) .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }
  html:not([data-theme="light"]) .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
  html:not([data-theme="light"]) .hero-portrait {
    background: var(--bg-warm);
  }
  html:not([data-theme="light"]) .hero-meta {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
  /* ===== RITSON QUOTE ===== */
  /* Already dark — make slightly more contrast against page bg */
  html:not([data-theme="light"]) .ritson {
    background: #050507;
  }
  html:not([data-theme="light"]) .ritson::before {
    background:
      radial-gradient(circle at 20% 50%, rgba(255, 90, 57, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 80% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%);
  }
  /* ===== TRUST STRIP ===== */
  html:not([data-theme="light"]) section.trust { background: var(--bg); }
  html:not([data-theme="light"]) section.trust .trust-tile {
    /* Keep tiles bright white in dark mode so logos display in their proper colours */
    background: #f4f1ea;
    border-color: rgba(255, 255, 255, 0.06);
  }
  html:not([data-theme="light"]) section.trust .trust-tile:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
  html:not([data-theme="light"]) section.trust .trust-tile img {
    /* Subtle desaturation on default, full colour on hover */
    filter: grayscale(50%);
    opacity: 0.8;
  }
  html:not([data-theme="light"]) section.trust .trust-tile:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
  /* ===== WORK / CASE STUDY ===== */
  html:not([data-theme="light"]) .work { background: var(--bg); }
  html:not([data-theme="light"]) .case-image {
    background: linear-gradient(135deg, #1f1c18 0%, #16141a 100%);
  }
  html:not([data-theme="light"]) .case-image::before {
    background:
      radial-gradient(circle at 70% 30%, rgba(255, 90, 57, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
  }
  html:not([data-theme="light"]) .case-image-logo-tile {
    background: #f4f1ea;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
  html:not([data-theme="light"]) .case-image-logo-tile img {
    filter: none;
    opacity: 1;
  }
  html:not([data-theme="light"]) .chart-bar {
    background: rgba(255, 255, 255, 0.1);
  }
  html:not([data-theme="light"]) .case-image.in .chart-bar:nth-child(9), html:not([data-theme="light"]) .case-image.in .chart-bar:nth-child(10) {
    background: var(--accent);
    opacity: 1;
  }
  html:not([data-theme="light"]) .case-image-label {
    color: var(--ink-muted);
  }
  html:not([data-theme="light"]) .case-image-stamp {
    background: var(--ink);
    color: var(--bg);
  }
  html:not([data-theme="light"]) .case-image-stamp .num { color: inherit; }
  html:not([data-theme="light"]) .case-image-stamp .label { color: inherit; }
  /* Case stats panel — already dark, make subtle adjustments */
  html:not([data-theme="light"]) .case-stats {
    background: #050507;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
  /* Other work */
  html:not([data-theme="light"]) .other-image {
    background: #f4f1ea;
    border-color: rgba(255, 255, 255, 0.06);
  }
  html:not([data-theme="light"]) .other-image img {
    /* No inversion — let logos display in their proper colours */
    filter: none;
    opacity: 1;
  }
  html:not([data-theme="light"]) .other-item:hover .other-image {
    background: white;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
  /* ===== AI OS ===== */
  /* Already dark — make slightly more contrast */
  html:not([data-theme="light"]) .ai-os { background: #050507; }
  /* ===== SERVICES ===== */
  html:not([data-theme="light"]) .services { background: var(--bg-warm); }
  html:not([data-theme="light"]) .service {
    background: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  html:not([data-theme="light"]) .service:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
  }
  html:not([data-theme="light"]) .service-name {
    background: var(--bg-warm);
    color: var(--ink-soft);
  }
  /* ===== APPROACH ===== */
  html:not([data-theme="light"]) .approach { background: var(--bg); }
  html:not([data-theme="light"]) .principle {
    background: var(--bg-warm);
    border-color: var(--rule);
  }
  html:not([data-theme="light"]) .principle:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
  html:not([data-theme="light"]) .principle-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
  }
  /* ===== TESTIMONIALS ===== */
  html:not([data-theme="light"]) .testimonials {
    background: var(--bg-cream);
  }
  html:not([data-theme="light"]) .testimonials::before {
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 90, 57, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(212, 165, 116, 0.04) 0%, transparent 40%);
  }
  html:not([data-theme="light"]) .test {
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
  html:not([data-theme="light"]) .test:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px rgba(0, 0, 0, 0.4);
  }
  /* ===== FEATURED / PODCAST ===== */
  html:not([data-theme="light"]) .featured { background: var(--bg); }
  html:not([data-theme="light"]) .featured-link {
    background: var(--bg-warm);
    border-color: var(--rule);
    color: var(--ink);
  }
  html:not([data-theme="light"]) .featured-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }
  /* ===== PROCESS ===== */
  html:not([data-theme="light"]) .process { background: var(--bg); }
  html:not([data-theme="light"]) .process-steps {
    background: var(--bg-warm);
    border-color: var(--rule);
  }
  html:not([data-theme="light"]) .step {
    border-bottom-color: var(--rule);
  }
  html:not([data-theme="light"]) .step:hover {
    background: rgba(255, 255, 255, 0.02);
  }
  html:not([data-theme="light"]) .step-when {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink-soft);
  }
  /* ===== FAQ ===== */
  html:not([data-theme="light"]) .faq { background: var(--bg-warm); }
  html:not([data-theme="light"]) .faq-list {
    background: var(--bg);
    border-color: var(--rule);
  }
  html:not([data-theme="light"]) .faq-item {
    border-bottom-color: var(--rule);
  }
  html:not([data-theme="light"]) .faq-item:first-child {
    border-top-color: var(--rule);
  }
  html:not([data-theme="light"]) .faq-q:hover { background: rgba(255, 255, 255, 0.02); }
  html:not([data-theme="light"]) .faq-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
  }
  /* ===== INLINE LINK ===== */
  html:not([data-theme="light"]) .inline-link {
    color: var(--ink);
  }
  /* ===== FINAL CTA ===== */
  /* Already dark — slightly deeper */
  html:not([data-theme="light"]) .final { background: #050507; }
  /* ===== FOOTER ===== */
  html:not([data-theme="light"]) footer {
    background: #050507;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: var(--ink-muted);
  }
  /* ===== FAVICON dot stays the same; no change needed ===== */
  /* ===== SKIP LINK ===== */
  html:not([data-theme="light"]) .skip-link {
    background: var(--ink);
    color: var(--bg);
  }
  /* ===== AGENT AVATAR adjustments — already work but slightly muted in dark ===== */
  /* Agents look good on dark with current gradients */
  /* ===== Body background fixes ===== */
  html:not([data-theme="light"]) body::before {
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255, 90, 57, 0.025) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  }
}

/* === Explicit dark theme override (via toggle button) === */
html[data-theme="dark"] {
    /* Backgrounds */
    --bg: #0e0e10;            /* main page bg — softer than pure black */
    --bg-warm: #1a1a1d;       /* subtle elevation */
    --bg-cream: #16161a;      /* "cream" sections become deep neutral */
    
    /* Text — soft white, not pure white (easier on eyes) */
    --ink: #f0eee9;
    --ink-soft: #b8b4ad;
    --ink-muted: #807a72;
    --ink-faint: #4a463f;
    
    /* Lines */
    --rule: #2a2a2e;
    
    /* Accent stays, but slightly desaturated for dark mode comfort */
    --accent: #ff5a39;
    --accent-soft: rgba(255, 90, 57, 0.12);
    --accent-deep: #d44528;
  }
html[data-theme="dark"] /* ===== NAV ===== */
  nav {
    background: rgba(14, 14, 16, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
html[data-theme="dark"] .nav-cta {
    background: var(--ink);
    color: var(--bg) !important;
  }
html[data-theme="dark"] .nav-cta:hover {
    background: var(--accent) !important;
    color: white !important;
  }
html[data-theme="dark"] /* ===== HERO ===== */
  .hero-badge {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ink-soft);
  }
html[data-theme="dark"] .hero-orb--1 {
    background: radial-gradient(circle, rgba(255, 90, 57, 0.15) 0%, transparent 70%);
    opacity: 0.6;
  }
html[data-theme="dark"] .hero-orb--2 {
    background: radial-gradient(circle, rgba(255, 200, 150, 0.06) 0%, transparent 70%);
  }
html[data-theme="dark"] .hero-grid-bg {
    background-image:
      linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
      linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  }
html[data-theme="dark"] .btn-primary {
    background: var(--ink);
    color: var(--bg);
  }
html[data-theme="dark"] .btn-primary:hover {
    background: var(--accent);
    color: white;
    box-shadow: 0 8px 24px rgba(255, 90, 57, 0.35);
  }
html[data-theme="dark"] .btn-secondary {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--ink);
  }
html[data-theme="dark"] .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
html[data-theme="dark"] .hero-portrait {
    background: var(--bg-warm);
  }
html[data-theme="dark"] .hero-meta {
    border-top-color: rgba(255, 255, 255, 0.08);
  }
html[data-theme="dark"] /* ===== RITSON QUOTE ===== */
  /* Already dark — make slightly more contrast against page bg */
  .ritson {
    background: #050507;
  }
html[data-theme="dark"] .ritson::before {
    background:
      radial-gradient(circle at 20% 50%, rgba(255, 90, 57, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 80% 50%, rgba(212, 165, 116, 0.08) 0%, transparent 50%);
  }
html[data-theme="dark"] /* ===== TRUST STRIP ===== */
  section.trust { background: var(--bg); }
html[data-theme="dark"] section.trust .trust-tile {
    /* Keep tiles bright white in dark mode so logos display in their proper colours */
    background: #f4f1ea;
    border-color: rgba(255, 255, 255, 0.06);
  }
html[data-theme="dark"] section.trust .trust-tile:hover {
    background: white;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
  }
html[data-theme="dark"] section.trust .trust-tile img {
    /* Subtle desaturation on default, full colour on hover */
    filter: grayscale(50%);
    opacity: 0.8;
  }
html[data-theme="dark"] section.trust .trust-tile:hover img {
    filter: grayscale(0%);
    opacity: 1;
  }
html[data-theme="dark"] /* ===== WORK / CASE STUDY ===== */
  .work { background: var(--bg); }
html[data-theme="dark"] .case-image {
    background: linear-gradient(135deg, #1f1c18 0%, #16141a 100%);
  }
html[data-theme="dark"] .case-image::before {
    background:
      radial-gradient(circle at 70% 30%, rgba(255, 90, 57, 0.18) 0%, transparent 50%),
      radial-gradient(circle at 20% 80%, rgba(212, 165, 116, 0.15) 0%, transparent 50%);
  }
html[data-theme="dark"] .case-image-logo-tile {
    background: #f4f1ea;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  }
html[data-theme="dark"] .case-image-logo-tile img {
    filter: none;
    opacity: 1;
  }
html[data-theme="dark"] .chart-bar {
    background: rgba(255, 255, 255, 0.1);
  }
html[data-theme="dark"] .case-image.in .chart-bar:nth-child(9), html[data-theme="dark"] .case-image.in .chart-bar:nth-child(10) {
    background: var(--accent);
    opacity: 1;
  }
html[data-theme="dark"] .case-image-label {
    color: var(--ink-muted);
  }
html[data-theme="dark"] .case-image-stamp {
    background: var(--ink);
    color: var(--bg);
  }
html[data-theme="dark"] .case-image-stamp .num { color: inherit; }
html[data-theme="dark"] .case-image-stamp .label { color: inherit; }
html[data-theme="dark"] /* Case stats panel — already dark, html[data-theme="dark"] make subtle adjustments */
  .case-stats {
    background: #050507;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  }
html[data-theme="dark"] /* Other work */
  .other-image {
    background: #f4f1ea;
    border-color: rgba(255, 255, 255, 0.06);
  }
html[data-theme="dark"] .other-image img {
    /* No inversion — let logos display in their proper colours */
    filter: none;
    opacity: 1;
  }
html[data-theme="dark"] .other-item:hover .other-image {
    background: white;
    border-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
  }
html[data-theme="dark"] /* ===== AI OS ===== */
  /* Already dark — make slightly more contrast */
  .ai-os { background: #050507; }
html[data-theme="dark"] /* ===== SERVICES ===== */
  .services { background: var(--bg-warm); }
html[data-theme="dark"] .service {
    background: var(--bg);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
html[data-theme="dark"] .service:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 20px 40px rgba(0, 0, 0, 0.4);
  }
html[data-theme="dark"] .service-name {
    background: var(--bg-warm);
    color: var(--ink-soft);
  }
html[data-theme="dark"] /* ===== APPROACH ===== */
  .approach { background: var(--bg); }
html[data-theme="dark"] .principle {
    background: var(--bg-warm);
    border-color: var(--rule);
  }
html[data-theme="dark"] .principle:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3);
  }
html[data-theme="dark"] .principle-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
  }
html[data-theme="dark"] /* ===== TESTIMONIALS ===== */
  .testimonials {
    background: var(--bg-cream);
  }
html[data-theme="dark"] .testimonials::before {
    background:
      radial-gradient(circle at 0% 0%, rgba(255, 90, 57, 0.04) 0%, transparent 40%),
      radial-gradient(circle at 100% 100%, rgba(212, 165, 116, 0.04) 0%, transparent 40%);
  }
html[data-theme="dark"] .test {
    background: var(--bg-warm);
    border: 1px solid var(--rule);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
html[data-theme="dark"] .test:hover {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 32px rgba(0, 0, 0, 0.4);
  }
html[data-theme="dark"] /* ===== FEATURED / PODCAST ===== */
  .featured { background: var(--bg); }
html[data-theme="dark"] .featured-link {
    background: var(--bg-warm);
    border-color: var(--rule);
    color: var(--ink);
  }
html[data-theme="dark"] .featured-link:hover {
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  }
html[data-theme="dark"] /* ===== PROCESS ===== */
  .process { background: var(--bg); }
html[data-theme="dark"] .process-steps {
    background: var(--bg-warm);
    border-color: var(--rule);
  }
html[data-theme="dark"] .step {
    border-bottom-color: var(--rule);
  }
html[data-theme="dark"] .step:hover {
    background: rgba(255, 255, 255, 0.02);
  }
html[data-theme="dark"] .step-when {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink-soft);
  }
html[data-theme="dark"] /* ===== FAQ ===== */
  .faq { background: var(--bg-warm); }
html[data-theme="dark"] .faq-list {
    background: var(--bg);
    border-color: var(--rule);
  }
html[data-theme="dark"] .faq-item {
    border-bottom-color: var(--rule);
  }
html[data-theme="dark"] .faq-item:first-child {
    border-top-color: var(--rule);
  }
html[data-theme="dark"] .faq-q:hover { background: rgba(255, 255, 255, 0.02); }
html[data-theme="dark"] .faq-icon {
    background: rgba(255, 255, 255, 0.05);
    color: var(--ink);
  }
html[data-theme="dark"] /* ===== INLINE LINK ===== */
  .inline-link {
    color: var(--ink);
  }
html[data-theme="dark"] /* ===== FINAL CTA ===== */
  /* Already dark — slightly deeper */
  .final { background: #050507; }
html[data-theme="dark"] /* ===== FOOTER ===== */
  footer {
    background: #050507;
    border-top-color: rgba(255, 255, 255, 0.08);
    color: var(--ink-muted);
  }
html[data-theme="dark"] /* ===== FAVICON dot stays the same; no change needed ===== */
  
  /* ===== SKIP LINK ===== */
  .skip-link {
    background: var(--ink);
    color: var(--bg);
  }
html[data-theme="dark"] /* ===== AGENT AVATAR adjustments — already work but slightly muted in dark ===== */
  /* Agents look good on dark with current gradients */
  
  /* ===== Body background fixes ===== */
  body::before {
    background-image:
      radial-gradient(circle at 20% 30%, rgba(255, 90, 57, 0.025) 0%, transparent 50%),
      radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.01) 0%, transparent 50%);
  }

/* === Explicit light theme override (cancels system dark preference) === */
@media (prefers-color-scheme: dark) {
  html[data-theme="light"] {
    color-scheme: light;
  }
}


/* ============================================================
   APPLE QA — Accessibility, Focus States, Reduced Motion
   ============================================================ */

/* Focus-visible (keyboard-only focus) — for accessibility */
*:focus { outline: none; }
*:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.btn:focus-visible {
  outline-offset: 4px;
}
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Reduced motion support — respects user's accessibility settings */
@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;
  }
  /* Disable the animated chart bars */
  .case-image .chart-bar {
    transform: scaleY(1) !important;
    animation: none !important;
  }
  /* Disable scroll-reveal animation */
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
  /* Disable hero animations */
  .hero-badge, .hero h1, .hero-lede, .hero-ctas, .hero-meta {
    opacity: 1 !important;
    animation: none !important;
  }
}

/* High contrast preference */
@media (prefers-contrast: more) {
  :root {
    --ink-muted: #555;
    --rule: #999;
  }
  @media (prefers-color-scheme: dark) {
    :root {
      --ink-muted: #c0c0c0;
      --rule: #555;
    }
  }
}

/* Prevent horizontal scrolling — only on sections, not body/html (would break sticky nav) */
html, body {
  width: 100%;
  max-width: 100%;
}

/* Ensure all sections respect viewport */
section {
  overflow-x: clip;
}

/* Touch target enforcement — anything clickable should be at least 44px */
.nav-cta,
.btn,
.faq-q,
.featured-link,
.footer-links a {
  min-height: 44px;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  padding: 8px 0;
}

/* Selection colour — branded */
::selection {
  background: var(--accent);
  color: white;
}

/* Better image rendering */
img {
  -webkit-user-drag: none;
  user-select: none;
}

/* Smoother font rendering on dark mode */
@media (prefers-color-scheme: dark) {
  body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}


/* ============================================================
   APPLE QA — Touch target corrections
   ============================================================ */

/* Nav logo — needs full height for tappable area */
.nav-logo {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 4px 0;
}

/* Nav CTA — ensure 44px tall on mobile */
.nav-cta {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  line-height: 1;
}

/* Final CTA links — bigger tap targets */
.final-email,
.final-linkedin {
  display: inline-block;
  padding: 12px 20px;
  min-height: 44px;
  line-height: 1.4;
}

/* Inline content links are fine at their natural height — they're part of text flow */


/* ============================================================
   APPLE QA — Contrast corrections
   ============================================================ */

/* Slightly darker muted text — passes WCAG AA on bg */
:root {
  --ink-muted: #737378;
  --accent-text: #d22f0f;   /* For accent text on light bg — passes AA */
  --accent-press: #b8270a;  /* For pressed/active states */
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink-muted: #908a82;  /* Bumped up for AA in dark mode */
    --accent-text: #ff7a55; /* Lighter accent on dark for AA */
  }
}

/* Section eyebrows — use accent-text variant for AA compliance */
.section-eyebrow {
  color: var(--accent-text);
}

.section-eyebrow-dot {
  background: var(--accent-text);
}

/* Buttons: white-on-accent fails AA. Two fixes:
   - Primary buttons keep coral but use darker base
   - Hover stays bright
*/
.btn-primary:hover {
  background: var(--accent-press);
  color: white;
}

/* Final CTA button — use darker base so white text passes AA */
.final .btn-primary {
  background: var(--accent-press);
}
.final .btn-primary:hover {
  background: var(--accent);
  color: white;
  box-shadow: 0 12px 32px rgba(255, 72, 36, 0.4);
}

@media (prefers-color-scheme: dark) {
  /* Same logic in dark mode */
  .final .btn-primary {
    background: var(--accent-press);
  }
}


/* === APPLE QA: Nav link hit areas === */
.nav-links a:not(.nav-cta) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 4px;
}


/* === Theme transition smoothing === */
html {
  color-scheme: light dark;
}

body,
nav,
.service,
.principle,
.test,
.featured-link,
.process-steps,
.faq-list,
.case-stats,
.agents,
.trust-tile,
.other-image,
.case-image-stamp,
.faq-icon,
.principle-icon,
.btn-primary,
.btn-secondary,
.nav-cta,
.case-image-logo-tile {
  transition:
    background-color 0.3s ease,
    border-color 0.3s ease,
    color 0.3s ease;
}

/* Don't transition during page load (prevents flash) */
html.no-transition,
html.no-transition * {
  transition: none !important;
}


/* === THEME TOGGLE BUTTON === */
.theme-toggle {
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  padding: 0;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 8px;
  transition: all 0.2s ease, background-color 0.3s ease, border-color 0.3s ease;
  font-family: inherit;
  position: relative;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.12);
  transform: scale(1.04);
}

.theme-toggle svg {
  width: 18px;
  height: 18px;
  color: var(--ink);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  position: absolute;
  opacity: 0;
  transform: scale(0.5) rotate(-90deg);
}

.theme-toggle[data-state="light"] .icon-sun,
.theme-toggle[data-state="dark"] .icon-moon {
  opacity: 1;
  transform: scale(1) rotate(0);
}

/* Dark mode adjustments for toggle */
html[data-theme="dark"] .theme-toggle,
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .theme-toggle {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.08);
  }
  html:not([data-theme="light"]) .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.16);
  }
}

html[data-theme="dark"] .theme-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}
html[data-theme="dark"] .theme-toggle:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
}

/* Mobile: keep it 44px but slightly tucked */
@media (max-width: 640px) {
  .theme-toggle {
    width: 40px;
    height: 40px;
    margin-right: 6px;
  }
  .theme-toggle svg {
    width: 16px;
    height: 16px;
  }
}


/* ============================================================
   FIT SECTION — subtle selectivity, practical
   ============================================================ */
.fit {
  padding: 120px 0;
  background: var(--bg);
  position: relative;
}

.fit .section-title {
  margin-bottom: 24px;
}

.fit-intro {
  font-size: 19px;
  line-height: 1.5;
  color: var(--ink-soft);
  max-width: 720px;
  margin-bottom: 64px;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 40px;
}

.fit-card {
  padding: 40px 36px;
  border-radius: 18px;
  border: 1px solid var(--rule);
  background: var(--bg-warm);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.fit-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.05);
}

.fit-card--yes {
  border-color: rgba(255, 72, 36, 0.18);
  background: linear-gradient(180deg, rgba(255, 72, 36, 0.025) 0%, var(--bg-warm) 100%);
}

.fit-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.fit-card-header h3 {
  font-family: var(--display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}

.fit-tick,
.fit-cross {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 600;
  font-family: var(--display);
  flex-shrink: 0;
  line-height: 1;
}

.fit-tick {
  background: var(--accent-soft);
  color: var(--accent-text);
}

.fit-cross {
  background: rgba(0, 0, 0, 0.05);
  color: var(--ink-muted);
  font-size: 22px;
}

.fit-card ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.fit-card li {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink-soft);
  padding-left: 22px;
  position: relative;
}

.fit-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.fit-card--yes li::before {
  background: var(--accent);
}

.fit-card--no li::before {
  background: var(--ink-faint);
}

.fit-footer {
  font-size: 15px;
  color: var(--ink-muted);
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  max-width: 600px;
}

/* Tablet */
@media (max-width: 900px) {
  .fit { padding: 80px 0; }
  .fit-intro { margin-bottom: 40px; font-size: 17px; }
  .fit-grid { gap: 18px; }
  .fit-card { padding: 32px 28px; }
}

/* Mobile */
@media (max-width: 640px) {
  .fit { padding: 64px 0; }
  .fit-intro {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 36px;
  }
  .fit-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 32px;
  }
  .fit-card {
    padding: 28px 24px;
    border-radius: 16px;
  }
  .fit-card-header {
    margin-bottom: 22px;
    padding-bottom: 20px;
    gap: 12px;
  }
  .fit-card-header h3 { font-size: 19px; }
  .fit-tick,
  .fit-cross {
    width: 32px;
    height: 32px;
    font-size: 15px;
  }
  .fit-cross { font-size: 19px; }
  .fit-card li {
    font-size: 15px;
    padding-left: 20px;
  }
  .fit-footer { font-size: 14px; padding: 0 8px; }
}

/* Dark mode for fit cards */
html:not([data-theme="light"]) .fit-card {
  background: var(--bg-warm);
  border-color: var(--rule);
}
html:not([data-theme="light"]) .fit-card--yes {
  background: linear-gradient(180deg, rgba(255, 90, 57, 0.04) 0%, var(--bg-warm) 100%);
  border-color: rgba(255, 90, 57, 0.18);
}
html:not([data-theme="light"]) .fit-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}
html:not([data-theme="light"]) .fit-cross {
  background: rgba(255, 255, 255, 0.05);
}

html[data-theme="dark"] .fit-card {
  background: var(--bg-warm);
  border-color: var(--rule);
}
html[data-theme="dark"] .fit-card--yes {
  background: linear-gradient(180deg, rgba(255, 90, 57, 0.04) 0%, var(--bg-warm) 100%);
  border-color: rgba(255, 90, 57, 0.18);
}
html[data-theme="dark"] .fit-card:hover {
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  border-color: rgba(255, 255, 255, 0.12);
}
html[data-theme="dark"] .fit-cross {
  background: rgba(255, 255, 255, 0.05);
}
