/* ==========================================================================
   Zimele Broadcasting Services — Global stylesheet
   --------------------------------------------------------------------------
   Contents
   00. Self-hosted fonts (Poppins)
   01. Design tokens
   02. Base / reset
   03. Layout, typography & utilities
   04. Buttons
   05. Icons
   06. Top contact bar
   07. Header & navigation
   08. Hero slider (home)
   09. Page banner (inner pages)
   10. Intro / split sections
   11. Service cards
   12. Why Choose Us
   13. Photo band (fixed background)
   14. Logo grid & marquee
   15. Process steps
   16. CTA band
   17. Footer
   18. About page
   19. Services page
   20. Portfolio page
   21. Clients page
   22. Forms (quote & contact)
   23. Contact page
   24. Reveal animations
   25. Responsive
   ========================================================================== */

/* 00. Self-hosted fonts
   -------------------------------------------------------------------------- */
@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2");
}

/* 01. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Brand — sampled from the ZBS logo */
  --c-blue: #3848a0;
  --c-blue-deep: #2c3a86;
  --c-blue-dark: #232e6b;
  --c-blue-mid: #5a6ddb;
  --c-blue-soft: #8b98ec;
  --c-blue-tint: #eceef8;
  --c-accent: #3b7bf6;

  /* Neutrals */
  --c-ink: #0d1226;
  --c-ink-2: #141a33;
  --c-body: #414863;
  --c-muted: #676e87;
  --c-line: #e3e6ef;
  --c-line-dark: rgba(255, 255, 255, 0.12);
  --c-bg: #ffffff;
  --c-bg-alt: #f6f7fb;
  --c-panel: #eef1f8;
  --c-footer: #0a0e1f;

  /* Status */
  --c-ok: #1f8a4c;
  --c-err: #c23d3d;

  /* Type */
  --font-sans: "Poppins", "Segoe UI", Arial, sans-serif;

  /* Layout */
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section-pad: clamp(4rem, 8vw, 6.5rem);
  --header-h: 80px;

  /* Motion */
  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --t-fast: 200ms;
  --t-med: 350ms;

  /* Shape */
  --radius: 6px;
  --radius-lg: 12px;

  --shadow-card: 0 1px 2px rgba(13, 18, 38, 0.04), 0 14px 30px -14px rgba(13, 18, 38, 0.16);
  --shadow-lift: 0 2px 4px rgba(13, 18, 38, 0.05), 0 26px 50px -22px rgba(13, 18, 38, 0.3);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 0.9688rem;
  line-height: 1.75;
  color: var(--c-body);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a {
  color: var(--c-blue);
  text-decoration: none;
}

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

figure {
  margin: 0;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  line-height: 1.22;
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

address {
  font-style: normal;
}

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

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

.skip-link {
  position: absolute;
  top: -48px;
  left: 16px;
  z-index: 200;
  background: var(--c-ink);
  color: #fff;
  padding: 10px 18px;
  font-size: 0.875rem;
  border-radius: 0 0 var(--radius) var(--radius);
  transition: top var(--t-fast) var(--ease-out);
}

.skip-link:focus {
  top: 0;
}

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

/* 03. Layout, typography & utilities
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--narrow {
  max-width: calc(860px + 2 * var(--gutter));
}

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

.section--alt {
  background: var(--c-bg-alt);
}

.section--dark {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.78);
}

.section--dark h2,
.section--dark h3 {
  color: #fff;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 1.1rem;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--c-blue);
}

.section--dark .eyebrow,
.photo-band .eyebrow {
  color: #a9b4e8;
}

.section--dark .eyebrow::before,
.photo-band .eyebrow::before {
  background: #a9b4e8;
}

.h-section {
  font-size: clamp(1.55rem, 1.15rem + 1.6vw, 2.15rem);
  font-weight: 600;
  max-width: 24em;
}

.lead {
  font-size: 1.0313rem;
  max-width: 62ch;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.9fr);
  gap: 1.5rem 4rem;
  align-items: end;
  margin-bottom: clamp(2.5rem, 5vw, 3.75rem);
}

.section-head .lead {
  color: var(--c-muted);
  font-size: 0.9688rem;
}

.section--dark .section-head .lead {
  color: rgba(255, 255, 255, 0.72);
}

.section-head--flush {
  margin-bottom: 0;
}

.section-head--center {
  grid-template-columns: 1fr;
  justify-items: center;
  text-align: center;
}

.section-head--center .h-section {
  max-width: 28ch;
}

.section-head--center .eyebrow {
  justify-content: center;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--c-blue);
}

.text-link svg {
  width: 16px;
  height: 16px;
  transition: transform var(--t-fast) var(--ease-out);
}

.text-link:hover svg {
  transform: translateX(4px);
}

.section--dark .text-link {
  color: #b7c1f0;
}

.prose p + p {
  margin-top: 1rem;
}

/* 04. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0.875rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.9063rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    box-shadow var(--t-fast) var(--ease-out);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex: none;
  transition: transform var(--t-fast) var(--ease-out);
}

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

.btn:active {
  transform: translateY(1px);
}

.btn--primary {
  background: var(--c-blue);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(56, 72, 160, 0.7);
}

.btn--primary:hover {
  background: var(--c-blue-deep);
  box-shadow: 0 14px 26px -12px rgba(56, 72, 160, 0.8);
}

.btn--ghost {
  background: transparent;
  color: var(--c-ink);
  border-color: rgba(13, 18, 38, 0.25);
}

.btn--ghost:hover {
  border-color: var(--c-ink);
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

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

.btn--white {
  background: #fff;
  color: var(--c-blue-dark);
}

.btn--white:hover {
  background: var(--c-blue-tint);
}

.btn--lg {
  padding: 1rem 2.1rem;
  font-size: 0.9688rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* 05. Icons
   --------------------------------------------------------------------------
   One icon language throughout: a 2px dark outline with rounded joins and a
   solid blue fill on the defining element (.ico-fill). Icons live once in
   the <symbol> sprite at the top of each page.
   -------------------------------------------------------------------------- */
.ico {
  width: 24px;
  height: 24px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--c-ink);
  flex: none;
}

.ico {
  --ico-accent: var(--c-accent);
}

/* Feature icons (service cards, values, steps, contact cards) */
.ico--lg {
  width: 44px;
  height: 44px;
}

/* 06. Top contact bar
   -------------------------------------------------------------------------- */
.topbar {
  background: var(--c-ink);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.topbar-inner {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding-block: 0.35rem;
}

.topbar-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.6vw, 2.5rem);
  flex-wrap: wrap;
  min-width: 0;
}

.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
  line-height: 1.4;
}

.topbar-item .ico {
  width: 16px;
  height: 16px;
  color: #fff;
  --ico-accent: var(--c-blue-soft);
  stroke-width: 2.2;
}

a.topbar-item {
  transition: color var(--t-fast) var(--ease-out);
}

a.topbar-item:hover {
  color: #fff;
}

/* 07. Header & navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--c-line);
  transition: box-shadow var(--t-med) var(--ease-out);
}

.site-header.is-scrolled {
  box-shadow: 0 8px 30px rgba(13, 18, 38, 0.07);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  height: var(--header-h);
}

.brand {
  display: flex;
  align-items: center;
  flex: none;
}

.brand img {
  height: 56px;
  width: auto;
}

.main-nav > ul {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.main-nav a:not(.btn),
.nav-drop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 12px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
  background: none;
  border: 0;
  font-family: var(--font-sans);
  cursor: pointer;
  border-radius: var(--radius);
  transition: color var(--t-fast) var(--ease-out);
  white-space: nowrap;
}

.main-nav a:not(.btn):hover,
.nav-drop-toggle:hover {
  color: var(--c-blue);
}

.main-nav a.is-active,
.nav-item--drop.is-current .nav-drop-toggle {
  color: var(--c-blue);
  position: relative;
}

.main-nav a.is-active::after,
.nav-item--drop.is-current .nav-drop-toggle::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--c-blue);
}

.nav-drop-toggle svg {
  width: 14px;
  height: 14px;
  transition: transform var(--t-fast) var(--ease-out);
}

.nav-item--drop {
  position: relative;
}

.nav-item--drop.is-open .nav-drop-toggle svg {
  transform: rotate(180deg);
}

.nav-drop {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translate(-50%, 8px);
  width: 600px;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: 0 22px 54px rgba(13, 18, 38, 0.14);
  padding: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--t-fast) var(--ease-out),
    transform var(--t-fast) var(--ease-out),
    visibility var(--t-fast);
}

.nav-item--drop.is-open .nav-drop {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.nav-drop-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.15rem 0.5rem;
}

.main-nav .nav-drop-grid a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0.6rem 0.75rem;
  font-size: 0.8438rem;
  font-weight: 500;
  color: var(--c-ink);
  border-radius: var(--radius);
  white-space: normal;
  line-height: 1.35;
  transition: color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.main-nav .nav-drop-grid a .ico {
  width: 24px;
  height: 24px;
}

.main-nav .nav-drop-grid a:hover,
.main-nav .nav-drop-grid a[aria-current="page"] {
  color: var(--c-blue);
  background: var(--c-bg-alt);
}

.header-cta {
  flex: none;
}

.header-cta .btn {
  padding: 0.75rem 1.4rem;
  font-size: 0.875rem;
}

.nav-toggle {
  display: none;
  flex: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--c-ink);
  position: relative;
  transition: transform var(--t-fast) var(--ease-out),
    opacity var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out);
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -7px;
}

.nav-toggle span::after {
  top: 7px;
}

.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}

.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
}

/* 08. Hero slider (home)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  min-height: clamp(540px, calc(100vh - var(--header-h) - 44px), 680px);
}

.hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 900ms var(--ease-out), visibility 900ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

.hero-art {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-photo,
.hero-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 64% 45%;
}

/* Slow drift on the active slide's photo */
.hero-slide .hero-photo img {
  transform: scale(1.06);
  transition: transform 8s linear;
}

.hero-slide.is-active .hero-photo img {
  transform: scale(1);
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 14, 31, 0.3) 0%, rgba(10, 14, 31, 0) 28%, rgba(10, 14, 31, 0.6) 100%),
    linear-gradient(92deg, rgba(10, 14, 31, 0.9) 0%, rgba(10, 14, 31, 0.74) 32%, rgba(13, 18, 38, 0.26) 64%, rgba(13, 18, 38, 0.14) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 5rem 7rem;
}

.hero-content {
  max-width: 620px;
}

.hero-title {
  color: #fff;
  font-size: clamp(1.85rem, 1.2rem + 2.3vw, 2.8rem);
  font-weight: 600;
  max-width: 15em;
  text-shadow: 0 2px 24px rgba(10, 14, 31, 0.4);
}

.hero-text {
  margin-top: 1.2rem;
  max-width: 52ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 12px rgba(10, 14, 31, 0.5);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.1rem;
}

.hero-slide .hero-title,
.hero-slide .hero-text,
.hero-slide .hero-actions {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.hero-slide.is-active .hero-title { opacity: 1; transform: none; transition-delay: 250ms; }
.hero-slide.is-active .hero-text { opacity: 1; transform: none; transition-delay: 350ms; }
.hero-slide.is-active .hero-actions { opacity: 1; transform: none; transition-delay: 450ms; }

.hero-controls {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 0;
}

.hero-controls-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-dots {
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero-dot {
  position: relative;
  width: 34px;
  height: 4px;
  border: 0;
  padding: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  overflow: hidden;
}

.hero-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
}

.hero-dot[aria-current="true"]::after {
  animation: dotProgress var(--slide-ms, 7000ms) linear forwards;
}

.hero.is-paused .hero-dot[aria-current="true"]::after {
  animation-play-state: paused;
}

@keyframes dotProgress {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.hero-arrows {
  display: flex;
  gap: 10px;
}

.hero-arrow {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: var(--radius);
  background: rgba(10, 14, 31, 0.25);
  color: #fff;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out);
}

.hero-arrow:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.6);
}

.hero-arrow svg {
  width: 18px;
  height: 18px;
}

.hero-count {
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
  color: rgba(255, 255, 255, 0.55);
}

.hero-count strong {
  color: #fff;
  font-weight: 600;
}

/* Trust strip under the hero */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid var(--c-line);
}

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

.trust-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 1.35rem 1.25rem;
  border-right: 1px solid var(--c-line);
}

.trust-item:first-child {
  padding-left: 0;
}

.trust-item:last-child {
  border-right: 0;
  padding-right: 0;
}

.trust-item .ico {
  width: 30px;
  height: 30px;
  flex: none;
}

.trust-item strong {
  display: block;
  font-size: 0.9063rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.3;
}

.trust-item span {
  display: block;
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.4;
}

/* 09. Page banner (inner pages)
   -------------------------------------------------------------------------- */
.page-banner {
  position: relative;
  background: var(--c-ink);
  color: #fff;
  overflow: hidden;
  min-height: clamp(300px, 36vw, 420px);
  display: flex;
  align-items: flex-end;
}

.page-banner .hero-photo img {
  object-position: 60% 50%;
  animation: bannerDrift 14s linear forwards;
}

@keyframes bannerDrift {
  from { transform: scale(1.06); }
  to { transform: scale(1); }
}

.page-banner .hero-shade {
  background:
    linear-gradient(180deg, rgba(10, 14, 31, 0.3) 0%, rgba(10, 14, 31, 0.15) 40%, rgba(10, 14, 31, 0.78) 100%),
    linear-gradient(92deg, rgba(10, 14, 31, 0.78) 0%, rgba(10, 14, 31, 0.45) 45%, rgba(13, 18, 38, 0.1) 100%);
}

.page-banner-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-block: 4.5rem 2.75rem;
}

.crumbs {
  list-style: none;
  margin: 0 0 1.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}

.crumbs a {
  color: rgba(255, 255, 255, 0.75);
}

.crumbs a:hover {
  color: #fff;
}

.crumbs li + li::before {
  content: "/";
  margin-right: 8px;
  opacity: 0.5;
}

.page-title {
  color: #fff;
  font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem);
  font-weight: 600;
  max-width: 16em;
  text-shadow: 0 2px 24px rgba(10, 14, 31, 0.4);
}

.page-intro {
  margin-top: 1rem;
  max-width: 56ch;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.84);
}

.page-banner .hero-actions {
  margin-top: 1.8rem;
}

.page-banner .crumbs,
.page-banner .page-title,
.page-banner .page-intro,
.page-banner .hero-actions {
  animation: riseIn 700ms var(--ease-out) both;
}

.page-banner .page-title { animation-delay: 80ms; }
.page-banner .page-intro { animation-delay: 160ms; }
.page-banner .hero-actions { animation-delay: 240ms; }

@keyframes riseIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* 10. Intro / split sections
   -------------------------------------------------------------------------- */
.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem 5rem;
  align-items: center;
}

.intro-copy .h-section {
  margin-bottom: 1.4rem;
}

.intro-copy p + p {
  margin-top: 1rem;
}

.intro-copy .btn,
.intro-copy .text-link {
  margin-top: 1.75rem;
}

.intro-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

.fact strong {
  display: block;
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.fact span {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.8125rem;
  color: var(--c-muted);
  line-height: 1.5;
}

/* Photo collage used in intros */
.collage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: repeat(10, 1fr);
  aspect-ratio: 10 / 9;
  max-width: 560px;
  justify-self: end;
  width: 100%;
}

.collage figure {
  overflow: hidden;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  background: var(--c-panel);
}

.collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.collage figure:hover img {
  transform: scale(1.04);
}

.collage-a { grid-column: 1 / 9; grid-row: 1 / 7; }
.collage-b { grid-column: 8 / 13; grid-row: 3 / 8; z-index: 1; }
.collage-c { grid-column: 2 / 8; grid-row: 7 / 11; }

.collage-card {
  grid-column: 8 / 13;
  grid-row: 8 / 11;
  z-index: 2;
  align-self: end;
  background: var(--c-blue);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow-lift);
}

.collage-card strong {
  display: block;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1;
}

.collage-card span {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.4rem;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.4;
}

/* Generic split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3.5rem 5rem;
  align-items: center;
}

.split--rev > .split-copy {
  order: 2;
}

.split-copy .h-section {
  margin-bottom: 1.4rem;
}

.split-copy > p {
  max-width: 56ch;
}

.split-copy > p + p {
  margin-top: 1rem;
}

.split-list {
  margin-top: 2rem;
  display: grid;
  gap: 1rem;
}

.split-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-size: 0.9375rem;
}

.split-list svg {
  flex: none;
  width: 20px;
  height: 20px;
  color: var(--c-blue);
  margin-top: 3px;
}

.split-list .ico {
  width: 22px;
  height: 22px;
  color: var(--c-ink);
}

.section--dark .split-list svg {
  color: #7c8cd9;
}

.split-list strong {
  color: var(--c-ink);
  font-weight: 600;
}

.section--dark .split-list strong {
  color: #fff;
}

.split-copy .btn {
  margin-top: 2.2rem;
}

.media-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  max-width: 580px;
  width: 100%;
  justify-self: end;
  box-shadow: var(--shadow-lift);
  background: var(--c-panel);
}

.split--rev .media-frame {
  justify-self: start;
}

.media-frame--tall {
  aspect-ratio: 4 / 4.4;
}

.media-frame img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1rem 1.3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.7188rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.8);
  background: linear-gradient(transparent, rgba(6, 9, 22, 0.85));
}

/* 11. Service cards
   -------------------------------------------------------------------------- */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.svc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  color: inherit;
  transition: transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out);
}

.svc-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-blue-soft);
}

.svc-media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--c-panel);
}

.svc-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 900ms var(--ease-out);
}

.svc-card:hover .svc-media img {
  transform: scale(1.05);
}

.svc-body {
  padding: 1.35rem 1.35rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.svc-ico {
  width: 40px;
  height: 40px;
  margin-bottom: 0.9rem;
}

.section-foot.section-foot--center {
  justify-content: center;
}

.svc-card h3 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.45rem;
}

.svc-card p {
  font-size: 0.8438rem;
  line-height: 1.65;
  color: var(--c-muted);
  flex: 1;
}

.svc-brands {
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--c-line);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-blue-deep);
  line-height: 1.8;
}

.svc-more {
  margin-top: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-blue);
}

.svc-more svg {
  width: 15px;
  height: 15px;
  transition: transform var(--t-fast) var(--ease-out);
}

.svc-card:hover .svc-more svg {
  transform: translateX(4px);
}

.section-foot {
  margin-top: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.section-foot p {
  font-size: 0.9063rem;
  color: var(--c-muted);
}

/* Division cards (two large service divisions) */
.division-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.division {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-ink-2);
  color: rgba(255, 255, 255, 0.8);
  min-height: 420px;
  box-shadow: var(--shadow-lift);
}

.division-media {
  position: relative;
  aspect-ratio: 16 / 8;
  overflow: hidden;
}

.division-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out);
}

.division:hover .division-media img {
  transform: scale(1.04);
}

.division-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 26, 51, 0) 50%, var(--c-ink-2) 100%);
}

.division-body {
  padding: 0.5rem 2rem 2rem;
}

.division h3 {
  color: #fff;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.7rem;
}

.division p {
  font-size: 0.9063rem;
  max-width: 52ch;
}

.division .btn {
  margin-top: 1.6rem;
}

/* 12. Why Choose Us
   -------------------------------------------------------------------------- */
.why-box {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.why-media {
  position: relative;
  min-height: 100%;
  background: var(--c-panel);
}

.why-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.why-body {
  padding: clamp(2rem, 4vw, 3.25rem);
}

.why-body .h-section {
  margin-bottom: 1rem;
}

.why-body .lead {
  color: var(--c-muted);
  font-size: 0.9688rem;
}

.why-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.6rem 2rem;
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--c-line);
}

.why-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.why-item .ico {
  width: 36px;
  height: 36px;
  margin-top: 2px;
}

.why-item h3 {
  font-size: 0.9688rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.why-item p {
  font-size: 0.8438rem;
  line-height: 1.65;
  color: var(--c-muted);
}

.why-body .btn {
  margin-top: 2rem;
}

/* 13. Photo band (fixed background)
   --------------------------------------------------------------------------
   background-attachment: fixed gives the parallax effect on desktop; touch
   devices fall back to a normal scrolling background.
   -------------------------------------------------------------------------- */
.photo-band {
  position: relative;
  background-color: var(--c-ink);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #fff;
  overflow: hidden;
}

.photo-band--transmission {
  background-image: url("../img/photos/band-transmission.jpg");
  background-image: image-set(
    url("../img/photos/band-transmission.webp") type("image/webp"),
    url("../img/photos/band-transmission.jpg") type("image/jpeg")
  );
}

.photo-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(760px 340px at 50% 50%, rgba(8, 11, 24, 0.7), transparent 74%),
    linear-gradient(180deg, rgba(10, 14, 31, 0.78) 0%, rgba(10, 14, 31, 0.55) 45%, rgba(10, 14, 31, 0.82) 100%);
}

.photo-band-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5.5rem, 11vw, 8.5rem);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.photo-band .eyebrow {
  justify-content: center;
}

.photo-band h2 {
  color: #fff;
  font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.3rem);
  font-weight: 600;
  max-width: 24ch;
  text-shadow: 0 2px 24px rgba(10, 14, 31, 0.55);
}

.photo-band p {
  margin-top: 1rem;
  max-width: 56ch;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 14px rgba(10, 14, 31, 0.5);
}

.photo-band .hero-actions {
  justify-content: center;
}

@media (hover: none), (max-width: 1024px) {
  .photo-band {
    background-attachment: scroll;
  }
}

@media (max-width: 1100px) {
  .photo-band--transmission {
    background-image: url("../img/photos/band-transmission-1100.jpg");
    background-image: image-set(
      url("../img/photos/band-transmission-1100.webp") type("image/webp"),
      url("../img/photos/band-transmission-1100.jpg") type("image/jpeg")
    );
  }
}

/* 14. Logo grid & marquee
   -------------------------------------------------------------------------- */
.marquee {
  position: relative;
  overflow: hidden;
  padding-block: 0.5rem;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}

.marquee + .marquee {
  margin-top: 1.25rem;
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 52s linear infinite;
}

.marquee--reverse .marquee-track {
  animation-name: marqueeReverse;
  animation-duration: 60s;
}

.marquee:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes marqueeReverse {
  from { transform: translateX(-50%); }
  to { transform: translateX(0); }
}

.logo-tile {
  flex: none;
  width: 190px;
  height: 84px;
  margin-right: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 18px 26px;
}

.logo-tile img {
  max-height: 42px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.72;
  transition: filter var(--t-med) var(--ease-out),
    opacity var(--t-med) var(--ease-out);
}

.logo-tile:hover img {
  filter: none;
  opacity: 1;
}

.marquee-note {
  margin-top: 2.25rem;
  text-align: center;
}

/* Static logo grid (clients page) */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 110px;
  padding: 1.4rem 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  transition: border-color var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    transform var(--t-med) var(--ease-out);
}

.logo-cell:hover {
  border-color: var(--c-blue-soft);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.logo-cell img {
  max-height: 46px;
  max-width: 100%;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: 0.75;
  transition: filter var(--t-med) var(--ease-out), opacity var(--t-med) var(--ease-out);
}

.logo-cell:hover img {
  filter: none;
  opacity: 1;
}

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

.logo-grid--four .logo-cell {
  height: 128px;
}

.logo-grid--four .logo-cell img {
  max-height: 50px;
  max-width: 170px;
}

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

.logo-grid--compact .logo-cell {
  height: 92px;
  padding: 1rem 1.25rem;
}

.logo-grid--compact .logo-cell img {
  max-height: 36px;
}

.section--roomy {
  padding-block: clamp(5rem, 10vw, 8rem);
}

.logo-cell--text {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.04em;
  color: #556;
  text-transform: uppercase;
}

/* 15. Process steps
   --------------------------------------------------------------------------
   Four stages read left to right, joined by arrows drawn in the grid gap.
   On phones the list stacks and the arrow turns to point downwards.
   -------------------------------------------------------------------------- */
.process-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 3rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: pstep;
}

.pstep {
  position: relative;
  padding: 1.75rem 1.5rem 1.6rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out);
}

.pstep:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-blue-soft);
}

.pstep > .ico {
  width: 40px;
  height: 40px;
}

.pstep-label {
  display: block;
  margin-top: 1.2rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--c-blue);
}

.pstep h3 {
  font-size: 1.0313rem;
  font-weight: 600;
  margin: 0.45rem 0 0.5rem;
}

.pstep p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-muted);
}

/* Arrow between stages */
.pstep:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -3rem;
  width: 3rem;
  height: 24px;
  transform: translateY(-50%);
  background-color: var(--c-blue);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12h30M31 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 24' fill='none' stroke='%23000' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 12h30M31 5l7 7-7 7'/%3E%3C/svg%3E") center / contain no-repeat;
  pointer-events: none;
}

/* 16. (reserved) */

/* 17. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--c-footer);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 3rem 3.5rem;
  padding-block: clamp(3.5rem, 6vw, 5rem) 3rem;
}

.footer-brand img {
  height: 80px;
  width: auto;
  margin-bottom: 1.4rem;
}

.footer-brand p {
  max-width: 40ch;
}

.footer-col h2 {
  color: #fff;
  font-size: 0.7813rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 1.3rem;
}

.footer-col ul {
  display: grid;
  gap: 0.6rem;
}

.footer-col a {
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.875rem;
  transition: color var(--t-fast) var(--ease-out);
}

.footer-col a:hover {
  color: #fff;
}

.footer-contact li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  line-height: 1.55;
}

.footer-contact .ico {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 4px;
  color: #fff;
  --ico-accent: var(--c-blue-soft);
}

.footer-col .btn {
  margin-top: 1.4rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.7813rem;
  color: rgba(255, 255, 255, 0.55);
}

.footer-bottom a {
  color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
  color: #fff;
}

/* 18. About page
   -------------------------------------------------------------------------- */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  padding: 1.75rem 1.5rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.value-card > .ico {
  width: 40px;
  height: 40px;
  margin-bottom: 1rem;
}

.value-card h3 {
  font-size: 1.0313rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.value-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--c-muted);
}

/* Signal chain band: what the portfolio covers, end to end */
.chain {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 2.5rem;
}

.chain-step {
  position: relative;
  padding: 1.25rem 1rem 1.15rem;
  border: 1px solid var(--c-line-dark);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.chain-step > .ico {
  width: 36px;
  height: 36px;
  margin: 0 auto 0.85rem;
  color: #fff;
}

.chain-step strong {
  display: block;
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
}

.chain-step span {
  display: block;
  margin-top: 0.3rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.45;
}

.chain-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 50%;
  right: -0.75rem;
  width: 0.75rem;
  height: 2px;
  background: rgba(139, 152, 236, 0.5);
}

/* 19. Service pages
   -------------------------------------------------------------------------- */
.svc-points {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 1.5rem;
}

.svc-points li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.875rem;
  line-height: 1.55;
}

.svc-points svg {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--c-blue);
  margin-top: 4px;
}

.svc-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 3rem 5rem;
  align-items: start;
}

.section-head--stack {
  grid-template-columns: 1fr;
  margin-bottom: 1.75rem;
}

.app-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
  border-top: 1px solid var(--c-line);
}

.app-item {
  display: flex;
  gap: 1.25rem;
  align-items: baseline;
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--c-line);
}

.app-num {
  flex: none;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--c-blue);
}

.app-item p {
  font-size: 0.9688rem;
  color: var(--c-ink);
  font-weight: 500;
}

.svc-note {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--c-muted);
}

/* 20. Portfolio page
   -------------------------------------------------------------------------- */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2.75rem;
}

.filter-btn {
  padding: 0.55rem 1.05rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--c-body);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease-out),
    border-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);
}

.filter-btn:hover {
  border-color: var(--c-blue-soft);
  color: var(--c-blue);
}

.filter-btn.is-active {
  background: var(--c-blue);
  border-color: var(--c-blue);
  color: #fff;
}

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

.brand-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease-out),
    box-shadow var(--t-med) var(--ease-out),
    border-color var(--t-med) var(--ease-out),
    opacity var(--t-med) var(--ease-out);
}

.brand-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
  border-color: var(--c-blue-soft);
}

.brand-card.is-hidden {
  display: none;
}

.brand-logo {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 2rem;
  background: linear-gradient(180deg, #fff 0%, var(--c-bg-alt) 100%);
  border-bottom: 1px solid var(--c-line);
}

.brand-logo img {
  max-height: 54px;
  max-width: 200px;
  width: auto;
  object-fit: contain;
}

.brand-logo--text {
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  color: #333a52;
  text-transform: uppercase;
}

.brand-body {
  padding: 1.3rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.brand-card .brand-cat {
  flex: none;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-blue);
  margin-bottom: 0.4rem;
}

.brand-card h3 {
  font-size: 1.0313rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.brand-card p {
  font-size: 0.8438rem;
  line-height: 1.65;
  color: var(--c-muted);
  flex: 1;
}

.brand-lines {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.brand-lines li {
  font-size: 0.7188rem;
  font-weight: 500;
  color: var(--c-body);
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 999px;
  padding: 0.2rem 0.6rem;
}

.grid-empty {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--c-muted);
}

.grid-empty.is-visible {
  display: block;
}

/* 21. (clients page uses the logo grid from section 14) */

/* 22. Forms (quote & contact)
   -------------------------------------------------------------------------- */
.container--form {
  max-width: 880px;
  margin-inline: auto;
}

.form-card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(1.5rem, 3.5vw, 2.5rem);
}


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

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

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

.field label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink);
}

.field-legend {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--c-ink);
}

.field label small {
  font-weight: 400;
  color: var(--c-muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  font-size: 0.9375rem;
  color: var(--c-ink);
  background: #fff;
  border: 1px solid #cfd4e3;
  border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease-out), box-shadow var(--t-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23414863' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.9rem center;
  background-size: 16px;
  padding-right: 2.6rem;
}

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

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(56, 72, 160, 0.15);
}

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

.field-error {
  display: none;
  font-size: 0.75rem;
  color: var(--c-err);
}

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

.field-hint {
  font-size: 0.75rem;
  color: var(--c-muted);
}

.choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.choice {
  position: relative;
}

.choice input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}

.choice span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.6rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-body);
  background: #fff;
  border: 1px solid #cfd4e3;
  border-radius: 999px;
  transition: border-color var(--t-fast) var(--ease-out),
    background-color var(--t-fast) var(--ease-out),
    color var(--t-fast) var(--ease-out);
}

.choice span::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #aab1c7;
  flex: none;
  transition: background-color var(--t-fast) var(--ease-out), border-color var(--t-fast) var(--ease-out);
}

.choice input:checked + span {
  border-color: var(--c-blue);
  background: var(--c-blue-tint);
  color: var(--c-blue-dark);
}

.choice input:checked + span::before {
  background: var(--c-blue);
  border-color: var(--c-blue);
}

.choice input:focus-visible + span {
  outline: 2px solid var(--c-blue);
  outline-offset: 2px;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.form-actions .field-hint {
  max-width: 44ch;
}

.form-status {
  grid-column: 1 / -1;
  display: none;
  padding: 0.9rem 1.1rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
}

.form-status.is-error {
  display: block;
  background: #fdecec;
  color: #8c2626;
  border: 1px solid #f2c2c2;
}

.form-success {
  display: none;
  text-align: center;
  padding: 2rem 1rem 1rem;
}

.form-success.is-visible,
.form-success:target {
  display: block;
}

.form-success > .ico {
  margin: 0 auto 1.25rem;
  width: 56px;
  height: 56px;
  --ico-accent: var(--c-ok);
}

.form-success h3 {
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
}

.form-success p {
  color: var(--c-muted);
  max-width: 46ch;
  margin-inline: auto;
}

.form-success .form-ref {
  margin-top: 0.9rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--c-ink);
}

.form-success .btn {
  margin-top: 1.5rem;
}

.inquire-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 2.5rem;
  margin-top: 2rem;
  font-size: 0.9063rem;
  color: var(--c-body);
}

.inquire-contact > a,
.inquire-contact > span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: inherit;
}

.inquire-contact a:hover {
  color: var(--c-blue);
}

.inquire-contact .ico {
  width: 20px;
  height: 20px;
}

.inquire .section-head--center .lead {
  margin-top: 0.9rem;
}

/* 23. Contact page
   -------------------------------------------------------------------------- */
.contact-section {
  padding-block: clamp(4.5rem, 9vw, 7rem);
}

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

.contact-card {
  padding: 2rem 1.75rem;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: transform var(--t-med) var(--ease-out), box-shadow var(--t-med) var(--ease-out);
}

.contact-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.contact-card > .ico {
  width: 40px;
  height: 40px;
  margin-bottom: 1.1rem;
}

.contact-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-muted);
  margin-bottom: 0.5rem;
}

.contact-card > a,
.contact-card address {
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--c-ink);
  line-height: 1.4;
}

.contact-card > a:hover {
  color: var(--c-blue);
}

.contact-card p {
  margin-top: 0.4rem;
  font-size: 0.8438rem;
  color: var(--c-muted);
}

.contact-form-wrap {
  margin-top: clamp(4rem, 8vw, 6rem);
}

.map-section {
  background: var(--c-panel);
  line-height: 0;
}

.map-section iframe {
  display: block;
  width: 100%;
  height: clamp(360px, 42vw, 560px);
  border: 0;
  filter: saturate(0.85);
}

/* 24. Reveal animations
   --------------------------------------------------------------------------
   Elements carry .reveal and are given .is-visible by main.js when they
   enter the viewport. Only opacity and transform are animated, and the
   movement is vertical or a slight scale, so nothing can widen the page.
   -------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
}

.reveal--media {
  transform: translateY(14px) scale(0.985);
}

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

/* Staggered children in grids */
.svc-grid > .reveal:nth-child(2),
.process-steps > .reveal:nth-child(2),
.values-grid > .reveal:nth-child(2),
.contact-cards > .reveal:nth-child(2),
.app-list > .reveal:nth-child(2),
.logo-grid > .reveal:nth-child(4n + 2) { transition-delay: 80ms; }

.svc-grid > .reveal:nth-child(3),
.process-steps > .reveal:nth-child(3),
.values-grid > .reveal:nth-child(3),
.contact-cards > .reveal:nth-child(3),
.app-list > .reveal:nth-child(3),
.logo-grid > .reveal:nth-child(4n + 3) { transition-delay: 160ms; }

.svc-grid > .reveal:nth-child(4),
.process-steps > .reveal:nth-child(4),
.logo-grid > .reveal:nth-child(4n + 4) { transition-delay: 240ms; }

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

  .reveal,
  .hero-slide .hero-title,
  .hero-slide .hero-text,
  .hero-slide .hero-actions {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .hero-slide .hero-photo img,
  .page-banner .hero-photo img {
    transform: none;
    transition: none;
    animation: none;
  }

  .page-banner .crumbs,
  .page-banner .page-title,
  .page-banner .page-intro,
  .page-banner .hero-actions {
    animation: none;
  }

  .marquee-track {
    animation: none;
    flex-wrap: wrap;
    width: auto;
    justify-content: center;
  }

  .marquee {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .photo-band {
    background-attachment: scroll;
  }

  .hero-dot[aria-current="true"]::after {
    animation: none;
    transform: scaleX(1);
  }

  .main-nav,
  .nav-drop {
    transition: none;
    animation: none;
  }
}

/* 25. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 1180px) {
  .svc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

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

  .chain-step:nth-child(3)::after {
    display: none;
  }

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

  .pstep:nth-child(2)::after {
    display: none;
  }
}

@media (max-width: 1080px) {
  :root {
    --header-h: 70px;
  }

  .brand img {
    height: 48px;
  }

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

  .header-cta {
    display: none;
  }

  /* Full-width mobile menu, same translucent surface as the header */
  .main-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--c-line);
    box-shadow: 0 24px 40px rgba(13, 18, 38, 0.12);
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 220ms var(--ease-out), transform 220ms var(--ease-out), visibility 220ms;
  }

  .main-nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .main-nav > ul {
    display: block;
    padding: 0.5rem var(--gutter) 1.5rem;
  }

  .main-nav > ul > li {
    border-bottom: 1px solid var(--c-line);
  }

  .main-nav > ul > li:last-child {
    border-bottom: 0;
  }

  .main-nav a:not(.btn),
  .nav-drop-toggle {
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding: 15px 4px;
    font-size: 0.9375rem;
  }

  .nav-cta-mobile {
    padding-top: 1rem;
  }

  .nav-cta-mobile .btn {
    display: flex;
    width: 100%;
    justify-content: center;
  }

  .main-nav a.is-active::after,
  .nav-item--drop.is-current .nav-drop-toggle::after {
    display: none;
  }

  /* Dropdown becomes an animated accordion */
  .nav-drop,
  .nav-item--drop.is-open .nav-drop {
    position: static;
    width: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 280ms var(--ease-out);
  }

  .nav-item--drop.is-open .nav-drop {
    grid-template-rows: 1fr;
  }

  .nav-drop-grid {
    grid-template-columns: 1fr;
    gap: 0;
    min-height: 0;
    overflow: hidden;
  }

  .main-nav .nav-drop-grid a {
    justify-content: flex-start;
    width: auto;
    padding: 0.6rem 0.5rem;
    font-size: 0.875rem;
  }

  .main-nav .nav-drop-grid a:last-child {
    margin-bottom: 0.75rem;
  }

  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

  .trust-item {
    padding: 1.1rem 1rem;
  }

  .trust-item:first-child,
  .trust-item:nth-child(3) {
    padding-left: 0;
  }

  .trust-item:nth-child(2n) {
    border-right: 0;
    padding-right: 0;
  }

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

  .intro-grid,
  .split,
  .why-box,
  .svc-detail-grid {
    grid-template-columns: 1fr;
  }

  .why-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .split--rev > .split-copy {
    order: 0;
  }

  .collage,
  .media-frame,
  .split--rev .media-frame {
    justify-self: start;
    max-width: 640px;
  }

  .media-frame--tall {
    aspect-ratio: 16 / 10;
  }

  .division-grid {
    grid-template-columns: 1fr;
  }

  .division {
    min-height: 0;
  }

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

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

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

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

@media (min-width: 1081px) {
  .nav-cta-mobile {
    display: none;
  }
}

@media (max-width: 680px) {
  .topbar-inner {
    justify-content: center;
    min-height: 40px;
  }

  .topbar-list {
    gap: 1.25rem;
    justify-content: center;
  }

  .topbar-item--address {
    display: none;
  }

  .hero-slider {
    min-height: clamp(540px, calc(100vh - var(--header-h) - 40px), 640px);
  }

  .hero-inner {
    padding-block: 3.5rem 7rem;
  }

  .hero-photo img {
    object-position: 58% 45%;
  }

  .hero-text {
    font-size: 0.9375rem;
  }

  .hero-actions .btn {
    flex: 1 1 100%;
  }

  .hero-count {
    display: none;
  }

  .trust-strip-inner {
    grid-template-columns: 1fr;
  }

  .trust-item {
    border-right: 0;
    padding-inline: 0;
    border-bottom: 1px solid var(--c-line);
  }

  .trust-item:last-child {
    border-bottom: 0;
  }

  .page-banner {
    min-height: 300px;
  }

  .page-banner-inner {
    padding-block: 3.5rem 2.25rem;
  }

  .page-banner .hero-actions .btn {
    flex: 1 1 100%;
  }

  .intro-facts {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .collage {
    aspect-ratio: 1 / 1;
  }

  .collage-card strong {
    font-size: 1.3rem;
  }

  /* Service cards become compact horizontal rows on phones */
  .svc-card {
    flex-direction: row;
    align-items: stretch;
  }

  .svc-media {
    flex: 0 0 38%;
    aspect-ratio: auto;
  }

  .svc-media picture {
    position: absolute;
    inset: 0;
  }

  .svc-media img {
    height: 100%;
  }

  .svc-body {
    padding: 1.1rem 1.1rem 1.1rem 1.2rem;
    min-width: 0;
  }

  .svc-ico {
    width: 30px;
    height: 30px;
    margin-bottom: 0.6rem;
  }

  .svc-card h3 {
    font-size: 0.9375rem;
  }

  .svc-card p {
    font-size: 0.8125rem;
  }

  .svc-brands {
    margin-top: 0.75rem;
    padding-top: 0.65rem;
    font-size: 0.625rem;
  }

  .svc-grid,
  .brand-grid,
  .values-grid,
  .contact-cards,
  .why-list {
    grid-template-columns: 1fr;
  }

  .why-list {
    gap: 1.4rem;
  }

  /* Steps stack; the arrow turns to point down into the next step */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 2.75rem;
  }

  .pstep:nth-child(2)::after {
    display: block;
  }

  .pstep:not(:last-child)::after {
    top: auto;
    right: auto;
    left: calc(50% - 1.5rem);
    bottom: calc(-1.375rem - 12px);
    transform: rotate(90deg);
  }

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

  .logo-grid--four .logo-cell,
  .logo-cell {
    height: 96px;
    padding: 1.1rem 1.25rem;
  }

  .logo-grid--four .logo-cell img {
    max-height: 38px;
  }

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

  .chain-step::after {
    display: none;
  }

  .svc-points,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .division-body {
    padding: 0.25rem 1.4rem 1.6rem;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .footer-bottom {
    justify-content: center;
    text-align: center;
  }

  .logo-tile {
    width: 160px;
    height: 74px;
    padding: 14px 20px;
  }

  .logo-tile img {
    max-height: 36px;
  }

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

  .inquire-contact {
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
  }
}

