:root {
  color-scheme: light;
  --navy: #142b41;
  --navy-dark: #102236;
  --ink: #182c3e;
  --muted: #4a5d6b;
  --line: #c9d2d9;
  --mist: #e9eff2;
  --paper: #f9faf9;
  --white: #fff;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 1rem/1.65 var(--sans);
}
img { display: block; max-width: 100%; }
figure, p, h1, h2, h3 { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid #2f70b1; outline-offset: 5px; }
.hero :focus-visible, .contact :focus-visible { outline-color: #b8ddff; }

.wrap { width: min(100% - 5rem, 75rem); margin-inline: auto; }
.section { padding-block: clamp(3.5rem, 7vw, 6.75rem); }
.skip-link { position: absolute; z-index: 3; padding: .75rem 1rem; background: var(--white); transform: translateY(-110%); }
.skip-link:focus { transform: none; }

.site-header { background: var(--white); }
.header-inner { display: flex; min-height: 5.5rem; align-items: center; justify-content: space-between; gap: 2rem; }
.brand { display: block; flex-shrink: 0; }
.brand img { width: 14.25rem; height: auto; margin-left: -1.45rem; }
nav { display: flex; align-items: center; gap: clamp(1.5rem, 3.6vw, 3rem); margin-left: auto; }
nav a { text-decoration: none; font-weight: 600; white-space: nowrap; }
nav a:hover { text-decoration: underline; text-underline-offset: .32em; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .65rem 1.25rem;
  border: 1px solid transparent;
  color: var(--white);
  background: var(--navy);
  font-weight: 650;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
}
.button:hover { background: #244763; }
.button-light { color: var(--navy); background: var(--white); }
.button-light:hover { background: #dbe9f1; }
.text-link { display: inline-block; width: fit-content; font-weight: 650; text-underline-offset: .29em; text-decoration-thickness: 1px; }
.text-link:hover { text-decoration-thickness: 2px; }

.hero { background: var(--navy); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: stretch; min-height: 35rem; }
.hero-intro { position: relative; align-self: center; padding-block: 4rem; padding-right: clamp(1.5rem, 4.2vw, 4rem); }
.eyebrow { font-size: .875rem; font-weight: 700; line-height: 1.45; letter-spacing: .12em; text-transform: uppercase; }
.hero .eyebrow, .contact .eyebrow { color: #c8dae6; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.043em; }
h1 { margin-block: 1.1rem 1.25rem; font-size: clamp(3.4rem, 6.4vw, 6.35rem); line-height: .97; }
h2 { font-size: clamp(2.25rem, 4.7vw, 4rem); line-height: 1.04; }
.hero-summary { max-width: 34ch; color: #e0e9ef; font-size: clamp(1.06rem, 1.55vw, 1.25rem); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.75rem; margin-top: 2rem; }
.hero-photo { position: relative; isolation: isolate; min-width: 0; background: #294358; }
.hero-photo img { position: absolute; width: 100%; height: 100%; object-fit: cover; object-position: center 42%; }

.credentials { background: var(--mist); border-bottom: 1px solid var(--line); }
.credentials ul { display: grid; grid-template-columns: repeat(3, 1fr); margin-block: 0; padding: 1.25rem 0; list-style: none; }
.credentials li { padding: 0 1.2rem; text-align: center; font-size: .94rem; font-weight: 650; }
.credentials li + li { border-left: 1px solid #b5c5ce; }

.section-intro { max-width: 45rem; }
.section .eyebrow { margin-bottom: .85rem; color: #3c5c72; }
.service-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 2.75rem; border-top: 1px solid var(--line); }
.service { display: flex; flex-direction: column; align-items: flex-start; padding: 1.65rem clamp(1.1rem, 2.55vw, 2.5rem) 0; }
.service:first-child { padding-left: 0; }
.service:last-child { padding-right: 0; }
.service + .service { border-left: 1px solid var(--line); }
.service h3 { font-size: clamp(1.2rem, 2vw, 1.52rem); line-height: 1.25; }
.service p { color: var(--muted); margin-block: .75rem 1rem; }
.service a { margin-top: auto; }

.project { background: var(--mist); }
.project-intro { display: grid; grid-template-columns: 1.65fr 1fr; gap: 1.5rem 3rem; align-items: end; margin-bottom: 2rem; }
.project-intro p:not(.eyebrow), .about-copy { color: var(--muted); font-size: 1.08rem; }
.project-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.project-photos figure, .residential-photos figure { display: grid; grid-template-rows: 1fr auto; min-width: 0; background: var(--white); }
.project-photos img, .residential-photos img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; background: #d3dfe6; }
.project-photos figcaption, .residential-photos figcaption { padding: .58rem .9rem .66rem; font-weight: 650; }
.more-work { margin-top: 2.75rem; }
.more-work h3 { margin-bottom: .9rem; font-size: clamp(1.2rem, 2vw, 1.52rem); }
.residential-photos { display: grid; grid-template-columns: 1.22fr 1fr; gap: 1rem; }
.residential-photos img { height: clamp(12rem, 28vw, 22rem); aspect-ratio: auto; }
.residential-photos figure:first-child img { object-position: center 51%; }
.residential-photos figure:last-child img { object-position: center 40%; }

.about { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.5rem 5rem; }
.about-copy p + p { margin-top: .85rem; }

.contact { padding-block: clamp(3rem, 6vw, 5rem); color: var(--white); background: var(--navy-dark); }
.contact-inner { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.contact h2 { margin-block: .75rem .85rem; }
.contact p:not(.eyebrow) { color: #e0e9ef; }
.contact-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: flex-start; gap: .75rem; }
.contact .button { white-space: nowrap; }
.contact-links { display: flex; flex-wrap: wrap; gap: .7rem 1rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem 2rem; min-height: 8rem; }
.footer-inner .brand img { width: 12.5rem; margin-left: -1.27rem; }
.footer-details { color: var(--muted); text-align: right; font-size: .9rem; }

@media (max-width: 58rem) {
  .wrap { width: calc(100% - 3.5rem); }
  .hero-grid { min-height: 30rem; }
  .hero-intro { padding-block: 3rem; }
  .about { column-gap: 2rem; }
}

@media (max-width: 43rem) {
  .wrap { width: calc(100% - 2.25rem); }
  .header-inner { display: grid; grid-template-columns: 1fr auto; gap: .2rem .8rem; padding-block: .3rem .65rem; }
  .header-inner .brand { width: fit-content; }
  .header-inner .brand img { width: 11.5rem; margin-left: -1.17rem; }
  .header-contact { grid-area: 1 / 2; min-height: 2.6rem; }
  nav { grid-column: 1 / -1; margin: 0; gap: 1.35rem; }
  nav a { display: flex; min-height: 2.4rem; align-items: center; font-size: .94rem; }
  .hero-grid { grid-template-columns: 1fr; width: 100%; }
  .hero-intro { padding: 3.2rem 1.125rem 2.55rem; }
  .hero-photo { aspect-ratio: 1.35; }
  h1 { font-size: clamp(2.85rem, 11vw, 4.7rem); }
  .credentials ul { grid-template-columns: 1fr; gap: .3rem; padding-block: .9rem; }
  .credentials li { text-align: left; padding-inline: 0; }
  .credentials li + li { border-left: 0; }
  .service-grid, .project-intro, .about { grid-template-columns: 1fr; }
  .service-grid { margin-top: 1.65rem; }
  .service, .service:first-child, .service:last-child { padding: 1.25rem 0; }
  .service + .service { border-left: 0; border-top: 1px solid var(--line); }
  .service:last-child { padding-bottom: 0; }
  .project-photos { gap: .55rem; }
  .residential-photos { grid-template-columns: 1fr; }
  .residential-photos img { height: auto; aspect-ratio: 1.55; }
  .contact-inner { align-items: flex-start; flex-direction: column; }
  .footer-inner { align-items: flex-start; flex-direction: column; gap: 0; padding-block: 1rem 1.6rem; }
  .footer-details { text-align: left; }
}

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