/* Onest (SIL Open Font License), self-hosted from @fontsource-variable/onest */
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Onest';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/onest-latin-wght-normal.woff2) format('woff2-variations');
  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;
}

/* ==========================================================================
   Cerebyte Technologies — main stylesheet
   Navy and white corporate theme with a single brand blue.
   ========================================================================== */

:root {
  /* Colour */
  --ink: #081a36;          /* hero, header, footer, dark sections */
  --navy: #0f2a55;         /* secondary dark surface */
  --blue: #2b63f6;         /* brand blue: buttons, links, the brand dot */
  --blue-hover: #1c4fdb;
  --sky: #8fb0ff;          /* accents on dark backgrounds */
  --sky-strong: #5b8cff;
  --blue-wash: #eaf0ff;
  --paper: #f4f6fa;        /* light alternate sections */
  --surface: #ffffff;
  --text: #0e1b33;
  --muted: #51607a;
  --line: #e1e6ef;
  --line-strong: #c5cedd;
  --on-dark: rgba(255, 255, 255, 0.76);
  --on-dark-line: rgba(255, 255, 255, 0.14);
  --error: #b3261e;

  /* Type */
  --font: 'Onest', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --fs-hero: clamp(2.6rem, 1.4rem + 4.6vw, 5rem);
  --fs-h1: clamp(2.25rem, 1.5rem + 3vw, 3.75rem);
  --fs-h2: clamp(1.875rem, 1.35rem + 1.9vw, 2.875rem);
  --fs-h3: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);
  --fs-lede: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);

  /* Shape and space */
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --header-h: 72px;
  --section-y: clamp(72px, 9vw, 128px);

  --brand-accent: var(--blue);
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul[class], ol[class] { list-style: none; padding: 0; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--blue); text-underline-offset: 0.2em; }
a:hover { color: var(--blue-hover); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
[id] { scroll-margin-top: calc(var(--header-h) + 24px); }

:focus-visible { outline: 3px solid var(--sky-strong); outline-offset: 3px; border-radius: 4px; }

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

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: var(--radius-sm);
  font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

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

/* The brand device: headlines end in a blue full stop. */
.dot { color: var(--blue); }
.hero .dot,
.page-hero .dot,
.section--ink .dot,
.cta-band .dot { color: var(--sky-strong); }

/* ---------- Typography helpers ---------- */
.h2 { font-size: var(--fs-h2); font-weight: 700; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: var(--fs-h3); font-weight: 650; line-height: 1.25; letter-spacing: -0.015em; }
.lede { font-size: var(--fs-lede); color: var(--muted); margin-top: 1rem; max-width: 40rem; }
.muted { color: var(--muted); margin-top: 28px; }

.link-strong {
  font-weight: 600; color: var(--blue); text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 0.3em; white-space: nowrap;
}
.link-strong:hover { text-decoration-thickness: 2.5px; }
.section--ink .link-strong,
.page-hero .link-strong { color: var(--sky); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.95rem 1.5rem; border: 1.5px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: 1rem; line-height: 1; text-decoration: none; white-space: nowrap;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-hover); color: #fff; }
.btn--ghost { border-color: rgba(255, 255, 255, 0.42); color: #fff; }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.1); border-color: #fff; color: #fff; }
.btn--outline { border-color: var(--line-strong); color: var(--text); background: var(--surface); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--sm { padding: 0.7rem 1.15rem; font-size: 0.9375rem; }
.btn--lg { padding: 1.1rem 1.9rem; font-size: 1.0625rem; }
.btn--block { width: 100%; }

/* ---------- Announcement bar ---------- */
.announce { background: var(--blue); color: #fff; font-size: 0.875rem; }
.announce__inner { padding-block: 10px; text-align: center; }
.announce a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.announce a:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- Header and navigation ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--ink); color: #fff;
  border-bottom: 1px solid var(--on-dark-line);
}
.site-header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; flex-shrink: 0; }
.brand:hover { color: #fff; }
.brand__mark { width: 32px; height: 32px; color: #fff; flex-shrink: 0; }
.brand__name { font-weight: 800; font-size: 1.3125rem; letter-spacing: -0.035em; }
.brand__suffix { font-weight: 400; font-size: 1.3125rem; letter-spacing: -0.03em; color: var(--sky); margin-left: -4px; }
.site-header .brand { --brand-accent: var(--sky-strong); }

.main-nav { flex: 1; }
.main-nav__list { display: flex; align-items: center; gap: 4px; }
.main-nav__trigger,
.main-nav__link {
  display: inline-flex; align-items: center; gap: 6px; height: var(--header-h);
  padding: 0 14px; background: none; border: 0; color: var(--on-dark);
  font-size: 0.96875rem; font-weight: 500; text-decoration: none; position: relative;
}
.main-nav__trigger:hover,
.main-nav__link:hover,
.main-nav__trigger[aria-expanded='true'] { color: #fff; }
.main-nav__trigger.is-active,
.main-nav__link[aria-current='page'] { color: #fff; }
.main-nav__trigger.is-active::after,
.main-nav__link[aria-current='page']::after,
.main-nav__trigger[aria-expanded='true']::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 0; height: 3px;
  background: var(--sky-strong); border-radius: 3px 3px 0 0;
}
.chev { transition: transform 0.2s ease; }
.main-nav__trigger[aria-expanded='true'] .chev { transform: rotate(180deg); }

.mega {
  position: absolute; left: 0; right: 0; top: 100%;
  background: var(--surface); color: var(--text);
  border-top: 1px solid var(--line);
  box-shadow: 0 30px 60px -20px rgba(8, 26, 54, 0.35);
}
.mega__inner { display: grid; grid-template-columns: 1.1fr 1fr 1.5fr; gap: 48px; padding-block: 36px 44px; }
.mega__title { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.mega__intro p:not(.mega__title) { color: var(--muted); margin-bottom: 20px; max-width: 28ch; }
.mega__heading { font-size: 0.875rem; font-weight: 600; color: var(--muted); margin-bottom: 12px; }
.mega__links { display: grid; gap: 10px; }
.mega__links--two { grid-template-columns: 1fr 1fr; column-gap: 24px; }
.mega__links a { color: var(--text); text-decoration: none; font-weight: 500; }
.mega__links a:hover { color: var(--blue); text-decoration: underline; }

.site-header__actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }

.menu-toggle {
  display: none; width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 1px solid var(--on-dark-line); position: relative;
}
.menu-toggle__bars,
.menu-toggle__bars::before,
.menu-toggle__bars::after {
  position: absolute; left: 50%; width: 18px; height: 2px; margin-left: -9px;
  background: #fff; border-radius: 2px; transition: transform 0.2s ease, opacity 0.2s ease;
}
.menu-toggle__bars { top: 50%; margin-top: -1px; }
.menu-toggle__bars::before { content: ''; top: -6px; left: 0; margin-left: 0; }
.menu-toggle__bars::after { content: ''; top: 6px; left: 0; margin-left: 0; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars { background: transparent; }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded='true'] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: absolute; left: 0; right: 0; top: 100%;
  height: calc(100dvh - var(--header-h)); overflow-y: auto;
  background: var(--ink); border-top: 1px solid var(--on-dark-line); padding-block: 16px 40px;
}
.mobile-nav__list > li { border-bottom: 1px solid var(--on-dark-line); }
.mobile-nav summary,
.mobile-nav__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; font-size: 1.25rem; font-weight: 600; color: #fff; text-decoration: none; cursor: pointer; list-style: none;
}
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::after { content: '+'; font-weight: 400; font-size: 1.5rem; color: var(--sky); }
.mobile-nav details[open] summary::after { content: '\2212'; }
.mobile-nav details ul { list-style: none; padding: 0 0 18px; display: grid; gap: 12px; }
.mobile-nav details a { color: var(--on-dark); text-decoration: none; }
.mobile-nav details a.link-strong { color: var(--sky); }
.mobile-nav .btn { margin-top: 28px; }

/* ---------- Hero (home) ---------- */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(55% 75% at 82% 32%, rgba(43, 99, 246, 0.3), transparent 70%),
    var(--ink);
  padding-top: clamp(72px, 10vw, 148px);
  padding-bottom: 44px;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(0deg, var(--ink) 0, rgba(8, 26, 54, 0.85) 90px, rgba(8, 26, 54, 0) 200px),
    linear-gradient(90deg, var(--ink) 0%, rgba(8, 26, 54, 0.9) 34%, rgba(8, 26, 54, 0.25) 62%, rgba(8, 26, 54, 0) 82%);
}
.hero__inner,
.hero__clients { position: relative; z-index: 2; }
.hero__title {
  font-size: var(--fs-hero); font-weight: 700; line-height: 1.02; letter-spacing: -0.04em;
  max-width: 12ch;
}
.hero__lede { margin-top: 1.5rem; max-width: 34rem; font-size: var(--fs-lede); color: var(--on-dark); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 2.25rem; }

.hero__clients { margin-top: clamp(72px, 10vw, 128px); }
.hero__clients-inner {
  display: flex; flex-wrap: wrap; align-items: center; gap: 20px 48px;
  padding-top: 28px; border-top: 1px solid var(--on-dark-line);
}
.hero__clients-inner > p { font-size: 0.875rem; color: rgba(255, 255, 255, 0.6); }
.clients { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 40px; }
.clients__item { color: rgba(255, 255, 255, 0.66); font-size: 1.125rem; white-space: nowrap; }
.clients__item--0 { font-weight: 800; letter-spacing: -0.04em; }
.clients__item--1 { font-weight: 500; letter-spacing: 0.06em; font-size: 1rem; }
.clients__item--2 { font-weight: 700; letter-spacing: -0.01em; font-size: 1.1875rem; }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section--tight { padding-block: 56px 104px; }
.section--paper { background: var(--paper); }
.section--ink { background: var(--ink); color: #fff; }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); max-width: 52rem; }
.section-head--split {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
  flex-wrap: wrap; max-width: none;
}
.section-head--split .h2 { max-width: 22ch; }

/* ---------- Services grid (home) ---------- */
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
.service { padding-block: 32px 40px; border-top: 1px solid var(--line-strong); }
.service__title { font-size: 1.375rem; font-weight: 650; letter-spacing: -0.02em; margin-bottom: 10px; }
.service__title a { color: var(--text); text-decoration: none; }
.service__title a:hover { color: var(--blue); }
.service > p { color: var(--muted); max-width: 34ch; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.tag {
  display: inline-block; padding: 6px 13px; border: 1px solid var(--line-strong); border-radius: 999px;
  font-size: 0.875rem; font-weight: 500; color: var(--text); text-decoration: none; background: var(--surface);
}
.tag:hover { border-color: var(--blue); color: var(--blue); }

/* ---------- Tech stack strip ---------- */
.stack-head { margin-bottom: 48px; }
.stack-foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 40px; }
.marquee {
  overflow: hidden; display: grid; gap: 14px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.marquee__row { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee__row--reverse { animation-direction: reverse; animation-duration: 48s; }
.marquee__track { display: flex; gap: 14px; padding-right: 14px; }
.marquee:hover .marquee__row,
.marquee:focus-within .marquee__row,
.marquee.is-paused .marquee__row { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-25%); } }

.pill {
  display: inline-flex; align-items: center; padding: 14px 26px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
  font-size: 1.125rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
}
.marquee-toggle {
  background: none; border: 0; padding: 6px 0; color: var(--muted);
  font-size: 0.9375rem; text-decoration: underline; text-underline-offset: 0.25em;
}
.marquee-toggle:hover { color: var(--text); }

/* ---------- Testimonials ---------- */
.testimonials__inner { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: start; }
.testimonials__intro p { color: var(--on-dark); margin-top: 1.25rem; max-width: 30rem; font-size: var(--fs-lede); }
.carousel__viewport { display: grid; }
.quote { grid-area: 1 / 1; visibility: hidden; opacity: 0; transition: opacity 0.3s ease, visibility 0s linear 0.3s; }
.quote.is-active { visibility: visible; opacity: 1; transition: opacity 0.3s ease; }
.quote blockquote::before {
  content: '\201C'; display: block; font-size: 5.5rem; line-height: 0.7; height: 2.6rem;
  color: var(--sky-strong); font-weight: 700;
}
.quote blockquote p {
  font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); font-weight: 500; line-height: 1.38; letter-spacing: -0.015em;
}
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 32px; color: var(--on-dark); line-height: 1.45; }
.quote figcaption strong { color: #fff; font-weight: 650; }
.avatar {
  display: inline-grid; place-items: center; flex-shrink: 0; width: 52px; height: 52px; border-radius: 50%;
  background: var(--navy); border: 1.5px solid var(--sky-strong); color: var(--sky); font-weight: 700; letter-spacing: 0.02em;
}
.carousel__controls { display: flex; align-items: center; gap: 16px; margin-top: 40px; }
.carousel__count { font-variant-numeric: tabular-nums; color: var(--on-dark); min-width: 3.5ch; text-align: center; }
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  background: transparent; border: 1.5px solid rgba(255, 255, 255, 0.32); color: #fff;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.icon-btn:hover { background: #fff; color: var(--ink); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 96px); align-items: end; }
.stats__list { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.stat { display: flex; flex-direction: column-reverse; border-top: 2px solid var(--ink); padding-top: 18px; }
.stat dd { font-size: clamp(2.5rem, 1.9rem + 2.2vw, 3.75rem); font-weight: 700; letter-spacing: -0.045em; line-height: 1; }
.stat dt { color: var(--muted); margin-top: 10px; }

/* ---------- Why us ---------- */
.why { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(40px, 5vw, 72px); align-items: start; }
.why__reasons { display: grid; grid-template-columns: 1fr 1fr; gap: 40px 48px; }
.why__reasons--four { grid-template-columns: repeat(4, 1fr); gap: 40px 40px; }
.reason { border-top: 1px solid var(--line-strong); padding-top: 20px; }
.reason__title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 8px; }
.reason p { color: var(--muted); }

.assemble { background: var(--ink); color: #fff; border-radius: var(--radius-lg); padding: clamp(28px, 3.5vw, 40px); }
.assemble__title { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.assemble > p { color: var(--on-dark); margin-top: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  background: transparent; border: 1px solid rgba(255, 255, 255, 0.28); color: #fff;
  font-size: 0.9375rem; font-weight: 500; transition: background-color 0.15s ease, border-color 0.15s ease;
}
.chip::before { content: '+'; font-weight: 600; color: var(--sky); width: 0.8em; text-align: center; }
.chip:hover { border-color: #fff; }
.chip[aria-pressed='true'] { background: var(--blue); border-color: var(--blue); }
.chip[aria-pressed='true']::before { content: '\2713'; color: #fff; }

/* ---------- Engagement models (tabs) ---------- */
.models { display: grid; grid-template-columns: minmax(260px, 340px) 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.models__tabs { display: flex; flex-direction: column; }
.models__tab {
  display: grid; gap: 4px; text-align: left; padding: 22px 24px; background: none;
  border: 0; border-left: 3px solid var(--line); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.models__tab:hover { background: var(--paper); }
.models__tab[aria-selected='true'] { border-left-color: var(--blue); background: var(--paper); }
.models__q { color: var(--muted); font-size: 0.9375rem; }
.models__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.models__tab[aria-selected='true'] .models__name { color: var(--blue); }
.models__panel {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 40px; align-items: center;
  background: var(--paper); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 48px);
}
.models__copy p { color: var(--muted); margin: 12px 0 20px; }
.models__copy .checks { margin-bottom: 24px; }

.model-art { width: 100%; height: auto; }
.models__panel .model-art { background: var(--surface); border-radius: var(--radius); padding: 20px 12px; box-shadow: 0 1px 2px rgba(8, 26, 54, 0.05); }
.model-art__label { font: 600 13px var(--font); fill: var(--muted); }
.model-art__tag { font: 500 12px var(--font); fill: var(--muted); }

.checks { list-style: none; padding: 0; display: grid; gap: 10px; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 0.2em; width: 19px; height: 19px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.2 5 8.6l4.5-5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.checks--two { grid-template-columns: 1fr 1fr; column-gap: 24px; margin-block: 20px 4px; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.steps--four { grid-template-columns: repeat(4, 1fr); gap: 32px; }
.step { position: relative; }
.step:not(:last-child)::before {
  content: ''; position: absolute; top: 24px; left: 64px; right: -16px; height: 2px; background: var(--line-strong);
}
.step__num {
  display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 2px solid var(--blue); color: var(--blue); background: var(--surface); font-weight: 700; font-size: 1.125rem;
}
.step__title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; margin: 22px 0 8px; }
.step p { color: var(--muted); max-width: 34ch; }

/* ---------- Blog cards ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px 32px; }
.post-card__media { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; }
.cover { width: 100%; height: 100%; }
.post-card__meta { margin-top: 18px; font-size: 0.875rem; color: var(--muted); }
.post-card__title { font-size: 1.25rem; font-weight: 650; line-height: 1.3; letter-spacing: -0.015em; margin: 6px 0 8px; }
.post-card__title a { color: var(--text); text-decoration: none; }
.post-card__title a:hover { color: var(--blue); text-decoration: underline; text-decoration-thickness: 1.5px; }
.post-card > p:last-child { color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding-block: clamp(64px, 8vw, 104px); }
.cta-band__art { position: absolute; right: -40px; top: 0; height: 100%; width: 60%; color: var(--sky); opacity: 0.28; }
.cta-band__inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 32px 64px; flex-wrap: wrap; }
.cta-band__title { font-size: var(--fs-h2); font-weight: 700; line-height: 1.12; letter-spacing: -0.03em; max-width: 22ch; }
.cta-band__title span { display: block; color: var(--on-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--on-dark); padding-top: clamp(64px, 7vw, 96px); font-size: 0.96875rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__top { display: grid; grid-template-columns: 1fr 3fr; gap: 48px; }
.site-footer__brand > p { margin-top: 16px; max-width: 26ch; }
.brand--footer { --brand-accent: var(--sky-strong); }
.site-footer .brand:hover { text-decoration: none; }
.site-footer__nav { display: grid; grid-template-columns: 0.8fr 1.1fr 0.8fr 1.3fr; gap: 32px; }
.site-footer__nav a { overflow-wrap: anywhere; }
.site-footer__heading { color: #fff; font-weight: 650; margin-bottom: 14px; }
.site-footer__nav ul { list-style: none; padding: 0; display: grid; gap: 10px; }
.site-footer__address { color: rgba(255, 255, 255, 0.55); }

.social { display: flex; gap: 10px; margin-top: 24px; }
.social a {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--on-dark-line);
}
.social a:hover { background: #fff; color: var(--ink); }

.newsletter {
  display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 24px 48px; align-items: center;
  margin-top: 56px; padding-block: 32px; border-block: 1px solid var(--on-dark-line);
}
.newsletter__title { color: #fff; font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.newsletter__sub { margin-top: 4px; }
.newsletter__form { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.newsletter__form input {
  width: 100%; min-width: 0; padding: 0.85rem 1.25rem; border-radius: 999px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.24); color: #fff;
}
.newsletter__form input::placeholder { color: rgba(255, 255, 255, 0.5); }
.newsletter__form input:focus { outline: none; border-color: var(--sky-strong); box-shadow: 0 0 0 4px rgba(91, 140, 255, 0.25); }
.newsletter__status { grid-column: 1 / -1; min-height: 1.5em; font-size: 0.9375rem; color: var(--sky); }

.site-footer__legal {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 32px;
  padding-block: 28px; font-size: 0.875rem; color: rgba(255, 255, 255, 0.55);
}
.site-footer__legal ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 24px; }

/* ---------- Inner page hero ---------- */
.page-hero {
  color: #fff;
  background:
    radial-gradient(45% 90% at 92% 10%, rgba(43, 99, 246, 0.32), transparent 70%),
    var(--ink);
  padding-block: clamp(64px, 8vw, 116px) clamp(56px, 7vw, 100px);
}
.page-hero--compact { padding-block: clamp(56px, 6vw, 88px) clamp(48px, 5vw, 72px); }
.page-hero--message { min-height: 62vh; display: flex; align-items: center; }
.page-hero__crumb { margin-bottom: 20px; font-weight: 600; }
.page-hero__crumb a { color: var(--sky); text-decoration: none; }
.page-hero__crumb a:hover { color: #fff; text-decoration: underline; }
.page-hero__title { font-size: var(--fs-h1); font-weight: 700; line-height: 1.05; letter-spacing: -0.04em; max-width: 17ch; }
.page-hero__title--post { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); max-width: 22ch; }
.page-hero__lede { margin-top: 1.25rem; max-width: 40rem; font-size: var(--fs-lede); color: var(--on-dark); }
.page-hero .btn { margin-top: 2rem; }
.page-hero .hero__actions .btn { margin-top: 0; }
.post-meta { margin-top: 1.25rem; color: var(--on-dark); }

/* ---------- Services page ---------- */
.model-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.model-card { border: 1px solid var(--line); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; }
.model-card .model-art { background: var(--paper); border-radius: 14px; padding: 8px; margin-bottom: 24px; }
.model-card__q { color: var(--muted); font-size: 0.9375rem; margin-bottom: 4px; }
.model-card > p:not(.model-card__q) { color: var(--muted); margin: 10px 0 18px; }
.model-card .checks { margin-bottom: 24px; }
.model-card .link-strong { margin-top: auto; align-self: flex-start; }

.discipline { display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px 64px; padding-block: 40px; border-top: 1px solid var(--line-strong); }
.discipline:first-child { padding-top: 0; border-top: 0; }
.discipline__summary { color: var(--muted); margin-top: 10px; max-width: 32ch; font-size: 1.125rem; }

/* ---------- Technologies and industries ---------- */
.tech-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 56px 64px; }
.tech-group { border-top: 2px solid var(--ink); padding-top: 20px; }
.pill-list { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.pill-list .pill { padding: 10px 18px; font-size: 1rem; font-weight: 500; background: var(--paper); border-color: transparent; }

.industry-grid { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 48px; }
.industry { padding-block: 28px 36px; border-top: 1px solid var(--line-strong); }
.industry__name { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; margin-bottom: 6px; }
.industry p { color: var(--muted); max-width: 34ch; }

/* ---------- About ---------- */
.split { display: grid; grid-template-columns: 1fr 1.6fr; gap: 32px 64px; }
.prose p { margin-bottom: 1.1em; font-size: 1.125rem; max-width: 40rem; }
.prose h2 { font-size: 1.5rem; font-weight: 650; letter-spacing: -0.02em; margin: 2em 0 0.5em; }
.prose--article p { font-size: 1.1875rem; line-height: 1.72; }
.prose .prose__lead { font-size: 1.375rem; line-height: 1.5; font-weight: 500; letter-spacing: -0.01em; }
.post-cover { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 16 / 8; margin-bottom: 48px; }
.notice { background: #fff8e1; border-left: 4px solid #d99a00; padding: 14px 18px; border-radius: 6px; font-size: 1rem !important; }

/* ---------- Careers ---------- */
.job-list { list-style: none; padding: 0; border-bottom: 1px solid var(--line); }
.job { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; padding-block: 24px; border-top: 1px solid var(--line); }
.job__title { font-size: 1.25rem; font-weight: 650; letter-spacing: -0.015em; }
.job__meta { color: var(--muted); margin-top: 2px; }

/* ---------- Contact form ---------- */
.contact { display: grid; grid-template-columns: minmax(240px, 340px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.contact__aside { position: sticky; top: calc(var(--header-h) + 32px); }
ol.mini-steps { list-style: decimal; padding-left: 1.25rem; margin-top: 16px; color: var(--muted); }
.mini-steps li { margin-bottom: 16px; padding-left: 4px; }
.mini-steps li::marker { color: var(--blue); font-weight: 700; }
.mini-steps strong { display: block; color: var(--text); font-weight: 650; }
.contact__direct { margin-top: 32px; padding: 22px 24px; background: var(--paper); border-radius: var(--radius); display: grid; gap: 4px; }
.contact__direct p { color: var(--muted); font-size: 0.9375rem; }
.contact__direct a { font-weight: 600; text-decoration: none; word-break: break-word; }

.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(24px, 4vw, 44px); box-shadow: 0 1px 2px rgba(8, 26, 54, 0.04); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.form__alert { background: #fdeceb; border-left: 4px solid var(--error); border-radius: 8px; padding: 14px 18px; margin-bottom: 28px; }
.field { margin: 0 0 24px; padding: 0; border: 0; min-width: 0; }
.field > label,
.field legend { display: block; font-weight: 600; font-size: 0.9375rem; margin-bottom: 8px; padding: 0; }
.optional { color: var(--muted); font-weight: 400; }
.field input[type='text'],
.field input[type='email'],
.field input[type='tel'],
.field select,
.field textarea {
  width: 100%; padding: 13px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  background: var(--surface); font-size: 1rem; line-height: 1.4; transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { resize: vertical; min-height: 150px; }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(43, 99, 246, 0.16); }
.field [aria-invalid='true'] { border-color: var(--error); }
.field__error { color: var(--error); font-size: 0.875rem; margin-top: 6px; }

.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.choice { position: relative; display: block; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: block; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 12px;
  font-weight: 500; font-size: 0.96875rem; transition: border-color 0.15s ease, background-color 0.15s ease;
}
.choice:hover span { border-color: var(--blue); }
.choice input:checked + span { border-color: var(--blue); background: var(--blue-wash); color: var(--blue-hover); }
.choice input:focus-visible + span { outline: 3px solid var(--sky-strong); outline-offset: 2px; }
.field > label.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); margin-bottom: 0; }
.check input { width: 20px; height: 20px; margin: 3px 0 0; accent-color: var(--blue); flex-shrink: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-block; }
  .why__reasons--four { grid-template-columns: 1fr 1fr; }
  .steps--four { grid-template-columns: 1fr 1fr; }
  .steps--four .step:nth-child(2)::before { display: none; }
}

@media (max-width: 960px) {
  .service-grid,
  .industry-grid { grid-template-columns: 1fr 1fr; }
  .testimonials__inner,
  .stats,
  .why,
  .split,
  .contact { grid-template-columns: 1fr; }
  .contact__aside { position: static; }
  .models { grid-template-columns: 1fr; }
  .models__tabs { flex-direction: row; overflow-x: auto; border-bottom: 1px solid var(--line); }
  .models__tab { border-left: 0; border-bottom: 3px solid transparent; border-radius: 0; padding: 16px 20px; flex: 1 0 auto; }
  .models__tab[aria-selected='true'] { border-bottom-color: var(--blue); background: none; }
  .models__q { display: none; }
  .models__panel { grid-template-columns: 1fr; }
  .model-list { grid-template-columns: 1fr; max-width: 40rem; }
  .discipline { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr 1fr; }
  .post-grid > :nth-child(3) { display: none; }
  .site-footer__top { grid-template-columns: 1fr; }
  .site-footer__nav { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr; gap: 32px; max-width: 36rem; }
  .step::before { display: none; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__suffix { display: none; }
  .site-header__actions .btn { display: none; }
  .hero__title { max-width: none; }
  .hero::before { background: linear-gradient(180deg, rgba(8, 26, 54, 0.35), rgba(8, 26, 54, 0.8) 75%, var(--ink)); }
  .service-grid,
  .industry-grid,
  .tech-groups,
  .why__reasons,
  .why__reasons--four,
  .steps--four,
  .post-grid,
  .form__row,
  .checks--two { grid-template-columns: 1fr; }
  .post-grid > :nth-child(3) { display: block; }
  .stats__list { gap: 32px 24px; }
  .newsletter { grid-template-columns: 1fr; }
  .stack-foot { flex-direction: column; align-items: flex-start; }
  .pill { padding: 12px 20px; font-size: 1rem; }
  .hero__clients-inner { gap: 16px; }
  .clients { gap: 12px 28px; }
  .clients__item { font-size: 1rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .marquee { -webkit-mask-image: none; mask-image: none; padding-inline: var(--gutter); max-width: var(--container); margin-inline: auto; }
  .marquee__row { width: auto; animation: none !important; }
  .marquee__track { flex-wrap: wrap; }
  .marquee__track[aria-hidden='true'],
  .marquee-toggle { display: none; }
}
