/* ==========================================================================
   SAIRAS — design system
   Token-driven, no build step. Sections alternate ink / paper / tint.
   ========================================================================== */

/* --------------------------------------------------------------------------
   Self-hosted fonts (SIL OFL 1.1), subsets and unicode-range as Google Fonts
   serves them. Inter is variable, one file covers weights 400-600.
   Space Grotesk has no Cyrillic; Manrope (next in --font-display) covers it.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 500 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308,
    U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url("fonts/manrope-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  /* --- base surfaces --- */
  --ink-900: #070b18;
  --ink-800: #0b1122;
  --ink-700: #111a33;
  --paper: #f7f9fc;
  --paper-2: #eef2f9;
  --surface: #ffffff;
  --ink-950: #04060f;
  --ink-900-rgb: 7, 11, 24;
  --ink-800-rgb: 11, 17, 34;
  --white: #fff;
  --white-rgb: 255, 255, 255;
  --black: #000;
  --black-rgb: 0, 0, 0;

  /* --- accent --- */
  --accent: #22d3ee;
  --accent-2: #4f6ef7;
  --accent-3: #8b5cf6;
  --accent-rgb: 34, 211, 238;
  --accent-2-rgb: 79, 110, 247;
  --accent-3-rgb: 139, 92, 246;
  --accent-text: #0d7490;
  --on-accent: #061019;
  --grad-brand: linear-gradient(120deg, var(--accent) 0%, var(--accent-2) 55%, var(--accent-3) 100%);

  /* --- text --- */
  --text: #0b1020;
  --text-muted: #5a6784;
  --text-invert: #eef3ff;
  --text-invert-muted: #9fb0d0;
  --text-invert-muted-rgb: 159, 176, 208;

  /* --- status --- */
  --error: #f87171;
  --error-soft: #fca5a5;
  --ok-soft: #6ee7b7;

  /* --- lines --- */
  --line: rgba(11, 17, 34, 0.10);
  --line-strong: rgba(11, 17, 34, 0.16);
  --line-invert: rgba(255, 255, 255, 0.12);
  --line-invert-strong: rgba(255, 255, 255, 0.22);
  --line-invert-field: rgba(255, 255, 255, 0.40);

  /* --- spacing scale --- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;
  --sp-px-neg: -1px;
  --sp-hair: 2px;
  --sp-tight: 3px;
  --sp-chip-y: 5px;
  --sp-skip-y: 10px;
  --sp-field-y: 13px;
  --sp-list-indent: 20px;
  --sp-footer-extra: 28px;
  --sp-hero-top: clamp(72px, 10vw, 128px);

  /* --- radii --- */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;
  --r-2xs: 2px;
  --r-xs: 3px;
  --r-logo: 18px;

  /* --- elevation --- */
  --shadow-1: 0 2px 8px rgba(9, 14, 32, 0.06);
  --shadow-2: 0 16px 40px rgba(9, 14, 32, 0.10);
  --shadow-3: 0 28px 64px rgba(9, 14, 32, 0.16);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, 0.35), 0 18px 48px rgba(79, 110, 247, 0.28);

  /* --- motion --- */
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --dur: 220ms;
  --dur-slow: 420ms;

  /* --- layout --- */
  --container: 1180px;
  --nav-h: 68px;

  /* --- focus --- */
  --focus-ring: 0 0 0 3px rgba(34, 211, 238, 0.45);

  /* --- typography --- */
  --font-display: "Space Grotesk", "Manrope", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-11: 11px;
  --fs-12: 12px;
  --fs-12-5: 12.5px;
  --fs-13: 13px;
  --fs-15: 15px;
  --fs-17: 17px;
  --fs-19: 19px;
  --fs-hero-lead: clamp(16px, 1.4vw, 19px);
  --fs-metric: clamp(26px, 3vw, 34px);
  --fs-page-title: clamp(30px, 4.4vw, 52px);
  --fs-404: clamp(64px, 14vw, 140px);
}

/* ==========================================================================
   Reset & base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin: 0;
}

p {
  margin: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--r-sm);
}

.container {
  width: min(100% - 32px, var(--container));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: var(--sp-skip-y) 16px;
  border-radius: var(--r-sm);
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: var(--sp-px-neg);
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

html.js-enabled .js-only-hidden {
  display: none !important;
}

/* ==========================================================================
   Section shells
   ========================================================================== */

.section {
  position: relative;
  padding: var(--sp-9) 0;
  overflow: hidden;
}

.section--paper {
  background: var(--paper);
}

.section--tint {
  background: var(--paper-2);
}

.section--ink {
  background: var(--ink-900);
  color: var(--text-invert);
}

/* Ambient mesh light on dark sections */
.section--ink::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(720px 340px at 12% 8%, rgba(var(--accent-rgb), 0.16), transparent 62%),
    radial-gradient(680px 420px at 88% 72%, rgba(var(--accent-3-rgb), 0.18), transparent 64%);
}

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

.section-head {
  max-width: 760px;
  margin-bottom: var(--sp-7);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-2);
  margin-bottom: var(--sp-3);
}

.kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: var(--r-2xs);
  background: var(--grad-brand);
}

.section--ink .kicker {
  color: var(--accent);
}

.section-title {
  font-size: clamp(28px, 3.4vw, 42px);
}

.section-lead {
  margin-top: var(--sp-4);
  font-size: var(--fs-17);
  color: var(--text-muted);
}

.section--ink .section-lead {
  color: var(--text-invert-muted);
}

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

/* ==========================================================================
   Buttons & links
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  min-height: 48px;
  padding: 0 var(--sp-5);
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-15);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    background-color var(--dur) var(--ease), border-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.btn--primary {
  background: var(--grad-brand);
  background-size: 160% 160%;
  color: var(--on-accent);
  box-shadow: 0 12px 30px rgba(var(--accent-2-rgb), 0.3);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
  background-position: 100% 0;
}

.btn--ghost {
  background: rgba(var(--white-rgb), 0.06);
  border-color: var(--line-invert-strong);
  color: var(--text-invert);
}

.btn--ghost:hover {
  transform: translateY(-2px);
  background: rgba(var(--white-rgb), 0.12);
  border-color: var(--accent);
}

.section--paper .btn--ghost,
.section--tint .btn--ghost {
  background: rgba(var(--ink-800-rgb), 0.04);
  border-color: var(--line-strong);
  color: var(--text);
}

.section--paper .btn--ghost:hover,
.section--tint .btn--ghost:hover {
  background: rgba(var(--ink-800-rgb), 0.07);
  border-color: var(--accent-2);
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.inline-link {
  color: var(--accent-2);
  text-decoration: none;
  border-bottom: 1px dashed currentColor;
  transition: border-color var(--dur) var(--ease);
}

.inline-link:hover {
  border-bottom-style: solid;
}

.section--ink .inline-link {
  color: var(--accent);
}

/* ==========================================================================
   Header & navigation
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(var(--ink-900-rgb), 0.72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--line-invert);
  color: var(--text-invert);
  transition: box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.site-header.is-stuck {
  background: rgba(var(--ink-900-rgb), 0.92);
  box-shadow: 0 10px 30px rgba(var(--black-rgb), 0.35);
}

.header-inner {
  min-height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex: none;
  object-fit: contain;
  transition: transform var(--dur-slow) var(--ease);
}

.brand:hover .brand-mark {
  transform: rotate(12deg);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-name {
  font-family: var(--font-display);
  font-size: var(--fs-19);
  font-weight: 700;
  letter-spacing: 0.12em;
}

.brand-tagline {
  font-size: var(--fs-11);
  letter-spacing: 0.08em;
  color: var(--text-invert-muted);
}

.nav-right {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 var(--sp-3);
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-invert-muted);
  text-decoration: none;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.nav-list a:hover {
  color: var(--text-invert);
  background: rgba(var(--white-rgb), 0.08);
}

.nav-list a.is-active {
  color: var(--text-invert);
  background: rgba(var(--accent-rgb), 0.14);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  height: 40px;
  padding: 0 var(--sp-3);
  background: rgba(var(--white-rgb), 0.06);
  border: 1px solid var(--line-invert-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}

.nav-toggle-bars {
  display: inline-flex;
  flex-direction: column;
  gap: var(--sp-tight);
}

.nav-toggle-bars span {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: var(--r-2xs);
  background: currentColor;
}

.lang-switcher {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-hair);
  padding: var(--sp-tight);
  background: rgba(var(--white-rgb), 0.06);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-pill);
}

.lang-btn {
  min-width: 40px;
  height: 40px;
  padding: 0 var(--sp-2);
  background: transparent;
  border: 0;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-invert-muted);
  cursor: pointer;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.lang-btn:hover {
  color: var(--text-invert);
}

.lang-btn.is-active {
  background: var(--grad-brand);
  color: var(--on-accent);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  position: relative;
  padding: var(--sp-hero-top) 0 var(--sp-9);
  background: var(--ink-900);
  color: var(--text-invert);
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  pointer-events: none;
  background:
    radial-gradient(900px 480px at 18% 18%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(760px 520px at 82% 28%, rgba(var(--accent-3-rgb), 0.24), transparent 62%),
    radial-gradient(900px 500px at 50% 100%, rgba(var(--accent-2-rgb), 0.20), transparent 65%);
  animation: hero-drift 22s var(--ease) infinite alternate;
}

/* Thin grid, reads as engineering blueprint rather than decoration */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(var(--white-rgb), 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--white-rgb), 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 30%, var(--black) 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, var(--black) 0%, transparent 72%);
}

@keyframes hero-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(0, -3%, 0) scale(1.06);
  }
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 880px;
}

.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  letter-spacing: -0.03em;
}

.hero-lead {
  margin-top: var(--sp-5);
  max-width: 680px;
  font-size: var(--fs-hero-lead);
  color: var(--text-invert-muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-7);
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  margin-top: var(--sp-9);
}

.metric {
  padding: var(--sp-5);
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.metric:hover {
  border-color: rgba(var(--accent-rgb), 0.45);
  transform: translateY(-3px);
}

.metric-value {
  font-family: var(--font-display);
  font-size: var(--fs-metric);
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.metric-label {
  margin-top: var(--sp-2);
  font-size: var(--fs-13);
  line-height: 1.5;
  color: var(--text-invert-muted);
}

/* ==========================================================================
   Cards grid (services, cases)
   ========================================================================== */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.cards--two {
  grid-template-columns: repeat(2, 1fr);
}

/* An odd last card in a two-column grid spans the row instead of leaving a gap */
.cards--two > .card:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

/* A lone last service card spans the whole row instead of leaving a gap */
[data-cards="services"] > .card:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  height: 100%;
  padding: var(--sp-6);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
  overflow: hidden;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

/* Accent hairline that lights up on hover */
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--grad-brand);
  opacity: 0;
  transition: opacity var(--dur) var(--ease);
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--accent-2-rgb), 0.35);
  box-shadow: var(--shadow-2);
}

.card:hover::before {
  opacity: 1;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-sm);
  background: rgba(var(--accent-2-rgb), 0.10);
  color: var(--accent-2);
}

.card-icon svg {
  width: 24px;
  height: 24px;
}

.card-title {
  font-size: 20px;
}

.card-text {
  font-size: var(--fs-15);
  color: var(--text-muted);
}

.card-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-3);
  border-top: 1px solid var(--line);
}

.card-list li {
  position: relative;
  padding-left: var(--sp-list-indent);
  font-size: 14px;
  color: var(--text-muted);
}

.card-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 8px;
  border-radius: var(--r-xs);
  background: var(--grad-brand);
}

/* --- case cards --- */

.case-card {
  gap: var(--sp-4);
}

.case-tag {
  display: inline-flex;
  align-self: flex-start;
  padding: 4px var(--sp-3);
  background: rgba(var(--accent-rgb), 0.12);
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-size: var(--fs-11);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.case-stack {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: auto;
  padding-top: var(--sp-4);
  border-top: 1px solid var(--line);
}

.case-stack .chip {
  font-size: var(--fs-12);
}

/* --- link from a service card to its own page --- */

.card-more {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-2);
  text-decoration: none;
}

.card-more::after {
  content: "\2192";
  transition: transform var(--dur) var(--ease);
}

.card-more:hover::after {
  transform: translateX(3px);
}

/* Stretch the link over the whole card so the card itself is clickable */
.card-more::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/* ==========================================================================
   Service pages
   ========================================================================== */

.prose {
  max-width: 760px;
  font-size: var(--fs-17);
  color: var(--text-muted);
}

.prose p + p {
  margin-top: var(--sp-4);
}

.prose-list {
  display: grid;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}

.prose-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text);
}

.prose-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 10px;
  height: 10px;
  border-radius: var(--r-xs);
  background: var(--grad-brand);
}

.hero--page {
  padding-bottom: var(--sp-8);
}

.hero--page .hero-title {
  font-size: var(--fs-page-title);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
  font-size: 14px;
  color: var(--text-invert-muted);
}

.breadcrumb a {
  color: var(--text-invert);
  text-decoration: none;
  border-bottom: 1px dashed var(--line-invert-strong);
}

.breadcrumb a:hover {
  border-bottom-style: solid;
}

.breadcrumb-sep {
  opacity: 0.6;
}

.hero--page .hero-metrics {
  margin-top: var(--sp-8);
}

/* ==========================================================================
   Expertise (stack)
   ========================================================================== */

.stack-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-4);
}

.stack-group {
  padding: var(--sp-5) var(--sp-6);
  background: rgba(var(--white-rgb), 0.035);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-lg);
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.stack-group:hover {
  border-color: rgba(var(--accent-rgb), 0.4);
  background: rgba(var(--white-rgb), 0.06);
}

.stack-group-title {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-size: var(--fs-13);
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.stack-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: var(--sp-chip-y) var(--sp-3);
  background: rgba(var(--white-rgb), 0.07);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-pill);
  font-size: var(--fs-13);
  color: var(--text-invert);
  white-space: nowrap;
}

.section--paper .chip,
.section--tint .chip,
.card .chip {
  background: rgba(var(--ink-800-rgb), 0.05);
  border-color: var(--line);
  color: var(--text-muted);
}

/* ==========================================================================
   Process
   ========================================================================== */

.process {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
  counter-reset: step;
}

.process-step {
  position: relative;
  padding: var(--sp-6) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.process-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
}

.process-step-title {
  font-size: 18px;
}

.process-step-text {
  margin-top: var(--sp-2);
  font-size: 14px;
  color: var(--text-muted);
}

/* Connector between steps */
.process-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: calc(var(--sp-6) + 20px);
  right: calc(var(--sp-4) * -1);
  width: var(--sp-4);
  height: 1px;
  background: linear-gradient(90deg, rgba(var(--accent-2-rgb), 0.6), rgba(var(--accent-3-rgb), 0.2));
}

/* ==========================================================================
   FAQ
   ========================================================================== */

.faq {
  display: grid;
  gap: var(--sp-3);
  max-width: 880px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.faq-item[open] {
  border-color: rgba(var(--accent-2-rgb), 0.35);
  box-shadow: var(--shadow-1);
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  flex: none;
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(var(--accent-2-rgb), 0.10);
  color: var(--accent-2);
  font-size: 18px;
  line-height: 1;
}

.faq-item[open] summary::after {
  content: "\2013";
}

.faq-answer {
  padding: 0 var(--sp-6) var(--sp-5);
  font-size: var(--fs-15);
  color: var(--text-muted);
}

/* ==========================================================================
   Contacts: form + cards
   ========================================================================== */

.contact-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: var(--sp-6);
  align-items: start;
}

.lead-form {
  display: grid;
  gap: var(--sp-4);
  padding: var(--sp-7);
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-lg);
}

.field {
  display: grid;
  gap: var(--sp-2);
}

.field label {
  font-size: var(--fs-13);
  font-weight: 500;
  color: var(--text-invert-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: var(--sp-field-y) var(--sp-4);
  background: rgba(var(--ink-900-rgb), 0.55);
  border: 1px solid var(--line-invert-field);
  border-radius: var(--r-sm);
  color: var(--text-invert);
  font-family: var(--font-body);
  font-size: var(--fs-15);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}

.field textarea {
  min-height: 132px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(var(--text-invert-muted-rgb), 0.6);
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--error);
}

.field-error {
  min-height: 18px;
  font-size: var(--fs-12-5);
  color: var(--error-soft);
}

/* Honeypot: hidden from people, reachable by naive bots */
.field--trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
}

.form-note {
  font-size: var(--fs-13);
  color: var(--text-invert-muted);
}

.form-status {
  min-height: 20px;
  font-size: 14px;
}

.form-status.is-ok {
  color: var(--ok-soft);
}

.form-status.is-error {
  color: var(--error-soft);
}

.contact-cards {
  display: grid;
  gap: var(--sp-3);
}

.contact-card {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: rgba(var(--white-rgb), 0.04);
  border: 1px solid var(--line-invert);
  border-radius: var(--r-md);
  text-decoration: none;
  color: inherit;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease),
    background-color var(--dur) var(--ease);
}

.contact-card:hover {
  transform: translateY(-3px);
  border-color: rgba(var(--accent-rgb), 0.45);
  background: rgba(var(--white-rgb), 0.07);
}

/* The location card carries information, not a link - no hover affordance */
.contact-card--static:hover {
  transform: none;
  border-color: var(--line-invert);
  background: rgba(var(--white-rgb), 0.04);
}

.contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: var(--r-sm);
  background: rgba(var(--accent-rgb), 0.12);
  color: var(--accent);
}

.contact-icon svg {
  width: 22px;
  height: 22px;
}

/* Text column inside a contact card */
.contact-card > span:last-child {
  display: flex;
  flex-direction: column;
  gap: var(--sp-hair);
  min-width: 0;
}

.contact-label {
  font-size: var(--fs-12);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-invert-muted);
}

.contact-value {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
  /* Extra bottom room so the floating buttons never cover footer links */
  padding: var(--sp-7) 0 calc(var(--sp-7) + var(--sp-footer-extra));
  background: var(--ink-950);
  color: var(--text-invert-muted);
  border-top: 1px solid var(--line-invert);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  font-size: 14px;
}

/* Sitewide location and legal-entity lines: facts, not nav links */
.footer-location,
.footer-legal {
  opacity: 0.75;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-links a {
  color: inherit;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}

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

/* ==========================================================================
   Floating controls & consent banner
   ========================================================================== */

.back-to-top,
.fab-contact {
  position: fixed;
  z-index: 70;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  height: 46px;
  padding: 0 var(--sp-4);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-invert-strong);
  background: rgba(var(--ink-900-rgb), 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: var(--text-invert);
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 18px 44px rgba(var(--black-rgb), 0.28);
  transition: transform var(--dur) var(--ease), opacity var(--dur) var(--ease),
    border-color var(--dur) var(--ease);
}

.back-to-top {
  left: 22px;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
}

.back-to-top.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.fab-contact {
  right: 22px;
}

/* Lift the floating buttons while the consent banner occupies the bottom edge */
body.has-consent .back-to-top,
body.has-consent .fab-contact {
  bottom: 96px;
}

.fab-contact:hover,
.back-to-top:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
}

.back-to-top svg,
.fab-contact svg {
  width: 18px;
  height: 18px;
}

.consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  background: rgba(var(--ink-900-rgb), 0.97);
  border-top: 1px solid var(--line-invert);
  color: var(--text-invert);
  box-shadow: 0 -4px 20px rgba(var(--black-rgb), 0.2);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

.consent-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) 0;
}

.consent-text {
  font-size: 14px;
  color: var(--text-invert-muted);
}

.consent-actions {
  display: flex;
  flex: none;
  gap: var(--sp-2);
}

.consent-btn {
  min-height: 40px;
  padding: 0 var(--sp-5);
  flex: none;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--grad-brand);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  cursor: pointer;
}

.consent-btn--ghost {
  background: transparent;
  border: 1px solid var(--line-invert-strong);
  color: var(--text-invert);
}

/* ==========================================================================
   Scroll reveal
   ========================================================================== */

html.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

html.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Stagger children of a revealed grid */
html.js-enabled [data-reveal-stagger] > * {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity var(--dur-slow) var(--ease), transform var(--dur-slow) var(--ease);
}

html.js-enabled [data-reveal-stagger].is-visible > * {
  opacity: 1;
  transform: none;
}

[data-reveal-stagger].is-visible > *:nth-child(2) {
  transition-delay: 70ms;
}

[data-reveal-stagger].is-visible > *:nth-child(3) {
  transition-delay: 140ms;
}

[data-reveal-stagger].is-visible > *:nth-child(4) {
  transition-delay: 210ms;
}

[data-reveal-stagger].is-visible > *:nth-child(5) {
  transition-delay: 280ms;
}

[data-reveal-stagger].is-visible > *:nth-child(6) {
  transition-delay: 350ms;
}

[data-reveal-stagger].is-visible > *:nth-child(7) {
  transition-delay: 420ms;
}

[data-reveal-stagger].is-visible > *:nth-child(8) {
  transition-delay: 490ms;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1080px) {
  .cards {
    grid-template-columns: repeat(2, 1fr);
  }

  [data-cards="services"] > .card:last-child:nth-child(3n + 1) {
    grid-column: auto;
  }

  [data-cards="services"] > .card:last-child:nth-child(2n + 1) {
    grid-column: 1 / -1;
  }

  .process {
    grid-template-columns: repeat(2, 1fr);
  }

  .process-step:not(:last-child)::after {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 860px) {
  :root {
    --sp-9: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .nav-list {
    display: none;
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(var(--nav-h) + 8px);
    flex-direction: column;
    align-items: stretch;
    gap: var(--sp-hair);
    padding: var(--sp-3);
    background: rgba(var(--ink-900-rgb), 0.98);
    border: 1px solid var(--line-invert);
    border-radius: var(--r-md);
    box-shadow: var(--shadow-3);
  }

  .nav-list.is-open {
    display: flex;
  }

  .nav-list a {
    height: 42px;
  }

  .brand-tagline {
    display: none;
  }

  .contact-layout {
    grid-template-columns: 1fr;
  }

  .stack-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .cards,
  .cards--two,
  .process {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
    gap: var(--sp-3);
  }

  .lead-form {
    padding: var(--sp-5);
  }

  .consent-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .card,
  .process-step {
    padding: var(--sp-5);
  }

  .faq-item summary,
  .faq-answer {
    padding-inline: var(--sp-5);
  }
}

@media (max-width: 460px) {
  .back-to-top-text,
  .fab-contact-text {
    display: none;
  }

  .back-to-top,
  .fab-contact {
    padding: 0 var(--sp-3);
  }
}

/* ==========================================================================
   Motion preferences
   ========================================================================== */

@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;
  }

  html.js-enabled [data-reveal],
  html.js-enabled [data-reveal-stagger] > * {
    opacity: 1;
    transform: none;
  }
}

@media print {
  .site-header,
  .back-to-top,
  .fab-contact,
  .consent-banner,
  .lead-form {
    display: none !important;
  }

  .section--ink,
  .hero {
    background: var(--white) !important;
    color: var(--black) !important;
  }
}

.nf {
  min-height: 100vh;
  display: grid;
  place-items: center;
  text-align: center;
  background: var(--ink-900);
  color: var(--text-invert);
  padding: var(--sp-6);
}
.nf-code {
  font-family: var(--font-display);
  font-size: var(--fs-404);
  font-weight: 700;
  line-height: 1;
}
.nf-logo {
  margin: 0 auto var(--sp-5);
  border-radius: var(--r-logo);
}
.nf p {
  margin: var(--sp-4) 0 var(--sp-7);
  color: var(--text-invert-muted);
}
