/* Original End2End theme inspired by the supplied CyberGuard visual reference. */
:root {
  --paper: #fff;
  --ink: #17182f;
  --muted: #626577;
  --orange: #466fc2;
  --line: #e3e5ee;
  --night: #13142e;
  --electric: #a8c9ff;
  --theme-blue: #4a81d3;
  --theme-purple: #514a9d;
  --theme-heading: 'Cormorant Garamond', serif
}

body,
.home-page {
  background: #fff
}

h1,
h2,
h3,
.home-page h1,
.home-page h2,
.home-page h3,
.inner-page h1,
.inner-page h2,
.inner-page h3 {
  font-family: var(--theme-heading);
  font-weight: 700;
  letter-spacing: -1.4px
}

h2,
.home-page h2 {
  font-size: clamp(36px, 3.65vw, 52px);
  line-height: 1.12
}

h3 {
  font-size: 27px
}

.section-shell,
.header {
  max-width: 1440px;
  padding-left: 7.5%;
  padding-right: 7.5%
}

.section-space {
  padding-top: 100px;
  padding-bottom: 100px
}

.header {
  max-width: none;
  height: 94px;
  background: #12132cf5;
  border-bottom: 1px solid #ffffff14;
  color: #fff;
  backdrop-filter: blur(18px)
}

.header .brand-logo {
  background: transparent;
  width: auto;
  height: 68px
}

.header nav {
  font-size: 13px;
  gap: 27px
}

.header nav a:hover,
.header nav a.active {
  color: #a7c6ff
}

.header nav a.active {
  box-shadow: 0 2px #719bea
}

.header .header-cta {
  background: linear-gradient(110deg, #4a81d3, #514a9d);
  border-radius: 6px;
  color: white;
  font-size: 12px;
  padding: 12px 20px;
  box-shadow: 0 6px 20px #0002
}

.menu-toggle span {
  background: #fff
}

.button {
  font-weight: 700;
  border-radius: 6px;
  font-size: 13px;
  min-height: 48px
}

.button-orange,
.button-electric,
.button-dark {
  color: #fff;
  background: linear-gradient(110deg, #4a81d3, #514a9d);
  box-shadow: 0 5px 18px #514a9d20
}

.button-orange:hover,
.button-electric:hover,
.button-dark:hover {
  color: #fff;
  background: linear-gradient(110deg, #3f73c6, #645bb7);
  box-shadow: 0 9px 25px #514a9d35
}

.eyebrow,
.home-page .eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.8px;
  line-height: 1.6;
  color: #466fc2
}

.text-link {
  font-weight: 600;
  font-size: 13px
}

.text-link span {
  color: #4a81d3
}

.connection-hero {
  min-height: 680px;
  background: #12132c;
  text-align: center
}

.connection-art {
  object-position: center;
  opacity: .65
}

.connection-hero:before {
  background: linear-gradient(0deg, #12132c 0%, #12132c50 65%, #12132c75), linear-gradient(90deg, #12132c70, #12132c40)
}

.hero-grid {
  display: none
}

.connection-copy {
  padding-top: 72px;
  padding-bottom: 85px
}

.connection-copy .eyebrow {
  justify-content: center;
  color: #b8ceff;
  font-size: 11px;
  letter-spacing: 2.5px
}

.connection-copy h1 {
  font-family: var(--theme-heading);
  font-size: clamp(52px, 5.7vw, 80px);
  font-weight: 700;
  max-width: 950px;
  line-height: 1.03;
  letter-spacing: -2.5px;
  margin: 25px auto
}

.connection-copy h1 em {
  font-weight: 700;
  color: #b1ccff
}

.connection-copy>p {
  font-size: 17px;
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto;
  color: #d1d5e6
}

.connection-copy .intro-actions {
  justify-content: center;
  margin-top: 30px;
  gap: 15px
}

.connection-copy .button {
  padding: 15px 25px;
  min-height: 54px
}

.button-glass {
  border-color: #ffffff60;
  background: #ffffff08;
  color: white
}

.hero-proof {
  border: 0;
  justify-content: center;
  margin: 32px auto 0;
  padding-top: 0;
  width: fit-content;
  text-align: left;
  gap: 32px
}

.hero-proof>span {
  color: #b7bdd1;
  font-size: 10px;
  letter-spacing: .5px
}

.hero-proof strong {
  font-size: 17px;
  letter-spacing: 0
}

.hero-proof>span+span {
  padding-left: 32px
}

.hero-scroll {
  left: 7.5%;
  font-size: 8px
}

.art-credit {
  right: 7.5%;
  color: #a8adbf
}

.quick-routes {
  max-width: none;
  background: #191b36;
  padding: 38px 7.5%;
  gap: 28px;
  text-align: left
}

.quick-routes a {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  column-gap: 16px;
  align-content: start;
  padding: 10px 0
}

.quick-routes a+a {
  padding-left: 24px;
  border-left: 1px solid #ffffff16
}

.route-icon {
  width: 39px;
  height: 39px;
  color: #8faff7;
  grid-row: 1/3;
  margin-top: 4px
}

.quick-routes a>span {
  font-size: 8px;
  color: #9eaccd;
  letter-spacing: 1.3px
}

.quick-routes strong {
  font-family: var(--theme-heading);
  font-size: 19px;
  line-height: 1.22;
  margin-top: 9px;
  font-weight: 600;
  gap: 8px
}

.quick-routes i {
  color: #8faef1;
  font-size: 17px
}

.quick-routes a:hover strong {
  color: #b9d0ff
}

.home-page .expertise-strip {
  background: linear-gradient(110deg, #4a81d3, #514a9d);
  color: #fff;
  font-weight: 600;
  border: 0;
  padding: 23px 5%;
  letter-spacing: 2px
}

.home-page .expertise-strip i {
  color: #d3dfff
}

.field-overview {
  padding-top: 95px;
  padding-bottom: 95px;
  column-gap: 9%;
  background: radial-gradient(ellipse at 0 0, #edf2fc, transparent 60%)
}

.field-overview>h2 {
  font-size: clamp(36px, 3.65vw, 52px)
}

.field-overview p {
  font-size: 15px;
  line-height: 1.9
}

.home-page .field-services {
  background: #12132c;
  color: #fff;
  max-width: none
}

.home-page .field-services .eyebrow,
.home-page .field-services .text-link,
.home-page .field-services .text-link span {
  color: #a9c4fa
}

.home-page .section-intro {
  margin-bottom: 42px
}

.home-page .section-intro h2 {
  margin-top: 15px
}

.home-page .solution-grid {
  gap: 26px
}

.home-page .solution-card {
  background: #1b1d3a;
  border: 1px solid #ffffff12;
  color: white;
  border-radius: 12px
}

.home-page .solution-card:hover {
  border-color: #627fb8;
  box-shadow: 0 18px 35px #0003
}

.home-page .card-image {
  height: 270px
}

.home-page .service-content {
  padding: 28px
}

.home-page .service-title {
  font-family: var(--theme-heading);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -.5px;
  color: white
}

.home-page .service-description {
  color: #b8bfd3;
  font-size: 14px;
  line-height: 1.8
}

.home-page .ers-description {
  display: grid;
  min-height: 0;
  gap: 18px
}

.home-page .ers-benefit {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid #ffffff18
}

.home-page .ers-benefit:last-child {
  padding-bottom: 0;
  border-bottom: 0
}

.home-page .ers-benefit > svg {
  width: 22px;
  height: 22px;
  margin-top: 3px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round
}

.home-page .ers-benefit > span {
  display: grid;
  gap: 3px
}

.home-page .ers-benefit strong {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5
}

.home-page .ers-benefit > span > span {
  display: block
}

.home-page .card-link {
  color: #aac7ff;
  font-size: 12px
}

.home-page .service-number {
  background: #514a9dcc;
  border: 1px solid #ffffff30;
  border-radius: 5px;
  color: #fff
}

.field-workflow {
  max-width: none;
  background: #191b36
}

.field-workflow .eyebrow,
.field-workflow .text-link,
.field-workflow .text-link span,
.step-label {
  color: #a9c4fa
}

.field-steps {
  gap: 25px
}

.field-steps figure {
  height: 280px;
  border-radius: 12px
}

.field-steps h3 {
  font-size: 24px
}

.field-steps p {
  font-size: 14px;
  color: #b8bfd3
}

.field-partnership {
  background: #f7f8fc
}

.partnership-photos img {
  border-radius: 14px
}

.partnership-copy p {
  font-size: 15px
}

.partnership-copy .detail-list {
  font-size: 13px
}

.project-faq {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 8%;
  align-items: start
}

.project-faq h2 {
  margin: 20px 0
}

.project-faq>div>p {
  font-size: 15px;
  color: var(--muted)
}

.project-faq .text-link {
  margin-top: 20px
}

.faq-items details {
  border-bottom: 1px solid #e0e3ed;
  padding: 0 0 20px;
  margin-bottom: 22px
}

.faq-items summary {
  font: 600 20px/1.4 var(--theme-heading);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 3px 0
}

.faq-items summary::-webkit-details-marker {
  display: none
}

.faq-items summary:after {
  content: '+';
  color: #4a81d3;
  font-size: 25px;
  flex-shrink: 0
}

.faq-items details[open] summary:after {
  content: '−'
}

.faq-items details[open] summary {
  color: #466fc2
}

.faq-items summary:focus-visible {
  outline: 3px solid #4a81d3;
  outline-offset: 6px
}

.faq-items p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.9;
  margin-bottom: 0
}

.project-launch {
  max-width: none;
  background: linear-gradient(115deg, #31588f, #514a9d);
  gap: 8%
}

.project-launch .eyebrow,
.project-launch .text-link,
.project-launch .text-link span {
  color: #dde8ff
}

.project-launch>div>p {
  color: #e0e4f3
}

.project-picker {
  padding: 32px;
  background: #12132c30;
  border: 1px solid #ffffff35;
  border-radius: 12px
}

.project-picker label {
  font: 600 24px/1.3 var(--theme-heading)
}

.project-picker .button {
  background: #fff;
  color: #252d58;
  box-shadow: none
}

.project-picker .button:hover {
  background: #edf3ff
}

.project-picker p {
  color: #e0e4f3
}

footer.section-shell {
  max-width: none;
  background: #101126;
  color: #fff;
  border: 0
}

footer .brand-logo {
  background: transparent;
  width: auto;
  height: 68px
}

.footer-top {
  padding-top: 55px;
  padding-bottom: 45px
}

.footer-top p,
.footer-bottom {
  color: #b1b7cc
}

.footer-bottom {
  border-color: #ffffff18
}

.footer-top .text-link,
.footer-top .text-link span {
  color: #d0ddff
}

.inner-page .photo-banner {
  background: #12132c;
  border: 0;
  min-height: 390px
}

.inner-page .banner-shade {
  background: linear-gradient(90deg, #12132cf0, #12132c9c 60%, #12132c55), linear-gradient(0deg, #12132caa, transparent)
}

.inner-page .banner-content {
  padding-top: 60px;
  padding-bottom: 90px
}

.inner-page .banner-content h1 {
  font-size: clamp(44px, 4.6vw, 66px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -1.8px
}

.inner-page .banner-content h1 em {
  color: #b1ccff;
  font-style: normal
}

.banner-content .eyebrow {
  color: #b1ccff
}

.inner-page .company-stats,
.emergency-detail,
.emergency-contact {
  background: #f0f3fa
}

.company-stats strong,
.ers-promise strong {
  font-family: var(--theme-heading);
  font-weight: 600
}

.network-names li {
  font-family: var(--theme-heading);
  font-weight: 700
}

.inner-page .history-section {
  background: #f7f8fc
}

.inner-page .service-detail {
  padding-top: 65px;
  padding-bottom: 65px
}

.inner-page .service-detail:nth-of-type(odd) {
  background: #f7f8fc
}

.inner-page .service-detail img {
  border-radius: 12px
}

.inner-page .page-cta {
  background: #191b36;
  color: white
}

.inner-page .page-cta p {
  color: #bbc4d9
}

.inner-page .page-cta .eyebrow {
  color: #a9c4fa
}

.gallery-open {
  border-radius: 10px;
  overflow: hidden
}

.gallery-filters button {
  border-radius: 5px
}

.gallery-item figcaption {
  font-family: var(--theme-heading)
}

dialog {
  border-radius: 14px
}

dialog h2 {
  font-family: var(--theme-heading)
}

html {
  scroll-padding-top: 112px
}

.header {
  position: sticky;
  top: 0;
  z-index: 100
}

@media(max-width:800px) {
  html {
    scroll-padding-top: 103px
  }
}

@media(max-width:580px) {
  html {
    scroll-padding-top: 96px
  }
}

@media(max-width:1100px) {
  .header {
    padding-left: 4%;
    padding-right: 4%;
    gap: 18px
  }

  .header nav {
    gap: 17px;
    font-size: 12px
  }

  .header .brand-logo {
    height: 62px
  }

  .quick-routes {
    gap: 18px;
    padding-left: 5%;
    padding-right: 5%
  }

  .quick-routes a {
    grid-template-columns: 32px minmax(0, 1fr);
    column-gap: 10px
  }

  .quick-routes a+a {
    padding-left: 18px
  }

  .route-icon {
    width: 30px;
    height: 30px
  }

  .quick-routes strong {
    font-size: 17px
  }

  .home-page .service-content {
    padding: 22px
  }

  .home-page .service-title {
    font-size: 23px
  }
}

@media(max-width:1000px) and (min-width:581px) {
  .quick-routes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 35px
  }

  .quick-routes a+a {
    border-left: 0;
    padding-left: 0
  }

  .quick-routes a:nth-child(even) {
    padding-left: 30px;
    border-left: 1px solid #ffffff20
  }
}

@media(max-width:800px) {
  .header {
    height: 85px
  }

  .header nav {
    background: #191b36;
    top: 85px;
    color: #fff;
    border-color: #ffffff20
  }

  .header .header-cta {
    margin-left: auto;
    font-size: 11px;
    padding: 10px 15px
  }

  .section-shell {
    padding-left: 6%;
    padding-right: 6%
  }

  .section-space {
    padding-top: 70px;
    padding-bottom: 70px
  }

  .connection-hero {
    min-height: 650px
  }

  .connection-copy h1 {
    font-size: 62px
  }

  .connection-copy {
    padding-top: 65px;
    padding-bottom: 95px
  }

  .connection-copy>p {
    font-size: 16px
  }

  .hero-scroll {
    left: 6%
  }

  .art-credit {
    right: 6%
  }

  .field-overview {
    padding-top: 65px;
    padding-bottom: 65px
  }

  .project-faq {
    grid-template-columns: 1fr;
    gap: 35px
  }

  .project-launch {
    grid-template-columns: 1fr
  }

  .field-steps figure {
    height: 330px
  }

  .home-page .card-image {
    height: 330px
  }

  .inner-page .photo-banner {
    min-height: 390px
  }
}

@media(max-width:580px) {
  .header {
    height: 78px;
    padding-left: 5%;
    padding-right: 5%;
    gap: 13px
  }

  .header nav {
    top: 78px
  }

  .header .brand-logo {
    height: 52px
  }

  .header .header-cta {
    font-size: 9px;
    padding: 8px 10px;
    gap: 10px;
    min-height: 40px
  }

  .menu-toggle {
    flex-shrink: 0
  }

  .section-space {
    padding-top: 55px;
    padding-bottom: 55px
  }

  .connection-hero {
    min-height: 640px
  }

  .connection-copy {
    padding-top: 55px;
    padding-bottom: 100px
  }

  .connection-copy h1 {
    font-size: clamp(40px, 10.7vw, 58px);
    letter-spacing: -1.2px;
    line-height: 1.08;
    margin: 24px auto
  }

  .connection-copy .eyebrow {
    font-size: 8px;
    letter-spacing: 1.8px
  }

  .connection-copy>p {
    font-size: 14px;
    line-height: 1.85
  }

  .connection-copy .intro-actions {
    gap: 10px;
    flex-wrap: wrap
  }

  .connection-copy .button {
    font-size: 11px;
    padding: 13px 15px;
    min-height: 49px
  }

  .hero-proof {
    gap: 24px;
    margin-top: 30px
  }

  .hero-proof>span+span {
    padding-left: 24px
  }

  .hero-proof strong {
    font-size: 15px
  }

  .hero-proof>span {
    font-size: 9px;
    letter-spacing: 0
  }

  .hero-scroll {
    font-size: 7px;
    bottom: 35px
  }

  .art-credit {
    bottom: 15px;
    font-size: 6px
  }

  .quick-routes {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 13px 6%
  }

  .quick-routes a {
    grid-template-columns: 36px 1fr;
    column-gap: 17px;
    padding: 20px 0
  }

  .quick-routes a+a {
    border-left: 0;
    border-top: 1px solid #ffffff15;
    padding-left: 0
  }

  .quick-routes strong {
    font-size: 20px
  }

  .quick-routes a>span {
    font-size: 8px
  }

  .route-icon {
    width: 31px;
    height: 31px
  }

  .home-page .expertise-strip {
    font-size: 8px;
    letter-spacing: 1px;
    padding: 22px 5%
  }

  .field-overview {
    padding-top: 55px;
    padding-bottom: 55px
  }

  .home-page h2,
  .field-overview>h2 {
    font-size: 36px;
    letter-spacing: -.8px
  }

  .field-overview p,
  .partnership-copy p {
    font-size: 14px
  }

  .home-page .section-intro {
    margin-bottom: 30px
  }

  .field-steps {
    gap: 25px 16px
  }

  .field-steps figure {
    height: 220px
  }

  .field-steps h3 {
    font-size: 22px;
    line-height: 1.2
  }

  .field-steps p {
    font-size: 13px
  }

  .project-picker {
    padding: 23px
  }

  .project-picker label {
    font-size: 22px
  }

  .faq-items summary {
    font-size: 19px
  }

  .inner-page .banner-content h1 {
    font-size: 43px
  }

  .inner-page .photo-banner {
    min-height: 430px
  }

  .footer-top {
    padding-top: 35px;
    padding-bottom: 30px
  }
}

@media(max-width:360px) {
  .header .header-cta {
    display: none
  }

  .connection-copy h1 {
    font-size: 38px
  }

  .field-steps figure {
    height: 300px
  }
}

/* Supplied network marks: original colours and proportions on white. */
.network-logos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
  list-style: none;
  margin: 38px 0 0;
  padding: 0
}

.network-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 150px;
  padding: 18px;
  background: #fff;
  border: 1px solid #e3e5ee;
  border-radius: 12px;
  overflow: hidden
}

.network-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  max-width: 210px
}

.network-logo-bt img,
.network-logo-virgin-media img {
  height: 180px;
  max-width: 180px;
  flex-shrink: 0
}

@media(max-width:1000px) {
  .network-logos {
    grid-template-columns: repeat(3, minmax(0, 1fr))
  }
}

@media(max-width:580px) {
  .network-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px
  }

  .network-logo {
    height: 125px;
    padding: 14px
  }

  .network-logo-bt img,
  .network-logo-virgin-media img {
    height: 150px
  }

  .network-logo:last-child {
    grid-column: 1/-1;
    justify-self: center;
    width: calc((100% - 12px)/2)
  }
}

/* Emergency contact form */
#emergency-contact-dialog {
  width: min(560px, calc(100% - 32px));
  padding: 32px;
  color: var(--ink)
}

#emergency-contact-title {
  font-size: 28px;
  margin: 8px 36px 24px 0
}

.emergency-contact-form {
  display: grid;
  gap: 16px
}

.emergency-contact-form label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  font-weight: 600
}

.emergency-contact-form input,
.emergency-contact-form select,
.emergency-contact-form textarea {
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid #c7cbd8;
  border-radius: 5px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 16px
}

.emergency-contact-form input:focus,
.emergency-contact-form select:focus,
.emergency-contact-form textarea:focus {
  outline: 2px solid #487fce;
  outline-offset: 2px
}

.emergency-contact-form textarea {
  resize: vertical
}

.emergency-contact-form .button {
  justify-self: start
}

#emergency-form-note,
#emergency-form-status {
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0
}

#emergency-form-status:empty {
  display: none
}

@media(max-width:580px) {
  #emergency-contact-dialog {
    padding: 24px
  }
}

/* Shared successful-enquiry popup. */
#thank-you-dialog {
  width: min(480px, calc(100% - 32px));
  padding: 40px 28px;
  text-align: center
}

.thank-you-icon {
  display: grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: #e8f5ee;
  color: #23824b;
  font-size: 32px
}

#thank-you-title {
  font-size: 32px;
  margin: 0 0 16px
}

#thank-you-message {
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 18px
}

.thank-you-email {
  display: block;
  color: #385fb5;
  text-decoration: underline;
  overflow-wrap: anywhere;
  margin-bottom: 26px
}

#thank-you-dialog .button {
  min-width: 120px;
  justify-content: center
}

/* Keep shared header and footer logos compact at every screen size. */
.header .brand-logo,
footer .brand-logo {
  height: 56px;
  max-width: 150px
}

.brand-logo img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: 100%;
  object-fit: contain
}

@media(max-width:580px) {

  .header .brand-logo,
  footer .brand-logo {
    height: 46px;
    max-width: 120px
  }
}

/* Horizontally scrolling services: three cards on desktop, one on mobile. */
.home-page .service-carousel {
  display: flex;
  gap: 26px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  padding-bottom: 14px
}

.home-page .service-carousel .solution-card {
  display: flex;
  flex-direction: column;
  flex: 0 0 calc((100% - 52px)/3);
  min-width: 0;
  scroll-snap-align: start
}

.home-page .service-carousel .card-image {
  flex-shrink: 0;
  width: 100%
}

.home-page .service-carousel .service-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  width: 100%;
  min-width: 0
}

.home-page .service-carousel .service-title > span {
  flex-shrink: 0
}

.home-page .service-carousel .card-link {
  margin-top: auto;
  padding-top: 22px
}

.service-carousel-controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px
}

.service-carousel-controls button {
  border: 1px solid #ffffff40;
  border-radius: 5px;
  padding: 10px 16px;
  background: #ffffff10;
  color: #fff;
  font-size: 13px
}

@media(max-width:1000px) {
  .home-page .service-carousel .solution-card {
    flex-basis: calc((100% - 26px)/2)
  }
}

@media(max-width:580px) {
  .home-page .service-carousel .solution-card {
    flex-basis: 100%
  }
}

/* Progressive enhancement: content remains visible without JavaScript. */
@media(prefers-reduced-motion:no-preference) {
  .js .scroll-fade {
    opacity: 0;
    transition: opacity .7s ease
  }

  .js .scroll-fade.visible {
    opacity: 1
  }
}

@media(prefers-reduced-motion:reduce) {
  .js .scroll-fade {
    opacity: 1;
    transition: none
  }
}

@media print {
  .js .scroll-fade {
    opacity: 1;
    transition: none
  }
}

/* Display the company mark on content photos without altering source files. */
.photo-watermarked {
  position: relative
}

.photo-watermarked::after {
  content: "";
  position: absolute;
  bottom: calc(var(--watermark-offset, 0px) + 12px);
  left: 12px;
  width: clamp(44px, 6vw, 72px);
  aspect-ratio: 1;
  background: url('assets/responsive/end2end-links-logo-small.webp') center/contain no-repeat;
  opacity: .9;
  pointer-events: none;
  z-index: 2
}

.photo-watermark-lightbox {
  line-height: 0
}

#photo-dialog .photo-close {
  right: 22px;
  left: auto
}

@media(max-width:580px) {
  .photo-watermarked::after {
    bottom: calc(var(--watermark-offset, 0px) + 8px);
    right: 8px;
    width: 44px
  }
}

/* Preserve sector artwork and its embedded captions at every screen size. */
.industry-grid article>img.sector-artwork {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain
}

/* Allow all seven service links to wrap and space the new service copy. */
.service-jumps {
  flex-wrap: wrap
}

#cabling h3 {
  margin-top: 24px;
  font-size: 22px
}

#civils .text-link,
#cabling .text-link {
  margin-top: 24px
}

/* Home page: the End2End Links advantage. */
.why-choose {
  background: #f2f6fa
}

.why-choose-subtitle {
  margin-top: 20px;
  font-size: 22px;
  color: var(--muted)
}

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

.advantage-grid article {
  border-top: 2px solid #1762cc;
  padding-top: 24px
}

.advantage-grid h3 {
  font-size: 24px;
  line-height: 1.35;
  margin-bottom: 18px;
  text-align: center
}

.advantage-grid p {
  font-size: 16px;
  line-height: 1.8;
  color: var(--muted);
  margin-top: 12px
}

@media(max-width:800px) {
  .advantage-grid {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .why-choose-subtitle {
    font-size: 19px
  }
}

.advantage-grid .advantage-icon {
  display: block;
  width: 112px;
  height: 112px;
  object-fit: contain;
  margin: 0 auto 22px
}

.ers-service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
  margin-top: 28px
}

#emergency-response {
  scroll-margin-top: 100px
}

.ers-service-image {
  grid-column: 2;
  position: sticky;
  top: 100px;
  margin: 0
}

.ers-service-copy {
  grid-column: 1;
  grid-row: 1
}

.ers-service-image img {
  display: block;
  width: 100%;
  height: min(68vh, 680px);
  min-height: 440px;
  object-fit: cover;
  object-position: center;
  border-radius: 8px
}

.ers-service-copy h2 {
  margin: 0 0 14px
}

.ers-service-copy h3 {
  margin: 32px 0 10px;
  font-size: 25px;
  line-height: 1.3
}

.ers-service-copy p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8
}

.ers-service-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 0
}

.ers-service-list li {
  padding: 13px 0;
  border-top: 1px solid #132b451c;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75
}

.ers-service-list strong {
  color: var(--ink)
}

.ers-service-copy .ers-commitment {
  margin-top: 22px;
  padding: 18px 20px;
  border-left: 3px solid var(--orange);
  background: #fff;
  color: var(--ink)
}

@media(max-width:800px) {
  .ers-service-layout {
    grid-template-columns: 1fr;
    gap: 30px
  }

  .ers-service-image {
    position: static
  }

  .ers-service-image,
  .ers-service-copy {
    grid-column: 1;
    grid-row: auto
  }

  .ers-service-image img {
    height: min(75vw, 480px);
    min-height: 280px
  }
}
