/* ============================================
   Donavision — AI Automation Agency
   Design tokens
   ============================================ */
:root {
  --color-bg: #FAFAFB;
  --color-bg-alt: #F2F3F6;
  --color-surface: #FFFFFF;
  --color-ink: #14161F;
  --color-ink-soft: #454A58;
  --color-muted: #676C7B;
  --color-border: #E6E7EC;
  --color-border-strong: #D8D9E0;

  --color-accent: #C2903F;
  --color-accent-dark: #96702D;
  --color-accent-light: #E0AE63;
  --color-accent-tint: #F7EEDF;

  --color-dark-bg: #12141C;
  --color-dark-surface: #1B1E29;
  --color-dark-border: #2C2F3C;
  --color-dark-text: #F3F3F5;
  --color-dark-muted: #A7ABBB;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;

  --shadow-sm: 0 1px 2px rgba(20,22,31,0.04), 0 2px 8px rgba(20,22,31,0.04);
  --shadow-md: 0 8px 24px rgba(20,22,31,0.08);
  --shadow-lg: 0 24px 64px rgba(20,22,31,0.14);
  --shadow-accent: 0 10px 30px rgba(194,144,63,0.25);

  --container: 1220px;
  --container-narrow: 760px;

  --font-display: "Instrument Serif", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", "SF Mono", monospace;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 84px;

  /* Added for the light/dark toggle. Light values reproduce the existing look. */
  --on-ink: #FFFFFF;            /* text on an ink (dark) button */
  --on-accent-dark: #FFFFFF;    /* text on the gold-dark hover state */
  --panel: #14161F;             /* dark bands: closing CTA, case panel, chat header */
  --panel-line: transparent;
  --header-glass: rgba(250, 250, 251, 0.98);
  --header-shadow: rgba(20, 22, 31, 0.07);
  --icon-grad: radial-gradient(120% 120% at 28% 22%, #FBF5E8 0%, var(--color-accent-tint) 65%, #F1DFC0 100%);
  --ok: #3E7A4E;
  --glow-gold: rgba(194, 144, 63, 0.24);
  --glow-cool: rgba(92, 112, 190, 0.11);
  --logo-filter: none;
}

/* Dark values appear twice on purpose: once for visitors whose system is dark
   (unless they chose light), once for visitors who chose dark with the toggle. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --color-bg: #0E1016;
    --color-bg-alt: #141720;
    --color-surface: #171A23;
    --color-ink: #ECEDF2;
    --color-ink-soft: #C6C9D4;
    --color-muted: #9EA3B3;
    --color-border: #242835;
    --color-border-strong: #363B4B;
    --color-accent: #D2A04C;
    --color-accent-dark: #E3B86E;
    --color-accent-tint: #2A2417;
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
    --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
    --shadow-accent: 0 10px 30px rgba(210,160,76,0.18);
    --on-ink: #14161F;
    --on-accent-dark: #14161F;
    --panel: #1B1E29;
    --panel-line: #2C2F3C;
    --header-glass: rgba(14, 16, 22, 0.94);
    --header-shadow: rgba(0, 0, 0, 0.5);
    --icon-grad: radial-gradient(120% 120% at 28% 22%, #3A2F1A 0%, var(--color-accent-tint) 70%, #20190D 100%);
    --ok: #7FCB95;
    --glow-gold: rgba(210, 160, 76, 0.2);
    --glow-cool: rgba(88, 110, 200, 0.18);
    --logo-filter: invert(1) brightness(0.94);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --color-bg: #0E1016;
  --color-bg-alt: #141720;
  --color-surface: #171A23;
  --color-ink: #ECEDF2;
  --color-ink-soft: #C6C9D4;
  --color-muted: #9EA3B3;
  --color-border: #242835;
  --color-border-strong: #363B4B;
  --color-accent: #D2A04C;
  --color-accent-dark: #E3B86E;
  --color-accent-tint: #2A2417;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4), 0 2px 8px rgba(0,0,0,0.3);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
  --shadow-accent: 0 10px 30px rgba(210,160,76,0.18);
  --on-ink: #14161F;
  --on-accent-dark: #14161F;
  --panel: #1B1E29;
  --panel-line: #2C2F3C;
  --header-glass: rgba(14, 16, 22, 0.94);
  --header-shadow: rgba(0, 0, 0, 0.5);
  --icon-grad: radial-gradient(120% 120% at 28% 22%, #3A2F1A 0%, var(--color-accent-tint) 70%, #20190D 100%);
  --ok: #7FCB95;
  --glow-gold: rgba(210, 160, 76, 0.2);
  --glow-cool: rgba(88, 110, 200, 0.18);
  --logo-filter: invert(1) brightness(0.94);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   Reset
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p { margin: 0; }
input, textarea, select { font: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-ink);
  color: var(--on-ink);
  padding: 12px 20px;
  z-index: 999;
  border-radius: 0 0 8px 0;
}
.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

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

section { position: relative; }
.section-pad {
  padding: 128px 0;
}
@media (max-width: 900px) {
  .section-pad { padding: 88px 0; }
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--color-accent);
}

.section-head {
  max-width: 620px;
  margin-bottom: 64px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  align-items: center;
  gap: 40px;
}
.about-grid .section-head { margin-bottom: 0; }
.about-visual { display: flex; align-items: center; justify-content: center; }
.about-visual svg { width: 100%; max-width: 300px; }
.about-visual .ring { fill: none; stroke: var(--color-border-strong); }
.about-visual .ring-accent { stroke: var(--color-accent); }
.about-visual .link { stroke: var(--color-border-strong); stroke-width: 1; }
.about-visual .node { fill: var(--color-ink); }
.about-visual .node-accent { fill: var(--color-accent); }
.about-visual .core { fill: url(#coreGradient); }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { display: none; }
}
.section-head.center {
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.section-head.center .eyebrow { justify-content: center; }
.section-head.center .eyebrow::before { display: none; }

h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }

h2.h-section {
  font-size: clamp(30px, 3.4vw, 42px);
  line-height: 1.15;
  color: var(--color-ink);
}
p.section-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--color-muted);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 28px;
  border-radius: var(--radius-pill);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), background-color 0.35s var(--ease), border-color 0.35s var(--ease), color 0.35s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-ink);
  color: var(--on-ink);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover {
  background: var(--color-accent-dark);
  color: var(--on-accent-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-secondary {
  background: transparent;
  color: var(--color-ink);
  border-color: var(--color-border-strong);
}
.btn-secondary:hover {
  border-color: var(--color-ink);
  transform: translateY(-2px);
}
.btn-on-dark {
  background: var(--color-accent);
  color: var(--color-dark-bg);
}
.btn-on-dark:hover {
  background: var(--color-accent-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-accent);
}
.btn-ghost-on-dark {
  background: transparent;
  color: var(--color-dark-text);
  border-color: var(--color-dark-border);
}
.btn-ghost-on-dark:hover {
  border-color: var(--color-dark-text);
  transform: translateY(-2px);
}
.btn svg { width: 16px; height: 16px; }

/* ============================================
   Header
   ============================================ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 2px 20px var(--header-shadow);
  transition: background-color 0.5s var(--ease), border-color 0.5s var(--ease), box-shadow 0.5s var(--ease), backdrop-filter 0.5s var(--ease);
}
.site-header.scrolled {
  background: var(--header-glass);
  backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--color-border);
  box-shadow: 0 4px 28px var(--header-shadow);
}
.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-ink);
}
.logo .mark { height: 36px; width: auto; filter: var(--logo-filter); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}
.nav-links a {
  font-size: 15px;
  font-weight: 550;
  color: var(--color-ink);
  position: relative;
  padding: 8px 0;
  transition: color 0.25s var(--ease);
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--color-accent);
  transition: right 0.3s var(--ease);
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-accent-dark);
}
.nav-links a:hover::after,
.nav-links a.is-active::after { right: 0; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-left: 32px;
}
.header-actions .btn { padding: 13px 24px; font-size: 14.5px; }
.contact-link {
  font-size: 15px;
  font-weight: 550;
  color: var(--color-ink);
}
.contact-link:hover { color: var(--color-accent-dark); }

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  color: var(--color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.theme-toggle:hover { border-color: var(--color-ink); color: var(--color-ink); }
.theme-toggle svg { width: 18px; height: 18px; stroke: currentColor; }
.theme-toggle .i-sun { display: none; }
.theme-toggle.is-dark .i-sun { display: block; }
.theme-toggle.is-dark .i-moon { display: none; }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--color-ink);
  position: relative;
  transition: transform 0.3s var(--ease), opacity 0.3s var(--ease);
}
.nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 1.5px;
  background: var(--color-ink);
  transition: transform 0.3s var(--ease), top 0.3s var(--ease);
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { top: 0; transform: rotate(45deg); }
.nav-toggle.open span::after { top: 0; transform: rotate(-45deg); }

.mobile-panel {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: var(--color-bg);
  z-index: 99;
  padding: 32px;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
}
.mobile-panel.open { display: flex; }
.mobile-panel a {
  font-family: var(--font-display);
  font-size: 28px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-ink);
}
.mobile-panel a.btn-primary {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  color: var(--on-ink);
  padding: 15px 28px;
  border-bottom: none;
  margin-top: 24px;
  align-self: flex-start;
}

/* ============================================
   Hero
   Light, like the rest of the page. The rings, dots and golden core are
   drawn on a canvas and tilt slowly in 3D; drag to rotate.
   ============================================ */
.hero {
  padding-top: calc(var(--header-h) + 96px);
  padding-bottom: 112px;
  overflow: hidden;
  background:
    radial-gradient(60% 55% at 82% 8%, rgba(194, 144, 63, 0.14) 0%, rgba(194, 144, 63, 0) 60%),
    var(--color-bg);
}
.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}
.hero-copy { max-width: 640px; }
.hero .eyebrow { opacity: 0; animation: rise 0.8s var(--ease) 0.05s forwards; }
.hero h1 {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.18s forwards;
  font-size: clamp(38px, 5vw, 60px);
  line-height: 1.08;
  color: var(--color-ink);
  letter-spacing: -0.015em;
}
.hero h1 em,
.hero h1 .h1-human { color: var(--color-accent-dark); }
.hero .hero-sub {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.32s forwards;
  margin-top: 26px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--color-muted);
  max-width: 560px;
}
.hero-ctas {
  opacity: 0;
  animation: rise 0.9s var(--ease) 0.46s forwards;
  margin-top: 40px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

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

/* Orbit: the original rings and golden core, drawn on a canvas. Drag to rotate. */
.hero-orbit {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 1;
  opacity: 0;
  animation: fadeIn 1.2s var(--ease) 0.3s forwards;
}
.hero-orbit canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: pan-y; }
.hero-orbit canvas.is-dragging { cursor: grabbing; }
.hero-glow {
  position: absolute;
  left: 50%; top: 50%;
  width: 70%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(194, 144, 63, 0.22) 0%, rgba(194, 144, 63, 0) 70%);
  filter: blur(10px);
  pointer-events: none;
}
.orbit-hint { position: absolute; left: 0; right: 0; bottom: -4px; text-align: center; font-size: 13px; color: var(--color-muted); opacity: 0.8; pointer-events: none; }
.hero.is-paused *, .hero.is-paused *::before, .hero.is-paused *::after { animation-play-state: paused !important; }

/* ============================================
   Trusted By
   ============================================ */
.trusted {
  padding: 56px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.trusted-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: 32px;
}
.logo-row {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  flex-wrap: wrap;
  gap: 32px 64px;
}
.logo-row .wordmark {
  font-family: var(--font-display);
  font-size: 21px;
  color: var(--color-ink-soft);
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
  letter-spacing: 0.01em;
}
.logo-row .wordmark:hover { opacity: 1; }
.logo-row .client-logo {
  height: 48px;
  width: auto;
  filter: var(--logo-filter);
  opacity: 0.82;
  transition: opacity 0.3s var(--ease);
}
.logo-row .client-logo:hover { opacity: 1; }

/* ============================================
   Reveal on scroll
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal-stagger.in-view > * {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0.02s; }
.reveal-stagger.in-view > *:nth-child(2) { transition-delay: 0.09s; }
.reveal-stagger.in-view > *:nth-child(3) { transition-delay: 0.16s; }
.reveal-stagger.in-view > *:nth-child(4) { transition-delay: 0.23s; }
.reveal-stagger.in-view > *:nth-child(5) { transition-delay: 0.30s; }
.reveal-stagger.in-view > *:nth-child(6) { transition-delay: 0.37s; }

/* ============================================
   Services
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.service-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
}
.service-icon {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-md);
  background: var(--icon-grad);
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.7), 0 1px 3px rgba(150,112,45,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  position: relative;
  transition: transform 0.5s var(--ease);
}
.service-card:hover .service-icon { transform: scale(1.08) rotate(-4deg); }
.service-icon svg { width: 25px; height: 25px; stroke: var(--color-accent-dark); position: relative; z-index: 1; }
.service-icon .icon-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--color-accent);
  border: 2px solid var(--color-surface);
}
.service-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  color: var(--color-ink);
  margin-bottom: 10px;
}
.service-card p {
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--color-muted);
}

/* ============================================
   How We Work
   ============================================ */
.process-dark {
  background: var(--color-dark-bg);
  color: var(--color-dark-text);
}
.process-dark .eyebrow { color: var(--color-accent-light); }
.process-dark .h-section { color: var(--color-dark-text); }
.process-dark .section-sub { color: var(--color-dark-muted); }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-dark-border);
  border: 1px solid var(--color-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.process-step {
  background: var(--color-dark-bg);
  padding: 68px 30px 40px;
  position: relative;
  transition: background-color 0.4s var(--ease);
}
.process-step:hover { background: var(--color-dark-surface); }
.process-step::before {
  content: "";
  position: absolute;
  top: 40px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--color-dark-border);
}
.process-step:first-child::before { left: 30px; }
.process-step:last-child::before { right: 30px; }
.process-step .step-node {
  position: absolute;
  top: 40px;
  left: 30px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-dark-bg);
  border: 1.5px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-accent-light);
  z-index: 1;
  transition: box-shadow 0.4s var(--ease);
}
.process-step:hover .step-node { box-shadow: 0 0 0 5px rgba(194,144,63,0.15); }
.process-step h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 17px;
  margin-bottom: 12px;
}
.process-step p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--color-dark-muted);
}

/* ============================================
   Case Studies
   ============================================ */
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.case-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-top {
  padding: 32px 28px;
  background: var(--panel);
  color: #fff;
}
.case-metric {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--color-accent-light);
  line-height: 1;
}
.case-metric-label {
  margin-top: 10px;
  font-size: 13px;
  color: #C7C9D3;
}
.case-body { padding: 28px; }
.case-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.case-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16.5px;
  margin: 12px 0 10px;
  line-height: 1.4;
}
.case-card p {
  font-size: 14px;
  color: var(--color-muted);
  line-height: 1.6;
}
.case-note {
  margin-top: 28px;
  font-size: 13px;
  color: var(--color-muted);
  font-style: italic;
}

/* ============================================
   Testimonials
   ============================================ */
.testi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testi-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.testi-quote-mark {
  font-family: var(--font-display);
  font-size: 44px;
  color: var(--color-accent);
  line-height: 0.5;
}
.testi-card p.quote {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--color-ink-soft);
}
.testi-person {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--color-accent-tint);
  color: var(--color-accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  font-family: var(--font-body);
}
.testi-person .name { font-size: 14px; font-weight: 600; color: var(--color-ink); }
.testi-person .role { font-size: 12.5px; color: var(--color-muted); }

/* ============================================
   Technologies
   ============================================ */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.tech-item {
  background: var(--color-surface);
  padding: 32px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 13.5px;
  color: var(--color-ink-soft);
  transition: color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.tech-item:hover { color: var(--color-accent-dark); background: var(--color-accent-tint); }

/* ============================================
   Blog
   ============================================ */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.blog-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  display: flex;
  flex-direction: column;
}
.blog-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.blog-thumb {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
}
.blog-thumb svg { width: 100%; height: 100%; }
.blog-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.blog-cat {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-accent-dark);
}
.blog-card h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--color-ink);
}
.blog-meta {
  margin-top: auto;
  font-size: 12.5px;
  color: var(--color-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ============================================
   FAQ
   ============================================ */
.faq-list { border-top: 1px solid var(--color-border); }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 26px 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 16px;
  color: var(--color-ink);
}
.faq-q .icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  position: relative;
}
.faq-q .icon::before, .faq-q .icon::after {
  content: "";
  position: absolute;
  background: var(--color-ink);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
}
.faq-q .icon::before { width: 12px; height: 1.5px; }
.faq-q .icon::after { width: 1.5px; height: 12px; }
.faq-item.open .faq-q .icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.45s var(--ease);
}
.faq-a p {
  padding: 0 4px 26px;
  font-size: 15px;
  line-height: 1.7;
  color: var(--color-muted);
  max-width: 680px;
}

/* ============================================
   Final CTA
   ============================================ */
.final-cta {
  background: var(--panel);
  border-block: 1px solid var(--panel-line);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 80% at 50% 0%, rgba(194,144,63,0.18), rgba(18,20,28,0) 70%);
}
.final-cta .container { position: relative; }
.final-cta h2 {
  font-size: clamp(30px, 4vw, 48px);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.15;
}
.final-cta p {
  margin: 20px auto 0;
  max-width: 480px;
  color: #B9BCC8;
  font-size: 16.5px;
  line-height: 1.6;
}
.final-cta .cta-row {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ============================================
   Contact
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
}
.contact-info h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 15px;
  color: var(--color-ink);
  margin-bottom: 6px;
}
.contact-info .info-block { margin-bottom: 32px; }
.contact-info .info-block p, .contact-info .info-block a {
  font-size: 15px;
  color: var(--color-muted);
  line-height: 1.6;
}
.contact-info .info-block a:hover { color: var(--color-accent-dark); }
.social-row {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}
.social-row a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.3s var(--ease), background-color 0.3s var(--ease);
}
.social-row a:hover { background: var(--color-ink); border-color: var(--color-ink); }
.social-row a:hover svg { stroke: var(--on-ink); }
.social-row svg { width: 16px; height: 16px; stroke: var(--color-ink-soft); }

.form-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 20px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--color-ink-soft);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
  color: var(--color-ink);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(194,144,63,0.15);
}
.field textarea { resize: vertical; min-height: 110px; }
.field.hp { position: absolute; left: -9999px; }
.form-status {
  font-size: 14px;
  margin-top: 4px;
  min-height: 20px;
}
.form-status.success { color: var(--ok); }
.form-status.error { color: #B3442F; }
.form-card .btn { width: 100%; }

/* ============================================
   Footer
   ============================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 48px 0;
}
.site-footer .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 28px; }
.footer-links a { font-size: 13.5px; color: var(--color-muted); }
.footer-links a:hover { color: var(--color-ink); }
.footer-copy { font-size: 13.5px; color: var(--color-muted); }

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1080px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .case-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(3, 1fr); }
  .blog-grid { grid-template-columns: repeat(2, 1fr); }
  .testi-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .nav-links { display: none; }
  .header-actions .contact-link { display: none; }
  .header-actions .btn-primary { display: none; }
  .header-actions { gap: 12px; margin-left: 0; }
  .nav-toggle { display: flex; }
  .hero .container { grid-template-columns: 1fr; gap: 56px; }
  .hero-orbit { justify-self: start; max-width: 460px; }
  .hero { padding-top: calc(var(--header-h) + 56px); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .form-row { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 22px; }
  .services-grid, .case-grid, .testi-grid, .blog-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .hero { padding-top: calc(var(--header-h) + 32px); padding-bottom: 88px; }
  .logo-row { justify-content: center; gap: 28px; }
  .final-cta .cta-row .btn, .hero-ctas .btn { width: 100%; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
}

/* ============================================
   Chat Widget
   ============================================ */
.chat-widget {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 200;
}
.chat-toggle {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--color-ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-lg);
  transition: transform 0.35s var(--ease), background-color 0.35s var(--ease);
  position: relative;
}
.chat-toggle:hover { transform: translateY(-3px) scale(1.04); background: var(--color-accent-dark); }
.chat-toggle:hover svg { stroke: var(--on-accent-dark); }
.chat-toggle svg {
  width: 24px;
  height: 24px;
  stroke: var(--on-ink);
  position: absolute;
  transition: opacity 0.25s var(--ease), transform 0.25s var(--ease);
}
.chat-icon-close { opacity: 0; transform: scale(0.6) rotate(-45deg); }
.chat-toggle.open .chat-icon-open { opacity: 0; transform: scale(0.6) rotate(45deg); }
.chat-toggle.open .chat-icon-close { opacity: 1; transform: scale(1) rotate(0deg); }

.chat-panel {
  position: absolute;
  right: 0;
  bottom: 76px;
  width: 380px;
  max-width: calc(100vw - 48px);
  height: 540px;
  max-height: calc(100vh - 140px);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  opacity: 0;
  transform: translateY(16px) scale(0.98);
  pointer-events: none;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}
.chat-panel.open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }

.chat-header {
  background: var(--panel);
  border-bottom: 1px solid var(--panel-line);
  color: #fff;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
}
.chat-header-info { display: flex; align-items: center; gap: 12px; }
.chat-header-mark {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(194,144,63,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chat-header-mark svg { width: 17px; height: 17px; stroke: var(--color-accent-light); }
.chat-header-title { font-family: var(--font-body); font-weight: 600; font-size: 14.5px; }
.chat-header-sub { font-size: 12px; color: #A7ABBB; margin-top: 1px; }
.chat-close {
  background: none;
  border: none;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.25s var(--ease);
}
.chat-close:hover { background: rgba(255,255,255,0.1); }
.chat-close svg { width: 16px; height: 16px; stroke: #fff; }

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: var(--color-bg);
}
.chat-msg { max-width: 84%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.55; }
.chat-msg-assistant {
  align-self: flex-start;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-ink-soft);
  border-bottom-left-radius: 4px;
}
.chat-msg-user {
  align-self: flex-end;
  background: var(--color-ink);
  color: var(--on-ink);
  border-bottom-right-radius: 4px;
}
.chat-msg-error { align-self: center; background: transparent; color: #B3442F; font-size: 12.5px; text-align: center; }

.chat-typing {
  align-self: flex-start;
  display: flex;
  gap: 4px;
  padding: 13px 15px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  border-bottom-left-radius: 4px;
}
.chat-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-muted); animation: chatTyping 1.2s ease-in-out infinite; }
.chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes chatTyping {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-3px); opacity: 1; }
}

.chat-input-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}
.chat-input-row input {
  flex: 1;
  border: 1px solid var(--color-border-strong);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-size: 14px;
}
.chat-input-row input:focus { outline: none; border-color: var(--color-accent); box-shadow: 0 0 0 3px rgba(194,144,63,0.15); }
.chat-send {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-ink);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--on-ink);
  transition: background-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.chat-send:hover { background: var(--color-accent-dark); color: var(--on-accent-dark); transform: scale(1.05); }
.chat-send svg { width: 15px; height: 15px; }

@media (max-width: 480px) {
  .chat-widget { right: 16px; bottom: 16px; }
  .chat-panel { width: calc(100vw - 32px); height: calc(100vh - 120px); bottom: 72px; }
}

/* ============================================
   Blog Article Page
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
  margin-bottom: 28px;
  transition: color 0.25s var(--ease);
}
.back-link:hover { color: var(--color-ink); }
.article-hero { padding-top: calc(var(--header-h) + 64px); padding-bottom: 8px; }
.article-meta-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--color-muted);
}
.article-body { max-width: 100%; }
.article-body > p {
  font-size: 17px;
  line-height: 1.75;
  color: var(--color-ink-soft);
  margin-bottom: 20px;
}
.article-body h2 {
  font-size: clamp(26px, 3vw, 32px);
  margin: 52px 0 18px;
  color: var(--color-ink);
}
.sign-block {
  display: flex;
  gap: 20px;
  margin: 40px 0;
  padding-bottom: 40px;
  border-bottom: 1px solid var(--color-border);
}
.sign-block:last-of-type { border-bottom: none; }
.sign-num {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--color-accent);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.sign-content h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 19px;
  color: var(--color-ink);
  margin-bottom: 10px;
  line-height: 1.4;
}
.sign-content p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-soft);
  margin-bottom: 10px;
}
.sign-content p:last-child { margin-bottom: 0; }
.article-cta {
  margin-top: 56px;
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--panel-line);
  color: #fff;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 100% at 50% 0%, rgba(194,144,63,0.18), rgba(18,20,28,0) 70%);
}
.article-cta * { position: relative; }
.article-cta h3 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 12px; }
.article-cta p { color: #B9BCC8; margin-bottom: 24px; font-size: 15.5px; }
@media (max-width: 600px) {
  .sign-block { gap: 14px; }
  .sign-num { width: 34px; height: 34px; font-size: 13px; }
}

/* Bullet lists inside article body */
.article-body ul { margin: 4px 0 22px; padding-left: 0; list-style: none; }
.article-body ul li {
  position: relative;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.7;
  color: var(--color-ink-soft);
  margin-bottom: 9px;
}
.article-body ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
}

/* Can / Can't capability blocks (icon instead of number) */
.capability-block {
  display: flex;
  gap: 20px;
  margin: 32px 0;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--color-border);
}
.capability-block:last-of-type { border-bottom: none; }
.capability-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.capability-can .capability-icon { background: var(--color-accent-tint); }
.capability-can .capability-icon svg { width: 16px; height: 16px; stroke: var(--color-accent-dark); }
.capability-cant .capability-icon { background: var(--color-bg-alt); border: 1px solid var(--color-border-strong); }
.capability-cant .capability-icon svg { width: 14px; height: 14px; stroke: var(--color-muted); }

/* ============================================
   Refinement pass
   Quieter labels, one orchestrated moment (the hero load),
   and testimonials set as typography instead of boxed cards.
   Everything here overrides earlier rules; delete this block
   to return to the previous look.
   ============================================ */

/* Labels: plain sentence case instead of tracked mono caps */
.eyebrow {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 18px;
}
.eyebrow::before { display: none; }
.trusted-label {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}
.case-tag,
.blog-cat {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.tech-item {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
}

/* Headline: the machine's line upright, the human's line italic */
.hero h1 { text-wrap: balance; }
.hero h1 .h1-line { display: block; }
.hero h1 .h1-human { font-style: italic; }

/* Scroll reveals off: content is simply there. The hero keeps its load sequence. */
.reveal,
.reveal-stagger > * {
  opacity: 1;
  transform: none;
  transition: none;
}

/* Only things you can click should respond like they can be clicked */
.service-card:hover,
.case-card:hover {
  transform: none;
  box-shadow: none;
}
.blog-card:hover { transform: translateY(-3px); }

/* Testimonials: large serif quotes between hairlines, no boxes */
.testi-grid { gap: 0; }
.testi-card {
  background: none;
  border: 0;
  border-left: 1px solid var(--color-border-strong);
  border-radius: 0;
  padding: 4px 36px;
  gap: 28px;
}
.testi-card:first-child { border-left: 0; padding-left: 0; }
.testi-card:last-child { padding-right: 0; }
.testi-quote-mark,
.avatar { display: none; }
.testi-card p.quote {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.38;
  letter-spacing: -0.005em;
  color: var(--color-ink);
  text-wrap: pretty;
}
.testi-card p.quote::before { content: "\201C"; }
.testi-card p.quote::after { content: "\201D"; }
@media (max-width: 1080px) {
  .testi-card { padding: 4px 24px; }
  .testi-card p.quote { font-size: 20px; }
}
@media (max-width: 720px) {
  .testi-card {
    border-left: 0;
    border-top: 1px solid var(--color-border-strong);
    padding: 28px 0;
  }
  .testi-card:first-child { border-top: 0; padding-top: 0; }
  .testi-card p.quote { font-size: 22px; }
}

/* Comfortable reading widths */
.section-sub,
.hero-sub,
.faq-a p { text-wrap: pretty; }

/* Balanced headings: no single-word last lines */
h2.h-section,
.final-cta h2 { text-wrap: balance; }

/* Article pages: category goes on its own line under the back link */
.article-hero .back-link { display: flex; width: max-content; margin-bottom: 28px; }


/* ============================================
   Design preview additions
   Placeholders, testimonial, the case study panel, typographic blog covers,
   and the phone chat-button fix. Everything above is the existing design.
   ============================================ */

/* ---- Placeholders: only visible while <body class="preview"> ---- */
.ph-tag, .ph-inline, .slot-card, .preview-note, .ph-block { display: none; }
.preview .ph-tag, .preview .ph-inline { display: inline-block; }
.preview .slot-card { display: flex; }
.preview .ph-block { display: block; }
.preview .preview-note { display: block; }
.ph-inline {
  margin-left: 10px;
  padding: 2px 10px;
  vertical-align: 1px;
  border: 1px dashed var(--color-accent-dark);
  border-radius: var(--radius-pill);
  color: var(--color-accent-dark);
  font-size: 12.5px;
  font-weight: 500;
  line-height: 1.5;
  white-space: nowrap;
}
.ph-tag {
  padding: 7px 12px;
  border: 1px dashed var(--color-accent-dark);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  color: var(--color-ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
}
.ph-tag b { color: var(--color-accent-dark); font-weight: 600; margin-right: 6px; }
.slot-card {
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  padding: 28px;
  border: 1px dashed var(--color-accent-dark);
  border-radius: var(--radius-lg);
  background: var(--color-accent-tint);
  color: var(--color-ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}
.slot-card b { color: var(--color-accent-dark); font-weight: 600; }
.slot-card .slot-title { font-family: var(--font-display); font-size: 24px; line-height: 1.2; color: var(--color-ink); }
.preview-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 150;
  max-width: min(300px, calc(100vw - 112px));
  padding: 9px 13px;
  border: 1px dashed var(--color-accent-dark);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  color: var(--color-ink-soft);
  font-size: 12.5px;
  line-height: 1.45;
  cursor: pointer;
}
.preview-note b { color: var(--color-accent-dark); font-weight: 600; }
.preview-note.is-closed { display: none !important; }

/* ---- Testimonial: one person, large, with a portrait ---- */
.testi-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.34fr) minmax(0, 0.66fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
  margin: 0;
}
.portrait {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(90% 60% at 72% 10%, var(--glow-gold), transparent 72%),
    linear-gradient(165deg, var(--color-accent-tint), var(--color-bg));
}
.portrait-mono { font-family: var(--font-display); font-style: italic; font-size: clamp(120px, 14vw, 180px); line-height: 1; color: var(--color-accent-dark); }
.portrait .ph-tag { position: absolute; left: 12px; right: 12px; bottom: 12px; text-align: left; }
.testi-feature blockquote { margin: 0; }
.testi-feature p.quote {
  font-family: var(--font-display);
  font-size: clamp(27px, 2vw + 14px, 40px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--color-ink);
  text-wrap: balance;
}
.testi-feature p.quote::before { content: "\201C"; }
.testi-feature p.quote::after { content: "\201D"; }
.testi-who { position: relative; margin-top: 34px; padding-top: 22px; }
.testi-who::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 2px; background: var(--color-accent); }
.testi-who .name { font-size: 16px; font-weight: 600; color: var(--color-ink); }
.testi-who .role { font-size: 14.5px; color: var(--color-muted); margin-top: 2px; }
.testi-next { margin-top: clamp(40px, 5vw, 64px); }
.testi-next.slot-card { flex-direction: row; align-items: center; gap: 14px; padding: 18px 24px; border-radius: var(--radius-md); }
@media (max-width: 820px) {
  .testi-feature { grid-template-columns: 1fr; gap: 32px; }
  .portrait { max-width: 240px; }
}

/* ---- Case study: one real project, one slot for the next ---- */
.case-grid.case-grid-2 { grid-template-columns: repeat(3, 1fr); }
.case-wide { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.case-wide .case-top { display: flex; flex-direction: column; justify-content: center; padding: 40px 36px; }
.case-wide .case-metric { font-size: clamp(40px, 4vw, 56px); }
.case-wide .case-body { padding: 40px 36px; display: flex; flex-direction: column; justify-content: center; }
.case-wide .case-card-h, .case-wide h3 { font-size: 19px; }
.case-grid-2 > .slot-card { border-radius: var(--radius-lg); }
@media (max-width: 900px) {
  .case-grid.case-grid-2 { grid-template-columns: 1fr; }
  .case-wide { grid-column: auto; grid-template-columns: 1fr; }
}

/* ---- Blog covers: typography from each article's own title ---- */
.cover {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  container-type: size;
  background: var(--cv-bg);
  color: var(--cv-ink);
}
.cover::before {
  content: "";
  position: absolute;
  width: 84cqw; aspect-ratio: 1; border-radius: 50%;
  right: -20cqw; top: -34cqw;
  background: var(--cv-disc);
}
.cover::after {
  content: "";
  position: absolute;
  width: 50cqw; aspect-ratio: 1; border-radius: 50%;
  right: -3cqw; top: -17cqw;
  border: 1px solid var(--color-accent);
}
.cover--light { --cv-bg: var(--color-bg-alt); --cv-disc: var(--color-accent-tint); --cv-ink: var(--color-ink); --cv-em: var(--color-accent-dark); }
.cover--dark { --cv-bg: #14161F; --cv-disc: #1B1E29; --cv-ink: #F3F3F5; --cv-em: #E0AE63; }
.cover-in {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 0 2.6cqw;
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.02em;
}
.cover-in i { font-style: italic; color: var(--cv-em); letter-spacing: -0.01em; }
.cv-signs { font-size: min(58cqw, 100cqh); }
.cv-signs i { font-size: 0.42em; }
.cv-crm { font-size: min(21cqw, 36cqh); gap: 0 2cqw; }
.cv-crm i { font-size: 0.7em; }
.cv-chat { flex-direction: column; align-items: flex-start; font-size: min(32cqw, 37cqh); line-height: 0.95; }
.cv-chat i { margin-left: 0.45em; }
.cv-scope { flex-direction: column; align-items: center; font-size: min(21cqw, 34cqh); gap: 0.2em 0; }
.cv-scope i { font-size: 0.3em; letter-spacing: 0; }
.blog-card:hover .cover-in { transform: scale(1.03); }
.cover-in { transition: transform 0.7s var(--ease); }

.article-cover {
  position: relative;
  aspect-ratio: 21 / 9;
  margin-top: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
@media (max-width: 600px) { .article-cover { aspect-ratio: 16 / 10; } }
.article-meta-row { flex-wrap: wrap; }

/* ---- Chat button: stays out of the way of the hero buttons on phones ---- */
.chat-widget { transition: opacity 0.3s var(--ease), transform 0.3s var(--ease); }
.chat-widget.is-away { opacity: 0; transform: translateY(10px); pointer-events: none; }
.site-header.menu-open { background: var(--color-bg); border-bottom-color: var(--color-border); }

/* ---- Hero on small screens ---- */
@media (max-width: 900px) {
  .hero { padding-bottom: 80px; }
  }
@media (max-width: 480px) {
}


/* ============================================
   Cohesion pass
   One set of rules for the whole page: the same dark band behind the hero,
   the process, the closing call to action and the footer; the same gold main
   button everywhere; the same card titles; hover only on things you can click.
   Delete this block to return to the previous version.
   ============================================ */
:root {
  --band: #0E111D;
  --band-line: rgba(243, 243, 245, 0.08);
  --sec-y: clamp(80px, 9vw, 120px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --band: #090B14; color-scheme: dark; }
}
:root[data-theme="dark"] { --band: #090B14; color-scheme: dark; }

html { scroll-padding-top: calc(var(--header-h) + 12px); }
body { text-rendering: optimizeLegibility; font-kerning: normal; }
::selection { background: rgba(194, 144, 63, 0.3); }

/* Rhythm and headings */
.section-pad { padding: var(--sec-y) 0; }
.section-head { margin-bottom: 56px; }
h2.h-section { font-size: clamp(32px, 3.8vw, 46px); line-height: 1.1; letter-spacing: -0.012em; }
p.section-sub { max-width: 54ch; }
.service-card h3,
.blog-card h3,
.process-step h3 { font-size: 16.5px; line-height: 1.4; letter-spacing: -0.005em; }

/* Buttons: one main button (ink), one outline, gold only on the dark bands */
.btn:active { transform: translateY(0) scale(0.985); }
.btn-ghost-on-dark { color: #F3F3F5; border-color: rgba(243, 243, 245, 0.28); }
.btn-ghost-on-dark:hover { border-color: #F3F3F5; }

/* One dark band, used four times */
.process-dark,
.final-cta,
.site-footer {
  background: var(--band);
  color: #F3F3F5;
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.process-dark,
.final-cta { border-block: 1px solid var(--band-line); }
#netArt line { stroke: rgba(150, 162, 230, 0.2); stroke-width: 1; }
#netArt circle { fill: rgba(243, 243, 245, 0.6); }
.band-net {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}
.process-dark .band-net {
  -webkit-mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
  mask-image: linear-gradient(90deg, transparent 10%, #000 85%);
}
.final-cta .band-net {
  -webkit-mask-image: radial-gradient(55% 90% at 50% 50%, transparent 35%, #000 100%);
  mask-image: radial-gradient(55% 90% at 50% 50%, transparent 35%, #000 100%);
}
.case-top { background: var(--band); }
.cover--dark { --cv-bg: var(--band); }

/* The process uses the same path-and-node language as the hero: the line draws once as you arrive */
.process-step { background: var(--band); }
.process-step:hover { background: var(--band); }
.process-step:hover .step-node { box-shadow: none; }
.process-step .step-node { background: var(--band); }
.process-step:nth-child(2) { --k: 1; }
.process-step:nth-child(3) { --k: 2; }
.process-step:nth-child(4) { --k: 3; }
.process-dark.will-draw .process-step::before {
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.9s var(--ease) calc(var(--k, 0) * 0.35s);
}
.process-dark.will-draw .step-node {
  border-color: var(--color-dark-border);
  color: var(--color-dark-muted);
  transition: border-color 0.6s var(--ease) calc(var(--k, 0) * 0.35s + 0.2s), color 0.6s var(--ease) calc(var(--k, 0) * 0.35s + 0.2s);
}
.process-dark.is-drawn .process-step::before { transform: scaleX(1); }
.process-dark.is-drawn .step-node { border-color: var(--color-accent); color: var(--color-accent-light); }

/* Footer closes the page on the same band */
.site-footer { border-top: 1px solid var(--band-line); padding: 56px 0; }
.site-footer .logo { color: #F3F3F5; }
.site-footer .logo .mark { filter: invert(1) brightness(0.94); }
.footer-links a,
.footer-copy { color: #9DA2B3; }
.footer-links a:hover { color: #F3F3F5; }

/* Hover only where something happens when you click */
.tech-item:hover { color: var(--color-ink-soft); background: var(--color-surface); }
.blog-card { transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s var(--ease); }
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong); }

/* Phone: roomier fields, tighter card */
@media (max-width: 560px) {
  .form-card { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}

.article-cta { background: var(--band); }
.chat-toggle { box-shadow: 0 0 0 1px rgba(243, 243, 245, 0.16), 0 10px 28px rgba(0, 0, 0, 0.28); }


/* ============================================
   Testimonials: a row of cards you can swipe or drag
   ============================================ */
.testi-section { overflow: hidden; }
.testi-section .section-head { margin-bottom: 48px; }
.testi-track {
  --edge: max(32px, calc((100% - var(--container)) / 2 + 32px));
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding: 8px var(--edge) 28px;
  scroll-padding-inline: var(--edge);
  scroll-snap-type: x proximity;
  justify-content: safe center;
  scrollbar-width: thin;
  scrollbar-color: var(--color-border-strong) transparent;
}
.testi-track.can-scroll { cursor: grab; justify-content: flex-start; }
.testi-track.is-dragging { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.testi-card2 {
  flex: 0 0 min(400px, 84vw);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin: 0;
  padding: 32px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
}
.tc-top { display: flex; align-items: center; gap: 16px; }
.tc-glyph { font-family: var(--font-display); font-size: 68px; line-height: 1; height: 30px; display: block; color: var(--color-accent); transform: translateY(3px); }
.tc-top { min-height: 30px; }
.tc-stars { display: inline-flex; gap: 3px; color: var(--color-accent); }
.tc-stars svg { width: 18px; height: 18px; fill: currentColor; }
.tc-quote { font-family: var(--font-display); font-style: italic; font-size: 23px; line-height: 1.4; color: var(--color-ink); text-wrap: pretty; }
.testi-card2 blockquote { margin: 0; }
.tc-who { margin-top: auto; display: flex; align-items: center; gap: 16px; padding-top: 22px; min-height: 108px; box-sizing: border-box; border-top: 1px solid var(--color-border); }
.tc-who .name { font-size: 16px; font-weight: 600; color: var(--color-ink); }
.tc-who .role { font-size: 14.5px; color: var(--color-muted); margin-top: 2px; }
.tc-avatar {
  flex: none;
  width: 56px; height: 56px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--icon-grad);
  border: 1px solid var(--color-border);
  font-family: var(--font-display); font-style: italic; font-size: 28px;
  color: var(--color-accent-dark);
}
.testi-ph { display: none; border-style: dashed; border-color: var(--color-accent); background: var(--color-accent-tint); }
body.preview .testi-ph { display: flex; }
.testi-ph .tc-quote { font-size: 18px; font-style: normal; font-family: var(--font-body); color: var(--color-ink-soft); }
.testi-ph .tc-quote b { color: var(--color-accent-dark); font-weight: 600; }
.testi-ph .tc-avatar { background: transparent; border: 1px dashed var(--color-accent); }
.testi-ph .name, .testi-ph .role { color: var(--color-muted); }

/* Photo covers: one picture per article, cropped to fit the card and the article banner */
.blog-thumb img,
.article-cover--photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--pos, 50% 50%);
  display: block;
}
.blog-thumb img { transition: transform 0.7s var(--ease); }
.blog-card:hover .blog-thumb img { transform: scale(1.03); }
.article-cover--photo { aspect-ratio: 16 / 9; }
@media (max-width: 600px) { .article-cover--photo { aspect-ratio: 4 / 3; } }

/* Live: a single case study fills the row */
.case-grid > .case-wide:only-child { grid-column: 1 / -1; }
