/* ==========================================================================
   สะอาดสตูดิโอ (SA-AT STUDIO) — Design System
   01 Tokens · 02 Base · 03 Layout · 04 Typography · 05 Buttons & links
   06 Header · 07 Hero · 08 Sections · 09 Cards · 10 Forms · 11 Footer
   12 Inner pages · 13 Motion · 14 Responsive
   ========================================================================== */

/* 01 Tokens ---------------------------------------------------------------- */
:root {
  --ink: #0b2545;
  --ink-2: #23456b;
  --muted: #5a7392;
  --blue-900: #08294a;
  --blue-800: #0a4c86;
  --blue-700: #1467b8;
  --blue-600: #1e7bd6;
  --accent: #38b6ff;
  --accent-700: #0a5fa8;
  --accent-300: #bfe6ff;
  --paper: #f6faff;
  --paper-2: #eaf3ff;
  --line: #d7e6f5;
  --line-strong: #b4cfe8;
  --white: #ffffff;
  --on-dark: #f4faff;
  --on-dark-muted: #b7d3ec;
  --danger: #a32020;

  --font-sans: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, -apple-system,
    "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --wrap: 1240px;
  --pad: clamp(1.25rem, 4vw, 2.75rem);
  --section: clamp(4rem, 8vw, 7.5rem);
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --header-h: 74px;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  background: var(--blue-700);
  color: #fff;
}

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

.section--dark :focus-visible,
.hero :focus-visible,
.site-footer :focus-visible,
.cta-band :focus-visible {
  outline-color: var(--accent-300);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 200;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--paper);
  font-size: 0.875rem;
}

.skip-link:focus {
  top: 1rem;
}

/* 03 Layout ---------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}

.section {
  padding-block: var(--section);
}

.section--tight {
  padding-block: clamp(3rem, 5vw, 4.5rem);
}

.section--dark {
  background: var(--blue-900);
  color: var(--on-dark);
}

.section--paper2 {
  background: var(--paper-2);
}

.rule-top {
  border-top: 1px solid var(--line);
}

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

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

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: start;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.section-head > div {
  max-width: 38rem;
}

/* 04 Typography ------------------------------------------------------------ */
.display {
  font-size: clamp(2.5rem, 1.1rem + 5vw, 4.3rem);
  line-height: 1.12;
  letter-spacing: -0.032em;
  text-wrap: balance;
}

.h2 {
  font-size: clamp(1.85rem, 1.15rem + 2.2vw, 3rem);
  line-height: 1.2;
  text-wrap: balance;
}

.h3 {
  font-size: clamp(1.35rem, 1.1rem + 0.8vw, 1.75rem);
  line-height: 1.35;
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.35vw, 1.2rem);
  line-height: 1.8;
  color: var(--ink-2);
}

.section--dark .lede {
  color: var(--on-dark-muted);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  flex: none;
  background: currentColor;
  opacity: 0.55;
}

.eyebrow span {
  color: var(--accent-700);
}

.section--dark .eyebrow {
  color: var(--accent-300);
}

.section--dark .eyebrow span {
  color: var(--accent-300);
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
}

.muted {
  color: var(--muted);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* 05 Buttons & links ------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 48px;
  padding: 0.8rem 1.4rem;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn svg {
  width: 16px;
  height: 16px;
  flex: none;
  transition: transform 0.25s var(--ease);
}

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

.btn--primary {
  background: var(--blue-700);
  color: #fff;
}

.btn--primary:hover {
  background: var(--blue-800);
}

.btn--dark {
  background: var(--ink);
  color: var(--paper);
}

.btn--dark:hover {
  background: var(--blue-800);
}

.btn--outline {
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn--outline:hover {
  border-color: var(--ink);
  background: var(--white);
}

.btn--light {
  background: var(--paper);
  color: var(--ink);
}

.btn--light:hover {
  background: #fff;
}

.btn--ghost-light {
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--on-dark);
}

.btn--ghost-light:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.5);
}

.btn--sm {
  min-height: 40px;
  padding: 0.55rem 1rem;
  font-size: 0.85rem;
}

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

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding-bottom: 0.15rem;
  border-bottom: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.25s var(--ease);
}

.link-arrow:hover {
  color: var(--blue-700);
  border-color: var(--blue-600);
}

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

/* 06 Header ---------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s var(--ease), background-color 0.25s var(--ease);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.96);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  flex: none;
}

.brand-mark {
  width: 38px;
  height: 38px;
  color: var(--ink);
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  line-height: 1;
}

.brand-name {
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.brand-sub {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.nav a {
  padding: 0.55rem 0.85rem;
  font-size: 0.92rem;
  color: var(--ink-2);
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.nav a:hover {
  color: var(--ink);
}

.nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--blue-700);
}

.header-cta {
  flex: none;
  margin-left: 0.5rem;
}

.menu-toggle {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--line-strong);
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 4.5px auto;
  background: var(--ink);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}

.menu-toggle[aria-expanded="true"] span:first-child {
  transform: translateY(3px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:last-child {
  transform: translateY(-3px) rotate(-45deg);
}

.mobile-nav {
  position: fixed;
  inset: var(--header-h) 0 auto;
  z-index: 99;
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  padding: 0.5rem var(--pad) 2rem;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.mobile-nav[hidden] {
  display: none;
}

.mobile-nav a:not(.btn) {
  display: block;
  padding: 0.95rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 1rem;
}

.mobile-nav a[aria-current="page"] {
  color: var(--blue-700);
}

.mobile-nav .btn {
  margin-top: 1.25rem;
}

/* 07 Hero ------------------------------------------------------------------ */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #e8f3ff 0%, #fbfdff 52%, #e8f3ff 100%);
  color: var(--ink);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 12% 18%,
      rgba(30, 123, 214, 0.1),
      transparent 32%
    ),
    radial-gradient(circle at 84% 6%, rgba(56, 182, 255, 0.1), transparent 28%),
    radial-gradient(circle at 66% 90%, rgba(30, 123, 214, 0.08), transparent 36%);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  top: -190px;
  right: -150px;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  border: 1px solid rgba(20, 103, 184, 0.14);
  box-shadow: 0 0 0 60px rgba(30, 123, 214, 0.035),
    0 0 0 120px rgba(30, 123, 214, 0.025);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.hero .eyebrow {
  color: var(--blue-700);
}

.hero .eyebrow span {
  color: var(--accent-700);
}

.hero h1 {
  max-width: 20ch;
  font-size: clamp(2.25rem, 1.2rem + 4vw, 3.6rem);
}

.hero h1 .hl {
  color: var(--blue-700);
  background-image: linear-gradient(
    transparent 68%,
    rgba(30, 123, 214, 0.16) 68%
  );
}

.hero-lede {
  max-width: 52ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 0.96rem + 0.3vw, 1.1rem);
  line-height: 1.8;
  color: var(--ink-2);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

.hero .btn--ghost-light {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.hero .btn--ghost-light:hover {
  border-color: var(--blue-600);
  background: #fff;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.6rem;
  margin-top: 2.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(11, 37, 69, 0.12);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-proof li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hero-proof li::before {
  content: "";
  width: 5px;
  height: 5px;
  flex: none;
  border-radius: 50%;
  background: var(--blue-600);
}

/* Process panel */
.panel {
  position: relative;
  padding: clamp(1.25rem, 2.4vw, 1.75rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 40px 80px -56px rgba(11, 37, 69, 0.5);
}

.panel::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--blue-600);
  border-left: 2px solid var(--blue-600);
  border-top-left-radius: 18px;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel-tag {
  padding: 0.3rem 0.55rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--paper-2);
  color: var(--blue-700);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.flow {
  margin-top: 1.15rem;
}

.flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 0.85rem;
  padding: 0.5rem 0;
}

.flow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 4px;
  top: 1.55rem;
  bottom: -0.15rem;
  border-left: 1px dashed var(--line-strong);
}

.flow-dot {
  width: 9px;
  height: 9px;
  margin-top: 0.5rem;
  border: 1px solid var(--blue-600);
  border-radius: 50%;
  background: var(--white);
}

.flow-step--final .flow-dot {
  background: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(30, 123, 214, 0.14);
}

.flow-name {
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}

.flow-meta {
  margin-top: 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.panel-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  margin-top: 1.15rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.panel-foot strong {
  color: var(--blue-700);
  font-weight: 500;
}

.panel-note {
  margin-top: 0.85rem;
  font-size: 0.7rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 08 Sections -------------------------------------------------------------- */
.stats {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

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

.stat {
  padding: clamp(1.6rem, 3vw, 2.25rem) clamp(1rem, 2vw, 1.75rem);
  border-left: 1px solid var(--line);
}

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

.stat-num {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}

.stat-unit {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--muted);
}

.stat-label {
  margin-top: 0.6rem;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
}

.evidence {
  padding: clamp(1.35rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px -34px rgba(11, 37, 69, 0.35);
}

.evidence-title {
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.evidence li {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
  line-height: 1.6;
}

.evidence li:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.evidence svg {
  width: 18px;
  height: 18px;
  margin-top: 0.15rem;
  color: var(--blue-700);
}

.evidence strong {
  display: block;
  font-weight: 500;
}

.evidence span {
  color: var(--muted);
}

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

.svc-card {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  padding: clamp(1.35rem, 2.5vw, 1.85rem);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 20px 40px -36px rgba(11, 37, 69, 0.4);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease),
    box-shadow 0.25s var(--ease);
}

.svc-card:hover {
  border-color: var(--blue-600);
  transform: translateY(-4px);
  box-shadow: 0 28px 50px -36px rgba(11, 37, 69, 0.45);
}

.svc-index {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent-700);
}

.svc-icon {
  width: 32px;
  height: 32px;
  color: var(--blue-700);
}

.svc-card h3 {
  font-size: 1.12rem;
  line-height: 1.4;
}

.svc-desc {
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.svc-specs {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: var(--ink-2);
}

.svc-specs li::before {
  content: "— ";
  color: var(--line-strong);
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
}

.step {
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.step-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  color: var(--accent-300);
}

.step h3 {
  margin-top: 0.7rem;
  font-size: 1.03rem;
  line-height: 1.45;
}

.step-time {
  margin-top: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  color: var(--on-dark-muted);
}

.step p {
  margin-top: 0.7rem;
  font-size: 0.88rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

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

.case {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 22px 44px -38px rgba(11, 37, 69, 0.4);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}

.case:hover {
  border-color: var(--blue-600);
  transform: translateY(-3px);
}

.case-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2.25rem;
  min-height: 176px;
  padding: 1.4rem 1.5rem;
  overflow: hidden;
  background: linear-gradient(150deg, #e4f1ff 0%, #d2e9ff 100%);
  color: var(--ink);
}

.case-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(
    rgba(20, 103, 184, 0.16) 1px,
    transparent 1px
  );
  background-size: 20px 20px;
  -webkit-mask-image: linear-gradient(160deg, #000, transparent 82%);
  mask-image: linear-gradient(160deg, #000, transparent 82%);
}

.case-sector {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-700);
}

.case-metric {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.case-metric strong {
  font-size: clamp(1.9rem, 3vw, 2.5rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.case-metric span {
  font-size: 0.76rem;
  color: var(--muted);
}

.case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.35rem 1.5rem 1.5rem;
}

.case-body h3 {
  font-size: 1.03rem;
  line-height: 1.45;
}

.case-meta {
  font-size: 0.8rem;
  color: var(--muted);
}

.case-result {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  line-height: 1.65;
  color: var(--ink-2);
}

.reasons {
  border-top: 1px solid var(--line);
}

.reason {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.1rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid var(--line);
}

.reason-num {
  padding-top: 0.15rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  color: var(--accent-700);
}

.reason h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.reason p {
  margin-top: 0.35rem;
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.cert {
  padding: 1.4rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.03);
}

.cert-code {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.1em;
  color: var(--accent-300);
}

.cert h3 {
  margin-top: 0.55rem;
  font-size: 1rem;
}

.cert p {
  margin-top: 0.3rem;
  font-size: 0.76rem;
  line-height: 1.6;
  color: var(--on-dark-muted);
}

.hse {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.hse-num {
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.hse-label {
  margin-top: 0.2rem;
  font-size: 0.74rem;
  color: var(--on-dark-muted);
}

.quote {
  max-width: 880px;
  margin-inline: auto;
  text-align: center;
}

.quote-mark {
  display: block;
  width: 34px;
  height: 26px;
  margin: 0 auto 1.75rem;
  color: var(--blue-700);
}

.quote blockquote {
  margin: 0;
  font-size: clamp(1.25rem, 1rem + 1.3vw, 1.85rem);
  font-weight: 300;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

.quote figcaption {
  margin-top: 1.75rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--muted);
}

.quote figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--ink);
}

.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--blue-900);
  color: var(--on-dark);
}

.cta-band::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}

.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
  gap: clamp(1.75rem, 4vw, 3.5rem);
  align-items: center;
  padding-block: clamp(3rem, 6vw, 4.5rem);
}

.cta-inner h2 {
  max-width: 24ch;
  font-size: clamp(1.7rem, 1.2rem + 1.9vw, 2.6rem);
  line-height: 1.25;
  text-wrap: balance;
}

.cta-inner p {
  margin-top: 1rem;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.cta-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

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

.cta-band .btn--primary {
  background: #fff;
  color: var(--blue-800);
}

.cta-band .btn--primary:hover {
  background: #e8f3ff;
}

.cta-contact {
  margin-top: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--on-dark-muted);
  text-align: center;
}

.cta-contact a {
  color: var(--on-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
}

/* 09 Cards (generic) ------------------------------------------------------- */
.card {
  padding: clamp(1.4rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px -34px rgba(11, 37, 69, 0.4);
}

.card h3 {
  font-size: 1.05rem;
}

.card p {
  margin-top: 0.5rem;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--muted);
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  color: var(--accent-700);
}

.card-icon {
  width: 30px;
  height: 30px;
  margin-bottom: 1rem;
  color: var(--blue-700);
}

/* 10 Forms ----------------------------------------------------------------- */
.form {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 40px 80px -64px rgba(11, 37, 69, 0.5);
}

.form-head {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-head h2 {
  font-size: 1.25rem;
}

.form-head p {
  margin-top: 0.35rem;
  font-size: 0.82rem;
  color: var(--muted);
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  font-size: 0.82rem;
  font-weight: 500;
}

.req {
  color: var(--blue-700);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 0.94rem;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}

.field textarea {
  min-height: 124px;
  resize: vertical;
  line-height: 1.7;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--blue-600);
  background: var(--white);
  outline: 2px solid var(--blue-600);
  outline-offset: 1px;
}

.field-error {
  display: none;
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--danger);
}

.field.is-invalid input,
.field.is-invalid select,
.field.is-invalid textarea {
  border-color: var(--danger);
}

.field.is-invalid .field-error {
  display: block;
}

.checkbox {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.6rem;
  align-items: start;
  font-size: 0.79rem;
  line-height: 1.65;
  color: var(--muted);
  cursor: pointer;
}

.checkbox input {
  width: 18px;
  height: 18px;
  margin: 0.2rem 0 0;
  accent-color: var(--blue-700);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.85rem 1rem;
  border: 1px solid;
  font-size: 0.84rem;
  line-height: 1.65;
}

.form-status.is-visible {
  display: block;
}

.form-status--ok {
  border-color: rgba(18, 101, 106, 0.4);
  background: rgba(18, 101, 106, 0.07);
  color: var(--blue-700);
}

.form-status--error {
  border-color: rgba(163, 32, 32, 0.35);
  background: rgba(163, 32, 32, 0.05);
  color: var(--danger);
}

.form-note {
  margin-top: 0.9rem;
  font-size: 0.74rem;
  line-height: 1.6;
  color: var(--muted);
}

/* 11 Footer ---------------------------------------------------------------- */
.site-footer {
  padding-block: clamp(3rem, 5vw, 4rem) 1.5rem;
  background: var(--blue-900);
  color: var(--on-dark);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.7fr 1fr 1fr 1.25fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .brand-mark {
  color: var(--on-dark);
}

.footer-brand .brand-sub {
  color: var(--on-dark-muted);
}

.footer-brand p {
  max-width: 34ch;
  margin-top: 1rem;
  font-size: 0.84rem;
  line-height: 1.75;
  color: var(--on-dark-muted);
}

.footer-title {
  margin-bottom: 1rem;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-300);
}

.footer-links li {
  margin-bottom: 0.55rem;
}

.footer-links a,
.footer-contact a {
  font-size: 0.86rem;
  color: var(--on-dark-muted);
  transition: color 0.2s var(--ease);
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--on-dark);
}

.footer-contact li {
  margin-bottom: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.65;
  color: var(--on-dark-muted);
}

.footer-contact strong {
  display: block;
  font-weight: 500;
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  padding-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  line-height: 1.7;
  color: rgba(166, 186, 184, 0.75);
}

/* 12 Inner pages ----------------------------------------------------------- */
.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 5vw, 4rem) clamp(2.5rem, 5vw, 3.75rem);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #eaf4ff 0%, #fbfdff 100%);
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 88% 0%,
      rgba(30, 123, 214, 0.12),
      transparent 38%
    ),
    radial-gradient(circle at 8% 100%, rgba(56, 182, 255, 0.1), transparent 42%);
  pointer-events: none;
}

.page-hero .wrap {
  position: relative;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.breadcrumb li:not(:last-child)::after {
  content: "/";
  margin-left: 0.5rem;
  color: var(--line-strong);
}

.page-hero h1 {
  max-width: 26ch;
  font-size: clamp(2.15rem, 1.3rem + 3vw, 3.6rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.page-hero .lede {
  max-width: 62ch;
  margin-top: 1.25rem;
}

.page-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

.page-hero-meta strong {
  color: var(--ink);
  font-weight: 500;
}

/* Services page */
.svc-list {
  border-top: 1px solid var(--line);
}

.svc-block {
  display: grid;
  grid-template-columns: minmax(0, 0.4fr) minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 4rem);
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 1px solid var(--line);
}

.svc-block h2 {
  margin-top: 0.6rem;
  font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem);
  line-height: 1.3;
}

.svc-block-body > .lede {
  max-width: 68ch;
}

.svc-block-body p + p {
  margin-top: 1rem;
}

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

.spec-grid li {
  padding: 0.9rem 1.1rem;
  background: var(--white);
}

.spec-grid span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--muted);
}

.spec-grid strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.93rem;
  font-weight: 500;
}

.checklist {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.5rem;
}

.checklist li {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 0.65rem;
  font-size: 0.91rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.checklist svg {
  width: 16px;
  height: 16px;
  margin-top: 0.28rem;
  color: var(--blue-700);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
}

.table-scroll-hint {
  display: none;
  margin-bottom: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  letter-spacing: 0.05em;
  color: var(--muted);
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 0.89rem;
}

th {
  padding: 0.9rem 1.1rem;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 0.63rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  text-align: left;
  color: var(--muted);
  white-space: nowrap;
}

td {
  padding: 1rem 1.1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  line-height: 1.65;
}

tbody tr:last-child td {
  border-bottom: 0;
}

td strong {
  font-weight: 500;
}

.table-note {
  margin-top: 0.75rem;
  font-size: 0.75rem;
  color: var(--muted);
}

.faq {
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  min-height: 56px;
  font-size: 0.98rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--blue-700);
  transition: transform 0.2s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  max-width: 78ch;
  padding-bottom: 1.25rem;
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--muted);
}

/* Projects page */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.75rem;
}

.chip {
  min-height: 44px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: transparent;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.chip:hover {
  border-color: var(--ink);
}

.chip[aria-pressed="true"] {
  border-color: var(--blue-700);
  background: var(--blue-700);
  color: #fff;
}

.filter-status {
  margin-bottom: 1.25rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--muted);
}

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

.project {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 1.4rem 1.5rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px -34px rgba(11, 37, 69, 0.4);
}

.project[hidden] {
  display: none;
}

.project-tag {
  font-family: var(--font-mono);
  font-size: 0.61rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-700);
}

.project h3 {
  font-size: 1.02rem;
  line-height: 1.5;
}

.project-loc {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.project p {
  font-size: 0.86rem;
  line-height: 1.7;
  color: var(--muted);
}

.project-metrics {
  display: grid;
  gap: 0.45rem;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--line);
}

.project-metrics div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.8rem;
}

.project-metrics dt {
  color: var(--muted);
}

.project-metrics dd {
  margin: 0;
  font-weight: 500;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.empty-state {
  padding: 3rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  text-align: center;
  color: var(--muted);
}

.empty-state[hidden] {
  display: none;
}

.nda-note {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 0.85rem;
  margin-top: 2rem;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-2);
  font-size: 0.85rem;
  line-height: 1.7;
  color: var(--ink-2);
}

.nda-note svg {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
  color: var(--blue-700);
}

/* About page */
.timeline {
  border-top: 1px solid var(--line);
}

.timeline li {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 1.5rem;
  padding: 1.4rem 0;
  border-bottom: 1px solid var(--line);
}

.timeline-year {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--blue-700);
}

.timeline h3 {
  font-size: 1rem;
  line-height: 1.5;
}

.timeline p {
  margin-top: 0.3rem;
  font-size: 0.89rem;
  line-height: 1.7;
  color: var(--muted);
}

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

.member {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 18px 36px -34px rgba(11, 37, 69, 0.35);
}

.monogram {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 1.1rem;
  border: 1px solid transparent;
  border-radius: 50%;
  background: var(--paper-2);
  font-family: var(--font-mono);
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  color: var(--blue-700);
}

.member h3 {
  font-size: 0.98rem;
}

.member-role {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--blue-700);
}

.member-bio {
  margin-top: 0.7rem;
  font-size: 0.8rem;
  line-height: 1.65;
  color: var(--muted);
}

.stat-line {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}

.stat-line li {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--white);
}

.stat-line strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.stat-line span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.78rem;
  color: var(--muted);
}

/* Contact page */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: start;
}

.info-block {
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
}

.info-block:first-child {
  padding-top: 0;
}

.info-label {
  font-family: var(--font-mono);
  font-size: 0.63rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.info-value {
  margin-top: 0.35rem;
  font-size: 0.98rem;
  line-height: 1.7;
}

.info-value a {
  border-bottom: 1px solid var(--line-strong);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.info-value a:hover {
  color: var(--blue-700);
  border-color: var(--blue-600);
}

.info-note {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  color: var(--muted);
}

.info-note a {
  border-bottom: 1px solid var(--line-strong);
  color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.info-note a:hover {
  color: var(--blue-700);
  border-color: var(--blue-600);
}

.hours {
  margin-top: 0.5rem;
  font-size: 0.85rem;
}

.hours div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--line);
}

.hours dt {
  color: var(--muted);
}

.hours dd {
  margin: 0;
  font-variant-numeric: tabular-nums;
}

/* 13 Motion ---------------------------------------------------------------- */
.reveal-enabled .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
  transition-delay: var(--delay, 0ms);
}

.reveal-enabled .reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* 14 Responsive ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
  }

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

  .panel {
    max-width: 560px;
  }

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

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

  .cases > :last-child:nth-child(odd) {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
  }

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

  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 1 / -1;
    display: flex;
    flex-wrap: wrap;
    gap: 0 3rem;
  }

  .footer-contact .footer-title {
    width: 100%;
  }
}

@media (max-width: 960px) {
  .nav,
  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

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

  .section-head {
    align-items: start;
  }

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

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

  .svc-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
  }

  .svc-block-head {
    position: static;
  }

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

  .cta-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .cta-actions .btn {
    width: auto;
  }

  .cta-contact {
    text-align: left;
  }
}

@media (max-width: 720px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat {
    padding: 1.35rem 0 1.35rem 1.25rem;
    border-left: 1px solid var(--line);
  }

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

  .stat:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .stat:nth-child(n + 3) {
    padding-top: 1.35rem;
  }

  .grid-3,
  .grid-4,
  .cases,
  .project-grid,
  .team,
  .certs,
  .stat-line {
    grid-template-columns: minmax(0, 1fr);
  }

  .cases > :last-child:nth-child(odd) {
    grid-column: auto;
    max-width: none;
  }

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

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

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

  .timeline li {
    grid-template-columns: 64px 1fr;
    gap: 1rem;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }

  .footer-brand {
    grid-column: 1 / -1;
  }

  .footer-contact {
    display: block;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .table-scroll-hint {
    display: block;
  }

  .panel-head {
    flex-wrap: wrap;
    gap: 0.5rem;
  }

  .quote blockquote {
    line-height: 1.7;
  }
}

@media (max-width: 420px) {
  .brand-sub {
    letter-spacing: 0.18em;
  }

  .stat-num {
    font-size: 1.75rem;
  }

  .stat-unit {
    font-size: 0.72rem;
  }
}

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

  .reveal-enabled .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn,
  .btn svg,
  .svc-card,
  .case,
  .link-arrow,
  .link-arrow svg {
    transition: none;
  }
}

@media print {
  .site-header,
  .site-footer,
  .cta-band,
  .mobile-nav {
    display: none;
  }

  body {
    background: #fff;
  }
}
