/* ═══════════════════════════════════════════════════════════════════════
   CLOUDPIRE — Lean design system
   Minimal, editorial, image-free (except real technical diagrams).
   ═══════════════════════════════════════════════════════════════════════ */

:root {
  --ink: #0a0a0a;
  --paper: #ffffff;
  --gray-900: #111111;
  --gray-600: #5b5b60;
  --gray-400: #6b6b70;
  --gray-300: #d8d8da;
  --gray-200: #e6e6e8;
  --gray-100: #f3f3f4;
  --line-ui: #8c8c90;
  --accent: #2a52e0;
  --accent-dim: rgba(42, 82, 224, 0.08);
  --serif: "Instrument Serif", serif;
  --head: "Plus Jakarta Sans", sans-serif;
  --body: "Inter", sans-serif;
  --max: 1240px;
  --r: 2px;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a {
  color: inherit;
  text-decoration: none;
}
ul,
ol {
  margin: 0;
  padding: 0;
}
button {
  font: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  color: inherit;
}
.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 2rem;
}
img,
svg {
  display: block;
  max-width: 100%;
}
.skip {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 9999;
}
.skip:focus {
  top: 0;
}

/* ── Header / nav ──────────────────────────────────────────────────── */
header.site {
  position: sticky;
  top: 0;
  z-index: 60;
  background: #ffffff;
  border-bottom: 1px solid var(--gray-200);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo {
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}
.logo span {
  color: var(--accent);
}
nav.primary {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}
nav.primary > a {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--gray-600);
  transition: color 0.15s;
}
nav.primary > a:hover {
  color: var(--ink);
}
nav.primary a.cta {
  color: var(--ink);
  font-weight: 700;
}
nav.primary a.cta::after {
  content: "→";
  margin-left: 0.35rem;
  display: inline-block;
  transition: transform 0.15s;
}
nav.primary a.cta:hover::after {
  transform: translateX(3px);
}

.has-drop {
  position: relative;
}
.has-drop > button {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-600);
}
.has-drop > button::after {
  content: "";
  width: 6px;
  height: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
  transition: transform 0.15s;
}
.has-drop:hover > button {
  color: var(--ink);
}
.has-drop:hover > button::after {
  transform: rotate(225deg);
  margin-top: 3px;
}
.drop-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  border: 1px solid var(--gray-200);
  min-width: 280px;
  padding: 0.5rem;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(4px);
  transition:
    opacity 0.15s,
    transform 0.15s,
    visibility 0.15s;
}
.has-drop:hover .drop-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.drop-panel a {
  display: block;
  padding: 0.65rem 0.85rem;
  font-size: 0.85rem;
  font-weight: 600;
  border-radius: 2px;
}
.nav-group-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding: 0.6rem 0.85rem 0;
}
.nav-view-all {
  display: block;
  color: var(--accent);
  margin-top: 0.25rem;
  border-top: 1px solid var(--gray-200);
  padding-top: 0.75rem;
}
.drop-panel a:hover {
  background: var(--gray-100);
}

.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin: 0 -11px 0 0;
}
.burger span {
  width: 22px;
  display: block;
  height: 2px;
  background: var(--ink);
  transition:
    transform 0.25s ease,
    opacity 0.2s ease;
}
.burger.is-open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.burger.is-open span:nth-child(2) {
  opacity: 0;
}
.burger.is-open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
#navMobile {
  display: none;
}

/* ── Buttons / links ───────────────────────────────────────────────── */
.btn-solid {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--ink);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--r);
  transition: background 0.15s;
}
.btn-solid:hover {
  background: var(--accent);
}
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  border-bottom: 1px solid var(--gray-300);
  padding-bottom: 2px;
  width: max-content;
}
.link-arrow::after {
  content: "→";
  transition: transform 0.15s;
}
.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ── Labels / type ─────────────────────────────────────────────────── */
.eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray-600);
}
.eyebrow.accent {
  color: var(--accent);
}
h1,
h2,
h3 {
  font-family: var(--head);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
}
.h2 {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  margin-bottom: 0.5rem;
}
.subhead {
  color: var(--gray-600);
  max-width: 60ch;
}

/* ── Section rhythm ────────────────────────────────────────────────── */
.section {
  padding: 6rem 0;
}
.section.tight {
  padding: 3rem 0;
}
.hr {
  border: 0;
  border-top: 1px solid var(--gray-200);
  margin: 0;
}
.grid-label-body {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── Proof / stat strip ────────────────────────────────────────────── */
.proof {
  display: grid;
}
.proof[data-cols="3"] {
  grid-template-columns: repeat(3, 1fr);
}
.proof[data-cols="4"] {
  grid-template-columns: repeat(4, 1fr);
}
.proof__item {
  padding: 0 2rem;
  border-left: 1px solid var(--gray-200);
}
.proof__item:first-child {
  border-left: none;
  padding-left: 0;
}
.proof__num {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
  display: block;
  margin-bottom: 0.4rem;
}
.proof__label {
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}

/* ── Pillar / listing rows (homepage, hub pages) ──────────────────── */
.pillars {
  display: flex;
  flex-direction: column;
}
.pillar-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
}
.pillars .pillar-row:last-child {
  border-bottom: 1px solid var(--gray-200);
}
.pillar-row__name {
  font-family: var(--head);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.35rem;
}
.pillar-row__desc {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.6;
  max-width: 56ch;
}
.pillar-row__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}

/* ── Service hero ──────────────────────────────────────────────────── */
.svc-hero {
  padding: 3.5rem 0 3rem;
}
.svc-hero__crumb {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.svc-hero__crumb a:hover {
  color: var(--ink);
}
.svc-hero h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.2rem);
  margin: 0.75rem 0 1rem;
}
.svc-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 56ch;
  line-height: 1.65;
}

/* ── Numbered feature list ────────────────────────────────────────── */
.feature-list {
  display: flex;
  flex-direction: column;
}
.feature-item {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 2rem;
  padding: 2.25rem 0;
  border-top: 1px solid var(--gray-200);
}
.feature-list .feature-item:last-child {
  border-bottom: 1px solid var(--gray-200);
}
.feature-item__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.1rem;
  color: var(--gray-400);
  line-height: 1;
}
.feature-item h3 {
  font-size: 1.15rem;
  letter-spacing: -0.015em;
  margin: 0 0 0.5rem;
}
.feature-item p {
  color: var(--gray-600);
  font-size: 0.94rem;
  line-height: 1.7;
  max-width: 62ch;
  margin: 0;
}

/* ── FAQ (native details/summary, no JS) ──────────────────────────── */
.faq-list {
  border-top: 1px solid var(--gray-200);
}
.faq-item {
  border-bottom: 1px solid var(--gray-200);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 1.4rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-weight: 600;
  font-size: 0.98rem;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--gray-400);
  font-weight: 400;
  flex-shrink: 0;
}
.faq-item[open] summary::after {
  content: "–";
}
.faq-item p {
  color: var(--gray-600);
  font-size: 0.94rem;
  line-height: 1.75;
  max-width: 64ch;
  padding-bottom: 1.4rem;
  margin: 0;
}

/* ── Diagrams / technical figures (real content, not decoration) ──── */
/* Use .diagram for anything explaining architecture, flow, or process:
   real screenshots, exported architecture diagrams, or inline SVG line
   diagrams drawn in the same restrained palette as the rest of the site. */
figure.diagram {
  margin: 2.5rem 0;
  padding: 2rem;
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--r);
}
.intro-p {
  color: var(--gray-600);
  max-width: 62ch;
  margin-bottom: 1rem;
}
figure.diagram img,
figure.diagram svg {
  width: 100%;
  height: auto;
  margin: 0 auto;
}
figure.diagram figcaption {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: var(--gray-600);
  text-align: center;
}
figure.diagram figcaption .cap-label {
  font-weight: 700;
  color: var(--ink);
  margin-right: 0.4rem;
}
/* Diagram line-art tokens, for inline SVGs drawn to match the site */
.dg-box {
  fill: #fff;
  stroke: var(--ink);
  stroke-width: 1.25;
}
.dg-box-accent {
  fill: var(--accent-dim);
  stroke: var(--accent);
  stroke-width: 1.25;
}
.dg-line {
  stroke: var(--gray-400);
  stroke-width: 1.25;
  fill: none;
}
.dg-text {
  font-family: "Inter", sans-serif;
  font-size: 12px;
  fill: var(--ink);
}
.dg-text-dim {
  font-family: "Inter", sans-serif;
  font-size: 11px;
  fill: var(--gray-600);
}

/* ── Code blocks (technical articles) ─────────────────────────────── */
pre.code {
  background: var(--ink);
  color: #e8e8ea;
  padding: 1.25rem 1.5rem;
  border-radius: var(--r);
  overflow-x: auto;
  font-size: 0.85rem;
  line-height: 1.6;
  margin: 2rem 0;
}
pre.code code {
  font-family: "SF Mono", Consolas, monospace;
}

/* ── Article template ──────────────────────────────────────────────── */
.masthead {
  padding: 4rem 0 3rem;
}
.masthead h1 {
  font-size: clamp(2.1rem, 4.2vw, 3.1rem);
  line-height: 1.12;
  max-width: 22ch;
  margin: 1rem 0;
}
.layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 5rem;
  padding: 1rem 0 5rem;
  align-items: start;
}
.col-main {
  max-width: 700px;
}
.col-main .lede {
  font-size: 1.2rem;
  line-height: 1.65;
  color: var(--gray-900);
  margin-bottom: 2rem;
  font-weight: 500;
}
.col-main p {
  font-size: 1rem;
  line-height: 1.85;
  color: #222;
  margin-bottom: 1.4rem;
}
.col-main h2 {
  font-size: 1.4rem;
  letter-spacing: -0.015em;
  margin: 3rem 0 1rem;
}
.col-main ul,
.col-main ol {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}
.col-main li {
  margin-bottom: 0.6rem;
  line-height: 1.75;
  color: #222;
}
.callout {
  border-left: 2px solid var(--accent);
  padding: 0.25rem 0 0.25rem 1.5rem;
  margin: 2.5rem 0;
}
.callout__head {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 0.4rem;
}
.callout p {
  color: var(--gray-600);
  font-size: 0.95rem;
  margin: 0;
}
.pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  line-height: 1.45;
  border-left: 2px solid var(--ink);
  padding-left: 1.75rem;
  margin: 3rem 0;
}
.col-side {
  position: sticky;
  top: 100px;
}
.side-block {
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.side-block:last-child {
  border-bottom: none;
}
.side-block__title {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  margin-bottom: 1rem;
}
.toc a {
  display: block;
  font-size: 0.87rem;
  color: var(--gray-600);
  padding: 0.4rem 0;
  border-left: 2px solid transparent;
  padding-left: 0.75rem;
  margin-left: -0.77rem;
}
.toc a:hover {
  color: var(--ink);
  border-left-color: var(--accent);
}
.related a {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}
.related span {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  margin-bottom: 0.25rem;
}

/* ── Insight / listing cards (knowledge hub) ──────────────────────── */
.insight-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 2rem;
  align-items: baseline;
  padding: 1.75rem 0;
  border-top: 1px solid var(--gray-200);
  text-decoration: none;
  color: inherit;
}
.insight-list .insight-row:last-child {
  border-bottom: 1px solid var(--gray-200);
}
.insight-row__tag {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
}
.insight-row__title {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  max-width: 56ch;
}
.insight-row__excerpt {
  color: var(--gray-600);
  font-size: 0.9rem;
  margin-top: 0.35rem;
  max-width: 56ch;
}

/* ── Technologies (about page) ─────────────────────────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.tech-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.5rem;
  border: 1px solid var(--gray-200);
}
.tech-item__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: var(--gray-600);
}
.tech-item__mark svg {
  width: 28px;
  height: 28px;
}
.tech-item__mark--wordmark {
  width: auto;
  height: auto;
  font-family: var(--head);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tech-item__name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.6;
}
.tech-item__role {
  font-weight: 400;
  color: var(--gray-400);
  font-size: 0.78rem;
}

/* ── Team (about page) ─────────────────────────────────────────────── */
.team-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  padding: 2rem 0;
  border-top: 1px solid var(--gray-200);
}
.team-list .team-row:last-child {
  border-bottom: 1px solid var(--gray-200);
}
.team-row__role {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.team-row__name {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 0.6rem;
}
.team-row__bio {
  color: var(--gray-600);
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ── Forms ─────────────────────────────────────────────────────────── */
.form-tabs {
  display: flex;
  gap: 1.75rem;
  border-bottom: 1px solid var(--gray-200);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}
.form-tab {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-400);
  padding-bottom: 1rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.form-tab.is-active {
  color: var(--ink);
  border-bottom-color: var(--ink);
}
.f-group {
  margin-bottom: 1.5rem;
}
.f-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}
.f-input,
.f-select,
.f-textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line-ui);
  padding: 0.6rem 0;
  font-family: var(--body);
  font-size: 1rem;
  background: transparent;
  border-radius: 0;
}
.f-textarea {
  resize: vertical;
  min-height: 110px;
}
.f-input:focus,
.f-select:focus,
.f-textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-bottom-color: var(--ink);
}
.f-consent {
  font-size: 0.82rem;
  color: var(--gray-600);
  line-height: 1.6;
  margin: 1.5rem 0;
}
.f-consent a {
  text-decoration: underline;
}
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
.form-status {
  display: none;
  padding: 1rem 0;
  font-size: 0.9rem;
  border-top: 1px solid var(--gray-200);
  margin-bottom: 1.5rem;
}
.form-status.is-visible {
  display: block;
}
.contact-sidebar {
  border-top: 1px solid var(--gray-200);
  padding-top: 2rem;
}
.contact-sidebar .side-block:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── Back to top ───────────────────────────────────────────────────── */
.back-to-top {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 70;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--gray-200);
  color: var(--gray-600);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    visibility 0.2s,
    border-color 0.15s,
    color 0.15s;
}
.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.back-to-top:hover {
  color: var(--ink);
  border-color: var(--ink);
}
@media (max-width: 720px) {
  .back-to-top {
    right: 1rem;
    bottom: 1rem;
    width: 40px;
    height: 40px;
  }
}

/* ── Footer ────────────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--gray-200);
  padding: 3.5rem 0;
  margin-top: 2rem;
}
.footer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--gray-200);
}
.footer__social {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__social a {
  color: var(--gray-600);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--gray-200);
  flex-shrink: 0;
}
.footer__social a:hover {
  color: var(--ink);
  border-color: var(--ink);
}
.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}
footer.site .legal {
  font-size: 0.8rem;
  color: var(--gray-400);
}
footer.site nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}
footer.site nav a {
  font-size: 0.8rem;
  color: var(--gray-600);
}
footer.site nav a:hover {
  color: var(--ink);
}

/* ── CTA (final, every page) ───────────────────────────────────────── */
.cta-final {
  text-align: center;
  padding: 6rem 0;
  border-top: 1px solid var(--gray-200);
}
.cta-final h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 0.75rem;
}
.cta-final p {
  color: var(--gray-600);
  margin-bottom: 1.75rem;
}

/* ── Hero (homepage) ───────────────────────────────────────────────── */
.hero {
  padding: 5.5rem 0 5rem;
}
.hero h1 {
  font-size: clamp(2.6rem, 5.6vw, 4.4rem);
  line-height: 1.05;
  margin: 1.25rem 0 1.5rem;
  max-width: 15ch;
}
.hero p {
  font-size: 1.1rem;
  color: var(--gray-600);
  max-width: 44ch;
  line-height: 1.65;
  margin-bottom: 2.25rem;
}
.hero__actions {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

/* ── Generic page hero (static pages) ──────────────────────────────── */
.page-hero {
  padding: 4rem 0 3rem;
}
.page-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  margin: 0.75rem 0 1rem;
}
.page-hero p {
  font-size: 1.05rem;
  color: var(--gray-600);
  max-width: 56ch;
}

/* ── 404 ───────────────────────────────────────────────────────────── */
.notfound {
  text-align: center;
  padding: 8rem 0;
}
.notfound .code {
  font-family: var(--head);
  font-weight: 800;
  font-size: 5rem;
  letter-spacing: -0.03em;
  color: var(--gray-200);
  line-height: 1;
}
.notfound h1 {
  font-size: 1.6rem;
  margin: 1rem 0;
}
.notfound p {
  color: var(--gray-600);
  margin-bottom: 2rem;
}

/* ── Legal / plain prose pages ─────────────────────────────────────── */
.prose {
  max-width: 720px;
}
.prose h2 {
  font-size: 1.25rem;
  margin: 2.5rem 0 0.85rem;
}
.prose p,
.prose li {
  color: #222;
  font-size: 0.96rem;
  line-height: 1.8;
  margin-bottom: 1rem;
}
.prose ul {
  padding-left: 1.2rem;
}

/* ═══════════════════════════════════════════════════════════════════
   Responsive
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .grid-label-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .tech-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .proof[data-cols="4"] {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 2rem;
  }
  .proof[data-cols="3"] {
    grid-template-columns: 1fr;
    row-gap: 1.5rem;
  }
  .proof__item {
    border-left: none;
    padding-left: 0;
  }
  .proof[data-cols="4"] .proof__item:nth-child(2n + 1) {
    border-left: none;
    padding-left: 0;
  }
  .pillar-row,
  .insight-row,
  .team-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .feature-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .layout {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .col-side {
    position: static;
    border-top: 1px solid var(--gray-200);
    padding-top: 2rem;
    margin-top: 1rem;
  }
  figure.diagram {
    padding: 1.25rem;
  }
}
@media (max-width: 720px) {
  nav.primary {
    display: none;
  }
  .burger {
    display: flex;
  }
  .tech-grid {
    grid-template-columns: 1fr;
  }
  .hero__actions {
    flex-direction: column;
    align-items: stretch;
  }
  .hero__actions .btn-solid {
    justify-content: center;
  }

  .wrap {
    padding: 0 1.25rem;
  }
  .hero {
    padding: 2.75rem 0 2.25rem;
  }
  .section {
    padding: 3rem 0;
  }
  .section.tight {
    padding: 1.75rem 0;
  }
  .svc-hero {
    padding: 2rem 0 1.75rem;
  }
  .page-hero {
    padding: 2rem 0 1.75rem;
  }
  .masthead {
    padding: 2.25rem 0 1.75rem;
  }
  .cta-final {
    padding: 3.5rem 0;
  }
  .notfound {
    padding: 4.5rem 0;
  }
  footer.site {
    padding: 2.25rem 0;
  }
  .footer__top {
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
    text-align: center;
  }
  .footer__bottom {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }
  footer.site nav {
    justify-content: center;
  }
}
#navMobile.open {
  display: block;
  position: fixed;
  inset: 72px 0 0 0;
  background: #fff;
  z-index: 55;
  overflow-y: auto;
  padding: 1.5rem 2rem 3rem;
}
#navMobile a {
  display: block;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--gray-200);
  font-weight: 600;
}
#navMobile .mob-section-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-400);
  padding-top: 1.5rem;
}
