:root {
  --ink: #08233b;
  --ink-soft: #5b7081;
  --paper: #f3f7fb;
  --white: #ffffff;
  --line: #d7e4ef;
  --brand: #105098;
  --brand-dark: #083860;
  --brand-mid: #155b9c;
  --brand-light: #4088c8;
  --brand-ice: #cfeaff;
  --charcoal: #061b2f;
  --shadow: 0 24px 70px rgba(8, 56, 96, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

::selection {
  color: var(--white);
  background: var(--brand);
}

body {
  position: relative;
  isolation: isolate;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(180deg, #f8fbfe 0%, var(--paper) 38%, #edf4fa 100%);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(16, 80, 152, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(16, 80, 152, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 72%, transparent);
}

body > * {
  position: relative;
  z-index: 1;
}

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

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(64, 136, 200, 0.58);
  outline-offset: 4px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 80px;
  padding: 14px clamp(18px, 4vw, 60px);
  background: rgba(248, 251, 254, 0.78);
  border-bottom: 1px solid rgba(215, 228, 239, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: min-height 0.22s ease, padding 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.site-header.is-scrolled {
  min-height: 68px;
  background: rgba(248, 251, 254, 0.92);
  box-shadow: 0 18px 54px rgba(8, 56, 96, 0.13);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  width: 232px;
  height: 50px;
  object-fit: contain;
  object-position: left center;
}

.footer-brand img {
  width: min(280px, 100%);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 22px rgba(255, 255, 255, 0.16));
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(215, 228, 239, 0.88);
  border-radius: 999px;
  box-shadow: 0 16px 46px rgba(8, 56, 96, 0.1);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 14px;
  color: #3f596d;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--brand-dark);
  background: rgba(16, 80, 152, 0.11);
}

.site-nav a:hover {
  transform: translateY(-1px);
}

.site-nav .nav-cta {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 12px 28px rgba(16, 80, 152, 0.24);
}

.site-nav .nav-cta:hover {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--brand-dark);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(8, 56, 96, 0.12);
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 80px);
  overflow: hidden;
  color: var(--white);
}

.hero-media,
.page-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background-image:
    linear-gradient(90deg, rgba(6, 27, 47, 0.94), rgba(8, 56, 96, 0.74) 46%, rgba(8, 56, 96, 0.24)),
    url("assets/hero-smart-home.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
}

.hero::after,
.page-hero::after,
.process-band::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(207, 234, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 234, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, #000, transparent 78%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 420px);
  gap: clamp(28px, 5vw, 82px);
  align-items: end;
  width: min(1220px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 132px) 0;
}

.hero-content,
.page-hero-content {
  position: relative;
  z-index: 1;
}

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

.page-hero-content {
  width: min(980px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(86px, 12vw, 138px) 0 74px;
}

.hero-content::before,
.page-hero-content::before {
  display: block;
  width: 72px;
  height: 4px;
  margin-bottom: 24px;
  content: "";
  background: linear-gradient(90deg, var(--brand-light), var(--brand-ice));
  border-radius: 999px;
  box-shadow: 0 0 24px rgba(207, 234, 255, 0.44);
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--brand-light);
  font-size: 0.76rem;
  font-weight: 900;
  line-height: 1.35;
  text-transform: uppercase;
}

.hero .eyebrow,
.page-hero .eyebrow,
.process-band .eyebrow,
.highlight-strip .eyebrow {
  color: var(--brand-ice);
}

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

h1 {
  max-width: 900px;
  margin-bottom: 18px;
  font-size: clamp(3.15rem, 7vw, 6.4rem);
  line-height: 0.94;
  letter-spacing: 0;
  overflow-wrap: normal;
  text-wrap: balance;
}

h2 {
  font-size: clamp(1.8rem, 3.35vw, 3.45rem);
  line-height: 1.03;
  letter-spacing: 0;
  text-wrap: balance;
}

h3 {
  font-size: 1.08rem;
  line-height: 1.25;
}

.hero-copy,
.page-hero p {
  max-width: 690px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.7vw, 1.25rem);
  line-height: 1.72;
}

.hero-actions,
.highlight-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 20px;
  font-weight: 900;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.button::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(110deg, transparent 20%, rgba(255, 255, 255, 0.24) 48%, transparent 76%);
  transform: translateX(-115%);
  transition: transform 0.55s ease;
}

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

.button:hover::after {
  transform: translateX(115%);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  box-shadow: 0 18px 42px rgba(16, 80, 152, 0.32);
}

.button-primary:hover {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
}

.button-secondary {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.42);
  backdrop-filter: blur(12px);
}

.button-light {
  color: var(--brand-dark);
  background: var(--white);
  box-shadow: 0 18px 42px rgba(8, 56, 96, 0.18);
}

.hero-panel {
  display: grid;
  gap: 20px;
  padding: 28px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.hero-symbol {
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 12px 22px rgba(255, 255, 255, 0.18));
}

.panel-kicker {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-ice);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  max-width: 300px;
  font-size: 1.35rem;
  line-height: 1.18;
}

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

.signal-grid span {
  padding: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.83rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
}

.section {
  position: relative;
  padding: clamp(68px, 8vw, 118px) clamp(18px, 5vw, 74px);
}

.section-heading {
  position: relative;
  max-width: 880px;
  margin-bottom: 36px;
}

.section > .section-heading,
.section > .objective-grid,
.section > .process-grid,
.section > .project-grid,
.section > .product-grid,
.section > .partner-media-grid,
.section > .certification-grid {
  width: min(1220px, 100%);
  margin-inline: auto;
}

.section-heading::after {
  display: block;
  width: 64px;
  height: 3px;
  margin-top: 22px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--brand-light));
  border-radius: 999px;
}

.process-band .section-heading::after,
.highlight-strip .section-heading::after {
  background: linear-gradient(90deg, var(--brand-ice), rgba(255, 255, 255, 0.38));
}

.section-heading h2,
.split-copy h2,
.project-summary h2,
.highlight-strip h2 {
  margin-bottom: 0;
}

.metric-band {
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1220px, calc(100% - 36px));
  margin: -54px auto 0;
  padding: 0;
}

.metric-band div {
  min-height: 132px;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(215, 228, 239, 0.86);
  border-radius: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.metric-band strong {
  display: block;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 2rem;
  line-height: 1;
}

.metric-band span {
  color: var(--ink-soft);
  font-weight: 800;
  line-height: 1.35;
}

.objectives-section {
  padding-top: clamp(86px, 10vw, 140px);
}

.objective-grid,
.process-grid,
.product-grid,
.audio-video-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

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

.info-card,
.project-card,
.product-card,
.process-step {
  border-radius: 24px;
}

.info-card,
.project-card,
.product-card,
.process-step,
.partner-media-card,
.certification-card,
.summary-grid div,
.metric-band div {
  position: relative;
  overflow: hidden;
}

.info-card {
  min-height: 246px;
  padding: 26px;
  background: linear-gradient(180deg, var(--white), #f9fcff);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(8, 56, 96, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card::after,
.product-card::after,
.partner-media-card::after,
.certification-card::after {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  opacity: 0;
  background:
    linear-gradient(135deg, rgba(64, 136, 200, 0.16), transparent 38%),
    linear-gradient(315deg, rgba(207, 234, 255, 0.36), transparent 42%);
  transition: opacity 0.22s ease;
}

.info-card:hover::after,
.product-card:hover::after,
.partner-media-card:hover::after,
.certification-card:hover::after {
  opacity: 1;
}

.info-card:hover,
.product-card:hover,
.project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(8, 56, 96, 0.16);
}

.info-card:hover,
.product-card:hover,
.project-card:hover,
.partner-media-card:hover,
.certification-card:hover,
.summary-grid div:hover {
  border-color: rgba(64, 136, 200, 0.58);
}

.info-card::before,
.product-card::before,
.project-card::before,
.process-step::before,
.partner-media-card::before,
.certification-card::before,
.summary-grid div::before,
.metric-band div::before {
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  content: "";
  opacity: 0;
  background: linear-gradient(90deg, var(--brand), var(--brand-light), var(--brand-ice));
  transition: opacity 0.2s ease;
}

.info-card:hover::before,
.product-card:hover::before,
.project-card:hover::before,
.process-step:hover::before,
.partner-media-card:hover::before,
.certification-card:hover::before,
.summary-grid div:hover::before,
.metric-band div:hover::before {
  opacity: 1;
}

.info-card svg,
.service-row svg,
.product-index svg {
  color: var(--brand);
}

.info-card > svg {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  padding: 10px;
  background: rgba(207, 234, 255, 0.58);
  border: 1px solid rgba(64, 136, 200, 0.22);
  border-radius: 16px;
}

.product-index svg,
.service-row svg {
  width: 42px;
  height: 42px;
  padding: 10px;
  background: rgba(207, 234, 255, 0.55);
  border: 1px solid rgba(64, 136, 200, 0.18);
  border-radius: 14px;
}

.info-card h3,
.process-step h3,
.product-card h3,
.project-body h2 {
  margin-bottom: 10px;
}

.info-card p,
.split-copy p,
.project-body p,
.product-card p,
.process-step p,
.site-footer p {
  color: var(--ink-soft);
  line-height: 1.72;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(300px, 0.9fr);
  gap: clamp(30px, 6vw, 84px);
  align-items: start;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.98)),
    linear-gradient(90deg, transparent, rgba(64, 136, 200, 0.08));
}

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

.service-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 4px 16px;
  align-items: center;
  min-height: 86px;
  padding: 18px;
  color: var(--ink);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(8, 56, 96, 0.07);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.service-row:hover {
  border-color: rgba(64, 136, 200, 0.7);
  box-shadow: 0 22px 56px rgba(8, 56, 96, 0.12);
  transform: translateX(4px);
}

.service-row span {
  font-weight: 900;
}

.service-row small {
  grid-column: 2;
  color: var(--ink-soft);
  font-weight: 700;
}

.process-band {
  position: relative;
  overflow: hidden;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(6, 27, 47, 0.98), rgba(8, 56, 96, 0.94)),
    url("assets/project-office.jpg");
  background-size: cover;
  background-position: center;
  background-blend-mode: multiply;
}

.process-band > * {
  position: relative;
  z-index: 1;
}

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

.process-step {
  min-height: 232px;
  padding: 26px;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(16px);
}

.process-step span {
  display: block;
  margin-bottom: 42px;
  color: var(--brand-ice);
  font-weight: 900;
}

.process-step p {
  color: rgba(255, 255, 255, 0.78);
}

.highlight-strip {
  justify-content: space-between;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(8, 56, 96, 0.98), rgba(16, 80, 152, 0.94)),
    linear-gradient(90deg, rgba(64, 136, 200, 0.34), transparent);
}

.highlight-strip > div {
  max-width: 820px;
}

.page-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 470px;
  overflow: hidden;
  color: var(--white);
}

.page-hero-projects::before {
  background-image:
    linear-gradient(90deg, rgba(6, 27, 47, 0.95), rgba(8, 56, 96, 0.74), rgba(8, 56, 96, 0.22)),
    url("assets/project-office.jpg");
}

.projects-page .page-hero {
  color: var(--brand-dark);
}

.projects-page .page-hero-projects::before {
  background-image:
    linear-gradient(90deg, rgba(248, 251, 254, 0.96), rgba(234, 244, 252, 0.88), rgba(207, 234, 255, 0.56)),
    url("assets/project-office.jpg");
}

.projects-page .page-hero .eyebrow {
  color: var(--brand);
}

.projects-page .page-hero p {
  color: var(--brand-dark);
}

.projects-page .project-body h2,
.projects-page .project-body p,
.projects-page .check-list li,
.projects-page .project-summary h2,
.projects-page .summary-grid span {
  color: var(--brand-dark);
}

.page-hero-products::before {
  background-image:
    linear-gradient(90deg, rgba(6, 27, 47, 0.96), rgba(8, 56, 96, 0.76), rgba(8, 56, 96, 0.22)),
    url("assets/audio-video.jpg");
}

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

.project-card {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.92) contrast(1.04);
  transition: transform 0.45s ease, filter 0.45s ease;
}

.project-card:hover img {
  filter: saturate(1.04) contrast(1.06);
  transform: scale(1.035);
}

.project-body {
  padding: 28px;
}

.tag {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.check-list {
  display: grid;
  gap: 9px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 26px;
  color: var(--ink-soft);
  line-height: 1.5;
}

.check-list li::before {
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 13px;
  height: 13px;
  content: "";
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 50%;
}

.project-summary {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(300px, 1fr);
  gap: clamp(28px, 6vw, 72px);
  align-items: start;
  background: var(--white);
}

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

.summary-grid div {
  min-height: 132px;
  padding: 26px;
  background: linear-gradient(180deg, var(--paper), #ffffff);
  border: 1px solid var(--line);
  border-radius: 24px;
}

.summary-grid strong {
  display: block;
  margin-bottom: 22px;
  color: var(--brand-light);
  font-size: 1.35rem;
}

.summary-grid span {
  display: block;
  font-weight: 900;
}

.product-index {
  z-index: 8;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  width: min(1220px, calc(100% - 36px));
  margin: -42px auto 0;
  padding: 0 0 34px;
}

.product-index a {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 78px;
  padding: 20px;
  font-weight: 900;
  text-decoration: none;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 14px 38px rgba(8, 56, 96, 0.07);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.product-index a:hover,
.product-index a.is-section-active {
  color: var(--brand-dark);
  background: var(--white);
  border-color: rgba(64, 136, 200, 0.58);
  box-shadow: 0 22px 56px rgba(8, 56, 96, 0.12);
  transform: translateY(-3px);
}

.product-index a.is-section-active svg {
  color: var(--white);
  background: linear-gradient(135deg, var(--brand), var(--brand-light));
}

.product-section {
  border-top: 1px solid var(--line);
  scroll-margin-top: 92px;
}

.product-section.alt {
  background: rgba(255, 255, 255, 0.62);
}

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

.product-card {
  min-height: 246px;
  padding: 26px;
  background: linear-gradient(180deg, var(--white), #f9fcff);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(8, 56, 96, 0.08);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.info-card > *,
.product-card > *,
.partner-media-card > *,
.certification-card > * {
  position: relative;
  z-index: 1;
}

.product-section.alt .product-card {
  background: linear-gradient(180deg, var(--paper), #ffffff);
}

.product-card span {
  display: inline-flex;
  align-items: center;
  margin-top: 16px;
  padding: 7px 10px;
  color: var(--brand);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  background: rgba(207, 234, 255, 0.52);
  border: 1px solid rgba(64, 136, 200, 0.2);
  border-radius: 999px;
}

.product-card.is-priority {
  border-color: rgba(64, 136, 200, 0.64);
  background:
    linear-gradient(180deg, rgba(207, 234, 255, 0.44), rgba(255, 255, 255, 0.94)),
    var(--white);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 92px;
  margin-bottom: 18px;
  padding: 14px 18px;
  color: var(--brand-dark);
  font-weight: 900;
  line-height: 1;
  background: var(--white);
  border: 1px solid rgba(64, 136, 200, 0.24);
  border-radius: 16px;
  box-shadow: 0 14px 34px rgba(8, 56, 96, 0.08);
}

.cert-wordmark {
  font-size: 1.18rem;
  letter-spacing: 0.02em;
}

.partner-logo-box,
.partner-logo-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 92px;
  min-height: 92px;
  margin-bottom: 18px;
  padding: 14px 18px;
  background: var(--white);
  border: 1px solid rgba(64, 136, 200, 0.24);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 14px 34px rgba(8, 56, 96, 0.08);
}

.partner-logo-box img {
  display: block;
  width: 100%;
  height: 62px;
  max-width: 238px;
  object-fit: contain;
}

.partner-logo-box.logo-compact img {
  max-width: 238px;
}

.partner-logo-box.logo-square img {
  max-height: 62px;
}

.partner-logo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  overflow: hidden;
}

.partner-logo-strip img {
  display: block;
  width: 100%;
  height: 58px;
  max-width: 100%;
  max-height: 58px;
  object-fit: contain;
}

.audio-video-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.av-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 252px;
}

.av-card h3 {
  color: var(--brand-dark);
  font-size: 1.18rem;
}

.av-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  color: var(--white);
  background:
    linear-gradient(135deg, var(--brand), var(--brand-light));
  border-radius: 18px;
  box-shadow: 0 18px 38px rgba(16, 80, 152, 0.22);
}

.av-icon svg {
  width: 25px;
  height: 25px;
}

.partner-media-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(243, 247, 251, 0.96)),
    var(--paper);
}

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

.partner-media-card,
.certification-card {
  border-radius: 24px;
  background: linear-gradient(180deg, var(--white), #f9fcff);
  border: 1px solid var(--line);
  box-shadow: 0 16px 42px rgba(8, 56, 96, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.partner-media-card:hover,
.certification-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 26px 70px rgba(8, 56, 96, 0.16);
}

.partner-media-card {
  padding: 22px;
}

.partner-photo-slot,
.certification-proof {
  display: grid;
  place-items: center;
  min-height: 210px;
  color: var(--brand);
  background:
    linear-gradient(135deg, rgba(207, 234, 255, 0.72), rgba(255, 255, 255, 0.72)),
    repeating-linear-gradient(45deg, rgba(16, 80, 152, 0.08) 0 10px, transparent 10px 20px);
  border: 1px dashed rgba(16, 80, 152, 0.34);
  border-radius: 20px;
}

.partner-photo-slot svg,
.certification-proof svg {
  width: 32px;
  height: 32px;
}

.page-hero-certifications::before {
  background-image:
    linear-gradient(90deg, rgba(6, 27, 47, 0.95), rgba(8, 56, 96, 0.76), rgba(8, 56, 96, 0.22)),
    url("assets/residential.jpg");
}

.certification-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(243, 247, 251, 0.96)),
    var(--paper);
}

.certification-section > .certification-grid {
  width: min(1320px, 100%);
}

.certification-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
}

.certification-card {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(420px, 1.28fr);
  grid-template-areas:
    "info proof";
  gap: 0 42px;
  align-items: start;
  align-content: start;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
}

.certification-info {
  grid-area: info;
  align-self: start;
  display: flex;
  flex-direction: column;
}

.certification-info > .partner-logo-box,
.certification-info > .brand-mark {
  max-width: 460px;
  height: 132px;
  min-height: 132px;
  padding: 20px 26px;
}

.certification-info > .partner-logo-box img,
.certification-info > .brand-mark img {
  height: 88px;
  max-width: 360px;
  max-height: 88px;
}

.certification-card > .certification-proof,
.certification-card > .certification-proof-stack {
  grid-area: proof;
}

.certification-card h2 {
  max-width: 420px;
  margin: 12px 0 12px;
  font-size: clamp(1.42rem, 2.25vw, 2.1rem);
  line-height: 1.12;
  text-align: left;
}

.certification-card p {
  max-width: 470px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
  text-align: justify;
}

.certification-proof {
  width: 100%;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  overflow: visible;
}

.certification-proof-stack {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.certification-proof-stack .certification-proof {
  min-height: 0;
}

.certification-proof:has(img) {
  background:
    linear-gradient(180deg, #ffffff, #f8fbfe);
  border-style: solid;
  border-color: rgba(64, 136, 200, 0.24);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 34px rgba(8, 56, 96, 0.08);
}

.certification-proof.is-empty {
  display: grid;
  place-items: center;
  aspect-ratio: 1 / 1.42;
  min-height: 360px;
  padding: 18px;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(207, 234, 255, 0.72), rgba(255, 255, 255, 0.82)),
    repeating-linear-gradient(45deg, rgba(16, 80, 152, 0.08) 0 10px, transparent 10px 20px);
}

.certification-proof a {
  display: block;
  width: 100%;
  height: auto;
  color: inherit;
  text-decoration: none;
}

.certification-proof img {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: none;
  object-fit: initial;
  object-position: center;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(8, 56, 96, 0.12);
  transition: box-shadow 0.22s ease;
}

.certification-proof.is-compact {
  display: grid;
  place-items: center;
  height: clamp(420px, 34vw, 560px);
  padding: clamp(14px, 1.6vw, 22px);
  overflow: hidden;
}

.certification-proof.is-compact a {
  display: grid;
  place-items: center;
  height: 100%;
}

.certification-proof.is-compact img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.certification-proof.fit-height a {
  display: block;
  width: 100%;
  height: 100%;
}

.certification-proof.fit-height img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}

.certification-proof:has(img):hover img {
  box-shadow: 0 18px 44px rgba(8, 56, 96, 0.18);
}

.cert-wordmark img {
  width: 100%;
  max-width: 320px;
  max-height: 88px;
  object-fit: contain;
}

.site-footer {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background:
    linear-gradient(135deg, rgba(6, 27, 47, 1), rgba(8, 56, 96, 0.96)),
    var(--charcoal);
}

.site-footer::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(207, 234, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(207, 234, 255, 0.075) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: linear-gradient(90deg, #000, transparent 74%);
}

.footer-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.8fr;
  gap: 36px;
  padding: 54px clamp(18px, 5vw, 74px);
}

.footer-brand {
  margin-bottom: 20px;
  color: var(--white);
}

.site-footer h2 {
  margin-bottom: 16px;
  color: var(--white);
  font-size: 1rem;
}

.footer-list,
.footer-links {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-list li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  line-height: 1.5;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
}

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

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 18px clamp(18px, 5vw, 74px);
  color: rgba(255, 255, 255, 0.62);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.reveal-item {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  transition-delay: var(--reveal-delay, 0ms);
}

.reveal-item.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.info-card.reveal-item.is-visible:hover,
.product-card.reveal-item.is-visible:hover,
.project-card.reveal-item.is-visible:hover,
.partner-media-card.reveal-item.is-visible:hover,
.certification-card.reveal-item.is-visible:hover {
  transform: translateY(-4px);
}

.product-index a.reveal-item.is-visible:hover {
  transform: translateY(-3px);
}

.service-row.reveal-item.is-visible:hover {
  transform: translateX(4px);
}

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

  .reveal-item {
    opacity: 1;
    transform: none;
  }
}

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

  .hero-grid > * {
    min-width: 0;
  }

  .hero-panel {
    max-width: 520px;
  }

  .metric-band,
  .objective-grid,
  .process-grid,
  .product-grid,
  .audio-video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 860px) {
  .site-header {
    min-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    left: 18px;
    right: 18px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 22px;
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a {
    justify-content: flex-start;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    width: min(100% - 36px, 720px);
    padding: 76px 0;
  }

  .hero-media,
  .page-hero::before {
    background-position: center;
  }

  .split-section,
  .project-grid,
  .project-summary,
  .footer-main,
  .partner-media-grid {
    grid-template-columns: 1fr;
  }

  .certification-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "info"
      "proof";
    gap: 0;
  }

  .certification-info,
  .certification-info > .partner-logo-box,
  .certification-info > .brand-mark,
  .certification-card h2,
  .certification-card p {
    max-width: none;
  }

  .certification-proof-stack {
    grid-template-columns: 1fr;
    height: auto;
  }

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

@media (max-width: 620px) {
  .brand-logo {
    width: 174px;
    height: 42px;
  }

  h1 {
    font-size: 2.2rem;
    line-height: 1.02;
  }

  h2 {
    font-size: 1.72rem;
  }

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

  .button {
    width: 100%;
  }

  .hero-panel {
    padding: 20px;
    border-radius: 22px;
  }

  .signal-grid,
  .metric-band,
  .objective-grid,
  .process-grid,
  .summary-grid,
  .product-grid,
  .audio-video-grid,
  .product-index,
  .certification-grid {
    grid-template-columns: 1fr;
  }

  .metric-band {
    margin-top: -30px;
  }

  .info-card,
  .process-step,
  .product-card {
    min-height: auto;
  }

  .page-hero {
    min-height: 390px;
  }

  .page-hero-content {
    padding: 74px 0 58px;
  }

}
