/* Blackstone Systems — main stylesheet */

:root {
  --ink-950: #07080e;
  --ink-900: #0b0d17;
  --ink-850: #10121e;
  --ink-800: #161929;
  --ink-700: #22263a;
  --on-dark: #eef0ff;
  --on-dark-muted: #9ea3c0;
  --line-dark: rgba(255, 255, 255, .09);

  --paper: #f4f5f9;
  --white: #ffffff;
  --text: #0b0d17;
  --text-muted: #5b6075;
  --line: #e2e4ee;

  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #8b92ff;
  --accent-tint: #ecedfd;

  --success: #34d399;
  --danger: #f87171;

  --font-head: "Sora", "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Manrope", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  --radius: 14px;
  --radius-sm: 10px;
  --container: 1200px;
  --gutter: 24px;
  --header-h: 76px;
  --scroll-offset: 76px; /* updated by main.js to the real header height */
  --ease: cubic-bezier(.2, .7, .2, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--ink-950);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-head); font-weight: 600; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ico { width: 18px; height: 18px; flex: none; }

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

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

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

/* ---------- Typography helpers ---------- */
.eyebrow {
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.eyebrow-dark { color: var(--accent-soft); }

h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 600; letter-spacing: -.03em; }
h2 { font-size: clamp(30px, 3.6vw, 46px); }
.h-lg { font-size: clamp(26px, 3vw, 38px); }

.section { position: relative; padding-block: clamp(72px, 9vw, 120px); }
.section-paper { background: var(--paper); }
.section-white { background: var(--white); }
.section-dark { background: var(--ink-900); color: var(--on-dark); }

.section-head { margin-bottom: clamp(40px, 5vw, 64px); }
.section-head.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px 64px; align-items: end; }
.section-head.center { text-align: center; max-width: 760px; margin-inline: auto; }
.section-head.center .section-lead { margin-inline: auto; }
.section-head.center h2 { margin-bottom: 18px; }
.section-lead { font-size: 17px; color: var(--text-muted); max-width: 560px; }
.section-dark .section-lead { color: var(--on-dark-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-head); font-size: 15px; font-weight: 600;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
.btn .ico { transition: transform .2s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn-block { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 10px 30px -12px rgba(79, 70, 229, .8); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-ghost { color: var(--on-dark); border-color: rgba(255, 255, 255, .22); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .05); }
.btn-outline { color: var(--accent); border-color: rgba(79, 70, 229, .45); }
.btn-outline:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn[disabled] { opacity: .65; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-dark);
  transition: background-color .3s var(--ease), border-color .3s var(--ease), backdrop-filter .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled, .site-header.menu-open {
  background: rgba(7, 8, 14, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-dark);
}
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: inherit; --logo-accent: var(--accent-soft); }
.brand-mark { width: 36px; height: 36px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-family: var(--font-head); font-weight: 700; font-size: 17px; letter-spacing: .16em; text-transform: uppercase; }
.brand-sub { font-size: 10px; font-weight: 600; letter-spacing: .42em; text-transform: uppercase; opacity: .7; margin-top: 5px; }
.brand-dark { color: var(--text); --logo-accent: var(--accent); }

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav ul a {
  position: relative; display: block; text-decoration: none; font-size: 15px; font-weight: 500; color: var(--on-dark-muted);
  white-space: nowrap; transition: color .2s;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 2px; border-radius: 2px;
  background: var(--accent-soft); transform: scaleX(0); transition: transform .25s var(--ease);
}
.main-nav ul a:hover, .main-nav ul a.is-active { color: var(--on-dark); }
.main-nav ul a.is-active::after { transform: scaleX(1); }
.header-cta { margin-left: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  padding-top: calc(var(--header-h) + 56px); padding-bottom: 48px;
  background:
    radial-gradient(60% 70% at 72% 40%, rgba(79, 70, 229, .22), transparent 70%),
    var(--ink-950);
  color: var(--on-dark);
}
.hero-art {
  position: absolute; top: 0; bottom: 0; right: max(-80px, calc((100vw - var(--container)) / 2 - 140px));
  width: min(64vw, 900px);
  display: flex; align-items: center; pointer-events: none;
}
.hero-art img { width: 100%; height: auto; }
.hero-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--ink-950) 0%, rgba(7, 8, 14, 0) 30%);
}
.hero-inner { position: relative; z-index: 1; min-height: 520px; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.hero-copy { max-width: 620px; }
.hero h1 { margin-bottom: 24px; }
.hero-lead { font-size: 18px; color: var(--on-dark-muted); max-width: 520px; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-tagline {
  align-self: center;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; line-height: 2; letter-spacing: .3em; text-transform: uppercase;
  color: var(--on-dark);
}
.hero-tagline span { color: var(--accent-soft); }
.hero-tagline i { display: block; width: 44px; height: 1px; margin-top: 14px; background: var(--on-dark-muted); position: relative; }
.hero-tagline i::after {
  content: ""; position: absolute; right: 0; top: -3px; width: 7px; height: 7px;
  border-top: 1px solid var(--on-dark-muted); border-right: 1px solid var(--on-dark-muted); transform: rotate(45deg);
}

.stats {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin-top: 64px; padding-top: 32px; border-top: 1px solid var(--line-dark);
}
.stats li { padding-inline: 28px; border-left: 1px solid var(--line-dark); }
.stats li:first-child { padding-left: 0; border-left: 0; }
.stats strong { display: block; font-family: var(--font-head); font-size: clamp(30px, 3.4vw, 42px); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.stats span { font-size: 14px; color: var(--on-dark-muted); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-copy h2 { margin-bottom: 24px; }
.about-copy > p { color: var(--text-muted); font-size: 17px; margin-bottom: 28px; }
.think {
  padding: 22px 24px; margin-bottom: 32px;
  border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--white);
}
.think h3 { font-size: 17px; margin-bottom: 8px; }
.think p { color: var(--text-muted); font-size: 15px; }
.about-visual { position: relative; }
.about-visual img { width: 100%; margin-left: 4%; }
.about-tags {
  position: absolute; right: 0; top: 0; z-index: 1;
  font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase; line-height: 2;
}
.about-tags::after { content: ""; display: block; width: 32px; height: 2px; margin-top: 12px; background: var(--accent); }

.mission { margin-top: clamp(64px, 8vw, 104px); }
.mission-head { display: grid; grid-template-columns: auto 1fr; gap: 0 48px; align-items: end; margin-bottom: 36px; }
.mission-head .eyebrow { grid-column: 1 / -1; }
.mission-head p:last-child { color: var(--text-muted); justify-self: end; max-width: 360px; }
.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mission-card {
  position: relative; padding: 32px 28px; border-radius: var(--radius);
  background: var(--white); border: 1px solid var(--line);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.mission-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(11, 13, 23, .35); }
.mission-num { font-family: var(--font-head); font-size: 13px; font-weight: 600; color: var(--accent); letter-spacing: .1em; }
.mission-card h4 { font-size: 24px; margin: 10px 0 16px; }
.mission-card p { color: var(--text-muted); font-size: 15px; }
.mission-card p + p { margin-top: 10px; }

/* ---------- Services ---------- */
.services { background: radial-gradient(50% 60% at 85% 0%, rgba(79, 70, 229, .14), transparent 70%), var(--ink-900); }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  padding: 28px 24px 26px; border-radius: var(--radius);
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
  border: 1px solid var(--line-dark);
  text-decoration: none; color: inherit;
  transition: border-color .25s var(--ease), transform .25s var(--ease), background-color .25s var(--ease);
}
.service-card:hover { border-color: rgba(139, 146, 255, .55); transform: translateY(-3px); background-color: rgba(79, 70, 229, .08); }
.service-icon { width: 30px; height: 30px; color: var(--accent-soft); margin-bottom: 26px; }
.service-go { position: absolute; top: 22px; right: 22px; width: 18px; height: 18px; color: var(--on-dark-muted); transition: color .2s, transform .25s var(--ease); }
.service-card:hover .service-go { color: var(--on-dark); transform: translate(2px, -2px); }
.service-card h3 { font-size: 17px; font-weight: 600; letter-spacing: -.01em; margin-bottom: 10px; }
.service-card p { font-size: 14px; color: var(--on-dark-muted); line-height: 1.55; }

/* ---------- Key directions ---------- */
.direction {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px 64px; align-items: start;
  padding-block: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
}
.direction:last-child { padding-bottom: 0; }
.direction.reverse .direction-main { order: 2; }
.direction-main { position: relative; }
.direction-num {
  display: block; font-family: var(--font-head); font-size: 64px; font-weight: 700; line-height: 1; letter-spacing: -.04em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(79, 70, 229, .35); margin-bottom: 18px;
}
.direction-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px;
  font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent);
}
.direction h3 { font-size: clamp(24px, 2.6vw, 34px); margin-bottom: 16px; }
.direction-main > p:not(.direction-kicker) { color: var(--text-muted); font-size: 16px; margin-bottom: 24px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: var(--accent-hover); background: var(--accent-tint);
}
.how { padding: 32px; border-radius: var(--radius); background: var(--ink-900); color: var(--on-dark); position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -110px; border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 131, 255, .35), transparent 70%);
}
.how-title { position: relative; font-family: var(--font-head); font-size: 12px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--accent-soft); margin-bottom: 20px; }
.how ul { position: relative; display: grid; gap: 20px; }
.how li { display: grid; gap: 4px; padding-left: 26px; position: relative; }
.how li::before {
  content: ""; position: absolute; left: 0; top: 7px; width: 10px; height: 10px; border-radius: 3px;
  border: 2px solid var(--accent-soft); transform: rotate(45deg);
}
.how strong { font-family: var(--font-head); font-size: 16px; font-weight: 600; }
.how span { font-size: 14.5px; color: var(--on-dark-muted); }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px 72px; align-items: center; }
.why-copy h2 { margin-bottom: 24px; }
.why-copy p { color: var(--text-muted); font-size: 17px; margin-bottom: 32px; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.features li {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .25s, transform .25s var(--ease);
}
.features li:hover { border-color: rgba(79, 70, 229, .4); transform: translateY(-2px); }
.feature-icon { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--accent-tint); color: var(--accent); }
.feature-icon svg { width: 22px; height: 22px; }
.features h3 { font-size: 16px; margin-bottom: 4px; }
.features p { font-size: 14px; color: var(--text-muted); }

/* ---------- Contact ---------- */
.contact { overflow: hidden; background: var(--ink-950); }
.contact-bg {
  position: absolute; inset: 0;
  background:
    url("../img/waves.svg") center / cover no-repeat,
    radial-gradient(40% 60% at 40% 100%, rgba(79, 70, 229, .3), transparent 70%),
    radial-gradient(35% 50% at 90% 10%, rgba(124, 131, 255, .14), transparent 70%);
  opacity: .9;
}
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 48px 80px; align-items: center; }
.contact-copy h2 { margin-bottom: 20px; }
.contact-copy > p { color: var(--on-dark-muted); font-size: 17px; margin-bottom: 32px; max-width: 460px; }
.contact-notes { display: grid; gap: 16px; max-width: 460px; }
.contact-notes li { display: flex; gap: 14px; font-size: 15px; color: var(--on-dark-muted); }
.contact-notes .ico { color: var(--accent-soft); margin-top: 3px; }
.contact-notes strong { color: var(--on-dark); font-weight: 600; }

.contact-form {
  display: grid; gap: 14px; padding: 32px; border-radius: 20px;
  background: rgba(16, 18, 30, .72); border: 1px solid var(--line-dark);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.field { display: grid; gap: 6px; }
.field label { font-size: 13px; font-weight: 600; color: var(--on-dark-muted); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .12);
  color: var(--on-dark); font-size: 15px;
  transition: border-color .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select {
  appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%239ea3c0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 18px;
}
.field select option { background: var(--ink-900); color: var(--on-dark); }
.field input::placeholder, .field textarea::placeholder { color: rgba(158, 163, 192, .55); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent-soft); background-color: rgba(255, 255, 255, .06); }
.field.has-error input, .field.has-error textarea { border-color: var(--danger); }
.field-error { font-size: 12.5px; color: var(--danger); }

.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--on-dark-muted); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--accent); flex: none; }
.consent a { color: var(--on-dark); }
.consent.has-error span { color: var(--danger); }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-status { min-height: 1.5em; font-size: 14px; text-align: center; }
.form-status.is-success { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* ---------- Footer ---------- */
.site-footer { background: var(--white); color: var(--text); padding-top: 40px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 8px 28px; }
.footer-nav a, .footer-legal a { text-decoration: none; font-size: 14px; color: var(--text-muted); transition: color .2s; }
.footer-nav a:hover, .footer-legal a:hover { color: var(--accent); }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: var(--text); transition: background-color .2s, color .2s; }
.socials a:hover { background: var(--accent-tint); color: var(--accent); }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding-block: 22px 28px; font-size: 13px; color: var(--text-muted); }
.footer-legal { display: flex; gap: 24px; }
.footer-legal a { font-size: 13px; }

/* ---------- Legal / simple pages ---------- */
.page-simple { background: var(--white); }
.page-simple .site-header { background: var(--ink-950); }
.legal { padding: calc(var(--header-h) + 56px) 0 80px; }
.legal .container { max-width: 840px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); margin-bottom: 12px; }
.legal .updated { color: var(--text-muted); margin-bottom: 40px; }
.legal h2 { font-size: 22px; margin: 36px 0 12px; }
.legal p, .legal li { color: #33374a; }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; margin-top: 10px; }
.legal li + li { margin-top: 6px; }
.legal a { color: var(--accent); }
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; background: var(--ink-950); color: var(--on-dark); padding: 24px; }
.notfound strong { display: block; font-family: var(--font-head); font-size: clamp(80px, 16vw, 160px); line-height: 1; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 2px var(--accent-soft); }
.notfound p { color: var(--on-dark-muted); margin: 16px 0 32px; }

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

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .main-nav ul { gap: 22px; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-tagline { display: none; }
}

@media (max-width: 960px) {
  :root { --header-h: 108px; --scroll-offset: 108px; }
  /* two-row header: logo + button, then a horizontally scrollable row of anchor links */
  .site-header { height: auto; background: rgba(7, 8, 14, .92); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom-color: var(--line-dark); }
  .header-inner { flex-wrap: wrap; height: auto; padding-top: 10px; column-gap: 12px; row-gap: 4px; }
  .brand { order: 1; }
  .header-cta { order: 2; margin-left: auto; }
  .main-nav {
    order: 3; flex: 0 0 auto; width: calc(100% + var(--gutter) * 2); margin: 0 calc(var(--gutter) * -1);
    overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .main-nav::-webkit-scrollbar { display: none; }
  .main-nav.can-scroll-right { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .main-nav ul { gap: 4px; padding: 0 calc(var(--gutter) - 12px); }
  .main-nav ul a { padding: 12px 12px 14px; font-size: 14px; }
  .main-nav ul a::after { left: 12px; right: 12px; bottom: 6px; }

  .hero-art { position: relative; right: auto; width: auto; margin: 8px calc(var(--gutter) * -1) 0; order: 2; }
  .hero-art::after { background: linear-gradient(180deg, var(--ink-950) 0%, rgba(7, 8, 14, 0) 25%, rgba(7, 8, 14, 0) 75%, var(--ink-950) 100%); }
  .hero { padding-top: calc(var(--header-h) + 32px); }
  .hero-inner { min-height: 0; }
  .hero-inner { order: 1; }
  .hero > .container:last-child { order: 3; }
  .stats { margin-top: 0; }

  .section-head.split, .about-grid, .why-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-visual img { margin-left: 0; }
  .mission-head { grid-template-columns: 1fr; gap: 12px; }
  .mission-head p:last-child { justify-self: start; }
  .mission-grid { grid-template-columns: 1fr; }
  .direction { grid-template-columns: 1fr; }
  .direction.reverse .direction-main { order: 0; }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  :root { --gutter: 16px; }
  body { font-size: 15px; }
  .brand-name { font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand { gap: 10px; }
  .header-cta { min-height: 38px; padding: 0 14px; font-size: 13px; }
  .header-cta .ico { display: none; }
  .hero-lead, .about-copy > p, .why-copy p, .contact-copy > p { font-size: 16px; }
  
  .hero-actions .btn { flex: 1 1 auto; }
  .stats { grid-template-columns: 1fr 1fr; row-gap: 24px; }
  .stats li { padding-inline: 16px; }
  .stats li:nth-child(odd) { padding-left: 0; border-left: 0; }

  .service-grid { grid-template-columns: 1fr; gap: 10px; }
  .service-card { display: grid; grid-template-columns: 28px 1fr 18px; align-items: center; column-gap: 14px; padding: 16px 18px; }
  .service-icon { width: 24px; height: 24px; margin: 0; }
  .service-card h3 { font-size: 15px; margin: 0; }
  .service-card p { display: none; }
  .service-go { position: static; grid-column: 3; grid-row: 1; }

  .direction-num { font-size: 48px; }
  .how { padding: 24px 20px; }
  .features { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-bottom { flex-direction: column; }
}

/* legal pages: single-row header, list spacing */
.legal ul + p { margin-top: 12px; }
@media (max-width: 960px) {
  .page-simple .header-inner { padding-block: 10px; }
  .page-simple .legal { padding-top: calc(68px + 40px); }
}
