/* ==========================================================================
   Pre-Emptive — Zola theme
   Brand: #111686 (navy) and #2CB0CF (cyan), taken from the Pre-Emptive logo.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  --navy: #111686;
  --navy-deep: #0b0b50;
  --navy-soft: rgba(17, 22, 134, 0.055);
  --cyan: #2cb0cf;
  --cyan-dark: #167b93;
  --cyan-soft: #e8f7fb;
  --cyan-line: rgba(44, 176, 207, 0.34);

  --ink: #141a33;
  --body: #4d566c;
  --muted: #6d7689;
  --line: #e4e8f0;
  --line-strong: #d2d8e5;

  --paper: #ffffff;
  --tint: #f6f8fc;
  --tint-2: #eef2f8;

  --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.035), 0 10px 28px rgba(16, 24, 40, 0.055);
  --shadow-md: 0 24px 60px -18px rgba(16, 24, 60, 0.2);

  --radius: 16px;
  --radius-sm: 10px;
  --container: 1180px;

  --font-body: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-head: "Manrope", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.nav-open {
  overflow: hidden;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(8, 10, 38, 0.46);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

body.nav-open::after {
  opacity: 1;
  visibility: visible;
}

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

img {
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(2.45rem, 4.4vw, 4rem);
}

h2 {
  font-size: clamp(1.85rem, 3vw, 2.65rem);
  line-height: 1.12;
}

h3 {
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

p {
  margin: 0 0 1.2rem;
}

a {
  color: var(--navy);
  text-decoration: none;
}

ul,
ol {
  margin-top: 0;
}

strong {
  color: var(--navy-deep);
}

::selection {
  background: var(--cyan-soft);
  color: var(--navy-deep);
}

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

[id] {
  scroll-margin-top: 112px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 26px;
}

[hidden] {
  display: none !important;
}

.sr-only {
  position: absolute !important;
  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;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 0.65rem 1rem;
  background: var(--navy);
  color: #fff;
  border-radius: 0 0 8px 8px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: top 0.18s ease;
}

.skip-link:focus {
  top: 0;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow__line {
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--cyan);
}

.eyebrow--light {
  color: rgba(255, 255, 255, 0.64);
}

.eyebrow--light .eyebrow__line {
  background: var(--cyan);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 600;
  border-bottom: 1px solid rgba(44, 176, 207, 0.55);
  padding-bottom: 0.16rem;
  transition: color 0.18s ease, border-color 0.18s ease;
}

.text-link svg {
  width: 15px;
  height: 15px;
  transition: transform 0.18s ease;
}

.text-link:hover {
  color: var(--cyan-dark);
  border-color: var(--cyan-dark);
}

.text-link:hover svg {
  transform: translateX(3px);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.82rem 1.35rem;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 0.94rem;
  font-weight: 600;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease,
    transform 0.18s ease, box-shadow 0.18s ease;
}

.btn__icon {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.18s ease;
}

.btn:hover .btn__icon {
  transform: translateX(3px);
}

.btn--primary {
  background: var(--navy);
  color: #fff;
  box-shadow: 0 9px 24px -8px rgba(17, 22, 134, 0.55);
}

.btn--primary:hover {
  background: #0d116b;
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 14px 28px -10px rgba(17, 22, 134, 0.62);
}

.btn--small {
  min-height: 42px;
  padding: 0.68rem 1rem;
  font-size: 0.88rem;
}

.btn--quiet {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--navy);
}

.btn--quiet:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--navy);
}

.btn--accent {
  background: var(--cyan);
  color: var(--navy-deep);
  box-shadow: 0 10px 26px -10px rgba(44, 176, 207, 0.5);
}

.btn--accent:hover {
  background: #49c1dc;
  color: var(--navy-deep);
  transform: translateY(-1px);
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
}

.btn--ghost-light:hover {
  border-color: var(--cyan);
  background: rgba(44, 176, 207, 0.1);
  color: #fff;
}

.btn--block {
  width: 100%;
}

/* ---------- Top bar ---------- */
.topbar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.76rem;
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  min-height: 38px;
}

.topbar__note {
  margin: 0;
  letter-spacing: 0.015em;
}

.topbar__meta {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  white-space: nowrap;
}

.topbar__divider {
  width: 1px;
  height: 13px;
  background: rgba(255, 255, 255, 0.22);
}

.topbar__since {
  color: rgba(255, 255, 255, 0.48);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.status__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 0 4px rgba(44, 176, 207, 0.14);
  flex: none;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 8px 28px -18px rgba(16, 24, 60, 0.42);
}

.header__inner {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  min-height: 78px;
}

.brand {
  display: inline-flex;
  flex: none;
}

.brand img {
  display: block;
  width: auto;
  height: 32px;
}

.nav {
  margin-left: auto;
}

.nav__list {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav__link {
  position: relative;
  display: block;
  padding: 0.55rem 0.72rem;
  border-radius: 7px;
  color: #41495d;
  font-size: 0.9rem;
  font-weight: 600;
  transition: color 0.16s ease, background-color 0.16s ease;
}

.nav__link:hover {
  background: var(--navy-soft);
  color: var(--navy);
}

.nav__link.is-active {
  color: var(--navy);
}

.nav__link.is-active::after {
  content: "";
  position: absolute;
  right: 0.72rem;
  bottom: 0.18rem;
  left: 0.72rem;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
}

.header__actions {
  margin-left: 0.4rem;
}

.nav__mobile-cta,
.nav-toggle {
  display: none;
}

.nav-close {
  display: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 82px 0 98px;
  background: #f7f9fd;
  border-bottom: 1px solid var(--line);
}

.hero__wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(900px 520px at 88% 4%, rgba(44, 176, 207, 0.15), transparent 62%),
    radial-gradient(720px 520px at 2% 100%, rgba(17, 22, 134, 0.07), transparent 62%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  align-items: center;
  gap: 4.5rem;
}

.hero h1 {
  max-width: 15ch;
  margin: 1.15rem 0 1.35rem;
  color: var(--navy-deep);
  font-size: clamp(2.55rem, 4.35vw, 3.95rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.hero__highlight {
  background: linear-gradient(transparent 63%, rgba(44, 176, 207, 0.3) 63%);
  padding: 0 0.06em 0.06em;
}

.hero__lead {
  max-width: 57ch;
  margin: 0;
  color: #4a5368;
  font-size: 1.06rem;
  line-height: 1.72;
}

.hero__lead > :first-child {
  margin-top: 0;
}

.hero__lead > :last-child {
  margin-bottom: 0;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem 1.4rem;
  margin: 2.1rem 0 0;
  padding: 0;
  list-style: none;
  color: #5b6479;
  font-size: 0.84rem;
  font-weight: 500;
}

.hero__proof li {
  display: flex;
  align-items: center;
  gap: 0.42rem;
}

.hero__proof-icon {
  display: inline-flex;
  color: var(--cyan-dark);
}

.hero__proof-icon svg {
  width: 14px;
  height: 14px;
}

/* ---------- Hero blueprint visual ---------- */
.hero__visual {
  position: relative;
  min-width: 0;
}

.blueprint {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border-radius: 22px;
  background: var(--navy);
  box-shadow: 0 34px 80px -26px rgba(17, 22, 134, 0.62);
  color: #fff;
}

.blueprint::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 300px at 78% 10%, rgba(44, 176, 207, 0.24), transparent 66%),
    radial-gradient(340px 280px at 8% 92%, rgba(44, 176, 207, 0.09), transparent 70%);
  pointer-events: none;
}

.blueprint__head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0.4rem 0.9rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.blueprint .status {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

.blueprint__ref {
  color: rgba(255, 255, 255, 0.4);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
}

.blueprint__canvas {
  position: relative;
  height: 328px;
  margin: 8px 0;
}

.blueprint__canvas::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px);
  background-size: 30px 30px;
  -webkit-mask-image: radial-gradient(circle at center, #000 20%, transparent 88%);
  mask-image: radial-gradient(circle at center, #000 20%, transparent 88%);
}

.blueprint__lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.blueprint__lines path {
  fill: none;
  stroke: rgba(44, 176, 207, 0.45);
  stroke-width: 1;
  stroke-dasharray: 5 7;
  animation: blueprint-dash 24s linear infinite;
}

@keyframes blueprint-dash {
  to {
    stroke-dashoffset: -240;
  }
}

.bp-node {
  position: absolute;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.32rem;
  min-width: 82px;
  padding: 0.62rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.075);
  text-align: center;
  transform: translate(-50%, -50%);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}

.bp-node strong {
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.bp-node small {
  color: rgba(255, 255, 255, 0.46);
  font-size: 0.58rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.bp-node__icon {
  display: flex;
  color: var(--cyan);
}

.bp-node__icon svg {
  width: 18px;
  height: 18px;
}

.bp-node--core {
  left: 50%;
  top: 50%;
  gap: 0.26rem;
  padding: 0.88rem 1.1rem;
  border-color: var(--cyan);
  background: var(--cyan);
  box-shadow: 0 0 0 7px rgba(44, 176, 207, 0.13), 0 16px 36px rgba(0, 0, 0, 0.24);
}

.bp-node--core strong {
  color: var(--navy-deep);
}

.bp-node--core small {
  color: rgba(11, 11, 80, 0.62);
}

.bp-node--core .bp-node__icon {
  color: var(--navy-deep);
}

.bp-node--cloud {
  left: 18%;
  top: 20.5%;
}

.bp-node--ci {
  left: 82%;
  top: 22.5%;
}

.bp-node--obs {
  left: 19%;
  top: 80%;
}

.bp-node--sec {
  left: 82%;
  top: 78.5%;
}

.blueprint__foot {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.blueprint__foot div {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
}

.blueprint__foot strong {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 600;
}

.blueprint__foot span {
  color: rgba(255, 255, 255, 0.47);
  font-size: 0.65rem;
}

.float-card {
  position: absolute;
  bottom: -26px;
  left: -24px;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-md);
}

.float-card__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 8px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
}

.float-card__icon svg {
  width: 17px;
  height: 17px;
}

.float-card div {
  display: flex;
  flex-direction: column;
}

.float-card strong {
  color: var(--navy-deep);
  font-size: 0.75rem;
}

.float-card span {
  color: var(--muted);
  font-size: 0.65rem;
}

/* ---------- Logo strip ---------- */
.logo-strip {
  padding: 19px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.logo-strip__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}

.logo-strip__label {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  white-space: nowrap;
}

.logo-strip__items {
  display: flex;
  align-items: center;
  gap: 1.3rem 1.9rem;
  flex-wrap: wrap;
  justify-content: center;
  margin: 0;
  padding: 0;
  list-style: none;
}

.logo-strip__items li {
  color: #8a92a6;
  font-family: var(--font-head);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: -0.015em;
}

/* ---------- Sections ---------- */
.section {
  padding: 104px 0;
}

.section--tint {
  background: var(--tint);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
  align-items: end;
  gap: 4.5rem;
  margin-bottom: 3rem;
}

.section-head__title h2 {
  margin: 0.85rem 0 0;
  max-width: 20ch;
}

.section-head__intro {
  justify-self: end;
  max-width: 52ch;
  margin: 0 0 0.2rem;
  color: #5b6478;
  font-size: 1rem;
  line-height: 1.72;
}

.section-foot {
  margin-top: 2.5rem;
}

/* ---------- Service cards ---------- */
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.service-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem 1.55rem 1.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.service-card:hover {
  border-color: #ccd4e3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 1.35rem;
  border-radius: 12px;
  background: var(--cyan-soft);
  color: var(--navy);
}

.service-card__icon svg {
  width: 22px;
  height: 22px;
}

.service-card h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 1.07rem;
  line-height: 1.32;
}

.service-card h3 a {
  color: inherit;
}

.service-card h3 a:hover {
  color: var(--navy);
}

.service-card p {
  margin: 0;
  color: #5b6478;
  font-size: 0.91rem;
  line-height: 1.65;
}

.service-card__arrow {
  position: absolute;
  right: 1.35rem;
  bottom: 1.35rem;
  display: flex;
  color: var(--cyan-dark);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.service-card__arrow svg {
  width: 18px;
  height: 18px;
}

.service-card:hover .service-card__arrow {
  opacity: 1;
  transform: none;
}

/* ---------- Split / steps ---------- */
.split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 5rem;
}

.split__aside h2 {
  max-width: 15ch;
  margin: 0.85rem 0 1.15rem;
}

.split__aside p {
  max-width: 44ch;
  color: #5b6478;
  font-size: 1rem;
  line-height: 1.72;
}

.split__aside .text-link {
  margin-top: 0.8rem;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  border-left: 1px solid var(--line-strong);
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 1.1rem;
  padding: 0 0 2.1rem 1.6rem;
}

.step:last-child {
  padding-bottom: 0;
}

.step::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border: 2px solid var(--cyan);
  border-radius: 50%;
  background: var(--tint);
}

.step__num {
  padding-top: 0.16rem;
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
}

.step__body h3 {
  margin: 0 0 0.4rem;
  color: var(--navy-deep);
  font-size: 1.03rem;
}

.step__body p {
  margin: 0;
  color: #5b6478;
  font-size: 0.92rem;
  line-height: 1.68;
}

/* ---------- Stats ---------- */
.stats-band {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  background: var(--navy);
  color: #fff;
}

.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(620px 300px at 82% 18%, rgba(44, 176, 207, 0.18), transparent 70%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: auto, 88px 100%;
  pointer-events: none;
}

.stats-band__inner {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-left: 2rem;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.stat:first-child {
  padding-left: 0;
  border-left: 0;
}

.stat strong {
  color: var(--cyan);
  font-family: var(--font-head);
  font-size: clamp(2rem, 3.2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.stat span {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
}

/* ---------- Notes ---------- */
.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.note-card {
  display: flex;
  flex-direction: column;
  padding: 1.45rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.note-card:hover {
  border-color: #ccd4e3;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.note-card__meta {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.note-card__dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
}

.note-card__title {
  margin: 0.8rem 0 0.55rem;
  font-size: 1.06rem;
  line-height: 1.35;
}

.note-card__title a {
  color: var(--navy-deep);
}

.note-card:hover .note-card__title a {
  color: var(--navy);
}

.note-card__summary {
  margin: 0 0 1.2rem;
  color: #5b6478;
  font-size: 0.89rem;
  line-height: 1.62;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.32rem;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.48rem;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: var(--tint);
  color: #5b6478;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.01em;
  transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}

.tag:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
  color: var(--navy);
}

.tag-list--small .tag {
  font-size: 0.6rem;
}

/* ---------- CTA ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  padding: 68px 0;
  background: var(--navy-deep);
  color: #fff;
}

.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(700px 340px at 88% 4%, rgba(44, 176, 207, 0.2), transparent 68%),
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 52px 52px, 52px 52px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent);
  pointer-events: none;
}

.cta-band__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.cta-band__copy h2 {
  max-width: 20ch;
  margin: 0.75rem 0 0.9rem;
  color: #fff;
}

.cta-band__copy p:not(.eyebrow) {
  max-width: 58ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.97rem;
  line-height: 1.7;
}

.cta-band__actions {
  display: flex;
  flex: none;
  flex-direction: column;
  gap: 0.7rem;
}

/* ---------- Footer ---------- */
.site-footer {
  padding: 70px 0 28px;
  border-top: 3px solid var(--cyan);
  background: #0b0b45;
  color: rgba(255, 255, 255, 0.66);
}

.footer__top {
  display: grid;
  grid-template-columns: 1.45fr 0.8fr 0.8fr 1.1fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.footer__logo {
  display: inline-flex;
}

.footer__logo img {
  display: block;
  width: auto;
  height: 27px;
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.footer__strapline {
  max-width: 33ch;
  margin: 1.2rem 0 1.4rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.87rem;
  line-height: 1.68;
}

.footer__social {
  display: flex;
  gap: 0.5rem;
}

.footer__social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.68);
  transition: color 0.16s ease, border-color 0.16s ease, background-color 0.16s ease;
}

.footer__social a:hover {
  border-color: var(--cyan);
  background: rgba(44, 176, 207, 0.08);
  color: var(--cyan);
}

.footer__social svg {
  width: 16px;
  height: 16px;
}

.footer__heading {
  margin: 0 0 1.05rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.footer__links {
  display: flex;
  flex-direction: column;
  gap: 0.58rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__links a {
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.85rem;
}

.footer__links a:hover {
  color: #fff;
}

.footer__col--contact p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.85rem;
  line-height: 1.68;
}

.footer__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding-bottom: 0.18rem;
  border-bottom: 1px solid var(--cyan);
  color: #fff;
  font-size: 0.87rem;
  font-weight: 600;
}

.footer__contact-link:hover {
  color: var(--cyan);
}

.footer__contact-link svg {
  width: 15px;
  height: 15px;
}

.footer__availability {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 1.35rem 0 0 !important;
  color: rgba(255, 255, 255, 0.48) !important;
  font-size: 0.74rem !important;
}

.footer__availability .status__dot {
  width: 6px;
  height: 6px;
  box-shadow: 0 0 0 4px rgba(44, 176, 207, 0.1);
}

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  color: rgba(255, 255, 255, 0.36);
  font-size: 0.71rem;
}

.footer__bottom p {
  margin: 0;
}

.footer__bottom-links {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.footer__bottom-links a {
  color: rgba(255, 255, 255, 0.5);
}

.footer__bottom-links a:hover {
  color: var(--cyan);
}

.footer__built {
  color: rgba(255, 255, 255, 0.23);
}

/* ---------- Interior page heroes ---------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding: 74px 0 62px;
  border-bottom: 1px solid var(--line);
  background: var(--tint);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 420px at 86% 0%, rgba(44, 176, 207, 0.13), transparent 66%),
    radial-gradient(520px 380px at 0% 100%, rgba(17, 22, 134, 0.055), transparent 64%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  max-width: 840px;
}

.page-hero h1 {
  max-width: 19ch;
  margin: 0.9rem 0 1rem;
  color: var(--navy-deep);
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.page-hero__lead {
  max-width: 64ch;
  margin: 0;
  color: #545d72;
  font-size: 1.06rem;
  line-height: 1.72;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.8rem;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.3rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
}

.breadcrumb a {
  color: var(--cyan-dark);
}

.breadcrumb span {
  color: #a3aabb;
}

/* ---------- Prose ---------- */
.prose {
  max-width: 76ch;
  color: #3f475b;
  font-size: 1.01rem;
  line-height: 1.78;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 2.6rem 0 0.9rem;
  color: var(--navy-deep);
  font-size: clamp(1.35rem, 2vw, 1.6rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h3 {
  margin: 2rem 0 0.7rem;
  color: var(--navy-deep);
  font-size: 1.16rem;
  line-height: 1.35;
}

.prose h4 {
  margin: 1.6rem 0 0.6rem;
  color: var(--navy-deep);
  font-size: 1rem;
}

.prose p {
  margin: 0 0 1.25rem;
}

.prose ul,
.prose ol {
  margin: 0 0 1.35rem;
  padding-left: 1.4rem;
}

.prose li {
  margin-bottom: 0.42rem;
}

.prose li > ul,
.prose li > ol {
  margin-top: 0.4rem;
}

.prose a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--cyan-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.prose a:hover {
  color: var(--cyan-dark);
  text-decoration-color: var(--cyan-dark);
}

.prose strong {
  color: var(--navy-deep);
  font-weight: 600;
}

.prose blockquote {
  margin: 1.6rem 0;
  padding: 1rem 1.35rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
  color: #4a5368;
}

.prose blockquote p:last-child {
  margin: 0;
}

.prose code {
  padding: 0.12em 0.36em;
  border: 1px solid #e0e5ee;
  border-radius: 4px;
  background: #eef1f7;
  color: #1a1f5c;
  font-family: var(--font-mono);
  font-size: 0.86em;
}

.prose pre {
  overflow-x: auto;
  margin: 1.5rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: #0e1140;
  color: #e8ecff;
  font-size: 0.84rem;
  line-height: 1.68;
}

.prose pre code {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 1em;
}

.prose img {
  margin: 1.5rem 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

/* Legacy field-note images use align="right" in the original Markdown. */
.prose img[align="right"] {
  float: right;
  max-width: min(400px, 48%);
  margin: 0.4rem 0 1.2rem 1.5rem;
}

@media (max-width: 620px) {
  .prose img[align="right"] {
    float: none;
    display: block;
    max-width: 100%;
    margin: 1.4rem 0;
  }
}

.prose hr {
  margin: 2.5rem 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.prose table {
  width: 100%;
  margin: 1.5rem 0;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.prose th,
.prose td {
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.prose th {
  background: var(--tint);
  color: var(--navy-deep);
  font-family: var(--font-head);
}

.prose iframe,
.prose video {
  max-width: 100%;
  border-radius: 10px;
}

/* ---------- Generic page body ---------- */
.page-body {
  padding: 64px 0 100px;
}

.page-body__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 4rem;
  align-items: start;
}

.page-sidebar {
  position: sticky;
  top: 110px;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.sidebar-card {
  padding: 1.35rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.sidebar-card--tint {
  border-color: #d9e9ef;
  background: var(--tint);
}

.sidebar-card h2,
.sidebar-card h3 {
  margin: 0 0 0.65rem;
  color: var(--navy-deep);
  font-size: 0.96rem;
}

.sidebar-card p {
  margin: 0 0 0.9rem;
  color: #5b6478;
  font-size: 0.86rem;
  line-height: 1.65;
}

.sidebar-card p:last-child {
  margin-bottom: 0;
}

.sidebar-card .btn {
  width: 100%;
}

/* ---------- Docs index ---------- */
.docs-hero .page-hero__inner {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3rem;
  max-width: 100%;
}

.docs-hero__copy {
  max-width: 720px;
}

.docs-hero__count {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: none;
  padding-left: 1.8rem;
  border-left: 1px solid var(--line-strong);
}

.docs-hero__count strong {
  color: var(--navy);
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
}

.docs-hero__count span {
  max-width: 11ch;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  line-height: 1.5;
  text-transform: uppercase;
}

.docs-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.doc-search {
  position: relative;
  flex: 1 1 300px;
  max-width: 420px;
}

.doc-search__icon {
  position: absolute;
  top: 50%;
  left: 0.9rem;
  display: flex;
  color: var(--muted);
  transform: translateY(-50%);
  pointer-events: none;
}

.doc-search__icon svg {
  width: 17px;
  height: 17px;
}

.doc-search input {
  width: 100%;
  height: 44px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.88rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.doc-search input::placeholder {
  color: #929aab;
}

.doc-search input:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 176, 207, 0.16);
}

.topic-filter {
  flex: 1 1 100%;
}

.topic-filter summary {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.topic-filter summary::-webkit-details-marker {
  display: none;
}

.topic-filter summary::after {
  content: "+";
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.topic-filter[open] summary::after {
  content: "−";
}

.topic-filter summary span {
  color: var(--muted);
  font-weight: 400;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.38rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  max-width: 820px;
}

.docs-list {
  padding: 62px 0 100px;
}

.year-group {
  margin-bottom: 3rem;
}

.year-group:last-of-type {
  margin-bottom: 0;
}

.year-heading {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.3rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--line);
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.16em;
}

.year-heading span {
  color: var(--muted);
  font-size: 0.64rem;
  letter-spacing: 0.05em;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.05rem;
}

.docs-empty {
  display: none;
  padding: 3rem 1.5rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  text-align: center;
}

.docs-empty.is-visible {
  display: block;
}

.docs-empty h2 {
  margin-bottom: 0.5rem;
  font-size: 1.25rem;
}

.docs-empty p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- Docs article ---------- */
.doc-header {
  padding: 54px 0 0;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}

.doc-header__inner {
  max-width: 900px;
  padding-bottom: 44px;
}

.doc-header h1 {
  max-width: 22ch;
  margin: 0.8rem 0 0.9rem;
  color: var(--navy-deep);
  font-size: clamp(2rem, 3.6vw, 3.05rem);
  line-height: 1.08;
}

.doc-header__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-header__meta span.dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--cyan);
}

.doc-header__summary {
  max-width: 68ch;
  margin: 0;
  color: #545d72;
  font-size: 1.04rem;
  line-height: 1.7;
}

.doc-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 4.5rem;
  align-items: start;
  padding: 56px 0 100px;
}

.doc-sidebar {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.doc-sidebar .note-card {
  padding: 1.1rem;
}

.doc-sidebar .note-card__title {
  font-size: 0.95rem;
}

.doc-sidebar .note-card__summary {
  display: none;
}

.doc-sidebar .tag-list {
  display: none;
}

.doc-sidebar .note-card__meta {
  font-size: 0.62rem;
}

.doc-nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.doc-nav a {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  transition: border-color 0.16s ease, background-color 0.16s ease;
}

.doc-nav a:hover {
  border-color: var(--cyan);
  background: var(--tint);
}

.doc-nav span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.doc-nav strong {
  color: var(--navy-deep);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.4;
}

.doc-nav a:last-child {
  text-align: right;
}

/* ---------- Contact ---------- */
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
  align-items: start;
  padding: 70px 0 100px;
}

.contact-intro h2 {
  max-width: 16ch;
  margin: 0.8rem 0 1.1rem;
}

.contact-intro > p {
  max-width: 46ch;
  color: #545d72;
  font-size: 1rem;
  line-height: 1.72;
}

.contact-methods {
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.contact-method {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.contact-method__icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 9px;
  background: var(--cyan-soft);
  color: var(--navy);
}

.contact-method__icon svg {
  width: 18px;
  height: 18px;
}

.contact-method h3 {
  margin: 0 0 0.18rem;
  font-size: 0.94rem;
}

.contact-method p {
  margin: 0;
  color: #5b6478;
  font-size: 0.86rem;
  line-height: 1.55;
}

.contact-method a {
  color: var(--navy);
  font-weight: 600;
}

.contact-method a:hover {
  color: var(--cyan-dark);
}

.contact-form-card {
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.contact-form-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.35rem;
}

.contact-form-card > p {
  margin: 0 0 1.6rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.38rem;
  margin-bottom: 1rem;
}

.field label {
  color: var(--navy-deep);
  font-size: 0.8rem;
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.72rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--cyan);
  outline: none;
  box-shadow: 0 0 0 3px rgba(44, 176, 207, 0.16);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.form-note {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.55;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-aside {
  margin-top: 2rem;
  padding: 1.2rem 1.3rem;
  border: 1px solid #d9e9ef;
  border-radius: 12px;
  background: var(--tint);
}

.contact-aside p {
  margin: 0;
  color: #4f586d;
  font-size: 0.84rem;
  line-height: 1.6;
}

/* ---------- About ---------- */
.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 5rem;
  align-items: start;
  padding: 66px 0 100px;
}

.about-layout .prose {
  max-width: 68ch;
}

.fact-panel {
  position: sticky;
  top: 110px;
  padding: 1.7rem;
  border-radius: var(--radius);
  background: var(--navy);
  box-shadow: 0 26px 60px -24px rgba(17, 22, 134, 0.52);
  color: rgba(255, 255, 255, 0.7);
}

.fact-panel__label {
  margin: 0 0 1.1rem;
  color: var(--cyan);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.fact-panel dl {
  margin: 0;
}

.fact-panel dt {
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fact-panel dt:first-child {
  margin-top: 0;
}

.fact-panel dd {
  margin: 0.18rem 0 0;
  color: #fff;
  font-size: 0.88rem;
  line-height: 1.5;
}

.fact-panel .text-link {
  margin-top: 1.4rem;
  border-color: var(--cyan);
  color: #fff;
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.value-card {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.value-card__num {
  display: block;
  margin-bottom: 1rem;
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
}

.value-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.02rem;
}

.value-card p {
  margin: 0;
  color: #5b6478;
  font-size: 0.89rem;
  line-height: 1.65;
}

/* ---------- Services detail ---------- */
.services-list {
  padding: 10px 0 0;
}

.service-detail {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 4.5rem;
  padding: 3.8rem 0;
  border-top: 1px solid var(--line);
}

.service-detail:first-child {
  border-top: 0;
}

.service-detail__aside .service-card__icon {
  margin-bottom: 1.2rem;
}

.service-detail__aside h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.service-detail__aside p {
  margin: 0;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  line-height: 1.6;
  text-transform: uppercase;
}

.service-detail__body > p {
  max-width: 65ch;
  color: #4d566c;
  font-size: 1rem;
  line-height: 1.72;
}

.service-detail__summary {
  color: var(--navy-deep) !important;
  font-family: var(--font-head);
  font-size: 1.13rem !important;
  font-weight: 600;
  line-height: 1.5 !important;
  letter-spacing: -0.015em;
}

.deliverables {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem 1.5rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
}

.deliverables li {
  position: relative;
  padding-left: 1.35rem;
  color: #4d566c;
  font-size: 0.88rem;
  line-height: 1.55;
}

.deliverables li::before {
  content: "";
  position: absolute;
  top: 0.38rem;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--cyan);
}

.fit-note {
  margin: 1.7rem 0 0;
  padding: 0.95rem 1.15rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  background: var(--tint);
  color: #4d566c;
  font-size: 0.87rem;
  line-height: 1.6;
}

.fit-note strong {
  color: var(--navy-deep);
}

.engagement-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.engagement-card {
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.engagement-card__tag {
  display: inline-block;
  margin-bottom: 0.9rem;
  padding: 0.22rem 0.55rem;
  border-radius: 4px;
  background: var(--cyan-soft);
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.engagement-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.03rem;
}

.engagement-card p {
  margin: 0;
  color: #5b6478;
  font-size: 0.89rem;
  line-height: 1.65;
}

/* ---------- Taxonomy ---------- */
.taxonomy-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.taxonomy-list a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 500;
}

.taxonomy-list a:hover {
  border-color: var(--cyan);
  background: var(--cyan-soft);
}

.taxonomy-list span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.66rem;
}

/* ---------- 404 ---------- */
.error-page {
  display: grid;
  place-items: center;
  min-height: 62vh;
  padding: 90px 0;
  text-align: center;
}

.error-page__inner {
  max-width: 620px;
}

.error-code {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--cyan-dark);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.error-page h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.4rem, 5vw, 3.8rem);
}

.error-page p {
  max-width: 46ch;
  margin: 0 auto 1.8rem;
  color: #5b6478;
  font-size: 1rem;
  line-height: 1.7;
}

.error-page__actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.8rem;
}

/* ---------- Utility ---------- */
.muted {
  color: var(--muted);
  font-weight: 400;
}

/* Giallo syntax-highlighting line wrappers */
.giallo-l {
  display: inline-block;
  min-height: 1lh;
  width: 100%;
}

.giallo-ln {
  display: inline-block;
  min-width: 3ch;
  margin-right: 0.4em;
  padding: 0.4em;
  opacity: 0.8;
  text-align: right;
  user-select: none;
}

.mt-0 {
  margin-top: 0 !important;
}

.mb-0 {
  margin-bottom: 0 !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {
  .hero__inner {
    gap: 3rem;
  }

  .hero h1 {
    font-size: clamp(2.4rem, 4.5vw, 3.5rem);
  }

  .blueprint__canvas {
    height: 300px;
  }

  .section-head,
  .split {
    gap: 3rem;
  }

  .footer__top {
    gap: 2rem;
  }
}

@media (max-width: 980px) {
  .topbar__note {
    display: none;
  }

  .topbar__inner {
    justify-content: flex-end;
  }

  .hero {
    padding: 64px 0 82px;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3.2rem;
  }

  .hero__copy {
    max-width: 720px;
  }

  .hero h1 {
    max-width: 17ch;
  }

  .hero__visual {
    max-width: 520px;
    margin: 0 auto;
    width: 100%;
  }

  .section {
    padding: 84px 0;
  }

  .section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.2rem;
    margin-bottom: 2.4rem;
  }

  .section-head__intro {
    justify-self: start;
    max-width: 62ch;
  }

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

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
  }

  .split__aside h2,
  .split__aside p {
    max-width: 62ch;
  }

  .stats-band__inner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 0;
  }

  .stat:nth-child(3) {
    padding-left: 0;
    border-left: 0;
  }

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

  .notes-grid > :last-child {
    grid-column: span 2;
  }

  .footer__top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.4rem;
  }

  .page-body__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .page-sidebar {
    position: static;
    max-width: 560px;
  }

  .doc-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .doc-sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-sidebar .sidebar-card:first-child {
    grid-column: span 2;
  }

  .contact-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.8rem;
  }

  .contact-intro {
    max-width: 680px;
  }

  .about-layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .fact-panel {
    position: static;
    max-width: 520px;
  }

  .service-detail {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
    padding: 3rem 0;
  }

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

  .docs-hero .page-hero__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.5rem;
  }

  .docs-hero__count {
    flex-direction: row;
    align-items: baseline;
    gap: 0.6rem;
    padding-left: 0;
    border-left: 0;
  }

  .docs-hero__count span {
    max-width: none;
  }

  .docs-hero__copy {
    max-width: 100%;
  }
}

@media (max-width: 900px) {
  /* A backdrop-filter on the sticky header creates a containing block for the
     fixed-position mobile drawer in Firefox, which collapses it to header height.
     Keep the header opaque here and lift it above the page scrim instead. */
  .site-header {
    z-index: 90;
    background: #fff;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .header__inner {
    min-height: 70px;
  }

  .brand img {
    height: 28px;
  }

  .header__actions {
    display: none;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-left: auto;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-toggle svg {
    width: 20px;
    height: 20px;
  }

  .nav-toggle__close {
    display: none;
  }

  body.nav-open .nav-toggle__open {
    display: none;
  }

  body.nav-open .nav-toggle__close {
    display: inline-flex;
  }

  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 80;
    display: flex;
    flex-direction: column;
    width: min(350px, calc(100vw - 36px));
    margin: 0;
    padding: 92px 24px 30px;
    overflow-y: auto;
    background: #fff;
    box-shadow: -20px 0 60px rgba(8, 10, 38, 0.2);
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.28s ease, visibility 0.28s ease;
  }

  body.nav-open .nav {
    transform: none;
    visibility: visible;
  }

  .nav-close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #fff;
    color: var(--navy);
    cursor: pointer;
  }

  .nav-close svg {
    width: 18px;
    height: 18px;
  }

  .nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0.2rem;
  }

  .nav__link {
    padding: 0.8rem 0.6rem;
    font-size: 1rem;
  }

  .nav__link.is-active::after {
    right: auto;
    bottom: 0.55rem;
    left: 0.6rem;
    width: 22px;
  }

  .nav__mobile-cta {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    margin-top: auto;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
  }

  .nav__mobile-social {
    display: flex;
    gap: 0.6rem;
  }

  .nav__mobile-social a {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
  }

  .nav__mobile-social a:hover {
    border-color: var(--cyan);
    background: var(--cyan-soft);
  }

  .nav__mobile-social svg {
    width: 17px;
    height: 17px;
  }
}

@media (max-width: 760px) {
  .topbar__divider {
    display: none;
  }

  /* When availability is shown, keep the compact top bar to one item. */
  .topbar__meta:has(.status) .topbar__since {
    display: none;
  }

  .topbar__inner {
    min-height: 34px;
  }

  .topbar {
    font-size: 0.7rem;
  }

  h1 {
    font-size: clamp(2.15rem, 8vw, 3rem);
  }

  p {
    font-size: 0.97rem;
  }

  .hero {
    padding: 54px 0 72px;
  }

  .hero__lead {
    font-size: 1rem;
  }

  .hero__actions .btn {
    flex: 1 1 auto;
  }

  .hero__proof {
    gap: 0.7rem 1rem;
    font-size: 0.79rem;
  }

  .blueprint__canvas {
    height: 276px;
  }

  .bp-node {
    min-width: 68px;
    padding: 0.52rem 0.65rem;
  }

  .bp-node strong {
    font-size: 0.68rem;
  }

  .bp-node__icon svg {
    width: 16px;
    height: 16px;
  }

  .bp-node--cloud {
    left: 19%;
  }

  .bp-node--ci {
    left: 81%;
  }

  .bp-node--obs {
    left: 20%;
  }

  .bp-node--sec {
    left: 81%;
  }

  .float-card {
    bottom: -22px;
    left: 12px;
  }

  .logo-strip__inner {
    gap: 0.9rem;
  }

  .logo-strip__items {
    gap: 0.75rem 1.2rem;
  }

  .logo-strip__items li {
    font-size: 0.78rem;
  }

  .section {
    padding: 68px 0;
  }

  .service-grid,
  .notes-grid,
  .docs-grid,
  .engagement-grid,
  .values-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .notes-grid > :last-child {
    grid-column: auto;
  }

  .stats-band {
    padding: 44px 0;
  }

  .stats-band__inner {
    gap: 1.8rem 0;
  }

  .stat {
    padding-left: 1.2rem;
  }

  .stat strong {
    font-size: 2.1rem;
  }

  .stat span {
    font-size: 0.74rem;
  }

  .cta-band {
    padding: 56px 0;
  }

  .cta-band__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 2rem;
  }

  .cta-band__actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-band__actions .btn {
    flex: 1 1 auto;
  }

  .footer__top {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
  }

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

  .page-hero {
    padding: 56px 0 48px;
  }

  .page-hero h1 {
    font-size: clamp(2rem, 8vw, 2.75rem);
  }

  .page-body,
  .docs-list {
    padding: 52px 0 76px;
  }

  .doc-header {
    padding-top: 42px;
  }

  .doc-header h1 {
    font-size: clamp(1.85rem, 7vw, 2.5rem);
  }

  .doc-nav {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-nav a:last-child {
    text-align: left;
  }

  .doc-sidebar {
    grid-template-columns: minmax(0, 1fr);
  }

  .doc-sidebar .sidebar-card:first-child {
    grid-column: auto;
  }

  .contact-form-card {
    padding: 1.4rem;
  }

  .contact-layout,
  .about-layout {
    padding: 52px 0 76px;
  }

  .form-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .deliverables {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer__bottom-links {
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 0 18px;
  }

  .brand img {
    height: 25px;
  }

  .topbar__meta {
    font-size: 0.66rem;
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
  }

  .hero__proof {
    flex-direction: column;
    gap: 0.5rem;
  }

  .blueprint {
    padding: 12px;
    border-radius: 18px;
  }

  .blueprint__canvas {
    height: 246px;
  }

  .bp-node {
    min-width: 60px;
    padding: 0.45rem 0.55rem;
  }

  .bp-node small {
    display: none;
  }

  .bp-node--core {
    padding: 0.7rem 0.8rem;
  }

  .blueprint__foot strong {
    font-size: 0.65rem;
  }

  .blueprint__foot span {
    font-size: 0.58rem;
  }

  .float-card {
    display: none;
  }

  .stat {
    padding-left: 1rem;
  }

  .stat strong {
    font-size: 1.8rem;
  }

  .cta-band__actions {
    flex-direction: column;
  }

  .cta-band__actions .btn {
    width: 100%;
  }

  .doc-search {
    max-width: 100%;
  }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
