:root {
  --navy: #102b41;
  --blue: #244f75;
  --pale: #e5edef;
  --paper: #f6f5ef;
  --ink: #183043;
  --muted: #526976;
  --line: #ccd5d6;
  --light: #bdd4e1;
  --accent: #e4e8b0;
  --button-width: 264px;
  --header-height: 72px;
  --hero-surface: var(--pale);
  --header-ink: var(--navy);
  --header-focus: var(--blue);
  --header-hover-surface: var(--navy);
  --header-hover-ink: var(--paper);
  --header-menu-active: #fff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--navy);
  font-family: Inter, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: "DM Sans", Inter, system-ui, sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

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

a:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid #628eab;
  outline-offset: 5px;
}

img {
  max-width: 100%;
}

::selection {
  background: var(--accent);
  color: var(--navy);
}

.skip {
  position: fixed;
  top: -70px;
  left: 10px;
  padding: 14px;
  background: #fff;
  z-index: 30;
}

.skip:focus {
  top: 10px;
}

.skip:not(:focus) {
  clip-path: inset(50%);
  width: 1px;
  height: 1px;
  overflow: hidden;
  white-space: nowrap;
}

/* Navigation */
.header {
  height: var(--header-height);
  padding: 0 6%;
  display: flex;
  align-items: center;
  gap: 48px;
  background: var(--hero-surface);
  color: var(--header-ink);
  position: sticky;
  top: 0;
  z-index: 20;
}

.header a:focus-visible,
.header summary:focus-visible {
  outline-color: var(--header-focus);
}

.brand {
  margin-right: auto;
  display: flex;
  align-items: center;
  min-height: 44px;
  flex-shrink: 0;
}

.brand img {
  width: 180px;
  height: auto;
  display: block;
}

.desktop-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  font-weight: 500;
}

.desktop-nav a {
  position: relative;
  padding: 12px 0;
}

.desktop-nav a::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease);
}

.desktop-nav a:hover::after,
.desktop-nav a[aria-current]::after {
  transform: scaleX(1);
}

.mobile-menu {
  display: none;
}

h1 {
  line-height: 1.02;
  letter-spacing: -0.065em;
  font-weight: 500;
  margin: 0 0 26px;
  font-size: clamp(52px, 5.7vw, 86px);
}

h1 em,
.section h2 em {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-style: italic;
  letter-spacing: -0.06em;
  color: var(--blue);
}
.page-hero-copy > p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  max-width: 460px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: var(--button-width);
  max-width: 100%;
  flex-shrink: 0;
  min-height: 54px;
  padding: 15px 20px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-align: center;
  cursor: pointer;
  transition:
    background 0.3s,
    border-color 0.3s,
    color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
}

.button-light {
  background: var(--accent);
  color: var(--navy);
}

.button-light:is(:hover, :focus-visible):not(:disabled) {
  background: #f1f3cd;
  box-shadow: 0 8px 20px #102b4118;
}

.button-outline {
  background: transparent;
  border-color: currentColor;
  color: inherit;
}

.nav-cta {
  --button-width: auto;
}

.button-outline:is(:hover, :focus-visible) {
  background: var(--header-hover-surface);
  border-color: var(--header-hover-surface);
  color: var(--header-hover-ink);
}

.button:focus-visible {
  outline: 3px solid #628eab;
  outline-offset: 5px;
}

/* All conversion links share one arrow, placed directly beside the label. */
.cta-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  max-width: 100%;
  min-height: 44px;
  padding: 12px 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  text-underline-offset: 4px;
  transition: color 0.3s;
}

.button::after,
.cta-link::after {
  content: "";
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: currentColor;
  mask: url("/images/arrow-right.svg") center / contain no-repeat;
  transition: transform 0.3s;
}

.button:is(:hover, :focus-visible):not(:disabled)::after,
.cta-link:is(:hover, :focus-visible)::after,
a:is(:hover, :focus-visible) .cta-link::after {
  transform: translateX(3px);
}

.cta-link:is(:hover, :focus-visible),
a:is(:hover, :focus-visible) .cta-link {
  text-decoration: underline;
}

.button:disabled::after {
  visibility: hidden;
}

.review-stars {
  color: #94702e;
  letter-spacing: 0.1em;
  font-size: 14px;
}

.energy-ribbon {
  background: var(--navy);
  color: var(--paper);
  overflow: hidden;
  padding: 22px 0;
}

.ribbon-track {
  display: flex;
  width: max-content;
  animation: ribbon-travel 36s linear infinite;
}

.ribbon-track > div {
  min-width: 100vw;
  justify-content: space-around;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 50px;
  padding-right: 50px;
}

.ribbon-track span {
  font-family: "DM Sans", sans-serif;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: -0.035em;
}

/* Sections */
.section {
  padding: 110px 7%;
}

.section h2 {
  font-size: clamp(40px, 4.5vw, 68px);
  line-height: 1.08;
  letter-spacing: -0.055em;
  font-weight: 500;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 52px;
}

.section-head h2 {
  margin-top: 0;
}

.section-head > p {
  max-width: 310px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.services {
  padding-bottom: 90px;
}

.service-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  padding-bottom: 58px;
}

.service-tile {
  display: flex;
  flex-direction: column;
  min-width: 0;
  position: relative;
}

.service-tile:nth-child(2) {
  margin-top: 32px;
  margin-bottom: -32px;
}

.service-tile:nth-child(3) {
  margin-top: 64px;
  margin-bottom: -64px;
}

.tile-image {
  overflow: hidden;
  background: var(--pale);
  border-radius: 10px;
}

.tile-image img {
  width: 100%;
  transition:
    transform 0.9s var(--ease),
    filter 0.6s;
  height: auto;
  display: block;
  object-fit: contain;
}

.service-tile:hover .tile-image img {
  filter: saturate(1.08);
}

.tile-content {
  padding: 24px 0 0;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

.tile-content h3 {
  font-size: 25px;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.2;
  margin: 0 0 12px;
}

.tile-content p {
  color: var(--muted);
  line-height: 1.8;
  font-size: 13px;
  max-width: 340px;
}

.tile-link {
  margin-top: auto;
  padding: 22px 0 14px;
}

.services-more {
  margin-top: 26px;
}

.about {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12%;
  align-items: center;
  padding-top: 130px;
  padding-bottom: 130px;
}

.about-photo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.about-photo img {
  width: 100%;
  transition: transform 1s var(--ease);
  height: auto;
  display: block;
  object-fit: contain;
}

.about-copy h2 {
  margin: 0 0 26px;
}

.about-copy > p,
.story-copy > p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
  margin-bottom: 18px;
}

.about-more {
  margin-top: 14px;
}

.experience {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 0;
}

.experience strong {
  font-family: "DM Sans", sans-serif;
  font-size: 80px;
  font-weight: 400;
  letter-spacing: -0.075em;
  line-height: 1;
}

.experience strong span {
  font-family: Georgia, serif;
  font-size: 50px;
  color: var(--blue);
}

.experience div {
  font-size: 11px;
  line-height: 1.8;
  color: var(--muted);
}

/* One clear introduction and a continuous row of consistently sized reviews. */
.reviews {
  background: var(--pale);
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}
.reviews.section {
  padding-block: clamp(72px, 6vw, 104px);
  padding-inline: 0;
}

.reviews-header {
  padding: 0 7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  text-align: center;
}

.reviews-header h2 {
  max-width: 780px;
}
.reviews-header h2 em {
  display: inline-block;
}

.reviews-rating {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 16px 28px;
}

.review-score {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.review-score strong {
  font-family: "DM Sans", sans-serif;
  font-size: 28px;
  letter-spacing: -0.04em;
  font-weight: 500;
  line-height: 1;
}

.review-score > img {
  display: block;
  width: 24px;
  height: 24px;
}

.review-score .review-stars {
  font-size: 13px;
}

.review-wall {
  margin-top: 40px;
  mask-image: linear-gradient(
    to right,
    transparent,
    #000 24px,
    #000 calc(100% - 24px),
    transparent
  );
}
.reviews-note {
  margin: 22px 6% 0;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
}

.review-rail {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  padding: 8px 0 16px;
  outline-offset: -3px !important;
}

.review-rail::-webkit-scrollbar {
  display: none;
}

.review-track {
  display: flex;
  width: max-content;
  gap: 20px;
}

.review-group[hidden] {
  display: none;
}

.review-group {
  display: flex;
  align-items: stretch;
  gap: 20px;
  flex-shrink: 0;
  padding-left: 0;
}

.review-rail:not(.is-looping) .review-track {
  padding: 0 7vw;
}

.review-card {
  width: 360px;
  min-height: 320px;
  flex-shrink: 0;
  background: #fff;
  padding: 26px;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 4px 16px #102b4105;
  transition: box-shadow 0.3s;
}

.review-card:hover {
  box-shadow: 0 6px 18px #102b4110;
}
.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.review-card-stars {
  font-size: 12px;
  letter-spacing: 3px;
  color: #94702e;
}

.review-card blockquote {
  margin: 22px 0 26px;
  flex: 1;
  display: flex;
  align-items: center;
}

.review-card blockquote p,
.review-no-text {
  font-size: 14px;
  line-height: 1.75;
  color: var(--ink);
}

.review-no-text {
  flex: 1;
  display: flex;
  align-items: center;
  margin: 22px 0 26px;
}

.review-attribution {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
}

.review-attribution > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.review-attribution cite {
  font-size: 12px;
  font-weight: 600;
  font-style: normal;
}

.review-attribution > div > span {
  font-size: 10px;
  color: var(--muted);
}

.review-avatar {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--pale);
  font-size: 10px;
  color: var(--blue);
}

.review-source {
  width: 20px;
  height: 20px;
  display: block;
  flex: none;
}

/* Keep the introduction and ordered steps in one readable group. */
.approach {
  background: var(--navy);
  color: var(--paper);
}
.approach-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(40px, 5vw, 80px);
  max-width: 1240px;
  margin-inline: auto;
}
.approach h2 em {
  color: var(--light);
}
.approach-heading > p {
  max-width: 390px;
  margin-top: 24px;
  font-size: 15px;
  color: #bed0da;
  line-height: 1.8;
}
.approach-heading .button {
  margin-top: 30px;
}
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps > li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: start;
  gap: 24px;
  padding: 28px 30px;
  background: #1b394e;
  border-radius: 10px;
}
.step-number {
  font-family: "DM Sans", sans-serif;
  font-size: 32px;
  line-height: 1.1;
  color: var(--accent);
  letter-spacing: -0.05em;
  font-variant-numeric: tabular-nums;
}
.steps h3 {
  font-size: clamp(21px, 1.8vw, 25px);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.steps p {
  color: #c5d5df;
  font-size: 14px;
  line-height: 1.8;
  max-width: 460px;
}
@media (max-width: 1000px) {
  .approach-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    max-width: 640px;
  }
  .approach-heading > p {
    max-width: 470px;
  }
}
@media (max-width: 700px) {
  .steps {
    gap: 12px;
  }
  .steps > li {
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 18px;
    padding: 24px 20px;
  }
  .step-number {
    font-size: 27px;
  }
}

.faq {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  background: var(--paper);
}

.faq-intro h2 {
  margin: 0 0 26px;
}

.faq-list details {
  border-top: 1px solid var(--line);
  transition:
    background 0.3s,
    padding 0.3s;
}

.faq-list details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}

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

.faq-list summary span {
  width: 28px;
  height: 28px;
  flex: none;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 19px;
  font-weight: 400;
  transition:
    transform 0.3s,
    background 0.3s;
}

.faq-list details[open] summary span {
  transform: rotate(45deg);
  background: var(--accent);
}

.faq-list details[open] {
  background: #fff;
  padding: 0 18px;
}

.faq-list details p {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.85;
  padding: 0 20px 24px 0;
  max-width: 550px;
  animation: rise-in 0.4s var(--ease);
}

.contact {
  background: var(--blue);
  color: #fff;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.contact h2 {
  font-size: clamp(55px, 7.5vw, 108px);
  margin: 0 0 34px;
}

.contact h2 em {
  color: #c7dbe4;
}

.contact-bottom {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 35px;
  padding-top: 0;
}

.contact-bottom p {
  max-width: 400px;
  color: #d4e1e8;
  line-height: 1.85;
  font-size: 14px;
}

footer {
  background: #0d2436;
  color: white;
  padding: 45px 7%;
  display: flex;
  align-items: center;
  gap: 35px;
}

footer img {
  display: block;
  width: 170px;
}

footer p {
  font-size: 10px;
  color: #b4c8d3;
}

footer div {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 25px;
  color: #b4c8d3;
  font-size: 10px;
}

footer a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Inside pages share the same composition and material. */
.page-hero {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 7%;
  padding: 65px 7% 75px;
  background: var(--hero-surface);
  position: relative;
  overflow: hidden;
  align-items: center;
}

.page-hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 25px 0;
}

.page-hero h1 {
  font-size: clamp(44px, 5.5vw, 80px);
  margin-top: 0;
}

.page-hero h1 span {
  font-family: Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--blue);
}

.page-photo {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  margin: 0;
  align-self: center;
}

.page-photo img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.service-page-hero h1 {
  font-size: clamp(40px, 4.6vw, 67px);
}

/* Full images give each engineering service a distinct, useful entry point. */
.engineering-section {
  background: var(--navy);
  color: var(--paper);
}
.engineering-inner {
  max-width: 1240px;
  margin-inline: auto;
}
.engineering-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 48px;
  margin-bottom: 48px;
}
.engineering-heading h2 {
  font-size: clamp(40px, 4.5vw, 62px);
}
.engineering-heading h2 em {
  color: var(--light);
}
.engineering-heading > p {
  max-width: 320px;
  flex: 0 1 320px;
  color: #bed0da;
  font-size: 15px;
  line-height: 1.8;
}
.engineering-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.engineering-card {
  min-width: 0;
}
.engineering-card > a {
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 10px;
  background: var(--paper);
  color: var(--navy);
  transition:
    transform 0.3s var(--ease),
    background 0.3s var(--ease);
}
.engineering-card > a:hover {
  transform: translateY(-5px);
  background: #fff;
}
.engineering-card > a:focus-visible {
  outline-color: var(--accent);
}
.engineering-card img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px 10px 0 0;
}
.engineering-card-content {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 28px;
}
.engineering-card h3 {
  min-height: 2.5em;
  margin-bottom: 16px;
  font-size: clamp(22px, 1.9vw, 27px);
  font-weight: 500;
  line-height: 1.25;
  letter-spacing: -0.035em;
}
.engineering-card p {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.engineering-link {
  margin-top: auto;
  padding-top: 26px;
}
@media (max-width: 1000px) {
  .engineering-heading {
    display: block;
    margin-bottom: 32px;
  }
  .engineering-heading > p {
    margin-top: 22px;
    max-width: 500px;
  }
  .engineering-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .engineering-card > a {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    padding: 20px;
  }
  .engineering-card img {
    border-radius: 10px;
  }
  .engineering-card h3 {
    min-height: 0;
    font-size: 25px;
  }
  .engineering-card-content {
    padding: 6px 0 6px 24px;
  }
}
@media (max-width: 600px) {
  .engineering-card > a {
    display: flex;
    align-items: stretch;
    padding: 0;
  }
  .engineering-card img {
    border-radius: 10px 10px 0 0;
  }
  .engineering-card-content {
    padding: 24px;
  }
}

.service-guide {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10%;
}

.guide-intro {
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.guide-intro h2 {
  margin: 24px 0 30px;
}

.guide-content article {
  padding: 0 0 32px;
  margin-bottom: 32px;
}

.guide-content article:last-child {
  margin-bottom: 0;
}

.guide-content h2 {
  font-size: 26px;
  letter-spacing: -0.035em;
}

.guide-content p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.guide-resource a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.intro {
  grid-template-columns: 1fr 3fr;
  gap: 40px;
  display: block;
}

.intro-body h2 {
  margin-bottom: 36px;
}

.intro-copy {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 45px;
  max-width: 900px;
}

.intro-copy p {
  font-size: 14px;
  line-height: 1.85;
  color: var(--muted);
}

.about-story {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10%;
  background: var(--pale);
}

.about-story h2 {
  margin-top: 24px;
}

/* Assessment services stay together even on wide displays. */
.assessment-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: start;
  max-width: 1240px;
  margin-inline: auto;
}
.assessment-intro > p {
  max-width: 440px;
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.8;
  color: var(--muted);
}
.assessment-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 32px;
  border-radius: 10px;
}
.assessment-services {
  display: grid;
  gap: 16px;
}
.assessment-card > a {
  display: block;
  padding: clamp(24px, 2.6vw, 36px);
  border-radius: 10px;
  background: #fff;
  transition:
    background 0.3s var(--ease),
    transform 0.3s var(--ease);
}
.assessment-card > a:hover {
  background: var(--pale);
  transform: translateY(-3px);
}
.assessment-card h3 {
  max-width: 420px;
  font-size: clamp(23px, 2vw, 28px);
  line-height: 1.25;
  letter-spacing: -0.035em;
  font-weight: 500;
}
.assessment-card p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
}
.assessment-link {
  margin-top: 18px;
}
@media (max-width: 800px) {
  .assessment-layout {
    grid-template-columns: 1fr;
    gap: 32px;
    max-width: 600px;
  }
  .assessment-intro > p {
    max-width: none;
  }
}

/* Keep the homepage content on the same edges, including on wide screens. */
.home {
  --hero-surface: var(--navy);
  --header-ink: var(--paper);
  --header-focus: var(--accent);
  --header-hover-surface: var(--accent);
  --header-hover-ink: var(--navy);
  --header-menu-active: #1b394e;
  --home-content-width: 1600px;
  --home-gutter: max(6%, calc((100% - var(--home-content-width)) / 2));
}
.home .section:not(.reviews),
.home .reviews-header,
.home footer {
  padding-inline: var(--home-gutter);
}
.home .approach-inner {
  max-width: none;
}

/* The shared navigation takes its colours from the page's hero. */
.hero a:focus-visible {
  outline-color: var(--accent);
}
.hero {
  background: var(--hero-surface);
  color: var(--paper);
  display: grid;
  align-items: center;
  min-height: clamp(620px, calc(84svh - var(--header-height)), 800px);
  padding: clamp(56px, 5vw, 88px) var(--home-gutter) clamp(72px, 6vw, 104px);
}
.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  align-items: center;
  gap: clamp(32px, 4vw, 64px);
  max-width: var(--home-content-width);
  margin-inline: auto;
}
.hero-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
}
.hero h1 {
  font-size: clamp(52px, 5.4vw, 96px);
  line-height: 1.04;
  letter-spacing: -0.06em;
  margin: 0 0 28px;
}
.hero h1 em {
  color: var(--accent);
  letter-spacing: -0.055em;
}
.hero-copy > p {
  max-width: 450px;
  color: #c5d5df;
  font-size: 16px;
  line-height: 1.8;
}
.hero .hero-actions {
  gap: 20px 28px;
  margin-top: 34px;
}
.hero .text-link {
  color: var(--paper);
}
.hero .text-link:hover {
  color: var(--accent);
}
.hero-visual {
  min-width: 0;
  position: relative;
}
.hero-image {
  border-radius: 12px;
  box-shadow: 0 16px 40px #03121e24;
}
.hero-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}
.hero-review-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 8px 0;
  font-size: 12px;
  color: #d2dfe6;
}
.hero-review-link strong {
  font-weight: 500;
}
.hero-review-link .review-stars {
  color: var(--accent);
  font-size: 14px;
}
.hero-review-link:hover strong {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.home .energy-ribbon {
  background: #1b394e;
  color: #d2dfe6;
}
@media (max-width: 1000px) {
  .home {
    --home-content-width: 720px;
  }
  .hero {
    min-height: auto;
    padding-block: 56px 72px;
  }
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .hero h1 {
    font-size: clamp(64px, 8.8vw, 88px);
  }
  .hero-copy > p {
    max-width: 540px;
  }
}
@media (max-width: 700px) {
  .hero {
    padding-block: 44px 56px;
  }
  .hero h1 {
    font-size: clamp(40px, 11.7vw, 76px);
    margin-bottom: 24px;
  }
  .hero-copy > p {
    font-size: 14px;
  }
  .hero .hero-actions {
    gap: 15px 24px;
    margin-top: 26px;
  }
  .hero-review-link {
    margin-top: 22px;
  }
  .hero-inner {
    gap: 28px;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .hero h1 {
    animation: rise-in 0.9s 0.1s both;
  }
  .hero-copy > p {
    animation: rise-in 0.9s 0.2s both;
  }
  .hero-review-link {
    animation: rise-in 0.9s 0.45s both;
  }
  .hero-visual {
    animation: hero-arrive 1.2s 0.25s both;
  }
}
@keyframes hero-arrive {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Motion is progressive enhancement; the document is readable without JavaScript. */
@media (prefers-reduced-motion: no-preference) {
  .page-hero-copy h1 {
    animation: rise-in 1.1s 0.2s both;
  }
  .page-hero-copy > p {
    animation: rise-in 1.1s 0.3s both;
    max-width: 460px;
  }

  .hero-actions {
    animation: rise-in 1.1s 0.4s both;
  }
  .page-photo {
    animation: image-in 1.4s 0.1s both;
  }

  .reveal-ready {
    opacity: 0;
    transform: translateY(34px);
    transition:
      opacity 0.9s var(--ease),
      transform 0.9s var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
  }

  .reveal-ready.is-visible,
  .reveal-ready:focus-within {
    opacity: 1;
    transform: none;
  }
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(24px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@keyframes image-in {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes ribbon-travel {
  to {
    transform: translateX(-50%);
  }
}

@media (min-width: 1600px) {
  .section {
    padding-top: 130px;
    padding-bottom: 130px;
  }
}
@media (max-width: 1000px) {
  .header {
    gap: 26px;
  }

  .desktop-nav {
    gap: 24px;
  }

  .hero-actions {
    gap: 22px;
  }

  .section {
    padding: 85px 6%;
  }

  .reviews {
    padding-left: 0;
    padding-right: 0;
  }

  .service-gallery {
    gap: 22px;
  }

  .tile-content h3 {
    font-size: 23px;
    margin: 0 0 12px;
  }

  .about {
    gap: 7%;
  }

  .about-photo {
    border-radius: 10px;
  }

  .faq {
    gap: 6%;
  }

  .page-hero {
    gap: 5%;
    padding: 50px 6% 60px;
    align-items: center;
  }

  .page-photo {
    border-radius: 10px;
    margin: 0;
    align-self: center;
  }

  .page-hero h1 {
    font-size: clamp(40px, 5.4vw, 60px);
    margin-top: 0;
  }

  .service-page-hero h1 {
    font-size: clamp(36px, 4.8vw, 52px);
  }

  footer {
    flex-wrap: wrap;
  }

  footer div {
    flex-wrap: wrap;
  }
}
@media (max-width: 700px) {
  :root {
    --header-height: 64px;
  }

  .header {
    gap: 14px;
  }

  .brand img {
    width: 160px;
  }

  .header .desktop-nav {
    display: none;
  }

  .header .nav-cta {
    display: none;
  }

  .mobile-menu {
    display: block;
    position: relative;
  }

  .mobile-menu summary {
    list-style: none;
    cursor: pointer;
    width: 44px;
    height: 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    align-items: center;
  }

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

  .mobile-menu summary span {
    display: block;
    width: 21px;
    border-top: 1px solid currentColor;
    transition: transform 0.3s;
  }

  .mobile-menu[open] summary span:first-child {
    transform: translateY(3.5px) rotate(45deg);
  }

  .mobile-menu[open] summary span:last-child {
    transform: translateY(-3.5px) rotate(-45deg);
  }

  .mobile-menu nav {
    position: fixed;
    display: flex;
    flex-direction: column;
    inset: var(--header-height) 0 auto;
    max-height: calc(100dvh - var(--header-height));
    overflow-y: auto;
    background: var(--hero-surface);
    box-shadow: 0 12px 18px #102b4115;
    padding: 12px 6% 20px;
  }

  .mobile-menu nav a {
    padding: 17px 12px;
    border-radius: 6px;
    font-size: 14px;
  }

  .mobile-menu nav a:is(:hover, [aria-current]) {
    background: var(--header-menu-active);
  }

  .hero-actions {
    margin-top: 24px;
  }

  .energy-ribbon {
    padding: 18px 0;
  }

  .ribbon-track > div {
    gap: 28px;
    padding-right: 28px;
  }

  .ribbon-track span {
    font-size: 21px;
  }

  .section {
    padding: 70px 6%;
  }

  .section h2 {
    font-size: clamp(38px, 8.8vw, 54px);
  }

  .section-head {
    display: block;
    margin-bottom: 34px;
  }

  .section-head > p {
    margin-top: 24px;
    max-width: 400px;
  }

  .service-gallery {
    grid-template-columns: 1fr;
    gap: 34px;
    padding-bottom: 0;
  }

  .service-tile:nth-child(n) {
    margin: 0;
  }

  .tile-image {
    border-radius: 10px;
  }

  .tile-content {
    padding-top: 20px;
  }

  .tile-content h3 {
    font-size: 27px;
    margin: 0 0 12px;
  }

  .tile-content p {
    max-width: 440px;
  }

  .tile-link {
    padding-top: 20px;
  }

  .about {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .about-photo {
    max-width: 480px;
    width: 100%;
    justify-self: center;
    border-radius: 10px;
  }

  .about-copy h2 {
    margin: 0 0 26px;
  }

  .experience strong {
    font-size: 73px;
  }

  .reviews-header {
    padding-inline: 6%;
    gap: 22px;
  }

  .reviews-rating {
    flex-direction: column;
    gap: 6px;
  }

  .review-wall {
    margin-top: 32px;
  }

  .review-track,
  .review-group {
    gap: 16px;
  }

  .review-card {
    width: min(360px, calc(100vw - 48px));
    padding: 24px;
  }

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

  .faq-list summary {
    font-size: 13px;
    padding: 21px 0;
  }

  .contact h2 {
    font-size: clamp(48px, 11.5vw, 80px);
    margin: 0 0 34px;
  }

  .contact-bottom {
    display: block;
    padding-top: 0;
  }

  .contact-bottom .button {
    margin-top: 25px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding: 36px 6%;
  }

  footer div {
    margin: 5px 0 0;
    gap: 18px 22px;
  }

  .page-hero {
    grid-template-columns: 1fr;
    padding: 40px 6% 45px;
    gap: 30px;
    align-items: center;
  }

  .page-hero-copy {
    padding: 0;
  }

  .page-hero h1 {
    font-size: clamp(43px, 10vw, 65px);
    margin: 24px 0 22px;
    margin-top: 0;
  }

  .page-hero-copy > p {
    max-width: 450px;
    font-size: 14px;
  }

  .page-photo {
    border-radius: 10px;
    margin: 0;
    align-self: center;
  }

  .service-page-hero h1 {
    font-size: clamp(38px, 9vw, 58px);
  }

  .service-guide {
    grid-template-columns: 1fr;
    gap: 42px;
  }

  .guide-intro {
    position: static;
  }

  .guide-content h2 {
    font-size: 25px;
  }

  .intro,
  .intro-copy,
  .about-story {
    grid-template-columns: 1fr;
  }

  .intro {
    gap: 25px;
    display: block;
  }

  .intro-copy {
    gap: 16px;
  }

  .intro-body h2 {
    margin-bottom: 26px;
  }

  .about-story {
    gap: 28px;
  }
}
@media (max-width: 360px) {
  .hero-actions {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal-ready {
    opacity: 1;
    transform: none;
  }
  .page-photo img,
  .review-rail {
    scrollbar-width: thin;
  }

  .review-rail::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .button:hover,
  .nav-cta:hover,
  .button:is(:hover, :focus-visible)::after,
  .cta-link:is(:hover, :focus-visible)::after,
  a:is(:hover, :focus-visible) .cta-link::after,
  .assessment-card > a:hover,
  .engineering-card > a:hover {
    transform: none;
  }
}
@media print {
  .review-wall {
    mask-image: none;
  }
  .reveal-ready {
    opacity: 1;
    transform: none;
  }

  .review-rail {
    overflow: visible;
  }

  .review-track,
  .review-group {
    width: auto;
    flex-wrap: wrap;
  }

  .review-group[aria-hidden] {
    display: none;
  }
  .page-photo {
    animation: none;
  }
}
.page-photo img {
  border-radius: 10px;
}
.page-photo {
  overflow: visible;
  background: transparent;
}
.page-hero h1 {
  margin-top: 0;
}
.about-story h2 {
  margin-top: 0;
}
.ribbon-track > div {
  gap: 90px;
  padding-right: 90px;
}
.ribbon-track span {
  font-size: 22px;
  white-space: nowrap;
}
@media (max-width: 1000px) {
}
@media (max-width: 700px) {
  .page-photo {
    width: 100%;
  }
  .ribbon-track span {
    font-size: 19px;
  }
}

/* Contact: direct options beside a focused enquiry form. */
.enquiry-section {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  align-items: start;
  gap: clamp(40px, 6vw, 90px);
  max-width: 1520px;
  margin: 0 auto;
}
.contact-details h2 {
  font-size: clamp(34px, 3.5vw, 50px);
  line-height: 1.15;
  letter-spacing: -0.04em;
}
.contact-details h2 em {
  font-family: Georgia, serif;
  font-weight: 400;
}
.contact-options {
  margin-top: 30px;
  display: grid;
  gap: 12px;
  max-width: 390px;
}
.contact-option {
  padding: 24px;
  border-radius: 10px;
  background: var(--pale);
}
.contact-options h3 {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 10px;
}
.phone-number {
  display: inline-block;
  font-size: clamp(22px, 2.2vw, 29px);
  font-weight: 500;
  letter-spacing: -0.03em;
}
.phone-actions {
  display: flex;
  gap: 12px;
  margin-top: 18px;
}
.phone-actions a {
  background: var(--paper);
  padding: 12px 18px;
  border-radius: 5px;
  font-size: 13px;
  font-weight: 500;
  transition: background 0.2s;
}
.phone-actions a:hover {
  background: var(--accent);
}
.whatsapp-option {
  display: flex;
  align-items: center;
  gap: 16px;
  transition: background 0.25s;
}
.whatsapp-option:hover {
  background: #d8e3e7;
}
.whatsapp-option img {
  width: 27px;
  height: 27px;
}
.whatsapp-option > span {
  display: grid;
  gap: 5px;
}
.whatsapp-option strong {
  font-size: 17px;
  font-weight: 500;
}
.contact-email {
  padding: 18px 0;
}
.contact-email a {
  font-size: clamp(16px, 1.6vw, 20px);
  overflow-wrap: anywhere;
}
.contact-email a:hover {
  text-decoration: underline;
  text-underline-offset: 5px;
}
.contact-location {
  margin-top: 24px;
}
.contact-location address {
  font-size: 13px;
  line-height: 1.8;
  font-style: normal;
  color: var(--muted);
}
.contact-location .inline-link {
  margin-top: 16px;
}
.enquiry-panel {
  padding: clamp(24px, 3.2vw, 46px);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 12px 50px #102b4105;
  min-width: 0;
}
.enquiry-panel h2 {
  font-size: clamp(25px, 2.5vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.04em;
}
.form-notice {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px 20px;
  margin-top: 30px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.field-wide {
  grid-column: 1 / -1;
}
.enquiry-panel label {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
}
.form-field label span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 400;
}
.enquiry-panel input,
.enquiry-panel select,
.enquiry-panel textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d4dfe2;
  border-radius: 5px;
  background: #fafbf9;
  color: var(--navy);
  font: inherit;
  font-size: 16px;
  padding: 13px 12px;
  line-height: 1.5;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.enquiry-panel select {
  padding-right: 30px;
  text-overflow: ellipsis;
}
.enquiry-panel textarea {
  resize: vertical;
  min-height: 145px;
}
.enquiry-panel ::placeholder {
  color: #647783;
  opacity: 1;
  font-size: 14px;
}
.enquiry-panel :is(input, select, textarea):focus {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-color: var(--blue);
  background: #fff;
}
.enquiry-panel button {
  cursor: pointer;
  font-family: inherit;
}
.enquiry-panel button:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 4px;
}
.form-submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 26px;
}
.form-submit p {
  flex: 1 1 180px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}
.enquiry-panel :disabled {
  cursor: default;
  opacity: 0.7;
}
.form-status {
  font-size: 14px;
  line-height: 1.7;
  margin-top: 18px;
}
.form-status:empty {
  display: none;
}
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.enquiry-section [hidden] {
  display: none !important;
}
@media (max-width: 1000px) {
  .enquiry-section {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: 30px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 700px) {
  .enquiry-section {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .contact-options {
    max-width: none;
  }
  .contact-option {
    padding: 22px;
  }
  .enquiry-panel {
    padding: 26px 20px;
  }
}
