@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/assets/fonts/barlow-400.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/assets/fonts/barlow-500.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/assets/fonts/barlow-600.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/assets/fonts/barlow-700.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url("/assets/fonts/barlow-800.woff2") format("woff2");
}

/* SG Construction template — core design system
   Calm, established and residential. Mobile-first, keyboard-friendly and width-safe. */

:root {
  --ink: #f7f8fa;
  --ink-soft: #d1d6dc;
  --muted: #aab2bb;
  --canvas: #0b0f14;
  --canvas-deep: #070a0e;
  --paper: #151b22;
  --paper-warm: #10161c;
  --brand: #c8ced5;
  --brand-dark: #f7f8fa;
  --brand-light: #29313a;
  --accent: #aeb7c1;
  --gold: #c3c9cf;
  --success: #236a45;
  --danger: #a0392b;
  --line: rgba(220, 226, 232, 0.14);
  --line-strong: rgba(220, 226, 232, 0.26);
  --shadow-xs: 0 3px 10px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --gutter: clamp(1rem, 4vw, 2rem);
  --content: 1180px;
  --measure: 68ch;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: Georgia, "Times New Roman", serif;
  --header-height: 88px;
  --focus-ring: 0 0 0 3px rgba(200, 206, 213, 0.35);
}

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

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--canvas);
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

@supports (overflow: clip) {

  body,
  main {
    overflow-x: clip;
  }
}

main,
header,
footer,
section,
article,
aside,
nav,
form,
fieldset,
div {
  min-width: 0;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
  border: 0;
}

button,
input,
select,
textarea {
  max-width: 100%;
  margin: 0;
  color: inherit;
  font: inherit;
}

input,
select,
textarea {
  font-size: 16px;
}

button,
select {
  touch-action: manipulation;
}

textarea {
  resize: vertical;
}

a {
  color: inherit;
  text-decoration-color: rgba(200, 206, 213, 0.42);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--brand-dark);
  text-decoration-color: currentColor;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  max-width: 100%;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.028em;
  overflow-wrap: break-word;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.45rem, 6.4vw, 5rem);
}

h2 {
  font-size: clamp(2rem, 4.2vw, 3.45rem);
}

h3 {
  font-size: clamp(1.3rem, 2.2vw, 1.75rem);
}

p,
li,
small {
  overflow-wrap: break-word;
  text-wrap: pretty;
}

p {
  max-width: var(--measure);
  margin: 0;
  color: var(--ink-soft);
}

p+p {
  margin-top: 1rem;
}

ul,
ol {
  color: var(--ink-soft);
}

::selection {
  color: #0b0f14;
  background: var(--brand);
}

:focus {
  scroll-margin-block: calc(var(--header-height) + 1rem) 2rem;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  box-shadow: var(--focus-ring);
}

[hidden] {
  display: none !important;
}

.container {
  width: calc(100% - (2 * var(--gutter)));
  max-width: var(--content);
  margin-inline: auto;
}

.container>*,
.split>*,
.two-column>*,
.service-detail-grid>*,
.work-case-grid>*,
.work-detail-grid>*,
.contact-flow-layout>*,
.footer-main>* {
  min-width: 0;
}

.narrow {
  width: calc(100% - (2 * var(--gutter)));
  max-width: 880px;
  margin-inline: auto;
}

.section {
  padding-block: 30px;
}

.section+.section {
  border-top: 1px solid var(--line);
}

.section-heading {
  display: grid;
  gap: 0.85rem;
  max-width: 780px;
  margin-bottom: clamp(1.75rem, 3vw, 2.75rem);
}

.split,
.two-column,
.service-detail-grid,
.service-body .container,
.work-case-grid,
.work-detail-grid,
.contact-flow-layout,
.coverage-grid,
.portfolio-grid,
.footer-main,
.trust-panel {
  display: grid;
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.split,
.two-column {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
}

.kicker {
  display: none !important;
  align-items: center;
  gap: 0.72rem;
  max-width: 100%;
  color: var(--brand);
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.kicker+h1,
.kicker+h2,
.kicker+h3 {
  margin-top: 0.85rem;
}

h1+p,
h2+p,
h3+p {
  margin-top: 0.85rem;
}

p+.btn,
p+a.btn,
ul+.btn,
.section .split a.btn {
  margin-top: 1.35rem;
}

/* Buttons */
.btn,
input[type="submit"],
.form-actions button {
  display: inline-flex;
  width: auto;
  min-width: 0;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.35rem;
  border: 1px solid var(--brand);
  border-radius: 6px;
  appearance: none;
  background: var(--brand);
  color: #0b0f14;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.055em;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.btn:hover,
input[type="submit"]:hover,
.form-actions button:hover {
  border-color: var(--brand-dark);
  background: var(--brand-dark);
  color: #0b0f14;
  box-shadow: 0 12px 28px rgba(200, 206, 213, 0.2);
  text-decoration: none;
  transform: translateY(-1px);
}

.btn:active,
.form-actions button:active {
  transform: translateY(0);
}

.btn-outline,
.form-actions .flow-back {
  border-color: rgba(200, 206, 213, 0.55);
  background: transparent;
  color: var(--brand-dark);
  box-shadow: none;
}

.btn-outline:hover,
.form-actions .flow-back:hover {
  border-color: var(--brand);
  background: var(--brand);
  color: #0b0f14;
}

.btn-white {
  border-color: #fff;
  background: #f7f8fa;
  color: #0b0f14;
}

.btn-white:hover {
  border-color: var(--paper-warm);
  background: #dfe3e7;
  color: #0b0f14;
}

.btn-small {
  min-height: 44px;
  padding-inline: 1rem;
}

/* Header base */
.header {
  position: sticky;
  z-index: 1000;
  top: 0;
  width: 100%;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 4px 20px rgba(31, 27, 23, 0.035);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.header-inner {
  position: relative;
  display: flex;
  min-height: var(--header-height);
  align-items: center;
  gap: clamp(0.75rem, 1.8vw, 1.4rem);
}

.logo {
  display: inline-flex;
  flex: 0 1 205px;
  width: 205px;
  min-width: 150px;
  min-height: 68px;
  align-items: center;
  margin-right: auto;
  text-decoration: none;
}

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

.nav {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.nav>a,
.nav-group>summary {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 0.42rem;
  padding: 0.45rem 0.72rem;
  border-radius: 6px;
  color: #333840;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}

.nav>a:hover,
.nav>a.active,
.nav-group.active>summary,
.nav-group>summary:hover {
  color: var(--brand);
  background: rgba(200, 206, 213, 0.055);
}

.nav-group {
  position: relative;
}

.nav-group>summary {
  list-style: none;
}

.nav-group>summary::-webkit-details-marker,
.nav-group>summary::marker {
  display: none;
  content: "";
}

.nav-chevron {
  width: 11px;
  height: 7px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  transition: transform 180ms ease;
}

.nav-group[open] .nav-chevron {
  transform: rotate(180deg);
}

.nav-dropdown,
.nav-explore {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 5;
  display: grid;
  width: min(360px, calc(100vw - 2rem));
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.99);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 7px);
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  visibility: hidden;
}

.nav-group[open]>.nav-dropdown,
.nav-group[open]>.nav-explore {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-dropdown>a,
.nav-explore>a {
  display: grid;
  min-height: 58px;
  align-content: center;
  gap: 0.12rem;
  padding: 0.68rem 0.8rem;
  border-radius: 4px;
  color: var(--ink);
  font-size: 0.82rem;
  line-height: 1.3;
  text-decoration: none;
}

.nav-dropdown>a:hover,
.nav-explore>a:hover,
.nav-dropdown>a:focus-visible,
.nav-explore>a:focus-visible {
  background: var(--brand-light);
  color: var(--brand-dark);
}

.nav-dropdown>a>span,
.nav-explore>a>span {
  display: grid;
  gap: 0.12rem;
}

.nav-dropdown small,
.nav-explore small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.menu-feature {
  background: var(--ink);
  color: #fff !important;
}

.menu-feature small {
  color: rgba(255, 255, 255, 0.68);
}

.menu-feature:hover,
.menu-feature:focus-visible {
  background: var(--brand-dark) !important;
}

.btn-header {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: 1.1rem;
  letter-spacing: 0.01em;
  text-transform: none;
}

.nav>.mobile-quote-link,
.nav-toggle {
  display: none;
}

/* Hero foundations */
.home-hero,
.page-hero,
.contact-hero,
.service-detail-hero,
.work-hero,
.areas-hero {
  position: relative;
  isolation: isolate;
}

.home-hero.sg-hero {
  display: grid;
  width: calc(100% - (2 * var(--gutter)));
  max-width: var(--content);
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
  margin: clamp(1.5rem, 3vw, 2.5rem) auto;
  padding: clamp(1.25rem, 3vw, 2.2rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 6% 8%, rgba(174, 183, 193, 0.1), transparent 32%),
    var(--paper-warm);
  box-shadow: var(--shadow-sm);
}

.sg-hero-image {
  grid-column: 2;
  grid-row: 1;
  min-height: clamp(430px, 47vw, 585px);
  overflow: hidden;
  border-radius: calc(var(--radius-lg) - 7px);
  background: #d9d2c8;
}

.sg-hero-image img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.sg-hero-copy {
  align-items: flex-start;
  justify-content: center;
  margin: 0;
}

.sg-hero-copy h1 {
  margin-top: 0.85rem;
  font-size: clamp(2.6rem, 4.8vw, 4.75rem);
}

.rover-overlay {
  position: absolute;
  top: 30px;
  left: 15%;
}

.sg-hero-copy p {
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.hero-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.55rem;
}

.page-hero,
.contact-hero,
.service-detail-hero,
.work-hero,
.areas-hero {
  overflow: hidden;
  padding-block: clamp(4.25rem, 8vw, 7.25rem);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(174, 183, 193, 0.14), transparent 30%),
    linear-gradient(128deg, #fbf8f4 0%, #f1e8de 100%);
}

.areas-hero {
  padding-block: 0 !important;
}

.page-hero::after,
.contact-hero::after,
.service-detail-hero::after,
.work-hero::after {
  position: absolute;
  right: max(var(--gutter), calc((100% - var(--content)) / 2));
  bottom: -84px;
  z-index: -1;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(200, 206, 213, 0.13);
  border-radius: 50%;
  content: "";
}

.page-hero h1,
.contact-hero h1,
.service-detail-hero h1,
.work-hero h1,
.areas-hero h1 {
  max-width: 13ch;
  margin-top: 0.8rem;
}

.page-hero p,
.contact-hero p,
.service-detail-hero p,
.work-hero p,
.areas-hero p {
  margin-top: 1.05rem;
  padding: 10px;
  border-radius: 15px;
  font-size: clamp(1rem, 1.3vw, 1.12rem);
}

.page-hero .btn,
.contact-hero .btn,
.service-detail-hero .btn,
.work-hero .btn,
.areas-hero .btn {
  margin-top: 1.45rem;
}

/* Shared cards and grids */
.sg-service-grid,
.sg-work-card-stack,
.trust-list,
.testimonial-list,
.area-location-grid,
.work-projects,
.market-steps,
.footer-contact-list,
.flow-fields {
  display: grid;
  gap: 1rem;
}

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

.sg-service-grid>a,
.sg-work-card,
.project-card,
.service-summary,
.contact-panel,
.business-contact-card,
.service-note,
.area-location-grid article,
.work-case-study,
.footer-cta,
.testimonial-card,
.trust-panel,
.enquiry-panel,
.form-success {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.sg-service-grid>a,
.sg-work-card,
.project-card {
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.sg-service-grid>a:hover,
.sg-work-card:hover,
.project-card:hover {
  border-color: rgba(200, 206, 213, 0.28);
  color: inherit;
  box-shadow: var(--shadow-sm);
  text-decoration: none;
  transform: translateY(-3px);
}

.sg-service-grid>a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
}

.sg-service-grid>a img {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ded8d0;
  object-fit: cover;
}

.sg-service-grid>a h3 {
  margin: 1.05rem 1.1rem 0;
  font-size: 1.38rem;
}

.sg-service-grid>a p {
  margin: 0.48rem 1.1rem 1.25rem;
  font-size: 0.94rem;
}

.trust-panel {
  align-items: stretch;
  padding: clamp(1rem, 2vw, 1.35rem);
  background:
    linear-gradient(145deg, rgba(244, 226, 212, 0.72), rgba(255, 255, 255, 0.94)),
    var(--paper);
}

.trust-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.trust-list span {
  position: relative;
  display: flex;
  min-height: 84px;
  align-items: center;
  padding: 1rem 1rem 1rem 2.55rem;
  border: 1px solid rgba(200, 206, 213, 0.15);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.35;
}

.trust-list span::before {
  position: absolute;
  left: 1rem;
  width: 1rem;
  height: 1rem;
  border: 2px solid var(--accent);
  border-radius: 50%;
  content: "";
}

.trust-list span::after {
  position: absolute;
  left: 1.32rem;
  width: 0.36rem;
  height: 0.62rem;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  content: "";
  transform: translateY(-1px) rotate(45deg);
}

.testimonial-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.testimonial-card {
  padding: 1.25rem;
}

.testimonial-card p {
  font-size: 0.95rem;
}

/* Service page components */
.service-detail-grid {
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.86fr);
  align-items: center;
}

.service-image,
.work-case-image,
.sg-work-card-media {
  overflow: hidden;
  border-radius: var(--radius);
  background: #d8d2cb;
}

.service-image {
  border: 1px solid rgba(37, 33, 29, 0.12);
  box-shadow: var(--shadow-sm);
}

.service-image img,
.work-case-image img {
  width: 100%;
  height: 100%;
  min-height: 330px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.service-body .container {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.service-note {
  margin-top: 1.4rem;
  padding: 1.1rem 1.2rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-warm);
}

.service-note p {
  margin-top: 0.35rem;
  font-size: 0.93rem;
}

.included-list {
  display: grid;
  gap: 0.65rem;
  margin: 1.2rem 0 0;
  padding: 0;
  list-style: none;
}

.included-list li {
  position: relative;
  padding: 0.82rem 0.9rem 0.82rem 2.5rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink-soft);
}

.included-list li::before {
  position: absolute;
  top: 0.92rem;
  left: 1rem;
  width: 0.85rem;
  height: 0.5rem;
  border-bottom: 2px solid var(--brand);
  border-left: 2px solid var(--brand);
  content: "";
  transform: rotate(-45deg);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.42rem;
  margin: 0 0 1rem;
  padding: 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.5;
  text-transform: uppercase;
}

.breadcrumbs a {
  min-height: 24px;
}

/* Contact form */
.contact-flow-section {
  padding-block: clamp(2.5rem, 6vw, 5rem);
}

.contact-flow-layout {
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.76fr);
  align-items: start;
}

.enquiry-panel,
.business-contact-card {
  padding: clamp(1rem, 2.6vw, 1.75rem);
}

.form-progress {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.form-progress-bar {
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--canvas-deep);
}

.form-progress-bar span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transition: width 220ms ease;
}

.form-progress-label {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.62rem;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-progress-label b {
  color: var(--ink);
}

.form-step {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.form-step:not(.is-active) {
  display: none;
}

.form-step legend {
  max-width: 100%;
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.step-intro {
  margin-top: 0.6rem;
  margin-bottom: 1.15rem;
}

.service-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.service-options label {
  position: relative;
  min-width: 0;
  margin: 0;
  cursor: pointer;
}

.service-options input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.service-options label>span {
  display: grid;
  min-height: 112px;
  grid-template-areas:
    "icon title"
    "icon copy";
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  align-content: start;
  column-gap: 0.72rem;
  row-gap: 0.22rem;
  padding: 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--paper);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.service-options svg {
  grid-area: icon;
  width: 24px;
  height: 24px;
  margin-top: 0.1rem;
  fill: none;
  stroke: var(--brand);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.service-options b {
  grid-area: title;
  color: var(--ink);
  font-size: 0.96rem;
  line-height: 1.35;
}

.service-options small {
  grid-area: copy;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.service-options label:hover>span {
  border-color: rgba(200, 206, 213, 0.55);
  background: var(--paper-warm);
}

.service-options input:focus-visible+span {
  border-color: var(--accent);
  box-shadow: var(--focus-ring);
}

.service-options input:checked+span {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: inset 4px 0 0 var(--brand);
}

.flow-fields {
  grid-template-columns: 1fr;
}

.flow-fields.two-column {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.flow-fields label {
  min-width: 0;
  margin: 0;
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 750;
}

.flow-fields label>span {
  display: block;
  margin-bottom: 0.42rem;
}

.flow-fields label em {
  color: var(--muted);
  font-weight: 500;
}

.flow-fields input,
.flow-fields select,
.flow-fields textarea,
.quote-form input,
.quote-form select,
.quote-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 0.72rem 0.82rem;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  appearance: none;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.35;
  outline: none;
  transition: border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.flow-fields select,
.quote-form select {
  padding-right: 2.6rem;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--muted) 50%),
    linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 13px) 50%;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.flow-fields textarea,
.quote-form textarea {
  min-height: 150px;
}

.flow-fields input:focus,
.flow-fields select:focus,
.flow-fields textarea:focus,
.quote-form input:focus,
.quote-form select:focus,
.quote-form textarea:focus {
  border-color: var(--brand);
  background: var(--paper);
  box-shadow: var(--focus-ring);
}

::placeholder {
  color: #8a8f96;
  opacity: 1;
}

.consent-check {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  margin-top: 1.05rem;
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.45;
  cursor: pointer;
}

.consent-check input {
  width: 20px;
  height: 20px;
  margin-top: 0.1rem;
  accent-color: var(--brand);
}

.form-error {
  min-height: 1.35rem;
  margin-top: 0.75rem;
  color: var(--danger);
  font-size: 0.86rem;
  font-weight: 700;
}

.form-error:empty {
  min-height: 0.2rem;
  margin-top: 0.4rem;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.7rem;
  margin-top: 1.2rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.form-actions button:disabled {
  cursor: wait;
  opacity: 0.7;
}

.form-success {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  text-align: center;
}

.form-success>svg {
  width: 58px;
  height: 58px;
  margin: 0 auto 1rem;
  fill: none;
  stroke: var(--success);
  stroke-width: 3;
}

.form-success .kicker {
  justify-content: center;
}

.form-success .btn {
  margin-top: 1.3rem;
}

.business-contact-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--paper-warm);
  box-shadow: var(--shadow-sm);
}

.business-contact-card h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 3.8vw, 3rem);
}

.business-contact-card>p {
  margin-top: 0.8rem;
}

.direct-contact-list {
  display: grid;
  gap: 0.62rem;
  margin: 1.35rem 0 0;
  padding: 0;
  list-style: none;
}

.direct-contact-list a {
  display: grid;
  min-height: 58px;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--paper);
  color: var(--ink);
  text-decoration: none;
}

.direct-contact-list a:hover {
  border-color: rgba(200, 206, 213, 0.36);
  color: var(--brand-dark);
  background: var(--brand-light);
}

.direct-contact-list svg {
  width: 21px;
  height: 21px;
  justify-self: center;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.direct-contact-list .whatsapp-link svg {
  fill: currentColor;
  stroke: none;
}

.direct-contact-list span {
  min-width: 0;
}

.direct-contact-list small,
.direct-contact-list b {
  display: block;
  overflow-wrap: anywhere;
}

.direct-contact-list small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.direct-contact-list b {
  font-size: 0.9rem;
  line-height: 1.35;
}

.contact-area {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  align-items: start;
  gap: 0.75rem;
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.contact-area svg {
  width: 21px;
  height: 21px;
  margin-top: 0.1rem;
  justify-self: center;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.8;
}

.contact-area b,
.contact-area small {
  display: block;
}

.contact-area small {
  margin-top: 0.2rem;
  color: var(--muted);
}

/* Standalone call to action */
.cta {
  padding-block: clamp(2.5rem, 5vw, 4.25rem);
  background:
    radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.11), transparent 34%),
    linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
}

.cta .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.cta h2 {
  color: #fff;
  font-size: clamp(1.85rem, 3.6vw, 3rem);
}

.cta p {
  margin-top: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
}

.cta .btn {
  flex: 0 0 auto;
}

/* Footer */
.footer {
  margin: 0;
  border-top: 4px solid var(--accent);
  background: #171c22;
  color: #eef0f2;
}

.footer-main {
  grid-template-columns: minmax(260px, 1.2fr) minmax(150px, 0.67fr) minmax(145px, 0.62fr) minmax(250px, 0.9fr);
  align-items: start;
  padding-block: clamp(3rem, 6vw, 5rem);
}

.footer-company>p,
.footer-cta p {
  color: #bec4cb;
}

.footer-brand {
  display: inline-flex;
  width: min(310px, 100%);
  min-height: 0;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.95rem;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  text-decoration: none;
}

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

.footer .direct-contact-list {
  margin-top: 1.2rem;
}

.footer .direct-contact-list a {
  min-height: 48px;
  padding: 0.42rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #e7eaed;
}

.footer .direct-contact-list a:hover {
  color: #fff;
  background: transparent;
}

.footer .direct-contact-list small {
  color: #929aa3;
}

.footer nav {
  display: grid;
  align-content: start;
  gap: 0.25rem;
}

.footer nav h2,
.footer-cta h2 {
  margin-bottom: 0.75rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.footer nav a {
  display: flex;
  min-height: 42px;
  align-items: center;
  color: #c9ced4;
  font-size: 0.9rem;
  text-decoration: none;
}

.footer nav a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer-cta {
  padding: 1.25rem;
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.045);
  box-shadow: none;
}

.footer-cta .kicker {
  color: #c8ced5;
}

.footer-cta .kicker::before {
  background: currentColor;
}

.footer-cta h2 {
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-transform: none;
}

.footer-cta .btn {
  width: 100%;
  margin-top: 1.15rem;
}

.footer-legal {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.25rem 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #9da5ae;
  font-size: 0.75rem;
}

.footer-legal>div {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-legal a {
  min-height: 32px;
  color: #bcc2c9;
}

/* Legal and retained content pages */
.legal-copy {
  display: block;
  max-width: 780px;
}

.legal-copy h2 {
  margin-top: 2rem;
  font-size: clamp(1.45rem, 3vw, 2.05rem);
}

.legal-copy h2:first-child {
  margin-top: 0;
}

.legal-copy h2+p {
  margin-top: 0.65rem;
}

.text-link {
  color: var(--brand-dark);
  font-weight: 750;
}
  .home-hero .sg-hero-copy h1 {    grid-row: none !important;
    text-wrap: nowrap !important;
    text-align: center !important;
    margin: auto !important;
    width: 100% !important;
    display: grid !important;
    padding-inline: 10px;
    margin-top: 10px !important;
    font-size: 60px;
    display: none !important;
  }

/* Desktop hero: full-width project image with an accessible contrast layer. */
@media (min-width: 901px) {
  .home-hero.sg-hero {
    position: relative;
    display: grid;
    width: 100%;
    max-width: none;
    min-height: clamp(620px, calc(100svh - var(--header-height)), 780px);
    grid-template-columns: 1fr;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #25282b;
    box-shadow: none;
  }

  .home-hero.sg-hero::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    background:
      linear-gradient(90deg, rgba(20, 22, 24, 0.88) 0%, rgba(20, 22, 24, 0.72) 40%, rgba(20, 22, 24, 0.2) 72%, rgba(20, 22, 24, 0.08) 100%),
      linear-gradient(0deg, rgba(20, 22, 24, 0.22), transparent 42%);
    pointer-events: none;
  }

  .home-hero .sg-hero-image {
    position: absolute;
    inset: 0;
    z-index: auto;
    isolation: auto;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    height: 100%;
    min-height: 100%;
    border-radius: 0;
  }

  .home-hero .sg-hero-image img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-position: center;
  }

  .home-hero .sg-hero-copy {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    max-width: 100%;
    
    padding-inline: max(5%, calc((100% - 1250px) / 2));
    min-height: 100%;
    grid-template-columns: minmax(180px, 320px) minmax(220px, 1fr) max-content max-content;
    align-items: center;
    column-gap: clamp(0.75rem, 2vw, 2.25rem);
    margin-inline: auto;
    padding-block: 3.5rem;
  }

  .home-hero .sg-hero-copy > .kicker {
    position: absolute;
    top: 1.5rem;
    left: 0;
  }

  .home-hero .sg-hero-copy > img {
    width: 100%;
    margin-left: 0 !important;
  }

  .home-hero .sg-hero-copy .kicker,
  .home-hero .sg-hero-copy h1 {
    color: #fff;
  }

  .home-hero .sg-hero-copy p {
    max-width: 48ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.86);
  }

  .home-hero .sg-hero-copy .hero-buttons {
    display: contents;
  }

  .home-hero .sg-hero-copy .btn {
    white-space: nowrap;
  }

  .home-hero .btn-outline {
    border-color: rgba(255, 255, 255, 0.72);
    color: #fff;
    background: rgba(20, 22, 24, 0.16);
  }

  .home-hero .btn-outline:hover {
    border-color: #fff;
    color: var(--ink);
    background: var(--paper);
  }
}

/* Tablet layout */
@media (max-width: 1080px) {
  :root {
    --header-height: 78px;
  }

  .header-inner {
    min-height: var(--header-height);
  }

  .logo {
    flex-basis: 190px;
    width: 190px;
    min-height: 62px;
  }

  .logo img {
    width: 200px !important;
        max-height: 421px !important;
        max-width: 500px !important;
  }

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

  .footer-main {
    grid-template-columns: minmax(0, 1.1fr) minmax(160px, 0.7fr) minmax(160px, 0.7fr);
  }

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

@media (max-width: 900px) {
  .home-hero.sg-hero {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .sg-hero-image,
  .sg-hero-copy {
    grid-column: 1;
  }

  .sg-hero-image {
    grid-row: 1;
    min-height: 0;
    border-radius: 0;
  }

  .sg-hero-image img {
    min-height: 0;
    aspect-ratio: 16 / 10;
  }

  .sg-hero-copy {
    grid-row: 2;
    padding: clamp(1.4rem, 5vw, 2.5rem);
        background: #081922;
        place-self: center;
        width: 100%;
        text-align: center;
  }

  .service-detail-grid,
  .service-body .container,
  .work-case-grid,
  .contact-flow-layout {
    grid-template-columns: 1fr;
  }

  .business-contact-card {
    position: static;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-company,
  .footer-cta {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  :root {
    --gutter: 1rem;
    --header-height: 74px;
    --radius-sm: 0px;
    --radius: 0px;
    --radius-lg: 0px;
  }

  .section {
    padding-block: 10px;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.2rem);
  }

  h2 {
    font-size: clamp(1.85rem, 8.6vw, 2.65rem);
  }

  h3 {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .split,
  .two-column,
  .trust-panel,
  .trust-list,
  .testimonial-list,
  .service-options,
  .flow-fields.two-column,
  .sg-service-grid {
    grid-template-columns: 1fr;
  }

  .rover-overlay {
    position: relative;
    margin-top: 20px;
    top: 0;
    left: 0;
  }

  section.page-hero.areas-hero {
    display: flex;
    flex-direction: column-reverse;
  }

  .sg-atelier-grid,
  .sg-service-grid,
  .area-location-grid,
  .market-steps,
  .trust-panel,
  .contact-flow-layout,
  .service-body .container,
  .work-case-grid {
    width: calc(100% + (2 * var(--gutter)));
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
  }

  .container.contact-flow-layout,
  .service-body .container,
  .container.market-steps,
  .container.work-case-grid {
    width: 100%;
    margin-inline: 0;
  }

  .sg-atelier-grid,
  .sg-work-card-stack,
  .sg-service-grid,
  .area-location-grid,
  .market-steps,
  .trust-list,
  .testimonial-list,
  .contact-flow-layout,
  .service-body .container,
  .work-case-grid {
    grid-template-columns: 1fr;
  }

  .sg-service-grid>a,
  .sg-work-card,
  .project-card,
  .service-summary,
  .contact-panel,
  .business-contact-card,
  .service-note,
  .area-location-grid article,
  .work-case-study,
  .footer-cta,
  .testimonial-card,
  .trust-panel,
  .trust-list span,
  .enquiry-panel,
  .form-success,
  .service-body .container>div,
  .market-steps article,
  .market-steps li,
  .area-enquiry,
  .service-options label>span,
  .service-image,
  .work-case-image,
  .sg-work-card-media {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .contact-flow-layout {
    gap: 0;
    background: transparent;
  }

  .enquiry-panel,
  .business-contact-card,
  .service-body .container>div,
  .area-location-grid article,
  .market-steps article,
  .market-steps li,
  .work-case-content {
    padding-inline: var(--gutter);
  }

  .service-options input:checked+span {
    border: 0;
    background: var(--brand-light);
    box-shadow: inset 4px 0 0 var(--brand);
  }

  .service-options input:focus-visible+span {
    border: 0;
    box-shadow: inset 0 0 0 2px var(--accent);
  }

  .page-hero,
  .contact-hero,
  .service-detail-hero,
  .work-hero,
  .areas-hero {
    padding-block: clamp(2.7rem, 12vw, 4rem);
  }

  .page-hero h1,
  .contact-hero h1,
  .service-detail-hero h1,
  .work-hero h1,
  .areas-hero h1 {
    max-width: none;
  }

  .home-hero.sg-hero {
    width: 100%;
    margin: 0;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
  }

  .sg-hero-copy h1 {
        font-size: 20px !important;
        padding-bottom: 20px !important;
  }

  .service-options label>span {
    min-height: 96px;
  }

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

  .footer-company,
  .footer-cta {
    grid-column: auto;
  }

  .footer-legal {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta .container {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 540px) {
  .logo {
    flex: 0 1 174px;
    width: 174px;
    min-width: 0;
    min-height: 58px;
  }

  .logo img {
    max-width: 174px;
    max-height: 64px;
  }

  .btn-header {
    display: none;
  }

  .hero-buttons {
    width: 100%;
    flex-direction: column;
  }

  .hero-buttons .btn,
  .cta .btn,
  .form-actions button,
  .form-success .btn {
    width: 100%;
  }

  .form-actions {
    flex-wrap: wrap;
  }

  .form-actions .flow-back {
    order: 2;
  }

  .form-actions .flow-next,
  .form-actions .flow-submit {
    order: 1;
  }

  .kicker {
    letter-spacing: 0.13em;
  }

  .footer-brand {
    width: min(250px, 100%);
  }
}

@media (max-width: 350px) {
  :root {
    --gutter: 0.875rem;
  }

  body {
    font-size: 15.5px;
  }

  h1,
  .sg-hero-copy h1 {
    font-size: 2.08rem;
  }

  .logo {
    flex-basis: 158px;
    width: 158px;
  }

  .logo img {
    max-width: 158px;
  }

  .kicker {
    font-size: 0.63rem;
  }
}

@media (hover: none) {

  .btn:hover,
  .sg-service-grid>a:hover,
  .sg-work-card:hover,
  .project-card:hover {
    transform: none;
  }
}

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

@media print {

  .header,
  .footer,
  .cta,
  .hero-buttons,
  .btn {
    display: none !important;
  }

  body {
    background: var(--paper);
  }

  .section,
  .page-hero,
  .contact-hero,
  .service-detail-hero,
  .work-hero,
  .areas-hero {
    padding-block: 1.5rem;
  }

  .container {
    width: 100%;
    max-width: none;
  }
}


/* Service before-and-after comparisons */
.service-comparison-section {
  overflow: clip;
  background: var(--paper-warm);
}

.service-comparison-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(360px, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5.5rem);
}

.service-comparison-copy {
  max-width: 520px;
}

.service-comparison-copy p {
  margin-top: 1rem;
  color: var(--muted);
}

.service-comparison-copy .btn {
  margin-top: 1.4rem;
}

.before-after {
  --reveal: 50%;
  width: min(100%, 590px);
  margin: 0 0 0 auto;
}

.service-image-landscape img {
  min-height: 0;
  aspect-ratio: 16 / 9;
}

.before-after-landscape .before-after-stage {
  aspect-ratio: 16 / 9;
}

.before-after-four-three .before-after-stage {
  aspect-ratio: 4 / 3;
}

.before-after-stage {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--radius);
  background: #d4d1c9;
  box-shadow: var(--shadow);
}

.before-after-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
}

.before-after-after {
  z-index: 1;
}

.before-after-before {
  z-index: 2;
  clip-path: inset(0 calc(100% - var(--reveal)) 0 0);
}

.before-after-label {
  position: absolute;
  top: 1rem;
  z-index: 3;
  padding: 0.48rem 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 4px;
  background: rgba(19, 23, 27, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

.before-after-label-before {
  left: 1rem;
}

.before-after-label-after {
  right: 1rem;
}

.before-after-range {
  position: absolute;
  inset: 0;
  z-index: 5;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  opacity: 0;
  background: transparent;
  cursor: ew-resize;
  touch-action: pan-y;
}

.before-after-range::-webkit-slider-runnable-track {
  width: 100%;
  height: 100%;
  background: transparent;
}

.before-after-range::-webkit-slider-thumb {
  width: 1px;
  height: 100%;
  border: 0;
  appearance: none;
  background: transparent;
}

.before-after-range::-moz-range-track {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.before-after-range::-moz-range-thumb {
  width: 1px;
  height: 100%;
  border: 0;
  background: transparent;
}

.before-after-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--reveal);
  z-index: 4;
  width: 3px;
  background: var(--paper);
  box-shadow: 0 0 0 1px rgba(20, 22, 24, 0.18);
  pointer-events: none;
  transform: translateX(-50%);
}

.before-after-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(20, 22, 24, 0.2);
  border-radius: 6px;
  background: var(--paper);
  color: var(--brand);
  box-shadow: 0 8px 26px rgba(20, 22, 24, 0.24);
  transform: translate(-50%, -50%);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.before-after.is-dragging .before-after-handle {
  box-shadow: 0 10px 30px rgba(20, 22, 24, 0.34);
  transform: translate(-50%, -50%) scale(1.08);
}

.before-after-handle svg {
  width: 30px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.before-after-range:focus-visible~.before-after-divider .before-after-handle {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.before-after figcaption {
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

@media (max-width: 900px) {
  .service-comparison-layout {
    grid-template-columns: 1fr;
  }

  .service-comparison-copy {
    max-width: 680px;
  }

  .before-after {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .service-comparison-layout {
    gap: 2rem;
  }

  .before-after {
    width: calc(100% + (2 * var(--gutter)));
    max-width: none;
    margin-inline: calc(-1 * var(--gutter));
  }

  .before-after-stage {
    border-radius: 0;
    box-shadow: none;
  }

  .before-after figcaption {
    padding-inline: var(--gutter);
  }

  .before-after-label {
    top: 0.75rem;
  }

  .before-after-label-before {
    left: 0.75rem;
  }

  .before-after-label-after {
    right: 0.75rem;
  }

  .before-after-handle {
    width: 44px;
    height: 44px;
  }
}


/* Interactive before-and-after cards on the Services listing. */
.sg-service-grid>.sg-service-card {
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.sg-service-grid>.sg-service-card:hover {
  border-color: rgba(200, 206, 213, 0.28);
  box-shadow: var(--shadow-sm);
}

.sg-service-card-comparison {
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
}

.sg-service-card-comparison .before-after-stage {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 0;
  box-shadow: none;
}

.sg-service-card-comparison figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.sg-service-card-comparison .before-after-label {
  top: 0.75rem;
  padding: 0.4rem 0.52rem;
  font-size: 0.62rem;
}

.sg-service-card-comparison .before-after-label-before {
  left: 0.75rem;
}

.sg-service-card-comparison .before-after-label-after {
  right: 0.75rem;
}

.sg-service-card-comparison .before-after-handle {
  width: 42px;
  height: 42px;
}

.sg-service-card-copy {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.sg-service-card-copy h3 {
  margin: 1.05rem 1.1rem 0;
  font-size: 1.38rem;
}

.sg-service-card-copy p {
  margin: 0.48rem 1.1rem 1.25rem;
  font-size: 0.94rem;
}

.sg-service-card-copy:hover h3,
.sg-service-card-copy:focus-visible h3 {
  color: var(--brand);
}

.sg-service-card-copy:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

@media (max-width: 760px) {
  .sg-service-grid>.sg-service-card {
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .sg-service-card-comparison,
  .sg-service-card-comparison .before-after-stage {
    width: 100%;
    max-width: none;
    margin: 0;
    aspect-ratio: 16 / 10;
  }

  .sg-service-card-copy h3,
  .sg-service-card-copy p {
    margin-right: var(--gutter);
    margin-left: var(--gutter);
  }



  .home-hero .sg-hero-copy p {
    margin: 0 !important;
  }
}

@media (hover: none) {
  .sg-service-grid>.sg-service-card:hover {
    box-shadow: var(--shadow-xs);
  }
}


/* Legal centre and privacy notice — 2026-09-09 */
.legal-hero h1 {
  max-width: 16ch;
}

.legal-hero p {
  max-width: 68ch;
}

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

.legal-layout {
  display: grid;
  grid-template-columns: minmax(200px, 250px) minmax(0, 820px);
  align-items: start;
  justify-content: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.legal-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 1.5rem);
}

.legal-sidebar nav {
  display: grid;
  border-top: 3px solid var(--accent);
  background: var(--paper-warm);
}

.legal-sidebar h2 {
  padding: 1rem 1rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.legal-sidebar a {
  min-height: 44px;
  padding: 0.7rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.35;
  text-decoration: none;
}

.legal-sidebar a:hover,
.legal-sidebar a:focus-visible,
.legal-sidebar a.active {
  color: var(--brand-dark);
  background: var(--brand-light);
}

.legal-sidebar a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.legal-copy {
  width: 100%;
  max-width: 820px;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.legal-copy>*+* {
  margin-top: 1rem;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  scroll-margin-top: calc(var(--header-height) + 1.5rem);
  color: var(--ink);
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.18;
}

.legal-copy h3 {
  color: var(--ink);
  font-size: 1.14rem;
  line-height: 1.25;
}

.legal-copy p,
.legal-copy li {
  max-width: 72ch;
}

.legal-copy ul,
.legal-copy ol {
  display: grid;
  gap: 0.55rem;
  padding-left: 1.35rem;
}

.legal-copy strong {
  color: var(--ink);
}

.legal-copy a {
  color: var(--brand-dark);
  font-weight: 700;
}

.legal-updated {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.legal-summary,
.legal-callout {
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-warm);
}

.legal-summary h2,
.legal-callout h3 {
  margin: 0;
}

.legal-summary p,
.legal-callout p {
  margin: 0.65rem 0 0;
}

.legal-contact {
  display: grid;
  gap: 0.3rem;
  padding: 1rem 1.2rem;
  border-left: 3px solid var(--line-strong);
  color: var(--ink-soft);
  font-style: normal;
}

.legal-table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  -webkit-overflow-scrolling: touch;
}

.legal-table-wrap table {
  width: 100%;
  min-width: 620px;
  border-collapse: collapse;
  background: var(--paper);
  font-size: 0.92rem;
  line-height: 1.5;
}

.legal-table-wrap th,
.legal-table-wrap td {
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.legal-table-wrap th {
  color: var(--ink);
  background: var(--paper-warm);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.legal-table-wrap tr:last-child td {
  border-bottom: 0;
}

.legal-table-wrap code {
  font-size: 0.84em;
  overflow-wrap: anywhere;
}

.consent-check a {
  color: var(--brand-dark);
  font-weight: 800;
}

.footer-legal {
  align-items: flex-start;
}

.footer-business-identity {
  display: grid !important;
  max-width: 670px;
  gap: 0.25rem !important;
  line-height: 1.55;
}

.footer-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem 1rem !important;
}

.footer-legal-links a {
  display: inline-flex;
  align-items: center;
}

.cookie-notice {
  position: fixed;
  z-index: 2200;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  left: max(1rem, env(safe-area-inset-left));
  display: grid;
  width: auto;
  max-width: 1120px;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  margin-inline: auto;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm);
  color: #eef0f2;
  background: #171c22;
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.28);
}

.cookie-notice-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(229, 160, 110, 0.55);
  color: #c8ced5;
}

.cookie-notice-icon svg {
  width: 27px;
  height: 27px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cookie-notice-copy h2 {
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cookie-notice-copy p {
  max-width: 72ch;
  margin: 0.25rem 0 0;
  color: #c9ced4;
  font-size: 0.9rem;
  line-height: 1.5;
}

.cookie-notice-copy a {
  color: #f0b286;
  font-weight: 750;
}

.cookie-notice-dismiss {
  min-height: 46px;
  padding: 0.7rem 1.15rem;
  border: 1px solid #c8ced5;
  border-radius: 2px;
  color: #fff;
  background: transparent;
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-notice-dismiss:hover {
  color: #171c22;
  background: #c8ced5;
}

.cookie-notice-dismiss:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 760px) {
  .legal-section {
    padding-block: 2rem 3rem;
  }

  .legal-layout {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .legal-sidebar {
    position: static;
  }

  .legal-sidebar nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border: 0;
    background: transparent;
  }

  .legal-sidebar h2 {
    grid-column: 1 / -1;
    padding: 0 0 0.7rem;
  }

  .legal-sidebar a {
    min-height: 48px;
    padding: 0.7rem 0.5rem 0.7rem 0;
    border: 0;
    background: transparent;
  }

  .legal-sidebar a:hover,
  .legal-sidebar a:focus-visible,
  .legal-sidebar a.active {
    background: transparent;
  }

  .legal-summary,
  .legal-callout,
  .legal-contact {
    padding: 1rem 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .legal-table-wrap {
    width: calc(100% + var(--gutter));
    border-right: 0;
    border-left: 0;
  }

  .footer-legal-links {
    justify-content: flex-start;
  }

  .cookie-notice {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: none;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 0.75rem;
    padding: 0.9rem max(1rem, env(safe-area-inset-right)) max(0.9rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border-width: 1px 0 0;
    border-radius: 0;
  }

  .cookie-notice-icon {
    width: 38px;
    height: 38px;
    border: 0;
  }

  .cookie-notice-copy p {
    font-size: 0.86rem;
    line-height: 1.45;
  }

  .cookie-notice-dismiss {
    width: 100%;
    grid-column: 1 / -1;
  }
}


/* Service-specific enquiry paths and photo uploads */
.project-location-field {
  margin-bottom: 1.2rem;
}

.service-detail-paths {
  display: grid;
}

.service-detail-path[hidden] {
  display: none;
}

.service-detail-path {
  padding: 1.15rem 1.2rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--paper-warm);
}

.service-path-heading {
  margin-bottom: 1rem;
}

.service-path-heading>span,
.photo-upload-heading>span {
  display: block;
  color: var(--brand-dark);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-path-heading h2 {
  margin-top: 0.3rem;
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  line-height: 1.2;
}

.flow-fields .field-wide {
  grid-column: 1 / -1;
}

.project-common-fields,
.photo-upload {
  margin-top: 1.25rem;
}

.photo-upload {
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
}

.photo-upload-heading p {
  margin: 0.3rem 0 0.8rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.photo-upload-heading em {
  color: var(--muted);
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.photo-upload-control {
  position: relative;
  display: grid;
  min-height: 82px;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 0.9rem 1rem;
  border: 1px dashed var(--line-strong);
  border-radius: 4px;
  color: var(--ink);
  background: var(--paper);
  cursor: pointer;
}

.photo-upload-control:hover,
.photo-upload-control:focus-within {
  border-color: var(--brand);
  background: var(--brand-light);
  box-shadow: var(--focus-ring);
}

.photo-upload-input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.photo-upload-control>svg {
  width: 36px;
  height: 36px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-upload-control span,
.photo-upload-control b,
.photo-upload-control small {
  display: block;
}

.photo-upload-control b {
  font-size: 0.95rem;
}

.photo-upload-control small {
  margin-top: 0.1rem;
  color: var(--muted);
  font-size: 0.78rem;
}

.photo-upload-help {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.45;
}

.photo-file-list {
  display: grid;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.photo-file-item {
  display: grid;
  min-width: 0;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.65rem;
  background: var(--canvas);
  font-size: 0.8rem;
}

.photo-file-item svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--brand);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.photo-file-item span {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-file-item small {
  color: var(--muted);
  font-size: 0.74rem;
}

.photo-file-list.has-error .photo-file-item {
  background: #241417;
}

.photo-clear {
  min-height: 40px;
  margin-top: 0.55rem;
  padding: 0;
  border: 0;
  color: var(--brand-dark);
  background: transparent;
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
  cursor: pointer;
}

@media (max-width: 760px) {
  .service-detail-path {
    padding: 0.8rem 0 0;
    border: 0;
    border-radius: 0;
    background: transparent;
  }

  .photo-upload-control {
    width: 100%;
    border-right: 0;
    border-left: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .photo-file-item {
    padding-right: 0;
    padding-left: 0;
    background: transparent;
  }
}

/* Blank template image placeholders */
.sg-hero-image,
.service-image {
  background: var(--paper);
  min-height: 12rem;
}

.sg-hero-image {
  height: 100%;
}

/* SG Construction dark silver brand theme */
:root {
  --ink: #f7f8fa;
  --ink-soft: #d1d6dc;
  --muted: #aab2bb;
  --canvas: #0b0f14;
  --canvas-deep: #070a0e;
  --paper: #151b22;
  --paper-warm: #10161c;
  --brand: #c8ced5;
  --brand-dark: #f7f8fa;
  --brand-light: #29313a;
  --accent: #aeb7c1;
  --gold: #c3c9cf;
  --line: rgba(220, 226, 232, 0.14);
  --line-strong: rgba(220, 226, 232, 0.26);
  --shadow-xs: 0 3px 10px rgba(0, 0, 0, 0.2);
  --shadow-sm: 0 14px 34px rgba(0, 0, 0, 0.28);
  --shadow: 0 28px 70px rgba(0, 0, 0, 0.38);
  --radius-sm: 2px;
  --radius: 4px;
  --radius-lg: 6px;
  --font-display: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --header-height: 104px;
  --focus-ring: 0 0 0 3px rgba(200, 206, 213, 0.35);
}

body {
  background: var(--canvas);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 800;
  letter-spacing: -0.045em;
}

.header {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(12, 29, 39, 0.98);
  box-shadow: 0 8px 28px rgba(5, 16, 22, 0.2);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: var(--header-height);
}

.logo {
  flex: 0 0 220px;
  width: 220px;
  min-width: 180px;
  min-height: 88px;
}

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

.nav>a,
.nav-group>summary {
  border-radius: 2px;
  color: #e2e9ed;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.nav>a:hover,
.nav>a.active,
.nav-group.active>summary,
.nav-group>summary:hover {
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
}

.btn-header {
  border-color: var(--accent);
  background: var(--accent);
  color: #162731;
  font-weight: 800;
}

.btn-header:hover {
  border-color: #d7dce1;
  background: #d7dce1;
  color: #0a0e13;
}

.home-hero.sg-hero {
  border-color: rgba(17, 39, 51, 0.16);
  background: linear-gradient(135deg, var(--paper) 0%, var(--canvas-deep) 100%);
}

.sg-hero-image,
.service-image {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background-color: #17303d;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(135deg, transparent 44%, rgba(200, 206, 213, 0.22) 44%, rgba(200, 206, 213, 0.22) 45%, transparent 45%);
  background-size: 30px 30px, 30px 30px, 100% 100%;
}

.sg-hero-image::after {
  position: absolute;
  right: clamp(1rem, 4vw, 2.25rem);
  bottom: clamp(1rem, 4vw, 2.25rem);
  color: rgba(255, 255, 255, 0.72);
  content: "SG / BATH";
  font-size: clamp(1.1rem, 3vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.service-image {
  display: grid;
  min-height: 12rem;
  place-items: center;
}

.service-image span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 2rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.page-hero,
.contact-hero,
.service-detail-hero,
.work-hero,
.areas-hero {
  background:
    linear-gradient(115deg, rgba(200, 206, 213, 0.13), transparent 32%),
    linear-gradient(135deg, #f9fbfb 0%, #dfe7e9 100%);
}

.page-hero::after,
.contact-hero::after,
.service-detail-hero::after,
.work-hero::after {
  border-color: rgba(21, 48, 61, 0.18);
  border-radius: 0;
  transform: rotate(45deg);
}

.sg-service-grid>.sg-service-card,
.contact-panel,
.market-steps article {
  border-top: 3px solid var(--accent);
  background: var(--paper);
}

.contact-options {
  align-items: stretch;
}

.contact-options .contact-panel {
  padding: clamp(1.5rem, 4vw, 2.25rem);
}

.contact-options .contact-panel h2 {
  margin-top: 0.8rem;
}

.contact-options .contact-panel p {
  margin-top: 0.75rem;
}

.contact-options .contact-panel .btn {
  margin-top: 1.25rem;
}

.footer {
  border-top-color: var(--accent);
  background: #091821;
  color: #f3f7f8;
}

.footer-main {
  grid-template-columns: minmax(250px, 1.15fr) minmax(145px, 0.58fr) minmax(190px, 0.8fr) minmax(250px, 0.95fr);
}

.footer-company>p,
.footer-cta p {
  color: #b7c3c9;
}

.footer-brand {
  width: min(255px, 100%);
  justify-content: flex-start;
}

.footer-brand img {
  width: 100%;
  max-height: 120px;
}

.footer nav a {
  color: #cbd5da;
}

.footer nav a:hover,
.footer-legal a:hover {
  color: #ffffff;
}

.footer-cta {
  border-color: rgba(200, 206, 213, 0.35);
  background: rgba(255, 255, 255, 0.055);
}

.footer-cta .kicker {
  color: #d7dce1;
}

.footer-legal {
  color: #93a4ad;
}

.footer-legal a {
  color: #b9c6cc;
}

@media (max-width: 1080px) {
  :root {
    --header-height: 94px;
  }

  .logo {
    flex-basis: 195px;
    width: 195px;
    min-height: 78px;
  }

  .logo img {
    width: 195px;
    max-width: 100%;
    max-height: 82px;
  }

  .footer-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-company,
  .footer-cta {
    grid-column: auto;
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 84px;
  }

  .header-inner {
    gap: 0.75rem;
  }

  .logo {
    flex: 0 0 170px;
    width: 170px;
    min-width: 0;
    min-height: 70px;
  }

  .logo img {
    width: 170px;
    max-height: 72px;
  }

  .nav-toggle {
    display: inline-flex;
    width: 48px;
    height: 44px;
    flex: 0 0 48px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin-left: auto;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 2px;
    background: transparent;
    color: #ffffff;
  }

  .nav-toggle i {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .header .nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 0;
    left: 0;
    display: none;
    padding: 0.75rem var(--gutter) 1rem;
    border-bottom: 3px solid var(--accent);
    background: #0a0e13;
    box-shadow: 0 18px 32px rgba(4, 14, 20, 0.24);
  }

  .header .nav.open {
    display: grid;
  }

  .header .nav>a {
    width: 100%;
    min-height: 48px;
    justify-content: flex-start;
    padding-inline: 0.9rem;
  }

  .btn-header {
    margin-left: 0;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 78px;
  }

  .logo {
    flex-basis: 145px;
    width: 145px;
    min-height: 64px;
  }

  .logo img {
    width: 145px;
    max-height: 66px;
  }

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

  .footer-brand {
    width: min(230px, 100%);
  }

  .footer-company,
  .footer-cta {
    grid-column: auto;
  }
}
/* Completed portfolio jobs */
.portfolio-job-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem);
}

.portfolio-job-card {
  display: grid;
  min-width: 0;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow-xs);
}

.portfolio-job-main {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #17303d;
}

.portfolio-job-main img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.portfolio-job-main figcaption {
  position: absolute;
  right: 0.8rem;
  bottom: 0.8rem;
  padding: 0.38rem 0.55rem;
  background: rgba(12, 29, 39, 0.86);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-job-copy {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.15rem, 2vw, 1.6rem);
}

.portfolio-job-copy h2 {
  margin-top: 0.55rem;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.portfolio-job-copy > p:not(.kicker) {
  margin: 0.7rem 0 1.2rem;
  color: var(--ink-soft);
}

.portfolio-job-gallery {
  width: 100%;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.portfolio-job-gallery summary {
  color: var(--brand-dark);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.portfolio-job-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.9rem;
}

.portfolio-job-gallery-grid a {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--canvas-deep);
}

.portfolio-job-gallery-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 180ms ease;
}

.portfolio-job-gallery-grid a:hover img,
.portfolio-job-gallery-grid a:focus-visible img {
  transform: scale(1.05);
}

.portfolio-job-source {
  display: inline-flex;
  margin-top: 1rem;
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .portfolio-job-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-job-gallery-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .portfolio-job-gallery-grid img {
    transition: none;
  }
}

/* Compact headers and dedicated project pages */
:root {
  --font-sans: "Barlow", "Arial Narrow", Arial, sans-serif;
  --font-display: "Barlow", "Arial Narrow", Arial, sans-serif;
  --header-height: 80px;
}

body,
button,
input,
select,
textarea {
  font-family: var(--font-sans);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.032em;
}

.header-inner {
  min-height: var(--header-height);
}

.logo {
  flex: 0 0 170px;
  width: 170px;
  min-width: 150px;
  min-height: 64px;
}

.logo img {
  width: 170px;
  max-width: 100%;
  max-height: 68px;
}

.nav > a,
.nav-group > summary {
  min-height: 40px;
  padding: 0.38rem 0.68rem;
  font-size: 0.8rem;
}

.btn-header {
  min-height: 40px;
  padding: 0.65rem 1rem;
  font-size: 0.75rem;
}

.page-hero,
.contact-hero,
.service-detail-hero,
.work-hero,
.areas-hero {
  overflow: visible;
  padding-block: clamp(2.25rem, 4.5vw, 3.75rem);
  background: var(--paper-warm);
}

.page-hero::after,
.contact-hero::after,
.service-detail-hero::after,
.work-hero::after,
.areas-hero::after {
  display: none;
  content: none;
}

.page-hero > .container,
.contact-hero > .container,
.service-detail-hero > .container,
.work-hero > .container,
.areas-hero > .container {
  padding-left: clamp(1rem, 2vw, 1.5rem);
  border-left: 4px solid var(--accent);
}

.page-hero h1,
.contact-hero h1,
.service-detail-hero h1,
.work-hero h1,
.areas-hero h1 {
  max-width: 17ch;
  margin-top: 0.45rem;
  font-size: clamp(2.2rem, 4.8vw, 4rem);
}

.page-hero p,
.contact-hero p,
.service-detail-hero p,
.work-hero p,
.areas-hero p {
  max-width: 62ch;
  margin-top: 0.7rem;
  padding: 0;
  border-radius: 0;
  font-size: clamp(1rem, 1.3vw, 1.1rem);
}

/* Portfolio index */
.portfolio-index {
  background: var(--canvas);
}

.portfolio-index-summary {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.5rem);
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--line-strong);
}

.portfolio-index-summary p {
  max-width: 58ch;
  font-size: 1.05rem;
}

.portfolio-index-summary strong {
  flex: 0 0 auto;
  color: var(--brand-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-card-grid {
  display: grid;
  grid-auto-rows: 1fr;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(0.9rem, 1.8vw, 1.4rem);
}

.project-card {
  display: flex;
  min-width: 0;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  box-shadow: var(--shadow-xs);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: rgba(200, 206, 213, 0.48);
  box-shadow: 0 18px 42px rgba(10, 25, 34, 0.13);
  color: var(--ink);
  text-decoration: none;
  transform: translateY(-4px);
}

.project-card-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #17303d;
}

.project-card-media-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-media::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 36%;
  background: linear-gradient(to top, rgba(7, 20, 28, 0.48), transparent);
  content: "";
  pointer-events: none;
}

.project-card-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 420ms cubic-bezier(0.2, 0.65, 0.3, 1);
}

.project-card-comparison {
  width: 100%;
  max-width: none;
  margin: 0;
}

.project-card-comparison .before-after-stage {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 0;
  box-shadow: none;
}

.project-card-comparison figcaption {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.project-card-comparison .before-after-label {
  top: 0.7rem;
  padding: 0.4rem 0.52rem;
  font-size: 0.62rem;
}

.project-card-comparison .before-after-label-before {
  left: 0.7rem;
}

.project-card-comparison .before-after-label-after {
  right: 0.7rem;
}

.project-card-comparison .before-after-handle {
  width: 42px;
  height: 42px;
}

.project-card-comparison .project-card-count {
  z-index: 6;
  pointer-events: none;
}

.project-card:hover .project-card-media img {
  transform: scale(1.035);
}

.service-card-media img[data-image-crop],
.project-card-media img[data-image-crop],
.project-hero-media img[data-image-crop],
.before-after-image[data-image-crop] {
  object-fit: contain;
  object-position: var(--crop-x, 50%) var(--crop-y, 50%);
  transform: scale(var(--crop-zoom, 1));
  transform-origin: var(--crop-x, 50%) var(--crop-y, 50%);
}

.service-card:hover .service-card-media img[data-image-crop],
.project-card:hover .project-card-media img[data-image-crop] {
  transform: scale(calc(var(--crop-zoom, 1) * 1.035));
}

.project-card-count {
  position: absolute;
  right: 0.75rem;
  bottom: 0.7rem;
  z-index: 1;
  padding: 0.35rem 0.55rem;
  background: rgba(8, 25, 34, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.project-card-copy {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.4rem);
}

.project-card-meta {
  display: flex;
  min-height: 2.1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.project-card-meta a {
  color: var(--brand-dark);
  text-decoration: none;
}

.project-card-meta a:hover,
.project-card-meta a:focus-visible {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.project-card-service {
  max-width: calc(100% - 7rem);
}

.project-card-view {
  margin-left: auto;
  white-space: nowrap;
}

.project-card h2 {
  min-height: 2.2em;
  margin-top: 0.7rem;
  font-size: clamp(1.25rem, 1.65vw, 1.55rem);
}

.project-card h2 a {
  color: inherit;
  text-decoration: none;
}

.project-card h2 a:hover,
.project-card h2 a:focus-visible {
  color: var(--brand-dark);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-card-copy > p {
  display: -webkit-box;
  min-height: calc(1.58em * 3);
  margin-top: 0.65rem;
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 0.94rem;
  line-height: 1.58;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

/* Project detail */
.project-hero {
  padding-block: clamp(2.2rem, 5vw, 4.75rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper-warm);
}

.project-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
}

.project-back {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: clamp(1.8rem, 4vw, 3.2rem);
  color: var(--brand-dark);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.075em;
  text-decoration: none;
  text-transform: uppercase;
}

.project-back:hover {
  color: var(--ink);
  text-decoration: none;
}

.project-back span {
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 180ms ease;
}

.project-back:hover span {
  transform: translateX(-3px);
}

.project-hero h1 {
  max-width: 13ch;
  margin-top: 0.55rem;
  font-size: clamp(2.6rem, 6vw, 5.3rem);
  line-height: 0.96;
}

.project-lead {
  margin-top: 1.15rem;
  font-size: clamp(1.02rem, 1.5vw, 1.18rem);
  line-height: 1.58;
}

.project-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin: clamp(1.7rem, 4vw, 2.7rem) 0 0;
}

.project-facts div {
  padding-top: 0.8rem;
  border-top: 2px solid var(--accent);
}

.project-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-facts dd {
  margin: 0.2rem 0 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}

.project-service-link {
  color: var(--brand-dark);
  text-decoration-color: rgba(200, 206, 213, 0.45);
  text-underline-offset: 0.18em;
}

.project-service-link:hover,
.project-service-link:focus-visible {
  color: var(--ink);
}

.project-hero-media {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  background: #17303d;
  box-shadow: var(--shadow-sm);
}

.project-hero-media img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.project-hero-media figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  padding: 0.55rem 0.75rem;
  background: rgba(8, 25, 34, 0.9);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-hero-comparison {
  width: 100%;
  max-width: none;
  margin: 0;
}

.project-hero-comparison .before-after-stage {
  width: 100%;
  aspect-ratio: 5 / 4;
  border-radius: 0;
  box-shadow: none;
}

.project-hero-comparison figcaption {
  z-index: 6;
  margin: 0;
}

.project-comparison-section {
  padding-block: clamp(3.5rem, 7vw, 6.75rem);
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}

.project-comparison-layout {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(360px, 1.28fr);
  align-items: center;
  gap: clamp(2.25rem, 6vw, 5.5rem);
}

.project-comparison-copy {
  max-width: 500px;
}

.project-comparison-copy h2 {
  max-width: 12ch;
}

.project-comparison-copy p {
  margin-top: 1rem;
}

.project-comparison-note {
  padding-left: 1rem;
  border-left: 3px solid var(--accent);
  color: var(--muted);
  font-size: 0.92rem;
}

.project-comparison {
  width: 100%;
  max-width: 680px;
  margin: 0;
}

.project-comparison .before-after-stage {
  border: 1px solid var(--line-strong);
}

.project-gallery-section {
  padding-block: clamp(3.5rem, 7vw, 7rem);
  background: var(--canvas);
}

.project-gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.6rem, 3vw, 2.6rem);
}

.project-gallery-heading h2 {
  max-width: 13ch;
  margin-top: 0.55rem;
}

.project-gallery-heading p {
  max-width: 36ch;
  padding-bottom: 0.25rem;
}

.project-gallery-tabs {
  display: inline-flex;
  align-items: stretch;
  margin-bottom: clamp(1.15rem, 2vw, 1.75rem);
  border: 1px solid var(--line-strong);
  background: var(--paper);
  box-shadow: var(--shadow-sm);
}

.project-gallery-tab {
  min-width: 112px;
  padding: 0.82rem 1.2rem;
  border: 0;
  background: transparent;
  color: var(--brand-dark);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: background-color 180ms ease, color 180ms ease;
}

.project-gallery-tab + .project-gallery-tab {
  border-left: 1px solid var(--line-strong);
}

.project-gallery-tab:hover:not(:disabled),
.project-gallery-tab:focus-visible {
  background: var(--brand-light);
  color: var(--ink);
}

.project-gallery-tab[aria-selected="true"] {
  background: var(--brand-dark);
  color: #fff;
}

.project-gallery-tab:disabled {
  color: var(--muted);
  cursor: not-allowed;
  opacity: 0.42;
}

.project-gallery-item[hidden] {
  display: none;
}

.project-image-editor {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  z-index: 4;
  display: flex;
  overflow: hidden;
  align-items: stretch;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 4px;
  background: rgba(8, 25, 34, 0.94);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.24);
  cursor: default;
}

.project-image-editor-badge {
  display: grid;
  place-items: center;
  padding-inline: 0.52rem;
  border-right: 1px solid rgba(255, 255, 255, 0.22);
  color: #c4cbd2;
  font-size: 0.56rem;
  font-weight: 900;
  letter-spacing: 0.1em;
}

.project-image-editor-select {
  min-height: 34px;
  padding: 0.42rem 1.75rem 0.42rem 0.58rem;
  border: 0;
  border-radius: 0;
  outline-offset: -2px;
  background: #112733;
  color: #fff;
  cursor: pointer;
  font: inherit;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.project-image-editor-select:disabled {
  cursor: wait;
  opacity: 0.7;
}

.project-image-editor.is-saving {
  pointer-events: none;
}

.portfolio-editor-enabled .project-gallery-item::after {
  right: auto;
  left: 0.65rem;
}

.project-gallery {
  --project-gallery-gap: clamp(0.65rem, 1.4vw, 1.1rem);
  column-count: 3;
  column-gap: var(--project-gallery-gap);
}

.project-gallery-item {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: var(--project-gallery-gap);
  overflow: hidden;
  border: 1px solid rgba(17, 39, 51, 0.18);
  background: #17303d;
  break-inside: avoid;
  cursor: zoom-in;
}

.project-gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  transition: filter 180ms ease;
}

.project-gallery-item::after {
  position: absolute;
  right: 0.65rem;
  bottom: 0.65rem;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  background: rgba(8, 25, 34, 0.88);
  color: #fff;
  content: "+";
  font-size: 1.25rem;
  font-weight: 400;
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(5px);
}

.project-gallery-item:hover img,
.project-gallery-item:focus-visible img {
  filter: brightness(0.92);
}

.project-gallery-item:hover::after,
.project-gallery-item:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.project-gallery-number {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  z-index: 1;
  padding: 0.28rem 0.45rem;
  background: rgba(8, 25, 34, 0.82);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.project-after-gallery {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: var(--paper);
}

.project-pager-heading {
  margin-bottom: 1.25rem;
}

.project-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.project-pager-card {
  display: grid;
  min-height: 130px;
  align-content: end;
  padding: clamp(1.15rem, 3vw, 1.75rem);
  border: 1px solid var(--line);
  background: var(--paper-warm);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, background-color 180ms ease;
}

.project-pager-card:hover {
  border-color: var(--accent);
  background: var(--brand-light);
  color: var(--ink);
  text-decoration: none;
}

.project-pager-card span {
  color: var(--brand-dark);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.project-pager-card strong {
  margin-top: 0.3rem;
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.15;
}

.project-contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  margin-top: clamp(2.25rem, 5vw, 4.5rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: #0a0e13;
  color: #fff;
}

.project-contact-strip h2,
.project-contact-strip p {
  color: #fff;
}

.project-contact-strip h2 {
  font-size: clamp(1.55rem, 3vw, 2.4rem);
}

.project-contact-strip p {
  margin-top: 0.45rem;
  color: #b7c3c9;
}

.project-contact-strip .btn {
  flex: 0 0 auto;
}

/* Gallery lightbox */
body.lightbox-open {
  overflow: hidden;
}

.project-lightbox[hidden] {
  display: none;
}

.project-lightbox {
  position: fixed;
  z-index: 3000;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(50px, 90px) minmax(0, 1fr) minmax(50px, 90px);
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  background: rgba(4, 13, 18, 0.97);
}

.project-lightbox-figure {
  grid-column: 2;
  grid-row: 1;
  display: grid;
  min-width: 0;
  max-width: 1500px;
  max-height: calc(100vh - 7rem);
  justify-self: center;
  margin: 0;
  touch-action: pan-y;
}

.project-lightbox-image {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: calc(100vh - 7rem);
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.project-lightbox-caption {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.8rem auto 0;
  color: #dbe3e7;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-align: center;
}

.project-lightbox button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
}

.project-lightbox button:hover {
  border-color: var(--accent);
  background: rgba(200, 206, 213, 0.16);
}

.project-lightbox-close {
  position: absolute;
  top: clamp(0.75rem, 2vw, 1.5rem);
  right: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2;
}

.project-lightbox-prev {
  grid-column: 1;
  grid-row: 1;
  justify-self: start;
}

.project-lightbox-next {
  grid-column: 3;
  grid-row: 1;
  justify-self: end;
}

@media (max-width: 1100px) {
  .project-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-hero-grid {
    gap: clamp(1.5rem, 4vw, 3rem);
  }
}

@media (max-width: 900px) {
  :root {
    --header-height: 72px;
  }

  .logo {
    flex-basis: 150px;
    width: 150px;
    min-height: 56px;
  }

  .logo img {
    width: 150px;
    max-height: 60px;
  }

  .project-hero-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-copy {
    max-width: 760px;
  }

  .project-hero-media {
    order: 0;
  }

  .project-hero-media img {
    aspect-ratio: 16 / 9;
  }

  .project-hero-comparison .before-after-stage {
    aspect-ratio: 16 / 9;
  }

  .project-back {
    margin-bottom: 1.6rem;
  }

  .project-gallery-heading {
    align-items: start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .project-comparison-layout {
    grid-template-columns: 1fr;
  }

  .project-comparison-copy {
    max-width: 680px;
  }

  .project-comparison {
    margin-inline: auto;
  }
}

@media (max-width: 760px) {
  .page-hero,
  .contact-hero,
  .service-detail-hero,
  .work-hero,
  .areas-hero {
    padding-block: 2.15rem;
  }

  .page-hero > .container,
  .contact-hero > .container,
  .service-detail-hero > .container,
  .work-hero > .container,
  .areas-hero > .container {
    padding-left: 0.9rem;
  }

  .portfolio-index-summary,
  .project-contact-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-gallery {
    column-count: 2;
  }
}

@media (max-width: 620px) {
  :root {
    --header-height: 68px;
  }

  .logo {
    flex-basis: 132px;
    width: 132px;
    min-height: 52px;
  }

  .logo img {
    width: 132px;
    max-height: 55px;
  }

  .nav-toggle {
    width: 44px;
    height: 40px;
    flex-basis: 44px;
  }

  .project-card-grid,
  .project-pager {
    grid-template-columns: 1fr;
  }

  .project-card-meta,
  .project-card h2,
  .project-card-copy > p {
    min-height: 0;
  }

  .project-facts {
    grid-template-columns: 1fr;
  }

  .project-facts div {
    display: grid;
    grid-template-columns: 90px 1fr;
    gap: 0.8rem;
  }

  .project-facts dd {
    margin-top: 0;
  }

  .project-gallery-tabs {
    display: flex;
    width: 100%;
  }

  .project-gallery-tab {
    min-width: 0;
    flex: 1;
    padding-inline: 0.55rem;
    font-size: 0.66rem;
  }

  .project-gallery {
    column-count: 1;
  }

  .project-lightbox {
    grid-template-columns: 52px minmax(0, 1fr) 52px;
    padding: 0.6rem;
  }

  .project-lightbox button {
    width: 42px;
    height: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .project-card,
  .project-card-media img,
  .project-gallery-item img,
  .project-gallery-item::after,
  .project-back span {
    transition: none;
  }
}


/* Google reviews */
.reviews-section {
  padding-top: clamp(3.25rem, 7vw, 6.25rem);
  background: transparent;
}

.reviews-shell {
  position: relative;
  overflow: hidden;
  box-shadow: none;
}

.reviews-shell::after {
  content: none;
}

.reviews-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}

.reviews-introduction {
  position: relative;
  max-width: 650px;
  padding-left: clamp(1rem, 2vw, 1.4rem);
}

.reviews-introduction::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 999px;
  background: var(--accent);
  content: "";
}

.reviews-kicker {
  display: inline-flex;
  color: var(--brand);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.reviews-shell h2 {
  max-width: 17ch;
  margin-top: 0.65rem;
  color: var(--ink);
  font-size: clamp(2.15rem, 4vw, 3.4rem);
  line-height: 1.03;
}

.reviews-introduction p {
  max-width: 56ch;
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 1.02rem;
}


.reviews-score-label {
  display: flex;
  grid-area: label;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.35rem;
  color: var(--brand);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.reviews-score-label::before {
  width: 1rem;
  height: 2px;
  background: var(--accent);
  content: "";
}

.reviews-score strong {
  grid-area: rating;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 3.15rem;
  line-height: 0.9;
}

.reviews-score small {
  grid-area: count;
  align-self: start;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.3;
}

.reviews-stars {
  display: inline-block;
  color: #f6bb61;
  font-size: 0.94rem;
  letter-spacing: 0.12em;
  line-height: 1;
  white-space: nowrap;
}

.reviews-stars--large {
  grid-area: stars;
  align-self: end;
  padding: 0.3rem 0.42rem;
  border: 1px solid rgba(173, 122, 60, 0.22);
  border-radius: 4px;
  background: var(--paper-warm);
  font-size: 1.08rem;
  letter-spacing: 0.08em;
}

.reviews-bar {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 50px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: clamp(1.65rem, 3vw, 2.5rem);
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.reviews-status {
  color: var(--muted);
  font-size: 0.84rem;
}

.reviews-all-link,
.review-card-link {
  color: #f5c58e;
  font-size: 0.8rem;
  font-weight: 750;
  text-decoration-color: rgba(245, 197, 142, 0.44);
}

.reviews-all-link {
  color: var(--brand-dark);
  text-decoration-color: rgba(200, 206, 213, 0.35);
}

.reviews-all-link:hover {
  color: var(--ink);
}

.review-card-link:hover {
  color: #fffaf4;
}

.reviews-all-link span,
.review-card-link span {
  display: inline-block;
  margin-left: 0.25rem;
  transition: transform 180ms ease;
}

.reviews-all-link:hover span,
.review-card-link:hover span {
  transform: translate(2px, -2px);
}

.reviews-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.review-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  padding: clamp(1rem, 2vw, 1.35rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.075);
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.review-card:hover {
  border-color: rgba(245, 197, 142, 0.45);
  background: rgba(255, 255, 255, 0.105);
  transform: translateY(-3px);
}

.review-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.review-author {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
}

.review-avatar {
  display: grid;
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 2.4rem;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #c4cbd2;
  color: #4e2e1e;
  font-size: 0.78rem;
  font-weight: 800;
}

.review-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.review-author-details {
  display: grid;
  min-width: 0;
  gap: 0.08rem;
}

.review-author-details strong {
  overflow: hidden;
  color: #fff;
  font-size: 0.88rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-author-details small {
  color: #fff;
  font-size: 0.72rem;
}

.review-source {
  flex: 0 0 auto;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
}

.review-card>.reviews-stars {
  margin-top: 1.35rem;
}

.review-card-text {
  display: -webkit-box;
  overflow: hidden;
  margin-top: 0.7rem;
  color: #fff;
  font-size: 0.91rem;
  line-height: 1.62;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 6;
}

.review-card-photos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.4rem;
  margin-top: 0.95rem;
}

.review-card-photos a {
  display: block;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.08);
}

.review-card-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.review-card-photos a:hover img {
  transform: scale(1.045);
}

.review-card-link {
  align-self: flex-start;
  margin-top: auto;
  padding-top: 1.1rem;
  color: #fff;
  text-decoration-color: rgba(0, 0, 0, 0.4);
}

.review-card-link:hover {
  color: #fff;
}

.reviews-empty {
  grid-column: 1 / -1;
  color: rgba(255, 250, 244, 0.76);
}

@media (max-width: 760px) {
  .reviews-shell {
    border-radius: 0;
  }

  .reviews-heading {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .reviews-score {
    width: 100%;
    max-width: 360px;
    text-align: left;
  }

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

  .review-card {
    min-height: 0;
  }
}

/* Footer refresh */
.footer {
  position: relative;
  overflow: hidden;
  border-top: 0;
  background:
    radial-gradient(circle at 86% 14%, rgba(224, 150, 68, 0.11), transparent 25rem),
    linear-gradient(145deg, #0b1d27 0%, #07141c 100%);
}

.footer::before {
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), #c3c9cf 58%, rgba(195, 201, 207, 0.2));
  content: "";
}

.footer-prompt {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
  padding-block: clamp(2.7rem, 5vw, 4.25rem);
}

.footer-prompt-copy {
  max-width: 760px;
}

.footer-prompt .kicker {
  color: #d1d6dc;
}

.footer-prompt .kicker::before {
  background: currentColor;
}

.footer-prompt h2 {
  max-width: 17ch;
  margin-top: 0.65rem;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.1vw, 3.65rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.04;
}

.footer-prompt p {
  max-width: 58ch;
  margin-top: 0.85rem;
  color: #b7c6cd;
}

.footer-prompt-actions {
  display: grid;
  width: 220px;
  gap: 0.7rem;
}

.footer-quick-contact {
  display: none;
}

.footer-prompt-button {
  min-width: 220px;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.95rem 1.1rem 0.95rem 1.25rem;
  border-color: #c8ced5;
  background: #c8ced5;
  color: #11222b;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.2);
}

.footer-prompt-button:hover {
  border-color: #c4cbd2;
  background: #c4cbd2;
  color: #11222b;
}

.footer-prompt-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  transition: transform 180ms ease;
}

.footer-prompt-button:hover svg {
  transform: translateX(3px);
}

.footer-content {
  border-block: 1px solid rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.025);
}

.footer-main {
  grid-template-columns: minmax(250px, 1.1fr) minmax(155px, 0.58fr) minmax(330px, 1.22fr);
  align-items: start;
  gap: clamp(2.2rem, 5vw, 5rem);
  padding-block: clamp(3rem, 5.5vw, 4.8rem);
}

.footer-company > p {
  max-width: 38ch;
  margin-top: 0.35rem;
  color: #afbec5;
  font-size: 0.94rem;
}

.footer-brand {
  width: min(245px, 100%);
  margin-bottom: 1rem;
}

.footer-location {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1.5rem;
  color: #fff;
}

.footer-location > span:last-child,
.footer-contact-copy {
  display: grid;
  min-width: 0;
  gap: 0.04rem;
}

.footer-location strong,
.footer-contact-copy strong {
  color: #f4f7f8;
  font-size: 0.93rem;
  font-weight: 700;
  line-height: 1.35;
}

.footer-location small,
.footer-contact-copy small {
  color: #8498a2;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  line-height: 1.4;
  text-transform: uppercase;
}

.footer-icon {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 2.75rem;
  place-items: center;
  border: 1px solid rgba(195, 201, 207, 0.32);
  border-radius: 50%;
  color: #d1d6dc;
  background: rgba(195, 201, 207, 0.08);
}

.footer-icon svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.75;
}

.footer-icon-facebook {
  border-color: rgba(24, 119, 242, 0.52);
  color: #fff;
  background: #1877f2;
}

.footer-icon-facebook svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: currentColor;
  stroke: none;
}

.footer-navigation h2,
.footer-contact h2 {
  margin: 0 0 1rem;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.footer-navigation {
  gap: 0;
}

.footer-navigation a {
  justify-content: space-between;
  gap: 1rem;
  min-height: 47px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #b9c7ce;
  font-size: 0.92rem;
  transition: border-color 180ms ease, color 180ms ease, padding 180ms ease;
}

.footer-navigation a:first-of-type {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-navigation a span:last-child {
  color: #6f858f;
  transition: color 180ms ease, transform 180ms ease;
}

.footer-navigation a:hover {
  padding-left: 0.35rem;
  color: #fff;
  text-decoration: none;
}

.footer-navigation a:hover span:last-child {
  color: #d1d6dc;
  transform: translate(2px, -2px);
}

.footer-contact-list {
  display: grid;
  gap: 0.65rem;
}

.footer-contact-link {
  display: grid;
  min-width: 0;
  min-height: 70px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 7px;
  color: #f4f7f8;
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.footer-contact-link:hover {
  border-color: rgba(195, 201, 207, 0.42);
  color: #fff;
  background: rgba(255, 255, 255, 0.075);
  text-decoration: none;
  transform: translateY(-2px);
}

.footer-contact-copy strong {
  overflow-wrap: anywhere;
}

.footer-external-icon {
  width: 1.05rem;
  height: 1.05rem;
  color: #8498a2;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.footer-legal {
  padding-block: 1.4rem 1.65rem;
  border-top: 0;
}

@media (max-width: 900px) {
  .footer-main {
    grid-template-columns: minmax(0, 1.25fr) minmax(190px, 0.75fr);
  }

  .footer-company {
    grid-column: auto;
  }

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

  .footer-contact-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .footer-contact-link {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .footer-external-icon {
    display: none;
  }
}

@media (max-width: 760px) {
  .footer-prompt {
    grid-template-columns: 1fr;
    gap: 1.7rem;
    padding-block: 2.8rem 2.4rem;
  }

  .footer-prompt h2 {
    max-width: 13ch;
    font-size: clamp(2.15rem, 10.5vw, 3.15rem);
    line-height: 1.02;
  }

  .footer-prompt p {
    max-width: 36ch;
    font-size: 0.98rem;
    line-height: 1.65;
  }

  .footer-prompt-actions {
    width: 100%;
    gap: 0.7rem;
  }

  .footer-quick-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .footer-quick-action {
    display: grid;
    min-width: 0;
    min-height: 76px;
    grid-template-columns: 1.65rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.8rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 7px;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .footer-quick-action svg {
    width: 1.25rem;
    height: 1.25rem;
    justify-self: center;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .footer-quick-action > span:not(.footer-quick-arrow) {
    display: grid;
    min-width: 0;
    gap: 0.08rem;
  }

  .footer-quick-action small {
    color: currentColor;
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.25;
    opacity: 0.68;
    text-transform: uppercase;
  }

  .footer-quick-action strong {
    color: currentColor;
    font-size: 0.9rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
  }

  .footer-quick-action-call {
    border-color: #c8ced5;
    color: #10212a;
    background: #c8ced5;
  }

  .footer-quick-action-email {
    border-color: rgba(239, 179, 96, 0.38);
    background: rgba(239, 179, 96, 0.08);
  }

  .footer-quick-action-facebook {
    min-height: 62px;
    grid-column: 1 / -1;
    grid-template-columns: 1.65rem minmax(0, 1fr) auto;
    border-color: rgba(69, 139, 229, 0.34);
    background: rgba(24, 119, 242, 0.09);
  }

  .footer-quick-action-facebook svg {
    fill: currentColor;
    stroke: none;
  }

  .footer-quick-arrow {
    color: #8da4af;
    font-size: 1rem;
  }

  .footer-quick-action:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
  }

  .footer-prompt-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;
    border-color: rgba(239, 179, 96, 0.48);
    color: #fff;
    background: transparent;
    box-shadow: none;
  }

  .footer-prompt-button:hover {
    border-color: #d1d6dc;
    color: #10212a;
    background: #d1d6dc;
  }

  .footer-main {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 2.5rem 2.15rem;
  }

  .footer-company {
    grid-column: auto;
    padding-bottom: 2.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  }

  .footer-brand {
    width: min(205px, 70%);
  }

  .footer-company > p {
    max-width: 34ch;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .footer-location {
    margin-top: 1.25rem;
  }

  .footer-navigation {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.85rem;
    padding-top: 2rem;
  }

  .footer-navigation h2 {
    grid-column: 1 / -1;
    margin-bottom: 0.65rem;
  }

  .footer-navigation a,
  .footer-navigation a:nth-of-type(2) {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }

  .footer-navigation a {
    min-height: 52px;
    border-bottom: 0;
  }

  .footer-navigation a:last-of-type {
    grid-column: 1 / -1;
  }

  .footer-contact {
    display: none;
  }

  .footer-legal {
    gap: 1.25rem;
    padding-block: 1.35rem max(1.6rem, env(safe-area-inset-bottom));
  }

  .footer-legal-links {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 0.85rem !important;
  }

  .footer-legal-links a {
    min-height: 44px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
  }
}

@media (max-width: 430px) {
  .footer-prompt,
  .footer-main,
  .footer-legal {
    width: calc(100% - 2rem);
  }

  .footer-quick-action {
    grid-template-columns: 1.45rem minmax(0, 1fr);
    gap: 0.45rem;
    padding-inline: 0.62rem;
  }

  .footer-quick-action-facebook {
    grid-template-columns: 1.45rem minmax(0, 1fr) auto;
  }

  .footer-quick-action strong {
    font-size: 0.85rem;
  }
}

/* Construction project enquiry — technical briefing layout */
.contact-page {
  background: #dfe6e8;
}

.honeypot-field {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.project-enquiry-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(3.5rem, 7vw, 6.5rem);
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #0b1b24;
  background-size: 32px 32px;
}

.project-enquiry-hero::after {
  position: absolute;
  right: -7rem;
  bottom: -12rem;
  width: 31rem;
  height: 31rem;
  border: 1px solid rgba(200, 206, 213, 0.3);
  content: "";
  transform: rotate(32deg);
}

.project-enquiry-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.75fr);
  align-items: end;
  gap: clamp(2.5rem, 7vw, 7rem);
}

.project-enquiry-intro .breadcrumbs {
  color: rgba(255, 255, 255, 0.56);
}

.project-enquiry-intro .breadcrumbs a {
  color: rgba(255, 255, 255, 0.74);
}

.project-enquiry-intro .kicker,
.project-contact-rail .kicker {
  color: #d7dce1;
}

.project-enquiry-intro h1 {
  max-width: 10ch;
  margin-top: 1rem;
  color: #fff;
  font-size: clamp(3rem, 7vw, 6.6rem);
  letter-spacing: -0.055em;
  line-height: 0.94;
}

.project-enquiry-intro > p {
  max-width: 58ch;
  margin-top: 1.45rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
}

.project-enquiry-brief {
  border-top: 4px solid var(--accent);
  background: rgba(255, 255, 255, 0.06);
}

.brief-label {
  display: block;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.project-enquiry-brief ol,
.next-steps-block ol {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-enquiry-brief li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem;
  padding: 1rem 1.2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  line-height: 1.45;
}

.project-enquiry-brief li:last-child {
  border-bottom: 0;
}

.project-enquiry-brief li > b {
  display: none;
  color: #d7dce1;
  font-size: 0.73rem;
  opacity: 0;
  letter-spacing: 0.1em;
}

.project-enquiry-brief li strong {
  display: block;
  margin-bottom: 0.14rem;
  color: #fff;
  font-size: 0.94rem;
}

.contact-workbench {
  padding-block: clamp(2.75rem, 6vw, 5.75rem);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), transparent 36%),
    #dfe6e8;
}

.contact-workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, 0.62fr);
  align-items: start;
  gap: clamp(1.25rem, 3vw, 2.4rem);
}

.contact-page .project-form-panel {
  padding: clamp(1.25rem, 3vw, 2.4rem);
  border: 0;
  border-top: 6px solid var(--accent);
  border-radius: 0;
  background: var(--paper);
  box-shadow: 0 22px 55px rgba(9, 24, 33, 0.13);
}

.contact-page .form-progress {
  margin-bottom: clamp(1.75rem, 4vw, 2.7rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(17, 39, 51, 0.16);
}

.progress-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    place-items: center;
    align-self: center;
    margin-bottom: 0.9rem;
    width: 100% !important;
}

.progress-steps span {
  display: flex;
  min-height: 2.2rem;
  gap: 0.45rem;
  border-right: 1px solid rgba(17, 39, 51, 0.14);
  color: #86929a;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-steps span:last-child {
  border-right: 0;
  justify-content: flex-end;
}

.progress-steps span:nth-child(2) {
  justify-content: center;
}

.progress-steps span b {
  display: grid;
  width: 1.9rem;
  align-self: center;
  height: 1.9rem;
  place-items: center;
  border: 1px solid #c9d1d5;
  color: #687781;
  font-size: 0.66rem;
}

.progress-steps .is-current {
  color: var(--ink);
}

.progress-steps .is-current b {
  border-color: var(--accent);
  background: var(--accent);
  color: #132630;
}

.progress-steps .is-complete b {
  border-color: #15303d;
  background: #15303d;
  color: #fff;
}

.contact-page .form-progress-bar {
  height: 3px;
  border-radius: 0;
  background: #dfe6e8;
}

.contact-page .form-progress-bar span {
  border-radius: 0;
  background: var(--accent);
}

.contact-page .form-progress-label {
    margin-bottom: 0;
    place-self: anchor-center;
    gap: 50px;
}

.contact-page .form-step legend {
  max-width: 18ch;
  font-size: clamp(1.8rem, 3.4vw, 2.7rem);
  letter-spacing: -0.04em;
}

.contact-page .step-intro {
  max-width: 60ch;
  margin-top: 0.8rem;
  margin-bottom: 1.45rem;
}

.contact-page .construction-service-options {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: #c9d1d5;
}

.contact-page .construction-service-options .service-option-wide {
  grid-column: 1 / -1;
}

.contact-page .construction-service-options label > span {
  min-height: 118px;
  grid-template-areas:
    "number title"
    "number copy";
  grid-template-columns: 2.65rem minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  column-gap: 0.8rem;
  row-gap: 0.3rem;
  padding: 1.1rem;
  border: 0;
  border-radius: 0;
  background: var(--paper);
  box-shadow: none;
}

.contact-page .construction-service-options i {
    grid-area: number;
    color: #d2ffff;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.12em;
    margin: 0 auto;
    font-size: 18px;
}

.contact-page .construction-service-options b {
  grid-area: title;
  font-size: 0.98rem;
}

.contact-page .construction-service-options small {
  grid-area: copy;
  font-size: 0.8rem;
}

.contact-page .construction-service-options label:hover > span {
  border: 0;
  background: var(--canvas-deep);
}

.contact-page .construction-service-options input:focus-visible + span {
  border: 0;
  outline: 3px solid var(--accent);
  outline-offset: -3px;
  box-shadow: none;
}

.contact-page .construction-service-options input:checked + span {
  border: 0;
  background: #15303d;
  box-shadow: inset 5px 0 0 var(--accent);
}

.contact-page .construction-service-options input:checked + span b {
  color: #fff;
}

.contact-page .construction-service-options input:checked + span small {
  color: rgba(255, 255, 255, 0.66);
}

.contact-page .construction-service-options input:checked + span i {
  color: #d7dce1;
}

.contact-page .flow-fields {
  gap: 1rem;
}

.contact-page .flow-fields input,
.contact-page .flow-fields select,
.contact-page .flow-fields textarea {
  border-radius: 0;
  background-color: var(--paper-warm);
}

.contact-page .flow-fields input:focus,
.contact-page .flow-fields select:focus,
.contact-page .flow-fields textarea:focus {
  background-color: var(--paper);
}

.contact-page .service-detail-path {
  border: 0;
  border-top: 4px solid var(--accent);
  background: var(--paper-warm);
}

.contact-page .service-path-heading > span,
.contact-page .photo-upload-heading > span {
  color: #8a4b1c;
}

.contact-page .photo-upload-control {
  border-radius: 0;
  background: var(--paper-warm);
}

.contact-page .form-actions {
  justify-content: space-between;
  gap: 0.85rem;
}

.contact-page .form-actions .flow-back {
  margin-right: auto;
}

.contact-page .form-actions .flow-next,
.contact-page .form-actions .flow-submit {
  margin-left: auto;
}

.project-contact-rail {
  position: sticky;
  top: calc(var(--header-height) + 1.2rem);
  overflow: hidden;
  background: #0b1b24;
  color: #fff;
  box-shadow: 0 20px 45px rgba(9, 24, 33, 0.18);
}

.direct-contact-block,
.next-steps-block {
  position: relative;
  padding: clamp(1.3rem, 3vw, 2rem);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
}

.rail-number {
  position: absolute;
  top: 1rem;
  right: 1rem;
  color: rgba(255, 255, 255, 0.27);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.project-contact-rail h2 {
  margin-top: 0.65rem;
  color: #fff;
  font-size: clamp(1.8rem, 3.4vw, 2.55rem);
}

.project-contact-rail p {
  margin-top: 0.6rem;
  color: rgba(255, 255, 255, 0.63);
  font-size: 0.9rem;
}

.project-contact-rail .direct-contact-list a {
  min-height: 64px;
  border-color: rgba(255, 255, 255, 0.13);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
}

.project-contact-rail .direct-contact-list a:hover {
  border-color: var(--accent);
  background: rgba(200, 206, 213, 0.11);
  color: #fff;
}

.project-contact-rail .direct-contact-list small {
  color: rgba(255, 255, 255, 0.48);
}

.project-contact-rail .direct-contact-list svg {
  color: #d7dce1;
}

.next-steps-block ol {
  margin-top: 1.25rem;
}

.next-steps-block li {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.57);
  font-size: 0.8rem;
  line-height: 1.48;
}

.next-steps-block li > b {
  color: #d7dce1;
  font-size: 0.72rem;
}

.next-steps-block strong {
  display: block;
  margin-bottom: 0.12rem;
  color: #fff;
  font-size: 0.9rem;
}

.coverage-block {
  display: grid;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  align-items: center;
  gap: 0.8rem;
  padding: 1.2rem clamp(1.3rem, 3vw, 2rem);
  background: var(--accent);
  color: #142833;
}

.coverage-block svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.coverage-block b,
.coverage-block small {
  display: block;
}

.coverage-block small {
  margin-top: 0.12rem;
  font-size: 0.75rem;
}

.contact-page .form-success {
  min-height: 35rem;
  align-content: center;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.contact-page .success-mark {
  display: grid;
  width: 4.6rem;
  height: 4.6rem;
  place-items: center;
  margin: 0 auto 1.3rem;
  background: #15303d;
  color: #d7dce1;
  font-size: 2rem;
  font-weight: 800;
}

.contact-page .form-success h2 {
  margin-top: 0.8rem;
}

@media (max-width: 980px) {
  .project-enquiry-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2.25rem;
  }

  .project-enquiry-brief {
    max-width: 680px;
  }

  .contact-workbench-grid {
    grid-template-columns: 1fr;
  }

  .project-contact-rail {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .direct-contact-block {
    border-right: 1px solid rgba(255, 255, 255, 0.11);
  }

  .coverage-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .project-enquiry-hero {
    padding-block: 20px 0px !important;
    background-size: 24px 24px;
  }

  .project-enquiry-hero::after {
    display: none;
  }

  .project-enquiry-intro h1 {
    max-width: 12ch;
    font-size: clamp(2.7rem, 15vw, 4.3rem);
  }

  .project-enquiry-brief {
    margin-inline: -1rem;
  }

  .contact-workbench {
    padding-block: 0;
  }

  .contact-workbench > .container {
    width: 100%;
  }

  .contact-workbench-grid {
    gap: 0;
  }

  .contact-page .project-form-panel {
    padding: 1.3rem 1rem 2rem;
    border-top-width: 5px;
    box-shadow: none;
  }

  .progress-steps span {
    min-height: 2rem;
    gap: 0.3rem;
    font-size: 0.62rem;
    letter-spacing: 0.04em;
  }

  .progress-steps span b {
    width: 1.65rem;
    height: 1.65rem;
  }

  .contact-page .construction-service-options,
  .contact-page .construction-service-options .service-option-wide {
    grid-template-columns: 1fr;
    grid-column: auto;
  }

  .contact-page .construction-service-options label > span {
    min-height: 100px;
    border: 0;
    border-radius: 0;
  }

  .contact-page .construction-service-options input:checked + span {
    border: 0;
    background: #15303d;
    box-shadow: inset 5px 0 0 var(--accent);
  }

  .contact-page .service-detail-path {
    padding: 1rem;
    background: var(--paper-warm);
  }

  .contact-page .photo-upload-control {
    border: 1px dashed var(--line-strong);
  }

  .project-contact-rail {
    grid-template-columns: 1fr;
  }

  .direct-contact-block {
    border-right: 0;
  }

  .coverage-block {
    grid-column: auto;
  }
}

@media (max-width: 520px) {
  .progress-steps span {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center !important;
  }

  .contact-page .form-actions {
    flex-wrap: wrap;
  }

  .contact-page .form-actions button {
    width: 100%;
  }

  .contact-page .form-actions .flow-back {
    order: 2;
  }

  .contact-page .form-actions .flow-next,
  .contact-page .form-actions .flow-submit {
    order: 1;
  }
}

/* Compact inner-page headers */
.page-hero,
.contact-hero,
.service-detail-hero,
.work-hero,
.areas-hero {
  padding-block: clamp(1.65rem, 3vw, 2.65rem);
}

.page-hero h1,
.contact-hero h1,
.service-detail-hero h1,
.work-hero h1,
.areas-hero h1 {
  font-size: clamp(1.95rem, 3.8vw, 3.2rem);
}

.project-hero {
  padding-block: clamp(1.6rem, 3vw, 2.8rem);
}

.project-hero-grid {
  gap: clamp(1.5rem, 3.5vw, 3.5rem);
}

.project-back {
  margin-bottom: clamp(1rem, 2vw, 1.5rem);
}

.project-hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 4rem);
}

.project-lead {
  margin-top: 0.85rem;
}

.project-facts {
  margin-top: clamp(1.15rem, 2.5vw, 1.8rem);
}

.project-hero-media img {
  max-height: 460px;
  aspect-ratio: 16 / 10;
}

.project-enquiry-hero {
  padding-block: clamp(2.25rem, 4vw, 3.6rem);
}

.project-enquiry-hero-grid {
  gap: clamp(2rem, 4.5vw, 4.5rem);
}

.project-enquiry-intro h1 {
  font-size: clamp(2.55rem, 5vw, 4.5rem);
  line-height: 0.98;
}

.project-enquiry-intro > p {
  margin-top: 1rem;
}

@media (max-width: 760px) {
  .page-hero,
  .contact-hero,
  .service-detail-hero,
  .work-hero,
  .areas-hero {
    padding-block: 1.65rem;
  }

  .project-hero {
    padding-block: 1.4rem 2rem;
  }

  .project-hero-grid {
    gap: 1.35rem;
  }

  .project-hero-copy {
    order: -1;
  }

  .project-hero h1 {
    max-width: none;
    font-size: clamp(2rem, 10vw, 3.2rem);
    line-height: 1;
    text-wrap: balance;
  }

  .project-lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .project-hero-media,
  .project-hero-comparison {
    width: 100%;
  }

  .project-enquiry-hero {
    padding-block: 20px 0px !important;
  }

  .project-enquiry-intro h1 {
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }
}


/* Mobile header refresh */
.mobile-header-call,
.mobile-nav-head,
.mobile-nav-intro,
.mobile-nav-contact {
  display: none;
}

@media (max-width: 900px) {
  body.nav-open {
    overflow: hidden;
    overscroll-behavior: none;
  }

  .header {
    background: rgba(8, 25, 34, 0.985);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
  }

  .header-inner {
    min-height: 76px;
    gap: 30px;
  }

  .logo {
    width: clamp(128px, 36vw, 158px);
    min-width: 0;
    min-height: 60px;
    flex: 0 1 clamp(128px, 36vw, 158px);
  }

  .logo img {
    width: 100%;
    max-width: 158px;
    max-height: 66px;
  }

  .mobile-header-call {
    display: inline-flex;
    min-width: 68px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(239, 179, 96, 0.46);
    border-radius: 5px;
    color: #eeeeee;
    background: rgba(239, 179, 96, 0.08);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-decoration: none;
    text-transform: uppercase;
  }

  .mobile-header-call svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-header-call:hover,
  .mobile-header-call:focus-visible {
    border-color: #d1d6dc;
    color: #10212a;
    background: #d1d6dc;
    outline: none;
  }

  .nav-toggle {
    position: relative;
    display: grid;
    width: auto;
    height: 44px;
    min-width: 72px;
    flex: 0 0 auto;
    grid-template-columns: 18px auto;
    grid-template-rows: 1fr;
    align-items: center;
    justify-content: center;
    column-gap: 0.45rem;
    margin-left: 0;
    padding: 0.5rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.27);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
  }

  .nav-toggle i {
    grid-column: 1;
    grid-row: 1;
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 160ms ease, opacity 160ms ease;
  }

  .nav-toggle i:nth-child(1) {
    transform: translateY(-5px);
  }

  .nav-toggle i:nth-child(3) {
    transform: translateY(5px);
  }

  .nav-toggle em {
    position: static;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    height: auto;
    overflow: visible;
    color: #fff;
    clip: auto;
    font-size: 0.72rem;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    border-color: #d1d6dc;
    color: #d1d6dc;
    outline: none;
  }

  .btn-header {
    display: none;
  }

  .header .nav {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: grid;
    width: 100% !important;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: max-content;
    align-content: start;
    align-items: stretch;
    justify-items: stretch;
    gap: 0;
    padding: 0 0 max(1rem, env(safe-area-inset-bottom));
    overflow-x: hidden;
    overflow-y: auto;
    border: 0;
    background: var(--paper-warm);
    box-shadow: none;
    opacity: 0;
    pointer-events: none;
    transform: none;
    transition: opacity 170ms ease, visibility 170ms ease;
    visibility: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .header .nav.open {
    display: grid;
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
  }

  .header .mobile-nav-head {
    position: sticky;
    top: 0;
    z-index: 3;
    display: flex;
    min-height: 76px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: max(0.7rem, env(safe-area-inset-top)) var(--gutter) 0.7rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background: #081922;
  }

  .mobile-nav-logo {
    display: flex;
    width: clamp(145px, 43vw, 180px);
    min-width: 0;
    align-items: center;
  }

  .mobile-nav-logo img {
    display: block;
    width: 100%;
    height: auto;
    max-height: 62px;
    object-fit: contain;
    object-position: left center;
  }

  .mobile-nav-close {
    display: inline-flex;
    min-width: 78px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    border-radius: 5px;
    appearance: none;
    color: #fff;
    background: rgba(255, 255, 255, 0.045);
    font: inherit;
    cursor: pointer;
  }

  .mobile-nav-close span {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    line-height: 1;
    text-transform: uppercase;
  }

  .mobile-nav-close svg {
    width: 1rem;
    height: 1rem;
    fill: none;
    stroke: #d1d6dc;
    stroke-linecap: round;
    stroke-width: 2;
  }

  .mobile-nav-close:hover,
  .mobile-nav-close:focus-visible {
    border-color: #d1d6dc;
    color: #d1d6dc;
    outline: none;
  }

  .header .mobile-nav-intro {
    display: block;
    padding: 1.05rem var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--paper-warm);
  }

  .mobile-nav-intro span {
    display: block;
    margin-bottom: 0.28rem;
    color: var(--brand);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    line-height: 1.3;
    text-transform: uppercase;
  }

  .mobile-nav-intro p {
    margin: 0;
    color: #152832;
    font-family: var(--font-display);
    font-size: clamp(1.05rem, 4.8vw, 1.28rem);
    font-weight: 700;
    line-height: 1.35;
  }

  .header .mobile-nav-contact {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--line);
    background: var(--paper);
  }

  .mobile-nav-contact a {
    display: grid;
    min-width: 0;
    min-height: 66px;
    grid-template-columns: 1.4rem minmax(0, 1fr);
    align-items: center;
    gap: 0.55rem;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 5px;
    color: #152832;
    background: var(--paper-warm);
    text-decoration: none;
  }

  .mobile-nav-contact-call {
    border-color: #c8ced5 !important;
    background: #c8ced5 !important;
  }

  .mobile-nav-contact a svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
  }

  .mobile-nav-contact a > span {
    display: grid;
    min-width: 0;
    gap: 0.05rem;
  }

  .mobile-nav-contact small {
    color: currentColor;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.2;
    opacity: 0.67;
    text-transform: uppercase;
  }

  .mobile-nav-contact strong {
    overflow-wrap: anywhere;
    color: currentColor;
    font-size: 0.9rem;
    line-height: 1.3;
  }

  .mobile-nav-contact a:hover,
  .mobile-nav-contact a:focus-visible {
    border-color: var(--brand);
    background: var(--brand-light);
    outline: none;
  }

  .header .nav > .nav-direct {
    display: flex;
    width: 100%;
    min-height: 56px;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem var(--gutter);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: #152832;
    background: var(--paper);
    font-size: 1rem;
    font-weight: 750;
    letter-spacing: -0.01em;
    text-decoration: none;
    white-space: normal;
  }


  .header .nav > .nav-direct:hover,
  .header .nav > .nav-direct:focus-visible {
    color: var(--brand-dark);
    background: var(--brand-light);
    outline: none;
  }

  .header .nav > .nav-direct.active {
    padding-left: calc(var(--gutter) - 4px);
    border-left: 4px solid var(--accent);
    color: var(--brand-dark);
    background: var(--paper-warm);
  }

  .header .nav > .mobile-quote-link {
    display: grid;
    width: auto;
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-content: center;
    align-items: center;
    gap: 0.12rem 1rem;
    margin: 1rem var(--gutter) 0;
    padding: 0.85rem 1rem;
    border: 1px solid #17303d;
    border-radius: 5px;
    color: #fff;
    background: #102733;
    text-align: left;
    text-decoration: none;
  }

  .mobile-quote-link span {
    grid-column: 1;
    color: #2a2a2b;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .mobile-quote-link b {
    grid-column: 1;
    color: #050505;
    font-size: 1rem;
    line-height: 1.3;
  }

  .mobile-quote-link i {
    grid-column: 2;
    grid-row: 1 / 3;
    color: #d1d6dc;
    font-size: 1.3rem;
    font-style: normal;
  }

  .header .nav > .mobile-quote-link:hover,
  .header .nav > .mobile-quote-link:focus-visible {
    border-color: var(--brand);
    background: var(--brand);
    outline: none;
  }
}

@media (max-width: 360px) {
  .mobile-header-call,
  .nav-toggle {
    min-width: 46px;
    width: 46px;
    padding-inline: 0;
  }

  .mobile-header-call span,
  .nav-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-toggle {
    grid-template-columns: 18px;
  }

  .header .mobile-nav-contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .header .nav,
  .nav-toggle i {
    transition: none;
  }
}


/* A single inline SVG arrow design is used across links and controls so mobile
   browsers never substitute a platform emoji. Direction variants rotate it. */
svg.arrow-icon,
svg.arrow-icon-left,
svg.arrow-icon-down,
svg.arrow-icon-external {
  display: inline-block;
  width: 1em;
  height: 1em;
  max-width: none;
  flex: 0 0 auto;
  overflow: visible;
  color: inherit;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -0.12em;
}

svg.arrow-icon-left {
  transform: rotate(180deg);
}

svg.arrow-icon-down {
  transform: rotate(90deg);
}

svg.arrow-icon-external {
  transform: rotate(-45deg);
}

.nav-direct > .arrow-icon {
  display: none;
}

.project-lightbox button > .arrow-icon,
.project-lightbox button > .arrow-icon-left {
  width: 1.25rem;
  height: 1.25rem;
}

.contact-page .success-mark > .arrow-icon {
  width: 2rem;
  height: 2rem;
}

@media (max-width: 900px) {
  .header .nav > .nav-direct > .arrow-icon {
    display: block;
    width: 1rem;
    height: 1rem;
    color: #8a989f;
  }
}


/* Homepage hero crop and desktop height */
.home-hero .sg-hero-image::after {
  content: none;
}

@media (min-width: 901px) {
  .home-hero.sg-hero {
    min-height: 0;
    grid-template-rows: clamp(420px, 46vw, 620px) auto;
    background: #081922;
    gap: 0px !important;
  }

  .home-hero .sg-hero-image {
    position: relative;
    inset: auto;
    grid-row: 1;
    height: clamp(420px, 46vw, 620px);
    min-height: 0;
  }

  .home-hero .sg-hero-copy {
    grid-row: 2;
    min-height: 0;
    padding-block: 3.5rem 2rem;
    background: #081922;
  }

  .home-hero .sg-hero-image img {
    object-position: 50% 56%;
  }
}

@media (max-width: 900px) {
  .home-hero .sg-hero-image {
    height: auto;
  }

  .home-hero .sg-hero-image img {
    aspect-ratio: 16 / 10;
    object-position: 50% 56%;
  }
}


/* SG chrome 2026 — site-board navigation and footer */
@media (min-width: 901px) {
  .header {
    border-bottom: 3px solid var(--accent);
    background: #081922;
    box-shadow: 0 10px 28px rgba(4, 14, 20, 0.22);
  }

  .header-inner {
    min-height: 86px;
  }

  .logo {
    flex-basis: 188px;
    width: 188px;
    min-width: 172px;
    min-height: 72px;
  }

  .logo img {
    width: 188px;
    max-height: 74px;
  }

  .nav {
    gap: 0;
  }

  .nav > a,
  .nav-group > summary {
    min-height: 86px;
    padding-inline: clamp(0.65rem, 1.25vw, 1rem);
    border-bottom: 3px solid transparent;
    border-radius: 0;
    color: #c8d3d8;
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .nav > a:hover,
  .nav > a.active,
  .nav-group.active > summary,
  .nav-group > summary:hover {
    border-bottom-color: var(--accent);
    background: rgba(255, 255, 255, 0.045);
    color: #fff;
  }

  .btn-header {
    min-height: 48px;
    margin-left: 0.65rem;
    border-radius: 0;
    box-shadow: 5px 5px 0 rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
  }
}

/* The mobile menu is a compact site panel rather than a full-page card stack. */
@media (max-width: 900px) {
  .header {
    border-bottom: 3px solid var(--accent);
    background: #081922;
  }

  .header-inner {
    min-height: 72px;
    padding-block: 10px;
  }

  .logo {
    width: clamp(124px, 35vw, 152px);
    flex-basis: clamp(124px, 35vw, 152px);
    min-height: 56px;
  }

  .logo img {
    max-height: 60px;
  }

  .mobile-header-call {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #e2e2e2;
    background: rgba(243, 180, 91, 0.1);
  }

  .mobile-header-call span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mobile-header-call svg {
    width: 1.08rem;
    height: 1.08rem;
  }

  .nav-toggle {
    width: 52px;
    min-width: 52px;
    height: 46px;
    min-height: 46px;
    grid-template-columns: 20px;
    padding: 0;
    border: 0;
    border-radius: 0;
    color: #10242e;
    background: var(--accent);
    box-shadow: 4px 4px 0 rgba(255, 255, 255, 0.13);
  }

  .nav-toggle em {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .nav-toggle i {
    width: 20px;
    height: 2px;
    background: currentColor;
  }

  .nav-toggle:hover,
  .nav-toggle:focus-visible {
    color: #10242e;
    background: #d7dce1;
  }

  body.nav-open .header::after {
    position: fixed;
    inset: 0;
    z-index: 1100;
    background: rgba(2, 10, 14, 0.72);
    content: "";
  }

  .header .nav {
    right: 0;
    left: auto;
    z-index: 1200;
    width: min(430px, 92vw);
    grid-auto-rows: max-content;
    align-content: start;
    padding: 0 0 max(1rem, env(safe-area-inset-bottom));
    background: #0a1c25;
    box-shadow: -22px 0 55px rgba(0, 0, 0, 0.32);
    opacity: 1;
    transform: translateX(100%);
    transition: transform 220ms cubic-bezier(0.25, 0.8, 0.25, 1), visibility 220ms ease;
  }

  .header .nav.open {
    transform: translateX(0);
  }

  .header .mobile-nav-head {
    order: 0;
    min-height: 72px;
    padding: max(0.65rem, env(safe-area-inset-top)) 1rem 0.65rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    background: #081922;
  }

  .mobile-nav-logo {
    width: clamp(138px, 42vw, 176px);
  }

  .mobile-nav-close {
    width: 44px;
    min-width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.23);
    border-radius: 50%;
  }

  .mobile-nav-close span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .header .mobile-nav-intro {
    order: 1;
    padding: 1rem 1.25rem 1.1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    background: #0a1c25;
  }

  .mobile-nav-intro span {
    margin: 0 0 0.25rem;
    color: #d1d6dc;
    font-size: 0.66rem;
    letter-spacing: 0.16em;
  }

  .mobile-nav-intro p {
    color: #d7e0e4;
    font-family: var(--font-sans);
    font-size: 0.91rem;
    font-weight: 500;
  }

  .header .nav > .nav-direct {
    counter-increment: sg-mobile-nav;
    order: 2;
    min-height: 64px;
    grid-template-columns: 2.2rem minmax(0, 1fr) auto;
    padding: 0.82rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    color: #f3f6f7;
    background: transparent;
    font-size: clamp(1.03rem, 4.5vw, 1.2rem);
    font-weight: 750;
  }

  .header .nav {
    counter-reset: sg-mobile-nav;
  }

  .header .nav > .nav-direct::before {
    display: none;
    color: #eeeeee;
    content: "0" counter(sg-mobile-nav);
    font-size: 20px;
    font-weight: 800;
  }

  .header .nav > .nav-direct > .arrow-icon {
    color: #758b95;
  }

  .header .nav > .nav-direct:hover,
  .header .nav > .nav-direct:focus-visible {
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
  }

  .header .nav > .nav-direct.active {
    padding-left: 1.25rem;
    border-left: 0;
    color: #10242e;
    background: #c8ced5;
  }

  .header .nav > .nav-direct.active::before,
  .header .nav > .nav-direct.active > .arrow-icon {
    color: #10242e;
  }
    .header .nav > .mobile-quote-link {
        order: 3;
        min-height: 62px;
        margin: 0;
        border: 0;
        border-radius: 0;
        background: #c8ced5;
  }

  .header .nav > .mobile-quote-link:hover,
  .header .nav > .mobile-quote-link:focus-visible {
    color: #10242e;
    background: #c8ced5;
  }

  .header .mobile-nav-contact {
    order: 4;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0;
    margin-top: 0.8rem;
    padding: 0 1.25rem;
    border: 0;
    background: transparent;
  }

  .mobile-nav-contact a {
    min-height: 54px;
    grid-template-columns: 1fr;
    gap: 0.08rem;
    padding: 0.7rem 0;
    border: 0;
    border-radius: 0;
    color: #eef2f4;
    background: transparent !important;
  }

  .mobile-nav-contact a + a {
    padding-left: 1rem;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
  }

  .mobile-nav-contact a svg {
    display: none;
  }

  .mobile-nav-contact small {
    color: #aeb7c1;
    font-size: 0.62rem;
  }

  .mobile-nav-contact strong {
    color: #fff;
    font-size: 0.82rem;
  }
}

/* Footer: one strong project prompt followed by a flat technical information grid. */
.footer {
  overflow: hidden;
  border-top: 0;
  background: #070a0e;
  color: #edf2f4;
}

.footer::before {
  display: none;
}

.sg-footer-lead {
  padding-block: clamp(3.4rem, 6vw, 5.7rem);
}

.sg-footer-ref {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #c8ced5;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sg-footer-ref::before {
}

.sg-footer-lead-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(2rem, 7vw, 7rem);
  margin-top: 1.2rem;
}

.sg-footer-lead h2 {
  max-width: 100% !important;
  color: #fff;
  font-size: 60px;;
  line-height: 0.98;
}

.sg-footer-lead p {
  max-width: 100%!important;
  margin-top: 1.15rem;
  color: #aebdc4;
}

.sg-footer-project-link {
  display: flex;
  min-width: 250px;
  min-height: 62px;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem;
  padding: 1rem 1.15rem 1rem 1.3rem;
  border: 0;
  border-radius: 0;
  color: #10242e;
  background: #c8ced5;
  box-shadow: 7px 7px 0 rgba(255, 255, 255, 0.12);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
}

.sg-footer-project-link:hover {
  color: #10242e;
  background: #d7dce1;
  transform: translate(-2px, -2px);
}

.sg-footer-body {
  border-block: 1px solid rgba(255, 255, 255, 0.13);
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #0a0e13;
  background-size: 32px 32px;
}

.sg-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(260px, 1fr) minmax(170px, 0.72fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  padding-block: clamp(3rem, 5vw, 4.6rem);
}

.sg-footer-brand {
  display: block;
  width: min(230px, 82%);
  text-decoration: none;
}

.sg-footer-brand img {
  width: 100%;
}

.sg-footer-brand-block p {
  max-width: 35ch;
  margin-top: 1.25rem;
  color: #aebdc4;
  font-size: 0.92rem;
}

.sg-footer-location {
  display: block;
  margin-top: 1.25rem;
  color: #c8ced5;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.sg-footer-location b {
  margin-inline: 0.45rem;
  color: #627984;
}

.footer .sg-footer-contact h2,
.footer .sg-footer-nav h2 {
  margin: 0 0 1.25rem;
  color: #c8ced5;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sg-footer-contact {
  display: grid;
  align-content: start;
  gap: 0.85rem;
}

.sg-footer-contact a {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  gap: 0.45rem;
  color: #c4d0d5;
  font-size: 0.91rem;
  text-decoration: none;
}

.sg-footer-contact a:hover {
  color: #fff;
}

.sg-footer-contact .sg-footer-phone {
  display: grid;
  gap: 0.16rem;
  margin-bottom: 0.35rem;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
}

.sg-footer-phone small {
  color: #8498a2;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer .sg-footer-nav {
  display: grid;
  align-content: start;
  gap: 0;
  counter-reset: sg-footer-nav;
}

.footer .sg-footer-nav a {
  counter-increment: sg-footer-nav;
  display: grid;
  min-height: 42px;
  grid-template-columns: 1.8rem minmax(0, 1fr);
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: #bdc9ce;
  font-size: 0.86rem;
  text-decoration: none;
}

.footer .sg-footer-nav a::before {
  color: #667b85;
  content: "0" counter(sg-footer-nav);
  font-size: 0.62rem;
  font-weight: 800;
}

.footer .sg-footer-nav a:hover {
  color: #fff;
}

.footer .sg-footer-nav a:hover::before {
  color: #c8ced5;
}

.sg-footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.35rem 1.55rem;
  color: #7f929b;
  font-size: 0.7rem;
}

.sg-footer-base > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.2rem;
}

.sg-footer-legal a {
  min-height: 34px;
  align-items: center;
  color: #aebdc4;
  text-decoration: none;
}

.sg-footer-legal a:hover {
  color: #fff;
}

@media (max-width: 900px) {
  .sg-footer-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
  }

  .sg-footer-nav {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .sg-footer-lead {
    padding-block: 3.2rem 3.4rem;
  }

  .sg-footer-lead-row {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 2rem;
  }

  .sg-footer-lead h2 {
    max-width: 12ch;
    font-size: clamp(2.35rem, 12vw, 3.45rem);
  }

  .sg-footer-lead p {
    font-size: 0.96rem;
  }

  .sg-footer-project-link {
    width: 100%;
    min-width: 0;
  }

  .sg-footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
    padding-block: 0;
  }

  .sg-footer-brand-block,
  .sg-footer-contact,
  .footer .sg-footer-nav {
    grid-column: auto;
    padding-block: 2.2rem;
  }

  .sg-footer-brand-block,
  .sg-footer-contact {
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
  }

  .sg-footer-contact {
    order: -1;
  }

  .sg-footer-contact .sg-footer-phone {
    font-size: clamp(1.85rem, 9vw, 2.45rem);
  }

  .footer .sg-footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1rem;
  }

  .footer .sg-footer-nav h2 {
    grid-column: 1 / -1;
  }

  .footer .sg-footer-nav a {
    min-height: 48px;
  }

  .sg-footer-base {
    display: grid;
    gap: 1rem;
    padding-block: 1.5rem max(1.8rem, env(safe-area-inset-bottom));
  }

  .sg-footer-base > div:first-child {
    display: grid;
  }

  .sg-footer-legal {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 1rem !important;
  }

  .sg-footer-legal a {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }
}

@media (max-width: 380px) {
  .header .mobile-nav-contact {
    grid-template-columns: 1fr;
  }

  .mobile-nav-contact a + a {
    padding-left: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    border-left: 0;
  }

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

/* Cookie notice: a compact, privacy-first extension of the SG site chrome. */
.sg-cookie-settings {
  display: inline-flex;
  min-height: 34px;
  padding: 0;
  border: 0;
  color: #aebdc4;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

.sg-cookie-settings:hover {
  color: #fff;
}

.sg-cookie-settings:focus-visible {
  outline: 2px solid #c8ced5;
  outline-offset: 4px;
}

.cookie-notice {
  position: fixed;
  z-index: 2200;
  right: max(1.25rem, env(safe-area-inset-right));
  bottom: max(1.25rem, env(safe-area-inset-bottom));
  left: max(1.25rem, env(safe-area-inset-left));
  display: grid;
  width: min(860px, calc(100% - 2.5rem));
  max-width: none;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem 1.15rem;
  margin-inline: auto;
  padding: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0;
  color: #edf2f4;
  background:
    linear-gradient(90deg, #c8ced5 0 4px, transparent 4px),
    #0a0e13;
  box-shadow: 0 22px 60px rgba(1, 10, 15, 0.34), 7px 7px 0 rgba(200, 206, 213, 0.2);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 180ms ease, transform 220ms ease;
}

.cookie-notice[hidden] {
  display: none;
}

.cookie-notice.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.cookie-notice-mark {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border: 1px solid rgba(200, 206, 213, 0.48);
  color: #c8ced5;
  background: rgba(200, 206, 213, 0.08);
}

.cookie-notice-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.cookie-notice-mark circle {
  fill: currentColor;
  stroke: none;
}

.cookie-notice-label {
  display: block;
  margin-bottom: 0.2rem;
  color: #c8ced5;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.cookie-notice-copy h2 {
  margin: 0;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  text-transform: none;
}

.cookie-notice-copy p {
  max-width: 57ch;
  margin: 0.32rem 0 0;
  color: #b7c5cb;
  font-size: 0.87rem;
  line-height: 1.5;
}

.cookie-notice-actions {
  display: grid;
  min-width: 166px;
  gap: 0.6rem;
}

.cookie-notice-actions a {
  color: #c9d3d7;
  font-size: 0.75rem;
  font-weight: 700;
  text-align: center;
  text-decoration-color: rgba(201, 211, 215, 0.45);
  text-underline-offset: 0.2em;
}

.cookie-notice-actions a:hover {
  color: #fff;
}

.cookie-notice-dismiss {
  min-height: 46px;
  padding: 0.72rem 1rem;
  border: 1px solid #c8ced5;
  border-radius: 0;
  color: #10242e;
  background: #c8ced5;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
}

.cookie-notice-dismiss:hover {
  color: #10242e;
  background: #d7dce1;
  transform: translateY(-1px);
}

.cookie-notice-dismiss:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .cookie-notice {
    transition: none;
  }
}

@media (max-width: 760px) {
  .sg-cookie-settings {
    display: flex;
    border-top: 1px solid rgba(255, 255, 255, 0.11);
  }

  .cookie-notice {
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 0.75rem 0.85rem;
    padding: 1rem max(1rem, env(safe-area-inset-right)) max(1rem, env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left));
    border-width: 1px 0 0;
    background:
      linear-gradient(90deg, #c8ced5 0 4px, transparent 4px),
      #0a0e13;
    box-shadow: 0 -18px 45px rgba(1, 10, 15, 0.3);
  }

  .cookie-notice-mark {
    width: 42px;
    height: 42px;
    align-self: start;
  }

  .cookie-notice-mark svg {
    width: 24px;
    height: 24px;
  }

  .cookie-notice-actions {
    min-width: 0;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(150px, 1fr);
    align-items: center;
  }

  .cookie-notice-actions .cookie-notice-dismiss {
    width: auto;
    grid-column: auto;
  }
}

@media (max-width: 440px) {
  .cookie-notice-actions {
    grid-template-columns: 1fr;
  }

  .cookie-notice-actions a {
    order: 2;
    min-height: 40px;
    padding-top: 0.65rem;
  }

  .cookie-notice-actions .cookie-notice-dismiss {
    width: 100%;
  }
}

/* Fill portfolio frames edge to edge while keeping the crop centred. */
html body img[src*="/assets/portfolio/"] {
  object-fit: cover;
  object-position: center;
  background-color: #17303d;
}

/* Client project showcase and featured transformation */
.home-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}

.home-showcase-track,
.home-showcase-slide {
  position: absolute;
  inset: 0;
}

.home-showcase-track {
  touch-action: pan-y;
  user-select: none;
}

.home-showcase-slide {
  z-index: 1;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.home-showcase-slide.is-active {
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

.home-showcase .home-showcase-slide img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-showcase-slide figcaption {
  position: absolute;
  z-index: 3;
  right: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: .55rem .75rem;
  color: #fff;
  background: rgba(7, 10, 14, .82);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
    margin-right: max(5%, calc((100% - 1250px) / 2));
}

.home-showcase-controls {
  position: absolute;
  z-index: 5;
  bottom: 1rem;
  left: max(5%, calc((100% - 1250px) / 2));
  display: flex;
  align-items: center;
  gap: .4rem;
}

.home-showcase-controls > button {
  display: grid;
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  padding-inline: 0;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 2px;
  color: #fff;
  background: rgba(7, 10, 14, .78);
  font: inherit;
  font-size: .72rem;
  font-weight: 800;
  cursor: pointer;
  backdrop-filter: blur(8px);
}

.home-showcase-controls > button:hover,
.home-showcase-controls > button:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #0b0f14;
}

.home-showcase-controls > .home-showcase-pause {
  padding-inline: .7rem;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.home-showcase-dots {
  display: flex;
  gap: .35rem;
  padding: .45rem .55rem;
  border: 1px solid rgba(255, 255, 255, .3);
  background: rgba(7, 10, 14, .72);
  backdrop-filter: blur(8px);
}

.home-showcase-dots button {
  position: relative;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.home-showcase-dots button::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border: 1px solid #fff;
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
}

.home-showcase-dots button.is-active::before {
  background: #fff;
}

.home-featured-project {
  padding: clamp(2.5rem, 6vw, 5.5rem) 0;
  border-block: 1px solid var(--line);
  background: #070a0e;
}

.home-featured-project-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  align-items: stretch;
  gap: clamp(2rem, 5vw, 5rem);
}

.home-featured-media {
  position: relative;
  min-height: clamp(360px, 46vw, 620px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  color: #fff;
  background: #151b22;
}

.home-featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.home-featured-media:hover img {
  transform: scale(1.025);
}

.home-featured-media span {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  padding: .55rem .75rem;
  background: rgba(7, 10, 14, .84);
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.home-featured-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.home-featured-copy h2 {
  max-width: 11ch;
  margin-top: .8rem;
  color: #fff;
  font-size: clamp(2.2rem, 4.5vw, 4.6rem);
  line-height: .98;
}

.home-featured-copy p {
  max-width: 48ch;
  margin-top: 1.2rem;
  color: var(--ink-soft);
}

.home-featured-copy ul {
  display: grid;
  gap: .7rem;
  margin: 1.35rem 0 1.65rem;
  padding: 0;
  color: #e8ecef;
  list-style: none;
}

.home-featured-copy li {
  display: flex;
  align-items: center;
  gap: .65rem;
}

.home-featured-copy li::before {
  width: 7px;
  height: 7px;
  background: var(--accent);
  content: "";
}

@media (max-width: 900px) {
  .home-showcase {
    min-height: 340px;
  }

  .home-showcase .home-showcase-slide img {
    aspect-ratio: auto;
  }

  .home-featured-project-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-media {
    min-height: min(72vw, 500px);
  }

  .home-featured-copy h2 {
    max-width: 14ch;
  }
}

@media (max-width: 560px) {
  .home-showcase-controls {
    right: .75rem;
    bottom: .75rem;
    left: .75rem;
  }

  .home-showcase-slide figcaption {
    top: .75rem;
    right: .75rem;
    bottom: auto;
    margin-right: 0;
  }

  .home-showcase-pause {
    margin-left: auto;
  }

  .home-showcase-dots {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-showcase-slide,
  .home-featured-media img {
    transition: none;
  }
}

/* Three verified project transformations on the homepage. */
.home-comparisons {
  border-bottom: 1px solid var(--line);
  background: #0b0f14;
}

.home-comparisons-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.home-comparisons-heading h2 {
  max-width: 14ch;
  margin-top: .7rem;
  color: #fff;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.home-comparisons-heading > p {
  max-width: 48ch;
  color: var(--ink-soft);
}

.home-comparison-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.8rem);
}

.home-comparison-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line-strong);
  background: #111820;
}

.home-comparison-media,
.home-comparison-fallback {
  width: 100%;
  max-width: none;
  margin: 0;
}

.home-comparison-fallback img,
.home-comparison-slider .before-after-stage {
  width: 100%;
  aspect-ratio: 16 / 11;
  border-radius: 0;
  object-fit: cover;
  box-shadow: none;
}

.home-comparison-fallback figcaption,
.home-comparison-slider figcaption {
  min-height: 3.25rem;
  margin: 0;
  padding: .8rem 1rem;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  background: #0d131a;
  font-size: .78rem;
  line-height: 1.45;
}

.home-comparison-slider .before-after-label {
  top: .75rem;
  padding: .42rem .55rem;
  font-size: .64rem;
}

.home-comparison-slider .before-after-label-before {
  left: .75rem;
}

.home-comparison-slider .before-after-label-after {
  right: .75rem;
}

.home-comparison-slider .before-after-handle {
  width: 44px;
  height: 44px;
}

.home-comparison-copy {
  display: flex;
  min-height: 100%;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: clamp(1.2rem, 2.3vw, 1.7rem);
}

.home-comparison-copy h2,
.home-comparison-copy h3 {
  margin-top: .65rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.08;
}

.home-comparison-copy h2 a {
  color: inherit;
  text-decoration: none;
}

.home-comparison-copy > p {
  display: block;
  min-height: 0;
  margin: .9rem 0 1.25rem;
  overflow: visible;
  color: var(--ink-soft);
  font-size: .95rem;
  -webkit-line-clamp: unset;
}


@media (max-width: 900px) {
  .home-comparisons-heading {
    display: grid;
    align-items: start;
  }

  .home-comparison-grid {
    grid-template-columns: 1fr;
  }

  .home-comparison-card {
    width: min(100%, 760px);
    margin-inline: auto;
  }

  .home-comparison-slider {
    width: 100%;
    max-width: none;
    margin: 0;
  }

  .home-comparison-slider figcaption {
    padding-inline: 1rem;
  }
}

/* Keep generated page H1s within their hero at every viewport. */
h1,
.nj-hero-copy h1,
.page-hero h1,
.project-hero h1,
.project-enquiry-intro h1 {
  min-width: 0;
  max-inline-size: 100%;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

@media (max-width: 760px) {
  .nj-hero-copy h1,
  .page-hero h1,
  .project-hero h1,
  .project-enquiry-intro h1 {
    max-width: 100%;
    font-size: clamp(2rem, 9vw, 2.75rem);
    line-height: 1.04;
  }
}

@media (max-width: 360px) {
  .nj-hero-copy h1,
  .page-hero h1,
  .project-hero h1,
  .project-enquiry-intro h1 {
    font-size: clamp(1.85rem, 9vw, 2.1rem);
  }
}

/* Persistent compact navigation and site-wide scroll return. */
:root {
  --header-height: 89px;
}

body {
  padding-top: var(--header-height);
}

.header {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
}

.back-to-top {
  --scroll-progress: 0deg;
  position: fixed;
  right: max(1.15rem, calc((100vw - var(--content)) / 2));
  bottom: max(1.15rem, env(safe-area-inset-bottom));
  z-index: 900;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  padding: 3px;
  overflow: visible;
  border: 0;
  border-radius: 50%;
  background: conic-gradient(var(--accent) var(--scroll-progress), rgba(200, 206, 213, 0.2) 0);
  box-shadow: 0 15px 34px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px) scale(0.92);
  transition: opacity 180ms ease, transform 220ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms ease;
  visibility: hidden;
}

.back-to-top::before {
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: inherit;
  background: rgba(8, 25, 34, 0.96);
  content: "";
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  visibility: visible;
}

.back-to-top:hover {
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.46), 0 0 0 5px rgba(200, 206, 213, 0.12);
  transform: translateY(-3px);
}

.back-to-top:active {
  transform: translateY(-1px) scale(0.96);
}

.back-to-top-icon {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
}

.back-to-top-icon svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.back-to-top-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

body.nav-open .back-to-top {
  opacity: 0;
  pointer-events: none;
}

@media (max-width: 900px) {
  :root {
    --header-height: 75px;
  }

  .back-to-top {
    right: max(0.85rem, env(safe-area-inset-right));
    bottom: max(0.85rem, env(safe-area-inset-bottom));
    width: 52px;
    height: 52px;
  }
}

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

  .back-to-top {
    transition: none;
  }
}
