:root {
  --navy-950: #031426;
  --navy-900: #06233f;
  --navy-800: #083d6b;
  --blue-600: #0077c8;
  --cyan-400: #35c8f5;
  --cyan-100: #dff7ff;
  --porcelain: #f7fbfd;
  --white: #ffffff;
  --ink: #0d2033;
  --slate: #53687a;
  --line: #d9e7ef;
  --brass: #e9b949;
  --brass-dark: #8f6817;
  --display: "Arial Rounded MT Bold", "Trebuchet MS", Arial, sans-serif;
  --body: "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif;
  --shell: min(1180px, calc(100% - 40px));
  --radius: 22px;
  --shadow: 0 24px 70px rgba(3, 20, 38, 0.16);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--porcelain);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid var(--cyan-400);
  outline-offset: 4px;
}

.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;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--white);
  background: var(--navy-950);
  border-radius: 8px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 16px;
}

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.utility-bar {
  padding: 6px 20px;
  color: var(--cyan-100);
  background: var(--navy-950);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-align: center;
  text-transform: uppercase;
}

.utility-bar p {
  margin: 0;
}

.utility-bar i {
  padding: 0 0.7em;
  color: var(--cyan-400);
  font-style: normal;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(217, 231, 239, 0);
  background: rgba(247, 251, 253, 0.88);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 8px 30px rgba(3, 20, 38, 0.07);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--navy-900);
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 900;
  line-height: 1.04;
  text-decoration: none;
  text-transform: uppercase;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0, 119, 200, 0.18);
}

.brand small {
  display: block;
  margin-top: 3px;
  color: var(--blue-600);
  font-family: var(--body);
  font-size: 0.59rem;
  font-weight: 800;
  letter-spacing: 0.25em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 2.4vw, 34px);
}

.site-nav > a:not(.button) {
  color: #263f54;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease;
}

.site-nav > a:not(.button):hover {
  color: var(--blue-600);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 42px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  width: 26px;
  height: 2px;
  margin: 5px 0;
  background: var(--navy-900);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 22px;
  border: 0;
  border-radius: 12px;
  color: var(--white);
  background: var(--blue-600);
  box-shadow: 0 10px 26px rgba(0, 119, 200, 0.22);
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.button:hover {
  background: var(--navy-800);
  box-shadow: 0 13px 28px rgba(0, 61, 107, 0.26);
  transform: translateY(-2px);
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.button-small {
  min-height: 42px;
  padding: 11px 17px;
  border-radius: 10px;
  font-size: 0.84rem;
}

.hero {
  position: relative;
  min-height: 710px;
  overflow: hidden;
  background:
    radial-gradient(circle at 81% 20%, rgba(53, 200, 245, 0.16), transparent 26%),
    linear-gradient(180deg, var(--porcelain), #edf7fb);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -10vw -110px 40%;
  height: 260px;
  border-radius: 50%;
  background: rgba(53, 200, 245, 0.08);
  transform: rotate(-7deg);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: 670px;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  gap: clamp(30px, 5vw, 80px);
  align-items: center;
  padding-block: 72px 94px;
}

.hero-watermark {
  position: absolute;
  top: 55%;
  left: -30px;
  color: transparent;
  font-family: var(--display);
  font-size: clamp(17rem, 38vw, 39rem);
  font-weight: 900;
  letter-spacing: -0.14em;
  line-height: 0.5;
  opacity: 0.32;
  -webkit-text-stroke: 2px rgba(0, 119, 200, 0.09);
  transform: translateY(-50%);
  user-select: none;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--blue-600);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.hero h1,
.section h2 {
  margin: 0;
  color: var(--navy-900);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: -0.045em;
  line-height: 1.03;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(3.3rem, 6vw, 5.8rem);
}

.hero h1 em {
  color: var(--blue-600);
  font-style: normal;
}

.hero-lede {
  max-width: 560px;
  margin: 25px 0 0;
  color: #3c566b;
  font-size: clamp(1.05rem, 1.6vw, 1.25rem);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 32px;
}

.text-link {
  color: var(--navy-900);
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
}

.text-link span {
  display: inline-block;
  margin-left: 6px;
  color: var(--blue-600);
  transition: transform 0.2s ease;
}

.text-link:hover span {
  transform: translateY(3px);
}

.dark-link:hover span {
  transform: translateX(4px);
}

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 21px;
  padding: 0;
  margin: 31px 0 0;
  color: #526b7e;
  font-size: 0.78rem;
  font-weight: 700;
  list-style: none;
}

.trust-list li {
  display: flex;
  align-items: center;
  gap: 7px;
}

.trust-list svg {
  width: 17px;
  height: 17px;
  padding: 3px;
  border-radius: 50%;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
  background: var(--blue-600);
}

.hero-visual {
  position: relative;
  min-height: 510px;
}

.logo-panel {
  position: absolute;
  z-index: 2;
  top: 20px;
  right: 0;
  width: min(100%, 590px);
  padding: 14px;
  border: 1px solid rgba(53, 200, 245, 0.25);
  border-radius: 26px;
  background: var(--navy-950);
  box-shadow: 0 30px 70px rgba(3, 20, 38, 0.27);
  transform: rotate(1.6deg);
}

.logo-panel img {
  width: 100%;
  border-radius: 17px;
}

.hero-job {
  position: absolute;
  z-index: 3;
  right: 25px;
  bottom: 0;
  width: 205px;
  padding: 9px;
  border-radius: 20px;
  background: var(--white);
  box-shadow: var(--shadow);
  transform: rotate(3.5deg);
}

.hero-job img {
  width: 100%;
  height: 245px;
  border-radius: 13px;
  object-fit: cover;
}

.hero-job span {
  display: block;
  padding: 9px 5px 4px;
  color: var(--navy-900);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.rating-chip {
  position: absolute;
  z-index: 4;
  bottom: 57px;
  left: 0;
  display: grid;
  grid-template-columns: auto auto;
  padding: 13px 18px;
  border: 1px solid rgba(6, 35, 63, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 16px 40px rgba(3, 20, 38, 0.15);
  transform: rotate(-3deg);
}

.rating-chip .stars {
  grid-column: 1 / -1;
  margin-bottom: 2px;
  color: var(--brass);
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}

.rating-chip strong {
  color: var(--navy-900);
  font-size: 1.36rem;
  line-height: 1;
}

.rating-chip small {
  align-self: end;
  margin-left: 7px;
  color: var(--slate);
  line-height: 1.3;
}

.pipe-route {
  position: absolute;
  z-index: 1;
  right: -30px;
  bottom: -1px;
  left: calc(50% + 100px);
  height: 90px;
  border-top: 13px solid var(--cyan-400);
  border-left: 13px solid var(--cyan-400);
  border-radius: 42px 0 0;
  opacity: 0.78;
}

.pipe-route::before,
.pipe-route::after {
  content: "";
  position: absolute;
  top: -21px;
  width: 8px;
  height: 29px;
  border: 2px solid var(--navy-800);
  background: #a6e9fa;
}

.pipe-route::before {
  left: 65px;
}

.pipe-route::after {
  left: 84px;
}

.section {
  padding-block: 110px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 52px;
}

.section h2 {
  max-width: 760px;
  font-size: clamp(2.4rem, 4.5vw, 4.1rem);
}

.section-heading > p {
  margin: 0 0 6px;
  color: var(--slate);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.service-card {
  position: relative;
  min-height: 275px;
  padding: 30px 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.service-card::after {
  content: "";
  position: absolute;
  right: -50px;
  bottom: -60px;
  width: 130px;
  height: 130px;
  border: 18px solid var(--cyan-100);
  border-radius: 50%;
  transition: transform 0.3s ease;
}

.service-card:hover {
  border-color: #a5dff3;
  box-shadow: 0 18px 45px rgba(3, 20, 38, 0.09);
  transform: translateY(-5px);
}

.service-card:hover::after {
  transform: scale(1.15);
}

.service-icon {
  display: grid;
  width: 54px;
  height: 54px;
  place-items: center;
  border-radius: 15px;
  color: var(--blue-600);
  background: var(--cyan-100);
}

.service-icon svg {
  width: 33px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  margin: 52px 0 8px;
  color: var(--navy-900);
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
}

.service-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

.section-dark {
  color: var(--white);
  background:
    radial-gradient(circle at 85% 25%, rgba(0, 119, 200, 0.35), transparent 28%),
    var(--navy-950);
}

.section-heading.light h2,
.section-heading.light .eyebrow {
  color: var(--white);
}

.section-heading.light .eyebrow {
  color: var(--cyan-400);
}

.section-heading.light > p {
  color: #adc4d6;
}

.work-grid {
  display: grid;
  grid-auto-rows: 265px;
  grid-template-columns: 1.1fr 0.9fr 0.9fr;
  gap: 16px;
}

.work-card {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 17px;
  background: var(--navy-800);
  cursor: zoom-in;
}

.work-card-tall {
  grid-row: span 2;
}

.work-card-wide {
  grid-column: span 2;
}

.work-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 47%, rgba(3, 20, 38, 0.88));
}

.work-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.work-card:hover img {
  transform: scale(1.045);
}

.work-card span {
  position: absolute;
  z-index: 2;
  right: 22px;
  bottom: 19px;
  left: 22px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  color: var(--white);
  text-align: left;
}

.work-card strong {
  font-size: 1rem;
}

.work-card small {
  color: #a8dff2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.reviews {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(223, 247, 255, 0.72), transparent 40%),
    var(--white);
}

.reviews::after {
  content: "★★★★★";
  position: absolute;
  right: -18px;
  bottom: -28px;
  color: rgba(233, 185, 73, 0.08);
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 900;
  letter-spacing: -0.07em;
  white-space: nowrap;
}

.reviews-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  gap: clamp(60px, 9vw, 130px);
  align-items: center;
}

.reviews-intro > p:not(.eyebrow) {
  margin: 24px 0 0;
  color: var(--slate);
}

.award-row {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 32px;
}

.award-row img {
  width: 80px;
  height: 92px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 9px 24px rgba(3, 20, 38, 0.13);
}

.award-row p {
  margin: 0;
  color: var(--navy-900);
}

.award-row strong,
.award-row span {
  display: block;
}

.award-row span {
  color: var(--slate);
  font-size: 0.78rem;
}

.review-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.review-card {
  margin: 0;
  padding: 26px 30px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 16px 44px rgba(3, 20, 38, 0.06);
}

.review-card.offset {
  transform: translateX(36px);
}

.review-card .stars {
  color: var(--brass);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
}

.review-card blockquote {
  margin: 10px 0 15px;
  color: var(--navy-900);
  font-size: clamp(1rem, 1.4vw, 1.16rem);
  font-weight: 600;
  line-height: 1.55;
}

.review-card figcaption {
  color: var(--blue-600);
  font-size: 0.8rem;
  font-weight: 800;
}

.review-card figcaption span {
  margin-left: 8px;
  color: #8395a4;
  font-weight: 500;
}

.about {
  background: var(--porcelain);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(55px, 9vw, 130px);
  align-items: center;
}

.about-collage {
  position: relative;
  min-height: 610px;
}

.about-main {
  width: 82%;
  height: 540px;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: var(--shadow);
}

.about-inset {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 45%;
  height: 275px;
  border: 9px solid var(--porcelain);
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 16px 45px rgba(3, 20, 38, 0.16);
}

.about-collage span {
  position: absolute;
  top: 47px;
  right: -4px;
  width: 180px;
  padding: 14px 16px;
  border-radius: 12px;
  color: var(--navy-900);
  background: var(--cyan-400);
  font-size: 0.73rem;
  font-weight: 900;
  line-height: 1.4;
  transform: rotate(3deg);
}

.about-copy > p:not(.eyebrow) {
  color: var(--slate);
}

.about-copy .large-copy {
  margin: 28px 0 13px;
  color: var(--navy-900);
  font-size: 1.22rem;
  font-weight: 700;
}

.check-list {
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 28px 0 32px;
  list-style: none;
}

.check-list li {
  position: relative;
  padding-left: 31px;
  color: #29455d;
  font-weight: 650;
}

.check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  font-size: 0.69rem;
  font-weight: 900;
}

.contact {
  padding-top: 20px;
  background: var(--porcelain);
}

.contact-panel {
  position: relative;
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: clamp(50px, 9vw, 120px);
  padding: clamp(45px, 7vw, 84px);
  overflow: hidden;
  border-radius: 30px;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 95%, rgba(53, 200, 245, 0.23), transparent 33%),
    var(--navy-900);
  box-shadow: 0 30px 80px rgba(3, 20, 38, 0.18);
}

.contact-panel::after {
  content: "";
  position: absolute;
  right: -110px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 46px solid rgba(53, 200, 245, 0.08);
  border-radius: 50%;
}

.contact-copy,
.contact-form {
  position: relative;
  z-index: 1;
}

.contact .eyebrow {
  color: var(--cyan-400);
}

.contact h2 {
  color: var(--white);
}

.contact-copy > p:not(.eyebrow) {
  color: #bad0df;
}

.direct-contact {
  margin-top: 31px;
}

.direct-contact p {
  margin: 0;
  color: #9fb8ca;
  font-size: 0.8rem;
}

.direct-contact a {
  display: block;
  color: var(--white);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 900;
  text-decoration: none;
}

.direct-contact .email-link {
  margin-top: 4px;
  color: var(--cyan-400);
  font-family: var(--body);
  font-size: 0.82rem;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.service-area-copy {
  max-width: 440px;
  margin: 25px 0 0;
  padding-top: 21px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bad0df;
  font-size: 0.82rem;
}

.contact-form {
  display: grid;
  gap: 15px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form label {
  display: grid;
  gap: 6px;
  color: #d6e8f2;
  font-size: 0.76rem;
  font-weight: 800;
}

.contact-form label small {
  color: #96b2c5;
  font-weight: 500;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 10px;
  color: var(--white);
  background: rgba(3, 20, 38, 0.35);
  outline: none;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.contact-form input {
  height: 48px;
  padding: 0 13px;
}

.contact-form textarea {
  min-height: 112px;
  padding: 11px 13px;
  resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan-400);
  background: rgba(3, 20, 38, 0.58);
}

.contact-form textarea::placeholder {
  color: #7895a9;
}

.button-brass {
  margin-top: 4px;
  color: var(--navy-950);
  background: var(--brass);
  box-shadow: 0 10px 25px rgba(233, 185, 73, 0.18);
}

.button-brass:hover {
  color: var(--white);
  background: var(--blue-600);
}

.form-note,
.form-status {
  margin: 0;
  color: #94afc1;
  font-size: 0.72rem;
  text-align: center;
}

.form-status {
  min-height: 0;
  color: var(--cyan-400);
  font-weight: 800;
}

.site-footer {
  padding-top: 88px;
  color: #9eb5c6;
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 0.7fr 0.9fr 1fr;
  gap: 50px;
  padding-bottom: 70px;
}

.footer-brand {
  color: var(--white);
}

.footer-grid > div:first-child > p {
  max-width: 280px;
  margin-top: 18px;
  font-size: 0.86rem;
}

.footer-grid h2 {
  margin: 2px 0 17px;
  color: var(--white);
  font-family: var(--body);
  font-size: 0.73rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.footer-grid > div:not(:first-child) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.footer-grid > div:not(:first-child) > a:not(.button),
.footer-grid > div:not(:first-child) > span {
  margin: 4px 0;
  color: #9eb5c6;
  font-size: 0.82rem;
  text-decoration: none;
}

.footer-grid > div:not(:first-child) > a:not(.button):hover {
  color: var(--white);
}

.footer-contact .button {
  margin-bottom: 10px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  font-size: 0.73rem;
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a {
  color: var(--cyan-400);
  font-weight: 800;
  text-decoration: none;
}

.lightbox {
  width: min(900px, calc(100% - 30px));
  max-height: calc(100vh - 40px);
  padding: 12px;
  overflow: visible;
  border: 0;
  border-radius: 18px;
  color: var(--white);
  background: var(--navy-950);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.5);
}

.lightbox::backdrop {
  background: rgba(3, 12, 23, 0.85);
  backdrop-filter: blur(5px);
}

.lightbox img {
  width: 100%;
  max-height: calc(100vh - 120px);
  border-radius: 11px;
  object-fit: contain;
}

.lightbox p {
  margin: 10px 5px 1px;
  font-size: 0.85rem;
  font-weight: 700;
}

.lightbox-close {
  position: absolute;
  top: -16px;
  right: -12px;
  z-index: 2;
  display: grid;
  width: 40px;
  height: 40px;
  padding: 0 0 3px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 50%;
  color: var(--white);
  background: var(--blue-600);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    inset: 74px 0 auto;
    display: flex;
    max-height: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    overflow: hidden;
    background: var(--porcelain);
    box-shadow: 0 18px 35px rgba(3, 20, 38, 0.12);
    transition: max-height 0.3s ease;
  }

  .site-nav.open {
    max-height: 430px;
    padding: 12px 20px 22px;
  }

  .site-nav > a:not(.button) {
    padding: 13px 4px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .button {
    margin-top: 14px;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .hero-grid {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 65px;
  }

  .hero-copy {
    max-width: 700px;
  }

  .hero-visual {
    min-height: 530px;
  }

  .logo-panel {
    right: 6%;
    left: 6%;
    width: auto;
  }

  .hero-job {
    right: 9%;
  }

  .rating-chip {
    left: 9%;
  }

  .pipe-route {
    left: 42%;
  }

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

  .reviews-layout,
  .about-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .reviews-intro {
    max-width: 650px;
  }

  .review-card.offset {
    transform: translateX(0);
  }

  .about-collage {
    width: min(620px, 100%);
    margin-inline: auto;
  }

  .about-copy {
    max-width: 700px;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-contact {
    grid-column: 2 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --shell: min(calc(100% - 28px), 1180px);
  }

  .utility-bar {
    font-size: 0.63rem;
    letter-spacing: 0.07em;
  }

  .utility-secondary,
  .utility-bar i {
    display: none;
  }

  .nav-wrap {
    position: relative;
    min-height: 66px;
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .site-nav {
    inset: 66px 0 auto;
  }

  .menu-toggle {
    position: absolute;
    right: 0;
  }

  .hero {
    min-height: auto;
  }

  .hero-grid {
    padding-block: 52px 85px;
  }

  .hero h1 {
    max-width: 100%;
    font-size: clamp(2.45rem, 11.5vw, 4.2rem);
    overflow-wrap: anywhere;
  }

  .hero-lede {
    font-size: 1.02rem;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }

  .hero-actions .button {
    width: 100%;
  }

  .trust-list {
    display: grid;
  }

  .hero-visual {
    min-height: 390px;
  }

  .logo-panel {
    top: 10px;
    right: 0;
    left: 0;
    padding: 8px;
    border-radius: 17px;
    transform: rotate(0.8deg);
  }

  .logo-panel img {
    border-radius: 11px;
  }

  .hero-job {
    right: 9px;
    width: 142px;
    padding: 6px;
  }

  .hero-job img {
    height: 170px;
  }

  .hero-job span {
    font-size: 0.55rem;
  }

  .rating-chip {
    bottom: 34px;
    left: 4px;
  }

  .pipe-route {
    left: 36%;
    height: 68px;
    border-top-width: 10px;
    border-left-width: 10px;
  }

  .section {
    padding-block: 78px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 36px;
  }

  .section h2 {
    font-size: clamp(2.25rem, 11vw, 3.15rem);
  }

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

  .service-card {
    min-height: 230px;
  }

  .service-card h3 {
    margin-top: 35px;
  }

  .work-grid {
    grid-auto-rows: 270px;
    grid-template-columns: 1fr;
  }

  .work-card-tall,
  .work-card-wide {
    grid-row: auto;
    grid-column: auto;
  }

  .work-card span {
    align-items: flex-start;
    flex-direction: column;
    gap: 3px;
  }

  .reviews-layout {
    gap: 48px;
  }

  .review-card {
    padding: 23px 21px;
  }

  .review-card figcaption span {
    display: block;
    margin-left: 0;
  }

  .about-collage {
    min-height: 440px;
  }

  .about-main {
    height: 395px;
  }

  .about-inset {
    height: 190px;
    border-width: 6px;
  }

  .about-collage span {
    top: 24px;
    width: 145px;
    font-size: 0.62rem;
  }

  .contact {
    padding-top: 0;
  }

  .contact-panel {
    width: 100%;
    gap: 38px;
    padding: 58px 20px;
    border-radius: 0;
  }

  .contact-form {
    padding: 20px 16px;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 38px 26px;
  }

  .footer-grid > div:first-child {
    grid-column: 1 / -1;
  }

  .footer-contact {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
