/* ------------------------------------------------------------------
   Design tokens
   ------------------------------------------------------------------ */
:root {
  color-scheme: light;
  --ink: #0a1a2b;
  --ink-2: #1b3047;
  --muted: #5b6b80;
  --line: #e3eaf2;
  --border: #e6ecf3;
  --paper: #f6f8fb;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --white: #ffffff;
  --brand: #071827;
  --brand-2: #12385a;
  --cyan: #17a8b5;
  --green: #1f9d6b;
  --coral: #ef6a4d;
  --amber: #f0b84a;
  --saffron: #ff9f1c;
  --eyebrow: #0d7686;
  --hover-bg: #eef4f9;
  --header-bg: rgba(255, 255, 255, 0.82);
  --header-border: rgba(224, 232, 241, 0.9);
  --focus: rgba(23, 168, 181, 0.55);
  --band: #0b1626;
  --band-card: #121f33;
  --card: #ffffff;
  --shadow-sm: 0 6px 18px rgba(9, 20, 34, 0.06);
  --shadow: 0 20px 50px rgba(9, 20, 34, 0.1);
  --shadow-lg: 0 34px 80px rgba(9, 20, 34, 0.16);
  --icon-1: #e7f8f7;
  --icon-2: #eef2ff;
  --icon-3: #fff0dc;
  --icon-4: #ffe9e5;
  --icon-5: #eafaf0;
  --icon-6: #f4ecff;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e9eff7;
  --ink-2: #c4d2e2;
  --muted: #93a5bc;
  --line: #1f3147;
  --border: #223651;
  --paper: #070e18;
  --surface: #0d1826;
  --surface-2: #12202f;
  --brand: #0c1a2a;
  --brand-2: #16456d;
  --eyebrow: #55d6e4;
  --hover-bg: #16283c;
  --header-bg: rgba(10, 19, 31, 0.82);
  --header-border: rgba(34, 54, 81, 0.85);
  --focus: rgba(85, 214, 228, 0.65);
  --band: #0a1421;
  --band-card: #12202f;
  --card: #0d1826;
  --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.55);
  --icon-1: #0f2f38;
  --icon-2: #17223f;
  --icon-3: #3a2a12;
  --icon-4: #3d1f1b;
  --icon-5: #12301f;
  --icon-6: #2a1a3d;
}

/* System preference applies only until JS resolves an explicit theme. */
@media (prefers-color-scheme: dark) {
  html:not([data-theme]) {
    color-scheme: dark;
    --ink: #e9eff7;
    --ink-2: #c4d2e2;
    --muted: #93a5bc;
    --line: #1f3147;
    --border: #223651;
    --paper: #070e18;
    --surface: #0d1826;
    --surface-2: #12202f;
    --brand: #0c1a2a;
    --brand-2: #16456d;
    --eyebrow: #55d6e4;
    --hover-bg: #16283c;
    --header-bg: rgba(10, 19, 31, 0.82);
    --header-border: rgba(34, 54, 81, 0.85);
    --focus: rgba(85, 214, 228, 0.65);
    --band: #0a1421;
    --band-card: #12202f;
    --card: #0d1826;
    --shadow-sm: 0 6px 18px rgba(0, 0, 0, 0.35);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 34px 80px rgba(0, 0, 0, 0.55);
    --icon-1: #0f2f38;
    --icon-2: #17223f;
    --icon-3: #3a2a12;
    --icon-4: #3d1f1b;
    --icon-5: #12301f;
    --icon-6: #2a1a3d;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 104px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  transition: background-color 250ms ease, color 250ms ease;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

button,
input,
select,
textarea {
  font: inherit;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -70px;
  z-index: 60;
  padding: 12px 18px;
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--white);
  font-weight: 800;
  transition: top 180ms ease;
}

.skip-link:focus {
  top: 16px;
}

/* ------------------------------------------------------------------
   Header
   ------------------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto 0;
  padding: 12px;
  border: 1px solid var(--header-border);
  border-radius: var(--r-lg);
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(8, 17, 31, 0.08);
  transition: padding 220ms ease, box-shadow 220ms ease, background-color 250ms ease;
}

.site-header.is-scrolled {
  padding: 8px 12px;
  box-shadow: 0 16px 44px rgba(8, 17, 31, 0.16);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand,
.nav-links,
.hero-actions,
.logo-strip,
.dashboard-top,
.hero-metrics,
.site-footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), #0f3b4b 48%, var(--saffron));
  box-shadow: 0 8px 20px rgba(255, 159, 28, 0.24);
}

.nav-links {
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 13px;
  border-radius: var(--r-sm);
  transition: background 160ms ease, color 160ms ease;
}

.nav-links a:hover {
  background: var(--hover-bg);
}

.nav-links a.is-active {
  color: var(--eyebrow);
}

.nav-links a.nav-cta.is-active {
  color: var(--white);
}

.nav-cta {
  color: var(--white);
  background: var(--brand);
}

.nav-links a.nav-cta:hover {
  color: var(--white);
  background: var(--brand-2);
}

.theme-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease;
}

html.js .theme-toggle {
  display: grid;
}

.theme-toggle:hover {
  background: var(--hover-bg);
}

.theme-toggle svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-toggle .icon-sun {
  display: none;
}

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

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

.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
}

/* ------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------ */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.85fr);
  gap: 52px;
  width: min(1180px, calc(100% - 32px));
  margin: 80px auto 48px;
  align-items: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  /* Offset stays small enough that the ring never pushes past the viewport
     edge on narrow screens (which caused a horizontal scrollbar). */
  inset: -34px -10px auto auto;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(240, 184, 74, 0.28);
  border-radius: var(--r-pill);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--eyebrow);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.99;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.2;
}

.hero-text,
.section-heading p,
.stack-section p,
.cta-section p {
  max-width: 650px;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 14px;
  margin: 30px 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 48px;
  padding: 13px 20px;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease,
    border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 30px rgba(7, 24, 39, 0.26);
}

.button.primary:hover {
  box-shadow: 0 20px 40px rgba(7, 24, 39, 0.32);
}

.button.secondary {
  color: var(--ink);
  background: var(--surface);
  border-color: var(--line);
}

.button.secondary:hover {
  border-color: var(--cyan);
  box-shadow: var(--shadow-sm);
}

.button[disabled],
.button[aria-busy="true"] {
  opacity: 0.7;
  cursor: progress;
  transform: none;
}

.hero-metrics {
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}

.hero-metrics div {
  min-width: 150px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.hero-metrics dt {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.hero-metrics dd {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.hero-visual {
  min-width: 0;
}

.dashboard-shell {
  border: 1px solid rgba(223, 230, 238, 0.85);
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(240, 184, 74, 0.16), transparent 34%),
    linear-gradient(315deg, rgba(23, 168, 181, 0.18), transparent 35%),
    #091a2c;
  box-shadow: var(--shadow-lg);
}

.dashboard-top {
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  color: #c6d2e2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dashboard-top span {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: var(--coral);
}

.dashboard-top span:nth-child(2) {
  background: var(--amber);
}

.dashboard-top span:nth-child(3) {
  background: var(--green);
  margin-right: 10px;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 14px;
  padding: 18px;
}

.status-card {
  min-height: 136px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--r);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.status-card p,
.status-card small {
  color: #aebcd1;
}

.status-card .status-title {
  margin: 4px 0 18px;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
  color: var(--white);
}

.status-card.wide {
  grid-column: 1 / -1;
}

.status-card.accent {
  background: linear-gradient(135deg, rgba(35, 163, 111, 0.26), rgba(240, 184, 74, 0.14));
}

.progress {
  width: 100%;
  height: 10px;
  margin-bottom: 12px;
  border-radius: var(--r-pill);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.14);
}

.progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--cyan));
  border-radius: inherit;
}

.progress-fill.w-82 {
  width: 82%;
}

.phone-card {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 260px;
  background: #111d30;
}

.phone-notch {
  position: absolute;
  top: 22px;
  width: 54px;
  height: 8px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.24);
}

.phone-screen {
  display: grid;
  place-items: center;
  width: 120px;
  height: 180px;
  border: 8px solid #26364f;
  border-radius: 26px;
  background: linear-gradient(160deg, #f5fff8, #dff3f4 50%, #fff2cf);
  color: var(--brand);
}

.phone-screen span {
  width: 56px;
  height: 56px;
  border-radius: var(--r);
  background: linear-gradient(135deg, var(--saffron), var(--green));
}

.phone-screen strong {
  font-size: 34px;
  line-height: 1;
}

.phone-screen p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.terminal {
  display: grid;
  gap: 10px;
  align-content: center;
}

.terminal code {
  color: #d9fff0;
  font-size: 13px;
}

.logo-strip {
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto 70px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
}

.logo-strip span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------
   Sections
   ------------------------------------------------------------------ */
.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 80px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card,
.case-card,
.process-grid article,
.quote-card,
.engagement-card {
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.service-card {
  padding: 24px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(23, 168, 181, 0.4);
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  color: var(--ink);
  background: var(--icon-1);
  font-weight: 900;
}

.service-card:nth-child(2) .card-icon {
  background: var(--icon-2);
}

.service-card:nth-child(3) .card-icon {
  background: var(--icon-3);
}

.service-card:nth-child(4) .card-icon {
  background: var(--icon-4);
}

.service-card:nth-child(5) .card-icon {
  background: var(--icon-5);
}

.service-card:nth-child(6) .card-icon {
  background: var(--icon-6);
}

.service-card p,
.case-card p,
.process-grid p,
.quote-card span {
  color: var(--muted);
  overflow-wrap: break-word;
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 700;
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: var(--r-pill);
  background: var(--cyan);
}

.service-more {
  display: inline-block;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--eyebrow);
  text-decoration: none;
}

.service-more:hover {
  text-decoration: underline;
}

.service-more:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Work band
   ------------------------------------------------------------------ */
.work-band {
  width: 100%;
  max-width: none;
  padding: 84px max(16px, calc((100% - 1180px) / 2));
  background: var(--band);
  color: var(--white);
}

.work-band .section-heading p {
  color: #9fb0c7;
}

.case-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.case-card {
  overflow: hidden;
  background: var(--band-card);
  border-color: rgba(255, 255, 255, 0.1);
  transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.case-card:hover {
  transform: translateY(-4px);
  border-color: rgba(117, 220, 232, 0.42);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.4);
}

.case-card > div:last-child {
  padding: 22px;
}

.case-preview {
  min-height: 190px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 36%),
    linear-gradient(45deg, var(--saffron), var(--green));
}

.case-preview.ecommerce {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent 42%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.18) 0 1px, transparent 1px 28px),
    linear-gradient(135deg, #17a8b5, #23a36f);
}

.case-preview.saas {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 26px),
    linear-gradient(135deg, #335c81, #17a8b5);
}

.case-preview.devops {
  background:
    radial-gradient(circle at 30% 35%, rgba(255, 255, 255, 0.26) 0 2px, transparent 3px),
    radial-gradient(circle at 65% 58%, rgba(255, 255, 255, 0.26) 0 2px, transparent 3px),
    linear-gradient(135deg, #ef6a4d, #f0b84a);
}

/* Class-qualified so it outranks the shared `.case-card p` muted rule. */
.case-card .case-kicker {
  margin-bottom: 8px;
  color: #75dce8;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.work-more {
  margin-top: 28px;
  text-align: center;
}

/* ------------------------------------------------------------------
   Project estimator
   ------------------------------------------------------------------ */
.section.estimator-section {
  padding: 64px clamp(20px, 4vw, 48px);
  background: var(--surface-2);
  border-radius: var(--r-xl);
}

.estimator {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.estimator-steps {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.est-step-dot {
  height: 6px;
  flex: 1;
  border-radius: var(--r-pill);
  background: var(--line);
  transition: background 240ms ease;
}

.est-step-dot.is-active {
  background: var(--cyan);
}

.est-panel h3 {
  margin-bottom: 18px;
}

.est-options {
  display: grid;
  gap: 10px;
}

.est-option {
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.est-option:hover {
  border-color: var(--cyan);
  background: var(--hover-bg);
  transform: translateX(3px);
}

.est-option:focus-visible,
.est-step-dot:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

.est-summary {
  display: grid;
  gap: 10px;
  margin: 0 0 18px;
}

.est-summary > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface-2);
}

.est-summary dt {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.est-summary dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  overflow-wrap: break-word;
}

.est-note {
  font-size: 13px;
  color: var(--muted);
}

.est-progress {
  margin-top: 20px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

/* ------------------------------------------------------------------
   Case-study pages (/work/)
   ------------------------------------------------------------------ */
.case-grid-page {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

a.case-card {
  display: block;
  color: inherit;
  text-decoration: none;
}

.case-link {
  display: inline-block;
  margin-top: 14px;
  color: #75dce8;
  font-size: 14px;
  font-weight: 700;
}

.case-study {
  max-width: 860px;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-size: 14px;
  color: var(--muted);
}

.breadcrumbs a {
  color: var(--eyebrow);
  text-decoration: none;
}

.breadcrumbs a:hover {
  text-decoration: underline;
}

.case-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 14px;
  margin: 32px 0 40px;
}

.case-meta > div {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  display: grid;
  gap: 4px;
}

.case-meta strong {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--eyebrow);
}

.case-meta span {
  font-size: 14px;
  color: var(--ink-2);
  overflow-wrap: break-word;
}

.case-body h2 {
  margin: 36px 0 12px;
  font-size: 24px;
}

.case-body p {
  margin: 0 0 16px;
  color: var(--ink-2);
  line-height: 1.7;
}

.case-body ul {
  margin: 0 0 16px;
  padding-left: 20px;
  color: var(--ink-2);
  line-height: 1.7;
}

.case-body .quote-card {
  margin: 32px 0 0;
}

.case-study-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 44px;
}

/* ------------------------------------------------------------------
   Team page
   ------------------------------------------------------------------ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.team-card .avatar.big {
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  font-size: 20px;
}

.team-role {
  margin: -8px 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--eyebrow);
}

/* ------------------------------------------------------------------
   Proof section
   ------------------------------------------------------------------ */
.proof-section {
  padding-top: 24px;
}

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 18px;
  margin: 0;
}

.proof-card {
  padding: 28px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

.proof-card dt {
  font-size: 40px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.proof-card dd {
  margin: 6px 0 0;
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

/* ------------------------------------------------------------------
   Availability strip
   ------------------------------------------------------------------ */
.availability-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0 auto;
  padding: 14px 22px;
  width: fit-content;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.availability-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--r-pill);
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.18);
  animation: availability-pulse 2.2s ease-in-out infinite;
}

@keyframes availability-pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.16); }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.08); }
}

@media (prefers-reduced-motion: reduce) {
  .availability-dot {
    animation: none;
  }
}

.availability-strip strong {
  color: var(--ink);
}

.availability-strip a {
  font-weight: 700;
  color: var(--eyebrow);
}

/* ------------------------------------------------------------------
   Process
   ------------------------------------------------------------------ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.process-grid article {
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.process-grid article::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green), transparent);
  opacity: 0.75;
}

.process-grid span {
  display: block;
  margin-bottom: 28px;
  color: var(--cyan);
  font-weight: 900;
  letter-spacing: 0.08em;
}

/* ------------------------------------------------------------------
   Stack
   ------------------------------------------------------------------ */
.stack-section {
  display: grid;
  grid-template-columns: 0.75fr 1fr;
  gap: 40px;
  align-items: center;
}

.stack-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.stack-cloud span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink-2);
  font-weight: 800;
  box-shadow: var(--shadow-sm);
}

/* ------------------------------------------------------------------
   Testimonials
   ------------------------------------------------------------------ */
.testimonials {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
  padding-top: 0;
}

.quote-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
}

.quote-card p {
  font-size: 21px;
  line-height: 1.45;
  color: var(--ink-2);
}

.quote-card footer {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: auto;
  padding-top: 20px;
}

.quote-card strong,
.quote-card span {
  display: block;
}

.quote-card span {
  font-size: 13px;
}

/* Class-qualified so the shared `.quote-card span { display: block }` rule
   cannot collapse the avatar into a block box. */
.quote-card .avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--white);
  background: linear-gradient(135deg, var(--cyan), var(--green));
  font-weight: 900;
  font-size: 16px;
}

.quote-card .avatar.alt {
  background: linear-gradient(135deg, var(--brand-2), var(--saffron));
}

/* ------------------------------------------------------------------
   Engagement models
   ------------------------------------------------------------------ */
.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.engagement-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  transition: transform 240ms ease, box-shadow 240ms ease, border-color 240ms ease;
}

.engagement-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.engagement-card.featured {
  border-color: rgba(23, 168, 181, 0.55);
  box-shadow: 0 24px 60px rgba(23, 168, 181, 0.18);
}

.engagement-card .card-icon {
  margin-bottom: 4px;
}

.engagement-card .tag {
  align-self: flex-start;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--icon-1);
  color: var(--eyebrow);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.engagement-card ul {
  display: grid;
  gap: 8px;
  margin: 4px 0 8px;
  padding: 0;
  list-style: none;
}

.engagement-card li {
  position: relative;
  padding-left: 20px;
  color: var(--muted);
  font-size: 14px;
}

.engagement-card li::before {
  content: "\2713";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--green);
  font-weight: 900;
}

.engagement-card .button {
  margin-top: auto;
  width: 100%;
}

/* ------------------------------------------------------------------
   FAQ
   ------------------------------------------------------------------ */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--r);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 16px 22px;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  color: var(--eyebrow);
  font-size: 18px;
  line-height: 1;
  transition: transform 220ms ease, background 220ms ease;
}

.faq-item[open] summary::after {
  content: "\2212";
  transform: rotate(180deg);
  background: var(--icon-1);
}

.faq-item p {
  margin: 0;
  padding: 0 22px 20px;
  color: var(--muted);
}

/* ------------------------------------------------------------------
   CTA + contact
   ------------------------------------------------------------------ */
.cta-section {
  display: grid;
  /* The form column needs the majority of the width — at 0.9fr/1fr the form
     was squeezed to ~216px and its inputs to ~100px. */
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  width: min(1180px, calc(100% - 32px));
  margin: 56px auto;
  padding: 44px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--r-xl);
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(240, 184, 74, 0.24), transparent 32%),
    linear-gradient(315deg, rgba(23, 168, 181, 0.22), transparent 38%),
    var(--brand);
  box-shadow: var(--shadow-lg);
}

.cta-section h2 {
  color: var(--white);
}

.cta-section p {
  color: #bfccdc;
}

.contact-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: #dce7f5;
  font-size: 13px;
  font-weight: 800;
}

/* The hidden CSRF input is the form's first child, so nth-child selectors
   misalign the fields — target the full-width fields explicitly instead. */
.contact-form input[type="hidden"] {
  display: none;
}

.contact-form .field-full,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-sm);
  padding: 13px 14px;
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
  min-height: 48px;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #91a2ba;
}

.contact-form select option {
  color: var(--ink);
  background: var(--surface);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(31, 182, 201, 0.18);
}

.contact-form .form-error {
  grid-column: 1 / -1;
  color: #ff9d90;
  font-size: 14px;
  margin-top: 4px;
}

.contact-form .form-success {
  grid-column: 1 / -1;
  margin-top: 8px;
}

.form-success .success-inline {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 24px;
  background: rgba(35, 163, 111, 0.12);
  border: 1px solid rgba(35, 163, 111, 0.3);
  border-radius: var(--r);
  color: #d6fff0;
}

.form-success .success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-size: 28px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

.form-success h3 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--white);
}

.form-success p {
  margin: 0;
  color: #bfccdc;
  font-size: 14px;
  text-align: center;
}

.form-success .muted.small {
  font-size: 12px;
  color: #9fb2c8;
}

/* Class-qualified so `.cta-section p` cannot override the note's colour. */
.cta-section .noscript-note {
  grid-column: 1 / -1;
  margin: 0 0 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #dce7f5;
  font-size: 14px;
}

/* The form takes the full column width; the booking card sits beneath it.
   Side-by-side was squeezing the form to ~216px (100px inputs). */
.contact-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 24px;
}

.booking-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 26px;
  text-align: left;
}

.booking-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.booking-cta .button {
  flex: 0 0 auto;
}

@media (max-width: 640px) {
  .booking-cta {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 24px;
    text-align: center;
  }

  .booking-cta .button {
    width: 100%;
  }
}

/* ------------------------------------------------------------------
   Footer + floating controls
   ------------------------------------------------------------------ */
.site-footer {
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0 42px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  font-weight: 800;
}

.site-footer a:hover {
  color: var(--eyebrow);
}

.social-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 30;
  display: none;
  place-items: center;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease;
}

html.js .to-top {
  display: grid;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 200ms ease, transform 200ms ease, visibility 200ms ease;
}

html.js .to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.to-top:hover {
  background: var(--hover-bg);
}

.to-top svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.to-top:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

/* ------------------------------------------------------------------
   Reveal on scroll (JS-gated so no-JS users always see content)
   ------------------------------------------------------------------ */
/* Content stays readable when observers are delayed or unavailable. */
html.js [data-reveal] {
  opacity: 1;
  transform: none;
  transition: opacity 650ms cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 650ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

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

html.js [data-reveal][data-delay="1"] {
  transition-delay: 90ms;
}

html.js [data-reveal][data-delay="2"] {
  transition-delay: 180ms;
}

html.js [data-reveal][data-delay="3"] {
  transition-delay: 270ms;
}

/* ------------------------------------------------------------------
   Responsive
   ------------------------------------------------------------------ */
@media (max-width: 980px) {
  .hero,
  .stack-section,
  .cta-section {
    grid-template-columns: 1fr;
  }

  .hero {
    margin-top: 54px;
  }

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

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

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

  .cta-section {
    gap: 32px;
  }
}

@media (max-width: 760px) {
  .site-header {
    align-items: center;
  }

  .nav-toggle {
    display: none;
  }

  html.js .nav-toggle {
    display: grid;
  }

  /* Without JS the links stay visible and wrap instead of disappearing. */
  .nav-links {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  html.js .nav-links {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  html.js .nav-links.is-open {
    display: flex;
  }

  html.js .nav-links a {
    width: 100%;
  }

  h1 {
    font-size: clamp(34px, 11vw, 44px);
    line-height: 1.04;
  }

  .hero {
    gap: 34px;
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .phone-card {
    min-height: 210px;
  }

  .phone-screen {
    width: 108px;
    height: 158px;
  }

  .service-grid,
  .process-grid,
  .testimonials,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .cta-section {
    padding: 28px;
    border-radius: var(--r-lg);
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 520px) {
  .hero,
  .section,
  .site-header,
  .logo-strip,
  .cta-section,
  .site-footer {
    width: min(100% - 24px, 1180px);
  }

  .hero-actions .button,
  .hero-metrics div {
    width: 100%;
  }

  .hero-text,
  .section-heading p,
  .stack-section p,
  .cta-section p {
    font-size: 16px;
  }

  .section {
    padding: 62px 0;
  }

  .work-band {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .status-card .status-title {
    font-size: 25px;
  }

  .quote-card p {
    font-size: 19px;
  }

  .faq-item summary {
    padding: 14px 18px;
  }

  .faq-item p {
    padding: 0 18px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  .button:hover,
  .service-card:hover,
  .case-card:hover,
  .engagement-card:hover {
    transform: none;
  }
}

/* ------------------------------------------------------------------
   Print
   ------------------------------------------------------------------ */
@media print {
  html,
  html[data-theme] {
    --ink: #111827;
    --ink-2: #1f2937;
    --muted: #4b5563;
    --line: #d1d5db;
    --border: #d1d5db;
    --paper: #ffffff;
    --surface: #ffffff;
    --brand: #111827;
    color-scheme: light;
  }

  *,
  *::before,
  *::after {
    background: transparent !important;
    box-shadow: none !important;
    color: #111827 !important;
    text-shadow: none !important;
  }

  html {
    scroll-padding-top: 0;
  }

  body {
    font-size: 11pt;
    line-height: 1.45;
    background: #ffffff;
  }

  html.js [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
  }

  a {
    text-decoration: underline;
    text-underline-offset: 2px;
  }

  .site-header,
  .hero-actions,
  .nav-toggle,
  .theme-toggle,
  .logo-strip,
  .booking-cta,
  .to-top,
  .skip-link,
  .site-footer {
    display: none !important;
  }

  .hero,
  .section,
  .work-band,
  .cta-section {
    display: block;
    width: 100%;
    margin: 0;
    padding: 18pt 0;
  }

  .hero {
    page-break-after: avoid;
  }

  h1 {
    font-size: 30pt;
    line-height: 1.05;
  }

  h2 {
    font-size: 21pt;
    line-height: 1.15;
  }

  h3 {
    font-size: 14pt;
  }

  .hero-text,
  .section-heading p,
  .stack-section p,
  .cta-section p {
    max-width: none;
    font-size: 11pt;
  }

  .hero-visual,
  .case-preview,
  .phone-card,
  .terminal,
  .contact-form,
  .form-error,
  .form-success,
  .avatar {
    display: none !important;
  }

  .hero-metrics,
  .service-grid,
  .case-grid,
  .process-grid,
  .stack-section,
  .testimonials,
  .engagement-grid,
  .faq-list,
  .stack-cloud {
    display: block;
  }

  .hero-metrics div,
  .service-card,
  .case-card,
  .process-grid article,
  .quote-card,
  .engagement-card,
  .faq-item,
  .stack-cloud span {
    break-inside: avoid;
    page-break-inside: avoid;
    margin: 0 0 12pt;
    padding: 10pt 0;
    border: 0;
    border-top: 1px solid #d1d5db;
  }

  .quote-card footer {
    padding-top: 6pt;
  }

  .process-grid article::after,
  .faq-item summary::after {
    display: none;
  }

  .card-icon,
  .process-grid span {
    display: none;
  }

  .service-card ul,
  .engagement-card ul {
    padding-left: 16pt;
    list-style: disc;
  }

  .service-card li,
  .engagement-card li {
    padding-left: 0;
  }

  .service-card li::before,
  .engagement-card li::before {
    display: none;
  }

  .case-card > div:last-child,
  .quote-card,
  .engagement-card {
    padding: 10pt 0;
  }

  .faq-item p {
    padding: 0 0 8pt;
  }

  .cta-section {
    border-top: 2px solid #111827;
    page-break-inside: avoid;
  }
}
