:root {
  --brand-blue: #083c5c;
  --brand-blue-dark: #052f49;
  --brand-blue-deep: #031f31;
  --brand-blue-soft: #eaf2f5;
  --ink: #1c292f;
  --ink-soft: #506068;
  --cream: #f5f1e8;
  --cream-deep: #e9e0d1;
  --sand: #b89164;
  --line: rgba(8, 60, 92, 0.16);
  --white: #ffffff;
  --shadow-sm: 0 14px 36px rgba(3, 31, 49, 0.10);
  --shadow-lg: 0 30px 70px rgba(3, 31, 49, 0.20);
  --radius-sm: 0.35rem;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --container: 76rem;
  --header-height: 5.25rem;
  --font-sans: "Avenir Next", Avenir, "Helvetica Neue", "Segoe UI", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

img {
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

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

button {
  cursor: pointer;
}

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

h1,
h2,
h3,
h4 {
  color: var(--brand-blue-deep);
  font-family: var(--font-sans);
  font-weight: 500;
  line-height: 1.04;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3rem, 6.5vw, 6.9rem);
  letter-spacing: -0.045em;
}

h2 {
  font-size: clamp(2.25rem, 4.3vw, 4.25rem);
  letter-spacing: -0.035em;
}

h3 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

p:last-child,
ul:last-child,
ol:last-child {
  margin-bottom: 0;
}

::selection {
  color: var(--white);
  background: var(--brand-blue);
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 9999;
  padding: 0.8rem 1.1rem;
  color: var(--white);
  background: var(--brand-blue);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 2.5rem), var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(calc(100% - 2.5rem), 54rem);
  margin-inline: auto;
}

.section {
  padding-block: clamp(5rem, 9vw, 9rem);
}

.section-tight {
  padding-block: clamp(3.8rem, 6.5vw, 6.5rem);
}

/* Subtle CSS woodgrain texture; no external image file is required. */
.section-cream {
  background-color: var(--cream);
  background-image:
    repeating-linear-gradient(176deg, rgba(89, 62, 39, 0.035) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(ellipse at 18% 44%, transparent 0 42px, rgba(89, 62, 39, 0.035) 43px 44px, transparent 46px 91px);
  background-size: 100% 5.5rem, 42rem 15rem;
}

.section-blue {
  color: rgba(255, 255, 255, 0.82);
  background-color: var(--brand-blue-deep);
  background-image:
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.022) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(ellipse at 18% 44%, transparent 0 42px, rgba(184, 145, 100, 0.055) 43px 44px, transparent 46px 91px);
  background-size: 100% 5.5rem, 42rem 15rem;
}

.section-blue h2,
.section-blue h3,
.section-blue a {
  color: var(--white);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.25rem;
  color: var(--brand-blue);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.19em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 2.4rem;
  height: 1px;
  background: currentColor;
  content: "";
}

.eyebrow-light {
  color: rgba(255, 255, 255, 0.78);
}

.lede {
  max-width: 46rem;
  color: var(--ink-soft);
  font-size: clamp(1.08rem, 1.6vw, 1.3rem);
  line-height: 1.75;
}

.lede-light {
  color: rgba(255, 255, 255, 0.84);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--brand-blue);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
}

.text-link::after {
  content: "\2192";
  font-size: 1.1em;
  transition: transform 180ms ease;
}

.text-link:hover::after,
.text-link:focus-visible::after {
  transform: translateX(0.3rem);
}

.button {
  display: inline-flex;
  min-height: 3.2rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.9rem 1.5rem;
  border: 1px solid var(--brand-blue);
  border-radius: 999px;
  color: var(--white);
  background: var(--brand-blue);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--brand-blue-dark);
  border-color: var(--brand-blue-dark);
  transform: translateY(-2px);
}

.button-light {
  color: var(--brand-blue-deep);
  background: var(--white);
  border-color: var(--white);
}

.button-light:hover,
.button-light:focus-visible {
  color: var(--white);
  background: transparent;
  border-color: rgba(255, 255, 255, 0.7);
}

.button-outline {
  color: var(--brand-blue);
  background: transparent;
}

.button-outline:hover,
.button-outline:focus-visible {
  color: var(--white);
  background: var(--brand-blue);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.topbar {
  color: rgba(255, 255, 255, 0.78);
  background: var(--brand-blue-deep);
  font-size: 0.73rem;
  letter-spacing: 0.095em;
  text-transform: uppercase;
}

.topbar-inner {
  display: flex;
  min-height: 2.35rem;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar a {
  color: var(--white);
  text-decoration: none;
}

.topbar-links {
  display: flex;
  gap: 1.25rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid rgba(8, 60, 92, 0.10);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: grid;
  min-height: var(--header-height);
  grid-template-columns: 13rem 1fr auto;
  align-items: center;
  gap: 2rem;
}

.site-logo {
  display: inline-block;
  width: 11.25rem;
}

.site-logo img {
  width: 100%;
  height: 3.4rem;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  justify-self: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.2vw, 2rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-list a {
  position: relative;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.nav-list a::after {
  position: absolute;
  right: 0;
  bottom: -0.55rem;
  left: 0;
  height: 2px;
  background: var(--brand-blue);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

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

.nav-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--brand-blue);
  background: var(--white);
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before {
  position: absolute;
  top: -0.4rem;
}

.nav-toggle-lines::after {
  position: absolute;
  top: 0.4rem;
}

.nav-open .nav-toggle-lines {
  background: transparent;
}

.nav-open .nav-toggle-lines::before {
  top: 0;
  transform: rotate(45deg);
}

.nav-open .nav-toggle-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero-home {
  position: relative;
  min-height: min(80vh, 52rem);
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-deep);
}

.hero-home::after {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(3, 31, 49, 0.88) 0%, rgba(3, 31, 49, 0.54) 50%, rgba(3, 31, 49, 0.12) 100%),
    linear-gradient(0deg, rgba(3, 31, 49, 0.55), transparent 55%);
  content: "";
}

.hero-home-media,
.hero-home-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-home-media img {
  object-fit: cover;
  object-position: center 48%;
  filter: saturate(0.88) contrast(1.02);
}

.hero-home-inner {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: min(80vh, 52rem);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 3rem;
  padding-block: clamp(5.5rem, 11vw, 9rem) clamp(4rem, 7vw, 6rem);
}

.hero-home-copy {
  max-width: 56rem;
}

.hero-home h1 {
  max-width: 52rem;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.hero-home .lede {
  max-width: 42rem;
  color: rgba(255, 255, 255, 0.86);
}

.hero-credential {
  display: grid;
  width: 12rem;
  min-height: 12rem;
  place-content: center;
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  text-align: center;
  backdrop-filter: blur(6px);
}

.hero-credential strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 3rem;
  font-weight: 500;
  line-height: 1;
}

.hero-credential span {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.5;
  text-transform: uppercase;
}

.page-hero {
  position: relative;
  min-height: 35rem;
  overflow: hidden;
  color: var(--white);
  background: var(--brand-blue-deep);
}

.page-hero::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(3, 31, 49, 0.9) 0%, rgba(3, 31, 49, 0.58) 54%, rgba(3, 31, 49, 0.2) 100%);
  content: "";
}

.page-hero-media,
.page-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.page-hero-media img {
  object-fit: cover;
  object-position: center;
}

.page-hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 35rem;
  max-width: 58rem;
  flex-direction: column;
  justify-content: flex-end;
  padding-block: 6rem 5rem;
}

.page-hero h1 {
  margin-bottom: 1.35rem;
  color: var(--white);
  font-size: clamp(3.3rem, 6vw, 6.2rem);
}

.page-hero p {
  max-width: 43rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: clamp(1.08rem, 1.6vw, 1.25rem);
}

.page-hero-compact,
.page-hero-compact .page-hero-inner {
  min-height: 28rem;
}

.page-hero-compact .page-hero-inner {
  padding-block: 5rem 4rem;
}

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

.intro-grid h2 {
  margin-bottom: 0;
}

.body-copy {
  color: var(--ink-soft);
  font-size: 1.04rem;
}

.body-copy p {
  margin-bottom: 1.35rem;
}

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

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-top: 3.5rem;
  background: var(--line);
  border: 1px solid var(--line);
}

.stat {
  padding: 1.8rem;
  background: var(--white);
}

.stat strong {
  display: block;
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 500;
  line-height: 1.1;
}

.stat span {
  display: block;
  margin-top: 0.45rem;
  color: var(--ink-soft);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4.5rem);
}

.section-heading h2 {
  max-width: 52rem;
  margin-bottom: 0;
}

.section-heading .lede {
  margin-bottom: 0;
}

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

.service-card {
  position: relative;
  display: flex;
  min-height: 20rem;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--white);
  transition: color 240ms ease, background 240ms ease, transform 240ms ease, box-shadow 240ms ease;
}

.service-card::before {
  position: absolute;
  inset: auto 0 0;
  height: 0.28rem;
  background: var(--sand);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 240ms ease;
}

.service-card:hover {
  color: rgba(255, 255, 255, 0.82);
  background: var(--brand-blue);
  box-shadow: var(--shadow-sm);
  transform: translateY(-0.3rem);
}

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

.service-card h3 {
  margin-bottom: 1rem;
  transition: color 240ms ease;
}

.service-card:hover h3,
.service-card:hover .text-link {
  color: var(--white);
}

.service-card p {
  color: var(--ink-soft);
  transition: color 240ms ease;
}

.service-card:hover p {
  color: rgba(255, 255, 255, 0.78);
}

.service-number {
  margin-bottom: 3.5rem;
  color: var(--sand);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.25rem;
}

.project-card {
  position: relative;
  grid-column: span 6;
  min-height: 31rem;
  overflow: hidden;
  background: var(--brand-blue-deep);
}

.project-card-wide {
  grid-column: span 8;
}

.project-card-narrow {
  grid-column: span 4;
}

.project-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.project-card::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(3, 31, 49, 0.88), rgba(3, 31, 49, 0.02) 66%);
  content: "";
}

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

.project-card-content {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  color: rgba(255, 255, 255, 0.78);
}

.project-card-content h3 {
  margin-bottom: 0.55rem;
  color: var(--white);
}

.project-card-content p {
  max-width: 34rem;
  margin-bottom: 1.25rem;
}

.project-card-content .text-link {
  color: var(--white);
}

.project-type {
  display: block;
  margin-bottom: 0.7rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    linear-gradient(135deg, rgba(8, 60, 92, 0.98), rgba(3, 31, 49, 0.92)),
    var(--brand-blue-deep);
}

.project-placeholder img {
  position: static;
  width: min(72%, 18rem);
  height: auto;
  object-fit: contain;
  opacity: 0.14;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  border-left: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step {
  min-height: 18rem;
  padding: 2rem;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.process-step-number {
  display: block;
  margin-bottom: 2.5rem;
  color: var(--sand);
  font-family: var(--font-sans);
  font-size: 2rem;
  font-weight: 500;
}

.process-step h3 {
  color: var(--white);
}

.process-step p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.image-copy-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: center;
}

.image-copy-grid-reverse {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.image-frame {
  position: relative;
}

.image-frame::before {
  position: absolute;
  top: -1rem;
  right: 1rem;
  bottom: 1rem;
  left: -1rem;
  z-index: -1;
  background: var(--cream-deep);
  content: "";
}

.image-frame img {
  width: 100%;
  min-height: 32rem;
  object-fit: cover;
}

.image-frame-portrait img {
  aspect-ratio: 4 / 5;
}

.quote-block {
  margin: 2.5rem 0;
  padding: 1.75rem 0 1.75rem 1.8rem;
  border-left: 3px solid var(--sand);
  color: var(--brand-blue);
  font-family: var(--font-sans);
  font-size: clamp(1.4rem, 2.3vw, 2rem);
  font-weight: 500;
  line-height: 1.4;
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  position: relative;
  padding: 1.15rem 1rem 1.15rem 2.6rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.feature-list li::before {
  position: absolute;
  top: 1.35rem;
  left: 1rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--sand);
  border-radius: 50%;
  content: "";
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.value-card {
  padding: 2rem;
  border-top: 3px solid var(--sand);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.value-card h3 {
  margin-bottom: 1rem;
}

.value-card p {
  color: var(--ink-soft);
}

.timeline {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline::before {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1.1rem;
  width: 1px;
  background: var(--line);
  content: "";
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  padding-bottom: 3.2rem;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-number {
  position: relative;
  z-index: 1;
  display: grid;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--brand-blue);
  font-size: 0.75rem;
  font-weight: 700;
}

.timeline-item h3 {
  margin-bottom: 0.7rem;
}

.timeline-item p {
  max-width: 44rem;
  margin-bottom: 0;
  color: var(--ink-soft);
}

.faq-list {
  border-top: 1px solid var(--line);
}

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

.faq-list summary {
  position: relative;
  padding: 1.4rem 3rem 1.4rem 0;
  color: var(--brand-blue-deep);
  font-family: var(--font-sans);
  font-size: 1.25rem;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}

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

.faq-list summary::after {
  position: absolute;
  top: 1.25rem;
  right: 0;
  color: var(--brand-blue);
  content: "+";
  font-family: var(--font-sans);
  font-size: 1.8rem;
  font-weight: 300;
}

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

.faq-answer {
  max-width: 48rem;
  padding: 0 0 1.5rem;
  color: var(--ink-soft);
}

.area-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.area-card {
  display: flex;
  min-height: 15rem;
  flex-direction: column;
  justify-content: space-between;
  padding: 1.5rem;
  background: var(--white);
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease;
}

.area-card small {
  color: var(--sand);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.area-card h3 {
  margin-bottom: 0;
  transition: color 180ms ease;
}

.area-card:hover,
.area-card:focus-visible {
  color: var(--white);
  background: var(--brand-blue);
}

.area-card:hover h3,
.area-card:focus-visible h3 {
  color: var(--white);
}

.area-card::after {
  content: "\2192";
  font-size: 1.4rem;
}

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

.service-detail-grid h2 {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  margin-bottom: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-flow: dense;
  gap: 1rem;
}

.gallery-item {
  position: relative;
  grid-column: span 4;
  min-height: 20rem;
  margin: 0;
  overflow: hidden;
  background: var(--cream);
}

.gallery-item-wide {
  grid-column: span 8;
}

.gallery-item-tall {
  grid-row: span 2;
  min-height: 41rem;
}

.gallery-item button {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 400ms ease;
}

.gallery-item:hover img {
  transform: scale(1.025);
}

.gallery-item figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 2.5rem 1rem 0.8rem;
  color: var(--white);
  background: linear-gradient(0deg, rgba(3, 31, 49, 0.72), transparent);
  font-size: 0.76rem;
  letter-spacing: 0.06em;
}

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

.before-after figure {
  position: relative;
  margin: 0;
}

.before-after img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.before-after figcaption {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.55rem 0.8rem;
  color: var(--white);
  background: rgba(3, 31, 49, 0.86);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.project-attribution {
  display: inline-flex;
  margin: 1rem 0 0;
  padding: 0.65rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
}

.contact-panel {
  padding: clamp(2rem, 4vw, 3.5rem);
  color: rgba(255, 255, 255, 0.8);
  background: var(--brand-blue-deep);
}

.contact-panel h2,
.contact-panel h3,
.contact-panel a {
  color: var(--white);
}

.contact-details {
  display: grid;
  gap: 1.5rem;
  margin: 2.5rem 0 0;
  padding: 0;
  list-style: none;
}

.contact-details small {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--sand);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.contact-details a {
  text-decoration: none;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field-full {
  grid-column: 1 / -1;
}

.field label,
.field legend {
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 3.25rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(8, 60, 92, 0.24);
  border-radius: 0;
  color: var(--ink);
  background: var(--white);
}

.field textarea {
  min-height: 10rem;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--brand-blue);
  outline: 2px solid rgba(8, 60, 92, 0.15);
}

.form-note {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.form-status {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  color: var(--brand-blue-deep);
  background: var(--brand-blue-soft);
}

.cta-band {
  position: relative;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  background-color: var(--brand-blue);
  background-image:
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.024) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(ellipse at 18% 44%, transparent 0 42px, rgba(184, 145, 100, 0.065) 43px 44px, transparent 46px 91px);
  background-size: 100% 5.5rem, 42rem 15rem;
}

.cta-band::after {
  position: absolute;
  top: -50%;
  right: -10%;
  width: 38rem;
  height: 38rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  content: "";
}

.cta-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 3rem;
  padding-block: clamp(4rem, 7vw, 6.5rem);
}

.cta-inner h2 {
  max-width: 48rem;
  margin-bottom: 0.9rem;
  color: var(--white);
}

.cta-inner p {
  max-width: 42rem;
  margin-bottom: 0;
}

.site-footer {
  color: rgba(255, 255, 255, 0.68);
  background-color: var(--brand-blue-deep);
  background-image:
    repeating-linear-gradient(176deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 9px),
    repeating-radial-gradient(ellipse at 18% 44%, transparent 0 42px, rgba(184, 145, 100, 0.05) 43px 44px, transparent 46px 91px);
  background-size: 100% 5.5rem, 42rem 15rem;
}

.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr 0.9fr;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: 5rem 3rem;
}

.footer-logo {
  width: 12.5rem;
  margin-bottom: 1.6rem;
}

.footer-brand p {
  max-width: 25rem;
}

.footer-heading {
  margin-bottom: 1.2rem;
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

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

.footer-list a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.footer-list a:hover,
.footer-list a:focus-visible {
  color: var(--white);
}

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.social-links a,
.social-links .social-placeholder {
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  color: var(--white);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background 180ms ease, border-color 180ms ease;
}

.social-links a:hover,
.social-links a:focus-visible {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
}

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

.footer-bottom a {
  color: rgba(255, 255, 255, 0.68);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: none;
  place-items: center;
  padding: 2rem;
  background: rgba(3, 20, 30, 0.94);
}

.lightbox.is-open {
  display: grid;
}

.lightbox img {
  max-width: min(92vw, 88rem);
  max-height: 84vh;
  object-fit: contain;
}

.lightbox-caption {
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  color: var(--white);
  background: transparent;
  font-size: 1.5rem;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.7rem;
  margin: 0 0 1.3rem;
  padding: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  list-style: none;
  text-transform: uppercase;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 0.7rem;
  content: "/";
  opacity: 0.55;
}

.breadcrumb a {
  color: inherit;
}

.legal-copy h2 {
  margin-top: 2.5rem;
  font-size: 2rem;
}

.editor-placeholder {
  display: grid;
  min-height: 18rem;
  place-items: center;
  padding: 2rem;
  border: 1px dashed rgba(8, 60, 92, 0.45);
  color: var(--brand-blue);
  background: var(--cream);
  text-align: center;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (max-width: 68rem) {
  .header-inner {
    grid-template-columns: 11rem 1fr auto;
  }

  .site-logo {
    width: 10.5rem;
  }

  .nav-list {
    gap: 1rem;
  }

  .nav-list a {
    font-size: 0.7rem;
  }

  .header-cta {
    display: none;
  }

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

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

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

  .footer-main > :last-child {
    grid-column: 2 / -1;
  }
}

@media (max-width: 52rem) {
  :root {
    --header-height: 4.65rem;
  }

  .topbar-inner {
    justify-content: center;
  }

  .topbar-links {
    display: none;
  }

  .header-inner {
    grid-template-columns: 1fr auto;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: fixed;
    top: calc(2.35rem + var(--header-height));
    right: 0;
    bottom: 0;
    left: 0;
    display: none;
    padding: 2rem 1.25rem;
    overflow: auto;
    background: var(--white);
  }

  .nav-open .site-nav {
    display: block;
  }

  .nav-list {
    width: min(100%, 30rem);
    margin-inline: auto;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
  }

  .nav-list li {
    border-bottom: 1px solid var(--line);
  }

  .nav-list a {
    display: block;
    padding: 1.1rem 0;
    font-size: 0.85rem;
  }

  .nav-list a::after {
    display: none;
  }

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

  .hero-credential {
    display: none;
  }

  .intro-grid,
  .image-copy-grid,
  .image-copy-grid-reverse,
  .service-detail-grid,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .image-copy-grid-reverse .image-frame {
    order: -1;
  }

  .service-detail-grid h2 {
    position: static;
  }

  .project-card,
  .project-card-wide,
  .project-card-narrow {
    grid-column: 1 / -1;
  }

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

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

  .gallery-item,
  .gallery-item-wide {
    grid-column: span 6;
  }

  .gallery-item-tall {
    grid-row: auto;
    min-height: 25rem;
  }

  .cta-inner {
    grid-template-columns: 1fr;
  }

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

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

  .footer-main > :last-child {
    grid-column: auto;
  }
}

@media (max-width: 36rem) {
  h1 {
    font-size: clamp(2.55rem, 12vw, 3.9rem);
  }

  h2 {
    font-size: clamp(2rem, 9vw, 3.2rem);
  }

  .container,
  .container-narrow {
    width: min(calc(100% - 1.5rem), var(--container));
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .services-grid,
  .values-grid,
  .process-grid,
  .feature-list,
  .stat-row,
  .area-grid,
  .form-grid,
  .before-after,
  .footer-main {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: 17rem;
  }

  .gallery-item,
  .gallery-item-wide {
    grid-column: 1 / -1;
  }

  .footer-brand,
  .footer-main > :last-child {
    grid-column: auto;
  }

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

  .hero-home {
    min-height: 43rem;
  }

  .hero-home-inner {
    min-height: 43rem;
  }

  .page-hero,
  .page-hero .page-hero-inner {
    min-height: 29rem;
  }

  .page-hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.9rem);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/* About-page portrait placeholder */
.portrait-placeholder {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  padding: 3rem;
  color: var(--brand-blue);
  text-align: center;
  background-color: var(--cream);
  background-image:
    linear-gradient(rgba(245, 241, 232, 0.88), rgba(245, 241, 232, 0.88)),
    repeating-linear-gradient(7deg, rgba(116, 82, 48, 0.09) 0 1px, transparent 1px 8px),
    repeating-linear-gradient(173deg, transparent 0 18px, rgba(116, 82, 48, 0.06) 19px 20px, transparent 21px 35px);
  border: 1px solid rgba(8, 60, 92, 0.16);
  border-radius: var(--radius-md);
}
.portrait-placeholder img { width: 82px; height: 82px; object-fit: contain; opacity: 0.72; }
.portrait-placeholder strong { font-size: 1.35rem; }
.portrait-placeholder span { color: var(--ink-soft); font-size: 0.95rem; }
.social-placeholder { cursor: default; }
