:root {
  --font-body: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-heading: "Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --font-mono: "JetBrains Mono", Consolas, monospace;
  --ink: #16202a;
  --muted: #647181;
  --line: #d8dee6;
  --paper: #f5f7fa;
  --panel: #ffffff;
  --steel: #23506f;
  --steel-dark: #143245;
  --signal: #f4b236;
  --signal-dark: #b66f13;
  --ok: #1f7a5c;
  --shadow: 0 20px 50px rgba(20, 50, 69, 0.12);
}

.page-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #d8e4ec;
}

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 20px;
  color: #b8c9d6;
  font-size: 13px;
}

.breadcrumb a {
  color: #fff;
  font-weight: 600;
}

.breadcrumb strong {
  color: var(--signal);
  font-weight: 600;
}

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

.archive-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.archive-sidebar,
.aside-card,
.quote-form,
.seo-block,
.faq-box {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 50, 69, 0.07);
}

.archive-sidebar,
.aside-card,
.seo-block,
.faq-box {
  padding: 22px;
}

.archive-sidebar h2,
.aside-card h2,
.seo-block h2,
.faq-box h2 {
  font-size: 22px;
}

.term-box {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.term-box strong {
  color: var(--steel-dark);
}

.term-box a {
  padding: 8px 10px;
  color: #334352;
  background: #f0f4f7;
  border-radius: 6px;
  font-size: 14px;
}

.seo-block {
  margin-top: 28px;
}

.single-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.single-aside {
  display: grid;
  gap: 16px;
}

.aside-card ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 18px;
}

.aside-card--dark {
  color: #fff;
  background: var(--steel-dark);
  border-color: rgba(255, 255, 255, 0.12);
}

.aside-card--dark p {
  color: #d8e4ec;
}

.quote-form {
  padding: 24px;
}

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

.quote-form label {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
  color: var(--steel-dark);
  font-weight: 600;
}

.quote-form input,
.quote-form select,
.quote-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-weight: 400;
}

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

.quote-form small {
  color: var(--muted);
  font-weight: 400;
}

.notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 600;
}

.notice--success {
  color: #115c43;
  background: #dff4ec;
}

.notice--error {
  color: #8a2a19;
  background: #fde8e2;
}

.faq-list {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.faq-list h3 {
  margin-bottom: 14px;
}

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

.faq-list summary {
  cursor: pointer;
  color: var(--steel-dark);
  font-weight: 700;
}

.faq-list details p {
  margin: 10px 0 0;
  color: var(--muted);
}

.service-hero {
  padding: 74px 0 64px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(20, 50, 69, 0.96), rgba(18, 40, 54, 0.92)),
    url("../img/cnc-workshop-hero.png") center / cover;
}

.service-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 42px;
  align-items: end;
}

.service-hero h1 {
  max-width: 840px;
  margin-bottom: 18px;
}

.service-hero p:not(.eyebrow) {
  max-width: 760px;
  color: #d8e4ec;
  font-size: 18px;
}

.service-hero__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.service-hero__panel {
  display: grid;
  gap: 12px;
}

.service-hero__panel div {
  padding: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.service-hero__panel span {
  display: block;
  color: #fff;
  font-weight: 700;
}

.service-content {
  display: grid;
  gap: 18px;
}

.service-card-block {
  padding: 28px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 50, 69, 0.07);
}

.service-card-block h2 {
  font-size: 28px;
}

.service-card-block p {
  color: #344453;
}

.service-intro h2:first-of-type {
  margin-top: 0;
}

.tech-matrix {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.tech-matrix div {
  padding: 18px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f7fafc;
}

.tech-matrix div:nth-child(2n) {
  border-right: 0;
}

.tech-matrix div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.tech-matrix span,
.tech-matrix strong {
  display: block;
}

.tech-matrix span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.tech-matrix strong {
  color: var(--steel-dark);
}

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

.check-grid div {
  padding: 18px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.check-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--steel-dark);
}

.check-grid p {
  margin-bottom: 0;
  color: var(--muted);
}

.service-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: svcstep;
}

.service-steps li {
  min-height: 190px;
  padding: 18px;
  background: var(--steel-dark);
  border-radius: 8px;
  counter-increment: svcstep;
}

.service-steps li::before {
  display: block;
  margin-bottom: 34px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
  content: "0" counter(svcstep);
}

.service-steps strong,
.service-steps span {
  display: block;
}

.service-steps strong {
  color: #fff;
}

.service-steps span {
  margin-top: 8px;
  color: #d8e4ec;
  font-size: 14px;
}

.faq-list--service {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

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

.related-section {
  padding: 24px;
  background: #f8fafc;
}

.related-section .module-head {
  margin-bottom: 16px;
}

.related-section .module-head h2 {
  max-width: 760px;
  margin-bottom: 8px;
  font-size: clamp(24px, 2.6vw, 34px);
  line-height: 1.2;
}

.related-section .module-head p:not(.eyebrow) {
  max-width: 760px;
  margin-bottom: 0;
  color: var(--muted);
}

.related-columns > div {
  padding: 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.related-columns h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.related-columns ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.related-columns a {
  display: block;
  padding: 9px 0;
  color: var(--steel);
  font-weight: 700;
  line-height: 1.45;
  border-top: 1px solid #e8edf2;
}

.related-columns li:first-child a {
  border-top: 0;
}

.service-aside .aside-card p {
  color: var(--muted);
}

.aside-card--sticky {
  position: sticky;
  top: 120px;
}

@media (max-width: 980px) {
  .service-hero__grid,
  .tech-matrix,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .tech-matrix div,
  .tech-matrix div:nth-child(2n),
  .tech-matrix div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tech-matrix div:last-child {
    border-bottom: 0;
  }

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

@media (max-width: 680px) {
  .service-hero {
    padding: 52px 0 44px;
  }

  .service-card-block {
    padding: 20px;
  }

  .service-steps,
  .related-columns {
    grid-template-columns: 1fr;
  }
}

.service-landing {
  padding: 54px 0 46px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(15, 38, 53, 0.98), rgba(20, 80, 111, 0.78)),
    var(--service-hero-image, url("../img/cnc-workshop-hero.png")) center / cover;
}

.service-landing__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: center;
}

.service-landing h1 {
  max-width: 860px;
  margin-bottom: 16px;
  font-size: clamp(38px, 5vw, 64px);
}

.service-landing__copy > p:not(.eyebrow) {
  max-width: 760px;
  color: #d8e4ec;
  font-size: 18px;
}

.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.service-tags span {
  padding: 7px 10px;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 700;
}

.quote-panel,
.side-box,
.service-module {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(20, 50, 69, 0.09);
}

.quote-panel {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
}

.quote-panel h2 {
  margin-bottom: 10px;
  font-size: 24px;
}

.quote-panel p {
  color: var(--muted);
}

.quote-panel ul {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding-left: 18px;
}

.service-proof {
  background: var(--signal);
}

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

.service-proof__grid div {
  min-height: 112px;
  padding: 20px;
  border-left: 1px solid rgba(20, 50, 69, 0.18);
}

.service-proof__grid div:last-child {
  border-right: 1px solid rgba(20, 50, 69, 0.18);
}

.service-proof strong,
.service-proof span {
  display: block;
}

.service-proof strong {
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 22px;
}

.service-proof span {
  margin-top: 8px;
  color: #233341;
  font-weight: 700;
  line-height: 1.45;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 28px;
  align-items: start;
}

.service-main {
  display: grid;
  gap: 18px;
}

.service-module {
  padding: 28px;
  background: #fff;
}

.service-module--lead {
  border-left: 5px solid var(--signal);
}

.service-module--lead h2,
.service-module--accept h2 {
  max-width: 900px;
}

.service-module p {
  color: #344453;
}

.module-head {
  max-width: 880px;
  margin-bottom: 20px;
}

.capability-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.capability-list div {
  padding: 18px;
  background: #f7fafc;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.capability-list div:nth-child(2n) {
  border-right: 0;
}

.capability-list div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.capability-list span,
.capability-list strong {
  display: block;
}

.capability-list span {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
}

.capability-list strong {
  color: var(--steel-dark);
}

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

.docs-strip div {
  padding: 18px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.docs-strip strong {
  display: block;
  margin-bottom: 8px;
  color: var(--steel-dark);
}

.docs-strip p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.service-flow {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}

.service-flow li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 16px;
  align-items: center;
  padding: 18px;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.service-flow li:last-child {
  border-bottom: 0;
}

.service-flow span {
  width: 26px;
  height: 26px;
  background: var(--signal);
  border-radius: 50%;
}

.service-flow strong {
  color: var(--ink);
}

.service-side {
  display: grid;
  gap: 16px;
}

.side-box {
  padding: 22px;
  background: #fff;
}

.side-box--sticky {
  position: sticky;
  top: 120px;
}

.side-box h2 {
  font-size: 22px;
}

.side-box div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.side-box span,
.side-box strong {
  display: block;
}

.side-box span {
  color: var(--muted);
  font-size: 13px;
}

.side-box strong {
  margin-top: 4px;
  color: var(--steel-dark);
}

.side-box .btn {
  width: 100%;
  margin-top: 18px;
}

@media (max-width: 980px) {
  .service-landing__grid,
  .service-layout {
    grid-template-columns: 1fr;
  }

  .service-proof__grid,
  .docs-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .service-landing {
    padding: 42px 0 34px;
  }

  .service-proof__grid,
  .docs-strip,
  .capability-list {
    grid-template-columns: 1fr;
  }

  .service-module {
    padding: 20px;
  }

  .capability-list div,
  .capability-list div:nth-child(2n),
  .capability-list div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .capability-list div:last-child {
    border-bottom: 0;
  }
}

.services-archive-hero {
  padding: 64px 0 54px;
  color: #fff;
  background:
    linear-gradient(115deg, rgba(15, 38, 53, 0.98), rgba(35, 80, 111, 0.86)),
    url("../img/cnc-workshop-hero.png") center / cover;
}

.services-archive-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 36px;
  align-items: end;
}

.services-archive-hero h1 {
  max-width: 920px;
  margin-bottom: 16px;
  font-size: clamp(40px, 5.4vw, 72px);
}

.services-archive-hero p:not(.eyebrow) {
  max-width: 800px;
  color: #d8e4ec;
  font-size: 18px;
}

.archive-quote-box {
  padding: 24px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.archive-quote-box strong,
.archive-quote-box span {
  display: block;
}

.archive-quote-box strong {
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 34px;
}

.archive-quote-box span {
  margin: 8px 0 18px;
  color: var(--muted);
}

.service-group-band {
  padding: 44px 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.archive-section-head {
  max-width: 820px;
  margin-bottom: 22px;
}

.archive-section-head--split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: end;
}

.archive-section-head--split > p {
  margin-bottom: 6px;
  color: var(--muted);
}

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

.service-group-grid a {
  min-height: 120px;
  padding: 18px;
  background: #f7fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.service-group-grid strong,
.service-group-grid span {
  display: block;
}

.service-group-grid strong {
  color: var(--steel-dark);
  font-size: 18px;
}

.service-group-grid span {
  margin-top: 26px;
  color: var(--muted);
  font-size: 14px;
}

.services-archive {
  background: #eef3f7;
}

.archive-filter-panel {
  display: grid;
  gap: 0;
  margin-bottom: 26px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.filter-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 18px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.filter-row:last-child {
  border-bottom: 0;
}

.filter-row strong {
  color: var(--steel-dark);
}

.filter-row div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-row a {
  padding: 6px 9px;
  color: #334352;
  background: #f0f4f7;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
}

.service-directory {
  display: grid;
  gap: 12px;
}

.service-directory-card {
  display: grid;
  grid-template-columns: 180px 190px minmax(0, 1fr) 180px;
  gap: 18px;
  align-items: center;
  padding: 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 50, 69, 0.06);
}

.service-directory-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #dbe4ea;
  border-radius: 8px;
}

.service-directory-card__thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.service-directory-card:hover .service-directory-card__thumb img {
  transform: scale(1.035);
}

.service-directory-card__meta span,
.service-directory-card__meta strong {
  display: block;
}

.service-directory-card__meta span {
  margin-bottom: 10px;
  color: var(--signal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.service-directory-card__meta strong {
  color: var(--steel-dark);
  font-size: 14px;
}

.service-directory-card h2 {
  margin-bottom: 8px;
  font-size: 24px;
}

.service-directory-card p {
  margin-bottom: 12px;
  color: var(--muted);
}

.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.mini-tags span {
  padding: 5px 8px;
  color: #334352;
  background: #eef3f7;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
}

.service-directory-card__link {
  justify-self: end;
  padding: 10px 12px;
  color: #fff;
  background: var(--steel);
  border-radius: 6px;
  font-weight: 700;
  text-align: center;
}

@media (max-width: 980px) {
  .services-archive-hero__grid,
  .archive-section-head--split,
  .service-directory-card {
    grid-template-columns: 1fr;
  }

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

  .service-directory-card__link {
    justify-self: start;
  }
}

@media (max-width: 680px) {
  .services-archive-hero {
    padding: 44px 0 36px;
  }

  .service-group-grid,
  .filter-row {
    grid-template-columns: 1fr;
  }

  .filter-row {
    gap: 10px;
  }
}

@media (max-width: 980px) {
  .archive-grid,
  .single-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 680px) {
  .content-grid--services,
  .quote-form__grid {
    grid-template-columns: 1fr;
  }

  .breadcrumb {
    flex-wrap: wrap;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-body);
  font-size: 15.5px;
  line-height: 1.72;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.container {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 253, 0.96);
  border-bottom: 1px solid rgba(204, 215, 225, 0.86);
  box-shadow: 0 12px 34px rgba(14, 36, 51, 0.06);
  backdrop-filter: blur(18px);
}

.nav {
  position: relative;
  display: flex;
  min-height: 82px;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  min-width: 250px;
  align-items: center;
  gap: 14px;
}

.brand__mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  background: #fff;
  border: 1px solid rgba(18, 53, 71, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 26px rgba(18, 53, 71, 0.12);
}

.brand__mark img {
  display: block;
  width: 44px;
  height: 44px;
}

.brand__copy,
.brand strong {
  display: block;
}

.brand__copy {
  min-width: 0;
}

.brand strong {
  font-family: var(--font-heading);
  color: #142331;
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap;
}

.nav__menu {
  flex: 1;
}

.site-menu {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-menu a {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  padding: 0 13px;
  color: #2b3947;
  border-radius: 7px;
  font-weight: 700;
  font-size: 14px;
  text-transform: capitalize;
  transition: color 0.18s ease, background-color 0.18s ease;
}

.site-menu a:hover,
.inline-link:hover {
  color: var(--signal-dark);
}

.site-menu a:hover {
  background: #eef4f7;
}

.nav__phone {
  padding: 11px 15px;
  color: #fff;
  background: var(--steel);
  border-radius: 6px;
  font-weight: 700;
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(18, 53, 71, 0.16);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 22px rgba(18, 53, 71, 0.08);
}

.menu-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: var(--ink);
}

.hero {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: var(--steel-dark);
}

.hero__media {
  position: absolute;
  inset: 0;
}

.hero__media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(90deg, rgba(9, 22, 31, 0.94) 0%, rgba(9, 22, 31, 0.84) 34%, rgba(9, 22, 31, 0.42) 54%, rgba(9, 22, 31, 0.06) 76%, rgba(9, 22, 31, 0.04) 100%),
    linear-gradient(180deg, rgba(9, 22, 31, 0.04), rgba(9, 22, 31, 0.1));
}

.hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% center;
}

.hero__inner {
  position: relative;
  display: grid;
  min-height: 680px;
  width: min(100% - 32px, 1500px);
  grid-template-columns: minmax(0, 740px);
  align-content: center;
  gap: 30px;
  padding: 74px 0 92px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--signal);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 18px;
  font-family: var(--font-heading);
  font-size: clamp(42px, 6.4vw, 76px);
  font-weight: 700;
  line-height: 1.06;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 650px;
  margin-bottom: 26px;
  font-size: clamp(42px, 5.3vw, 68px);
}

h2 {
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.32;
  letter-spacing: 0;
}

.hero__lead {
  max-width: 720px;
  margin-bottom: 28px;
  color: #d8e4ec;
  font-size: 18px;
  line-height: 1.76;
}

.hero__copy .eyebrow {
  margin-bottom: 22px;
}

.hero__actions,
.cta-band__inner {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: 0;
}

.btn--primary {
  color: var(--steel-dark);
  background: var(--signal);
}

.btn--ghost {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn--dark {
  color: #fff;
  background: var(--steel-dark);
}

.hero-panel {
  display: grid;
  width: min(100%, 740px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  justify-self: start;
}

.hero-panel div {
  min-height: 104px;
  padding: 20px;
  background: rgba(14, 31, 42, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(4, 12, 18, 0.16);
  backdrop-filter: blur(8px);
}

.hero-panel strong,
.hero-panel span {
  display: block;
}

.hero-panel strong {
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
}

.hero-panel span {
  margin-top: 12px;
  color: #e6edf3;
  font-size: 14px;
  line-height: 1.45;
}

@media (min-width: 1200px) {
  .hero__inner {
    width: min(100% - 88px, 1560px);
  }
}

.section {
  padding: 86px 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 34px;
}

.section-head > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.78;
}

.section-head--row {
  display: flex;
  max-width: none;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

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

.service-card,
.content-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20, 50, 69, 0.06);
}

.service-card {
  overflow: hidden;
  min-height: 100%;
  padding: 0;
}

.service-card__image {
  display: block;
  background: #dfe6ec;
}

.service-card__image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-card__body {
  padding: 22px;
}

.service-card__body span {
  display: inline-block;
  margin-bottom: 18px;
  color: var(--ok);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.service-card h3 {
  margin-bottom: 12px;
}

.service-card p,
.project-row p,
.capability p,
.site-footer p {
  color: var(--muted);
}

.service-card ul {
  display: grid;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.service-card li {
  position: relative;
  padding-left: 18px;
  color: #334352;
  font-size: 14px;
  line-height: 1.45;
}

.service-card li::before {
  position: absolute;
  top: 0.64em;
  left: 0;
  width: 7px;
  height: 7px;
  background: var(--signal);
  border-radius: 50%;
  content: "";
}

.capability {
  position: relative;
  overflow: hidden;
  background: #e7edf2;
}

.capability::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(20, 50, 69, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(20, 50, 69, 0.06) 1px, transparent 1px);
  background-size: 54px 54px;
  content: "";
  pointer-events: none;
}

.capability .container {
  position: relative;
}

.capability-head {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 0.62fr);
  gap: 42px;
  align-items: end;
  margin-bottom: 34px;
}

.capability-head h2 {
  max-width: 740px;
  margin-bottom: 0;
}

.capability-head > p {
  margin-bottom: 4px;
  color: #526272;
  font-size: 16.5px;
  line-height: 1.72;
}

.inline-link {
  color: var(--steel);
  font-weight: 700;
}

.capability-board {
  display: grid;
  grid-template-columns: minmax(360px, 0.9fr) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}

.capability-visual {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid rgba(216, 222, 230, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.capability-visual::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(12, 26, 37, 0.06), rgba(12, 26, 37, 0.78));
  content: "";
}

.capability-visual img {
  width: 100%;
  height: 100%;
  min-height: 520px;
  object-fit: cover;
}

.capability-metrics {
  position: absolute;
  right: 18px;
  bottom: 18px;
  left: 18px;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.capability-metrics div {
  padding: 16px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  backdrop-filter: blur(10px);
}

.capability-metrics strong,
.capability-metrics span {
  display: block;
}

.capability-metrics strong {
  color: var(--steel-dark);
  font-family: var(--font-mono);
  font-size: 24px;
  line-height: 1;
}

.capability-metrics span {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

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

.capability-specs article,
.capability-cta {
  border: 1px solid rgba(216, 222, 230, 0.95);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 34px rgba(20, 50, 69, 0.07);
}

.capability-specs article {
  min-height: 202px;
  padding: 22px;
}

.capability-specs article span {
  display: inline-grid;
  width: 38px;
  height: 30px;
  place-items: center;
  margin-bottom: 26px;
  color: var(--steel-dark);
  background: var(--signal);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-weight: 800;
}

.capability-specs h3 {
  margin-bottom: 10px;
}

.capability-specs p {
  margin-bottom: 0;
}

.capability-cta {
  display: flex;
  min-height: 76px;
  grid-column: 1 / -1;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  color: #fff;
  background: var(--steel-dark);
  font-weight: 700;
}

.capability-cta::after {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: var(--steel-dark);
  background: var(--signal);
  border-radius: 50%;
  content: ">";
}

.project-section {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #f8fafc 0%, #eef3f7 100%);
}

.project-section::before {
  position: absolute;
  inset: 0 0 auto;
  height: 240px;
  pointer-events: none;
  content: "";
  background: linear-gradient(90deg, rgba(35, 80, 111, 0.1), rgba(244, 178, 54, 0.12), rgba(31, 122, 92, 0.08));
}

.project-section .container {
  position: relative;
}

.project-section .section-head {
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(35, 80, 111, 0.16);
}

.project-section .section-head > div {
  max-width: 860px;
}

.project-section .inline-link {
  flex: 0 0 auto;
  padding: 11px 16px;
  color: var(--steel-dark);
  background: #fff;
  border: 1px solid rgba(35, 80, 111, 0.16);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(20, 50, 69, 0.08);
}

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

.project-row {
  position: relative;
  display: grid;
  min-height: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35, 80, 111, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 50, 69, 0.09);
}

.project-row::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  border-top: 3px solid var(--signal);
}

.project-row__media {
  position: relative;
  margin: 0;
  background: #dfe6ec;
}

.project-row img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  transition: transform 220ms ease;
}

.project-row:hover img {
  transform: scale(1.035);
}

.project-row figcaption,
.project-row__code {
  color: var(--signal-dark);
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: 0;
}

.project-row figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(20, 50, 69, 0.9);
  border-radius: 6px;
  font-size: 13px;
}

.project-row__content {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 22px;
}

.project-row__code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  background: #fff4dc;
  border-radius: 6px;
  font-size: 12px;
}

.project-row h3,
.project-row p {
  margin-bottom: 0;
}

.project-row h3 {
  color: #071522;
}

.project-row small {
  display: block;
  padding-top: 10px;
  color: var(--steel);
  border-top: 1px solid rgba(35, 80, 111, 0.14);
  font-weight: 700;
  line-height: 1.5;
}

.process {
  background: var(--steel-dark);
  color: #fff;
}

.process .section-head p:not(.eyebrow) {
  color: #d8e4ec;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  min-height: 230px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  counter-increment: process;
}

.process-list li::before {
  display: block;
  margin-bottom: 48px;
  color: var(--signal);
  font-family: var(--font-mono);
  font-size: 32px;
  font-weight: 800;
  content: "0" counter(process);
}

.process-list strong,
.process-list span {
  display: block;
}

.process-list span {
  margin-top: 8px;
  color: #d8e4ec;
}

.cta-band {
  padding: 42px 0;
  background: var(--signal);
}

.cta-band__inner {
  justify-content: space-between;
}

.cta-band h2 {
  max-width: 780px;
  margin-bottom: 0;
  color: var(--steel-dark);
}

.cta-band .eyebrow {
  color: #72490d;
}

.site-footer {
  padding: 68px 0 28px;
  color: #dce7ef;
  background: #0f2635;
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.9fr) minmax(240px, 0.95fr);
  gap: 34px;
}

.brand--footer {
  margin-bottom: 18px;
  color: #fff;
}

.brand--footer .brand__mark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.1);
}

.brand--footer strong {
  color: #fff;
}

.brand--footer small {
  color: #adc0cf;
}

.site-footer h2 {
  margin-bottom: 14px;
  color: #fff;
  font-size: 18px;
}

.footer-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li,
.footer-menu li {
  padding: 6px 0;
}

.footer-menu {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-menu a,
.footer-list a,
.footer-bottom a {
  color: #dce7ef;
}

.footer-menu a {
  display: inline-flex;
  align-items: center;
  color: #c6d6e1;
  font-weight: 650;
}

.footer-menu a::before {
  width: 7px;
  height: 7px;
  margin-right: 9px;
  background: var(--signal);
  border-radius: 2px;
  content: "";
}

.footer-menu a:hover,
.footer-list a:hover,
.footer-bottom a:hover {
  color: var(--signal);
}

.footer-cta {
  display: inline-flex;
  margin-top: 10px;
  padding: 11px 14px;
  color: #132b3b;
  background: var(--signal);
  border-radius: 7px;
  font-weight: 700;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #b7c9d6;
  font-size: 13px;
}

.footer-bottom__left,
.footer-bottom__nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.footer-bottom__left {
  min-width: 0;
}

.footer-bottom__left span + span {
  position: relative;
  padding-left: 18px;
}

.footer-bottom__left span + span::before {
  position: absolute;
  top: 50%;
  left: 0;
  width: 4px;
  height: 4px;
  background: rgba(220, 231, 239, 0.48);
  border-radius: 50%;
  content: "";
  transform: translateY(-50%);
}

.footer-bottom__nav {
  justify-content: flex-end;
}

.footer-bottom__nav a {
  color: #c6d6e1;
  font-weight: 650;
}

.float-call {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  padding: 12px 16px;
  color: #fff;
  background: var(--ok);
  border-radius: 6px;
  box-shadow: var(--shadow);
  font-weight: 700;
}

.page-hero {
  padding: 86px 0 54px;
  color: #fff;
  background: var(--steel-dark);
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: clamp(38px, 5.5vw, 62px);
}

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

.content-card {
  overflow: hidden;
}

.content-card__thumb img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.content-card__body {
  padding: 22px;
}

.content-card__meta {
  color: var(--muted);
  font-size: 12.5px;
}

.content-card h2 {
  font-size: 21px;
}

.article-body {
  max-width: 820px;
  color: #2a3744;
  font-size: 17px;
  line-height: 1.78;
}

.article-body h2,
.article-body h3 {
  margin-top: 34px;
}

.single-thumb {
  width: 100%;
  margin-bottom: 28px;
  border-radius: 8px;
}

.page-static-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 34px;
  align-items: start;
}

.page-static-content {
  max-width: none;
  padding: 34px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 50, 69, 0.07);
}

.page-static-content h2:first-child {
  margin-top: 0;
}

.page-static-aside {
  position: sticky;
  top: 112px;
  display: grid;
  gap: 16px;
}

.page-static-aside > div {
  padding: 24px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20, 50, 69, 0.06);
}

.page-static-aside h2 {
  margin-bottom: 12px;
  font-size: 24px;
}

.page-static-aside ul {
  margin: 0 0 18px;
  padding-left: 20px;
  color: var(--muted);
}

.page-static-aside strong,
.page-static-aside a:not(.btn) {
  display: block;
  margin-top: 7px;
  color: var(--steel);
  font-weight: 800;
}

@media (max-width: 980px) {
  .nav {
    min-height: 74px;
    gap: 14px;
  }

  .nav__menu {
    display: none;
    position: absolute;
    right: 0;
    left: 0;
    top: calc(100% + 10px);
    padding: 10px;
    background: #fff;
    border: 1px solid rgba(18, 53, 71, 0.12);
    border-radius: 8px;
    box-shadow: 0 24px 55px rgba(14, 36, 51, 0.18);
  }

  .site-header.is-open .nav__menu {
    display: block;
  }

  .site-menu {
    display: grid;
    gap: 4px;
    justify-content: stretch;
  }

  .site-menu a {
    min-height: 48px;
    justify-content: space-between;
    padding: 0 14px;
    background: #f5f8fa;
    border: 1px solid #e5edf2;
    font-size: 15px;
  }

  .site-menu a::after {
    color: var(--signal-dark);
    content: "→";
    font-weight: 800;
  }

  .nav__phone {
    margin-left: auto;
  }

  .menu-toggle {
    display: block;
  }

  .hero,
  .hero__inner {
    min-height: auto;
  }

  .hero__inner {
    padding-top: clamp(48px, 9vw, 68px);
    padding-bottom: clamp(54px, 10vw, 78px);
  }

  .hero__inner,
  .footer-grid,
  .page-static-layout {
    grid-template-columns: 1fr;
  }

  .page-static-aside {
    position: static;
  }

  .capability-head,
  .capability-board {
    grid-template-columns: 1fr;
  }

  .capability-head {
    gap: 16px;
    align-items: start;
  }

  .capability-visual,
  .capability-visual img {
    min-height: 430px;
  }

  .hero-panel {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    justify-self: stretch;
  }

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

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

@media (max-width: 680px) {
  .container {
    width: min(100% - 24px, 1160px);
  }

  .brand {
    min-width: 0;
    flex: 1 1 auto;
    gap: 10px;
  }

  .brand__mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
  }

  .brand__mark img {
    width: 38px;
    height: 38px;
  }

  .brand strong {
    font-size: clamp(17px, 5vw, 21px);
    line-height: 1.02;
  }

  .nav__phone {
    display: none;
  }

  .nav__menu {
    top: calc(100% + 8px);
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 46px 0 54px;
  }

  .hero__media::after {
    background: linear-gradient(180deg, rgba(12, 26, 37, 0.94), rgba(12, 26, 37, 0.8));
  }

  h1 {
    max-width: 11ch;
    font-size: clamp(38px, 10.6vw, 44px);
    line-height: 1.04;
  }

  h2 {
    font-size: 32px;
  }

  .hero__lead {
    max-width: 100%;
    font-size: 16px;
    line-height: 1.68;
  }

  .hero__actions {
    gap: 10px;
  }

  .hero__actions .btn {
    min-height: 48px;
    padding: 0 15px;
  }

  .hero-panel {
    margin-top: 6px;
  }

  .float-call {
    display: none;
  }

  .hero-panel,
  .service-grid,
  .process-list,
  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero-panel div,
  .service-card,
  .process-list li {
    min-height: auto;
  }

  .section {
    padding: 58px 0;
  }

  .section-head--row,
  .cta-band__inner,
  .footer-bottom {
    display: block;
  }

  .footer-bottom__left,
  .footer-bottom__nav {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .footer-bottom__nav {
    margin-top: 14px;
  }

  .page-static-content {
    padding: 24px;
  }

  .capability-head,
  .capability-board,
  .capability-specs {
    grid-template-columns: 1fr;
  }

  .capability-visual,
  .capability-visual img {
    min-height: 480px;
  }

  .capability-metrics {
    grid-template-columns: 1fr;
  }

  .capability-specs article {
    min-height: auto;
  }

  .capability-cta {
    display: grid;
    grid-template-columns: 1fr 34px;
    gap: 16px;
  }

  .project-list {
    grid-template-columns: 1fr;
  }

  .float-call {
    right: 12px;
    bottom: 12px;
  }
}

/* KTCK mobile layout repair */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

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

.container {
  max-width: calc(100vw - 32px);
}

.hero,
.site-header,
.site-main,
.site-footer,
.section,
.cta-band {
  max-width: 100vw;
  overflow-x: clip;
}

.hero__copy,
.hero__lead,
.section-head,
.section-head > p:not(.eyebrow),
.service-card__body,
.capability-head,
.capability-specs,
.project-row,
.footer-grid {
  min-width: 0;
  max-width: 100%;
}

.service-card__image,
.content-card__thumb,
.service-directory-card__thumb {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.service-card__image img,
.content-card__thumb img,
.service-directory-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 680px) {
  .container {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    margin-right: auto;
    margin-left: auto;
  }

  .nav {
    display: grid;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    grid-template-columns: minmax(0, 1fr) 46px;
    column-gap: 12px;
  }

  .brand {
    min-width: 0;
    width: 100%;
    max-width: 100%;
  }

  .brand strong {
    white-space: normal;
  }

  .menu-toggle {
    display: block;
    width: 46px;
    min-width: 46px;
    margin-left: 0;
    justify-self: end;
  }

  .nav__menu {
    grid-column: 1 / -1;
    width: 100%;
    max-width: 100%;
  }

  .hero__inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  .hero__copy,
  .hero__lead,
  .section-head,
  .section-head > p:not(.eyebrow) {
    width: 100%;
    max-width: 100%;
  }

  .hero__lead,
  .section-head > p:not(.eyebrow),
  .service-card__body p {
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
    max-width: 100%;
  }

  .hero__actions .btn {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    text-align: center;
  }
}
/* KTCK mobile hard repair */
@media (max-width: 680px) {
  .site-header .container.nav {
    position: relative;
    display: flex;
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding-right: 58px;
  }

  .menu-toggle {
    position: absolute;
    top: 14px;
    right: 0;
    display: block !important;
    width: 46px;
    height: 46px;
    z-index: 5;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .brand strong {
    white-space: normal !important;
  }

  .hero__copy,
  .hero__lead,
  .section-head,
  .section-head > p:not(.eyebrow) {
    display: block;
    width: auto !important;
    max-width: min(100%, 34ch) !important;
  }

  .hero__lead,
  .section-head > p:not(.eyebrow) {
    line-height: 1.72;
  }

  .hero__actions,
  .hero-panel,
  .service-grid,
  .process-list,
  .content-grid {
    width: 100% !important;
    max-width: calc(100vw - 24px) !important;
  }

  .hero__actions .btn,
  .hero-panel div,
  .service-card {
    width: 100% !important;
    max-width: 100% !important;
  }
}
/* KTCK hamburger visibility repair */
@media (max-width: 680px) {
  .menu-toggle {
    position: fixed !important;
    top: 15px !important;
    right: 12px !important;
    display: grid !important;
    place-content: center !important;
    width: 44px !important;
    height: 44px !important;
    padding: 0 !important;
    background: #ffffff !important;
    border: 1px solid #143245 !important;
    border-radius: 8px !important;
    box-shadow: 0 10px 22px rgba(18, 53, 71, 0.16) !important;
    opacity: 1 !important;
    visibility: visible !important;
    z-index: 999 !important;
  }

  .menu-toggle span {
    display: block !important;
    width: 20px !important;
    height: 2px !important;
    margin: 3px auto !important;
    background: #143245 !important;
    border-radius: 999px !important;
  }
}

/* Project section final layout guard */
.project-section .project-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.project-section .project-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(35, 80, 111, 0.14);
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(20, 50, 69, 0.09);
}

.project-section .project-row__media {
  position: relative;
  display: block;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #dfe6ec;
}

.project-section .project-row__media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.project-section .project-row__media figcaption {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  display: inline-flex;
  padding: 7px 10px;
  color: #fff;
  background: rgba(20, 50, 69, 0.92);
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 800;
}

.project-section .project-row__content {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 22px;
}

.project-section .project-row__code {
  display: inline-flex;
  width: fit-content;
  padding: 5px 9px;
  color: var(--signal-dark);
  background: #fff4dc;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
}

.project-section .project-row h3 {
  margin: 0;
  color: #071522;
  font-size: 22px;
}

.project-section .project-row p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.project-section .project-row small {
  display: block;
  padding-top: 10px;
  color: var(--steel);
  border-top: 1px solid rgba(35, 80, 111, 0.14);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .project-section .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .project-section .project-list {
    grid-template-columns: 1fr;
  }
}

/* Mobile hero final responsive tuning */
@media (max-width: 680px) {
  .hero {
    min-height: auto;
    background: #0f2635;
  }

  .hero__media img {
    object-position: 64% center;
  }

  .hero__media::after {
    background:
      linear-gradient(180deg, rgba(8, 20, 29, 0.82) 0%, rgba(8, 20, 29, 0.78) 52%, rgba(8, 20, 29, 0.9) 100%),
      linear-gradient(90deg, rgba(8, 20, 29, 0.62), rgba(8, 20, 29, 0.18));
  }

  .hero__inner {
    width: calc(100vw - 32px) !important;
    max-width: calc(100vw - 32px) !important;
    min-height: auto;
    gap: 20px;
    padding: 30px 0 42px;
  }

  .hero__copy,
  .hero__lead {
    width: 100% !important;
    max-width: 100% !important;
  }

  .hero__copy .eyebrow {
    max-width: 28ch;
    margin-bottom: 18px;
    font-size: 11px;
    line-height: 1.45;
  }

  .hero h1 {
    max-width: 9ch !important;
    margin-bottom: 22px;
    font-size: clamp(40px, 12vw, 48px);
    line-height: 1.02;
  }

  .hero__lead {
    margin-bottom: 24px;
    font-size: 16px;
    line-height: 1.7;
  }

  .hero__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .hero__actions .btn {
    width: 100%;
    min-height: 52px;
  }

  .hero-panel {
    width: 100% !important;
    max-width: 100% !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
    margin-top: 4px;
  }

  .hero-panel div {
    width: 100% !important;
    min-height: 96px;
    padding: 16px;
  }

  .hero-panel div:last-child {
    grid-column: 1 / -1;
  }

  .hero-panel strong {
    font-size: 23px;
  }

  .hero-panel span {
    margin-top: 10px;
    font-size: 13px;
  }
}
