/* ============================================================
   DIAGPRO — design system
   Dark / industrial / engineering. CSS variables drive everything
   so blocks map cleanly onto a WordPress + SCF theme later.
   ============================================================ */

/* ---- TOKENS ---- */
:root {
  /* surfaces (deep graphite → raised) */
  --bg-0: #0E0F12;
  --bg-1: #15171C;
  --bg-2: #1B1E24;
  --surface: #20242C;
  --surface-2: #272C35;

  /* hairlines */
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.16);

  /* accent (industrial orange / amber) — overridable via Tweaks */
  --accent: #FF7A00;
  --accent-2: #FFB300;
  --accent-ink: #0E0F12;            /* text on accent fills */
  --accent-glow: color-mix(in srgb, var(--accent) 40%, transparent);

  /* text */
  --white: #FFFFFF;
  --text: #E6E8EC;
  --text-dim: #8A909A;
  --text-faint: #5C626C;

  /* type families */
  --font-display: 'Oswald', sans-serif;        /* big industrial headings */
  --font-body: 'Manrope', sans-serif;          /* readable Cyrillic body */
  --font-tech: 'Space Grotesk', 'Manrope', monospace; /* codes / counters / labels (Latin) */

  /* geometry — angular, not soft */
  --radius: 3px;
  --radius-lg: 4px;
  --container: 1280px;
  --gutter: 32px;

  /* rhythm */
  --section-pad: 112px;
  --card-pad: 28px;

  --ease: cubic-bezier(.2,.7,.2,1);
}

[data-density="compact"] {
  --section-pad: 72px;
  --card-pad: 20px;
  --gutter: 24px;
}

/* ---- RESET / BASE ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg-0);
  color: var(--text);
  line-height: 1.6;
  font-size: 17px;
  letter-spacing: 0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { list-style: none; padding: 0; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---- LAYOUT ---- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.section { padding-block: var(--section-pad); position: relative; }
.section--alt { background: var(--bg-1); }
.section--line { border-top: 1px solid var(--line); }

/* ---- TYPE ---- */
.display,
h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--white);
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
h1 { font-size: clamp(40px, 5.6vw, 76px); }
h2 { font-size: clamp(32px, 3.6vw, 50px); }
h3 { font-size: clamp(20px, 1.7vw, 26px); }
.lead {
  font-size: clamp(17px, 1.35vw, 20px);
  color: var(--text-dim);
  line-height: 1.55;
  max-width: 60ch;
}

/* eyebrow / technical label */
.eyebrow {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--accent);
  display: inline-block;
}
.eyebrow--center { justify-content: center; }

.section-head { max-width: 720px; }
.section-head .lead { margin-top: 18px; }
.section-head h2 { margin-top: 18px; }
.section-head--center { margin-inline: auto; text-align: center; }

/* technical code badge: P0087 / DTC / J2012 (Latin → Space Grotesk) */
.dtc {
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--accent-2);
  border: 1px solid var(--line-strong);
  background: rgba(255,179,0,0.06);
  padding: 4px 9px;
  border-radius: 2px;
  white-space: nowrap;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-tech);
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 15px 26px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: transform .18s var(--ease), box-shadow .25s var(--ease), background .2s, border-color .2s, color .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 0 0 0 var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px -6px var(--accent-glow), 0 0 22px -4px var(--accent-glow);
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--white);
  transform: translateY(-2px);
}
.btn-lg { padding: 18px 32px; font-size: 15px; }

/* text link with arrow */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-tech);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform .2s var(--ease); }
.link-arrow:hover svg { transform: translateX(5px); }

/* ---- HEADER ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: color-mix(in srgb, var(--bg-0) 82%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 76px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 23px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
}
.brand__mark {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  background: var(--accent);
  color: var(--accent-ink);
  border-radius: 3px;
  font-size: 18px;
  font-weight: 700;
  clip-path: polygon(0 0, 100% 0, 100% 70%, 70% 100%, 0 100%);
}
.brand span { color: var(--accent); }

.main-nav { display: flex; gap: 4px; margin-left: 14px; }
.main-nav a {
  font-family: var(--font-tech);
  font-size: 13.5px;
  letter-spacing: 0.04em;
  color: var(--text-dim);
  padding: 8px 14px;
  border-radius: var(--radius);
  transition: color .18s, background .18s;
}
.main-nav a:hover { color: var(--white); }
.main-nav a.is-active { color: var(--white); }
.main-nav a.is-active::after {
  content: ""; display: block; height: 2px; margin-top: 6px;
  background: var(--accent);
}

.header-cta { display: flex; align-items: center; gap: 20px; margin-left: auto; }
.header-phone {
  font-family: var(--font-tech);
  font-size: 15px;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.header-phone small {
  display: block;
  font-size: 10.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.burger { display: none; background: none; border: 0; width: 40px; height: 40px; }
.burger span { display:block; width: 22px; height: 2px; background: var(--white); margin: 5px auto; transition: .25s; }

/* mobile nav drawer */
.mobile-nav { display: none; }

/* ---- HERO ---- */
.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--bg-0);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__photo {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
}
.hero__photo image-slot { width: 100%; height: 100%; }
.hero__overlay {
  position: absolute; inset: 0;
  background:
    linear-gradient(105deg, var(--bg-0) 8%, color-mix(in srgb, var(--bg-0) 72%, transparent) 48%, color-mix(in srgb, var(--accent) 14%, transparent) 100%),
    linear-gradient(0deg, var(--bg-0) 2%, transparent 40%);
}
/* blueprint grid + accent glow */
.hero__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(120% 90% at 70% 30%, #000 30%, transparent 78%);
}
.hero__glow {
  position: absolute;
  top: -10%; right: 4%;
  width: 620px; height: 620px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 62%);
  filter: blur(8px);
  opacity: .55;
}
[data-grid="off"] .hero__grid { display: none; }
[data-glow="off"] .hero__glow { display: none; }

.hero__inner { position: relative; z-index: 2; padding-block: 132px 124px; }
.hero__content { max-width: 760px; }
.hero h1 { margin-top: 22px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .lead { margin-top: 26px; font-size: clamp(18px, 1.5vw, 22px); color: var(--text); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

/* hero technical readout strip */
.hero__readout {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin-top: 42px;
}
.hero__readout .dtc { background: rgba(0,0,0,0.35); }

/* ---- TRUST BAR (counters + logos) ---- */
.trust { border-bottom: 1px solid var(--line); background: var(--bg-1); }
.trust__inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr) auto;
  gap: 0;
  align-items: stretch;
}
.counter {
  padding: 40px 36px;
  border-right: 1px solid var(--line);
}
.counter:first-child { padding-left: 0; }
.counter__num {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: clamp(38px, 4vw, 56px);
  color: var(--white);
  line-height: 1;
  display: flex; align-items: baseline; gap: 4px;
}
.counter__num .suffix { color: var(--accent); font-size: .5em; }
.counter__label {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: 0.02em;
}
.trust__logos {
  display: flex; align-items: center; gap: 26px;
  padding-left: 40px;
}
.logo-chip {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: 0.05em;
  color: var(--text-dim);
  padding: 9px 15px;
  border: 1px solid var(--line);
  border-radius: 2px;
  text-transform: uppercase;
  transition: color .2s, border-color .2s;
}
.logo-chip:hover { color: var(--white); border-color: var(--line-strong); }

/* ---- SERVICE CARDS ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); }
.grid-3.gap { gap: 20px; background: transparent; }

.svc-card {
  position: relative;
  background: var(--bg-1);
  padding: var(--card-pad);
  padding-block: 36px 32px;
  transition: background .22s, transform .22s var(--ease);
  overflow: hidden;
}
.grid-3.gap .svc-card { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.svc-card::after {
  content: "";
  position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: var(--accent);
  transition: width .3s var(--ease);
}
.svc-card:hover { background: var(--bg-2); transform: translateY(-3px); }
.svc-card:hover::after { width: 100%; }
.svc-card__icon {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  color: var(--accent);
  margin-bottom: 22px;
  background: var(--bg-0);
  transition: border-color .22s, box-shadow .22s;
}
.svc-card:hover .svc-card__icon { border-color: var(--accent); box-shadow: 0 0 18px -6px var(--accent-glow); }
.svc-card__icon svg { width: 26px; height: 26px; }
.svc-card__index {
  position: absolute; top: 26px; right: 26px;
  font-family: var(--font-tech);
  font-size: 13px;
  color: var(--text-faint);
}
.svc-card h3 { font-size: 21px; margin-bottom: 12px; }
.svc-card p { color: var(--text-dim); font-size: 15.5px; margin-bottom: 22px; }
.svc-card .link-arrow { font-size: 12px; }

/* card-style tweak variants */
[data-cards="filled"] .svc-card { background: var(--surface); }
[data-cards="filled"] .svc-card:hover { background: var(--surface-2); }
[data-cards="outline"] .grid-3 { gap: 20px; background: transparent; }
[data-cards="outline"] .svc-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: transparent; }
[data-cards="outline"] .svc-card:hover { border-color: var(--line-strong); background: var(--bg-1); }

/* ---- PROCESS STEPS ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.step {
  position: relative;
  padding: 34px 30px 34px 0;
  border-top: 2px solid var(--line);
}
.step:not(:last-child) { padding-right: 36px; }
.step__num {
  font-family: var(--font-tech);
  font-weight: 700;
  font-size: 15px;
  color: var(--accent-ink);
  background: var(--accent);
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 2px;
  margin-top: -53px;
  margin-bottom: 22px;
}
.step h3 { font-size: 19px; margin-bottom: 10px; }
.step p { color: var(--text-dim); font-size: 15px; }
.step__arrow { position: absolute; top: -10px; right: 18px; color: var(--text-faint); }

/* ---- EXPERTISE / SPLIT ---- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.split__media { position: relative; }
.split__media image-slot { width: 100%; height: 460px; border: 1px solid var(--line); }
.split__tag {
  position: absolute; left: 18px; bottom: 18px;
  display: flex; gap: 8px; flex-wrap: wrap;
}
.measure-list { display: grid; gap: 2px; margin-top: 30px; }
.measure-list li {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.measure-list li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.measure-list b { color: var(--white); font-family: var(--font-body); font-weight: 700; }
.measure-list span { color: var(--text-dim); font-size: 15px; }

/* ---- ARTICLE CARDS ---- */
.grid-3.articles { gap: 24px; background: transparent; }
.art-card {
  display: flex; flex-direction: column;
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .22s var(--ease), border-color .22s;
}
.art-card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.art-card__media { position: relative; aspect-ratio: 16 / 10; }
.art-card__media image-slot { width: 100%; height: 100%; }
.art-card__cat {
  position: absolute; top: 14px; left: 14px;
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  background: var(--bg-0); color: var(--accent);
  padding: 6px 11px; border-radius: 2px; border: 1px solid var(--line);
}
.art-card__body { padding: 24px; display: flex; flex-direction: column; flex: 1; }
.art-card__meta { font-family: var(--font-tech); font-size: 12px; color: var(--text-faint); letter-spacing: 0.04em; margin-bottom: 12px; }
.art-card h3 { font-size: 19px; line-height: 1.15; margin-bottom: 14px; }
.art-card p { color: var(--text-dim); font-size: 14.5px; flex: 1; margin-bottom: 18px; }

/* ---- CTA BAND ---- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: linear-gradient(100deg, var(--bg-1) 30%, color-mix(in srgb, var(--accent) 22%, var(--bg-1)) 100%);
  border-block: 1px solid var(--line);
}
.cta-band__glow {
  position: absolute; right: -6%; top: -40%;
  width: 560px; height: 560px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 60%);
}
.cta-band__inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
}
.cta-band h2 { font-size: clamp(30px, 3.4vw, 46px); }
.cta-band .lead { color: var(--text); margin-top: 16px; }
.cta-form {
  display: grid; gap: 14px;
  background: var(--bg-0);
  border: 1px solid var(--line-strong);
  padding: 30px;
  border-radius: var(--radius-lg);
}
.cta-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ---- FORM CONTROLS ---- */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-tech); font-size: 11.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-dim);
}
.input, .textarea, select.input {
  background: var(--bg-1);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 13px 15px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 15px;
  transition: border-color .18s, box-shadow .18s;
  width: 100%;
}
.input:focus, .textarea:focus, select.input:focus {
  outline: none; border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}
.textarea { resize: vertical; min-height: 110px; }
.input::placeholder, .textarea::placeholder { color: var(--text-faint); }

/* ---- CONTACTS ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.contact-meta { display: grid; gap: 2px; }
.contact-meta .row {
  display: flex; gap: 18px; align-items: flex-start;
  padding: 22px 0; border-bottom: 1px solid var(--line);
}
.contact-meta .row svg { width: 22px; height: 22px; color: var(--accent); flex: none; }
.contact-meta small { font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); display:block; margin-bottom: 5px; }
.contact-meta b { color: var(--white); font-weight: 600; font-family: var(--font-body); font-size: 17px; }
.map-stub {
  position: relative; height: 320px; margin-top: 40px;
  border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden;
  background:
    linear-gradient(0deg, var(--bg-0), transparent),
    repeating-linear-gradient(0deg, var(--line) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px 44px),
    var(--bg-1);
  display: grid; place-items: center;
}
.map-stub__pin { color: var(--accent); display: grid; place-items: center; gap: 10px; font-family: var(--font-tech); font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; }

/* ---- FOOTER ---- */
.site-footer { background: var(--bg-1); border-top: 1px solid var(--line); padding-block: 72px 36px; }
.footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand .lead { font-size: 15px; margin-top: 18px; max-width: 38ch; }
.footer-col h4 {
  font-family: var(--font-tech); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 18px;
}
.footer-col li { margin-bottom: 11px; }
.footer-col a { color: var(--text-dim); font-size: 15px; transition: color .18s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; align-items: center;
  margin-top: 56px; padding-top: 28px; border-top: 1px solid var(--line);
  font-family: var(--font-tech); font-size: 12.5px; color: var(--text-faint); letter-spacing: 0.02em;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-bottom a:hover { color: var(--text-dim); }

/* ---- PAGE HEADER (interior pages) ---- */
.page-hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: var(--bg-1); }
.page-hero__grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(100% 100% at 80% 0%, #000 20%, transparent 70%);
}
.page-hero__inner { position: relative; z-index: 2; padding-block: 78px 64px; }
.breadcrumb { font-family: var(--font-tech); font-size: 12.5px; letter-spacing: 0.06em; color: var(--text-faint); margin-bottom: 20px; }
.breadcrumb a { color: var(--text-dim); }
.breadcrumb a:hover { color: var(--accent); }
.page-hero h1 { font-size: clamp(36px, 4.6vw, 62px); }
.page-hero .lead { margin-top: 20px; }

/* ---- SCF SLOT ANNOTATION (design-system page) ---- */
[data-scf] { position: relative; }
body.scf-reveal [data-scf] {
  outline: 1px dashed color-mix(in srgb, var(--accent) 70%, transparent);
  outline-offset: 3px;
}
body.scf-reveal [data-scf]::before {
  content: attr(data-scf);
  position: absolute; top: -9px; left: 0; z-index: 30;
  font-family: var(--font-tech); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink);
  padding: 2px 7px; border-radius: 2px;
  pointer-events: none;
  transform: translateY(-100%);
  white-space: nowrap;
}

/* ---- UTIL ---- */
.fade-up { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.fade-up.in { opacity: 1; transform: none; }
.mt-0 { margin-top: 0; }
.center { text-align: center; }

/* ============================================================
   INTERIOR-PAGE COMPONENTS
   ============================================================ */

/* intro under page hero */
.intro-row { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: end; }

/* large service cards (services list) */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.svc-big {
  display: grid; grid-template-columns: 1fr; 
  background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .22s var(--ease), border-color .22s;
}
.svc-big:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.svc-big__media { position: relative; aspect-ratio: 16/9; }
.svc-big__media image-slot { width: 100%; height: 100%; }
.svc-big__media .dtc { position: absolute; left: 16px; bottom: 16px; background: var(--bg-0); }
.svc-big__body { padding: 30px 30px 32px; }
.svc-big__head { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.svc-big__icon { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--accent); }
.svc-big__icon svg { width: 24px; height: 24px; }
.svc-big h3 { font-size: 23px; }
.svc-big p { color: var(--text-dim); margin: 0 0 22px; }

/* detail layout: content + sticky aside */
.detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 64px; align-items: start; }
.detail-aside { position: sticky; top: 100px; display: grid; gap: 20px; }
.aside-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.aside-card h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-size: 18px; margin-bottom: 8px; }
.aside-card p { color: var(--text-dim); font-size: 14.5px; margin-bottom: 18px; }
.aside-card .btn { width: 100%; justify-content: center; }
.aside-meta { display: grid; gap: 1px; }
.aside-meta .row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.aside-meta .row:last-child { border-bottom: 0; }
.aside-meta .row span { color: var(--text-dim); }
.aside-meta .row b { color: var(--white); font-weight: 600; font-family: var(--font-tech); }

/* checklist (what's included) */
.checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 32px; margin-top: 26px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-bottom: 1px solid var(--line); }
.checklist li svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 3px; }
.checklist b { color: var(--white); font-family: var(--font-body); font-weight: 700; display: block; margin-bottom: 3px; }
.checklist span { color: var(--text-dim); font-size: 14.5px; }

/* numbered "how it goes" mini-steps (vertical) */
.flow { display: grid; gap: 0; margin-top: 26px; counter-reset: flow; }
.flow li { position: relative; padding: 0 0 30px 60px; }
.flow li:not(:last-child)::before { content: ""; position: absolute; left: 18px; top: 38px; bottom: 0; width: 1px; background: var(--line); }
.flow li::after { counter-increment: flow; content: counter(flow, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--accent); color: var(--accent); border-radius: 2px; font-family: var(--font-tech); font-size: 14px; }
.flow h4 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.flow p { color: var(--text-dim); font-size: 15px; }

/* ---- ARTICLE BODY ---- */
.article-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 64px; align-items: start; }
.prose { max-width: 720px; }
.prose > * + * { margin-top: 22px; }
.prose p { color: var(--text); font-size: 18px; line-height: 1.75; }
.prose h2 { font-size: clamp(26px, 2.4vw, 34px); margin-top: 46px; }
.prose h3 { font-size: 22px; margin-top: 38px; }
.prose ul.bullets { display: grid; gap: 12px; }
.prose ul.bullets li { position: relative; padding-left: 26px; color: var(--text); line-height: 1.6; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 8px; height: 8px; background: var(--accent); }
.prose .figure { margin: 38px 0; }
.prose .figure image-slot { width: 100%; height: 380px; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.prose .figcaption { font-family: var(--font-tech); font-size: 12.5px; color: var(--text-faint); margin-top: 12px; letter-spacing: 0.03em; }
/* technical callout / code inset */
.callout { border-left: 3px solid var(--accent); background: var(--bg-1); padding: 22px 26px; border-radius: 0 var(--radius) var(--radius) 0; }
.callout .dtc { margin-bottom: 12px; }
.callout p { font-size: 16px; color: var(--text-dim); }
.article-meta-bar { display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; font-family: var(--font-tech); font-size: 13px; color: var(--text-faint); letter-spacing: 0.03em; }
.article-meta-bar .dot { width: 4px; height: 4px; border-radius: 50%; background: var(--text-faint); }
.article-cover image-slot { width: 100%; height: clamp(280px, 42vw, 520px); border: 1px solid var(--line); border-radius: var(--radius-lg); }
/* sticky TOC */
.toc { position: sticky; top: 100px; }
.toc h4 { font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 16px; }
.toc a { display: block; padding: 9px 0 9px 16px; border-left: 1px solid var(--line); color: var(--text-dim); font-size: 14.5px; transition: color .18s, border-color .18s; }
.toc a:hover { color: var(--white); border-color: var(--accent); }

/* ---- BLOG FILTER ---- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 40px; }
.filter-bar button {
  font-family: var(--font-tech); font-size: 13px; letter-spacing: 0.04em;
  color: var(--text-dim); background: var(--bg-1); border: 1px solid var(--line);
  padding: 10px 18px; border-radius: var(--radius); transition: .18s;
}
.filter-bar button:hover { color: var(--white); border-color: var(--line-strong); }
.filter-bar button.is-active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }

/* ---- ABOUT ---- */
.values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.value-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; }
.value-card__icon { width: 50px; height: 50px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--accent); margin-bottom: 20px; }
.value-card__icon svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 20px; margin-bottom: 10px; }
.value-card p { color: var(--text-dim); font-size: 15px; }
.timeline { display: grid; gap: 0; margin-top: 12px; }
.timeline li { position: relative; padding: 0 0 34px 40px; border-left: 1px solid var(--line); }
.timeline li:last-child { border-left-color: transparent; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 11px; height: 11px; background: var(--accent); border-radius: 2px; }
.timeline .yr { font-family: var(--font-tech); color: var(--accent); font-size: 14px; letter-spacing: 0.06em; margin-bottom: 6px; }
.timeline h4 { color: var(--white); font-family: var(--font-body); font-weight: 700; font-size: 17px; margin-bottom: 6px; }
.timeline p { color: var(--text-dim); font-size: 15px; }
.team { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.team-card { background: var(--bg-1); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.team-card image-slot { width: 100%; aspect-ratio: 1; }
.team-card__body { padding: 22px 24px 26px; }
.team-card h4 { font-family: var(--font-display); text-transform: uppercase; color: var(--white); font-size: 19px; }
.team-card .role { font-family: var(--font-tech); font-size: 12.5px; color: var(--accent); letter-spacing: 0.04em; margin: 6px 0 12px; }
.team-card p { color: var(--text-dim); font-size: 14.5px; }

/* ---- DESIGN-SYSTEM PAGE ---- */
.ds-toolbar { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 18px 0; }
.ds-toggle { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-tech); font-size: 13px; color: var(--text-dim); letter-spacing: 0.03em; }
.switch { width: 46px; height: 26px; border-radius: 20px; background: var(--surface-2); border: 1px solid var(--line-strong); position: relative; transition: background .2s; cursor: pointer; flex: none; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: var(--text-dim); transition: .2s; }
.switch.on { background: var(--accent); border-color: var(--accent); }
.switch.on::after { left: 22px; background: var(--accent-ink); }
.ds-block { margin-top: 56px; }
.ds-block > h2 { font-size: 30px; }
.ds-label { font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 18px; }
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-1); }
.swatch__chip { height: 96px; }
.swatch__meta { padding: 14px 16px; }
.swatch__meta b { color: var(--white); font-size: 14px; display: block; }
.swatch__meta code { font-family: var(--font-tech); font-size: 12px; color: var(--text-dim); }
.type-row { display: flex; align-items: baseline; gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.type-row .tag { font-family: var(--font-tech); font-size: 12px; color: var(--text-faint); width: 110px; flex: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.ds-card-demo { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 760px; }
.spec-list { display: grid; gap: 10px; margin-top: 18px; }
.spec-list .dtc { margin-right: 8px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 1080px) {
  .split, .cta-band__inner, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 32px; }
  .trust__inner { grid-template-columns: repeat(3, 1fr); }
  .trust__logos { grid-column: 1 / -1; border-top: 1px solid var(--line); padding: 26px 0 0; }
  .counter:nth-child(3) { border-right: 0; }
}
/* nav collapses earlier so the header never crams the CTA */
@media (max-width: 1040px) {
  .main-nav, .header-phone { display: none; }
  .burger { display: block; }
  .mobile-nav {
    display: block;
    position: fixed; inset: 76px 0 auto 0; z-index: 55;
    background: var(--bg-1); border-bottom: 1px solid var(--line);
    transform: translateY(-120%); transition: transform .3s var(--ease);
    padding: 16px var(--gutter) 28px;
  }
  .mobile-nav.open { transform: none; }
  .mobile-nav a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-family: var(--font-tech); letter-spacing: 0.03em; color: var(--text); }
  .mobile-nav .btn { margin-top: 18px; width: 100%; justify-content: center; }
  .burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger.open span:nth-child(2) { opacity: 0; }
  .burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}
@media (max-width: 860px) {
  :root { --section-pad: 72px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-3.articles, .grid-3.gap { grid-template-columns: 1fr; }
  .hero__inner { padding-block: 92px 80px; }
  .split__media image-slot { height: 300px; }
}
@media (max-width: 560px) {
  .trust__inner { grid-template-columns: 1fr; }
  .counter { border-right: 0; border-bottom: 1px solid var(--line); padding: 26px 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-form .row { grid-template-columns: 1fr; }
}

/* interior pages */
@media (max-width: 1040px) {
  .detail-grid, .article-wrap { grid-template-columns: 1fr; }
  .detail-aside, .toc { position: static; }
  .toc { display: none; }
}
@media (max-width: 900px) {
  .intro-row { grid-template-columns: 1fr; gap: 28px; }
  .grid-2 { grid-template-columns: 1fr; }
  .values, .team { grid-template-columns: 1fr; }
  .checklist, .ds-card-demo { grid-template-columns: 1fr; }
}
