/* =========================================================
   TEKTROIS DIGITAL — styles
   Layout follows the Figma template (TTD / Tektrois-redesign).
   Palette rebuilt from the brand guidelines:
   navy #0A1F5C, accent blue #4D9EFF.
   ========================================================= */

:root {
  /* Brand */
  --navy: #0a1f5c;
  --accent: #4d9eff;
  --accent-hover: #7ab6ff;
  --accent-06: rgba(77, 158, 255, 0.06);
  --accent-12: rgba(77, 158, 255, 0.12);
  --accent-25: rgba(77, 158, 255, 0.25);

  /* Surfaces (dark, navy-tinted) */
  --bg-hero: #040b1f;
  --bg-base: #061029;
  --bg-raised: #0a1838;
  --bg-icon: #10224d;

  /* Lines */
  --line: #1a2c5c;
  --line-strong: #2a4382;
  --line-faint: rgba(255, 255, 255, 0.1);

  /* Text */
  --text-strong: #ffffff;
  --text-hero: #f8fafc;
  --text-muted: #a3b3d6;
  --text-dim: #8193c4;
  --text-tag-active: #e2e8f0;

  /* Status */
  --error: #ff7a8f;
  --placeholder: #fbbf24;

  /* Type */
  --f-geist: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --f-outfit: "Outfit", "Geist", system-ui, sans-serif;

  /* Layout */
  --gutter: 80px;
  --max: 1760px;
  --header-h: 100px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-base);
  color: var(--text-strong);
  font-family: var(--f-geist);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea { font: inherit; color: inherit; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; }

.icon {
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-accent { color: var(--accent); }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--accent);
  color: var(--bg-base);
  padding: 10px 16px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  border-radius: 4px;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Unfilled content: visible on purpose so it can't ship unnoticed */
.ph {
  color: var(--placeholder);
  outline: 1px dashed var(--placeholder);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Shared type ---------- */
.h2 {
  font-family: var(--f-outfit);
  font-weight: 800;
  font-size: 48px;
  line-height: 1.15;
  color: var(--text-strong);
}
.h2--tight { line-height: 1.25; }
.h3 {
  font-family: var(--f-outfit);
  font-weight: 800;
  font-size: 32px;
  line-height: 1.25;
}
.body {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-muted);
}
.mono-eyebrow {
  font-family: var(--f-mono);
  font-size: 12px;
  text-transform: uppercase;
  color: var(--accent);
}

.label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--accent);
  background: var(--accent-06);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-weight: 600;
  font-size: 11px;
  line-height: 14px;
  text-transform: uppercase;
  color: var(--accent);
  align-self: flex-start;
}
.label-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 1px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 4px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  line-height: 18px;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease, color .2s ease;
}
.btn .icon { transition: transform .2s ease; }
.btn:hover .icon[width="14"] { transform: translateX(3px); }

.btn-primary {
  background: var(--accent);
  color: var(--bg-hero);
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border-color: var(--line-faint);
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn-secondary:hover .icon { transform: none; }

.btn-glow { box-shadow: 0 4px 8px var(--accent-25); }
.btn-glow:hover { box-shadow: 0 6px 20px rgba(77, 158, 255, 0.4); }

.btn-outline-strong {
  border-color: var(--line-strong);
  font-weight: 600;
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}
.btn-group--center { justify-content: center; }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  background: rgba(4, 11, 31, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: border-color .2s ease, background-color .2s ease;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: rgba(4, 11, 31, 0.9);
  border-bottom-color: var(--line);
}
.header-inner {
  height: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  justify-self: start;
}
.logo-mark {
  height: 80px;
  width: auto;
}
/* Sub-brand label beside the official logo */
.logo-text {
  padding-left: 14px;
  border-left: 1px solid var(--line-strong);
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 24px;
  line-height: 32px;
  color: var(--accent);
}

.nav {
  display: flex;
  gap: 32px;
  font-family: var(--f-geist);
  font-weight: 500;
  font-size: 14px;
  line-height: 18px;
}
.nav-link {
  color: var(--text-muted);
  transition: color .2s ease;
}
.nav-link:hover,
.nav-link.is-active { color: var(--accent); }
.nav-link--ext { display: none; }

.header-cta {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 20px;
}
.header-ext {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  transition: color .2s ease;
}
.header-ext:hover { color: var(--text-strong); }

.nav-toggle {
  display: none;
  justify-self: end;
  width: 44px;
  height: 44px;
  place-items: center;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-hero);
  cursor: pointer;
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  margin-top: calc(-1 * var(--header-h) - env(safe-area-inset-top, 0px));
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  min-height: calc(870px + var(--header-h));
}

.hero-blur {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
}
.hero-blur--accent {
  width: 488px;
  height: 488px;
  left: 12px;
  top: calc(var(--header-h) + 212px);
  background: rgba(77, 158, 255, 0.18);
}
.hero-blur--navy {
  width: 544px;
  height: 544px;
  right: 6px;
  top: calc(var(--header-h) + 300px);
  background: rgba(30, 72, 190, 0.35);
}
.hero-mesh {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
  /* The mesh artwork is cyan; shift it to the brand blue */
  filter: hue-rotate(33deg);
  pointer-events: none;
  user-select: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-top: 145px;
  padding-bottom: 203px;
  padding-left: 81px;
  padding-right: 79px;
}
.hero-content {
  max-width: 952px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.hero-eyebrow {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}
.hero-title {
  font-family: var(--f-geist);
  font-weight: 800;
  font-size: 80px;
  line-height: 1.05;
  color: var(--text-hero);
  letter-spacing: -0.01em;
}
.hero-lead {
  max-width: 760px;
  font-size: 20px;
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-actions-row {
  margin-top: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 24px;
  font-family: var(--f-mono);
}
.hero-meta-line {
  width: 100px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent));
  opacity: 0.6;
}
.hero-meta-label { font-size: 11px; line-height: 15px; color: var(--accent); }
.hero-meta-value { margin-top: 4px; font-size: 13px; line-height: 17px; color: var(--text-muted); }

/* =========================================================
   WHY TEKTROIS (template "about")
   ========================================================= */
.about {
  background: var(--bg-raised);
  padding-block: 96px;
}
.about-inner {
  display: grid;
  grid-template-columns: minmax(0, 734fr) minmax(0, 834fr);
  gap: 120px;
  align-items: center;
  padding-left: 81px;
  padding-right: 81px;
}
.about-copy {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.check-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.check-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.check-list .icon { margin-top: 1px; }
.check-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 17px;
  line-height: 22px;
}
.check-text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-muted);
}
.trust-strip li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.trust-strip li::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent);
}
.about-visual {
  aspect-ratio: 834 / 641;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-base); /* shows while the image loads */
}
.about-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: hue-rotate(33deg); /* placeholder art is cyan; remove when replaced */
}

/* =========================================================
   KEY FACTS (template "metrics")
   ========================================================= */
.metrics {
  background: var(--bg-base);
  padding-block: 100px;
}
.section-head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.metric-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.metric-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.metric-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.metric-value {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 48px;
  line-height: 62px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}
.metric-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 18px;
  line-height: 23px;
}
.metric-text {
  margin-top: 4px;
  font-size: 15px;
  line-height: 1.5;
  color: var(--text-muted);
}

/* =========================================================
   SHARED SECTION HEAD (label + title left, intro right)
   ========================================================= */
.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 48px;
}
.split-head-left {
  max-width: 733px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.split-intro {
  max-width: 440px;
}

/* =========================================================
   SERVICES
   ========================================================= */
.services {
  background: var(--bg-base);
  padding-block: 120px;
}
.service-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.service-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #0b1a45 0%, var(--navy) 50%, #1d4aa8 100%);
  opacity: 0;
  transition: opacity .3s ease;
}
.service-card.is-active::before { opacity: 1; }
.service-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.service-icon {
  display: inline-flex;
  padding: 10px;
  background: var(--bg-icon);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.service-tag {
  font-family: var(--f-mono);
  font-size: 11px;
  line-height: 14px;
  color: var(--text-dim);
  transition: color .3s ease;
}
.service-card.is-active .service-tag { color: var(--text-tag-active); }
.service-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.service-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 20px;
  line-height: 25px;
}
.service-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.service-card.is-active .service-text { color: #c4d0ea; }
.service-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--accent);
}
.service-card.is-active .service-link { color: var(--text-strong); }
.service-link .icon { transition: transform .2s ease; }
.service-link:hover .icon { transform: translateX(3px); }
/* Stretch the link hit-area over the whole card */
.service-link::after { content: ""; position: absolute; inset: 0; }

/* =========================================================
   HOW WE WORK
   ========================================================= */
.process {
  background: var(--bg-raised);
  padding-block: 120px;
}
.steps {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
  counter-reset: none;
}
.step {
  padding-top: 24px;
  border-top: 1px solid var(--line-strong);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.step-num {
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 14px;
  color: var(--accent);
}
.step-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 20px;
  line-height: 25px;
}
.step-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* =========================================================
   ENGAGEMENT MODELS
   ========================================================= */
.models {
  background: var(--bg-base);
  padding-block: 120px;
}
.model-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
  align-items: stretch;
}
.model-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  transition: border-color .2s ease;
}
.model-card:hover { border-color: var(--line-strong); }
.model-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}
.model-title {
  font-family: var(--f-outfit);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
}
.model-sub {
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--accent);
}
.model-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.model-points {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.model-points li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.model-points .icon { margin-top: 3px; }
.model-small {
  margin-top: auto;
  padding-top: 8px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.model-small a { text-decoration: underline; text-underline-offset: 2px; }
.model-small a:hover { color: var(--text-strong); }
.models-foot {
  margin-top: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  text-align: center;
  color: var(--text-muted);
}

/* =========================================================
   WORK
   ========================================================= */
.work {
  background: var(--bg-raised);
  padding-block: 120px;
}
.work-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.work-card {
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.work-client {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.work-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.work-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.work-result {
  font-family: var(--f-mono);
  font-size: 14px;
  color: var(--accent);
}
.work-stack {
  margin-top: auto;
  padding-top: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.work-stack li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  color: var(--text-muted);
}

/* =========================================================
   CTA
   ========================================================= */
.cta {
  position: relative;
  overflow: hidden;
  background: var(--bg-base);
  padding-block: 120px;
}
.cta-glow {
  position: absolute;
  left: 400px;
  top: 40px;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: rgba(77, 158, 255, 0.14);
  filter: blur(100px);
  pointer-events: none;
}
.cta-panel {
  position: relative;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.cta-panel .label { align-self: center; }
.cta-title { max-width: 843px; line-height: 1.25; }
.cta-text { max-width: 624px; }

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  background: var(--bg-raised);
  padding-block: 120px;
}
.contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 697fr) minmax(0, 1030fr);
  gap: 32px;
  align-items: start;
}
.contact-info {
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.contact-head {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.h-contact {
  font-family: var(--f-outfit);
  font-weight: 800;
  font-size: 36px;
  line-height: 1.25;
}
.contact-lead {
  font-size: 16px;
  line-height: 1.55;
  color: var(--text-muted);
}
.locations {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.locations li {
  display: flex;
  align-items: center;
  gap: 16px;
}
.loc-name {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 15px;
  line-height: 19px;
}
.loc-detail {
  margin-top: 2px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-muted);
}
.loc-detail a:hover { color: var(--accent); }

.intake-form {
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.form-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 22px;
  line-height: 28px;
}
.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > label,
.field legend {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field legend { margin-bottom: 8px; }
.optional { text-transform: none; color: var(--text-dim); }
.field input:not([type="radio"]),
.field textarea {
  width: 100%;
  padding: 13px 14px;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 15px;
  line-height: 20px;
  color: var(--text-strong);
  transition: border-color .2s ease;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder,
.field textarea::placeholder { color: var(--text-dim); }
.field input:hover,
.field textarea:hover { border-color: var(--line-strong); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--accent); }
.field.has-error input { border-color: var(--error); }
.field-error {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--error);
}
.field-error:empty { display: none; }

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.chip {
  padding: 9px 15px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-strong);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.chip:hover { border-color: var(--line-strong); }
.chip[aria-pressed="true"],
.chip-radio:has(input:checked) {
  background: var(--accent-12);
  border-color: var(--accent);
  color: var(--accent);
}
/* Radio chips: keep the native input for keyboard/AT, hide it visually */
.chip-radio { position: relative; }
.chip-radio input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}
.chip-radio:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-submit { align-self: flex-start; }
.btn-submit[disabled] { opacity: .6; cursor: progress; }
.form-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-dim);
}
.form-note a { text-decoration: underline; text-underline-offset: 2px; }
.form-note a:hover { color: var(--text-strong); }
.form-status {
  font-family: var(--f-mono);
  font-size: 13px;
  color: var(--accent);
}
.form-status.is-error { color: var(--error); }
.form-status:empty { display: none; }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  background: var(--bg-base);
  border-top: 1px solid var(--line);
  padding-block: 79px 44px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
}
.footer-brand {
  width: 405px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.footer-logo {
  align-self: flex-start;
}
.footer-logo img {
  width: 88px;
  height: auto;
}
.footer-about {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.socials {
  display: flex;
  gap: 12px;
}
.social {
  display: inline-flex;
  padding: 8px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text-muted);
  transition: color .2s ease, border-color .2s ease;
}
.social:hover { color: var(--accent); border-color: var(--accent); }

.footer-col {
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.footer-col-title {
  margin-bottom: 4px;
  font-family: var(--f-mono);
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
}
.footer-col a {
  font-size: 14px;
  line-height: 18px;
  color: var(--text-muted);
  transition: color .2s ease;
  overflow-wrap: anywhere;
}
.footer-col a:hover { color: var(--text-strong); }

.footer-bottom {
  margin-top: 64px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  flex-wrap: wrap;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-dim);
}
.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-bottom-right a:hover { color: var(--text-strong); }

/* =========================================================
   RESPONSIVE
   Figma has only the 1920 desktop frame; these breakpoints are ours.
   ========================================================= */
@media (max-width: 1440px) {
  :root { --gutter: 56px; }
  .hero-inner, .about-inner { padding-inline: var(--gutter); }
  .hero-title { font-size: 68px; }
  .about-inner { gap: 80px; }
  .header-inner { grid-template-columns: auto 1fr auto; }
  .nav { justify-self: center; gap: 24px; }
}

@media (max-width: 1280px) {
  .header-ext { display: none; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 32px; }
}

@media (max-width: 1180px) {
  .about-inner { grid-template-columns: 1fr; gap: 56px; }
  .about-visual { order: -1; }
  .contact-inner { grid-template-columns: 1fr; gap: 56px; }
  .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model-grid { grid-template-columns: 1fr; max-width: 760px; margin-inline: auto; }
  .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-top { flex-wrap: wrap; }
  .footer-brand { width: 100%; max-width: 480px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .header-inner { grid-template-columns: 1fr auto; }
  .nav-toggle { display: grid; }
  .header-cta { display: none; }
  .logo-mark { height: 60px; }
  .logo-text { font-size: 20px; line-height: 28px; padding-left: 12px; }
  .nav {
    position: fixed;
    top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    padding: 8px var(--gutter) 24px;
    background: rgba(4, 11, 31, 0.97);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  .nav.is-open { opacity: 1; transform: none; visibility: visible; }
  .nav-link { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav-link--ext { display: inline-flex; align-items: center; gap: 6px; border-bottom: 0; }

  .hero { min-height: auto; }
  .hero-inner { padding-block: 120px 96px; }
  .hero-title { font-size: 56px; }
  .hero-lead { font-size: 18px; }

  .metric-grid { grid-template-columns: 1fr; gap: 20px; }
  .split-head { flex-direction: column; align-items: flex-start; gap: 24px; }
  .h2 { font-size: 40px; }
  .cta-glow { left: 10%; }
}

@media (max-width: 640px) {
  :root { --gutter: 20px; }
  .logo-mark { height: 56px; }
  .logo-text { font-size: 18px; }
  .hero-inner { padding-block: 72px 64px; }
  .hero-title { font-size: 40px; }
  .hero-lead { font-size: 16px; }
  .hero-actions-row { margin-top: 36px; }
  .btn-group { width: 100%; flex-direction: column; }
  .btn-group .btn { width: 100%; white-space: normal; text-align: center; }
  .hero-meta-line { width: 48px; }

  .about, .metrics { padding-block: 64px; }
  .services, .process, .models, .work, .cta, .contact { padding-block: 72px; }
  .service-grid, .steps, .work-grid { grid-template-columns: 1fr; margin-top: 40px; }
  .model-grid { margin-top: 40px; }
  .model-card { padding: 28px 22px; }
  .models-foot { flex-direction: column; gap: 16px; }
  .models-foot .btn { width: 100%; }
  .h2 { font-size: 32px; }
  .h3 { font-size: 26px; }
  .h-contact { font-size: 28px; }
  .metric-value { font-size: 40px; line-height: 1.2; }

  .cta-panel { padding: 40px 20px; }
  .intake-form { padding: 24px 20px; }
  .form-row { grid-template-columns: 1fr; }
  .btn-submit { align-self: stretch; }

  .footer-col { width: calc(50% - 24px); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

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

/* =========================================================
   INNER PAGES (services/*, engagement-models)
   ========================================================= */
.page-hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-hero);
  margin-top: calc(-1 * var(--header-h) - env(safe-area-inset-top, 0px));
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px));
}
.page-hero .hero-mesh { opacity: 0.14; }
.page-hero-inner {
  position: relative;
  z-index: 1;
  padding-block: 88px 104px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 80px;
  align-items: center;
}
.page-hero-inner--single { grid-template-columns: minmax(0, 1fr); max-width: 1100px; margin-left: 0; }
.page-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  color: var(--text-dim);
}
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--accent); }
.crumbs li + li::before { content: "/"; margin-right: 8px; color: var(--text-dim); }
.page-title {
  font-family: var(--f-geist);
  font-weight: 800;
  font-size: 64px;
  line-height: 1.06;
  letter-spacing: -0.01em;
  color: var(--text-hero);
}
.page-lead {
  max-width: 720px;
  font-size: 19px;
  line-height: 1.6;
  color: var(--text-muted);
}
.page-hero .btn-group { margin-top: 8px; }

.glance {
  background: rgba(10, 24, 56, 0.85);
  border: 1px solid var(--line-strong);
  border-radius: 12px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.glance-title {
  font-family: var(--f-mono);
  font-size: 12px;
  line-height: 16px;
  text-transform: uppercase;
  color: var(--accent);
}
.glance-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 15px;
  line-height: 1.45;
}
.glance-list li { display: flex; gap: 12px; align-items: flex-start; }
.glance-list .icon { margin-top: 3px; }
.glance-fit {
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-muted);
}
.glance-fit strong { color: var(--text-strong); font-weight: 600; }
.glance-fit a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

.page-section { padding-block: 112px; background: var(--bg-base); }
.page-section--raised { background: var(--bg-raised); }

/* Pain points */
.pain-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}
.pain {
  border-left: 2px solid var(--accent);
  padding: 4px 0 4px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pain-q {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}
.pain-a {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Capabilities */
.cap-grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.cap {
  background: var(--bg-base);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.page-section--raised .cap { background: var(--bg-raised); }
.cap-num {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--accent);
}
.cap-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 19px;
  line-height: 1.3;
}
.cap-text {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}

/* Tech list */
.tech-list {
  margin-top: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.tech-list li {
  padding: 9px 14px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 18px;
  color: var(--text-strong);
}
.page-section--raised .tech-list li { background: var(--bg-base); }

/* FAQ */
.faq {
  margin-top: 48px;
  max-width: 960px;
  border-top: 1px solid var(--line);
}
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.35;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--accent); transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq summary:hover { color: var(--accent); }
.faq-a {
  padding: 0 48px 24px 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-muted);
}
.faq-a a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }

/* Other services */
.others {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}
.other {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 24px;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .2s ease, transform .2s ease;
}
.other:hover { border-color: var(--accent); transform: translateY(-2px); }
.other .service-icon { align-self: flex-start; }
.other-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
}
.other-more {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--accent);
}

/* Comparison table (engagement models) */
.table-wrap {
  margin-top: 56px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.compare {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}
.compare th,
.compare td {
  padding: 18px 24px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.compare tr:last-child th,
.compare tr:last-child td { border-bottom: 0; }
.compare thead th {
  background: var(--bg-icon);
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 17px;
}
.compare tbody th {
  width: 22%;
  font-family: var(--f-mono);
  font-weight: 400;
  font-size: 12px;
  text-transform: uppercase;
  color: var(--text-dim);
}
.compare td { color: var(--text-muted); }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testimonials {
  background: var(--bg-base);
  padding-block: 120px;
}
.quote-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.quote-card {
  margin: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 36px 32px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.quote-card > .icon { color: var(--accent); }
.quote-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text-strong);
}
.quote-by {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.quote-name {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 16px;
}
.quote-role {
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* =========================================================
   BLOG TEASER (homepage)
   ========================================================= */
.blog-teaser {
  background: var(--bg-raised);
  padding-block: 120px;
}
.post-grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 32px;
}
.post-card {
  position: relative;
  background: var(--bg-base);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, transform .2s ease;
}
.post-card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.post-cover {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 85% 10%, #1d4aa8 0%, var(--navy) 45%, var(--bg-hero) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.post-cover--alt {
  background:
    linear-gradient(rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(120% 90% at 15% 90%, #2a6fd6 0%, var(--navy) 50%, var(--bg-hero) 100%);
}
.post-cover--alt2 {
  background:
    linear-gradient(rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(77, 158, 255, 0.08) 1px, transparent 1px) 0 0 / 28px 28px,
    radial-gradient(100% 100% at 50% 0%, #3b82f6 0%, var(--navy) 55%, var(--bg-hero) 100%);
}
.post-cat {
  padding: 4px 10px;
  background: rgba(4, 11, 31, 0.7);
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  text-transform: uppercase;
  color: var(--text-strong);
}
.post-body {
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.post-title {
  font-family: var(--f-outfit);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
}
.post-title a::after { content: ""; position: absolute; inset: 0; }
.post-excerpt {
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-muted);
}
.post-meta {
  margin-top: auto;
  padding-top: 8px;
  font-family: var(--f-mono);
  font-size: 12px;
  color: var(--text-dim);
}

/* ---------- Responsive: new components ---------- */
@media (max-width: 1280px) {
  .others { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .page-hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .page-title { font-size: 52px; }
  .pain-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote-grid, .post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .others { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .page-hero-inner { padding-block: 56px 64px; }
  .page-title { font-size: 38px; }
  .page-lead { font-size: 16px; }
  .glance { padding: 24px 20px; }
  .page-section, .testimonials, .blog-teaser { padding-block: 72px; }
  .pain-grid, .cap-grid, .quote-grid, .post-grid, .others { grid-template-columns: 1fr; margin-top: 40px; }
  .cap { padding: 24px 20px; }
  .faq summary { font-size: 16px; }
  .faq-a { padding-right: 0; }
  .compare th, .compare td { padding: 14px 16px; }
}

/* Visually hidden, still read by screen readers */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Inline text link inside dark sections */
.text-link { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.text-link:hover { color: var(--accent-hover); }
