/* CTI website styles */

/* Design tokens */
:root {
  /* brand */
  --cti-orange: #FD6200;
  --cti-orange-hover: #E05600;
  --cti-orange-tint: #FFF1E4;

  /* neutrals */
  --ink: #14161A;
  --body: #4A4E57;
  --paper: #FFFFFF;
  --paper-alt: #F7F7F5;
  --paper-product: #F2EFEA;   /* product thumbnail gray */
  --line: #E5E1DC;

  /* dark surfaces */
  --dark: #17181A;
  --dark-pill: rgba(20, 20, 20, 0.55);

  /* type */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

:root {
  --sp-24: clamp(18px, 14.4px + 0.6667vw, 30px);
  --sp-28: clamp(21px, 16.8px + 0.7778vw, 35px);
  --sp-32: clamp(24px, 19.2px + 0.8889vw, 40px);
  --sp-40: clamp(30px, 24px + 1.1111vw, 50px);
  --sp-48: clamp(36px, 28.8px + 1.3333vw, 60px);
  --sp-56: clamp(42px, 33.6px + 1.5556vw, 70px);
  --sp-64: clamp(48px, 38.4px + 1.7778vw, 80px);
  --sp-80: clamp(60px, 48px + 2.2222vw, 100px);
  --sp-88: clamp(66px, 52.8px + 2.4444vw, 110px);
  --sp-160: clamp(120px, 96px + 4.4444vw, 200px);
}

/* ---- Global ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p, ul {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex="0"]:focus-visible {
  outline: 2px solid var(--cti-orange);
  outline-offset: 2px;
}

/* Layout */
.container {
  margin: 0 auto;
  padding: 0 var(--sp-40);
}

.section {
  padding: clamp(56px, 4vw + 40px, 96px) 0; /* fluid 56 → 96 */
}

.section-title {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: var(--sp-48);
}

/* ---- Buttons (pill) ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px var(--sp-24);
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn--solid {
  background: var(--cti-orange);
  color: #fff;
}
.btn--solid:hover {
  background: var(--cti-orange-hover);
}

.btn--outline {
  background: transparent;
  color: var(--cti-orange);
  border-color: var(--cti-orange);
}
.btn--outline:hover {
  background: var(--cti-orange);
  color: #fff;
}

.btn--white {
  background: #fff;
  color: var(--dark);
}
.btn--white:hover {
  background: var(--paper-alt);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--dark);
}

.header-inner {
  display: flex;
  align-items: center;
  height: 72px;
  gap: var(--sp-24);
}

.brand {
  flex-shrink: 0;
}

.brand-logo {
  width: auto;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-32);
  margin-left: auto;
}

.nav-link {
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--cti-orange);
}

.site-header .btn {
  flex-shrink: 0;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  background-size: cover;
  background-position: center;
}

.hero .container {
  width: 100%;
  padding-top: var(--sp-64);
  padding-bottom: var(--sp-64);
}

.hero-eyebrow {
  font-size: 0.8125rem;
  letter-spacing: 0.04em;
  color: #fff;
  opacity: 0.85;
  margin-bottom: 20px;
}

.hero-title {
  font-weight: 500;
  color: #fff;
  margin-bottom: var(--sp-24);
}

.hero-link {
  display: inline-block;
  font-size: 0.875rem;
  color: #fff;
  margin-bottom: var(--sp-24);
}
.hero-link:hover {
  text-decoration: underline;
}

.hero-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pill {
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.875rem;
  color: #fff;
  background: var(--dark-pill);
  white-space: nowrap;
}
.pill--active {
  background: #fff;
  color: var(--ink);
}

/* Audience section */
.split-row {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: var(--sp-48);
  align-items: center;
}
.split-row + .split-row {
  margin-top: var(--sp-64);
}

.split-row--flip .split-media {
  order: 2;
}
.split-row--flip .split-body {
  order: 1;
}

.split-media img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 4px;
}

.split-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.split-copy {
  margin-bottom: var(--sp-24);
}

/* Product line */
.section--products,
.section--why {
  background: var(--cti-orange-tint);
}

.card-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.product-card {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  padding: 16px;
  background: #fff;
  border-radius: 4px;
}

.card-media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 4px;
}

/* white-background product photo: gray panel + contain so it isn't cropped into the white card */
.card-media--product {
  aspect-ratio: 16 / 10;
  border-radius: 4px;
  background: var(--paper-product);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}
.card-media--product img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  border-radius: 0;
}

.card-title {
  color: var(--ink);
  margin: 16px 0 8px;
}

.card-desc {
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--body);
  margin-bottom: 16px;
}

.card-link {
  font-size: 0.875rem;
  color: var(--cti-orange);
  margin-top: auto;
}
.card-link:hover {
  text-decoration: underline;
}

.section-cta {
  display: flex;
  justify-content: center;
  margin-top: var(--sp-48);
}

/* Brand banner */
.brand-banner {
  background:
    radial-gradient(circle at 15% 30%, rgba(253, 98, 0, 0.35), transparent 60%),
    var(--dark);
  color: #fff;
}

.brand-banner-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-48);
}

.brand-banner-text {
  max-width: 640px;
}

.brand-banner-title {
  font-size: 2rem;
  line-height: 1.25;
  font-weight: 500;
  color: #fff;
  margin-bottom: 16px;
}

.brand-banner-stats {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--sp-32);
}

.brand-banner-mark {
  flex-shrink: 0;
}

.brand-banner-logo {
  width: 200px;
  height: auto;
  opacity: 0.9;
}

/* Why CTI */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-24);
}

.why-copy {
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--body);
}

/* Footer */
.site-footer {
  background: var(--paper-alt);
}

.footer-logo {
  width: auto;
}

.footer-grid {
  display: grid;
  gap: var(--sp-24);
  padding-bottom: var(--sp-48);
}

.footer-heading {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  padding: 0;
}
.footer-links li {
  margin-bottom: 8px;
}
.footer-links a {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--body);
}
.footer-links a:hover {
  color: var(--cti-orange);
}

.footer-contact {
  font-size: 0.875rem;
  line-height: 1.8;
  color: var(--body);
}

.footer-mobile {
  display: none;
}

.footer-mobile-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.footer-mobile-links a {
  font-size: 0.875rem;
  color: var(--body);
}
.footer-mobile-links a:hover {
  color: var(--cti-orange);
}

.footer-mobile-contact {
  font-size: 0.875rem;
  color: var(--body);
  margin-top: 16px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding: var(--sp-24) 0;
}

.copyright {
  font-size: 0.875rem;
  color: var(--body);
}

.legal-links {
  display: flex;
  gap: var(--sp-24);
}
.legal-links a {
  font-size: 0.875rem;
  color: var(--body);
}
.legal-links a:hover {
  color: var(--cti-orange);
}

/* Product detail page */
.nav-link--active {
  color: var(--cti-orange);
}

/* Product hero (image left, text right) */
.hero-type-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--sp-64);
  align-items: center;
}

.hero-media {
  background: var(--paper-alt);
  border-radius: 4px;
  aspect-ratio: 4 / 3;
  padding: var(--sp-40);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-hero .btn {
  margin-top: 12px;
}

.hero-media img {
  object-fit: contain;
}

.breadcrumb {
  font-size: 0.8125rem;
  color: var(--body);
  margin-bottom: 20px;
}

.product-title {
  line-height: 1.15;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 8px;
}

.product-subtitle {
  font-size: 1.25rem;
  line-height: 1.4;
  font-weight: 400;
  color: var(--body);
  margin-bottom: 20px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: var(--sp-24);
}

.tag {
  font-size: 0.8125rem;
  color: var(--body);
  background: var(--paper-alt);
  padding: 6px 14px;
  border-radius: 999px;
}

.product-lede {
  font-size: 1.1875rem;
  line-height: 1.5;
  color: var(--ink);
  max-width: 520px;
  margin-top: 4px;
  margin-bottom: 16px;
}

.product-body {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
  max-width: 520px;
}

/* Gallery band "Every angle" */
.gallery-band {
  background: var(--paper-alt);
}

.gallery-band .band-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--sp-24);
  margin-bottom: var(--sp-32);
}

.gallery-band .band-title {
  font-weight: 500;
  color: var(--ink);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

/* two-tile variant (nCELL-M4460 page has 2 photos, not 3) */
.gallery-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

/* four-tile variant (nCELL-M4370 page has 4 photos) */
.gallery-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.pimg {
  background: var(--paper-product);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.pimg img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.gallery-grid .pimg {
  aspect-ratio: 4 / 3;
  padding: var(--sp-28);
  background: var(--paper);
}

.gallery-cap {
  font-size: 0.8125rem;
  color: var(--body);
  margin-top: 10px;
}

/* Built to perform (feature cards) */
.feature-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.fcard {
  padding: var(--sp-24) 20px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}

.fcard::before {
  content: "";
  display: block;
  width: 28px;
  height: 3px;
  background: var(--cti-orange);
  margin-bottom: 16px;
}

.fcard h3 {
  color: var(--ink);
  margin-bottom: 8px;
}

.fcard p {
  line-height: 1.6;
  color: var(--body);
}

/* Key features (frequency bands + highlights split) */
.key-features {
  background: var(--cti-orange-tint);
}

.spec-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: start;
}

.block-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 20px;
}

.band-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.band-chip {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 20px;
}

.band-foot {
  font-size: 0.875rem;
  color: var(--body);
}

.feature-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.feature-item {
  display: flex;
  gap: 12px;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--body);
}

.feature-item::before {
  content: "—";
  color: var(--cti-orange);
  flex-shrink: 0;
  font-weight: 600;
}

.feature-note {
  font-size: 0.75rem;
  color: var(--body);
}

/* Technical specifications */

.spec-row {
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.spec-row:last-child {
  border-bottom: none;
}

.spec-row--head {
  background: var(--cti-orange-tint);
  border-bottom: none;
  padding: 14px 16px;
  margin-bottom: 4px;
  border-radius: 4px;
}

.spec-row--head .spec-label,
.spec-row--head .spec-value {
  font-weight: 600;
  color: var(--ink);
}

.spec-table .spec-row:not(.spec-row--head) {
  padding-left: 16px;
  padding-right: 16px;
}

.spec-label {
  font-weight: 600;
  color: var(--ink);
  flex-shrink: 0;
}

.spec-value {
  font-weight: 400;
  color: var(--body);
}

.spec-footnote {
  font-size: 0.75rem;
  color: var(--body);
  opacity: 0.7;
  margin-top: 16px;
}

/* Related products */

/* Watermark / texture layer */
.wm-dots {
  position: relative;
  isolation: isolate;
}
.wm-dots::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle, rgba(20, 22, 26, 0.075) 1.4px, transparent 1.5px);
  background-size: 24px 24px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, rgba(0,0,0,0.35) 55%, transparent 100%);
  pointer-events: none;
}

.wm-dots--warm::before {
  background-image: radial-gradient(circle, rgba(253, 98, 0, 0.13) 1.4px, transparent 1.5px);
}

.wm-glyph {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.wm-glyph::after {
  content: "";
  position: absolute;
  z-index: -1;
  top: -140px;
  right: -300px;
  width: 620px;
  height: 620px;
  background-image: radial-gradient(circle, rgba(253, 98, 0, 0.07) 6px, transparent 6.5px);
  background-size: 58px 58px;
  -webkit-mask-image: radial-gradient(circle at 62% 50%, #000 18%, transparent 62%);
          mask-image: radial-gradient(circle at 62% 50%, #000 18%, transparent 62%);
  pointer-events: none;
}

.wm-signal {
  position: relative;
  isolation: isolate;
}
.wm-signal::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: repeating-radial-gradient(
    circle at 8% 120%,
    rgba(253, 98, 0, 0.14) 0 1px,
    transparent 1px 78px
  );
  pointer-events: none;
}

.wm-rule {
  position: relative;
}
.wm-rule::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--cti-orange) 0%, rgba(253, 98, 0, 0.25) 22%, transparent 55%);
}

/* ---- Product page responsive ---- */
@media (max-width: 1024px) {
  .feature-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  .spec-split {
    gap: 40px;
  }
}

@media (max-width: 768px) {
  .hero-type-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .feature-cards,
  .gallery-grid,
  .spec-split {
    grid-template-columns: 1fr;
  }
  .gallery-band .band-head {
    flex-direction: column;
    gap: 8px;
  }
  .spec-row {
    flex-direction: column;
  }
  .spec-value {
    text-align: left;
  }
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  /* header: hide nav links on mobile (footer provides mobile nav) */
  .site-nav {
    display: none;
  }

  .hero {
    min-height: 480px;
  }

  .split-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .split-row + .split-row {
    margin-top: 48px;
  }
  .split-row--flip .split-media,
  .split-row--flip .split-body {
    order: 0;
  }

  .brand-banner-mark {
    display: none;
  }

  .why-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    display: none;
  }
  .footer-mobile {
    display: block;
    padding-bottom: 40px;
  }
  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}


/* Page hero: compact dark band, orange signal-ripple texture (reuses .wm-signal) */
.page-hero {
  background: var(--dark);
  color: #fff;
  padding: var(--sp-88) 0 var(--sp-80);
  overflow: hidden;
}
.page-hero .breadcrumb {
  color: var(--cti-orange);
  margin-bottom: 16px;
}
.page-hero-title {
  font-size: 3rem;
  line-height: 1.15;
  font-weight: 500;
  max-width: 720px;
}
.page-hero .hero-tabs {
  margin-top: var(--sp-32);
}
.page-hero .pill {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.page-hero .pill .pill-count {
  margin-left: 8px;
  color: var(--cti-orange);
  font-weight: 600;
}

/* Category section */
.catalog-section {
  scroll-margin-top: 24px;
}
.catalog-section--tint {
  background: var(--cti-orange-tint);
}

/* Subgroup header: label + count, with the orange hairline from .wm-rule */
.catalog-group + .catalog-group {
  margin-top: var(--sp-56);
}
.catalog-group-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-top: 16px;
  margin-bottom: var(--sp-24);
}
.catalog-group-name {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
}
.catalog-group-count {
  font-size: 0.8125rem;
  color: var(--body);
}

/* Product card grid: 4 → 3 → 2 (stays 2 on mobile, same reasoning as .related-grid) */
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.pcard {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.pcard:hover,
.pcard:focus-visible {
  border-color: var(--cti-orange);
  box-shadow: 0 12px 28px -18px rgba(20, 22, 26, 0.35);
  transform: translateY(-2px);
}
.pcard-thumb {
  aspect-ratio: 4 / 3;
  background: var(--paper-product);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-28);
}
.pcard-thumb img {
  object-fit: contain;
  mix-blend-mode: multiply; /* some product photos have a white (not transparent) background */
  transition: transform 0.3s ease;
}
.pcard:hover .pcard-thumb img {
  transform: scale(1.03);
}
/* Placeholder image: neutral line drawing by category (base station / CPE / NMS) */
.pcard-thumb--placeholder svg {
  width: 34%;
  max-height: 100%;
  color: #CFC8BF;
}
/* Product without a page yet: holds its place in the line-up, not clickable */
.pcard--soon {
  cursor: default;
}
.pcard--soon:hover {
  border-color: var(--line);
  box-shadow: none;
  transform: none;
}
.pcard--soon .pcard-model {
  color: var(--ink);
}
.pcard-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 18px 20px 20px;
}
.pcard-type {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--body);
  margin-bottom: 6px;
}
.pcard-model {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
  color: var(--ink);
}
.pcard-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.badge {
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cti-orange);
  background: var(--cti-orange-tint);
  padding: 4px 10px;
  border-radius: 999px;
}
.pcard .rlink {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--cti-orange);
}

@media (max-width: 1024px) {
  .catalog-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
  }
}
@media (max-width: 768px) {
  .page-hero {
    padding: 56px 0 48px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pcard-thumb {
    padding: 14px;
  }
  .pcard-body {
    padding: 14px;
  }
  .pcard-model {
    font-size: 1rem;
  }
}

.pcard-soon {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--body);
  opacity: 0.75;
}
/* Related products: 3 cards (same group, minus the current product) */
.catalog-grid--related {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 768px) {
  .catalog-grid--related {
    grid-template-columns: repeat(2, 1fr);
  }
}
/* Pin the image inside the tile so every thumb is exactly 4:3 */
.pcard-thumb {
  position: relative;
  overflow: hidden;
}
.pcard-thumb img {
  position: absolute;
}

.page-hero--soon {
  padding: var(--sp-160) 0;
  text-align: center;
}
.page-hero--soon .page-hero-title {
  margin: 0 auto var(--sp-40);
}
@media (max-width: 768px) {
  .page-hero--soon {
    padding: 112px 0;
  }
}

.ru-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ru-cards .fcard p + p {
  margin-top: 12px;
}
@media (max-width: 1024px) {
  .ru-cards {
    grid-template-columns: 1fr;
  }
}

.spec-value {
  overflow-wrap: anywhere;
  min-width: 0;
}

.sol-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-64);
  align-items: center;
}
.sol-intro-text p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}
.sol-intro-text p + p {
  margin-top: 16px;
}
.sol-intro-media img {
  display: block;
  width: 100%;
  border-radius: 4px;
}
.sol-challenges {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.sol-challenge {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.sol-challenge-num {
  display: block;
  color: var(--cti-orange);
}
.sol-challenge p {
  font-weight: 600;
  color: var(--ink);
}
.sol-lede {
  max-width: 860px;
  margin-bottom: var(--sp-32);
  font-size: 1.375rem;
  line-height: 1.5;
  color: var(--ink);
}
.sol-diagram {
  margin-top: var(--sp-48);
  background: var(--paper);
  border-radius: 4px;
}
.sol-diagram img {
  display: block;
  width: 100%;
}
.sol-highlights {
  margin-top: var(--sp-48);
}
.feature-cards--3 {
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 1024px) {
  .sol-challenges {
    grid-template-columns: repeat(2, 1fr);
  }
  .sol-intro {
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .sol-intro,
  .sol-challenges,
  .feature-cards--3 {
    grid-template-columns: 1fr;
  }
  .sol-intro {
    gap: 32px;
  }
  .sol-lede {
    font-size: 1.1875rem;
  }
}

.section-title-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.section-title-link:hover {
  color: var(--cti-orange);
}

.catalog-grid--three {
  grid-template-columns: repeat(3, 1fr);
}
.pcard--photo .pcard-thumb {
  padding: 0;
  aspect-ratio: 16 / 10;
}
.pcard--photo .pcard-thumb img {
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  mix-blend-mode: normal;
}
.pcard--photo .pcard-model {
  font-size: 1.25rem;
}
.pcard--photo .pcard-type {
  margin: 8px 0 0;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .catalog-grid--three {
    grid-template-columns: 1fr;
  }
  .pcard--photo .pcard-thumb img {
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

.about-intro {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-64);
  align-items: start;
}
.about-quote {
  margin: 0;
  padding-left: var(--sp-24);
  border-left: 3px solid var(--cti-orange);
  font-size: 1.5rem;
  line-height: 1.45;
  color: var(--ink);
}
.about-body p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}
.about-body p + p {
  margin-top: 20px;
}
.why-grid--stats {
  grid-template-columns: repeat(3, 1fr);
}
.why-stat {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 500;
  color: var(--cti-orange);
  margin-bottom: 12px;
}
.why-grid--stats .why-copy {
  font-size: 1rem;
}
.qms-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-24);
}
.qms-card {
  padding: var(--sp-32);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.qms-card .band-row {
  margin-top: var(--sp-24);
  flex-wrap: wrap;
}
.qms-label {
  margin-top: var(--sp-24);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--cti-orange);
}
.qms-lead {
  margin-top: 6px;
  font-size: 0.9375rem;
  color: var(--ink);
}
.qms-list {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}
.qms-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--body);
}
.qms-list li + li {
  margin-top: 8px;
}
.qms-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.8em;
  width: 12px;
  height: 2px;
  background: var(--cti-orange);
}
@media (max-width: 1024px) {
  .about-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
@media (max-width: 768px) {
  .about-quote {
    font-size: 1.25rem;
  }
  .why-grid--stats,
  .qms-grid {
    grid-template-columns: 1fr;
  }
  .why-stat {
    font-size: 2.5rem;
  }
  .qms-card {
    padding: 24px;
  }
}

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: var(--sp-64);
  align-items: start;
}
.contact-title {
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.contact-lede {
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
}
.contact-block p,
.contact-mails {
  margin-top: 6px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink);
}
.contact-mails {
  list-style: none;
  padding: 0;
}
.contact-block a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.contact-block a:hover {
  color: var(--cti-orange);
}
.contact-form {
  padding: var(--sp-40);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  margin-bottom: 20px;
}
.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--ink);
}
.field input,
.field textarea {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
}
.field textarea {
  resize: vertical;
}
.field input:focus,
.field textarea:focus {
  outline: 2px solid var(--cti-orange);
  outline-offset: -1px;
  border-color: var(--cti-orange);
}
@media (max-width: 1024px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}
@media (max-width: 768px) {
  .contact-form {
    padding: 24px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.prose p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}
.prose p + p {
  margin-top: 16px;
}
.prose a {
  color: var(--cti-orange);
  font-weight: 600;
}

.prose--doc h2 {
  margin: var(--sp-48) 0 16px;
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.prose--doc h3 {
  margin: var(--sp-32) 0 12px;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}
.prose--doc p {
  font-size: 1rem;
}
.prose--doc p + p {
  margin-top: 16px;
}
.prose--doc ul,
.prose--doc ol {
  margin: 16px 0;
  padding-left: 22px;
}
.prose--doc li {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
}
.prose--doc li + li {
  margin-top: 8px;
}
.prose--doc li::marker {
  color: var(--cti-orange);
}
.prose--doc > :first-child {
  margin-top: 0;
}


.video-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--dark);
  border-radius: 4px;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 56px;
  height: 56px;
  margin: -28px 0 0 -28px;
  background: var(--cti-orange);
  border-radius: 50%;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 22px;
  top: 18px;
  border-left: 16px solid #fff;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

.event-name {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .site-nav {
    gap: 20px;
  }
  .nav-link {
    font-size: 0.875rem;
  }
}

.mnav {
  display: none;
}
@media (max-width: 768px) {
  .site-header .btn {
    margin-left: auto;
  }
  .mnav {
    display: block;
  }
  .mnav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-right: -10px;
    list-style: none;
    cursor: pointer;
  }
  .mnav-toggle::-webkit-details-marker {
    display: none;
  }
  .mnav-bars,
  .mnav-bars::before,
  .mnav-bars::after {
    display: block;
    width: 22px;
    height: 2px;
    background: #fff;
    border-radius: 1px;
  }
  .mnav-bars {
    position: relative;
  }
  .mnav-bars::before,
  .mnav-bars::after {
    content: "";
    position: absolute;
    left: 0;
  }
  .mnav-bars::before {
    top: -7px;
  }
  .mnav-bars::after {
    top: 7px;
  }
  .mnav[open] .mnav-bars {
    background: transparent;
  }
  .mnav[open] .mnav-bars::before {
    top: 0;
    transform: rotate(45deg);
  }
  .mnav[open] .mnav-bars::after {
    top: 0;
    transform: rotate(-45deg);
  }
  .mnav-panel {
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    padding: 8px 20px 24px;
    background: var(--dark);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.35);
  }
  .mnav-panel .nav-link {
    display: block;
    padding: 16px 0;
    font-size: 1.125rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mnav-panel .nav-link:last-child {
    border-bottom: none;
  }
}

.product-card .card-title {
  text-wrap: balance;
}

/* About: the two certification cards share one height */
.qms-grid {
  align-items: stretch;
}
.qms-card {
  display: flex;
  flex-direction: column;
}
.qms-card > .band-row:last-child {
  padding-top: var(--sp-24);
}
/* Support: 3-up link cards on a 6-column grid; a last row of two cards fills the width */

/* H1: product pages match the other pages */
.product-title {
  font-size: 3rem;
}
/* Section H2: "Every angle" matches every other section title */
.gallery-band .band-title {
  font-size: 2rem;
  line-height: 1.25;
}
/* In-content H2 */
.contact-title {
  font-size: 1.5rem;
}
/* Card / row H3: 20px, weight 600 everywhere */
.fcard h3,
.event-name {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}
/* Card text: 15px */
.fcard p {
  font-size: 0.9375rem;
}
@media (max-width: 768px) {
  .page-hero-title,
  .product-title {
    font-size: 2.125rem;
  }
  .section-title,
  .brand-banner-title,
  .gallery-band .band-title {
    font-size: 1.625rem;
  }
  .section-title {
    margin-bottom: 32px;
  }
  .contact-title,
  .prose--doc h2 {
    font-size: 1.375rem;
  }
  .fcard h3,
  .event-name,
  .block-title {
    font-size: 1.125rem;
  }
}

.spec-table {
  max-width: 960px;
}
.spec-row {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr;
  gap: var(--sp-32);
  align-items: baseline;
}
.spec-label,
.spec-value {
  font-size: 0.9375rem;
}
.spec-value {
  text-align: left;
}
@media (max-width: 768px) {
  .spec-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

.pcard-thumb img {
  inset: 12px;
  width: calc(100% - 24px);
  height: calc(100% - 24px);
}
@media (max-width: 768px) {
  .pcard-thumb img {
    inset: 6px;
    width: calc(100% - 12px);
    height: calc(100% - 12px);
  }
}

@media (max-width: 768px) {
  /* darken top-to-bottom so the title stays readable */
  .hero {
    background-image: linear-gradient(180deg, rgba(10,8,6,0.78) 0%, rgba(10,8,6,0.7) 55%, rgba(10,8,6,0.82) 100%),
      url("assets/hero-rural.webp");
  }
  /* "Every angle": a swipeable row (next photo peeks in) */
  .gallery-grid,
  .gallery-grid--2,
  .gallery-grid--4 {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .gallery-grid > * {
    scroll-snap-align: start;
  }
  .gallery-grid .pimg {
    padding: 16px;
  }
}

.breadcrumb a {
  color: inherit;
  text-decoration: none;
}
.breadcrumb a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.breadcrumb a + a::before {
  content: "›";
  display: inline-block;
  margin: 0 8px;
  text-decoration: none;
}

summary:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 2px solid var(--cti-orange);
  outline-offset: 2px;
}

.hero-media img {
  mix-blend-mode: multiply;
}

.product-hero + [class="section"],
[class="section"] + [class="section"] {
  padding-top: 0;
}

.feature-cards {
  gap: 0;
  border-top: 1px solid var(--line);
  counter-reset: feat;
}
.feature-cards .fcard {
  padding: var(--sp-28) var(--sp-32) 8px;
  background: transparent;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  counter-increment: feat;
}
.feature-cards .fcard:first-child {
  padding-left: 0;
  border-left: 0;
}
.feature-cards .fcard::before {
  content: counter(feat, decimal-leading-zero);
  width: auto;
  height: auto;
  background: none;
  margin-bottom: 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cti-orange);
}
@media (max-width: 1024px) {
  .feature-cards {
    border-top: 0;
  }
  .feature-cards .fcard,
  .feature-cards .fcard:first-child {
    padding: 24px 0;
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .feature-cards .fcard:nth-child(even) {
    padding-left: 32px;
  }
}
@media (max-width: 768px) {
  .feature-cards .fcard:nth-child(even) {
    padding-left: 0;
  }
}

.sol-challenge {
  padding: var(--sp-28) var(--sp-28) var(--sp-32);
}
.sol-challenge-num {
  margin-bottom: 20px;
  font-size: 2.75rem;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.01em;
}
.sol-challenge p {
  font-size: 1.25rem;
  line-height: 1.3;
}
@media (max-width: 768px) {
  .sol-challenge-num {
    font-size: 2.25rem;
  }
  .sol-challenge p {
    font-size: 1.125rem;
  }
}


@media (max-width: 768px) {
  .mnav {
    margin-left: auto;
  }
}

.container {
  --gutter: clamp(20px, 5vw, 160px);
  max-width: calc(1600px + 2 * var(--gutter));
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* homepage product row: 4 equal columns filling the content width */
@media (min-width: 1025px) {
  .card-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow-x: visible;
  }
}


/* Audience rows: image and text get equal halves; 3:2 photos so they don't tower on wide screens */
.section--audience .split-row {
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 80px);
}
.section--audience .split-media img {
  aspect-ratio: 3 / 2;
}
.section--audience .split-body {
  max-width: 560px;
}

/* Closing banner: title left, the three figures right; no repeated logo */
.brand-banner--close .brand-banner-text {
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 5vw, 96px);
  align-items: start;
}
.brand-banner--close .brand-banner-title {
  grid-column: 1;
  grid-row: 1;
}
.banner-stats {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
}
.banner-stats > div {
  padding: 4px var(--sp-24) 4px;
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}
.banner-stats dt {
  font-size: 3rem;
  line-height: 1.1;
  font-weight: 500;
  color: var(--cti-orange);
  margin-bottom: 8px;
}
.banner-stats dd {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.75);
}
@media (max-width: 1024px) {
  .brand-banner--close .brand-banner-text {
    grid-template-columns: 1fr;
  }
  .banner-stats {
    grid-column: 1;
    grid-row: 2;
    margin: 8px 0 0;
  }
  .banner-stats > div:first-child {
    padding-left: 0;
    border-left: 0;
  }
}
@media (max-width: 768px) {
  .section--audience .split-row {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .banner-stats {
    grid-template-columns: 1fr;
  }
  .banner-stats > div {
    padding: 16px 0;
    border-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
  }
  .banner-stats dt {
    font-size: 2.25rem;
  }
}

/* Footer: one column per top-level section; address beside the logo */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 40px;
  }
}

.support-intro {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}
.support-intro .section-title {
  margin-bottom: 20px;
}
.support-intro p {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--body);
}
.support-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: var(--sp-40);
  padding: 0;
  list-style: none;
}
.support-icons a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 16px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.15s ease, color 0.15s ease;
}
.support-icons a:hover {
  border-color: var(--cti-orange);
  color: var(--cti-orange);
}
.support-icons img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.support-rows {
  display: grid;
  gap: clamp(20px, 2vw, 32px);
  margin-top: clamp(48px, 5vw, 72px);
}
.support-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--paper-alt);
  border-radius: 4px;
  overflow: hidden;
}
.support-split--flip .support-split-media {
  order: -1;
}
.support-split-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: clamp(32px, 4vw, 64px);
}
.support-split-body h3 {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.support-split-body p {
  margin-top: 16px;
  max-width: 520px;
  font-size: 1rem;
  line-height: 1.7;
  color: var(--body);
}
.support-split-body .btn {
  margin-top: var(--sp-32);
}
.support-split-body .btn span {
  margin-left: 6px;
}
.support-split-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 688 / 400;
  object-fit: cover;
}

@media (max-width: 1024px) {
  .support-icons {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .support-intro {
    text-align: left;
  }
  .support-intro p {
    font-size: 1rem;
  }
  .support-icons {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 28px;
  }
  .support-icons a {
    justify-content: flex-start;
  }
  .support-split {
    grid-template-columns: 1fr;
  }
  .support-split-media {
    order: -1;
  }
  .support-split-body h3 {
    font-size: 1.375rem;
  }
}

/* Video library (Support page + /support/installation-videos/): categories | 3-column cards, 6 per page */
.vlib {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(32px, 4vw, 64px);
  align-items: start;
}
.vlib-cats-title {
  margin-bottom: 12px;
  font-size: 1.125rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--ink);
}
.vlib-cats ul {
  padding: 0;
  list-style: none;
}
.vlib-cat {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  width: 100%;
  padding: 14px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
  font-family: inherit;
  font-size: 0.9375rem;
  text-align: left;
  color: var(--body);
  cursor: pointer;
}
.vlib-cat span {
  font-size: 0.8125rem;
  color: var(--body);
}
.vlib-cat:hover,
.vlib-cat.is-active {
  color: var(--cti-orange);
}
.vlib-cat.is-active {
  font-weight: 600;
}
.vlib-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 24px);
}
.vlib-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: var(--paper);
  color: inherit;
}
.vlib-card[hidden] {
  display: none;
}
.vlib-card:hover {
  border-color: var(--cti-orange);
}
.vlib-card .video-thumb {
  border-radius: 0;
}
.vlib-card:hover .video-thumb img {
  transform: scale(1.03);
}
.vlib-body {
  padding: 16px 20px 20px;
}
.vlib-date {
  font-size: 0.8125rem;
  color: var(--body);
}
.vlib-title {
  margin-top: 6px;
  color: var(--ink);
}
.vlib-card:hover .vlib-title {
  color: var(--cti-orange);
}
.vlib-pager {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: var(--sp-32);
  font-size: 0.8125rem;
}
.vlib-pager[hidden] {
  display: none;
}
.vlib-total {
  margin-right: 8px;
  color: var(--body);
}
.vlib-pages {
  display: flex;
  gap: 8px;
}
.vlib-pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  font-family: inherit;
  font-size: 0.8125rem;
  color: var(--ink);
  cursor: pointer;
}
.vlib-pager button:hover {
  border-color: var(--cti-orange);
}
.vlib-pager button[aria-current="page"] {
  border-color: var(--cti-orange);
  background: var(--cti-orange);
  color: #fff;
}

/* Support page: the library sits on a gray band between the white ticket and RMA sections */
.support-videos {
  background: var(--paper-alt);
}

/* RMA: title + the two objectives left, portal button right */
.rma-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--sp-40);
  padding: 0;
  list-style: none;
  font-size: 1.0625rem;
  color: var(--ink);
}
.rma-points li::before {
  content: "";
  display: inline-block;
  width: 14px;
  height: 2px;
  margin: 0 10px 5px 0;
  background: var(--cti-orange);
}

/* Contact Us: dark closing band, contact details right */
.support-contact-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: center;
}
.support-contact-list {
  display: grid;
  gap: 20px;
  margin: 0;
}
.support-contact-list > div {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
.support-contact-list dt {
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.6);
}
.support-contact-list dd {
  margin: 0;
  font-size: 1rem;
  color: #fff;
}
.support-contact-list a:hover {
  color: var(--cti-orange);
}
@media (max-width: 1024px) {
  .vlib {
    grid-template-columns: 1fr;
  }
  .vlib-cats ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .vlib-cat {
    width: auto;
    gap: 8px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--paper);
  }
  .vlib-cat.is-active {
    border-color: var(--cti-orange);
  }
  .vlib-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .support-contact-inner {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 768px) {
  .vlib-grid {
    grid-template-columns: 1fr;
  }
  .support-contact-list > div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}



.site-nav .nav-link {
  display: inline-block;
  padding: 11px 0;
}

@media (min-width: 1025px) {
  .catalog-grid--related {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (min-width: 1025px) {
  .ru-cards:has(> :nth-child(4):last-child) {
    grid-template-columns: repeat(4, 1fr);
  }
  .catalog-grid--related:has(> :nth-child(5):last-child) {
    grid-template-columns: repeat(5, 1fr);
  }
}

@media (min-width: 1025px) {
  .section > .container:has(> .sol-lede) {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    column-gap: var(--sp-64);
    align-items: start;
  }
  .section > .container:has(> .sol-lede) > * {
    grid-column: 1 / -1;
  }
  .section > .container:has(> .sol-lede) > .sol-lede {
    grid-column: 1;
    margin-bottom: 0;
  }
  .section > .container:has(> .sol-lede) > .feature-grid {
    grid-column: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--sp-32);
    padding-top: 6px;
  }
}
.sol-diagram {
  padding: 0;
}

.about-body p {
  max-width: 68ch;
}
.qms-card > .band-row:last-child {
  margin-top: 0;
}

.ico {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.ev-list {
  display: grid;
  gap: var(--sp-24);
}
.ev-row {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  background: var(--paper-alt);
  border-radius: 4px;
  overflow: hidden;
}
.ev-media img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.ev-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 16px;
  padding: var(--sp-40);
}
.ev-body .event-name {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
}
.ev-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  font-size: 0.9375rem;
  color: var(--body);
}
.ev-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.ev-meta .ico {
  color: var(--cti-orange);
}
.ev-body .btn {
  margin-top: 8px;
}
.ev-body .btn span {
  margin-left: 6px;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--sp-24);
}
.news-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  color: inherit;
}
.news-card:hover {
  border-color: var(--cti-orange);
}
.news-thumb {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: var(--paper-alt);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.news-card:hover .news-thumb img {
  transform: scale(1.03);
}
.news-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}
.news-title {
  color: var(--ink);
}
.news-card:hover .news-title {
  color: var(--cti-orange);
}
.news-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 16px;
  font-size: 0.8125rem;
  color: var(--body);
}
.news-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-more {
  font-weight: 600;
  color: var(--cti-orange);
}
@media (max-width: 1024px) {
  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .ev-row {
    grid-template-columns: 1fr;
  }
  .ev-media img {
    aspect-ratio: 16 / 9;
  }
  .ev-body {
    padding: 24px;
  }
  .ev-body .event-name {
    font-size: 1.25rem;
  }
  .news-grid {
    grid-template-columns: 1fr;
  }
}

.prose {
  max-width: 72ch;
}

.footer-links a,
.footer-mobile-links a,
.legal-links a,
.breadcrumb a,
.hero-link,
.card-link {
  position: relative;
}
.footer-links a::after,
.footer-mobile-links a::after,
.legal-links a::after,
.breadcrumb a::after,
.hero-link::after,
.card-link::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
.badge {
  font-size: 0.75rem;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .vlib-card:hover .video-thumb img,
  .news-card:hover .news-thumb img {
    transform: none;
  }
}

.hero {
  min-height: clamp(480px, 100vw / 3 + 160px, 800px);
}
.hero-title {
  font-size: clamp(2rem, 1rem + 2.5vw, 4rem);
}

.footer-contact a,
.footer-mobile-contact a {
  color: inherit;
}
.footer-contact a:hover,
.footer-mobile-contact a:hover {
  color: var(--cti-orange);
}

.vlib-card,
.news-card {
  transition: border-color 0.15s ease, box-shadow 0.2s ease, transform 0.2s ease;
}
.vlib-card:hover,
.news-card:hover {
  box-shadow: 0 12px 28px -18px rgba(20, 22, 26, 0.35);
  transform: translateY(-2px);
}
@media (prefers-reduced-motion: reduce) {
  .pcard:hover,
  .pcard:focus-visible,
  .vlib-card:hover,
  .news-card:hover {
    transform: none;
  }
}

.product-hero ~ .key-features {
  background: var(--paper-alt);
}

.card-title,
.vlib-title,
.news-title {
  font-size: 1.25rem;
  line-height: 1.3;
  font-weight: 600;
}

.catalog-section .section-title {
  margin-bottom: var(--sp-48);
}

.support-intro p {
  max-width: 68ch;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1441px) {
  html {
    font-size: min(calc(100% + (100vw - 1440px) / 480), 106.25%);
  }
  .page-hero-title,
  .product-title {
    font-size: min(calc(3rem + (100vw - 1440px) / 96), 3.2941rem);
  }
  .section-title,
  .brand-banner-title,
  .gallery-band .band-title {
    font-size: min(calc(2rem + (100vw - 1440px) / 240), 2.1176rem);
  }
  .hero-title {
    font-size: min(calc(1rem + 2.5vw), 3.7647rem);
  }
}
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.25rem;
  }
}

.card-link {
  font-weight: 600;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 1000;
  padding: 12px 16px;
  border-radius: 4px;
  background: var(--ink);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}

img {
  height: auto;
}

html {
  scroll-padding-top: 72px;
}
.nav-item {
  position: relative;
}
.nav-link--parent::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-3px) rotate(45deg);
}
.nav-menu {
  position: absolute;
  top: calc(50% + 36px); /* the 72px header's bottom edge (.nav-item is centred in it) */
  left: -16px;
  z-index: 110;
  min-width: 232px;
  padding: 8px 0;
  background: var(--dark);
  border-radius: 0 0 4px 4px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}
/* keeps the menu open while the pointer crosses the gap down to the header's edge */
.nav-item::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  height: calc(36px - 50%);
}
.nav-item:hover .nav-menu,
.nav-item:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.nav-menu a {
  display: block;
  padding: 10px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}
.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--cti-orange);
  background: rgba(255, 255, 255, 0.06);
}
.mnav-sub {
  display: none;
}
@media (max-width: 768px) {
  .mnav-panel .nav-link--parent {
    border-bottom: none;
    padding-bottom: 8px;
  }
  .mnav-panel .nav-link--parent::after {
    display: none;
  }
  .mnav-sub {
    display: flex;
    flex-direction: column;
    padding: 0 0 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .mnav-sub a {
    padding: 10px 0;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
  }
  .mnav-sub a:hover {
    color: var(--cti-orange);
  }
}

.brand {
  padding: 8px 0;
}
.contact-mails a::after {
  content: "";
  position: absolute;
}
.contact-mails a {
  position: relative;
}
.contact-mails a::after {
  inset: -3px -4px;
}

.hero-content {
  max-width: clamp(640px, 56vw, 980px);
}
.hero-title {
  line-height: 1.08;
  letter-spacing: -0.01em;
}

@media (min-width: 769px) {
  .key-features .spec-split {
    display: block;
  }
  .key-features .spec-split > div + div {
    margin-top: var(--sp-48);
    padding-top: var(--sp-40);
    border-top: 1px solid var(--line);
  }
  .key-features .feature-grid {
    display: block;
    columns: 2;
    column-gap: var(--sp-64);
  }
  .key-features .feature-item {
    break-inside: avoid;
    margin-bottom: 16px;
  }
}

.section--audience .split-title {
  font-size: 1.5rem;
}
.section--audience .split-copy {
  font-size: 1.0625rem;
  line-height: 1.7;
}

@media (max-width: 768px) {
  .section--news .news-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .section--news .news-card {
    scroll-snap-align: start;
  }
}

.brand-banner--form .contact-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 20px;
  align-items: end;
  margin-top: var(--sp-32);
  color: var(--body);
}
.brand-banner--form .form-row {
  display: contents;
}
.brand-banner--form .field:has(textarea) {
  grid-column: span 2;
}
.brand-banner--form textarea {
  height: 3.125rem; /* one line, the same height as the inputs */
  min-height: 3.125rem;
  resize: vertical;
}
.brand-banner--form .contact-form > .btn {
  margin-bottom: 20px;
}
@media (max-width: 1024px) {
  .brand-banner--form .contact-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 768px) {
  .brand-banner--form .contact-form {
    grid-template-columns: 1fr;
  }
  .brand-banner--form .field:has(textarea) {
    grid-column: auto;
  }
  .brand-banner--form textarea {
    height: auto; /* back to rows="5", like the Contact page */
  }
}

.rma-split-title {
  font-size: 1.5rem;
  line-height: 1.3;
  font-weight: 500;
  color: var(--ink);
}
.rma-split .rma-points {
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.rma-split .btn {
  margin-top: var(--sp-32);
}

.footer-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-top: var(--sp-56);
}
.footer-col .footer-contact {
  margin-top: 20px;
}
.footer-bottom {
  justify-content: flex-start;
}
.footer-bottom .legal-links {
  margin-left: auto;
}
.footer-brand {
  position: relative;
}
.footer-brand::after {
  content: "";
  position: absolute;
  inset: -10px -4px;
}
@media (max-width: 768px) {
  .footer-mobile {
    padding-top: var(--sp-48);
  }
  .footer-bottom .legal-links {
    margin-left: 0;
  }
}


@media (max-width: 768px) {
  .support-split--flip .support-split-media {
    order: -1;
  }
}

@media (min-width: 1025px) {
  .feature-cards--3 .fcard:nth-child(3n + 1) {
    padding-left: 0;
    border-left: 0;
  }
}
@media (min-width: 769px) and (max-width: 1024px) {
  .feature-cards--3 {
    column-gap: var(--sp-32);
  }
  .feature-cards--3 .fcard,
  .feature-cards--3 .fcard:nth-child(even) {
    padding-left: 0;
  }
}

.brand, .footer-brand { display: flex; align-items: center; gap: 14px; }
.brand-logo { height: 30px; }
.footer-logo { height: 26px; }
.brand-tag { padding-left: 14px; border-left: 1px solid rgba(255, 255, 255, 0.3); font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255, 255, 255, 0.85); white-space: nowrap; }
.brand-tag--dark { border-left-color: var(--line); color: var(--body); }
@media (max-width: 768px) { .brand-tag { font-size: 0.6875rem; padding-left: 10px; } .brand, .footer-brand { gap: 10px; } }

.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-slides, .hero-slides span { position: absolute; inset: 0; }
.hero-slides { z-index: -2; }
.hero-slides span { background-size: cover; background-position: center; opacity: 0; animation: hero-fade 16s infinite; }
.hero-slides span:nth-child(1) { animation-delay: -1s; }
.hero-slides span:nth-child(2) { animation-delay: 3s; }
.hero-slides span:nth-child(3) { animation-delay: 7s; }
.hero-slides span:nth-child(4) { animation-delay: 11s; }
@keyframes hero-fade { 0% { opacity: 0; } 5.4% { opacity: 1; } 25% { opacity: 1; } 30.4% { opacity: 0; } 100% { opacity: 0; } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10,8,6,0.85) 0%, rgba(10,8,6,0.55) 45%, rgba(10,8,6,0.15) 75%); }
@media (max-width: 768px) { .hero::before { background: linear-gradient(180deg, rgba(10,8,6,0.78) 0%, rgba(10,8,6,0.7) 55%, rgba(10,8,6,0.82) 100%); } }
@media (prefers-reduced-motion: reduce) { .hero-slides { display: none; } }
/* ==========================================================================
   the dark gradient now comes from .hero::before only
   ========================================================================== */
.hero { background-image: url("assets/hero-rural.webp"); }

.why-stat { font-variant-numeric: tabular-nums; }

:root { --crumb-size: clamp(1.5rem, 1rem + 1.6vw, 2rem); }
.page-hero .breadcrumb,
.product-hero .breadcrumb {
  font-size: var(--crumb-size);
  font-weight: 500;
}
.page-hero .container > .page-hero-title:first-child {
  margin-top: calc(var(--crumb-size) * 1.6 + 16px);
}

.hero-media { position: relative; min-height: 0; }
.hero-media img {
  position: absolute;
  inset: var(--sp-40);
  width: calc(100% - 2 * var(--sp-40));
  height: calc(100% - 2 * var(--sp-40));
}

.pimg { position: relative; }
.pimg img { position: absolute; inset: 0; padding: inherit; }

@media (max-width: 359px) {
  .brand { gap: 8px; }
  .brand-tag { padding-left: 8px; letter-spacing: 0.04em; }
  .brand-logo { height: 26px; }
}

@media (max-width: 768px) {
  .mnav-panel {
    max-height: calc(100vh - 72px);
    max-height: calc(100dvh - 72px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}

.footer-brand::after { content: none; }
.brand-home { display: flex; position: relative; }
.brand .brand-tag, .footer-brand .brand-tag { position: relative; }
.brand-home::after,
.brand .brand-tag::after,
.footer-brand .brand-tag::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 44px; transform: translateY(-50%); }
.brand .brand-tag:hover,
.footer-brand .brand-tag:hover { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 1024px) {
  .card-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow-x: visible;
    padding-bottom: 0;
  }
  .product-card {
    flex: none;
    min-width: 0;
  }
}
@media (max-width: 768px) {
  .card-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .product-card {
    display: grid;
    grid-template-columns: 120px minmax(0, 1fr);
    column-gap: 16px;
    align-items: start;
    padding: 12px;
  }
  .product-card .card-media {
    grid-row: 1 / span 3;
  }
  .product-card .card-media--product {
    aspect-ratio: 1 / 1;
    padding: 8px;
  }
  .product-card .card-title,
  .product-card .card-desc,
  .product-card .card-link {
    grid-column: 2;
  }
  .section--news .news-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
    grid-auto-columns: auto;
    gap: 12px;
    overflow-x: visible;
    padding-bottom: 0;
  }
  .section--news .news-card {
    flex-direction: row;
    align-items: flex-start;
  }
  .section--news .news-thumb {
    flex: 0 0 120px;
  }
  .section--news .news-body {
    align-self: stretch;
    padding: 12px 16px;
  }
  .gallery-grid,
  .gallery-grid--2,
  .gallery-grid--4 {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-columns: auto;
    overflow-x: visible;
  }
}
/* 320px phones: a smaller picture so the model name stays on one line */
@media (max-width: 359px) {
  .product-card {
    grid-template-columns: 88px minmax(0, 1fr);
    column-gap: 12px;
  }
  .section--news .news-thumb {
    flex-basis: 88px;
  }
}

.hero-slide--rural { background-image: url("assets/hero-rural.webp"); }
.hero-slide--manufacturing { background-image: url("assets/hero-manufacturing.webp"); }
.hero-slide--hospital { background-image: url("assets/hero-hospital.webp"); }
.hero-slide--airport { background-image: url("assets/hero-airport.webp"); }
.hero-slide--mining { background-image: url("assets/hero-mining.webp"); }
.hero-slide--tower { background-image: url("assets/hero-tower.webp"); }
@media (min-width: 769px) and (min-resolution: 1.5dppx),
       (min-width: 769px) and (-webkit-min-device-pixel-ratio: 1.5),
       (min-width: 1921px) {
  .hero-slide--rural { background-image: url("assets/hero-rural-2x.webp"); }
  .hero-slide--manufacturing { background-image: url("assets/hero-manufacturing-2x.webp"); }
  .hero-slide--hospital { background-image: url("assets/hero-hospital-2x.webp"); }
  .hero-slide--airport { background-image: url("assets/hero-airport-2x.webp"); }
  .hero-slide--mining { background-image: url("assets/hero-mining-2x.webp"); }
  .hero-slide--tower { background-image: url("assets/hero-tower-2x.webp"); }
  .hero { background-image: url("assets/hero-rural-2x.webp"); }
}

.hero-slides:not(.is-ready) span { animation: none; }
.hero-slides:not(.is-ready) span:first-child { opacity: 1; }
.hero-slides:not(.is-ready) span:not(:first-child) { background-image: none; }

.gallery-grid a.pimg,
a.hero-media {
  cursor: zoom-in;
}
.gallery-grid a.pimg img,
a.hero-media img {
  transition: transform 0.3s ease;
}
.gallery-grid a.pimg:hover img,
a.hero-media:hover img {
  transform: scale(1.03);
}

.lightbox {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px var(--sp-24);
  border: 0;
  background: transparent;
  color: var(--ink);
}
.lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox::backdrop {
  background: rgba(20, 22, 26, 0.88);
}
html:has(.lightbox[open]) {
  overflow: hidden;
}

/* white card: square photo + one bar (caption left, ‹ 1 / 3 › right);
   as wide as the screen height allows, never wider than 880px */
.lightbox-panel {
  width: min(100%, 880px, calc(100vh - 208px));
  width: min(100%, 880px, calc(100dvh - 208px));
  background: var(--paper);
  border-radius: 4px;
  overflow: hidden;
}
.lightbox-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: var(--sp-40);
}
.lightbox-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 10px 10px 10px var(--sp-24);
  border-top: 1px solid var(--line);
}
.lightbox-cap {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink);
}
.lightbox-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.lightbox-count {
  min-width: 3.5em;
  text-align: center;
  font-size: 0.8125rem;
  color: var(--body);
  font-variant-numeric: tabular-nums;
}
.lightbox-prev,
.lightbox-next,
.lightbox-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.lightbox-prev:hover,
.lightbox-next:hover {
  background: var(--paper-alt);
  color: var(--cti-orange);
}
.lightbox-prev svg,
.lightbox-next svg {
  width: 20px;
  height: 20px;
}
/* × sits on the dark area, top right of the screen */
.lightbox-close {
  position: fixed;
  top: 16px;
  right: 16px;
  color: var(--paper);
}
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.lightbox-close svg {
  width: 24px;
  height: 24px;
}

@keyframes lightbox-in {
  from { opacity: 0; transform: scale(0.97); }
}
@keyframes lightbox-fade {
  from { opacity: 0; }
}
.lightbox[open] .lightbox-panel {
  animation: lightbox-in 0.2s ease-out;
}
.lightbox[open]::backdrop {
  animation: lightbox-fade 0.2s ease-out;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 72px 16px;
  }
  .lightbox-img {
    padding: 16px;
  }
  .lightbox-bar {
    padding-left: 16px;
  }
}
/* phone turned sideways: less space above / below the card */
@media (max-height: 560px) {
  .lightbox {
    padding-block: 16px;
  }
  .lightbox-panel {
    width: min(100%, 880px, calc(100vh - 96px));
    width: min(100%, 880px, calc(100dvh - 96px));
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-grid a.pimg img,
  a.hero-media img {
    transition: none;
  }
  .gallery-grid a.pimg:hover img,
  a.hero-media:hover img {
    transform: none;
  }
  .lightbox[open] .lightbox-panel,
  .lightbox[open]::backdrop {
    animation: none;
  }
}
