:root {
  --color-navy: #173047;
  --color-navy-deep: #0c1d2c;
  --color-charcoal: #202b32;
  --color-text: #26343c;
  --color-muted: #65727a;
  --color-background: #f2f1ed;
  --color-surface: #ffffff;
  --color-surface-cool: #eef1f2;
  --color-border: #d9dfe1;
  --color-border-dark: #496071;
  --color-metal: #8a9aa4;
  --color-copper: #8f6954;
  --container: 1180px;
  --content: 800px;
  --section-space: clamp(4.5rem, 8vw, 7rem);
  --radius-sm: 3px;
  --radius-md: 6px;
  --shadow-sm: 0 12px 32px rgba(12, 29, 44, 0.07);
  --shadow-header: 0 1px 0 rgba(12, 29, 44, 0.08);
  --transition: 180ms ease;
}

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

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

body {
  margin: 0;
  overflow-x: clip;
  color: var(--color-text);
  background: var(--color-surface);
  font-family: "Aptos", "Segoe UI Variable", "Segoe UI", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.68;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--color-charcoal);
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
  font-weight: 680;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

h1 {
  margin-bottom: 1.25rem;
  font-size: clamp(2.65rem, 5.4vw, 4.75rem);
  max-width: 900px;
}

h2 {
  margin-bottom: 1.4rem;
  font-size: clamp(2rem, 3.6vw, 3.35rem);
}

h3 {
  margin-bottom: 0.75rem;
  font-size: clamp(1.12rem, 1.6vw, 1.35rem);
  letter-spacing: -0.02em;
}

p {
  margin-bottom: 1.15rem;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

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

:focus-visible {
  outline: 3px solid #6b93ad;
  outline-offset: 3px;
}

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

.wrap {
  width: min(var(--container), calc(100% - 48px));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--color-metal);
  font-size: 0.72rem;
  font-weight: 760;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow.light {
  color: #c8d3d9;
}

.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  color: var(--color-navy-deep);
  background: var(--color-surface);
  box-shadow: var(--shadow-header);
}

.header-row {
  display: flex;
  align-items: center;
  min-height: 76px;
  gap: 24px;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  width: auto;
  color: var(--color-navy-deep);
  line-height: 1;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: auto;
  height: 62px;
}

.nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.55vw, 24px);
  margin-left: auto;
}

.nav a,
.footer-nav a {
  font-size: 0.76rem;
  font-weight: 720;
  letter-spacing: 0.025em;
  line-height: 1.2;
  text-decoration: none;
}

.nav > a:not(.nav-cta) {
  position: relative;
  padding-block: 10px;
}

.nav > a:not(.nav-cta)::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--color-navy);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform var(--transition);
}

.nav > a:hover::after,
.nav > a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.call-button,
.button,
.nav-cta,
.quote-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-weight: 760;
  line-height: 1.15;
  text-align: center;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), border-color var(--transition), transform var(--transition);
}

.call-button {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0.68rem 0.9rem;
  border-color: var(--color-border);
  color: var(--color-navy-deep);
  background: #fff;
  font-size: 0.75rem;
  white-space: nowrap;
}

.nav-cta {
  padding: 0.82rem 1.05rem;
  color: #fff;
  background: var(--color-navy);
}

.call-button:hover,
.call-button:active {
  border-color: var(--color-navy);
  background: var(--color-background);
}

.nav-cta:hover,
.nav-cta:active,
.quote-form button:hover,
.quote-form button:active {
  background: var(--color-navy-deep);
}

.button {
  min-height: 50px;
  padding: 0.9rem 1.25rem;
}

.button.primary {
  color: var(--color-navy-deep);
  background: #fff;
}

.button.primary:hover {
  background: #e9eef0;
}

.button.secondary-light {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
  background: transparent;
}

.button.secondary-light:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.dark-button {
  margin-top: 0.7rem;
  color: #fff;
  background: var(--color-navy);
}

.dark-button:hover,
.dark-button:active {
  background: var(--color-navy-deep);
}

.call-button:active,
.button:active,
.nav-cta:active,
.quote-form button:active {
  transform: translateY(1px);
}

.menu-button {
  display: none;
  min-width: 54px;
  min-height: 44px;
  flex: 0 0 auto;
  border: 1px solid var(--color-navy);
  border-radius: var(--radius-sm);
  color: var(--color-navy-deep);
  background: #fff;
  font-size: 0.74rem;
  font-weight: 760;
}

.hero {
  position: relative;
  display: grid;
  min-height: 650px;
  align-items: center;
  overflow: hidden;
  color: #fff;
  background-color: var(--color-navy-deep);
  background-image: url("assets/hero-home.webp");
  background-position: center 47%;
  background-size: cover;
}

.hero::before {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(5, 20, 31, 0.34);
}

.hero-content {
  position: relative;
  z-index: 1;
  padding-block: 76px;
}

.hero-copy {
  width: min(740px, 70%);
  padding: clamp(2rem, 4vw, 3.5rem);
  border-left: 3px solid #a9b7be;
  background: rgba(10, 28, 42, 0.88);
}

.hero h1 {
  max-width: 640px;
  color: #fff;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 580px;
  margin-bottom: 1.8rem;
  color: #e3e9ec;
  font-size: clamp(1rem, 1.4vw, 1.14rem);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 2.2rem 0 0;
  padding: 0;
  color: #d8e1e5;
  font-size: 0.72rem;
  font-weight: 730;
  letter-spacing: 0.07em;
  list-style: none;
  text-transform: uppercase;
}

.trust li + li {
  margin-left: 1rem;
  padding-left: 1rem;
  border-left: 1px solid rgba(255, 255, 255, 0.38);
}

.trust-band {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.stats > div {
  display: grid;
  align-content: center;
  min-height: 122px;
  padding: 1.3rem clamp(1.25rem, 3vw, 2.5rem);
  text-align: center;
}

.stats > div + div {
  border-left: 1px solid var(--color-border);
}

.stats b {
  color: var(--color-navy-deep);
  font-family: "Aptos Display", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.4rem);
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.stats span {
  margin-top: 0.4rem;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 690;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intro-section {
  background: #fff;
}

.intro,
.estimate-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: start;
  gap: clamp(3rem, 8vw, 7rem);
}

.intro h2 {
  max-width: 580px;
}

.intro > p {
  max-width: 580px;
  margin: 2.2rem 0 0;
  color: var(--color-muted);
  font-size: clamp(1.03rem, 1.5vw, 1.15rem);
}

.why-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.why-grid article {
  padding: 1.55rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.why-grid h3 {
  font-size: 1.08rem;
}

.why-grid p {
  margin: 0.75rem 0 0;
  color: var(--color-muted);
  font-size: 0.96rem;
}

.services-section {
  border-block: 1px solid var(--color-border);
  background: var(--color-background);
}

.services-section h2,
.recent-work h2,
.areas-section h2,
.testimonials-section h2 {
  max-width: 750px;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.card {
  position: relative;
  display: flex;
  min-height: 265px;
  flex-direction: column;
  padding: clamp(1.4rem, 2.6vw, 2rem);
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

.card::before {
  position: absolute;
  top: -1px;
  right: -1px;
  left: -1px;
  height: 3px;
  content: "";
  background: var(--color-navy);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--transition);
}

.card:hover {
  z-index: 1;
  color: var(--color-navy-deep);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.card:hover::before {
  transform: scaleX(1);
}

.card small {
  color: var(--color-metal);
  font-size: 0.7rem;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.card h2,
.card h3 {
  margin: 2rem 0 0.75rem;
}

.page-blog-index .card h2 {
  font-size: clamp(1.2rem, 2vw, 1.45rem);
}

.card p,
.muted-copy {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.card-action {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding-top: 1.2rem;
  color: var(--color-navy);
  font-size: 0.73rem;
  font-weight: 760;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-action span {
  transition: transform var(--transition);
}

.card:hover .card-action span {
  transform: translateX(3px);
}

.material-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(280px, 1.3fr) minmax(220px, 0.8fr);
  gap: clamp(1rem, 3vw, 2.25rem);
  align-items: start;
  margin-top: 2rem;
  padding: clamp(1.25rem, 2.5vw, 1.75rem);
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-metal);
  background: #fff;
}

.material-note h3,
.material-note p {
  margin: 0;
}

.material-note h3 {
  font-size: 1.08rem;
}

.material-note p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.dark {
  color: #fff;
  background: var(--color-navy-deep);
}

.dark h2,
.dark h3 {
  color: #fff;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(1.2rem, 3vw, 2.4rem);
  margin: 3.3rem 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  padding-top: 1.6rem;
  border-top: 1px solid var(--color-border-dark);
}

.steps li::before {
  position: absolute;
  top: -2px;
  left: 0;
  width: 46px;
  height: 3px;
  content: "";
  background: #aebbc2;
}

.steps b {
  color: #aebbc2;
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.steps h3 {
  margin-top: 1.45rem;
}

.steps p {
  margin-bottom: 0;
  color: #c5d0d6;
  font-size: 0.88rem;
}

.recent-work {
  background: #fff;
}

.gallery,
.reviews {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1rem, 2.2vw, 1.6rem);
  margin-top: 3rem;
}

.project-card {
  min-width: 0;
}

.project-media {
  position: relative;
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
}

.project-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-meta {
  display: grid;
  gap: 0.35rem;
  padding-top: 1rem;
}

.project-meta strong {
  color: var(--color-charcoal);
  font-size: 0.95rem;
  line-height: 1.35;
}

.project-meta span {
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.45;
}

.recent-work-link {
  display: inline-block;
  margin-top: 1.8rem;
  color: var(--color-navy);
  font-weight: 700;
}

.process-proof {
  width: 100%;
  max-width: 1080px;
  margin: 3rem auto 0;
}

.process-proof img {
  width: 100%;
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-sm);
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.areas-section {
  background: var(--color-background);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 3rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.section-lead {
  max-width: 690px;
  margin: 1rem 0 0;
  color: var(--color-muted);
}

.area-group-title {
  margin-top: 2.5rem;
  font-size: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.area-group-title + .area-grid {
  margin-top: 0.9rem;
}

.area-grid a {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: rgba(255, 255, 255, 0.56);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: color var(--transition), background-color var(--transition);
}

.area-grid a:hover {
  color: #fff;
  background: var(--color-navy);
}

.area-grid span {
  color: var(--color-metal);
  transition: transform var(--transition);
}

.area-grid a:hover span {
  color: #fff;
  transform: translateX(3px);
}

.testimonials-section {
  background: #fff;
}

.reviews article {
  display: flex;
  min-height: 185px;
  flex-direction: column;
  padding: clamp(1.5rem, 2.8vw, 2.2rem);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-navy);
  background: #fff;
}

.reviews p {
  margin-bottom: 1.5rem;
  color: var(--color-charcoal);
  font-size: clamp(1rem, 1.4vw, 1.1rem);
  line-height: 1.6;
}

.reviews b {
  margin-top: auto;
  color: var(--color-muted);
  font-size: 0.72rem;
  font-weight: 690;
  letter-spacing: 0.035em;
}

.pricing-faq {
  border-top: 1px solid var(--color-border);
  background: var(--color-background);
}

.faq {
  max-width: 860px;
}

.faq details {
  border-top: 1px solid var(--color-border);
  background: transparent;
}

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

.faq summary {
  position: relative;
  padding: 1.35rem 3rem 1.35rem 0;
  color: var(--color-charcoal);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::after {
  position: absolute;
  top: 50%;
  right: 0.25rem;
  content: "+";
  color: var(--color-navy);
  font-size: 1.35rem;
  font-weight: 400;
  transform: translateY(-50%);
}

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

.faq details p {
  max-width: 720px;
  padding: 0 3rem 1.35rem 0;
  color: var(--color-muted);
}

.estimate {
  padding-block: var(--section-space);
  color: #fff;
  background: var(--color-navy);
}

.estimate h2 {
  max-width: 500px;
  color: #fff;
}

.estimate-grid > div > p:not(.eyebrow) {
  max-width: 490px;
  color: #d5dee3;
}

.estimate-grid > div > p:last-child {
  margin-top: 2rem;
  color: #fff;
  font-size: 1.02rem;
  font-weight: 650;
}

.estimate a {
  color: #fff;
}

.quote-form {
  display: grid;
  gap: 1.05rem;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border-radius: var(--radius-md);
  color: var(--color-text);
  background: #fff;
  box-shadow: 0 18px 50px rgba(4, 18, 28, 0.19);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-row > * {
  min-width: 0;
}

.quote-form label {
  display: grid;
  gap: 0.4rem;
  color: #43525b;
  font-size: 0.73rem;
  font-weight: 720;
  letter-spacing: 0.02em;
}

input,
select,
textarea {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #cfd7da;
  border-radius: var(--radius-sm);
  color: var(--color-text);
  background: #fbfcfc;
}

textarea {
  min-height: 108px;
  resize: vertical;
}

input:hover,
select:hover,
textarea:hover {
  border-color: var(--color-metal);
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-navy);
  outline: 2px solid rgba(70, 111, 139, 0.22);
  outline-offset: 0;
}

.quote-form button {
  min-height: 50px;
  justify-self: start;
  padding: 0.9rem 1.2rem;
  border: 0;
  color: #fff;
  background: var(--color-navy);
  cursor: pointer;
}

.quote-form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-message {
  min-height: 1.3em;
  margin: 0;
  color: var(--color-muted);
  font-size: 0.78rem;
}

.form-message[data-state="error"] {
  color: #8d3529;
  font-weight: 650;
}

.form-helper {
  margin: -0.35rem 0 0;
  color: var(--color-muted);
  font-size: 0.74rem;
}

.quote-form .form-helper a {
  color: var(--color-navy);
  font-weight: 680;
}

.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.turnstile-container {
  width: 100%;
  min-height: 0;
}

.form-success {
  padding-block: 0.4rem;
  border-top: 3px solid var(--color-navy);
}

.form-success h3 {
  margin: 1.2rem 0 0.75rem;
  color: var(--color-navy-deep);
  font-size: clamp(1.45rem, 2.4vw, 2rem);
}

.form-success p {
  margin-bottom: 0.8rem;
  color: var(--color-text);
}

.form-success p:last-child {
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 0.9rem;
}

.quote-form .form-success a {
  color: var(--color-navy);
  font-weight: 700;
}

.page-hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-background);
}

.page-hero::after {
  position: absolute;
  top: 0;
  left: max(24px, calc((100vw - var(--container)) / 2));
  width: 92px;
  height: 5px;
  content: "";
  background: var(--color-navy);
}

.page-city .page-hero {
  background: #eef1f1;
}

.page-service .page-hero {
  background: #f3f1ed;
}

.page-blog-index .page-hero,
.page-blog-article .page-hero {
  background: #f6f5f2;
}

.page-hero .wrap {
  padding-block: clamp(3.5rem, 6.5vw, 5.5rem);
}

.page-hero h1 {
  max-width: 960px;
  font-size: clamp(2.15rem, 4.35vw, 4rem);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: clamp(1.02rem, 1.5vw, 1.15rem);
}

.page-hero .dark-button {
  margin-top: 1.4rem;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 2rem;
  color: #75828a;
  font-size: 0.74rem;
  line-height: 1.5;
}

.crumbs a {
  color: var(--color-navy);
  font-weight: 650;
}

.crumbs span {
  color: #9aa4aa;
}

.article {
  width: min(var(--content), calc(100% - 48px));
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.article > h2 {
  margin: 3.2rem 0 1rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
  font-size: clamp(1.65rem, 2.6vw, 2.25rem);
}

.article > h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.article h3 {
  margin: 2rem 0 0.55rem;
  font-size: 1.15rem;
}

.article p,
.article li {
  color: #45545d;
}

.article p {
  margin-bottom: 1.25rem;
}

.article ul,
.article ol {
  display: grid;
  gap: 0.7rem;
  margin: 1.35rem 0 2rem;
  padding-left: 1.35rem;
}

.article li::marker {
  color: var(--color-navy);
  font-weight: 720;
}

.article a,
.crumbs,
.site-footer a {
  overflow-wrap: anywhere;
}

.article table {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 1.5rem 0 2.2rem;
  overflow-x: auto;
  border-collapse: collapse;
  font-size: 0.88rem;
  white-space: nowrap;
}

.table-scroll-hint {
  display: none;
}

.article th,
.article td {
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--color-border);
  text-align: left;
}

.article th {
  color: #fff;
  background: var(--color-navy);
  font-weight: 680;
}

.article tr:nth-child(even) td {
  background: #f5f6f5;
}

.pricing-heading + p {
  margin-top: 1.2rem;
  padding: 1.3rem 1.4rem;
  border-left: 3px solid var(--color-copper);
  background: var(--color-background);
}

.related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 1.5rem;
  border-top: 1px solid var(--color-border);
  border-left: 1px solid var(--color-border);
}

.related a {
  display: flex;
  min-height: 72px;
  align-items: center;
  padding: 1rem;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-navy);
  font-size: 0.86rem;
  font-weight: 690;
  text-decoration: none;
}

.related a:hover {
  color: #fff;
  background: var(--color-navy);
}

.blog-listing {
  background: #fff;
}

.page-blog-index .card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 960px;
}

.page-blog-index .card {
  min-height: 290px;
  background: #fff;
}

.page-blog-index .card small {
  color: var(--color-copper);
  font-size: 0.7rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.page-blog-article .article {
  font-size: 1.02rem;
  line-height: 1.76;
}

.article-photo {
  margin: 2rem 0 2.5rem;
}

.article-photo img {
  width: 100%;
  height: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
}

.article-photo figcaption {
  margin-top: 0.65rem;
  color: var(--color-muted);
  font-size: 0.86rem;
  line-height: 1.5;
}

.real-project-comparison {
  margin: 3.2rem 0 3.7rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--color-border);
}

.real-project-comparison > p:not(.eyebrow) {
  max-width: 680px;
}

.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.before-after figure {
  margin: 0;
}

.before-after img {
  width: 100%;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-after figcaption {
  margin-top: 0.65rem;
  color: var(--color-navy);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.3;
  text-transform: uppercase;
}

.case-study-list {
  width: min(1020px, calc(100% - 48px));
}

.case-study-list > .gallery {
  margin-top: 0;
}

.project-stories {
  margin-top: clamp(4rem, 8vw, 6rem);
  padding-top: clamp(3rem, 6vw, 4.5rem);
  border-top: 1px solid var(--color-border);
}

.project-stories > h2 {
  max-width: 760px;
}

.case-study-entries {
  margin-top: 2.5rem;
}

.case-study-entry {
  padding-block: 2.2rem;
  border-top: 1px solid var(--color-border);
}

.case-study-entry:first-child {
  padding-top: 0;
  border-top: 0;
}

.case-study-entry h2 {
  margin-bottom: 0.9rem;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

.case-study-entry p {
  margin-bottom: 0;
}

.case-study-copy {
  max-width: 760px;
}

.page-error .page-hero {
  min-height: 58vh;
  display: grid;
  align-items: center;
}

.page-error .actions {
  margin-top: 2rem;
}

.site-footer {
  color: #fff;
  background: var(--color-navy-deep);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(180px, 0.7fr) minmax(200px, 0.8fr);
  gap: clamp(2.5rem, 7vw, 6rem);
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.footer-wordmark {
  width: 185px;
  max-width: 100%;
  color: #fff;
}

.footer-logo {
  display: block;
  width: 185px;
  max-width: 100%;
  height: auto;
}

.footer-brand > p {
  max-width: 410px;
  margin: 1.5rem 0 0;
  color: #bfcbd1;
  font-size: 0.88rem;
}

.footer-label {
  margin-bottom: 1.1rem;
  color: #91a3ad;
  font-size: 0.67rem;
  font-weight: 730;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.footer-contact p:last-child {
  color: #d5dde1;
  font-size: 0.88rem;
}

.footer-nav {
  display: grid;
  align-content: start;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.4rem;
}

.footer-nav .footer-label {
  grid-column: 1 / -1;
}

.footer-nav a {
  color: #d5dde1;
}

.footer-nav a:hover,
.footer-contact a:hover {
  color: #fff;
}

.footer-base {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.25rem;
  border-top: 1px solid #2b4050;
  color: #8ea0aa;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
}

@media (max-width: 1100px) {
  html {
    scroll-padding-top: 78px;
  }

  .header-row {
    position: relative;
    min-height: 68px;
    gap: 10px;
  }

  .brand-logo {
    height: 56px;
  }

  .nav {
    position: absolute;
    top: 68px;
    right: calc((100vw - 100%) / -2);
    left: calc((100vw - 100%) / -2);
    display: none;
    max-height: calc(100vh - 68px);
    margin: 0;
    padding: 1rem 24px 1.4rem;
    overflow-y: auto;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    background: #fff;
    box-shadow: 0 18px 32px rgba(12, 29, 44, 0.12);
  }

  .nav.open {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
  }

  .nav > a:not(.nav-cta) {
    min-height: 48px;
    padding: 0.9rem 0.75rem;
    border-bottom: 1px solid var(--color-border);
  }

  .nav > a:not(.nav-cta)::after {
    display: none;
  }

  .nav-cta {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }

  .call-button {
    margin-left: auto;
  }

  .menu-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .hero-copy {
    width: min(720px, 82%);
  }

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

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

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

  .case-study-list > .gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 900px) {
  .recent-work .gallery {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 780px) {
  :root {
    --section-space: 4.3rem;
  }

  .wrap,
  .article,
  .case-study-list {
    width: min(100% - 32px, var(--container));
  }

  h1 {
    font-size: clamp(2.25rem, 10.5vw, 3.4rem);
  }

  h2 {
    font-size: clamp(1.82rem, 8vw, 2.65rem);
  }

  .hero {
    min-height: 610px;
    align-items: end;
    background-position: 62% center;
  }

  .hero::before {
    background: rgba(5, 20, 31, 0.28);
  }

  .hero-content {
    width: 100%;
    padding: 6rem 0 0;
  }

  .hero-copy {
    width: 100%;
    padding: 2.2rem 16px 2.4rem;
    border-left: 0;
    border-top: 3px solid #a9b7be;
    background: rgba(10, 28, 42, 0.92);
  }

  .hero h1 {
    margin-bottom: 1rem;
  }

  .hero-copy > p:not(.eyebrow) {
    margin-bottom: 1.4rem;
    font-size: 0.98rem;
  }

  .button {
    min-height: 48px;
  }

  .stats > div {
    min-height: 106px;
    padding-inline: 0.75rem;
  }

  .stats b {
    font-size: 1.75rem;
  }

  .stats span {
    font-size: 0.61rem;
  }

  .intro,
  .estimate-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .intro > p {
    margin-top: 0;
  }

  .case-study-list > .gallery,
  .recent-work .gallery,
  .reviews {
    grid-template-columns: 1fr;
  }

  .before-after {
    grid-template-columns: 1fr;
  }

  .material-note {
    grid-template-columns: 1fr;
  }

  .project-card:nth-child(n + 3) {
    display: block;
  }

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

  .quote-form button {
    width: 100%;
  }

  .page-hero::after {
    left: 16px;
    width: 58px;
  }

  .page-hero .wrap {
    padding-block: 3.8rem;
  }

  .crumbs {
    margin-bottom: 1.6rem;
  }

  .article {
    padding-block: 4rem;
  }

  .related,
  .page-blog-index .card-grid {
    grid-template-columns: 1fr;
  }

  .case-study-entry {
    grid-template-columns: 1fr;
    gap: 1.3rem;
  }

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

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

@media (max-width: 560px) {
  .quote-form {
    padding: 1.25rem;
  }

  .header-row {
    gap: 8px;
  }

  .brand {
    flex: 0 1 auto;
    width: auto;
    min-width: 0;
    max-width: none;
  }

  .brand-logo {
    height: 49px;
  }

  .footer-wordmark,
  .footer-logo {
    width: 165px;
  }

  .call-button {
    min-height: 42px;
    padding-inline: 0.72rem;
    font-size: 0.7rem;
  }

  .menu-button {
    min-width: 50px;
    padding-inline: 0.55rem;
    font-size: 0.7rem;
  }

  .nav.open {
    grid-template-columns: 1fr;
    padding-inline: 16px;
  }

  .nav-cta {
    grid-column: 1;
  }

  .hero {
    min-height: 590px;
  }

  .hero-content {
    padding-top: 5rem;
  }

  .hero-copy {
    padding-bottom: 2rem;
  }

  .hero .actions {
    display: grid;
    grid-template-columns: 1fr 0.72fr;
  }

  .hero .button {
    width: 100%;
    padding-inline: 0.8rem;
    font-size: 0.82rem;
  }

  .trust {
    margin-top: 1.6rem;
    font-size: 0.64rem;
  }

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

  .stats > div {
    min-height: 88px;
    padding: 0.8rem 0.35rem;
  }

  .stats > div + div {
    border-top: 0;
    border-left: 1px solid var(--color-border);
  }

  .stats b {
    font-size: 1.35rem;
  }

  .stats span {
    font-size: 0.54rem;
    line-height: 1.3;
  }

  .card-grid,
  .steps,
  .area-grid,
  .why-grid {
    grid-template-columns: 1fr;
  }

  .card {
    min-height: 230px;
  }

  .article table {
    font-size: 0.8rem;
  }

  .pricing-heading + .table-scroll-hint {
    display: block;
    margin: -0.2rem 0 0.85rem;
    padding: 0;
    border-left: 0;
    color: var(--color-muted);
    background: transparent;
    font-size: 0.74rem;
  }

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

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

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

  .footer-base {
    flex-direction: column;
  }
}

@media (max-width: 360px) {
  .wrap,
  .article,
  .case-study-list {
    width: min(100% - 28px, var(--container));
  }

  .call-button {
    padding-inline: 0.6rem;
  }

  .menu-button {
    min-width: 48px;
  }

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

  .trust li + li {
    margin-left: 0.7rem;
    padding-left: 0.7rem;
  }
}

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

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