@font-face {
  font-family: 'Barlow Condensed';
  src: url('assets/barlow-condensed-800.woff2') format('woff2');
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --navy: #10273a;
  --deep: #0b1c2b;
  --slate: #374b5c;
  --yellow: #f7d54c;
  --paper: #f7f5ed;
  --white: #ffffff;
  --line: #d8dedf;
  --display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  font-family: system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: var(--paper);
  line-height: 1.6;
}

*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, p, ul, figure, blockquote, dl, dd { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button { font: inherit; }
[hidden] { display: none !important; }

:focus-visible {
  outline: 3px solid #236eb3;
  outline-offset: 5px;
}

.hero :focus-visible,
.contact :focus-visible,
.photo-dialog :focus-visible { outline-color: var(--yellow); }

.shell {
  width: min(100% - clamp(2rem, 8vw, 8rem), 76rem);
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  z-index: 4;
  inset: .5rem auto auto .5rem;
  transform: translateY(-200%);
  background: var(--white);
  padding: .65rem 1rem;
}

.skip-link:focus { transform: none; }

.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 5.25rem;
}

.brand { flex: none; }
.brand img { width: 10.5rem; }

.main-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .1rem clamp(1rem, 3.6vw, 3rem);
}

.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
}

.main-nav a:hover, .text-link:hover { text-decoration-thickness: .17em; }
.main-nav a:hover { text-decoration-line: underline; text-underline-offset: .28em; }
.menu-toggle { display: none; }

.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  padding: .63rem 1.25rem;
  border: 1px solid transparent;
  border-radius: .2rem;
  background: var(--navy);
  color: var(--white);
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}

.button:hover { background: #254862; }
.button-yellow { color: var(--deep); background: var(--yellow); }
.button-yellow:hover { background: #ffe57a; }
.button-outline { border-color: #c1ccd5; color: var(--white); background: transparent; }
.button-outline:hover { background: var(--white); color: var(--navy); }
.header-call { white-space: nowrap; }

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: clamp(32rem, 45vw, 42rem);
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
}

.hero-image,
.hero::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-image {
  z-index: -2;
  object-fit: cover;
  object-position: 36% center;
  transform: scaleX(-1);
}

.hero::after {
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, #081826 3%, #081826ed 26%, #08182693 50%, #08182612 83%);
}

.hero-inner { padding-block: clamp(3.5rem, 7vw, 7rem); }

.eyebrow {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .875rem;
  font-weight: 800;
  letter-spacing: .12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 1.5rem;
  height: 2px;
  background: var(--yellow);
  content: '';
}

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 800;
  line-height: .95;
  text-transform: uppercase;
}

h1 { margin-block: 1rem; font-size: clamp(3.45rem, 8.1vw, 8.5rem); }
h1 span { color: var(--yellow); }
h2 { font-size: clamp(2.75rem, 5.5vw, 5rem); }
h3 { font-size: clamp(2rem, 3.4vw, 3.2rem); }

.hero-copy {
  max-width: 32ch;
  color: #f2f5f8;
  font-size: clamp(1.05rem, 1.7vw, 1.3rem);
  line-height: 1.5;
}

.actions { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.65rem; }
.trust-strip { background: var(--yellow); }

.trust-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  padding: .95rem 0;
  list-style: none;
}

.trust-inner li {
  display: grid;
  place-items: center;
  min-height: 2.05rem;
  padding-inline: .35rem;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.trust-inner li + li { border-inline-start: 1px solid #a0862b; }
.section { padding-block: clamp(3.75rem, 8vw, 7.75rem); }

.about-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
}

.about-photo { position: relative; }
.about-photo::after {
  position: absolute;
  inset: auto 0 0;
  height: .35rem;
  background: var(--yellow);
  content: '';
}

.about-photo img { width: 100%; aspect-ratio: 1.32; object-fit: cover; }
.about-copy h2 { margin-block: .8rem 1.2rem; }
.about-copy > p:not(.eyebrow), .section-heading > p { color: var(--slate); }
.about-copy > p + p { margin-top: .8rem; }
.text-link { font-weight: 750; text-underline-offset: .25em; }
.about-copy .text-link { display: inline-block; margin-top: 1.15rem; }

.services { background: #eaf0f0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1.2rem 3rem; margin-bottom: 2rem; }
.section-heading > p { max-width: 33ch; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.service-card { display: flex; flex-direction: column; background: var(--white); }
.service-card > img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }
.service-card:nth-child(2) > img { object-position: center 37%; }
.service-copy { display: flex; flex: 1; flex-direction: column; gap: .85rem; padding: clamp(1.25rem, 3.2vw, 2.3rem); }
.service-copy p { color: var(--slate); }
.service-copy .service-surfaces { margin-top: auto; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .9rem; font-weight: 700; }

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
  padding: 0;
  list-style: none;
}

.project {
  display: grid;
  grid-template: 1fr / 1fr;
  overflow: hidden;
  background: var(--deep);
  color: var(--white);
  text-decoration: none;
}

.project img, .project span { grid-area: 1 / 1; }
.project img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 220ms ease; }
.project:hover img, .project:focus-visible img { transform: scale(1.045); }
.project span { z-index: 1; align-self: end; padding: 2.1rem .95rem .7rem; background: linear-gradient(transparent, #081826ee); font-weight: 750; }

.reviews { border-top: 1px solid var(--line); background: #fff; }
.review-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2rem; }
.review-grid figure { display: grid; align-content: space-between; gap: .75rem; padding: .2rem 1rem; border-left: 3px solid var(--yellow); }
.review-grid blockquote { font-size: 1.14rem; line-height: 1.45; }
.review-grid figcaption { color: var(--slate); font-size: .9rem; font-weight: 750; }

.contact { color: var(--white); background: var(--navy); }
.contact-grid { display: grid; grid-template-columns: 1.65fr 1fr; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.contact h2 { color: var(--yellow); }
.contact p { margin-top: .95rem; color: #e3ebf0; }
.contact-details { display: grid; gap: .65rem; }
.contact-details > div { display: grid; gap: .05rem; padding: .6rem 0; border-bottom: 1px solid #546b7e; }
.contact-details dt { color: #c3d1dc; font-size: .87rem; font-weight: 700; }
.contact-details dd { font-weight: 750; }
.contact-details a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.footer-inner { padding-block: .65rem; }
.footer-inner .brand img { width: 9rem; }
.footer-inner small { font-size: .88rem; color: var(--slate); }

.photo-dialog {
  max-width: min(65rem, 100% - 1rem);
  max-height: calc(100% - 1rem);
  padding: .85rem;
  border: 1px solid #546b7e;
  border-radius: .25rem;
  background: var(--deep);
  color: var(--white);
}

.photo-dialog::backdrop { background: #061320de; }
.photo-dialog-toolbar { display: flex; justify-content: end; margin-bottom: .65rem; }
.photo-dialog figure { display: grid; justify-items: center; }
.photo-full { width: min(60rem, 85vw); height: min(67vh, 42rem); object-fit: contain; }
.photo-caption { padding-block: .7rem; text-align: center; }
.photo-controls { display: flex; justify-content: space-between; gap: .75rem; }
.photo-dialog button, .menu-toggle { min-height: 2.75rem; padding: .35rem .85rem; border: 1px solid currentColor; border-radius: .2rem; background: transparent; color: inherit; font-weight: 750; cursor: pointer; }
.photo-dialog button:hover { background: var(--white); color: var(--deep); }

@media (max-width: 52rem) {
  .header-inner { flex-wrap: wrap; gap: .3rem 1rem; padding-block: .35rem; }
  .brand img { width: 9.4rem; }
  .main-nav { order: 3; flex-basis: 100%; }
  .header-inner[data-menu] .menu-toggle { display: inline-block; margin-left: auto; }
  .header-inner[data-menu] .main-nav { justify-content: start; }
  .header-inner[data-menu] .menu-toggle[aria-expanded='false'] + .main-nav { display: none; }
  .hero { min-height: 31rem; }
  .hero::after { background: linear-gradient(90deg, #081826f3, #081826bb 43%, #08182622), linear-gradient(0deg, #08182673, transparent 55%); }
  .about-grid { gap: 1.6rem; }
}

@media (max-width: 39rem) {
  .header-call { display: none; }
  .header-inner { min-height: 4.65rem; }
  .hero { align-items: end; min-height: 31rem; }
  .hero-image { object-position: 34% center; }
  .hero::after { background: linear-gradient(0deg, #081826 8%, #081826ca 46%, #08182624 92%); }
  .hero-inner { padding-block: 2.5rem; }
  h1 { font-size: clamp(3.15rem, 10.6vw, 4.9rem); }
  .trust-inner { width: calc(100% - 1.5rem); }
  .trust-inner li { font-size: .86rem; }
  .about-grid, .service-grid, .contact-grid { grid-template-columns: 1fr; }
  .about-photo { order: 2; }
  .section-heading { display: grid; gap: .75rem; margin-bottom: 1.35rem; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .project img { aspect-ratio: 1; }
  .project span { padding: 1.75rem .55rem .55rem; font-size: .875rem; line-height: 1.2; }
  .review-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .footer-inner { flex-wrap: wrap; gap: .4rem 1rem; }
  .footer-inner small { order: 3; flex-basis: 100%; padding-bottom: .5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; }
  .project:hover img, .project:focus-visible img { transform: none; }
}
