/* PLC Secured: one stylesheet for the whole site. */

@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Barlow";
  src: url("/assets/fonts/barlow-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/assets/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --navy: #253f7d;
  --navy-deep: #1a2d5c;
  --ink: #15233f;
  --ink-soft: #46546e;
  --signal: #2ac4ea;
  --signal-hover: #5fd4f1;
  --paper: #f3f5f8;
  --line: #d3dae5;
  --on-navy: #dce6f7;
  --on-navy-soft: #afc3e6;
  --rec: #e5383b;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", system-ui, sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 5rem;
}

body {
  margin: 0;
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }
}

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

h1,
h2 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.5rem, 1.6rem + 4.2vw, 4.75rem);
  line-height: 1;
  margin: 0 0 1.25rem;
}

h2 {
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.3125rem;
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.5rem;
}

p {
  margin: 0 0 1rem;
  max-width: 68ch;
}

a {
  color: var(--navy);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration-color: var(--signal);
  text-decoration-thickness: 2px;
}

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

.wrap {
  width: min(100% - 2rem, 72rem);
  margin-inline: auto;
}

@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 3rem, 72rem);
  }
}

.skip {
  position: absolute;
  left: -999px;
  top: 0.75rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.skip:focus {
  left: 1rem;
}

/* Header and navigation */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  min-height: 4.25rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--navy);
  text-decoration: none;
}

.brand img {
  width: 44px;
}

.brand-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.625rem;
  line-height: 1;
  letter-spacing: 0.01em;
}

.nav-toggle {
  display: none;
  font: 600 1rem var(--body);
  color: var(--navy);
  background: none;
  border: 2px solid var(--navy);
  border-radius: 4px;
  padding: 0.45rem 0.9rem;
  cursor: pointer;
}

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a {
  display: block;
  padding: 0.5rem 0;
  color: var(--ink);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--navy);
  box-shadow: inset 0 -2px 0 var(--signal);
}

.site-nav a[aria-current="page"] {
  color: var(--navy);
  box-shadow: inset 0 -3px 0 var(--navy);
}

@media (max-width: 59.99rem) {
  .js .nav-toggle {
    display: inline-flex;
  }

  .js .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 16px 24px rgb(21 35 63 / 0.08);
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .js .site-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    width: min(100% - 2rem, 72rem);
    margin-inline: auto;
    padding-bottom: 0.75rem;
  }

  .js .site-nav a {
    padding: 0.9rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid var(--line);
  }

  .js .site-nav li:last-child a {
    border-bottom: 0;
  }

  .js .site-nav a[aria-current="page"],
  .js .site-nav a:hover {
    box-shadow: none;
  }

  .js .site-nav a[aria-current="page"] {
    font-weight: 600;
  }
}

/* Buttons */

.btn {
  display: inline-block;
  padding: 0.85rem 1.3rem;
  border-radius: 4px;
  background: var(--signal);
  color: var(--ink);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.2;
  text-decoration: none;
}

.btn:hover {
  background: var(--signal-hover);
}

/* Home hero: the site plan */

.hero {
  background: var(--navy);
  color: #fff;
  padding: 3rem 0 3.5rem;
}

.hero .wrap {
  display: grid;
  gap: 2.75rem;
}

.hero h1 {
  max-width: 13ch;
}

.hero .lede {
  font-size: 1.1875rem;
  color: var(--on-navy);
  max-width: 40ch;
  margin-bottom: 2rem;
}

@media (min-width: 60rem) {
  .hero {
    padding: 5rem 0;
  }

  .hero .wrap {
    grid-template-columns: 1fr 1.1fr;
    align-items: center;
    gap: 4rem;
  }
}

.plan {
  margin: 0;
}

.plan svg {
  width: 100%;
  height: auto;
  display: block;
}

.plan figcaption {
  margin-top: 0.75rem;
  font-size: 0.9375rem;
  color: var(--on-navy-soft);
}

.p-grid {
  fill: none;
  stroke: rgb(255 255 255 / 0.07);
  stroke-width: 1;
}

.p-wall {
  fill: none;
  stroke: #fff;
  stroke-width: 4;
  stroke-linecap: square;
}

.p-inner {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: square;
}

.p-glass {
  fill: none;
  stroke: rgb(255 255 255 / 0.75);
  stroke-width: 1.25;
}

.p-door {
  fill: none;
  stroke: rgb(255 255 255 / 0.6);
  stroke-width: 1.25;
}

.p-label {
  fill: var(--on-navy-soft);
  font-family: var(--display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.p-cone {
  fill: rgb(42 196 234 / 0.2);
  stroke: var(--signal);
  stroke-width: 1.25;
}

.p-cam {
  fill: var(--signal);
}

.p-rec {
  fill: var(--rec);
}

.p-reader {
  fill: #fff;
}

.p-led {
  fill: var(--signal);
}

.p-rack {
  fill: rgb(255 255 255 / 0.12);
  stroke: #fff;
  stroke-width: 2;
}

.p-label--rack {
  fill: #fff;
}

@media (max-width: 36rem) {
  .p-label {
    font-size: 19px;
  }
}

.p-run {
  fill: none;
  stroke: #9fd9ec;
  stroke-width: 1.5;
  stroke-opacity: 0.85;
  stroke-linejoin: round;
}

.p-net {
  fill: none;
  stroke: var(--signal);
  stroke-width: 3;
}

.p-shield {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.5;
}

@media (prefers-reduced-motion: no-preference) {
  .p-run {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: plan-draw 1.1s ease-out forwards;
  }

  .runs path:nth-child(1) { animation-delay: 0.25s; }
  .runs path:nth-child(2) { animation-delay: 0.4s; }
  .runs path:nth-child(3) { animation-delay: 0.55s; }
  .runs path:nth-child(4) { animation-delay: 0.7s; }
  .runs path:nth-child(5) { animation-delay: 0.85s; }
  .runs path:nth-child(6) { animation-delay: 1s; }
  .runs path:nth-child(7) { animation-delay: 1.15s; }

  .p-cone {
    opacity: 0;
    animation: plan-fade 0.7s ease-out 1.6s forwards;
  }
}

@keyframes plan-draw {
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes plan-fade {
  to {
    opacity: 1;
  }
}

.plan-legend {
  display: grid;
  gap: 0.25rem 1.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 36rem) {
  .plan-legend {
    grid-template-columns: 1fr 1fr;
  }
}

.plan-legend a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.4rem 0;
  color: #fff;
  font-size: 1rem;
  font-weight: 500;
  text-decoration-color: rgb(255 255 255 / 0.35);
}

.plan-legend a:hover {
  text-decoration-color: var(--signal);
}

.plan-legend svg {
  flex: none;
  width: 1.5rem;
  height: 1.5rem;
}

/* Symbols shared by the legend and the service list */

.sym-cone {
  fill: rgb(42 196 234 / 0.3);
  stroke: var(--signal);
  stroke-width: 1.5;
}

.sym-cam {
  fill: var(--signal);
}

.sym-reader {
  fill: #fff;
}

.sym-led {
  fill: var(--signal);
}

.sym-run {
  fill: none;
  stroke: #9fd9ec;
  stroke-width: 2;
  stroke-linejoin: round;
}

.sym-shield {
  fill: #fff;
}

.services .sym-cone {
  fill: rgb(42 196 234 / 0.25);
  stroke: var(--navy);
}

.services .sym-cam,
.services .sym-reader,
.services .sym-shield {
  fill: var(--navy);
}

.services .sym-run {
  stroke: var(--navy);
}

/* Sections */

.section {
  padding: 4rem 0;
}

@media (min-width: 60rem) {
  .section {
    padding: 6rem 0;
  }
}

.section--paper {
  background: var(--paper);
}

.section-intro {
  color: var(--ink-soft);
  margin-bottom: 2.5rem;
}

/* Home: services */

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

@media (min-width: 48rem) {
  .services {
    grid-template-columns: 1fr 1fr;
    column-gap: 3rem;
  }
}

.services > li {
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  gap: 1.25rem;
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.services svg {
  width: 2.75rem;
  height: 2.75rem;
}

.services h3 a {
  color: var(--ink);
  text-decoration: none;
}

.services h3 a:hover {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

.services p {
  color: var(--ink-soft);
  margin-bottom: 0.75rem;
}

.services .more {
  font-weight: 600;
}

/* Home: how a job runs */

.steps {
  display: grid;
  gap: 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

@media (min-width: 48rem) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
    gap: 2rem;
  }
}

.steps li {
  counter-increment: step;
  border-top: 3px solid var(--navy);
  padding-top: 1rem;
}

.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: 0.4rem;
  font-family: var(--display);
  font-weight: 700;
  font-size: 2.5rem;
  line-height: 1;
  color: var(--navy);
}

.steps h3 {
  font-size: 1.1875rem;
}

.steps p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* Photo with text */

.split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.split img {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 60rem) {
  .split {
    grid-template-columns: 1.25fr 1fr;
    gap: 4rem;
  }

  .split--flip > :first-child {
    order: 2;
  }

  .split--flip {
    grid-template-columns: 1fr 1.25fr;
  }
}

.sectors {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: 1.5rem 0 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

.sectors li {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sectors li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  background: var(--signal);
}

.event-note {
  border-left: 4px solid var(--navy);
  padding: 0.25rem 0 0.25rem 1.25rem;
}

.event-note h2 {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.25rem);
}

.event-note p {
  margin-bottom: 0.5rem;
}

/* Call to action band */

.cta {
  background: var(--navy);
  color: #fff;
  padding: 4rem 0;
}

@media (min-width: 60rem) {
  .cta {
    padding: 5rem 0;
  }
}

.cta p {
  color: var(--on-navy);
  margin-bottom: 1.75rem;
}

/* Inner page header */

.page-head {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  padding: 3rem 0;
}

.page-head .wrap {
  display: grid;
  gap: 2.25rem;
  align-items: center;
}

.page-head h1 {
  color: var(--navy);
}

.page-head .lede {
  font-size: 1.1875rem;
  max-width: 44ch;
  margin-bottom: 1.75rem;
}

.page-head img {
  width: 100%;
  border-radius: 4px;
}

@media (min-width: 60rem) {
  .page-head {
    padding: 4.5rem 0;
  }

  .page-head .wrap {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.page-head--plain .wrap {
  grid-template-columns: 1fr;
}

/* Service details */

.detail {
  display: grid;
  gap: 2.25rem;
}

@media (min-width: 60rem) {
  .detail {
    grid-template-columns: 1fr 1fr;
    gap: 3rem 4rem;
  }
}

.detail h3 {
  padding-top: 0.9rem;
  border-top: 3px solid var(--signal);
}

.detail p {
  margin: 0;
  color: var(--ink-soft);
}

.ticks {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticks li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.65rem;
  max-width: 64ch;
}

.ticks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--signal);
}

.two-col {
  display: grid;
  gap: 3rem;
}

@media (min-width: 60rem) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.aftercare h3 {
  font-size: 1.1875rem;
  margin-bottom: 0.25rem;
}

.aftercare p {
  color: var(--ink-soft);
  margin-bottom: 1.25rem;
}

/* FAQ */

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 1.1rem 0;
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
  color: var(--navy);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.related {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* Contact */

.email-big {
  display: inline-block;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.25rem, 1.4rem + 4vw, 4rem);
  line-height: 1.1;
  color: var(--navy);
  text-decoration-thickness: 3px;
  text-decoration-color: var(--signal);
  text-underline-offset: 6px;
  overflow-wrap: anywhere;
  margin-bottom: 1rem;
}

/* Blog */

.post-list {
  margin: 0;
  padding: 0;
  list-style: none;
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.post-list li {
  padding: 2rem 0;
  border-bottom: 1px solid var(--line);
}

.post-list h2 {
  font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.1rem);
  margin-bottom: 0.5rem;
}

.post-list h2 a {
  text-decoration: none;
}

.post-list h2 a:hover {
  text-decoration: underline;
  text-decoration-color: var(--signal);
}

.post-list p {
  color: var(--ink-soft);
}

.post-date {
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 0.5rem;
}

.prose {
  max-width: 42rem;
}

.prose h2 {
  font-size: clamp(1.6rem, 1.35rem + 1vw, 2rem);
  margin: 2.75rem 0 0.75rem;
}

.prose h3 {
  margin-top: 2rem;
}

.prose ul,
.prose ol {
  padding-left: 1.25rem;
  margin: 0 0 1.25rem;
}

.prose li {
  margin-bottom: 0.5rem;
  max-width: 64ch;
}

.prose figure {
  margin: 2rem 0;
}

.prose img {
  border-radius: 4px;
}

.post-head h1 {
  font-size: clamp(2.25rem, 1.5rem + 3.4vw, 3.75rem);
  max-width: 20ch;
}

/* Footer */

.site-footer {
  background: var(--navy-deep);
  color: var(--on-navy-soft);
  padding: 3.5rem 0 1.5rem;
  font-size: 1rem;
}

.footer-grid {
  display: grid;
  gap: 2.5rem;
}

@media (min-width: 48rem) {
  .footer-grid {
    grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
    gap: 2rem;
  }
}

.footer-brand img {
  width: 56px;
  margin-bottom: 0.75rem;
}

.footer-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  color: #fff;
  margin-bottom: 0.4rem;
}

.footer-h {
  font-family: var(--body);
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0;
  margin: 0 0 0.75rem;
}

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

.site-footer li {
  margin-bottom: 0.45rem;
}

.site-footer a {
  color: #fff;
  text-decoration-color: rgb(255 255 255 / 0.35);
}

.site-footer a:hover {
  text-decoration-color: var(--signal);
}

.footer-base {
  margin-top: 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgb(255 255 255 / 0.15);
  font-size: 0.9375rem;
}

.footer-base p {
  margin: 0;
}
