/* =============================================================================
   Rune Forensics — bespoke dark forensic consultancy aesthetic
   Deep navy / steel; editorial type; no stock “cyber” tropes.
   ============================================================================= */

:root {
  --bg-void: #121f32;
  --bg-deep: #182a40;
  --bg-page: #1e3450;
  --bg-elevated: #243a56;
  --bg-card: #2a4262;
  --bg-card-hover: #304a6e;
  --bg-band-light: rgba(200, 218, 238, 0.045);
  --bg-band-cool: rgba(15, 35, 58, 0.35);
  --border-faint: rgba(200, 216, 236, 0.12);
  --border-subtle: rgba(170, 192, 220, 0.2);
  --border-strong: rgba(170, 192, 220, 0.34);
  --text-primary: #eef2f8;
  --text-secondary: #a8b8d0;
  --text-muted: #7a8fa8;
  --accent: #8eb0d0;
  --accent-dim: #6d8caf;
  --accent-soft: rgba(142, 176, 208, 0.16);
  --accent-line: rgba(142, 176, 208, 0.45);
  --ink-wash: rgba(18, 32, 50, 0.88);
  --top-bar-fg: rgba(255, 255, 255, 0.9);
  --top-bar-fg-hover: rgba(220, 236, 255, 0.98);
  --top-bar-bg-a: #152a3e;
  --top-bar-bg-b: #122536;
  --space-xs: 0.48rem;
  --space-sm: 0.95rem;
  --space-md: 1.45rem;
  --space-lg: 2.15rem;
  --space-xl: 3.35rem;
  --space-2xl: 5.25rem;
  --space-3xl: 6.8rem;
  --font-sans: Inter, "Segoe UI", "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --font-mono: "Cascadia Mono", "Segoe UI Mono", ui-monospace, monospace;
  --radius: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --header-h: 4rem;
  --top-bar-h: 2.35rem;
  --header-stack-h: calc(var(--top-bar-h) + var(--header-h) + 24px);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-premium: cubic-bezier(0.18, 0.84, 0.32, 1);
  --duration-fast: 160ms;
  --duration-base: 220ms;
  --duration-slow: 320ms;
  --surface-1: linear-gradient(164deg, rgba(26, 44, 66, 0.84) 0%, rgba(14, 28, 46, 0.78) 100%);
  --surface-2: linear-gradient(170deg, rgba(22, 38, 58, 0.9) 0%, rgba(12, 22, 38, 0.78) 100%);
  --surface-border: rgba(164, 196, 226, 0.2);
  --surface-border-strong: rgba(172, 206, 236, 0.3);
  --shadow-soft: 0 18px 42px rgba(0, 0, 0, 0.28);
  --shadow-panel: 0 26px 60px rgba(0, 0, 0, 0.36);
  --max-width: 1080px;
  --container-pad: clamp(1.25rem, 4vw, 2.5rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  /* Keeps viewport width stable when vertical scrollbar appears so header/nav do not shift between pages */
  scrollbar-gutter: stable;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  position: relative;
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.03rem;
  line-height: 1.72;
  letter-spacing: 0.003em;
  color: var(--text-primary);
  background-color: var(--bg-page);
  background-image:
    radial-gradient(ellipse 120% 65% at 50% -12%, rgba(100, 150, 195, 0.1) 0%, transparent 50%),
    linear-gradient(188deg, #1b3250 0%, #1e3858 35%, #223e5e 55%, #1c3652 100%);
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-sm);
  z-index: 1001;
  padding: var(--space-xs) var(--space-sm);
  background: var(--text-primary);
  color: var(--bg-void);
  font-weight: 600;
  border-radius: var(--radius-md);
  text-decoration: none;
}

.skip-link:focus {
  top: var(--space-sm);
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  color: #8eb4d4;
}

.container {
  width: min(100% - var(--container-pad) * 2, var(--max-width));
  margin-inline: auto;
}

/* ----- Flow: section rhythm & transitions ----- */
.section-flow {
  background: linear-gradient(
    180deg,
    rgba(28, 48, 74, 0.42) 0%,
    transparent 7rem,
    transparent 100%
  );
}

.section {
  position: relative;
  padding-block: clamp(var(--space-xl), 6vw, var(--space-2xl));
}

.section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100% - var(--container-pad), var(--max-width));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(180, 200, 225, 0.22) 18%, rgba(180, 200, 225, 0.22) 82%, transparent);
  opacity: 1;
}

.hero + .section-flow > .section:first-child::before {
  opacity: 0;
  height: 0;
}

.section-kicker {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.section-header {
  margin-bottom: var(--space-xl);
  max-width: 38rem;
}

.section-header h2,
.contact-intro h2,
.why-copy > h2,
.why-preview-copy > h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.15vw, 2.3rem);
  font-weight: 600;
  letter-spacing: -0.028em;
  line-height: 1.14;
  color: var(--text-primary);
}

.section-intro {
  margin: 0;
  font-size: 1.02rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----- Top contact bar ----- */
.header-stack {
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  z-index: 520;
}

.top-bar {
  min-height: calc(var(--top-bar-h) + 24px);
  padding-top: 12px;
  padding-bottom: 12px;
  background: linear-gradient(180deg, var(--top-bar-bg-a) 0%, var(--top-bar-bg-b) 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 2;
}

.top-bar-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding-inline: var(--container-pad);
}

.top-bar-line {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 12px;
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  position: static;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.top-bar-sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  color: rgba(255, 255, 255, 0.28);
  font-weight: 300;
  font-size: 0;
  line-height: 1;
  transform: none;
  opacity: 0.5;
  user-select: none;
  position: static;
  min-width: 0.85ch;
}

.top-bar-sep::before {
  content: "|";
  display: block;
  font-size: 0.94rem;
  line-height: 1;
  transform: translateY(-12px);
}

.top-bar-link {
  color: var(--top-bar-fg);
  text-decoration: none;
  text-transform: none;
  letter-spacing: 0.02em;
  text-underline-offset: 0.2em;
  transition: color 0.2s var(--ease-out), opacity 0.2s var(--ease-out);
}

.top-bar-link:hover {
  color: var(--top-bar-fg-hover);
  opacity: 1;
}

.top-bar-link:focus-visible {
  color: var(--top-bar-fg-hover);
  outline: 2px solid rgba(255, 255, 255, 0.45);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ----- Header ----- */
.site-header {
  position: relative;
  z-index: 3;
  height: var(--header-h);
  background: var(--ink-wash);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-faint);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - var(--container-pad) * 2, var(--max-width));
  height: 100%;
  margin-inline: auto;
}

@media (min-width: 769px) {
  /* Logo stays in a fixed column; nav is always end-aligned in the remaining space (no space-between gap drift). */
  .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    column-gap: var(--space-lg);
    justify-content: initial;
  }

  .logo {
    grid-column: 1;
    justify-self: start;
  }

  .site-nav {
    grid-column: 2;
    justify-self: end;
    width: 100%;
    padding-left: clamp(0.8rem, 2.2vw, 1.8rem);
    min-width: 0;
  }

  .nav-list {
    justify-content: flex-end;
  }
}

.logo {
  font-family: var(--font-display);
  font-size: clamp(1.56rem, 2.2vw, 1.98rem);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.logo:hover {
  color: var(--text-primary);
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.85rem;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  cursor: pointer;
  font: inherit;
}

.nav-toggle-bars {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 1.35rem;
}

.nav-toggle-bars span {
  display: block;
  height: 2px;
  background: currentColor;
  border-radius: 1px;
  transition: transform 0.2s var(--ease-out), opacity 0.2s;
}

.nav-toggle-label {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.nav-toggle:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.nav-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-md);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  display: inline-flex;
  align-items: center;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.36rem 0.68rem;
  transition:
    color var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-premium);
}

.nav-list a:hover {
  color: var(--text-primary);
  border-color: rgba(182, 210, 236, 0.2);
  background: rgba(125, 166, 204, 0.08);
}

.nav-list a[aria-current="page"] {
  color: var(--text-primary);
  border-color: var(--surface-border-strong);
  background: rgba(118, 160, 198, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 1024px) {
  /* One row avoids different wrap patterns (and different nav cluster widths) across pages at the same viewport */
  .nav-list {
    flex-wrap: nowrap;
  }

  .nav-list li {
    flex-shrink: 0;
  }
}

.nav-cta {
  margin-left: var(--space-sm);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.42rem;
  font-size: 0.775rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    background var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium),
    color var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    transform var(--duration-base) var(--ease-premium);
}

.btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.btn-primary {
  background: linear-gradient(180deg, rgba(152, 188, 220, 0.96) 0%, rgba(126, 164, 198, 0.96) 100%);
  color: #0f1d2e;
  border-color: rgba(198, 224, 246, 0.26);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 20px rgba(10, 22, 36, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(180deg, rgba(165, 198, 228, 0.98) 0%, rgba(136, 172, 206, 0.98) 100%);
  color: #0d1b2c;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 14px 26px rgba(10, 22, 36, 0.28);
}

.btn-ghost {
  background: rgba(14, 30, 46, 0.38);
  color: var(--text-primary);
  border-color: rgba(170, 198, 224, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.btn-ghost:hover {
  border-color: rgba(194, 218, 240, 0.46);
  background: rgba(124, 164, 200, 0.16);
  transform: translateY(-1px);
}

/* ----- Hero ----- */
.hero {
  position: relative;
  min-height: calc(100svh - var(--header-stack-h));
  min-height: calc(100vh - var(--header-stack-h));
  padding-block: clamp(1.35rem, 4vw, 2.5rem) clamp(0.65rem, 1.8vw, 1.25rem);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

/* Hero background: one controlled gradient + soft orb + floor fade (homepage only uses .hero-bg) */
.hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 78% 18%, rgba(92, 136, 184, 0.14) 0%, transparent 60%),
    linear-gradient(172deg, #121d2f 0%, #152238 42%, #111c2f 100%);
  pointer-events: none;
}

.page-home .hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(18, 32, 50, 0.18) 0%, rgba(8, 15, 28, 0.76) 100%);
  opacity: 0.92;
}

.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.22;
}

.hero-orb--a {
  width: min(58vw, 440px);
  height: min(58vw, 440px);
  top: -10%;
  right: -6%;
  background: radial-gradient(circle, rgba(120, 165, 205, 0.2) 0%, transparent 70%);
}

.hero-horizon {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52%;
  background: linear-gradient(to top, rgba(8, 14, 24, 0.92) 0%, rgba(14, 24, 40, 0.35) 50%, transparent 100%);
  opacity: 0.75;
}

.hero-shell {
  position: relative;
  z-index: 1;
  width: min(100% - var(--container-pad) * 2, var(--max-width));
  margin-inline: auto;
}

.hero-main {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 960px) {
  .hero-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(240px, 0.88fr);
    gap: clamp(2rem, 4vw, 4rem);
    align-items: end;
  }
}

.hero-content {
  padding-top: clamp(0.5rem, 2vw, 1rem);
  animation: hero-in 1s var(--ease-out) both;
}

@keyframes hero-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-founder {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  margin: 0 0 var(--space-md);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--text-muted);
  max-width: 26rem;
}

.eyebrow-rule {
  flex-shrink: 0;
  width: 2.5rem;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-line), transparent);
}

.hero-title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(2.05rem, 5.2vw, 3.15rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.038em;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  font-size: clamp(1rem, 1.5vw, 1.125rem);
  line-height: 1.72;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* Hero panel (forensic “exhibit” motif) */
.hero-panel {
  animation: hero-in 1s 0.12s var(--ease-out) both;
}

.hero-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  margin-bottom: var(--space-lg);
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(160, 188, 218, 0.75);
}

.hero-strip__item {
  padding: 0.35rem 0.6rem;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.hero-panel-stack {
  position: relative;
}

.hero-panel-card {
  position: relative;
  min-height: 220px;
  padding: var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  box-shadow:
    var(--shadow-panel),
    0 0 0 1px rgba(8, 16, 28, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 960px) {
  .hero-panel-card {
    min-height: 300px;
    padding: var(--space-lg) var(--space-lg) var(--space-md);
  }
}

.hero-frame {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  margin-top: 0;
  margin-right: auto;
  margin-left: 0;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 5 / 3;
  padding: 10px;
  border: 1px solid rgba(130, 168, 208, 0.35);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(12, 24, 42, 0.9) 0%, rgba(6, 12, 24, 0.72) 100%);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 40px rgba(90, 140, 190, 0.08);
}

.hero-frame-head {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding-top: 0.15rem;
}

.hero-frame-corner {
  position: absolute;
  width: 14px;
  height: 14px;
  z-index: 4;
  border-color: rgba(150, 188, 224, 0.55);
  border-style: solid;
  border-width: 0;
  opacity: 0.65;
  pointer-events: none;
}

.hero-frame-corner--tl {
  top: 8px;
  left: 8px;
  border-top-width: 1px;
  border-left-width: 1px;
}

.hero-frame-corner--br {
  bottom: 8px;
  right: 8px;
  border-bottom-width: 1px;
  border-right-width: 1px;
}

@media (min-width: 960px) {
  .hero-frame {
    margin-left: auto;
    margin-right: clamp(0rem, 2vw, 1.5rem);
    max-width: 100%;
  }
}

.hero-frame-meta {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-width: 100%;
}

.meta-bit {
  height: 3px;
  border-radius: 1px;
  background: linear-gradient(90deg, var(--border-subtle), transparent);
  max-width: 100%;
}

.meta-bit--short {
  max-width: 42%;
}

.hero-frame-foot {
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  padding-top: 0.65rem;
  display: flex;
  gap: 0.35rem;
  align-items: flex-end;
}

.foot-tick {
  flex: 1;
  height: 28px;
  border-bottom: 2px solid var(--accent-dim);
  opacity: 0.35;
}

.foot-tick:nth-child(2) {
  height: 42px;
  opacity: 0.5;
}

.foot-tick:nth-child(3) {
  height: 20px;
  opacity: 0.28;
}

/* ----- Hero workbench: cycling phase visuals ----- */
.page-home .hero-strip--workbench .hero-strip__item {
  transition:
    background 0.65s var(--ease-out),
    color 0.65s var(--ease-out),
    box-shadow 0.65s var(--ease-out),
    border-color 0.65s var(--ease-out);
  cursor: default;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.04);
}

.page-home .hero-strip--workbench .hero-strip__item.is-active {
  color: rgba(210, 228, 248, 0.95);
  background: rgba(100, 145, 195, 0.14);
  border-color: rgba(130, 175, 215, 0.28);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.2),
    0 0 20px rgba(90, 140, 190, 0.08);
}

.hero-viz {
  position: relative;
  z-index: 1;
  /* Phases are position:absolute with no in-flow content — without a floor, flex+min-height:0 can collapse this to 0px and clip all graphics */
  flex: 1 1 auto;
  min-height: clamp(6.5rem, 22vmin, 10rem);
  margin-top: 0.5rem;
  border-radius: calc(var(--radius-lg) - 8px);
  box-shadow: inset 0 0 0 1px rgba(200, 216, 236, 0.08);
  background: rgba(4, 10, 20, 0.35);
  overflow: hidden;
}

.hero-viz-phase {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.72s var(--ease-out);
}

.hero-viz-phase.is-active {
  opacity: 1;
}

/* ACQUIRE: capture lines + slow hex stream + progress edge */
.hero-viz-phase--acquire .hero-acq-lines {
  position: absolute;
  inset: 0;
  opacity: 0.14;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 6px,
      rgba(120, 165, 205, 0.22) 6px,
      rgba(120, 165, 205, 0.22) 7px
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0,
      transparent 22px,
      rgba(100, 145, 190, 0.1) 22px,
      rgba(100, 145, 190, 0.1) 23px
    );
}

.hero-viz-phase--acquire .hero-acq-stream {
  position: absolute;
  inset: 12% 8% 8%;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.45rem;
  overflow: hidden;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 88%, transparent 100%);
}

.hero-viz-phase--acquire .hero-acq-col {
  position: relative;
  overflow: hidden;
  border-left: 1px solid rgba(130, 175, 215, 0.1);
  background: linear-gradient(180deg, rgba(20, 38, 60, 0.06), rgba(6, 14, 24, 0.02));
}

.hero-viz-phase--acquire .hero-acq-col-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  display: block;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 560;
  line-height: 1;
  letter-spacing: 0.08em;
  color: rgba(182, 212, 236, 0.44);
  text-shadow: 0 0 10px rgba(88, 136, 182, 0.12);
  animation: hero-acq-pull 10.5s linear infinite;
}

.hero-viz-phase--acquire .hero-acq-col:nth-child(2) .hero-acq-col-text {
  animation-duration: 11.8s;
  animation-delay: -1.4s;
}

.hero-viz-phase--acquire .hero-acq-col:nth-child(3) .hero-acq-col-text {
  animation-duration: 9.9s;
  animation-delay: -4.1s;
}

.hero-viz-phase--acquire .hero-acq-col:nth-child(4) .hero-acq-col-text {
  animation-duration: 12.4s;
  animation-delay: -2.8s;
}

.hero-viz-phase--acquire .hero-acq-col:nth-child(5) .hero-acq-col-text {
  animation-duration: 10.2s;
  animation-delay: -5.2s;
}

.hero-viz-phase--acquire .hero-acq-col:nth-child(6) .hero-acq-col-text {
  animation-duration: 11.1s;
  animation-delay: -3.6s;
}

.hero-viz-phase--acquire .hero-acq-capline {
  position: absolute;
  top: 12%;
  bottom: 42%;
  width: 1px;
  left: 0;
  background: linear-gradient(
    180deg,
    transparent,
    rgba(150, 188, 220, 0.25) 20%,
    rgba(150, 188, 220, 0.45) 50%,
    rgba(150, 188, 220, 0.22) 80%,
    transparent
  );
  box-shadow: 0 0 12px rgba(100, 155, 200, 0.12);
  animation: hero-acq-capline 14s ease-in-out infinite;
  opacity: 0.55;
}

@keyframes hero-acq-pull {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-220%);
  }
}

@keyframes hero-acq-capline {
  0%,
  100% {
    left: 8%;
    opacity: 0.35;
  }
  50% {
    left: 78%;
    opacity: 0.65;
  }
}

/* EXAMINE: simplified phone inspection visual */
.hero-viz-phase--examine .hero-ex-stage {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  z-index: 0;
  padding: 0.5rem 0.6rem;
}

.hero-viz-phase--examine .hero-ex-phone {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  box-sizing: border-box;
  width: clamp(6.8rem, 44%, 8.4rem);
  min-width: 6.8rem;
  min-height: 10.3rem;
  aspect-ratio: 10 / 19;
  height: auto;
  border: 2px solid rgba(206, 228, 248, 0.9);
  border-radius: 14px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.11),
    0 10px 28px rgba(0, 0, 0, 0.4);
  background: linear-gradient(180deg, rgba(16, 30, 46, 0.9), rgba(8, 16, 30, 0.94));
}

.hero-viz-phase--examine .hero-ex-phone::before,
.hero-viz-phase--examine .hero-ex-phone::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  pointer-events: none;
}

.hero-viz-phase--examine .hero-ex-phone::before {
  top: 5%;
  width: 28%;
  height: 1.9%;
  min-height: 2px;
  background: rgba(184, 210, 236, 0.5);
}

.hero-viz-phase--examine .hero-ex-phone::after {
  bottom: 5.3%;
  width: 32%;
  height: 2%;
  min-height: 2px;
  background: rgba(172, 204, 232, 0.34);
}

.hero-viz-phase--examine .hero-ex-screen {
  position: absolute;
  inset: 9% 9% 11%;
  border-radius: 8px;
  border: 1px solid rgba(170, 206, 236, 0.46);
  background: linear-gradient(180deg, rgba(6, 15, 30, 0.98), rgba(4, 10, 20, 0.98));
  overflow: hidden;
  box-shadow:
    inset 0 0 16px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  min-height: 4.1rem;
}

.hero-viz-phase--examine .hero-ex-screen-grid {
  position: absolute;
  inset: 0;
  z-index: 1;
  opacity: 0.38;
  background-image:
    repeating-linear-gradient(0deg, rgba(142, 184, 220, 0.16) 0 1px, transparent 1px 13%),
    repeating-linear-gradient(90deg, rgba(128, 170, 206, 0.14) 0 1px, transparent 1px 18%);
}

.hero-viz-phase--examine .hero-ex-screen::before {
  content: "";
  position: absolute;
  inset: 16% 14% 18% 14%;
  z-index: 1;
  background:
    linear-gradient(180deg, rgba(160, 202, 236, 0.2) 1px, transparent 1px) 0 0 / 100% 16% no-repeat,
    linear-gradient(180deg, rgba(160, 202, 236, 0.2) 1px, transparent 1px) 0 48% / 100% 16% no-repeat,
    linear-gradient(180deg, rgba(160, 202, 236, 0.2) 1px, transparent 1px) 0 100% / 100% 16% no-repeat;
  pointer-events: none;
}

.hero-viz-phase--examine .hero-ex-screen::after {
  content: "";
  position: absolute;
  z-index: 2;
  left: 18%;
  top: 44%;
  width: 34%;
  height: 22%;
  border: 1px solid rgba(170, 208, 238, 0.34);
  background: rgba(126, 174, 212, 0.08);
  box-shadow: 0 0 0 1px rgba(84, 128, 170, 0.1);
  pointer-events: none;
}

.hero-viz-phase--examine .hero-ex-lens-layer {
  position: absolute;
  z-index: 3;
  top: 22%;
  left: 43%;
  width: clamp(2.6rem, 41%, 3.35rem);
  height: clamp(2.6rem, 41%, 3.35rem);
  min-width: 2.6rem;
  min-height: 2.6rem;
  pointer-events: none;
  animation: hero-ex-lens-scan-x 9.8s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-viz-phase--examine .hero-ex-lens-glow {
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 50%,
    rgba(206, 230, 250, 0.28) 0%,
    rgba(156, 196, 230, 0.12) 52%,
    transparent 76%
  );
  opacity: 0.4;
}

.hero-viz-phase--examine .hero-ex-lens-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid rgba(232, 246, 255, 0.94);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.14),
    inset 0 0 12px rgba(148, 194, 230, 0.2),
    0 0 10px rgba(96, 154, 204, 0.18);
  background: radial-gradient(circle at 38% 32%, rgba(255, 255, 255, 0.24) 0%, rgba(136, 186, 224, 0.14) 44%, transparent 64%);
}

.hero-viz-phase--examine .hero-ex-lens-ring::before {
  content: "";
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  border: 1px solid rgba(188, 218, 244, 0.36);
  background:
    repeating-linear-gradient(0deg, rgba(180, 214, 240, 0.18) 0 1px, transparent 1px 4px),
    repeating-linear-gradient(90deg, rgba(172, 208, 236, 0.16) 0 1px, transparent 1px 4px);
}

.hero-viz-phase--examine .hero-ex-lens-ring::after {
  content: "";
  position: absolute;
  width: 32%;
  height: 9%;
  left: 77%;
  top: 76%;
  border-radius: 999px;
  transform: rotate(36deg);
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(222, 240, 255, 0.8), rgba(118, 168, 208, 0.58));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes hero-ex-lens-scan-x {
  0%,
  10% {
    transform: translateX(0) translateY(0);
  }
  100%,
  90% {
    transform: translateX(34%) translateY(16%);
  }
}

/* REPORT: document-style bars */
.hero-viz-phase--report .hero-rp-doc {
  position: absolute;
  inset: 14% 10% 18%;
  display: grid;
  grid-template-rows: repeat(8, auto);
  align-content: start;
  row-gap: 0.38rem;
  padding-top: 0.12rem;
}

.hero-viz-phase--report .hero-rp-doc::after {
  content: "";
  position: absolute;
  right: 6%;
  width: 1px;
  height: 0.7rem;
  background: rgba(176, 210, 238, 0.5);
  box-shadow: 0 0 8px rgba(90, 140, 190, 0.2);
  animation: hero-rp-caret 5.6s steps(1, end) infinite;
}

.hero-rp-line {
  display: block;
  height: 1px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(160, 196, 228, 0.52), rgba(145, 182, 218, 0.09));
  opacity: 0.2;
  transform-origin: left center;
  clip-path: inset(0 100% 0 0);
  animation: hero-rp-type 5.6s linear infinite;
}

.hero-rp-line--head {
  width: 58%;
  margin-bottom: 0.22rem;
  height: 2px;
  opacity: 0.42;
  animation-delay: 0.05s;
}

.hero-rp-line--a {
  width: 94%;
  animation-delay: 0.35s;
}

.hero-rp-line--b {
  width: 86%;
  animation-delay: 0.75s;
}

.hero-rp-line--c {
  width: 92%;
  animation-delay: 1.15s;
}

.hero-rp-line--d {
  width: 83%;
  animation-delay: 1.55s;
}

.hero-rp-line--e {
  width: 88%;
  animation-delay: 1.95s;
}

.hero-rp-line--f {
  width: 74%;
  animation-delay: 2.35s;
}

.hero-rp-line--g {
  width: 66%;
  animation-delay: 2.75s;
}

@keyframes hero-rp-type {
  0% {
    clip-path: inset(0 100% 0 0);
    opacity: 0.12;
  }
  14%,
  72% {
    clip-path: inset(0 0 0 0);
    opacity: 0.54;
  }
  100% {
    clip-path: inset(0 0 0 0);
    opacity: 0.2;
  }
}

@keyframes hero-rp-caret {
  0%,
  12% {
    top: 0.15rem;
    opacity: 0.75;
  }
  13%,
  22% {
    top: 0.95rem;
    opacity: 0.68;
  }
  23%,
  32% {
    top: 1.72rem;
    opacity: 0.68;
  }
  33%,
  42% {
    top: 2.5rem;
    opacity: 0.66;
  }
  43%,
  52% {
    top: 3.28rem;
    opacity: 0.64;
  }
  53%,
  62% {
    top: 4.05rem;
    opacity: 0.62;
  }
  63%,
  72% {
    top: 4.82rem;
    opacity: 0.6;
  }
  73%,
  100% {
    top: 5.58rem;
    opacity: 0.35;
  }
}

/* TESTIFY: calm waveform bars */
.hero-viz-phase--testify .hero-tx-baseline {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 30%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(140, 175, 210, 0.36), transparent);
  opacity: 0.58;
}

.hero-viz-phase--testify .hero-tx-wave {
  position: absolute;
  left: 8%;
  right: 8%;
  bottom: 30%;
  height: 36%;
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 3px 4px;
  align-items: end;
  padding-bottom: 1px;
}

.hero-viz-phase--testify .hero-tx-wave::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent 0%, rgba(168, 202, 232, 0.14) 50%, transparent 100%);
  mix-blend-mode: screen;
  animation: hero-tx-sweep 6.2s ease-in-out infinite;
}

.hero-viz-phase--testify .hero-tx-wave span {
  display: block;
  min-height: 14%;
  border-radius: 1px;
  background: linear-gradient(180deg, rgba(170, 200, 232, 0.18), rgba(120, 165, 205, 0.42));
  transform-origin: bottom center;
  animation: hero-tx-bar 4.4s ease-in-out infinite;
  opacity: 0.62;
}

.hero-viz-phase--testify .hero-tx-wave span:nth-child(2n) {
  animation-duration: 5.4s;
}

.hero-viz-phase--testify .hero-tx-wave span:nth-child(3n) {
  animation-delay: 0.35s;
}

.hero-viz-phase--testify .hero-tx-wave span:nth-child(5n) {
  animation-delay: 0.7s;
}

.hero-viz-phase--testify .hero-tx-wave span:nth-child(7n) {
  animation-delay: 1.05s;
}

@keyframes hero-tx-bar {
  0%,
  100% {
    transform: scaleY(0.3);
    opacity: 0.36;
  }
  50% {
    transform: scaleY(0.92);
    opacity: 0.7;
  }
}

@keyframes hero-tx-sweep {
  0% {
    transform: translateX(-35%);
    opacity: 0;
  }
  20%,
  70% {
    opacity: 0.55;
  }
  100% {
    transform: translateX(35%);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-viz-phase--acquire .hero-acq-col-text,
  .hero-viz-phase--acquire .hero-acq-capline,
  .hero-viz-phase--examine .hero-ex-lens-layer,
  .hero-rp-line,
  .hero-viz-phase--report .hero-rp-doc::after,
  .hero-viz-phase--testify .hero-tx-wave::after,
  .hero-viz-phase--testify .hero-tx-wave span {
    animation: none !important;
  }

  .hero-viz-phase--acquire .hero-acq-capline {
    left: 42%;
    opacity: 0.45;
  }

  .hero-viz-phase--examine .hero-ex-lens-layer {
    left: 43%;
    top: 22%;
    transform: none;
  }

  .hero-rp-line {
    opacity: 0.4;
    transform: none;
  }

  .hero-viz-phase--testify .hero-tx-wave span {
    transform: scaleY(0.55);
    opacity: 0.55;
  }

  .hero-viz-phase {
    transition: opacity 0.35s ease;
  }
}

@media (max-width: 959px) {
  .hero-frame {
    max-width: 100%;
  }
}

/* Single hero accent: soft “interface” glow on the frame (homepage only) */
.page-home .hero--home .hero-frame {
  animation: hero-frame-glow 10s ease-in-out infinite alternate;
}

@keyframes hero-frame-glow {
  0% {
    border-color: rgba(120, 165, 205, 0.32);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 28px rgba(80, 130, 180, 0.07);
  }
  100% {
    border-color: rgba(150, 190, 228, 0.42);
    box-shadow:
      0 28px 56px rgba(0, 0, 0, 0.48),
      inset 0 1px 0 rgba(255, 255, 255, 0.08),
      0 0 48px rgba(100, 155, 205, 0.12);
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-home .hero--home .hero-frame {
    animation: none;
    border-color: rgba(130, 170, 210, 0.38);
    box-shadow:
      0 24px 48px rgba(0, 0, 0, 0.4),
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 36px rgba(90, 140, 190, 0.09);
  }
}

/* ----- Why ----- */
.why {
  background: linear-gradient(180deg, rgba(5, 10, 18, 0.5) 0%, rgba(8, 18, 32, 0.88) 38%, rgba(8, 18, 32, 0.88) 62%, rgba(5, 10, 18, 0.5) 100%);
  border-top: 1px solid var(--border-faint);
  border-bottom: 1px solid var(--border-faint);
}

.why-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: stretch;
}

@media (min-width: 920px) {
  .why-inner {
    grid-template-columns: 1.15fr 0.85fr;
    gap: var(--space-2xl);
  }
}

.why-copy > h2 {
  margin-top: 0;
}

.why-lead {
  font-size: 1.08rem;
  color: var(--text-secondary);
  margin: 0 0 var(--space-lg);
  line-height: 1.65;
}

.why-points {
  margin: 0;
  padding: 0;
  list-style: none;
}

.why-points li {
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border-left: 2px solid var(--border-subtle);
  margin-bottom: 0;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.65;
  transition: border-color 0.22s var(--ease-out);
}

.why-points li:hover {
  border-left-color: var(--accent-line);
}

.why-points li + li {
  border-top: 1px solid var(--border-faint);
}

.why-points strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.why-panel {
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(145deg, rgba(17, 31, 54, 0.75) 0%, rgba(7, 15, 28, 0.5) 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.why-quote {
  margin: 0 0 var(--space-md);
  padding: 0;
  border: none;
}

.why-quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  font-style: italic;
  line-height: 1.55;
  color: var(--text-primary);
}

.why-panel-note {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ----- Contact (shared form + intro patterns) ----- */
.contact-intro > p:not(.contact-note) {
  color: var(--text-secondary);
  margin: 0 0 var(--space-md);
  line-height: 1.7;
}

.contact-direct {
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-faint);
}

.contact-direct-label {
  margin: 0 0 var(--space-xs);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-direct p {
  margin: 0 0 var(--space-xs);
}

.contact-direct a {
  font-weight: 600;
  font-size: 1.05rem;
}

.contact-note {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: var(--space-sm);
}

.contact-form-wrap {
  padding: var(--space-lg) var(--space-xl);
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.field {
  margin-bottom: var(--space-md);
}

.field label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.req {
  color: var(--accent);
}

.optional {
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
  color: var(--text-muted);
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font: inherit;
  font-size: 1rem;
  color: var(--text-primary);
  background: var(--bg-deep);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus-visible,
.field textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field textarea {
  resize: vertical;
  min-height: 9rem;
}

.hp-wrap {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.contact-form {
  position: relative;
}

.captcha-slot {
  margin: 16px 0 20px;
  padding: var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(8, 14, 24, 0.58);
}

.captcha-slot .cf-turnstile {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.captcha-widget-shell {
  min-height: 82px;
  display: flex;
  align-items: center;
}

.captcha-widget-placeholder {
  width: 100%;
  min-height: 64px;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.captcha-note {
  margin: var(--space-sm) 0 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.btn-submit {
  width: 100%;
}

@media (min-width: 480px) {
  .btn-submit {
    width: auto;
    min-width: 12rem;
  }
}

/* Footer */
.site-footer {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-faint);
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-void) 100%);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.footer-tag {
  margin: 0 auto var(--space-md);
  max-width: 42rem;
  font-size: 0.8125rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1.6;
  text-transform: none;
  color: var(--text-muted);
}

.footer-legal {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Nav backdrop */
.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  top: var(--header-stack-h);
  z-index: 150;
  background: rgba(5, 10, 18, 0.65);
  backdrop-filter: blur(4px);
}

.nav-backdrop.is-visible {
  display: block;
}

/* Mobile nav */
@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: var(--header-stack-h);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-lg);
    padding: var(--space-lg) var(--container-pad) var(--space-xl);
    background: var(--bg-deep);
    border-bottom: 1px solid var(--border-faint);
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
    transform: translateY(-110%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.32s var(--ease-out), opacity 0.25s, visibility 0.25s;
    z-index: 160;
  }

  .site-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-md);
  }

  .nav-list a {
    font-size: 0.9rem;
  }

  .nav-cta {
    margin-left: 0;
    text-align: center;
    justify-content: center;
  }

  .section {
    padding-block: var(--space-xl);
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }

  .section-header--row {
    flex-direction: column;
    align-items: flex-start;
  }

  .section-header--row .btn--inline {
    margin-top: var(--space-sm);
  }
}

/* ----- Utilities ----- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ----- Homepage (short front door) ----- */
.section--home {
  padding-block: var(--space-lg);
}

@media (min-width: 769px) {
  .section--home {
    padding-block: var(--space-xl);
  }
}

.page-home .hero + .section-flow > .section--home:first-child {
  padding-top: var(--space-xs);
}

@media (min-width: 769px) {
  .page-home .hero + .section-flow > .section--home:first-child {
    padding-top: var(--space-sm);
  }
}

.services-preview {
  padding-top: var(--space-xl);
}

@media (min-width: 769px) {
  .services-preview {
    padding-top: var(--space-2xl);
  }
}

.section-header--row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: var(--space-md);
  max-width: none;
}

.section-header--row .section-intro {
  max-width: 36rem;
}

.btn--inline {
  flex-shrink: 0;
}

.preview-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 560px) {
  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .preview-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.preview-card {
  padding: var(--space-md) 0 var(--space-md) var(--space-md);
  border-left: 2px solid var(--border-subtle);
  transition: border-color 0.22s var(--ease-out);
}

.preview-card:hover {
  border-left-color: var(--accent-line);
}

.preview-card__title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.preview-card__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.62;
  color: var(--text-secondary);
}

.why-preview-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

@media (min-width: 880px) {
  .why-preview-inner {
    grid-template-columns: 1.1fr 0.9fr;
    gap: var(--space-2xl);
  }
}

.why-panel--compact {
  padding: var(--space-md) var(--space-lg);
}

.why-panel--compact .why-quote p {
  font-size: 1.05rem;
}

.cred-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

.cred-preview-pill {
  padding: 0.5rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: rgba(14, 26, 46, 0.5);
}

.home-cta {
  padding-block: var(--space-xl);
  background: linear-gradient(180deg, rgba(18, 34, 52, 0.4) 0%, rgba(122, 158, 191, 0.05) 45%, rgba(18, 34, 52, 0.35) 100%);
  border-top: 1px solid var(--border-strong);
}

.home-cta-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
}

.home-cta-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.65rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.home-cta-lead {
  margin: 0;
  max-width: 28rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ----- Inner page hero ----- */
.page-hero {
  position: relative;
  padding-block: var(--space-2xl) var(--space-xl);
  overflow: hidden;
}

.page-hero--compact {
  padding-block: var(--space-xl) var(--space-lg);
}

.page-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 65% at 75% 15%, rgba(130, 175, 210, 0.1) 0%, transparent 52%),
    radial-gradient(ellipse 60% 50% at 10% 80%, rgba(90, 135, 180, 0.05) 0%, transparent 45%),
    linear-gradient(182deg, var(--bg-deep) 0%, var(--bg-page) 55%, var(--bg-elevated) 100%);
  pointer-events: none;
}

.page-hero-bg--texture::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image:
    linear-gradient(rgba(180, 200, 220, 0.45) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 200, 220, 0.45) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 40rem;
}

.page-hero-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.45rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--text-primary);
}

.page-hero-lead {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.page-hero-lead + .page-hero-lead {
  margin-top: var(--space-md);
}

/* ----- Services detail page ----- */
.service-detail-inner {
  display: grid;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
}

@media (min-width: 720px) {
  .service-detail-inner {
    grid-template-columns: 3.5rem 1fr;
  }
}

.service-detail-index {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  color: var(--accent-dim);
  padding-top: 0.4rem;
  line-height: 1;
  width: 3ch;
  text-align: left;
  align-self: start;
}

.service-detail-body h2 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.service-detail-lead {
  margin: 0 0 var(--space-md);
  font-size: 1.02rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.service-detail-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.68;
}

.service-detail-list li {
  margin-bottom: var(--space-sm);
}

.service-detail-list li:last-child {
  margin-bottom: 0;
}

.service-detail-cta {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-faint);
}

.service-detail-cta-inner {
  text-align: center;
  max-width: 32rem;
  margin-inline: auto;
}

.service-detail-cta-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
}

.service-detail-cta-text {
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----- Credentials document page ----- */
.credential-flow {
  padding-bottom: var(--space-2xl);
}

.cred-doc-section {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-faint);
}

.credential-flow > .cred-doc-section:first-of-type {
  border-top: none;
  padding-top: var(--space-lg);
}

.cred-doc-block {
  max-width: 44rem;
}

.cred-doc-header {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-md);
  border-bottom: 1px solid var(--border-subtle);
}

.cred-doc-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cred-doc-deck {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.cred-doc-list {
  margin: 0;
}

.cred-doc-row {
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--border-faint);
}

.cred-doc-row:last-of-type {
  border-bottom: none;
}

.cred-doc-term {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
}

.cred-doc-desc {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cred-doc-bullets {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.68;
}

.cred-doc-bullets li {
  margin-bottom: var(--space-sm);
}

.cred-doc-note {
  margin: var(--space-lg) 0 0;
  padding: var(--space-md);
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  background: rgba(14, 26, 46, 0.45);
  border-left: 2px solid var(--accent-line);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}

.cred-practice-tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.cred-practice-tags li {
  position: relative;
  padding-left: var(--space-md);
  font-size: 0.98rem;
  line-height: 1.55;
  color: var(--text-secondary);
}

.cred-practice-tags li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  background: var(--accent-dim);
  border-radius: 1px;
}

.cred-page-cta {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  padding-block: var(--space-2xl);
}

.cred-page-cta-inner {
  padding: var(--space-xl);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: rgba(17, 31, 54, 0.4);
}

.cred-page-cta-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--text-primary);
}

.cred-page-cta-text {
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ----- About prose page ----- */
.about-article-inner {
  max-width: 40rem;
}

.about-prose p {
  margin: 0 0 var(--space-md);
  font-size: 1.02rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.about-prose .about-lead {
  font-size: 1.12rem;
  color: var(--text-primary);
  font-weight: 500;
}

.about-prose .about-closing {
  margin-top: var(--space-lg);
  padding-top: var(--space-md);
  border-top: 1px solid var(--border-faint);
}

/* ----- Contact page layout ----- */
.contact-page-inner {
  display: grid;
  gap: var(--space-xl);
  align-items: start;
  max-width: 46rem;
  margin-inline: auto;
}

@media (min-width: 800px) {
  .contact-page-inner {
    max-width: 46rem;
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.contact-intro--page {
  margin: 0;
}

.contact-direct--page {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.contact-page-note {
  margin: 0 auto;
  max-width: 42rem;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.75;
}

.contact-direct-panel {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
  padding: var(--space-md) var(--space-lg);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: linear-gradient(160deg, rgba(24, 40, 63, 0.7) 0%, rgba(12, 22, 36, 0.48) 100%);
}

.contact-direct-panel-label {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-direct-panel-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem var(--space-lg);
}

.contact-direct-panel-links a {
  font-size: clamp(1rem, 2vw, 1.08rem);
  font-weight: 600;
  text-decoration: none;
}

.contact-direct-panel-links a:hover {
  text-decoration: underline;
}

.contact-form-note {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 0.94rem;
}

.contact-direct-inline {
  margin: 0 0 var(--space-md);
  color: var(--text-muted);
  font-size: 0.86rem;
  line-height: 1.6;
}

.contact-direct-inline a {
  color: inherit;
  text-decoration-color: rgba(168, 184, 208, 0.45);
}

.contact-direct-inline a:hover {
  color: var(--text-secondary);
}

.form-alert {
  margin: 0 0 var(--space-md);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.form-alert[hidden] {
  display: none;
}

.form-alert.is-success {
  background: rgba(35, 68, 101, 0.34);
  border-color: rgba(151, 190, 224, 0.42);
}

.form-alert.is-error {
  background: rgba(80, 52, 35, 0.28);
  border-color: rgba(188, 149, 116, 0.52);
}

.form-alert-message {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.form-alert-close {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: rgba(8, 14, 24, 0.62);
  color: var(--text-primary);
  border-radius: var(--radius);
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
}

.form-alert-close:hover {
  border-color: var(--accent-line);
}

.captcha-code {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  color: var(--accent);
  font-weight: 500;
}

/* ----- Homepage: depth, panels, testimonials ----- */
.section-flow--home {
  position: relative;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 22%, var(--bg-page) 100%);
}

.section-flow--home > .section--home:nth-child(odd) {
  background: linear-gradient(180deg, rgba(38, 62, 92, 0.22) 0%, transparent 70%);
}

.section-flow--home > .section--home:nth-child(even) {
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.45) 0%, transparent 65%);
}

.section-flow--home > .section--home.home-testimonials {
  background: linear-gradient(180deg, rgba(20, 36, 56, 0.65) 0%, rgba(14, 26, 44, 0.35) 100%);
}

.section--panel .container {
  position: relative;
  z-index: 1;
}

.home-panel {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  box-shadow:
    var(--shadow-soft),
    0 1px 0 rgba(255, 255, 255, 0.05) inset;
  transition:
    border-color var(--duration-slow) var(--ease-premium),
    box-shadow var(--duration-slow) var(--ease-premium);
}

.home-panel:hover {
  border-color: rgba(182, 210, 234, 0.28);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.3),
    0 1px 0 rgba(255, 255, 255, 0.06) inset;
}

@media (min-width: 769px) {
  .home-panel {
    padding: var(--space-xl) var(--space-xl);
  }
}

.cred-preview-lead {
  margin-top: var(--space-sm);
  font-size: 0.95rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.home-testimonials {
  padding-block: var(--space-2xl);
  background: transparent;
  border-top: none;
  border-bottom: none;
}

.testimonials-preface {
  margin: 0 0 var(--space-md);
  max-width: 42rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.testimonials-heading {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.testimonial-pair {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .testimonial-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.testimonial-box {
  margin: 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(165deg, rgba(28, 48, 72, 0.65) 0%, rgba(16, 30, 50, 0.5) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 16px 44px rgba(0, 0, 0, 0.2);
  position: relative;
  overflow: hidden;
}

.testimonial-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent));
  opacity: 0.32;
}

.testimonial-box__quote {
  margin: 0;
  padding: 0;
  border: none;
}

.testimonial-box__quote p {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.04rem;
  font-style: italic;
  line-height: 1.65;
  color: var(--text-secondary);
}

.testimonial-box__attr {
  margin: var(--space-md) 0 0;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.cred-doc-prose {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* ----- Refined inner pages: depth, panels, glow ----- */
.page-hero-inner--wide {
  max-width: 44rem;
}

.page-hero-bg--glow::before {
  content: "";
  position: absolute;
  inset: -25% -15% auto -15%;
  height: 75%;
  background: radial-gradient(ellipse 65% 55% at 50% 0%, rgba(122, 158, 191, 0.1) 0%, transparent 68%);
  pointer-events: none;
}

.page-services .page-hero-bg {
  background:
    linear-gradient(175deg, rgba(9, 18, 32, 0.88) 0%, rgba(12, 24, 40, 0.74) 44%, rgba(12, 22, 38, 0.86) 100%),
    radial-gradient(ellipse 88% 62% at 76% 14%, rgba(122, 158, 191, 0.09) 0%, transparent 56%),
    url("images/abstract-minimalistic-3d-rendering-background-art_1032298-760.avif"),
    linear-gradient(182deg, var(--bg-deep) 0%, var(--bg-page) 55%, var(--bg-elevated) 100%);
  background-size: auto, auto, cover, auto;
  background-position: center, center, 64% center, center;
  background-repeat: no-repeat;
}

.page-services .page-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 10, 18, 0.22) 0%, rgba(5, 10, 18, 0.5) 100%),
    radial-gradient(ellipse 60% 52% at 88% 68%, rgba(8, 16, 28, 0.35) 0%, transparent 62%);
  pointer-events: none;
}

@media (max-width: 760px) {
  .page-services .page-hero-bg {
    background-position: center, center, 72% center, center;
  }
}

.page-intro-panel {
  margin-top: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background:
    linear-gradient(165deg, rgba(14, 26, 46, 0.82) 0%, rgba(7, 15, 28, 0.5) 100%);
  box-shadow:
    0 22px 55px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.page-intro-text {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text-secondary);
}

.section-flow--services {
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(14, 24, 38, 0.45) 18%, var(--bg-page) 55%, rgba(14, 24, 38, 0.35) 82%, var(--bg-deep) 100%);
}

.service-block {
  padding-block: var(--space-xl);
  border-top: 1px solid var(--border-faint);
}

.service-block:first-of-type {
  border-top: none;
}

.service-block--accent {
  background: radial-gradient(ellipse 75% 55% at 15% 40%, rgba(122, 158, 191, 0.06) 0%, transparent 60%);
}

.service-block-inner {
  display: grid;
  gap: var(--space-md) var(--space-lg);
  align-items: start;
  padding: var(--space-lg) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(17, 31, 54, 0.58) 0%, rgba(7, 15, 28, 0.38) 100%);
  box-shadow:
    0 18px 50px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.service-block--accent .service-block-inner {
  border-color: rgba(107, 147, 184, 0.22);
  box-shadow:
    0 22px 58px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 0 1px rgba(107, 147, 184, 0.06);
}

@media (min-width: 720px) {
  .service-block-inner {
    grid-template-columns: 3.5rem 1fr;
    padding: var(--space-xl);
  }
}

.services-direct {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-strong);
}

.services-capabilities {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-faint);
}

.services-capabilities-shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107, 147, 184, 0.18);
  background: linear-gradient(180deg, rgba(18, 32, 54, 0.68) 0%, rgba(8, 16, 30, 0.56) 100%);
  box-shadow:
    0 22px 54px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.services-capabilities-shell::before {
  content: none;
}

.services-capabilities-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 78% 65% at 18% 26%, rgba(20, 40, 62, 0.24) 0%, transparent 62%),
    linear-gradient(165deg, rgba(8, 17, 30, 0.72) 0%, rgba(10, 20, 34, 0.64) 42%, rgba(8, 14, 24, 0.76) 100%);
}

.services-capabilities-shell > * {
  position: relative;
  z-index: 1;
}

.services-capabilities-header {
  max-width: 54rem;
  margin-bottom: var(--space-lg);
}

.services-capabilities-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.services-capabilities-intro {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.72;
  font-size: 1rem;
}

.services-capabilities-intro:last-child {
  margin-bottom: 0;
}

.services-capabilities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-sm) var(--space-lg);
}

@media (min-width: 860px) {
  .services-capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.services-capability-item {
  margin: 0;
  padding: 0.95rem 0 1rem;
  border-top: 1px solid rgba(170, 192, 220, 0.18);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  height: 100%;
}

.page-services .services-capabilities-grid {
  align-items: stretch;
}

.services-capability-title {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

.services-capability-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.65;
}

@media (max-width: 700px) {
  .services-capabilities-shell::before {
    content: none;
  }
}

.services-direct-panel {
  max-width: 38rem;
  margin-inline: auto;
  text-align: center;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(107, 147, 184, 0.2);
  background: linear-gradient(165deg, rgba(18, 32, 54, 0.95) 0%, rgba(5, 10, 18, 0.88) 100%);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 100px rgba(107, 147, 184, 0.07);
}

.services-direct-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.5vw, 1.6rem);
  font-weight: 600;
  color: var(--text-primary);
}

.services-direct-text {
  margin: 0 0 var(--space-lg);
  color: var(--text-secondary);
  line-height: 1.72;
  font-size: 1.02rem;
}

/* Credentials refined layout */
.cred-opening {
  font-size: 1.02rem;
  line-height: 1.72;
}

.credential-flow--layered {
  padding-bottom: var(--space-2xl);
}

.cred-surface {
  padding-block: var(--space-2xl);
  border-top: 1px solid var(--border-faint);
}

.cred-surface:first-of-type {
  border-top: none;
}

.cred-surface--certs {
  padding-block: var(--space-2xl);
  background:
    radial-gradient(ellipse 95% 75% at 50% 0%, rgba(107, 147, 184, 0.1) 0%, transparent 58%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.5) 0%, transparent 100%);
}

.cred-surface--certs .cred-cert-grid::before {
  content: "";
  position: absolute;
  inset: -12px;
  border-radius: var(--radius-lg);
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 11px,
    rgba(107, 147, 184, 0.04) 11px,
    rgba(107, 147, 184, 0.04) 12px
  );
  opacity: 0.6;
  pointer-events: none;
  z-index: 0;
}

.cred-surface--certs .cred-cert-grid li {
  position: relative;
  z-index: 1;
}

.cred-section-title {
  margin: 0 0 var(--space-lg);
  font-family: var(--font-display);
  font-size: clamp(1.28rem, 2.2vw, 1.55rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.cred-cert-grid {
  position: relative;
  list-style: none;
  margin: 0;
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
  grid-template-columns: repeat(auto-fill, minmax(5.75rem, 1fr));
  max-width: 38rem;
}

.cred-cert-grid li {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-align: center;
  padding: var(--space-sm) var(--space-xs);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: rgba(12, 22, 40, 0.75);
  color: var(--text-secondary);
}

.cred-prose-block p {
  margin: 0 0 var(--space-md);
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
  max-width: 42rem;
}

.cred-prose-block p:last-child {
  margin-bottom: 0;
}

.cred-simple-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.72;
  max-width: 40rem;
}

.cred-simple-list li {
  margin-bottom: var(--space-sm);
}

/* About page */
.section-flow--about {
  background: linear-gradient(180deg, var(--bg-page) 0%, rgba(5, 10, 18, 0.55) 40%, var(--bg-page) 100%);
}

.about-prose--panel {
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(180deg, rgba(16, 28, 48, 0.7) 0%, rgba(7, 15, 28, 0.45) 100%);
  box-shadow: 0 26px 60px rgba(0, 0, 0, 0.28);
}

@media (min-width: 720px) {
  .about-prose--panel {
    padding: var(--space-xl) var(--space-xl);
  }
}

.about-aside {
  padding-block: var(--space-xl) var(--space-2xl);
}

.about-next-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-lg);
  padding: var(--space-lg) var(--space-xl);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  background: rgba(107, 147, 184, 0.05);
  box-shadow: inset 0 0 0 1px rgba(107, 147, 184, 0.1);
}

.about-next-text {
  margin: 0;
  flex: 1;
  min-width: 17rem;
  color: var(--text-secondary);
  line-height: 1.68;
  font-size: 1.02rem;
}

/* ----- Site wide contrast, hero accents, inner page polish ----- */
.section-flow--contrast {
  background:
    radial-gradient(ellipse 80% 45% at 50% 0%, rgba(120, 165, 205, 0.07) 0%, transparent 52%),
    linear-gradient(
      185deg,
      var(--bg-deep) 0%,
      var(--bg-page) 14%,
      var(--bg-elevated) 52%,
      var(--bg-page) 86%,
      var(--bg-deep) 100%
    );
}

/* Homepage uses both utilities; contrast rule above would win — align with simplified home flow */
.section-flow--home.section-flow--contrast {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-page) 28%, var(--bg-page) 100%);
}

.page-hero--accent {
  border-bottom: 1px solid var(--border-faint);
}

.page-hero--accent .page-hero-title {
  text-shadow: 0 0 48px rgba(122, 158, 191, 0.1);
}

.page-hero-bg--glow-soft::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 70%;
  background: radial-gradient(ellipse 60% 50% at 50% 0%, rgba(122, 158, 191, 0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-contact .page-hero-bg--contact {
  background:
    linear-gradient(180deg, rgba(6, 14, 26, 0.26) 0%, rgba(6, 14, 26, 0.62) 100%),
    linear-gradient(168deg, rgba(10, 22, 38, 0.7) 0%, rgba(12, 24, 40, 0.52) 42%, rgba(6, 14, 24, 0.76) 100%),
    url("images/Contact.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.82) saturate(0.92) contrast(0.97);
}

.page-contact .page-hero-bg--contact::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(5, 12, 24, 0.72),
    rgba(5, 12, 24, 0.84)
  );
  pointer-events: none;
}

@media (max-width: 720px) {
  .page-contact .page-hero-bg--contact {
    background-position: center 28%;
  }
}

.page-hero--contact-accent {
  padding-bottom: var(--space-xl);
}

.section-flow--contact {
  padding-bottom: var(--space-2xl);
}

.contact-page-section--panel .contact-page-inner {
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(14, 26, 46, 0.55) 0%, rgba(7, 15, 28, 0.35) 100%);
  box-shadow:
    0 22px 56px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.contact-page-section--panel .contact-form-wrap {
  width: 100%;
  max-width: 42rem;
  margin-inline: auto;
}

@media (min-width: 800px) {
  .contact-page-section--panel .contact-page-inner {
    padding: var(--space-xl);
  }
}

.page-intro-panel--split {
  display: grid;
  gap: var(--space-md);
}

@media (min-width: 640px) {
  .page-intro-panel--split {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }
}

.service-block-inner--panel {
  position: relative;
  overflow: hidden;
}

.service-block-inner--panel::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.055;
  pointer-events: none;
  background-image: repeating-linear-gradient(
    -12deg,
    transparent,
    transparent 18px,
    rgba(180, 200, 220, 0.12) 18px,
    rgba(180, 200, 220, 0.12) 19px
  );
}

.service-block-inner--panel > * {
  position: relative;
  z-index: 1;
}

.service-block:nth-child(even) .service-block-inner {
  margin-inline-start: clamp(0rem, 3vw, 1.75rem);
}

.service-block:nth-child(odd) .service-block-inner {
  margin-inline-end: clamp(0rem, 3vw, 1.75rem);
}

@media (max-width: 719px) {
  .service-block:nth-child(even) .service-block-inner,
  .service-block:nth-child(odd) .service-block-inner {
    margin-inline: 0;
  }
}

.services-direct-panel--close {
  padding-block: var(--space-lg);
}

/* Homepage depth */
.hero--home {
  border-bottom: none;
}

/* Homepage: hero height follows content; strong separation from body */
.page-home .hero.hero--home {
  position: relative;
  min-height: auto;
  padding-block: clamp(1.35rem, 4vw, 2.25rem) clamp(1rem, 2.5vw, 1.75rem);
  border-bottom: 1px solid rgba(0, 0, 0, 0.45);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.page-home .hero.hero--home::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(180deg, rgba(50, 78, 108, 0.14) 0%, rgba(22, 38, 58, 0.06) 44%, rgba(8, 14, 24, 0.3) 100%);
}

.page-home .hero--home .hero-lead {
  margin-bottom: var(--space-md);
}

.page-home .hero--home .hero-main {
  gap: clamp(2rem, 5vw, 3.25rem);
}

@media (min-width: 960px) {
  .page-home .hero--home .hero-main {
    grid-template-columns: minmax(0, 1.06fr) minmax(260px, 0.82fr);
    gap: clamp(2.25rem, 5.5vw, 4.25rem);
    align-items: center;
  }
}

.hero--home .hero-shell {
  position: relative;
}

.hero--home .hero-shell::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 56px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(18, 34, 52, 0.35));
}

.page-home .hero--home .hero-shell::after {
  height: 48px;
  background: linear-gradient(180deg, transparent, rgba(6, 12, 22, 0.65));
}

.page-home .hero--home .hero-title {
  text-shadow:
    0 3px 40px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-home .hero--home .hero-lead {
  max-width: 40rem;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35);
}

.page-home .hero--home .hero-eyebrow {
  margin-bottom: var(--space-lg);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.35);
}

.page-home .hero--home .hero-content {
  position: relative;
  isolation: isolate;
}

.page-home .hero--home .hero-content::before {
  content: "";
  position: absolute;
  z-index: -1;
  pointer-events: none;
  left: -7%;
  top: -18%;
  width: min(58vw, 620px);
  height: min(48vw, 500px);
  background: radial-gradient(ellipse at 32% 38%, rgba(110, 152, 196, 0.2) 0%, rgba(92, 132, 174, 0.1) 38%, rgba(70, 104, 140, 0.04) 62%, transparent 78%);
  filter: blur(18px);
  opacity: 0.34;
}

.home-panel--lift {
  box-shadow:
    0 22px 56px rgba(8, 16, 28, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.home-panel--narrow {
  max-width: 56rem;
  margin-inline: auto;
}

.why-points--plain {
  list-style: none;
  margin: var(--space-md) 0 0;
  padding: 0;
}

.why-points--plain li {
  position: relative;
  margin: 0 0 var(--space-sm);
  padding-left: var(--space-md);
  font-size: 0.98rem;
  line-height: 1.65;
  color: var(--text-secondary);
}

.why-points--plain li:last-child {
  margin-bottom: 0;
}

.why-points--plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 1px;
  background: var(--accent-dim);
}

/* Business investigations (business-forensics page) */
.business-intro-band {
  background: linear-gradient(180deg, #060d18 0%, #0a1628 55%, var(--bg-page) 100%);
  border-bottom: 1px solid var(--border-strong);
  padding-block: var(--space-lg) var(--space-md);
}

.business-intro-band-inner {
  position: relative;
}

.section-kicker--on-dark {
  color: rgba(143, 163, 188, 0.85);
}

.business-intro-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--text-primary);
}

.page-hero--business {
  padding-top: clamp(var(--space-lg), 4vw, var(--space-xl));
  padding-bottom: clamp(var(--space-xl), 4.5vw, var(--space-2xl));
  min-height: clamp(19rem, 38vw, 25rem);
  display: flex;
  align-items: flex-end;
}

.page-hero--tight {
  padding-bottom: var(--space-md);
}

.page-business .page-hero-bg--business-photo {
  background:
    linear-gradient(180deg, rgba(7, 15, 28, 0.3) 0%, rgba(7, 14, 26, 0.68) 100%),
    linear-gradient(165deg, rgba(8, 18, 32, 0.6) 0%, rgba(14, 28, 46, 0.48) 46%, rgba(7, 14, 24, 0.66) 100%),
    url("images/modern_building.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.82) saturate(0.92) contrast(0.96);
}

.page-business .page-hero-bg--business-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.16) 0%, rgba(8, 14, 24, 0.62) 92%),
    radial-gradient(ellipse 72% 60% at 16% 26%, rgba(34, 58, 82, 0.26) 0%, transparent 66%),
    linear-gradient(130deg, rgba(10, 22, 38, 0.14) 0%, transparent 45%);
  pointer-events: none;
}

.page-business .page-hero-inner {
  max-width: 44rem;
  padding-bottom: clamp(0.2rem, 1vw, 0.6rem);
}

.page-business .page-hero-title {
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.52);
}

.page-business .page-hero-lead {
  color: rgba(232, 239, 247, 0.95);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.44);
  max-width: 41rem;
}

.page-business .page-hero-lead + .page-hero-lead {
  margin-top: 0.7rem;
}

@media (max-width: 720px) {
  .page-business .page-hero-bg--business-photo {
    background-position: center 26%;
  }

  .page-hero--business {
    min-height: clamp(17rem, 58vw, 21rem);
  }
}

.business-lead-pair {
  margin: var(--space-md) 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 44rem;
}

.business-lead-line {
  display: block;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.section-flow--business {
  background: linear-gradient(180deg, rgba(12, 22, 36, 0.92) 0%, var(--bg-page) 22%, rgba(16, 30, 46, 0.88) 62%, var(--bg-deep) 100%);
}

.biz-section {
  padding-block: clamp(var(--space-xl), 3.2vw, var(--space-2xl));
}

.section-flow--business > .biz-section:first-of-type {
  padding-top: clamp(var(--space-2xl), 6vw, 6.6rem);
}

.biz-section--alt {
  background: linear-gradient(180deg, rgba(8, 16, 30, 0.52) 0%, rgba(8, 16, 30, 0.34) 100%);
  border-block: 1px solid var(--border-faint);
}

.biz-panel {
  max-width: 40rem;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(160, 188, 218, 0.18);
  background: linear-gradient(165deg, rgba(15, 28, 46, 0.8) 0%, rgba(7, 15, 28, 0.54) 100%);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 1px rgba(95, 132, 168, 0.04);
}

.biz-panel--raised {
  border-color: rgba(122, 160, 196, 0.3);
  box-shadow:
    0 28px 68px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 0 96px rgba(107, 147, 184, 0.07);
}

.biz-panel-title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.biz-panel-text {
  margin: 0;
  font-size: 1rem;
  line-height: 1.74;
  color: var(--text-secondary);
  max-width: 37rem;
}

.biz-closing {
  padding-block: var(--space-2xl);
  text-align: center;
}

.biz-closing-text {
  margin: 0 auto var(--space-lg);
  max-width: 36rem;
  font-size: 1.02rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

/* Credentials page: hero stack, cert tiles, lists */
.page-hero--credentials {
  padding-top: clamp(var(--space-lg), 4vw, var(--space-xl));
  padding-bottom: clamp(var(--space-xl), 4.5vw, var(--space-2xl));
  min-height: clamp(18.5rem, 36vw, 24rem);
  display: flex;
  align-items: flex-end;
}

.cred-hero-stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.cred-hero-prose p {
  margin: 0 0 var(--space-sm);
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-secondary);
}

.cred-hero-prose p:last-child {
  margin-bottom: 0;
}

.page-credentials .page-hero-bg--credentials-photo {
  background:
    linear-gradient(180deg, rgba(8, 16, 30, 0.34) 0%, rgba(8, 16, 30, 0.76) 100%),
    linear-gradient(165deg, rgba(10, 20, 34, 0.72) 0%, rgba(18, 34, 54, 0.54) 46%, rgba(8, 14, 24, 0.8) 100%),
    url("images/man-holding-out-hand.webp");
  background-size: cover;
  background-position: center 32%;
  background-repeat: no-repeat;
  filter: brightness(0.8) saturate(0.9) contrast(0.95);
}

.page-credentials .page-hero-bg--credentials-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 14, 24, 0.16) 0%, rgba(8, 14, 24, 0.68) 92%),
    radial-gradient(ellipse 72% 60% at 16% 24%, rgba(30, 54, 78, 0.26) 0%, transparent 66%);
  pointer-events: none;
}

.page-credentials .page-hero-inner {
  max-width: 44rem;
  padding-bottom: clamp(0.2rem, 1vw, 0.6rem);
}

.page-credentials .page-hero-title {
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.46);
}

.page-credentials .page-hero-lead,
.page-credentials .cred-hero-prose p {
  color: rgba(230, 238, 246, 0.94);
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
  .page-credentials .page-hero-bg--credentials-photo {
    background-position: center 28%;
  }

  .page-hero--credentials {
    min-height: clamp(17rem, 58vw, 21rem);
  }
}

.cred-surface--certs {
  position: relative;
  overflow: hidden;
}

.cred-surface--certs::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.4;
  pointer-events: none;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 16px,
    rgba(107, 147, 184, 0.04) 16px,
    rgba(107, 147, 184, 0.04) 17px
  );
}

.cred-surface--certs .container {
  position: relative;
  z-index: 1;
}

.cred-cert-tiles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: repeat(auto-fill, minmax(7.75rem, 1fr));
  max-width: 52rem;
}

.cred-cert-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 5.75rem;
  padding: var(--space-md) var(--space-sm);
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  background: linear-gradient(165deg, rgba(20, 36, 62, 0.88) 0%, rgba(8, 14, 26, 0.68) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 14px 36px rgba(0, 0, 0, 0.22);
}

.cred-cert-name {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.cred-cert-issuer {
  margin-top: var(--space-xs);
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.cred-plain-lines {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 40rem;
}

.cred-plain-lines li {
  position: relative;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  border-bottom: 1px solid var(--border-faint);
  color: var(--text-secondary);
  line-height: 1.65;
  font-size: 1.02rem;
}

.cred-plain-lines li:last-child {
  border-bottom: none;
}

.cred-plain-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.05em;
  width: 4px;
  height: 4px;
  border-radius: 1px;
  background: var(--accent-dim);
}

/* ----- Credentials page: flow rhythm, background showcase, panels ----- */
.page-credentials .credential-flow--page.section-flow--contrast {
  background: linear-gradient(
    185deg,
    var(--bg-deep) 0%,
    var(--bg-page) 18%,
    rgba(20, 36, 56, 0.98) 42%,
    var(--bg-page) 72%,
    var(--bg-deep) 100%
  );
}

.page-credentials .credential-flow > .cred-surface {
  border-top-color: rgba(160, 188, 220, 0.08);
}

.page-credentials .credential-flow > .cred-surface:first-of-type {
  border-top: none;
}

.page-credentials .credential-flow > .cred-surface .cred-section-title:not(.cred-section-title--feature) {
  font-size: clamp(1.38rem, 2.5vw, 1.78rem);
  margin-bottom: var(--space-xl);
  letter-spacing: -0.025em;
}

.cred-surface--background {
  padding-block: var(--space-3xl);
  background:
    radial-gradient(ellipse 70% 55% at 18% 0%, rgba(95, 145, 195, 0.09) 0%, transparent 52%),
    linear-gradient(180deg, rgba(6, 12, 22, 0.65) 0%, transparent 85%);
}

.cred-bg-panel {
  position: relative;
  max-width: 56rem;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(26, 44, 68, 0.88) 0%, rgba(12, 24, 42, 0.94) 100%);
  border: 1px solid rgba(120, 160, 200, 0.14);
  box-shadow:
    0 32px 80px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 100px rgba(60, 100, 150, 0.06);
}

.cred-bg-panel::before {
  content: "";
  position: absolute;
  top: var(--space-xl);
  left: 0;
  width: 3px;
  height: 4rem;
  max-height: calc(100% - var(--space-2xl));
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, rgba(130, 175, 215, 0.85) 0%, rgba(90, 130, 175, 0.15) 100%);
  pointer-events: none;
}

@media (min-width: 769px) {
  .cred-bg-panel {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.cred-section-title--feature {
  font-size: clamp(1.5rem, 2.9vw, 1.95rem);
  margin-bottom: var(--space-lg);
  letter-spacing: -0.03em;
}

.cred-bg-lead {
  margin: 0 0 var(--space-xl);
  padding-left: var(--space-md);
  font-size: 1.08rem;
  line-height: 1.68;
  color: var(--text-secondary);
  max-width: 48rem;
}

@media (min-width: 769px) {
  .cred-bg-lead {
    padding-left: calc(var(--space-md) + 3px);
  }
}

.cred-bg-pillars {
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--space-md);
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 769px) {
  .cred-bg-pillars {
    padding-left: calc(var(--space-md) + 3px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl) var(--space-xl);
  }
}

.cred-bg-pillar {
  margin: 0;
  padding-top: var(--space-md);
  border-top: 1px solid rgba(130, 165, 200, 0.14);
}

@media (min-width: 769px) {
  .cred-bg-pillar:nth-child(1),
  .cred-bg-pillar:nth-child(2) {
    padding-top: 0;
    border-top: none;
  }

  .cred-bg-pillar:nth-child(3),
  .cred-bg-pillar:nth-child(4) {
    padding-top: var(--space-lg);
    margin-top: var(--space-xs);
    border-top: 1px solid rgba(130, 165, 200, 0.14);
  }
}

.cred-bg-pillar-title {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.cred-bg-pillar-text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* NCFI: single panel, course list — aligned with certifications page weight */
.cred-surface--ncfi {
  position: relative;
  padding-block: var(--space-3xl);
  overflow: hidden;
  background:
    radial-gradient(ellipse 95% 75% at 50% 0%, rgba(107, 147, 184, 0.09) 0%, transparent 58%),
    linear-gradient(180deg, rgba(5, 10, 18, 0.45) 0%, transparent 100%);
}

.cred-surface--ncfi::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  pointer-events: none;
  background: repeating-linear-gradient(
    -18deg,
    transparent,
    transparent 16px,
    rgba(107, 147, 184, 0.04) 16px,
    rgba(107, 147, 184, 0.04) 17px
  );
}

.cred-surface--ncfi .container {
  position: relative;
  z-index: 1;
}

.cred-ncfi-panel {
  max-width: 52rem;
  margin-inline: auto;
  padding: var(--space-xl) var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(22, 40, 62, 0.88) 0%, rgba(12, 22, 40, 0.92) 100%);
  border: 1px solid rgba(120, 160, 200, 0.14);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.055),
    0 0 80px rgba(60, 100, 150, 0.05);
}

@media (min-width: 769px) {
  .cred-ncfi-panel {
    padding: var(--space-2xl) var(--space-xl);
  }
}

.cred-ncfi-intro {
  margin: 0 0 var(--space-xl);
  max-width: 40rem;
  font-size: 1.05rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cred-ncfi-courses {
  list-style: none;
  margin: 0;
  padding: 0;
}

.cred-ncfi-courses li {
  margin: 0;
  padding: var(--space-sm) 0 var(--space-sm) var(--space-md);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--text-primary);
  border-bottom: 1px solid rgba(130, 165, 200, 0.12);
  position: relative;
}

.cred-ncfi-courses li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15em;
  width: 5px;
  height: 1px;
  background: rgba(140, 180, 220, 0.55);
}

.cred-ncfi-courses li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

@media (min-width: 720px) {
  .cred-ncfi-courses {
    column-count: 2;
    column-gap: var(--space-2xl);
  }

  .cred-ncfi-courses li {
    break-inside: avoid;
    padding-right: var(--space-sm);
  }
}

/* Education: card rows */
.cred-surface--edu {
  padding-block: var(--space-3xl);
  background: linear-gradient(180deg, rgba(8, 16, 28, 0.4) 0%, transparent 45%, rgba(8, 16, 28, 0.25) 100%);
}

.cred-edu-intro {
  margin: 0 0 var(--space-xl);
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cred-edu-shell {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 52rem;
}

.cred-edu-card {
  margin: 0;
  padding: var(--space-lg) var(--space-lg) var(--space-lg) calc(var(--space-lg) + 3px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(120, 160, 200, 0.12);
  background: linear-gradient(100deg, rgba(28, 48, 72, 0.65) 0%, rgba(14, 26, 44, 0.85) 100%);
  box-shadow:
    0 20px 52px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-left: 3px solid rgba(120, 168, 210, 0.45);
}

@media (min-width: 640px) {
  .cred-edu-card {
    padding: var(--space-xl) var(--space-xl) var(--space-xl) calc(var(--space-xl) + 3px);
  }
}

.cred-edu-card__meta {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-dim);
}

.cred-edu-card__degree {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.4rem);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--text-primary);
}

.cred-edu-card__school {
  margin: 0;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Teaching & speaking */
.cred-surface--teach {
  padding-block: var(--space-3xl);
  background: linear-gradient(180deg, transparent 0%, rgba(6, 14, 26, 0.5) 40%, transparent 100%);
}

.cred-teach-lead {
  margin: 0 0 var(--space-xl);
  max-width: 42rem;
  font-size: 1.02rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

.cred-teach-shell {
  max-width: 52rem;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  background: linear-gradient(165deg, rgba(20, 36, 56, 0.82) 0%, rgba(10, 20, 36, 0.75) 100%);
  border: 1px solid rgba(115, 155, 195, 0.14);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

@media (min-width: 640px) {
  .cred-teach-shell {
    padding: var(--space-xl);
  }
}

.cred-teach-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .cred-teach-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.cred-teach-block {
  padding: var(--space-md) 0 0;
  border-top: 1px solid rgba(130, 165, 200, 0.15);
}

.cred-teach-block:first-child {
  padding-top: 0;
  border-top: none;
}

@media (min-width: 720px) {
  .cred-teach-block {
    padding: 0 var(--space-md) 0 0;
    border-top: none;
    border-right: 1px solid rgba(130, 165, 200, 0.12);
  }

  .cred-teach-block:first-child {
    padding-top: 0;
  }

  .cred-teach-block:last-child {
    padding-right: 0;
    border-right: none;
    padding-left: var(--space-md);
  }
}

.cred-teach-block__title {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.12rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  line-height: 1.3;
}

.cred-teach-block__text {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* About page hero */
.about-hero {
  position: relative;
  padding-block: clamp(var(--space-xl), 4.2vw, var(--space-2xl)) clamp(var(--space-xl), 3.8vw, var(--space-2xl));
  min-height: clamp(18.5rem, 36vw, 24rem);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  border-bottom: 1px solid var(--border-faint);
}

.about-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(7, 14, 26, 0.4) 0%, rgba(7, 14, 26, 0.82) 100%),
    linear-gradient(162deg, rgba(9, 18, 32, 0.78) 0%, rgba(16, 30, 48, 0.56) 44%, rgba(8, 14, 24, 0.84) 100%),
    url("images/Binary_motherboard.jpg");
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  filter: brightness(0.74) saturate(0.86) contrast(0.94);
  pointer-events: none;
}

.about-hero-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 72% 58% at 20% 22%, rgba(34, 58, 82, 0.26) 0%, transparent 65%),
    linear-gradient(180deg, rgba(8, 14, 24, 0.12) 0%, rgba(8, 14, 24, 0.62) 90%);
  pointer-events: none;
}

.about-hero-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.032;
  background-image:
    linear-gradient(rgba(180, 200, 220, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(180, 200, 220, 0.4) 1px, transparent 1px);
  background-size: 38px 38px;
  pointer-events: none;
}

.about-hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: var(--space-xl);
  align-items: start;
}

.about-hero-inner--single {
  max-width: 46rem;
}

.about-hero .section-kicker {
  margin: 0 0 0.75rem;
}

.about-hero-title {
  margin: 0 0 var(--space-md);
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4.5vw, 3.15rem);
  font-weight: 600;
  letter-spacing: -0.032em;
  line-height: 1.08;
  color: var(--text-primary);
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.42);
}

.about-hero-lead {
  margin: 0;
  max-width: 42rem;
  font-size: 1.06rem;
  line-height: 1.74;
  color: rgba(228, 237, 247, 0.92);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

@media (max-width: 720px) {
  .about-hero-bg {
    background-position: center center;
  }

  .about-hero {
    min-height: clamp(17rem, 56vw, 20.5rem);
  }
}

.about-narrative {
  padding-block: clamp(var(--space-2xl), 5vw, 6rem);
}

.about-narrative-inner {
  max-width: 50rem;
  margin-inline: auto;
}

.about-narrative-prose {
  max-width: 44rem;
}

.about-narrative-prose p {
  margin: 0 0 clamp(1rem, 2.2vw, 1.35rem);
  font-size: clamp(1.04rem, 1.55vw, 1.14rem);
  line-height: 1.78;
  color: var(--text-secondary);
}

.page-about .about-narrative-prose p {
  margin-bottom: clamp(1.15rem, 2.4vw, 1.5rem);
}

.about-narrative-prose p:last-child {
  margin-bottom: 0;
}

/* ----- Privacy policy page ----- */
.privacy-policy {
  padding-top: clamp(2.25rem, 5vw, 3.5rem);
}

.privacy-policy-inner {
  max-width: 46rem;
  margin-inline: auto;
}

.privacy-policy-inner p {
  margin: 0 0 var(--space-md);
  color: var(--text-secondary);
  line-height: 1.74;
}

.privacy-policy-inner p:last-child {
  margin-bottom: 0;
}

.about-internal-links {
  margin: var(--space-xl) 0 0;
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* ----- Homepage hero (commanding) ----- */
.hero--command .hero-title {
  font-size: clamp(2.65rem, 7vw, 4.15rem);
  max-width: 14ch;
}

.hero--command .hero-lead {
  max-width: 40rem;
  font-size: clamp(1.02rem, 1.65vw, 1.14rem);
}

.hero-eyebrow--wide {
  max-width: none;
}

/* ----- What I do (home) ----- */
.what-i-do-intro {
  max-width: 44rem;
}

.home-service-card-grid {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 600px) {
  .home-service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .home-service-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

.home-service-card {
  margin: 0;
  padding: var(--space-md) var(--space-md) var(--space-lg);
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(165deg, rgba(26, 44, 68, 0.7) 0%, rgba(14, 28, 48, 0.5) 100%);
  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: box-shadow 0.2s var(--ease-out), background 0.2s var(--ease-out);
}

.home-service-card:hover {
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(165deg, rgba(30, 50, 76, 0.78) 0%, rgba(18, 32, 52, 0.55) 100%);
}

.home-service-card a {
  color: inherit;
  text-decoration: none;
}

.home-service-card a:hover {
  color: var(--accent);
}

.home-service-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.25;
  color: var(--text-primary);
}

.home-service-card__desc {
  margin: 0.6rem 0 0;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

/* ----- Why Rune (three points) ----- */
.why-three-inner {
  max-width: 52rem;
}

.why-three-intro {
  margin: 0;
  max-width: 40rem;
}

.why-three-grid {
  display: grid;
  gap: var(--space-lg);
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .why-three-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-xl);
  }
}

.why-three-item {
  margin: 0;
  padding: var(--space-lg);
  border-radius: var(--radius-lg);
  border: none;
  background: linear-gradient(180deg, rgba(32, 54, 80, 0.4) 0%, rgba(18, 32, 52, 0.32) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.14);
}

.why-three-item h3 {
  margin: 0 0 var(--space-sm);
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.why-three-item p {
  margin: 0;
  font-size: 0.98rem;
  line-height: 1.68;
  color: var(--text-secondary);
}

/* ----- Certification cards (home + credentials) ----- */
.cred-cert-card-grid {
  list-style: none;
  margin: var(--space-lg) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-md);
  grid-template-columns: 1fr;
}

@media (min-width: 520px) {
  .cred-cert-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .cred-cert-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-lg);
  }
}

@media (min-width: 1024px) {
  .cred-cert-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .cred-cert-card-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.cred-cert-card {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  margin: 0;
  padding: var(--space-sm) var(--space-md) var(--space-md);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-2);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color var(--duration-base) var(--ease-premium),
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium);
}

.cred-cert-card:hover {
  transform: translateY(-2px);
  border-color: rgba(184, 212, 236, 0.3);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Certification marks: fixed visual height, centered in a soft mat (helps light / transparent artwork on dark UI) */
.cred-cert-logo-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 9rem;
  margin-bottom: 0.4rem;
  padding: 0.625rem 0.875rem;
  border-radius: var(--radius-md);
  background: linear-gradient(
    180deg,
    rgba(238, 244, 252, 0.2) 0%,
    rgba(220, 232, 248, 0.12) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 1px 0 rgba(0, 0, 0, 0.12);
}

/* Slightly brighter mat for marks that are low-contrast on dark (e.g. light gray CISSP on transparency) */
.cred-cert-logo-slot--high-key {
  background: linear-gradient(
    180deg,
    rgba(250, 252, 255, 0.5) 0%,
    rgba(236, 242, 252, 0.34) 100%
  );
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 1px 0 rgba(0, 0, 0, 0.1);
}

.cred-cert-logo-img {
  display: block;
  flex-shrink: 0;
  height: 7.5rem;
  width: auto;
  max-width: 24rem;
  max-height: 8rem;
  object-fit: contain;
  object-position: center;
  margin-inline: auto;
  opacity: 1;
  filter: none;
}

.cred-cert-acronym {
  margin: 0 0 0.1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cred-cert-fullname {
  margin: 0 0 0.3rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.38;
  color: var(--text-primary);
}

.cred-cert-issuer {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.35;
}

/* ----- Footer site map ----- */
.footer-nav {
  margin: var(--space-md) 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs) var(--space-lg);
  justify-content: center;
}

.footer-nav a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
}

.footer-nav a:hover {
  color: var(--accent);
}

.contact-strip-direct {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm) var(--space-lg);
  margin-top: var(--space-md);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.contact-strip-direct a {
  color: var(--accent);
}

.contact-hero-direct {
  margin: 0 0 var(--space-md);
}

.contact-hero-direct p {
  margin: 0 0 var(--space-xs);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
}

.contact-hero-direct a {
  color: var(--accent);
  text-decoration: none;
}

.contact-hero-direct a:hover {
  text-decoration: underline;
}

.footer-tag a {
  color: var(--accent-dim);
  text-decoration: none;
}

.footer-tag a:hover {
  color: var(--accent);
  text-decoration: underline;
}

/* ----- Responsive polish pass (mobile/tablet/desktop) ----- */
html,
body {
  overflow-x: clip;
}

a,
button,
.btn,
.nav-toggle {
  min-height: 44px;
}

@media (max-width: 1024px) {
  :root {
    --space-2xl: 4.2rem;
    --space-3xl: 5.4rem;
  }

  .hero-main,
  .page-home .hero--home .hero-main {
    gap: clamp(1.5rem, 4vw, 2.4rem);
  }

  .hero-panel-card {
    min-height: 250px;
  }

  .hero-frame {
    max-width: min(100%, 420px);
    margin-inline: auto;
  }

  .page-hero {
    padding-block: clamp(var(--space-xl), 5vw, var(--space-2xl)) var(--space-xl);
  }

  .page-hero-inner--wide,
  .about-hero-inner--single {
    max-width: 40rem;
  }

  .section-kicker {
    margin-bottom: 0.55rem;
  }

  .services-capabilities-shell {
    padding: var(--space-lg) var(--space-md);
  }

  .services-capabilities-grid {
    gap: 0.6rem var(--space-md);
  }

  .biz-panel {
    max-width: none;
  }

  .cred-bg-pillars {
    grid-template-columns: 1fr;
  }

  .cred-cert-card-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-narrative-inner {
    max-width: 44rem;
    padding-inline: 0.1rem;
  }

  .contact-page-inner {
    gap: var(--space-lg);
  }

  .biz-panel,
  .about-narrative-inner,
  .services-capabilities-shell,
  .home-panel,
  .cred-bg-panel {
    border-radius: 16px;
  }
}

@media (max-width: 768px) {
  :root {
    --header-h: 3.7rem;
    --top-bar-h: 2.9rem;
    --header-stack-h: calc(var(--top-bar-h) + var(--header-h) + 24px);
  }

  .top-bar-line {
    font-size: 0.74rem;
    text-align: center;
  }

  .top-bar-sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.4);
  }

  .header-inner {
    gap: 0.75rem;
  }

  .logo {
    font-size: 1.34rem;
    letter-spacing: 0.03em;
    color: rgba(242, 247, 255, 0.98);
  }

  .site-nav {
    max-height: calc(100svh - var(--header-stack-h));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .nav-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    padding-block: 0.24rem;
  }

  .hero {
    padding-block: 1rem 0.9rem;
  }

  .hero-content {
    padding-top: 0.2rem;
  }

  .hero-title {
    font-size: clamp(1.9rem, 10vw, 2.7rem);
    line-height: 1.08;
  }

  .hero-lead,
  .page-hero-lead,
  .about-hero-lead {
    font-size: 1rem;
    line-height: 1.7;
  }

  .hero-actions {
    width: 100%;
    gap: 0.6rem;
  }

  .hero-actions .btn {
    flex: 1 1 12rem;
    min-height: 46px;
  }

  .hero-panel {
    margin-top: 0.2rem;
  }

  .hero-panel-card {
    min-height: 220px;
    padding: var(--space-md);
  }

  .hero-frame {
    aspect-ratio: 16 / 10;
  }

  .services-capability-item {
    padding-block: 0.82rem;
  }

  .services-capability-title {
    font-size: 1rem;
  }

  .services-capability-text {
    font-size: 0.94rem;
    line-height: 1.62;
  }

  .home-service-card-grid,
  .why-three-grid,
  .testimonial-pair,
  .services-capabilities-grid,
  .cred-cert-card-grid,
  .cred-cert-card-grid--page {
    grid-template-columns: 1fr;
  }

  .cred-cert-logo-slot {
    min-height: 7.2rem;
  }

  .cred-cert-logo-img {
    height: 5.8rem;
    max-height: 6.1rem;
  }

  .biz-section,
  .about-narrative,
  .services-direct,
  .services-capabilities,
  .about-hero,
  .page-hero--business,
  .page-hero--credentials {
    padding-block: var(--space-xl);
  }

  .about-hero-title,
  .page-hero-title {
    font-size: clamp(1.9rem, 8.5vw, 2.45rem);
    line-height: 1.1;
  }

  .about-hero-inner--single,
  .page-hero-inner--wide {
    max-width: 34rem;
  }

  .about-narrative-prose p {
    font-size: 1.01rem;
    line-height: 1.72;
  }

  .contact-form-wrap {
    padding: var(--space-md);
  }

  .contact-direct-panel {
    padding: var(--space-sm) var(--space-md);
  }

  .contact-direct-panel-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .form-alert {
    align-items: flex-start;
    flex-direction: column;
  }

  .form-alert-close {
    min-height: 44px;
  }

  .field input,
  .field textarea,
  .field select {
    font-size: 16px;
  }

  .contact-strip-direct {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
  }

  .btn,
  .contact-strip-direct a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }

  .top-bar-link {
    color: rgba(242, 247, 255, 0.98);
    font-weight: 600;
    display: inline;
    min-height: 0;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  :root {
    --top-bar-h: 2.55rem;
    --header-stack-h: calc(var(--top-bar-h) + var(--header-h) + 24px);
  }

  .top-bar-line {
    font-size: 0.76rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .page-home .hero--home .hero-main {
    grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.8fr);
    align-items: center;
  }

  .hero-panel {
    max-width: 30rem;
    justify-self: end;
  }

  .home-panel--narrow,
  .why-three-inner,
  .services-capabilities-header {
    max-width: none;
  }

  .services-capabilities-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cred-cert-card-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .about-narrative-inner {
    max-width: 46rem;
  }

  .contact-page-inner {
    grid-template-columns: 1fr;
    max-width: 46rem;
  }

  .page-hero-inner--wide,
  .about-hero-inner--single {
    max-width: 43rem;
  }

  .services-capabilities-shell {
    padding: var(--space-lg) var(--space-lg);
  }

  .services-capabilities-grid {
    gap: 0.75rem var(--space-lg);
  }

  .biz-section {
    padding-block: clamp(var(--space-xl), 3.6vw, var(--space-2xl));
  }
}

@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
  }

  .logo {
    font-size: 1.2rem;
  }

  .hero-title,
  .about-hero-title,
  .page-hero-title {
    font-size: clamp(1.75rem, 9.4vw, 2.2rem);
  }

  .hero-actions {
    gap: 0.5rem;
  }

  .hero-actions .btn {
    flex-basis: 100%;
  }

  .cred-cert-logo-slot {
    min-height: 6.4rem;
  }

  .cred-cert-logo-img {
    height: 5.2rem;
    max-height: 5.4rem;
  }

  .about-narrative-prose p {
    font-size: 0.98rem;
    line-height: 1.7;
  }
}

/* ----- Homepage: modern polish (scoped to .page-home only) ----- */
.page-home .section-flow--home {
  background:
    radial-gradient(ellipse 110% 82% at 50% 0%, rgba(86, 136, 188, 0.08) 0%, transparent 54%),
    radial-gradient(ellipse 62% 54% at 100% 62%, rgba(54, 96, 146, 0.06) 0%, transparent 48%),
    linear-gradient(180deg, #192c43 0%, #1b3049 22%, #1a2f46 100%);
}

.page-home .section-flow--home > .section--home:nth-child(odd) {
  background: linear-gradient(180deg, rgba(38, 64, 94, 0.18) 0%, transparent 74%);
}

.page-home .section-flow--home > .section--home:nth-child(even) {
  background: linear-gradient(180deg, rgba(7, 15, 30, 0.38) 0%, transparent 70%);
}

.page-home .section-flow--home > .section--home.home-testimonials {
  background: linear-gradient(180deg, rgba(22, 40, 62, 0.5) 0%, rgba(10, 22, 38, 0.34) 100%);
}

.page-home .section--home {
  position: relative;
}

.page-home .section--home::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: min(100% - var(--container-pad), var(--max-width));
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(170, 198, 224, 0.16) 18%, rgba(170, 198, 224, 0.16) 82%, transparent);
  opacity: 0.6;
  pointer-events: none;
}

.page-home .section--home:last-child::after {
  opacity: 0;
}

.page-home .section--home .section-header h2 {
  font-size: clamp(1.84rem, 3.4vw, 2.38rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.page-home .section--home .section-intro {
  max-width: 44rem;
  font-size: 1.02rem;
  line-height: 1.72;
}

.page-home .hero.hero--home {
  background:
    linear-gradient(180deg, rgba(30, 50, 75, 0.2) 0%, rgba(13, 23, 38, 0.14) 45%, rgba(8, 14, 24, 0.26) 100%);
}

.page-home .hero--home .hero-main {
  gap: clamp(2.2rem, 5.6vw, 3.8rem);
}

.page-home .hero--home .hero-content {
  max-width: 41.5rem;
}

.page-home .hero--home .hero-eyebrow {
  position: relative;
  padding-left: 1.05rem;
  gap: 0;
  letter-spacing: 0.095em;
  color: rgba(186, 208, 230, 0.86);
}

.page-home .hero--home .hero-eyebrow .eyebrow-rule {
  display: none;
}

.page-home .hero--home .hero-eyebrow::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.2em;
  bottom: 0.2em;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, rgba(136, 176, 212, 0.7), rgba(118, 160, 198, 0.9));
  opacity: 0.9;
}

.page-home .hero.hero--home.hero--command .hero-title {
  background: linear-gradient(126deg, #f8fbff 0%, #e8f0f8 35%, #d6e4f2 64%, #b7cde4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: none;
}

@supports not ((-webkit-background-clip: text) or (background-clip: text)) {
  .page-home .hero.hero--home.hero--command .hero-title {
    background: none;
    -webkit-text-fill-color: unset;
    color: var(--text-primary);
    text-shadow:
      0 3px 40px rgba(0, 0, 0, 0.45),
      0 1px 0 rgba(255, 255, 255, 0.05);
  }
}

.page-home .hero-strip__item {
  border-radius: 999px;
  border: 1px solid rgba(188, 214, 236, 0.16);
  background: rgba(122, 164, 200, 0.09);
  color: rgba(196, 216, 236, 0.82);
}

.page-home .hero-panel-card {
  border-radius: var(--radius-xl);
  border-color: rgba(160, 194, 226, 0.28);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 30px 66px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.page-home .btn {
  border-radius: 999px;
}

.page-home .btn-primary:hover,
.page-home .btn-ghost:hover {
  transform: translateY(-1px);
}

.page-home .home-panel {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(180, 208, 234, 0.16);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.page-home .home-panel .section-header {
  margin-bottom: clamp(1.35rem, 2.8vw, 2rem);
}

.page-home .home-service-card {
  border-radius: calc(var(--radius-xl) - 3px);
  border: 1px solid rgba(176, 206, 232, 0.13);
  background:
    linear-gradient(160deg, rgba(34, 56, 82, 0.55) 0%, rgba(18, 34, 54, 0.45) 100%);
  transition:
    box-shadow var(--duration-base) var(--ease-premium),
    background var(--duration-base) var(--ease-premium),
    transform var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium);
}

.page-home .home-service-card:hover {
  transform: translateY(-4px);
  border-color: rgba(186, 214, 238, 0.28);
  background:
    linear-gradient(160deg, rgba(40, 66, 96, 0.62) 0%, rgba(20, 38, 60, 0.52) 100%);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.26);
}

.page-home .home-service-card__title {
  font-size: 1.08rem;
  letter-spacing: -0.015em;
}

.page-home .home-service-card__desc {
  color: rgba(177, 198, 220, 0.92);
  line-height: 1.66;
}

.page-home .why-three-item {
  border-radius: calc(var(--radius-xl) - 3px);
  border: 1px solid rgba(174, 204, 230, 0.13);
  background:
    linear-gradient(168deg, rgba(34, 56, 82, 0.48) 0%, rgba(18, 34, 54, 0.4) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium);
}

.page-home .why-three-item:hover {
  transform: translateY(-3px);
  border-color: rgba(182, 212, 238, 0.24);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.24);
}

.page-home .why-three-item h3 {
  letter-spacing: -0.012em;
}

.page-home .why-three-item p {
  color: rgba(174, 197, 220, 0.9);
}

.page-home .testimonial-box {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(176, 206, 232, 0.14);
  background:
    linear-gradient(166deg, rgba(28, 48, 72, 0.62) 0%, rgba(14, 28, 46, 0.52) 100%);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    border-color var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    transform var(--duration-base) var(--ease-premium);
}

.page-home .testimonial-box:hover {
  transform: translateY(-2px);
  border-color: rgba(188, 214, 238, 0.26);
  box-shadow: 0 20px 46px rgba(0, 0, 0, 0.24);
}

.page-home .testimonial-box__quote p {
  font-size: 1.06rem;
  color: rgba(196, 214, 232, 0.94);
}

.page-home .testimonial-box__attr {
  color: rgba(166, 188, 210, 0.9);
  letter-spacing: 0.14em;
}

.page-home .cred-preview-section .cred-cert-card {
  border-radius: var(--radius-xl);
  border: 1px solid rgba(178, 206, 232, 0.14);
  transition:
    transform var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium);
}

.page-home .cred-preview-section .cred-cert-card:hover {
  transform: translateY(-3px);
  border-color: rgba(188, 216, 240, 0.28);
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-home .home-cta {
  border-top-color: rgba(190, 214, 236, 0.18);
  background: linear-gradient(
    180deg,
    rgba(24, 42, 62, 0.54) 0%,
    rgba(104, 148, 192, 0.08) 50%,
    rgba(18, 34, 52, 0.48) 100%
  );
}

@media (prefers-reduced-motion: reduce) {
  .page-home .btn-primary:hover,
  .page-home .btn-ghost:hover,
  .page-home .home-service-card:hover,
  .page-home .why-three-item:hover,
  .page-home .testimonial-box:hover,
  .page-home .cred-preview-section .cred-cert-card:hover {
    transform: none;
  }
}

/* ----- Phase 3: premium inner-page polish ----- */
.page-services .page-hero,
.page-business .page-hero,
.page-credentials .page-hero,
.page-contact .page-hero,
.page-about .about-hero {
  border-bottom: 1px solid rgba(170, 200, 226, 0.2);
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.3);
}

.page-services .page-hero-title,
.page-business .page-hero-title,
.page-credentials .page-hero-title,
.page-contact .page-hero-title,
.page-about .about-hero-title {
  font-size: clamp(1.95rem, 4vw, 2.7rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.page-services .page-hero-lead,
.page-business .page-hero-lead,
.page-credentials .page-hero-lead,
.page-contact .page-hero-lead,
.page-about .about-hero-lead {
  max-width: 45rem;
  font-size: 1.04rem;
  line-height: 1.74;
}

.page-services .page-hero {
  padding-block: clamp(2.1rem, 5.2vw, 3.35rem) clamp(2rem, 4.8vw, 3.15rem);
}

.page-services .page-hero-inner--wide {
  max-width: 47.5rem;
}

.page-services .page-hero-title {
  color: #ffffff;
}

.page-services .page-hero-lead {
  color: #e6eef8;
  font-size: clamp(1.08rem, 1.8vw, 1.2rem);
  line-height: 1.82;
  max-width: 46rem;
}

.page-services .page-hero-lead + .page-hero-lead {
  margin-top: 0.75rem;
}

.page-services .section-flow--services,
.page-business .section-flow--business,
.page-credentials .credential-flow--page.section-flow--contrast,
.page-contact .section-flow--contact,
.page-about .section-flow--about {
  position: relative;
}

.page-services .service-block-inner,
.page-services .services-capabilities-shell,
.page-services .services-direct-panel,
.page-business .biz-panel,
.page-credentials .cred-bg-panel,
.page-credentials .cred-ncfi-panel,
.page-credentials .cred-edu-card,
.page-credentials .cred-teach-block,
.page-about .about-narrative-inner,
.page-about .about-next-panel,
.page-contact .contact-page-section--panel .contact-page-inner,
.page-contact .contact-direct-panel {
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.page-services .page-intro-panel,
.page-business .biz-panel--raised,
.page-credentials .cred-cert-tile,
.page-about .about-prose--panel {
  border: 1px solid var(--surface-border-strong);
  background: var(--surface-2);
  box-shadow:
    var(--shadow-panel),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-services .service-block-inner,
.page-services .services-capabilities-shell,
.page-services .services-direct-panel,
.page-business .biz-panel,
.page-credentials .cred-bg-panel,
.page-credentials .cred-ncfi-panel,
.page-credentials .cred-edu-card,
.page-credentials .cred-teach-block,
.page-credentials .cred-cert-tile,
.page-about .about-prose--panel,
.page-about .about-next-panel,
.page-contact .contact-page-section--panel .contact-page-inner,
.page-contact .contact-direct-panel {
  transition:
    border-color var(--duration-base) var(--ease-premium),
    box-shadow var(--duration-base) var(--ease-premium),
    transform var(--duration-base) var(--ease-premium);
}

.page-services .service-block-inner:hover,
.page-services .services-capabilities-shell:hover,
.page-services .services-direct-panel:hover,
.page-business .biz-panel:hover,
.page-credentials .cred-bg-panel:hover,
.page-credentials .cred-ncfi-panel:hover,
.page-credentials .cred-edu-card:hover,
.page-credentials .cred-teach-block:hover,
.page-credentials .cred-cert-tile:hover,
.page-about .about-prose--panel:hover,
.page-about .about-next-panel:hover,
.page-contact .contact-page-section--panel .contact-page-inner:hover,
.page-contact .contact-direct-panel:hover {
  transform: translateY(-2px);
  border-color: rgba(186, 214, 238, 0.3);
  box-shadow:
    0 24px 54px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.page-services .services-capability-item {
  border-top-color: rgba(174, 202, 226, 0.24);
}

.page-services .services-capability-title,
.page-business .biz-panel-title,
.page-credentials .cred-section-title,
.page-credentials .cred-section-title--feature {
  letter-spacing: -0.015em;
}

.page-services .services-capability-text,
.page-business .biz-panel-text,
.page-credentials .cred-doc-prose,
.page-about .about-narrative-prose p,
.page-contact .contact-page-note,
.page-contact .contact-form-note {
  color: rgba(178, 199, 220, 0.94);
}

.page-credentials .cred-cert-card,
.page-credentials .cred-cert-tile {
  border-color: rgba(178, 206, 232, 0.16);
}

.page-credentials .cred-cert-card:hover,
.page-credentials .cred-cert-tile:hover {
  border-color: rgba(190, 218, 240, 0.3);
}

.page-about .about-next-panel {
  background:
    linear-gradient(170deg, rgba(24, 42, 64, 0.64) 0%, rgba(12, 24, 40, 0.54) 100%);
}

.page-contact .contact-page-section--panel .contact-page-inner {
  max-width: 48rem;
}

.page-contact .contact-direct-panel-links a {
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition:
    color var(--duration-base) var(--ease-premium),
    border-color var(--duration-base) var(--ease-premium);
}

.page-contact .contact-direct-panel-links a:hover {
  color: rgba(216, 232, 248, 0.98);
  border-bottom-color: rgba(176, 206, 232, 0.45);
  text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
  .page-services .service-block-inner:hover,
  .page-services .services-capabilities-shell:hover,
  .page-services .services-direct-panel:hover,
  .page-business .biz-panel:hover,
  .page-credentials .cred-bg-panel:hover,
  .page-credentials .cred-ncfi-panel:hover,
  .page-credentials .cred-edu-card:hover,
  .page-credentials .cred-teach-block:hover,
  .page-credentials .cred-cert-tile:hover,
  .page-about .about-prose--panel:hover,
  .page-about .about-next-panel:hover,
  .page-contact .contact-page-section--panel .contact-page-inner:hover,
  .page-contact .contact-direct-panel:hover {
    transform: none;
  }
}

/* ----- Responsive system normalization (mobile / tablet / desktop) ----- */
h1,
h2,
h3,
.page-hero-title,
.about-hero-title,
.hero-title {
  overflow-wrap: anywhere;
}

.nav-list a {
  white-space: nowrap;
}

.home-service-card,
.why-three-item,
.testimonial-box,
.cred-cert-card,
.biz-panel,
.services-capability-item {
  height: 100%;
}

.home-service-card a {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.footer-inner {
  width: min(100% - var(--container-pad) * 2, var(--max-width));
  margin-inline: auto;
}

/* Mobile: 480px and below */
@media (max-width: 480px) {
  :root {
    --container-pad: 1rem;
    --space-xl: 2.6rem;
    --space-2xl: 3.3rem;
  }

  .top-bar {
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .top-bar-inner {
    min-height: 44px;
  }

  .top-bar-line {
    font-size: 0.78rem;
    line-height: 1.5;
    gap: 0.45rem 0.65rem;
    justify-content: center;
    text-align: center;
  }

  .top-bar-sep {
    display: none;
  }

  .site-header {
    height: var(--header-h);
  }

  .hero,
  .page-hero,
  .about-hero {
    padding-block: clamp(1.15rem, 4.8vw, 1.65rem);
  }

  .hero-lead,
  .page-hero-lead,
  .about-hero-lead {
    font-size: 1rem;
    line-height: 1.72;
    max-width: 100%;
  }

  .page-home .hero-panel {
    width: 100%;
  }

  .page-home .hero-panel-card {
    padding: 0.85rem;
    min-height: 208px;
  }

  .page-home .hero-frame {
    max-width: min(100%, 19.8rem);
  }

  .home-service-card-grid,
  .why-three-grid,
  .testimonial-pair,
  .services-capabilities-grid,
  .cred-cert-card-grid,
  .cred-cert-card-grid--page {
    grid-template-columns: 1fr;
    gap: var(--space-sm);
  }

  .cred-cert-logo-slot {
    min-height: 6.8rem;
    padding: 0.55rem 0.65rem;
  }

  .cred-cert-logo-img {
    height: 5.2rem;
    max-height: 5.5rem;
  }

  .footer-nav {
    gap: 0.5rem 0.95rem;
  }

  .footer-nav a {
    font-size: 0.78rem;
    letter-spacing: 0.06em;
  }
}

/* Tablet: 481px to 1024px */
@media (min-width: 481px) and (max-width: 1024px) {
  :root {
    --container-pad: clamp(1.05rem, 3vw, 1.8rem);
  }

  .top-bar-line {
    line-height: 1.55;
  }

  .section {
    padding-block: clamp(2.15rem, 4.7vw, 3.6rem);
  }

  .hero-lead,
  .page-hero-lead,
  .about-hero-lead {
    max-width: 42rem;
  }

  .home-service-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-three-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .testimonial-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cred-cert-card-grid--page {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .page-home .hero-panel-card {
    min-height: 238px;
  }
}

/* Tablet / narrow desktop navigation refinement */
@media (min-width: 769px) and (max-width: 1200px) {
  .header-inner {
    grid-template-columns: max-content minmax(0, 1fr);
    column-gap: clamp(0.85rem, 2vw, 1.25rem);
  }

  .logo {
    font-size: clamp(1.48rem, 2vw, 1.86rem);
  }

  .site-nav {
    min-width: 0;
    width: 100%;
    padding-left: 0.65rem;
    justify-self: end;
  }

  .nav-list {
    flex-wrap: nowrap;
    justify-content: flex-end;
    gap: 0.28rem 0.6rem;
  }

  .nav-list a {
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    padding: 0.36rem 0.68rem;
  }
}

/* Desktop: 1025px and above */
@media (min-width: 1025px) {
  .section {
    padding-block: clamp(3.2rem, 5.3vw, 5.6rem);
  }

  .page-hero-inner--wide,
  .about-hero-inner--single {
    max-width: 45rem;
  }

  .footer-nav {
    gap: 0.55rem 1.2rem;
  }
}

/* ----- Articles pages ----- */
.articles-index-panel,
.article-prose-panel {
  max-width: 44rem;
  margin-inline: auto;
  padding: clamp(1.25rem, 2.8vw, 1.9rem) clamp(1.1rem, 2.6vw, 1.65rem);
  border-radius: var(--radius-lg);
  border: 1px solid var(--surface-border);
  background: var(--surface-1);
  box-shadow:
    var(--shadow-soft),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.articles-index-text,
.article-section-text {
  margin: 0;
  color: var(--text-secondary);
  font-size: 1.03rem;
  line-height: 1.76;
}

.article-section + .article-section {
  margin-top: clamp(1.3rem, 2.8vw, 2rem);
  padding-top: clamp(1.1rem, 2.4vw, 1.6rem);
  border-top: 1px solid rgba(170, 196, 220, 0.18);
}

.article-section-title {
  margin: 0 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.1vw, 1.45rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}
