:root {
  --ink: #171917;
  --muted: #5b625e;
  --paper: #ffffff;
  --soft: #f3f6f1;
  --line: #dce3dd;
  --green: #087f5b;
  --green-dark: #045840;
  --lime: #c6e36f;
  --gold: #f2c94c;
  --red: #d84a3a;
  --charcoal: #111412;
  --shadow: 0 18px 50px rgba(17, 20, 18, 0.14);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: var(--paper);
  line-height: 1.55;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.nav-shell {
  width: min(100% - 32px, var(--max));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: var(--paper);
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 8px;
  box-shadow: 4px 4px 0 var(--gold);
  font-size: 0.82rem;
}

.site-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.site-menu a {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border-bottom: 2px solid transparent;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--green-dark);
  border-color: var(--green);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.hero {
  min-height: calc(84vh - 72px);
  display: flex;
  align-items: center;
  color: var(--paper);
  background: var(--ink);
}

.hero-content {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 74px 0;
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--green-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 820px;
  font-size: 5.9rem;
  letter-spacing: 0;
}

h2 {
  font-size: 3.45rem;
  letter-spacing: 0;
}

h3 {
  font-size: 1.2rem;
}

.hero-copy {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.12rem;
}

.hero-actions,
.cta-strip,
.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 8px;
  padding: 12px 20px;
  font-weight: 900;
  cursor: pointer;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--paper);
  background: var(--green);
  border-color: var(--green);
  box-shadow: 5px 5px 0 var(--gold);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--green-dark);
}

.button-secondary {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.08);
}

.button-dark {
  color: var(--paper);
  background: var(--ink);
  border-color: var(--ink);
  box-shadow: 5px 5px 0 var(--gold);
}

.hero-proof {
  max-width: 720px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 46px 0 0;
}

.hero-proof div {
  min-height: 104px;
  padding: 16px;
  border-left: 4px solid var(--lime);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
}

.hero-proof dt {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
}

.hero-proof dd {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

section {
  scroll-margin-top: 92px;
}

.section-band {
  background: var(--soft);
}

.intro,
.services,
.process,
.capabilities,
.work,
.contact,
.visual-band,
.cta-strip {
  padding: 86px 0;
}

.section-grid,
.section-heading,
.service-grid,
.process-list,
.capability-table,
.work-grid,
.contact,
.visual-band,
.cta-strip,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(280px, 1.05fr);
  gap: 48px;
  align-items: start;
}

.section-grid > p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-heading {
  max-width: var(--max);
  margin-bottom: 36px;
}

.section-heading h2 {
  max-width: 780px;
}

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

.service-card,
.process-list article {
  min-height: 238px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 0 10px 30px rgba(17, 20, 18, 0.06);
}

.service-number,
.work-card span,
.process-list span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-card p,
.process-list p,
.work-card p,
.capability-table span,
.site-footer p {
  color: var(--muted);
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 18px;
  align-items: stretch;
}

.feature-photo {
  min-height: 420px;
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background: var(--charcoal);
  box-shadow: var(--shadow);
}

.photo-small {
  min-height: 330px;
  align-self: end;
}

.feature-photo figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: var(--paper);
  background: rgba(17, 20, 18, 0.72);
  border-left: 4px solid var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.process-list article {
  min-height: 300px;
}

.capability-table {
  display: grid;
  gap: 12px;
}

.capability-table div {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.capability-table strong {
  color: var(--green-dark);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.work-card {
  display: grid;
  grid-template-rows: 260px auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
}

.work-card div {
  padding: 24px;
}

.cta-strip {
  justify-content: space-between;
  color: var(--paper);
  background: var(--green);
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 34px;
  box-shadow: 8px 8px 0 var(--gold);
}

.cta-strip h2 {
  max-width: 820px;
  font-size: 2.75rem;
}

.cta-strip .section-kicker {
  color: var(--paper);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
  gap: 46px;
  align-items: start;
}

.contact-copy h2 {
  margin-bottom: 20px;
}

.contact-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list a {
  color: var(--green-dark);
  font-weight: 800;
}

.quote-form {
  display: grid;
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--soft);
}

.quote-form label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 800;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  border: 1px solid #bfc9c2;
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
}

.quote-form textarea {
  resize: vertical;
  min-height: 150px;
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(8, 127, 91, 0.16);
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--green-dark);
  font-weight: 800;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 38px 0;
  border-top: 1px solid var(--line);
}

.footer-brand {
  margin-bottom: 12px;
}

.footer-links {
  justify-content: flex-end;
  color: var(--muted);
  font-weight: 800;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.7rem;
  }

  h2 {
    font-size: 2.8rem;
  }

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

  .section-grid,
  .visual-band,
  .contact {
    grid-template-columns: 1fr;
  }

  .photo-small {
    min-height: 360px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .nav-toggle {
    display: block;
  }

  .site-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: 74px;
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--paper);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity 170ms ease, transform 170ms ease, visibility 170ms ease;
  }

  .site-menu.is-open {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .site-menu a {
    padding: 6px 10px;
  }

  .hero {
    min-height: calc(82vh - 66px);
    background-position: 62% center;
  }

  .hero-content {
    padding: 38px 0;
  }

  h1 {
    font-size: 2.95rem;
  }

  h2,
  .cta-strip h2 {
    font-size: 2.18rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-proof {
    display: none;
  }

  .intro,
  .services,
  .process,
  .capabilities,
  .work,
  .contact,
  .visual-band,
  .cta-strip {
    padding-top: 62px;
    padding-bottom: 62px;
  }

  .service-grid,
  .process-list,
  .work-grid {
    grid-template-columns: 1fr;
  }

  .service-card,
  .process-list article {
    min-height: auto;
  }

  .feature-photo,
  .photo-small {
    min-height: 330px;
  }

  .capability-table div,
  .contact-list li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .cta-strip {
    align-items: flex-start;
  }

  .site-footer {
    flex-direction: column;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (max-width: 430px) {
  h1 {
    font-size: 2.35rem;
  }

  h2,
  .cta-strip h2 {
    font-size: 1.92rem;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    align-items: stretch;
  }

  .quote-form {
    padding: 18px;
  }
}

/* SEPIC dark diagnostic theme */
:root {
  --ink: #f7f9ff;
  --muted: #aeb9c9;
  --paper: #050608;
  --soft: #0a0d12;
  --panel: #0f141c;
  --panel-strong: #151c27;
  --line: rgba(255, 255, 255, 0.13);
  --blue: #236eda;
  --blue-bright: #5f9cff;
  --cyan: #67d9ff;
  --amber: #f4b84a;
  --green: #8fe388;
  --red: #ff5f57;
  --white: #ffffff;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  --max: 1180px;
}

html {
  background: var(--paper);
}

body {
  color: var(--ink);
  background: var(--paper);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    url("https://images.unsplash.com/photo-1727119313143-779799ad0aed?auto=format&fit=crop&w=2200&q=80")
    center / cover no-repeat;
  opacity: 0.12;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(5, 6, 8, 0.88);
}

.site-header {
  background: rgba(5, 6, 8, 0.78);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.nav-shell {
  min-height: 78px;
}

.brand {
  width: min(270px, 62vw);
}

.brand img {
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(35, 110, 218, 0.28));
}

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

.site-menu a {
  color: inherit;
  border-bottom: 0;
}

.site-menu a:hover,
.site-menu a:focus-visible {
  color: var(--white);
  border-color: transparent;
}

.menu-cta {
  min-height: 42px;
  padding: 0 16px;
  color: var(--white) !important;
  border: 1px solid rgba(95, 156, 255, 0.55) !important;
  border-radius: 8px;
  background: rgba(35, 110, 218, 0.16);
}

.nav-toggle {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.04);
}

.nav-toggle span:not(.sr-only) {
  background: var(--white);
}

.hero {
  position: relative;
  min-height: calc(84vh - 78px);
  display: block;
  padding: 128px 0 38px;
  overflow: hidden;
  color: var(--white);
  background:
    url("https://images.unsplash.com/photo-1727119313143-779799ad0aed?auto=format&fit=crop&w=2200&q=80")
    center / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(5, 6, 8, 0.78);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(103, 217, 255, 0.08);
  opacity: 0.55;
  pointer-events: none;
}

.hero-shell,
.hero-metrics,
.section-grid,
.section-heading,
.service-grid,
.analysis,
.process-list,
.capability-table,
.application-grid,
.visual-band,
.cta-strip,
.contact,
.site-footer {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.hero-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.88fr);
  gap: 54px;
  align-items: center;
}

.hero-content {
  width: auto;
  padding: 0;
}

.eyebrow,
.section-kicker {
  color: var(--cyan);
  letter-spacing: 0;
}

h1 {
  max-width: 820px;
  color: var(--white);
  font-size: 4.9rem;
  letter-spacing: 0;
}

h2 {
  color: var(--white);
  font-size: 3.25rem;
  letter-spacing: 0;
}

h3 {
  color: var(--white);
  letter-spacing: 0;
}

.hero-copy {
  max-width: 680px;
  color: #d8e2f2;
  font-size: 1.1rem;
}

.hero-actions {
  margin-top: 32px;
}

.button {
  border-radius: 8px;
  box-shadow: none;
}

.button-primary {
  color: var(--white);
  background: var(--blue);
  border-color: var(--blue-bright);
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #1b58b4;
  box-shadow: 0 0 28px rgba(95, 156, 255, 0.34);
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.24);
}

.hero-visual {
  min-width: 0;
}

.analysis-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(103, 217, 255, 0.24);
  border-radius: 8px;
  background: rgba(10, 13, 18, 0.84);
  box-shadow: var(--shadow);
}

.analysis-window::after {
  content: "";
  position: absolute;
  top: -18%;
  left: 0;
  right: 0;
  height: 28%;
  background: rgba(103, 217, 255, 0.08);
  animation: scanPanel 5.6s linear infinite;
}

.window-bar {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.83rem;
  font-weight: 800;
}

.window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--red);
}

.window-bar span:nth-child(2) {
  background: var(--amber);
}

.window-bar span:nth-child(3) {
  background: var(--green);
}

.window-bar strong {
  margin-left: 8px;
  color: #d8e2f2;
}

.board-stage {
  position: relative;
  min-height: 390px;
  padding: 18px;
}

.trace-map {
  width: 100%;
  height: 100%;
  min-height: 342px;
}

.trace-map rect {
  fill: rgba(35, 110, 218, 0.1);
  stroke: rgba(255, 255, 255, 0.2);
  stroke-width: 2;
}

.trace {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16 18;
  animation: traceFlow 3.8s linear infinite;
}

.trace-two {
  stroke: var(--blue-bright);
  animation-duration: 4.5s;
}

.trace-three {
  stroke: var(--green);
  animation-duration: 5.2s;
}

.trace-four {
  stroke: var(--amber);
  animation-duration: 4.1s;
}

.node {
  fill: var(--paper);
  stroke: var(--cyan);
  stroke-width: 5;
}

.node-hot {
  stroke: var(--red);
  animation: hotPulse 1.5s ease-in-out infinite;
}

.floating-card {
  position: absolute;
  min-width: 132px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(15, 20, 28, 0.88);
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.32);
  animation: floatPanel 5s ease-in-out infinite;
}

.floating-card span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.floating-card strong {
  display: block;
  margin-top: 4px;
  color: var(--white);
  font-size: 1.08rem;
}

.card-si {
  top: 46px;
  right: 28px;
}

.card-pi {
  left: 30px;
  bottom: 56px;
  animation-delay: 550ms;
}

.card-thermal {
  right: 52px;
  bottom: 28px;
  animation-delay: 950ms;
}

.hero-metrics {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 42px;
}

.hero-metrics div {
  min-height: 112px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.hero-metrics span {
  display: block;
  color: var(--white);
  font-size: 2rem;
  font-weight: 900;
  line-height: 1;
}

.hero-metrics p {
  margin: 10px 0 0;
  color: var(--muted);
}

.intro,
.services,
.process,
.capabilities,
.applications,
.contact,
.visual-band,
.analysis {
  padding: 92px 0;
}

.section-panel {
  background: rgba(255, 255, 255, 0.035);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(300px, 1fr);
  gap: 52px;
  align-items: start;
}

.section-grid > p,
.analysis-copy p,
.contact-copy p {
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading {
  margin-bottom: 36px;
}

.section-heading h2,
.analysis-copy h2 {
  max-width: 780px;
}

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

.service-card,
.process-list article,
.application-grid article,
.quote-form,
.report-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 20, 28, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
}

.service-card {
  min-height: 310px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.service-card:hover {
  transform: translateY(-6px);
  border-color: rgba(95, 156, 255, 0.55);
  background: rgba(21, 28, 39, 0.94);
}

.service-number,
.work-card span,
.process-list span {
  color: var(--cyan);
  letter-spacing: 0;
}

.service-card p,
.process-list p,
.application-grid p,
.work-card p,
.capability-table span,
.site-footer p {
  color: var(--muted);
}

.analysis {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1fr);
  gap: 44px;
  align-items: center;
}

.report-stack {
  display: grid;
  gap: 14px;
}

.report-card {
  padding: 20px;
  transform: translateX(0);
  transition: transform 180ms ease, border-color 180ms ease;
}

.report-card:hover,
.report-card.active {
  transform: translateX(-8px);
  border-color: rgba(103, 217, 255, 0.45);
}

.report-top {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 900;
}

.report-top strong {
  color: var(--green);
}

.report-card:nth-child(2) .report-top strong {
  color: var(--amber);
}

.report-card p {
  color: #d8e2f2;
}

.meter {
  height: 9px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  animation: meterIn 1.8s ease both;
}

.meter.warning span {
  background: var(--amber);
}

.visual-band {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
  gap: 16px;
}

.feature-photo {
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.small-photo {
  min-height: 340px;
  align-self: end;
}

.feature-photo figcaption {
  color: var(--white);
  background: rgba(5, 6, 8, 0.78);
  border-left: 4px solid var(--blue-bright);
  border-radius: 8px;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.process-list article {
  min-height: 300px;
  padding: 24px;
}

.capabilities {
  background: rgba(5, 6, 8, 0.82);
}

.capability-table {
  display: grid;
  gap: 0;
}

.section-grid .capability-table {
  width: 100%;
  margin: 0;
}

.capability-table div {
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--line);
}

.capability-table strong {
  color: var(--white);
}

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

.application-grid article {
  min-height: 210px;
  padding: 24px;
}

.cta-strip {
  display: flex;
  justify-content: space-between;
  gap: 22px;
  align-items: center;
  color: var(--white);
  background: rgba(35, 110, 218, 0.16);
  border: 1px solid rgba(95, 156, 255, 0.38);
  border-radius: 8px;
  padding: 34px;
  box-shadow: none;
}

.cta-strip h2 {
  max-width: 820px;
  color: var(--white);
  font-size: 2.35rem;
}

.cta-strip .section-kicker {
  color: var(--cyan);
}

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(340px, 1fr);
  gap: 44px;
}

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

.contact-list li {
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  color: var(--white);
}

.contact-list a {
  color: var(--cyan);
}

.quote-form {
  padding: 26px;
}

.quote-form label {
  color: var(--white);
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.06);
}

.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--blue-bright);
  box-shadow: 0 0 0 3px rgba(95, 156, 255, 0.2);
}

.quote-form textarea::placeholder {
  color: #8b97aa;
}

.form-status {
  color: var(--green);
}

.site-footer {
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.footer-brand {
  width: min(250px, 72vw);
}

.footer-links a:hover {
  color: var(--white);
}

.reveal-ready [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms ease;
}

.reveal-ready [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes traceFlow {
  to {
    stroke-dashoffset: -68;
  }
}

@keyframes scanPanel {
  to {
    transform: translateY(560%);
  }
}

@keyframes hotPulse {
  0%,
  100% {
    stroke-width: 5;
  }
  50% {
    stroke-width: 10;
  }
}

@keyframes floatPanel {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes meterIn {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

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

@media (max-width: 1080px) {
  h1 {
    font-size: 3.8rem;
  }

  h2 {
    font-size: 2.65rem;
  }

  .hero-shell,
  .analysis,
  .section-grid,
  .contact {
    grid-template-columns: 1fr;
  }

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

  .analysis-copy h2 {
    max-width: 900px;
  }
}

@media (max-width: 760px) {
  .nav-shell {
    min-height: 66px;
  }

  .brand {
    width: min(220px, 64vw);
  }

  .site-menu {
    top: 74px;
    color: var(--muted);
    border-color: var(--line);
    background: rgba(10, 13, 18, 0.96);
  }

  .hero {
    min-height: calc(76vh - 66px);
    padding: 84px 0 28px;
  }

  h1 {
    font-size: 2.48rem;
  }

  h2,
  .cta-strip h2 {
    font-size: 2rem;
  }

  .hero-copy {
    font-size: 1rem;
  }

  .hero-visual {
    display: none;
  }

  .hero-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 28px;
  }

  .hero-metrics div {
    min-height: 82px;
    padding: 14px;
  }

  .hero-metrics span {
    font-size: 1.48rem;
  }

  .hero-metrics p {
    font-size: 0.9rem;
  }

  .intro,
  .services,
  .process,
  .capabilities,
  .applications,
  .contact,
  .visual-band,
  .analysis {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  .service-grid,
  .process-list,
  .application-grid,
  .visual-band {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
  }

  .feature-photo,
  .small-photo {
    min-height: 310px;
  }

  .report-card:hover,
  .report-card.active {
    transform: translateX(0);
  }

  .capability-table div,
  .contact-list li {
    grid-template-columns: 1fr;
  }

  .cta-strip {
    align-items: flex-start;
  }
}

@media (max-width: 430px) {
  .hero {
    min-height: calc(74vh - 66px);
  }

  h1 {
    font-size: 2.12rem;
  }

  h2,
  .cta-strip h2 {
    font-size: 1.78rem;
  }

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

  .quote-form,
  .cta-strip {
    padding: 18px;
  }
}

/* SEPIC service expansion */
.site-header {
  padding: 12px 0;
  background: transparent;
  border-bottom: 0;
}

.nav-shell {
  min-height: 68px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.68);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.site-menu {
  gap: 8px;
}

.nav-item {
  position: relative;
}

.nav-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--muted);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.nav-link::after {
  content: "";
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform 180ms ease;
}

.nav-item:hover .nav-link,
.nav-item:focus-within .nav-link,
.nav-item.is-active .nav-link {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav-item:hover .nav-link::after,
.nav-item:focus-within .nav-link::after,
.nav-item.is-active .nav-link::after {
  transform: translateY(2px) rotate(225deg);
}

.dropdown-panel {
  position: absolute;
  top: calc(100% + 12px);
  left: 0;
  min-width: 250px;
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(18px);
}

.dropdown-panel a {
  min-height: 38px;
  display: flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--muted);
}

.dropdown-panel a:hover,
.dropdown-panel a:focus-visible {
  color: var(--white);
  background: rgba(35, 110, 218, 0.18);
}

.nav-item:hover .dropdown-panel,
.nav-item:focus-within .dropdown-panel,
.nav-item.is-active .dropdown-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.motion-ribbon {
  max-width: 720px;
  display: flex;
  gap: 10px;
  overflow: hidden;
  margin-top: 28px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
}

.motion-ribbon span {
  flex: 0 0 auto;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(35, 110, 218, 0.22);
  font-size: 0.86rem;
  font-weight: 900;
  animation: ribbonDrift 10s linear infinite;
}

.service-card {
  overflow: hidden;
}

.service-card img {
  height: 150px;
  margin: -24px -24px 22px;
  width: calc(100% + 48px);
  border-radius: 8px 8px 0 0;
}

.text-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--cyan);
  font-weight: 900;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--white);
}

.contact-panel {
  display: grid;
  gap: 18px;
}

.contact-panel .quote-form {
  width: 100%;
  margin: 0;
}

.map-frame {
  width: 100%;
  min-height: 300px;
  border: 1px solid var(--line);
  border-radius: 8px;
  filter: grayscale(0.2) contrast(1.05);
}

.page-hero,
.detail-section,
.page-cta {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.page-hero {
  min-height: calc(84vh - 92px);
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(340px, 0.9fr);
  gap: 48px;
  align-items: center;
  padding: 132px 0 54px;
}

.page-hero-copy p {
  max-width: 680px;
  color: var(--muted);
  font-size: 1.08rem;
}

.page-hero-copy .button {
  margin-top: 22px;
}

.page-hero-image {
  position: relative;
  min-height: 440px;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(103, 217, 255, 0.22);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.page-hero-image::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(103, 217, 255, 0.32);
  border-radius: 8px;
  animation: framePulse 2.8s ease-in-out infinite;
  pointer-events: none;
}

.page-hero-image figcaption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  padding: 12px 14px;
  color: var(--white);
  background: rgba(5, 6, 8, 0.78);
  border-left: 4px solid var(--blue-bright);
  border-radius: 8px;
  font-weight: 800;
}

.detail-section {
  padding: 86px 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 1.1fr);
  gap: 44px;
}

.detail-list {
  display: grid;
  gap: 14px;
}

.detail-list article {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(15, 20, 28, 0.82);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.detail-list p {
  color: var(--muted);
}

.page-cta {
  margin-bottom: 76px;
  padding: 34px;
  border: 1px solid rgba(95, 156, 255, 0.38);
  border-radius: 8px;
  background: rgba(35, 110, 218, 0.15);
}

.page-cta h2 {
  max-width: 850px;
  margin-bottom: 20px;
}

@keyframes ribbonDrift {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-160px);
  }
}

@keyframes framePulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

@media (max-width: 1080px) {
  .page-hero,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .page-hero {
    min-height: auto;
    padding-top: 118px;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 8px 0;
  }

  .nav-shell {
    width: min(100% - 20px, var(--max));
    padding: 0 10px;
  }

  .site-menu {
    top: 82px;
  }

  .nav-item,
  .nav-link {
    width: 100%;
  }

  .nav-link {
    justify-content: space-between;
  }

  .dropdown-panel {
    position: static;
    min-width: 0;
    display: none;
    margin: 2px 0 8px;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }

  .nav-item:focus-within .dropdown-panel {
    display: none;
  }

  .nav-item.is-active .dropdown-panel {
    display: grid;
  }

  .motion-ribbon {
    display: none;
  }

  .service-card img {
    height: 190px;
  }

  .page-hero {
    min-height: calc(76vh - 66px);
    padding: 94px 0 40px;
  }

  .page-hero-image {
    min-height: 320px;
  }

  .detail-section {
    padding: 62px 0;
  }

  .map-frame {
    min-height: 260px;
  }
}

/* Home 3D motion graphics */
.hero {
  min-height: 92vh;
  background: #050608;
}

.hero::before {
  z-index: 1;
  background: rgba(5, 6, 8, 0.38);
}

.hero::after {
  z-index: 2;
}

.hero-3d-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: #050608;
}

.hero-3d-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: rgba(5, 6, 8, 0.1);
  pointer-events: none;
}

.hero-3d-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border: 1px solid rgba(103, 217, 255, 0.08);
  opacity: 0.7;
  pointer-events: none;
}

#hero-3d {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 800ms ease;
}

.three-ready #hero-3d {
  opacity: 1;
}

.hero-3d-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.85;
}

.three-ready .hero-3d-fallback {
  opacity: 0;
}

.hero-3d-fallback span {
  position: absolute;
  width: 42%;
  height: 2px;
  background: rgba(103, 217, 255, 0.5);
  transform: rotate(-18deg);
  animation: fallbackTrace 4s ease-in-out infinite;
}

.hero-3d-fallback span:nth-child(2) {
  width: 56%;
  transform: translateY(120px) rotate(14deg);
  animation-delay: 700ms;
}

.hero-3d-fallback span:nth-child(3) {
  width: 34%;
  transform: translateY(-120px) rotate(29deg);
  animation-delay: 1200ms;
}

.hero-shell {
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.62fr);
  min-height: 600px;
  z-index: 3;
}

.hero-content {
  max-width: 760px;
  min-width: 0;
}

.hero-copy {
  text-shadow: 0 2px 22px rgba(0, 0, 0, 0.8);
}

.hero-hud {
  align-self: end;
  display: grid;
  gap: 14px;
  max-width: 360px;
  justify-self: end;
}

.hud-card,
.hud-grid div {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(9, 13, 20, 0.68);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(18px);
}

.hud-card {
  min-height: 132px;
  padding: 22px;
}

.hud-card-primary {
  position: relative;
  overflow: hidden;
}

.hud-card-primary::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(103, 217, 255, 0.28);
  border-radius: 8px;
  animation: framePulse 2.8s ease-in-out infinite;
}

.hud-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.hud-grid div {
  min-height: 86px;
  padding: 16px;
}

.hud-card span,
.hud-grid span {
  display: block;
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 900;
}

.hud-card strong,
.hud-grid strong {
  display: block;
  margin-top: 8px;
  color: var(--white);
  font-size: 1.08rem;
}

.hero-metrics {
  z-index: 3;
}

@keyframes fallbackTrace {
  0%,
  100% {
    opacity: 0.25;
    transform-origin: center;
  }
  50% {
    opacity: 0.85;
  }
}

@media (max-width: 1080px) {
  .hero-shell {
    grid-template-columns: 1fr;
  }

  .hero-hud {
    max-width: none;
    justify-self: stretch;
  }

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

@media (max-width: 760px) {
  .hero {
    min-height: 90vh;
    padding-top: 94px;
  }

  .hero::before {
    background: rgba(5, 6, 8, 0.58);
  }

  .hero-shell {
    min-height: auto;
  }

  .hero-content,
  .hero-actions {
    width: 100%;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

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

  .hero-hud {
    display: none;
  }

  .hero-3d-stage {
    opacity: 0.78;
  }
}

/* ── Signal Flow Animation ── */
.signal-flow-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.signal-flow-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
}

.signal-flow-ready .signal-flow-svg {
  opacity: 1;
}

.sf-grid {
  opacity: 0.6;
}

.sf-traces path {
  transition: opacity 400ms ease;
}

.sf-chips rect {
  transition: opacity 400ms ease;
}

.sf-pulses {
  mix-blend-mode: screen;
}

@media (max-width: 760px) {
  .signal-flow-stage {
    opacity: 0.65;
  }
}

@media (prefers-reduced-motion: reduce) {
  .signal-flow-svg {
    opacity: 0.7 !important;
  }
  .sf-pulses circle {
    animation: none !important;
  }
}
