/* CCTV category page, layouts not covered by safeguard-home / alarm-systems */

/* Shared media placeholder (swap when images uploaded to assets/images/cctv/) */
.sg-cctv-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 12rem;
  background: linear-gradient(145deg, #e8eaed 0%, #c5ced6 50%, var(--sg-navy) 100%);
  border: 1px dashed #b8d4e8;
}

/* -------------------------------------------------------------------------
   CCTV stage hero — arched property frame + phone focal
   ------------------------------------------------------------------------- */

.sg-cctv-stage-hero {
  --sg-stage-navy: #143d55;
  --sg-stage-orange: #fb7523;
  --sg-stage-frame-w: 280px;
  --sg-stage-frame-h: calc(var(--sg-stage-frame-w) * 360 / 264);
  position: relative;
  overflow: hidden;
  /* Zero bottom padding — frame must kiss the section edge */
  padding: 3.25rem 1.25rem 0;
  color: #fff;
  background: var(--sg-stage-navy);
}

.sg-cctv-stage-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sg-cctv-stage-hero__base {
  position: absolute;
  inset: 0;
  background: var(--sg-stage-navy);
}

.sg-cctv-stage-hero__gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    #173f58 0%,
    #245d79 55%,
    #418fb0 100%
  );
  opacity: 0.92;
}

.sg-cctv-stage-hero__blueprint {
  position: absolute;
  inset: 0;
  opacity: 0.03;
  background-image:
    radial-gradient(circle at 74% 42%, transparent 0 22%, rgba(255, 255, 255, 0.9) 22.5%, transparent 23.5%),
    radial-gradient(circle at 74% 42%, transparent 0 32%, rgba(255, 255, 255, 0.7) 32.5%, transparent 33.5%),
    linear-gradient(rgba(255, 255, 255, 0.55) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 1px, transparent 1px);
  background-size:
    auto,
    auto,
    96px 96px,
    96px 96px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.sg-cctv-stage-hero__noise {
  position: absolute;
  inset: 0;
  opacity: 0.02;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}

.sg-cctv-stage-hero__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    transparent 55%,
    rgba(0, 0, 0, 0.08) 100%
  );
}

.sg-cctv-stage-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  align-items: end;
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 0;
}

.sg-cctv-stage-hero__copy {
  max-width: 520px;
  padding-bottom: 2rem;
}

.sg-cctv-stage-hero__breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.75rem;
  font-family: var(--sg-font-body);
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.sg-cctv-stage-hero__breadcrumb a {
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

.sg-cctv-stage-hero__breadcrumb a:hover {
  color: #fff;
  text-decoration: underline;
}

.sg-cctv-stage-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--sg-font-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sg-stage-orange);
}

.sg-cctv-stage-hero__title {
  margin: 0 0 0.85rem;
  max-width: 16ch;
  font-family: var(--sg-font-head);
  font-size: clamp(1.85rem, 3.4vw, 2.75rem);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: #fff;
}

.sg-cctv-stage-hero__lead {
  margin: 0 0 1.25rem;
  max-width: 38ch;
  font-family: var(--sg-font-body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: #fff;
}

.sg-cctv-stage-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.35rem;
}

.sg-cctv-stage-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cctv-stage-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: var(--sg-font-body);
  font-size: 0.8125rem;
  line-height: 1.3;
  color: #fff;
}

.sg-cctv-stage-hero__trust-icon {
  display: inline-flex;
  color: rgba(255, 255, 255, 0.7);
}

.sg-cctv-stage-hero__trust-icon .sg-lucide-icon {
  width: 16px;
  height: 16px;
  stroke-width: 1.6;
}

.sg-cctv-stage-hero__visual {
  position: relative;
  width: min(100%, calc(var(--sg-stage-frame-w) + 5rem));
  height: var(--sg-stage-frame-h);
  margin: 0 auto;
  padding: 0;
  justify-self: center;
  line-height: 0;
}

/* Double-line architectural frame — outer stroke + 3px reveal + inner stroke */
.sg-cctv-stage-hero figure.sg-cctv-stage-hero__frame {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 1;
  width: var(--sg-stage-frame-w);
  height: var(--sg-stage-frame-h);
  max-width: none;
  margin: 0 !important;
  padding: 3px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
  line-height: 0;
}

.sg-cctv-stage-hero__frame-inner {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: #0c2d44;
  box-sizing: border-box;
  line-height: 0;
}

.sg-cctv-stage-hero__house,
.sg-cctv-stage-hero__frame-inner .sg-cctv-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  border-radius: 0;
  box-shadow: none;
  vertical-align: bottom;
}

.sg-cctv-stage-hero__phone {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 14%;
  width: 40%;
  max-width: 200px;
  margin: 0;
  line-height: 0;
  filter: drop-shadow(0 16px 28px rgba(0, 0, 0, 0.28));
  transform: rotate(-6deg);
  transform-origin: center bottom;
}

.sg-cctv-stage-hero__phone-img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: bottom;
}

.sg-cctv-stage-hero__phone .sg-cctv-media-placeholder {
  display: block;
  width: 100%;
  aspect-ratio: 9 / 19;
  min-height: 0;
  border-radius: 1.25rem;
}

@media (min-width: 960px) {
  .sg-cctv-stage-hero {
    --sg-stage-frame-w: 340px;
    padding: 3.5rem 1.5rem 0;
  }

  .sg-cctv-stage-hero__inner {
    grid-template-columns: minmax(0, 46%) minmax(0, 54%);
    gap: 1rem 1.75rem;
    align-items: stretch;
    /* Match frame height so visual column reaches section bottom */
    min-height: var(--sg-stage-frame-h);
  }

  .sg-cctv-stage-hero__copy {
    align-self: center;
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
  }

  .sg-cctv-stage-hero__visual {
    width: calc(var(--sg-stage-frame-w) + 4.5rem);
    height: 100%;
    min-height: var(--sg-stage-frame-h);
    margin: 0;
    justify-self: end;
    align-self: stretch;
  }

  .sg-cctv-stage-hero figure.sg-cctv-stage-hero__frame {
    left: 0;
    bottom: 0;
  }

  .sg-cctv-stage-hero__phone {
    right: -0.25rem;
    bottom: 12%;
    width: 40%;
    max-width: 200px;
  }
}

@media (max-width: 959px) {
  .sg-cctv-stage-hero {
    --sg-stage-frame-w: 240px;
    padding: 2.5rem 1.125rem 0;
  }

  .sg-cctv-stage-hero__copy {
    padding-bottom: 0.75rem;
  }

  .sg-cctv-stage-hero__title {
    max-width: 18ch;
  }

  .sg-cctv-stage-hero__visual {
    width: calc(var(--sg-stage-frame-w) + 3.5rem);
  }

  .sg-cctv-stage-hero__phone {
    max-width: 140px;
    right: 0;
    bottom: 12%;
  }
}

@media (max-width: 559px) {
  .sg-cctv-stage-hero__breadcrumb {
    display: none;
  }

  .sg-cctv-stage-hero__btn {
    flex: 1 1 auto;
  }

  .sg-cctv-stage-hero__trust {
    flex-direction: column;
    gap: 0.55rem;
  }
}

/* Intro — why well-placed cameras + capability bar */
.sg-cctv-intro__grid {
  display: grid;
  gap: 2rem;
  align-items: start;
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.sg-cctv-intro__title {
  margin: 0 0 1rem;
  max-width: 14ch;
  font-family: var(--sg-font-head);
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--sg-navy);
}

.sg-cctv-intro__title::after {
  content: '';
  display: block;
  width: 2.75rem;
  height: 3px;
  margin-top: 0.85rem;
  background: var(--sg-orange);
}

.sg-cctv-intro__copy p {
  margin: 0;
  color: var(--sg-muted);
  line-height: 1.65;
  max-width: 42ch;
  font-size: 1rem;
}

.sg-cctv-intro__proofs {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
}

.sg-cctv-proof {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--sg-line);
}

.sg-cctv-proof:first-child {
  padding-top: 0;
}

.sg-cctv-proof:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.sg-cctv-proof__title {
  display: block;
  margin: 0 0 0.35rem;
  font-family: var(--sg-font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--sg-navy);
}

.sg-cctv-proof__desc {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

.sg-cctv-intro__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem;
  border-radius: 12px;
  background: #eef2f5;
}

.sg-cctv-intro__media {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  min-height: 180px;
  background: #d5dde4;
}

.sg-cctv-intro__placeholder {
  min-height: 180px;
  border: none;
  border-radius: 0;
}

.sg-cctv-intro__caps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.sg-cctv-intro__cap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 6.5rem;
  padding: 0.85rem 0.5rem;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.sg-cctv-intro__cap-icon {
  display: inline-flex;
  color: var(--sg-navy);
}

.sg-cctv-intro__cap-icon .sg-lucide-icon {
  width: 28px;
  height: 28px;
  stroke-width: 1.6;
}

.sg-cctv-intro__cap-label {
  font-family: var(--sg-font-head);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--sg-navy);
}

@media (min-width: 640px) {
  .sg-cctv-intro__caps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .sg-cctv-intro__grid {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: 3rem;
    align-items: start;
  }

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

  .sg-cctv-proof {
    padding: 0 1.25rem;
    border-bottom: none;
    border-left: 1px solid var(--sg-line);
  }

  .sg-cctv-proof:first-child {
    padding-left: 0;
    border-left: none;
  }

  .sg-cctv-proof:last-child {
    padding-right: 0;
  }

  .sg-cctv-intro__bar {
    grid-template-columns: minmax(200px, 0.85fr) minmax(0, 1.15fr);
    gap: 1rem;
    padding: 1rem;
  }

  .sg-cctv-intro__media,
  .sg-cctv-intro__placeholder {
    min-height: 100%;
    height: 100%;
  }

  .sg-cctv-intro__caps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .sg-cctv-intro__cap {
    min-height: 7rem;
  }
}

@media (min-width: 1100px) {
  .sg-cctv-intro__caps {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .sg-cctv-intro__cap {
    min-height: 7.5rem;
    padding: 1rem 0.4rem;
  }

  .sg-cctv-intro__cap-label {
    font-size: 0.75rem;
  }
}

/* Difference, intro + steps on blue wash */
.sg-cctv-difference__header {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
}

.sg-cctv-difference__intro p {
  margin: 0 0 1rem;
}

.sg-cctv-difference__intro p:last-child {
  margin-bottom: 0;
}

body.safeguard-cctv-page .entry-content ol.sg-cctv-difference__steps {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Bento install grid */
.sg-cctv-bento {
  display: grid;
  gap: 0.875rem;
}

.sg-cctv-bento__cell {
  background: #fff;
  border: 1px solid var(--sg-line);
  padding: clamp(1.125rem, 2vw, 1.5rem);
}

.sg-cctv-bento__cell--large {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.sg-cctv-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 72px;
  height: 72px;
}

.sg-cctv-icon__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sg-cctv-icon .sg-lucide-icon {
  display: block;
  width: var(--sg-icon-size, 2rem);
  height: var(--sg-icon-size, 2rem);
  color: var(--sg-blue);
}

.sg-cctv-bento__icon,
.sg-cctv-bento__icon--small,
.sg-cctv-icon--proof,
.sg-cctv-icon--step,
.sg-cctv-icon--trust {
  width: 72px;
  height: 72px;
}

.sg-cctv-bento__icon {
  margin-bottom: 0.85rem;
}

.sg-cctv-bento__icon--small,
.sg-cctv-icon--proof {
  margin-bottom: 0.65rem;
}

body.safeguard-cctv-page .sg-alarm-step-card__icon .sg-cctv-icon__img,
body.safeguard-cctv-page .sg-alarm-why__icon .sg-cctv-icon__img,
body.safeguard-intercom-page .sg-alarm-step-card__icon .sg-cctv-icon__img,
body.safeguard-intercom-page .sg-alarm-why__icon .sg-cctv-icon__img,
body.safeguard-cctv-page .sg-alarm-step-card__icon .sg-lucide-icon,
body.safeguard-cctv-page .sg-alarm-why__icon .sg-lucide-icon,
body.safeguard-intercom-page .sg-alarm-step-card__icon .sg-lucide-icon,
body.safeguard-intercom-page .sg-alarm-why__icon .sg-lucide-icon {
  width: var(--sg-icon-size, 2rem);
  height: var(--sg-icon-size, 2rem);
}

.sg-cctv-bento__title {
  margin: 0 0 0.4rem;
  font-family: var(--sg-font-head);
  font-size: clamp(0.9375rem, 1.6vw, 1.0625rem);
  font-weight: 700;
  color: var(--sg-navy);
  line-height: 1.3;
}

.sg-cctv-bento__desc {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--sg-muted);
}

@media (min-width: 768px) {
  .sg-cctv-bento {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0.875rem;
  }

  .sg-cctv-bento__large,
  .sg-cctv-bento__small {
    display: grid;
    gap: 0.875rem;
  }

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

/* Photo band, natural aspect so head-to-logo crop is not re-cropped */
.sg-cctv-photo-band {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--sg-blue-wash);
}

.sg-cctv-photo-band__img,
.sg-cctv-photo-band .sg-cctv-media-placeholder {
  width: 100%;
  height: auto;
  display: block;
}

.sg-cctv-photo-band .sg-cctv-media-placeholder {
  aspect-ratio: 1600 / 606;
  min-height: 12rem;
}

/* Segment panels */
.sg-cctv-segments__grid {
  display: grid;
  gap: 1rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}

.sg-cctv-segment {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--sg-line);
}

.sg-cctv-segment__media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--sg-blue-wash);
}

.sg-cctv-segment__media img,
.sg-cctv-segment__media .sg-cctv-media-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sg-cctv-segment__body {
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
}

.sg-cctv-segment__title {
  margin: 0 0 0.65rem;
  font-family: var(--sg-font-head);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sg-navy);
}

.sg-cctv-segment__desc {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--sg-muted);
}

.sg-cctv-segment__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--sg-blue);
  text-decoration: none;
}

.sg-cctv-segment__link:hover {
  color: var(--sg-blue-hover);
  text-decoration: underline;
}

@media (min-width: 768px) {
  .sg-cctv-segments__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.125rem;
  }
}

/* Layered system, hub diagram + service cards + Ajax card */
.sg-cctv-layered__inner {
  max-width: 72rem;
}

.sg-cctv-layered__header {
  margin-bottom: 1.75rem;
}

.sg-cctv-layered__title {
  margin: 0 0 0.65rem;
}

.sg-cctv-layered__rule {
  display: block;
  width: 3.5rem;
  height: 3px;
  margin: 0 0 1rem;
  background: var(--sg-orange);
  border-radius: 2px;
}

.sg-cctv-layered__lead {
  margin: 0;
  color: var(--sg-muted);
  line-height: 1.65;
  max-width: 52ch;
}

.sg-cctv-layered__split {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

.sg-cctv-layered__diagram {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 0;
}

.sg-cctv-layered__hub {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.sg-cctv-layered__flow {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  padding-left: 1.75rem;
}

.sg-cctv-layered__spine {
  display: none;
}

.sg-cctv-layered__hub-link {
  display: none;
}

.sg-cctv-layered__hub-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  border: 1.5px solid var(--sg-line);
  border-radius: 50%;
  background: #fff;
}

.sg-cctv-layered__hub-icon {
  width: 72px;
  height: 72px;
}

.sg-cctv-layered__hub-label {
  margin: 0.5rem 0 0;
  max-width: 6rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--sg-muted);
}

.sg-cctv-layered__cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-width: 0;
}

.sg-cctv-layered__card {
  position: relative;
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 1rem 0.875rem 0;
  border: 1px solid var(--sg-line);
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sg-cctv-layered__card-branch {
  display: none;
}

.sg-cctv-layered__card:hover {
  border-color: color-mix(in srgb, var(--sg-blue) 35%, var(--sg-line));
  box-shadow: var(--sg-shadow);
}

.sg-cctv-layered__card-bar {
  align-self: stretch;
  width: 4px;
  background: var(--sg-blue);
  border-radius: 0 2px 2px 0;
}

.sg-cctv-layered__card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.sg-cctv-layered__card-icon .sg-lucide-icon {
  display: block;
  width: var(--sg-icon-size, 2rem);
  height: var(--sg-icon-size, 2rem);
  color: var(--sg-blue);
}

.sg-cctv-layered__card-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sg-cctv-layered__card-title {
  font-family: var(--sg-font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--sg-blue);
}

.sg-cctv-layered__card-desc {
  font-size: 0.8125rem;
  line-height: 1.45;
  color: var(--sg-muted);
}

.sg-cctv-layered__card-chevron {
  padding-right: 0.25rem;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--sg-muted);
}

.sg-cctv-layered__aside {
  min-width: 0;
}

@media (min-width: 640px) {
  .sg-cctv-layered__cards {
    max-width: none;
  }
}

@media (min-width: 1024px) {
  .sg-cctv-layered__split {
    grid-template-columns: minmax(0, 1.2fr) minmax(17rem, 22rem);
    gap: clamp(1rem, 2.5vw, 1.75rem);
    align-items: center;
    justify-items: stretch;
  }

  .sg-cctv-layered__diagram {
    --sg-layered-gap: 0.75rem;
    --sg-layered-connector: 1.75rem;
    --sg-layered-hub-w: clamp(6.5rem, 8.5vw, 8.5rem);
    width: 100%;
    align-items: stretch;
  }

  .sg-cctv-layered__hub {
    position: relative;
    align-self: stretch;
    width: var(--sg-layered-hub-w);
    padding-bottom: 0;
  }

  .sg-cctv-layered__hub-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: clamp(6rem, 8vw, 8.5rem);
    height: clamp(6rem, 8vw, 8.5rem);
  }

  .sg-cctv-layered__hub-label {
    position: absolute;
    top: calc(50% + clamp(3rem, 4vw, 4.25rem) / 2 + 0.5rem);
    left: 50%;
    bottom: auto;
    width: var(--sg-layered-hub-w);
    margin: 0;
    transform: translateX(-50%);
    max-width: 8.5rem;
    font-size: 0.8125rem;
  }

  .sg-cctv-layered__flow {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-left: var(--sg-layered-connector);
  }

  .sg-cctv-layered__cards {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    gap: var(--sg-layered-gap);
  }

  .sg-cctv-layered__card {
    flex: 1 1 0;
    min-height: 4.5rem;
  }

  .sg-cctv-layered__spine {
    display: block;
    position: absolute;
    left: 0;
    width: 0;
    pointer-events: none;
    border-left: 1.5px dashed color-mix(in srgb, var(--sg-muted) 55%, transparent);
    top: calc((100% - 2 * var(--sg-layered-gap)) / 6);
    bottom: calc((100% - 2 * var(--sg-layered-gap)) / 6);
  }

  .sg-cctv-layered__hub-link {
    display: block;
    position: absolute;
    left: calc(-1 * (var(--sg-layered-connector) + var(--sg-layered-hub-w)));
    width: calc(var(--sg-layered-connector) + var(--sg-layered-hub-w));
    height: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    border-top: 1.5px dashed color-mix(in srgb, var(--sg-muted) 55%, transparent);
  }

  .sg-cctv-layered__hub-icon {
    width: 72px;
    height: 72px;
  }

  .sg-cctv-layered__card-branch {
    display: block;
    position: absolute;
    left: calc(-1 * var(--sg-layered-connector));
    top: 50%;
    width: var(--sg-layered-connector);
    height: 0;
    pointer-events: none;
    border-top: 1.5px dashed color-mix(in srgb, var(--sg-muted) 55%, transparent);
  }

  .sg-cctv-layered__card {
    padding: 1rem 1.125rem 1rem 0;
    gap: 0.875rem;
  }

  .sg-cctv-layered__card-icon {
    width: 72px;
    height: 72px;
  }

  .sg-cctv-layered__card-title {
    font-size: 1rem;
  }

  .sg-cctv-layered__card-desc {
    font-size: 0.875rem;
  }
}

body.safeguard-cctv-page .sg-band.sg-portal-band.sg-cctv-portal {
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}

/* Trust, 2×2 / 4-across panel */
body.safeguard-cctv-page .sg-cctv-trust__panel {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 640px) {
  body.safeguard-cctv-page .sg-cctv-trust__panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.safeguard-cctv-page .sg-cctv-trust__panel .sg-alarm-why__item + .sg-alarm-why__item {
    border-top: none;
  }

  body.safeguard-cctv-page .sg-cctv-trust__panel .sg-alarm-why__item:nth-child(n + 3) {
    border-top: 1px solid var(--sg-line);
  }
}

@media (min-width: 1024px) {
  body.safeguard-cctv-page .sg-cctv-trust__panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body.safeguard-cctv-page .sg-cctv-trust__panel .sg-alarm-why__item:nth-child(n + 2) {
    border-left: 1px solid var(--sg-line);
  }

  body.safeguard-cctv-page .sg-cctv-trust__panel .sg-alarm-why__item:nth-child(n + 3) {
    border-top: none;
  }
}

/* FAQ, single column on mobile for readability */
@media (max-width: 767px) {
  body.safeguard-cctv-page .sg-cctv-faq .sg-value-faq {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* -------------------------------------------------------------------------
   Product spotlight — quiet architectural panel
   ------------------------------------------------------------------------- */

.sg-product-spotlight {
  --sg-spotlight-base: #183f58;
  --sg-spotlight-mid: #245e7a;
  --sg-spotlight-edge: #3e8fb2;
  --sg-spotlight-btn: #1769a1;
  --sg-spotlight-btn-hover: #145a8a;
  --sg-spotlight-pop-top: 64px;
  --sg-spotlight-pop-bottom: 0;
  --sg-spotlight-frame-w: 280px;
  --sg-spotlight-frame-trim: 70px;
  background: #fff;
  padding: 5.5rem 1.25rem 0;
  overflow: visible;
}

.sg-product-spotlight__container {
  max-width: 1280px;
  margin: 0 auto;
  overflow: visible;
}

.sg-product-spotlight__stage {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.sg-product-spotlight__surface {
  position: absolute;
  top: var(--sg-spotlight-pop-top);
  right: 0;
  bottom: var(--sg-spotlight-pop-bottom);
  left: 0;
  z-index: 0;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--sg-spotlight-base);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"),
    linear-gradient(
      110deg,
      #183f58 0%,
      #245e7a 55%,
      #3e8fb2 100%
    );
  background-size: 180px 180px, auto;
  background-blend-mode: multiply, normal;
  pointer-events: none;
}

.sg-product-spotlight__grain {
  display: none;
}

/* Barely-there technical grid on the content side */
.sg-product-spotlight__blueprint {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 38%;
  pointer-events: none;
  opacity: 0.04;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.9) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.35) 1px, transparent 1px);
  background-size:
    80px 80px,
    80px 80px,
    16px 16px,
    16px 16px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 28%, #000 100%);
}

.sg-product-spotlight__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.75rem;
  align-items: end;
  min-height: 0;
  padding: var(--sg-spotlight-pop-top) 1.5rem 0;
  overflow: visible;
}

.sg-product-spotlight__media {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  align-self: end;
  /* Sit on the panel floor; height does the top pop-out */
  margin-top: calc(var(--sg-spotlight-pop-top) * -1);
  /* Trim height from the bottom — top pop stays put */
  margin-bottom: var(--sg-spotlight-frame-trim);
  line-height: 0;
}

.sg-product-spotlight__frame {
  position: relative;
  width: min(100%, var(--sg-spotlight-frame-w));
  height: calc(var(--sg-spotlight-frame-w) * 620 / 352 - var(--sg-spotlight-frame-trim));
  aspect-ratio: auto;
  margin: 0;
  padding: 3px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  box-shadow: none;
  outline: none;
  box-sizing: border-box;
  overflow: hidden;
}

.sg-product-spotlight__frame-inner {
  position: absolute;
  inset: 3px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-top-left-radius: 999px;
  border-top-right-radius: 999px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  overflow: hidden;
  background: #0c2d44;
  box-sizing: border-box;
}

.sg-product-spotlight__img,
.sg-product-spotlight__frame-inner .sg-cctv-media-placeholder {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 0;
  box-shadow: none;
}

.sg-product-spotlight__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.25rem;
  padding-bottom: 2.25rem;
  color: #fff;
  text-align: left;
}

.sg-product-spotlight__title {
  margin: 0;
  max-width: 18ch;
  font-family: var(--sg-font-head);
  font-size: clamp(1.85rem, 3.2vw, 2.65rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: #fff;
}

.sg-product-spotlight__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
  margin: 0;
  padding: 1.1rem 0 0;
  list-style: none;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.sg-product-spotlight__features li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0;
  border: none;
}

.sg-product-spotlight__feature-icon {
  flex-shrink: 0;
  display: inline-flex;
  margin-top: 0.1rem;
  color: #fff;
}

.sg-product-spotlight__feature-icon .sg-lucide-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  color: #fff !important;
  stroke: #fff !important;
}

.sg-product-spotlight__feature-copy {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.sg-product-spotlight__feature-title {
  font-family: var(--sg-font-head);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
}

.sg-product-spotlight__feature-desc {
  font-family: var(--sg-font-body);
  font-size: 0.8125rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.7);
}

.sg-product-spotlight__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
}

.sg-product-spotlight__btn .sg-btn__icon,
.sg-product-spotlight__btn .sg-lucide-icon {
  color: #fff !important;
  stroke: #fff !important;
}

@media (min-width: 900px) {
  .sg-product-spotlight {
    --sg-spotlight-pop-top: 80px;
    --sg-spotlight-frame-w: 340px;
    padding: 6.5rem 1.5rem 0;
  }

  .sg-product-spotlight__layout {
    grid-template-columns: minmax(280px, 34%) minmax(0, 1fr);
    gap: 2.5rem 3rem;
    align-items: end;
    padding: var(--sg-spotlight-pop-top) 3rem 0 2.5rem;
  }

  .sg-product-spotlight__media {
    align-items: flex-start;
    align-self: end;
    padding-left: 0.15rem;
  }

  .sg-product-spotlight__frame {
    width: var(--sg-spotlight-frame-w);
  }

  .sg-product-spotlight__content {
    align-self: center;
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
    gap: 1.35rem;
  }

  .sg-product-spotlight__features {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    padding-top: 1.25rem;
  }

  .sg-product-spotlight__features li {
    padding: 0 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .sg-product-spotlight__features li:first-child {
    padding-left: 0;
    border-left: none;
  }

  .sg-product-spotlight__features li:last-child {
    padding-right: 0;
  }
}

@media (max-width: 899px) {
  .sg-product-spotlight {
    --sg-spotlight-pop-top: 40px;
    --sg-spotlight-frame-w: 220px;
    padding: 4rem 1.125rem 0;
  }

  .sg-product-spotlight__frame {
    width: var(--sg-spotlight-frame-w);
  }

  .sg-product-spotlight__content {
    padding-bottom: 1.75rem;
  }

  .sg-product-spotlight__title {
    max-width: 16ch;
    font-size: clamp(1.75rem, 6.5vw, 2.25rem);
  }

  .sg-product-spotlight__btn {
    flex: 1 1 auto;
  }
}
