:root {
  color-scheme: light;
  --ink: #17303a;
  --petrol: #103744;
  --deep: #092a35;
  --orange: #ff9750;
  --paper: #f8faf9;
  --line: #d3dfdf;
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible {
  outline: 3px solid #b75a21;
  outline-offset: 4px;
}
.shell { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }
.skip { position: absolute; z-index: 3; transform: translateY(-130%); background: white; padding: .75rem; }
.skip:focus { transform: translateY(0); }
.header { min-height: 5.75rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; }
.logo { display: block; width: clamp(8.5rem, 18vw, 12rem); height: 4.5rem; object-fit: contain; }
nav { display: flex; flex-wrap: wrap; gap: .1rem clamp(.65rem, 1.5vw, 1.4rem); }
nav a { display: flex; align-items: center; min-height: 2.75rem; text-decoration: none; font-size: .95rem; font-weight: 650; border-bottom: 3px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--orange); }
.hero { position: relative; isolation: isolate; display: grid; align-items: end; min-height: clamp(31rem, 59vw, 42rem); }
.hero, .subhero { color: white; background: var(--petrol); }
.hero > img, .hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero > img { z-index: -2; object-fit: cover; }
.hero::after { z-index: -1; content: ""; background: linear-gradient(90deg,#092a35fa,#092a35d9 41%,#092a3550 78%,#092a352b); }
.hero-copy { padding-block: clamp(3rem, 7vw, 6rem); }
.hero-copy > p:not(.eyebrow) { max-width: 38rem; font-size: 1.12rem; }
.subhero h1 { max-width: 19ch; font-size: clamp(2.25rem, 5vw, 4.4rem); }
.eyebrow { font-size: .875rem; letter-spacing: .13em; text-transform: uppercase; font-weight: 700; color: #ffc29b; }
h1,h2,h3,p { margin: 0; }
h1 { font-size: clamp(2.5rem, 5.8vw, 5rem); line-height: 1.04; letter-spacing: -.045em; margin-block: .8rem 1rem; }
h2 { font-size: clamp(1.8rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -.035em; margin-bottom: 1.6rem; }
h3 { font-size: 1.25rem; line-height: 1.2; margin-bottom: .65rem; }
p { line-height: 1.6; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-block; border: 1px solid transparent; margin-top: 1.4rem; padding: .82rem 1.2rem; background: var(--orange); color: var(--deep); text-decoration: none; font: inherit; font-weight: 750; border-radius: .25rem; cursor: pointer; }
.button:hover { background: #ffb278; }
.button.secondary { color: white; border-color: #b6c9cb; background: #092a35b5; }
.button.secondary:hover { background: var(--deep); }
.section { padding-block: clamp(2.8rem, 6vw, 5rem); }
.portfolio { background: #eaf1f1; }
.grid, .gallery { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(1rem,2.5vw,1.6rem); }
.services-home .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.card, .project-card { border: 1px solid var(--line); background: white; border-radius: .35rem; }
.card, .project-card a > div { padding: clamp(1.1rem,2.5vw,1.6rem); }
.card h3, .project-card h3 { color: var(--petrol); }
.project-card a { display: block; text-decoration: none; height: 100%; }
.project-card a:hover .text-link { text-decoration: none; }
.project-card img, .gallery img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.project-card img { border-radius: .3rem .3rem 0 0; }
.text-link { display: inline-block; margin-top: .75rem; text-decoration: underline; text-underline-offset: .2em; font-weight: 700; }
.back { display: inline-block; margin-bottom: 1.4rem; text-underline-offset: .2em; }
.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); }
figure { margin: 0; }
figure a { display: block; }
figcaption { margin-top: .65rem; line-height: 1.5; }
.prose { max-width: 43rem; }
.prose p + p { margin-top: 1rem; }
footer { background: var(--deep); color: white; padding-block: 1.5rem; }
footer .shell { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1rem; }
@media (max-width: 55rem) {
  .header { flex-wrap: wrap; padding-block: .6rem; }
  .grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 37rem) {
  .shell { width: calc(100% - 2rem); }
  .header { gap: .25rem; }
  .logo { height: 3.5rem; }
  nav { gap: 0 .75rem; }
  .hero::after { background: linear-gradient(0deg,#092a35fc,#092a35dd 57%,#092a3535); }
  .grid, .gallery, .services-home .grid { grid-template-columns: 1fr; }
}
