:root {
  --navy-950: #041326;
  --navy-900: #061a33;
  --navy-800: #0a284c;
  --blue-500: #137dd1;
  --blue-300: #58b8ef;
  --red-600: #d71920;
  --red-500: #ed222b;
  --gold-500: #e7a525;
  --gold-300: #f1ca71;
  --bone: #fff8e8;
  --cream: #f7edda;
  --paper: #fffdf7;
  --ink: #07192f;
  --muted: #536274;
  --line: rgba(7, 25, 47, 0.16);
  --shadow: 0 24px 70px rgba(3, 15, 29, 0.18);
  --display: Rockwell, "Rockwell Nova", "Roboto Slab", Georgia, serif;
  --body: Avenir, "Avenir Next", "Segoe UI", Helvetica, Arial, sans-serif;
  --condensed: "Arial Narrow", "Avenir Next Condensed", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 40px));
}

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

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

body {
  margin: 0;
  color: var(--ink);
  background: var(--bone);
  font-family: var(--body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

body.nav-open {
  overflow: hidden;
}

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

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

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

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  padding: 10px 16px;
  color: var(--navy-950);
  background: var(--bone);
  border: 3px solid var(--red-500);
  font-weight: 800;
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 82px;
  padding: 8px max(20px, calc((100vw - 1180px) / 2));
  color: white;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  transition: background-color 220ms ease, box-shadow 220ms ease, min-height 220ms ease;
}

.site-header.is-scrolled {
  min-height: 70px;
  background: rgba(4, 19, 38, 0.96);
  box-shadow: 0 10px 30px rgba(2, 12, 25, 0.26);
  backdrop-filter: blur(10px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: white;
  text-decoration: none;
}

.brand__seal {
  position: relative;
  display: grid;
  width: 60px;
  height: 60px;
  place-items: center;
  overflow: hidden;
  background: white;
  border: 3px solid var(--bone);
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--red-500);
}

.brand__seal img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
}

.brand__wordmark {
  display: grid;
  line-height: 1.1;
}

.brand__wordmark strong {
  font-family: var(--display);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand__wordmark small {
  margin-top: 5px;
  font-family: var(--condensed);
  font-size: 0.75rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  opacity: 0.78;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav a {
  padding: 9px 12px;
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 3px;
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--gold-300);
}

.site-nav .nav-cta {
  margin-left: 8px;
  padding-inline: 18px;
  color: white;
  background: var(--red-500);
  border: 2px solid var(--red-500);
  box-shadow: 4px 4px 0 var(--bone);
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta:focus-visible {
  color: white;
  background: var(--red-600);
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--bone);
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.8);
  border-radius: 4px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  height: 3px;
  margin-block: 4px;
  background: white;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(920px, 100svh);
  place-items: center;
  overflow: hidden;
  color: white;
  background: var(--navy-950);
}

.hero__photo,
.hero__wash,
.hero__texture {
  position: absolute;
  inset: 0;
}

.hero__photo {
  background-image: url("assets/hero-firetruck.jpg");
  background-position: 54% center;
  background-size: cover;
  transform: scale(1.02);
}

.hero__wash {
  background:
    linear-gradient(90deg, rgba(4, 19, 38, 0.96) 0%, rgba(4, 19, 38, 0.83) 42%, rgba(4, 19, 38, 0.32) 70%, rgba(4, 19, 38, 0.54) 100%),
    linear-gradient(0deg, rgba(4, 19, 38, 0.86), transparent 44%);
}

.hero__texture {
  opacity: 0.24;
  background-image:
    repeating-linear-gradient(0deg, transparent 0 5px, rgba(255, 255, 255, 0.04) 6px),
    radial-gradient(circle at 20% 20%, rgba(88, 184, 239, 0.28), transparent 24%);
  mix-blend-mode: screen;
}

.hero__content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(310px, 0.65fr);
  gap: clamp(48px, 8vw, 120px);
  align-items: center;
  padding-block: 145px 115px;
}

.eyebrow {
  margin: 0 0 16px;
  font-family: var(--condensed);
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--gold-300);
}

.eyebrow--red {
  color: var(--red-600);
}

.eyebrow--gold {
  color: var(--gold-300);
}

.hero h1,
.section h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(3.2rem, 7.3vw, 7.25rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 0.9;
}

.hero h1 em,
.section h2 em {
  color: var(--blue-300);
  font-weight: inherit;
  font-style: italic;
}

.hero h1 em {
  display: inline-block;
  margin-top: 0.08em;
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--red-600);
}

.hero__lede {
  max-width: 670px;
  margin: 28px 0 0;
  font-size: clamp(1.08rem, 2vw, 1.35rem);
  line-height: 1.55;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.button-row--center {
  justify-content: center;
}

.button {
  display: inline-flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  font-size: 0.9rem;
  font-weight: 850;
  letter-spacing: 0.07em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  border: 2px solid currentColor;
  border-radius: 3px;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translate(-2px, -2px);
}

.button--red {
  color: white;
  background: var(--red-500);
  border-color: var(--red-500);
  box-shadow: 6px 6px 0 var(--bone);
}

.button--red:hover,
.button--red:focus-visible {
  background: var(--red-600);
  box-shadow: 8px 8px 0 var(--bone);
}

.button--ghost,
.button--ghost-light {
  color: white;
  background: rgba(4, 19, 38, 0.18);
  border-color: rgba(255, 255, 255, 0.75);
}

.button--ghost:hover,
.button--ghost:focus-visible,
.button--ghost-light:hover,
.button--ghost-light:focus-visible {
  color: var(--navy-950);
  background: var(--bone);
}

.button--cream {
  color: var(--navy-950);
  background: var(--bone);
  border-color: var(--bone);
  box-shadow: 6px 6px 0 var(--red-500);
}

.button--navy {
  color: white;
  background: var(--navy-900);
  border-color: var(--navy-900);
  box-shadow: 6px 6px 0 var(--gold-500);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 23px;
  padding: 0;
  margin: 34px 0 0;
  list-style: none;
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__trust li::before {
  content: "★";
  margin-right: 8px;
  color: var(--gold-300);
}

.hero__badge {
  position: relative;
  align-self: center;
  justify-self: end;
  width: min(360px, 34vw);
  padding: 13px;
  background: var(--bone);
  border: 8px solid var(--navy-900);
  border-radius: 50% 50% 48% 52%;
  box-shadow: 0 0 0 4px var(--red-500), var(--shadow);
  transform: rotate(2deg);
}

.hero__badge img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}

.hero__badge p {
  position: absolute;
  right: -12px;
  bottom: 8px;
  margin: 0;
  padding: 8px 14px;
  color: var(--navy-950);
  background: var(--gold-300);
  border: 3px solid var(--navy-950);
  font-family: var(--condensed);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-6deg);
}

.hero__scroll {
  position: absolute;
  bottom: 27px;
  left: 50%;
  z-index: 3;
  color: white;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
}

.hero__scroll::after {
  content: "";
  display: block;
  width: 1px;
  height: 22px;
  margin: 9px auto 0;
  background: var(--gold-300);
}

.section {
  position: relative;
  padding-block: clamp(92px, 11vw, 150px);
  overflow: hidden;
}

.section--bone {
  background: var(--bone);
}

.section--cream {
  background: var(--cream);
}

.section--navy {
  color: white;
  background: var(--navy-900);
}

.section--red {
  color: white;
  background: var(--red-600);
}

.section-heading {
  max-width: 850px;
  margin-bottom: 58px;
}

.section-heading h2,
.work__intro h2,
.about__copy h2,
.estimate h2 {
  font-size: clamp(2.8rem, 6vw, 5.5rem);
}

.section-heading > p:last-child {
  max-width: 660px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.section-heading--light > p:last-child {
  color: white;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.service-card {
  position: relative;
  min-height: 420px;
  padding: clamp(30px, 5vw, 52px);
  overflow: hidden;
  background: var(--paper);
  border: 3px solid var(--navy-950);
  box-shadow: 9px 9px 0 var(--navy-950);
}

.service-card::before {
  position: absolute;
  top: -55px;
  right: -55px;
  width: 180px;
  height: 180px;
  content: "";
  border: 18px double currentColor;
  border-radius: 50%;
  opacity: 0.1;
}

.service-card--blue {
  color: var(--navy-950);
  border-top-color: var(--blue-500);
}

.service-card--gold {
  color: var(--navy-950);
  border-top-color: var(--gold-500);
}

.service-card--navy {
  color: white;
  background: var(--navy-800);
  border-color: var(--navy-950);
  border-top-color: var(--blue-300);
}

.service-card--red {
  color: white;
  background: var(--red-600);
  border-color: var(--navy-950);
  border-top-color: var(--gold-300);
}

.service-card__mark {
  display: inline-block;
  padding: 7px 11px;
  color: white;
  background: var(--navy-950);
  border: 2px solid var(--navy-950);
  border-radius: 2px;
  font-family: var(--condensed);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  box-shadow: 3px 3px 0 var(--gold-500);
  transform: rotate(-1deg);
}

.service-card__kicker {
  margin: 25px 0 5px;
  font-family: var(--condensed);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.72;
}

.service-card h3 {
  max-width: 430px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  letter-spacing: -0.035em;
  line-height: 1;
}

.service-card > p:not(.service-card__kicker) {
  max-width: 580px;
  margin: 19px 0;
}

.service-card ul {
  display: grid;
  gap: 6px;
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.service-card li::before {
  content: "✦";
  margin-right: 9px;
  color: var(--gold-500);
}

.service-card--red li::before,
.service-card--navy li::before {
  color: var(--gold-300);
}

.deckhand-callout {
  display: grid;
  grid-template-columns: 220px minmax(0, 620px);
  gap: clamp(32px, 6vw, 76px);
  align-items: center;
  justify-content: center;
  margin-top: 90px;
  padding: 36px clamp(28px, 6vw, 70px);
  background: white;
  border: 3px solid var(--navy-950);
  box-shadow: 10px 10px 0 var(--blue-500);
}

.deckhand-callout img {
  width: 190px;
  max-height: 250px;
  object-fit: contain;
}

.deckhand-callout h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1;
}

.deckhand-callout p:not(.eyebrow) {
  max-width: 620px;
  margin: 17px 0;
}

.text-link {
  display: inline-block;
  color: var(--red-600);
  font-weight: 850;
  text-underline-offset: 0.25em;
}

.rope-divider {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 0;
  pointer-events: none;
}

.rope-divider img {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(1200px, 110vw);
  transform: translate(-50%, -50%);
}

.marine {
  background:
    radial-gradient(circle at 70% 15%, rgba(19, 125, 209, 0.28), transparent 25%),
    linear-gradient(160deg, var(--navy-900), var(--navy-950));
}

.marine::after {
  position: absolute;
  right: -80px;
  bottom: -170px;
  width: 560px;
  height: 420px;
  content: "";
  border: 48px double rgba(88, 184, 239, 0.08);
  border-radius: 50%;
  transform: rotate(-18deg);
}

.marine__heading {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.6fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 70px;
}

.marine__heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -28px;
}

.marine__heading h2 {
  font-size: clamp(3.1rem, 6.5vw, 6.2rem);
}

.marine__heading p:last-child {
  margin: 0 0 6px;
  color: #d9e8f7;
  font-size: 1.06rem;
}

.marine-story {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.75fr;
  grid-template-rows: 410px 410px;
  gap: 18px;
}

.marine-shot {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: var(--navy-800);
  border: 2px solid rgba(255, 255, 255, 0.32);
}

.marine-shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.marine-shot:hover img {
  transform: scale(1.025);
}

.marine-shot figcaption {
  position: absolute;
  right: 14px;
  bottom: 14px;
  left: 14px;
  padding: 13px 15px;
  color: var(--navy-950);
  background: rgba(255, 248, 232, 0.94);
  font-size: 0.82rem;
  line-height: 1.35;
}

.marine-shot figcaption strong {
  display: block;
  font-family: var(--display);
  font-size: 1rem;
}

.marine-shot--wide {
  grid-column: 1 / 3;
}

.marine-shot--portrait {
  grid-row: 1 / 3;
  grid-column: 3;
}

.marine-shot--detail {
  grid-row: 2;
  grid-column: 1;
}

.marine-note {
  display: flex;
  grid-row: 2;
  grid-column: 2;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(26px, 4vw, 50px);
  color: var(--navy-950);
  background: var(--gold-300);
  border: 3px solid var(--navy-950);
  box-shadow: inset 0 0 0 7px var(--gold-300), inset 0 0 0 9px var(--navy-950);
}

.marine-note__script {
  margin: 0 0 16px;
  padding: 11px 15px 13px;
  color: var(--navy-950);
  background: var(--bone);
  border: 3px solid var(--navy-950);
  box-shadow: 5px 5px 0 var(--red-600);
  font-family: var(--display);
  font-size: clamp(1.8rem, 3vw, 3rem);
  font-weight: 900;
  font-style: italic;
  line-height: 1;
  text-shadow: none;
  transform: rotate(-2deg);
}

.marine-note > p:not(.marine-note__script) {
  margin: 0 0 24px;
}

.work__intro {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 0.55fr);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.work__intro > p {
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 1.08rem;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 28px;
}

.filter-button {
  min-height: 44px;
  padding: 8px 16px;
  color: var(--navy-900);
  background: transparent;
  border: 2px solid var(--navy-900);
  border-radius: 2px;
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: white;
  background: var(--navy-900);
}

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

.project-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  background: var(--paper);
  border: 2px solid var(--navy-950);
  box-shadow: 7px 7px 0 rgba(7, 25, 47, 0.14);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.project-card:hover,
.project-card:focus-within {
  transform: translateY(-5px) rotate(-0.25deg);
  box-shadow: 11px 13px 0 rgba(7, 25, 47, 0.18);
}

.project-card[hidden] {
  display: none;
}

.project-card__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--navy-800);
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-card__media.before-after {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 3px;
  background: var(--navy-950);
}

.before-after__frame {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.before-after__frame img {
  position: absolute;
  inset: 0;
}

.before-after__frame small {
  position: absolute;
  bottom: 10px;
  left: 10px;
  padding: 4px 7px;
  color: var(--navy-950);
  background: rgba(255, 248, 232, 0.94);
  border: 1px solid var(--navy-950);
  font-family: var(--condensed);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  line-height: 1;
  text-transform: uppercase;
}

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

.project-card__stamp {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 10px;
  color: white;
  background: var(--navy-900);
  border: 2px solid white;
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  transform: rotate(3deg);
}

.project-card__stamp--red {
  background: var(--red-600);
}

.project-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
  padding: 24px;
}

.project-card__body > p {
  margin: 0 0 9px;
  color: var(--red-600);
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.project-card h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.65rem;
  letter-spacing: -0.03em;
  line-height: 1;
}

.project-card__body > span {
  display: block;
  color: var(--muted);
  line-height: 1.5;
}

.project-card__body .text-link {
  margin-top: auto;
  padding-top: 18px;
  font-size: 0.86rem;
}

.gallery-trigger {
  display: none;
  margin-top: auto;
  padding: 18px 0 2px;
  color: var(--navy-900);
  background: transparent;
  border: 0;
  border-bottom: 2px solid var(--red-500);
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: left;
  text-transform: uppercase;
}

.js .gallery-trigger {
  display: inline-flex;
}

.gallery-trigger:hover,
.gallery-trigger:focus-visible {
  color: var(--red-600);
}

.project-card--feature {
  grid-column: span 2;
}

.project-card--feature .project-card__media {
  aspect-ratio: 16 / 9;
}

.work__more {
  display: flex;
  gap: 25px;
  align-items: center;
  justify-content: space-between;
  margin-top: 42px;
  padding-top: 28px;
  border-top: 2px solid var(--navy-900);
}

.work__more p {
  margin: 0;
  color: var(--muted);
}

body.gallery-open {
  overflow: hidden;
}

.gallery-dialog {
  width: min(1180px, calc(100% - 40px));
  max-width: none;
  max-height: 92dvh;
  padding: 0;
  color: var(--navy-950);
  background: transparent;
  border: 0;
  overflow: visible;
}

.gallery-dialog::backdrop {
  background: rgba(2, 13, 27, 0.88);
  backdrop-filter: blur(8px);
}

.gallery-dialog__shell {
  position: relative;
  max-height: 92dvh;
  padding: 18px;
  overflow: auto;
  background: var(--bone);
  border: 3px solid white;
  box-shadow: 14px 14px 0 var(--red-600);
}

.gallery-dialog__close {
  position: sticky;
  top: 0;
  z-index: 4;
  display: block;
  margin: 0 0 -46px auto;
  padding: 9px 12px;
  color: white;
  background: var(--red-600);
  border: 2px solid white;
  cursor: pointer;
  font-family: var(--condensed);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.gallery-dialog__stage {
  position: relative;
  display: grid;
  min-height: min(58vh, 680px);
  place-items: center;
  overflow: hidden;
  background: var(--navy-950);
  border: 2px solid var(--navy-950);
}

.gallery-dialog__stage img {
  width: 100%;
  height: min(62vh, 720px);
  object-fit: contain;
}

.gallery-dialog__nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 52px;
  height: 52px;
  padding: 0;
  overflow: hidden;
  color: transparent;
  background: rgba(255, 248, 232, 0.94);
  border: 2px solid var(--navy-950);
  border-radius: 50%;
  cursor: pointer;
  transform: translateY(-50%);
}

.gallery-dialog__nav::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 13px;
  height: 13px;
  content: "";
  border-top: 4px solid var(--navy-950);
  border-right: 4px solid var(--navy-950);
}

.gallery-dialog__nav--previous {
  left: 18px;
}

.gallery-dialog__nav--previous::before {
  transform: translate(-35%, -50%) rotate(-135deg);
}

.gallery-dialog__nav--next {
  right: 18px;
}

.gallery-dialog__nav--next::before {
  transform: translate(-65%, -50%) rotate(45deg);
}

.gallery-dialog__nav:hover,
.gallery-dialog__nav:focus-visible {
  background: var(--gold-300);
}

.gallery-dialog__copy {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
  padding: 24px 6px 18px;
}

.gallery-dialog__copy h2 {
  margin: 5px 0 10px;
  font-family: var(--display);
  font-size: clamp(2rem, 4vw, 4rem);
  line-height: 0.95;
}

.gallery-dialog__copy p:not(.eyebrow):not(.gallery-dialog__counter) {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.gallery-dialog__counter {
  margin: 0;
  color: var(--red-600);
  font-family: var(--condensed);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.gallery-dialog__thumbs {
  display: flex;
  gap: 10px;
  padding: 4px 4px 8px;
  overflow-x: auto;
}

.gallery-dialog__thumbs button {
  flex: 0 0 108px;
  padding: 0;
  background: var(--navy-950);
  border: 3px solid transparent;
  cursor: pointer;
}

.gallery-dialog__thumbs button[aria-current="true"] {
  border-color: var(--red-500);
}

.gallery-dialog__thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.72;
}

.gallery-dialog__thumbs button:hover img,
.gallery-dialog__thumbs button:focus-visible img,
.gallery-dialog__thumbs button[aria-current="true"] img {
  opacity: 1;
}

.process {
  isolation: isolate;
}

.process::before {
  position: absolute;
  inset: 0;
  z-index: -2;
  content: "";
  background-image: radial-gradient(rgba(255, 248, 232, 0.12) 1px, transparent 1px);
  background-size: 14px 14px;
}

.process__flash {
  position: absolute;
  top: 50%;
  right: -70px;
  z-index: -1;
  width: min(540px, 44vw);
  opacity: 0.17;
  transform: translateY(-50%) rotate(6deg);
}

.process__inner {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: clamp(50px, 9vw, 120px);
  align-items: start;
}

.process-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  counter-reset: process;
}

.process-list li {
  position: relative;
  min-height: 245px;
  padding: 30px;
  color: var(--navy-950);
  background: var(--bone);
  border: 3px solid var(--navy-950);
  box-shadow: 7px 7px 0 var(--navy-950);
}

.process-list li > span {
  display: inline-block;
  margin-bottom: 25px;
  color: var(--red-600);
  font-family: var(--condensed);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.process-list h3 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.45rem;
  line-height: 1.05;
}

.process-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.about__grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(0, 1.15fr);
  gap: clamp(50px, 9vw, 120px);
  align-items: center;
}

.about__art {
  position: relative;
}

.about__photo {
  padding: 18px;
  background: white;
  border: 3px solid var(--navy-950);
  box-shadow: 13px 13px 0 var(--blue-500);
  transform: rotate(-2deg);
}

.about__photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 45%;
}

.about__photo--pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.about__photo--pair figure {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--navy-950);
}

.about__photo--pair figure:first-child {
  transform: rotate(-1deg);
}

.about__photo--pair figure:last-child {
  transform: rotate(1deg);
}

.about__photo--pair img {
  display: block;
  aspect-ratio: 4 / 5;
}

.about__photo--pair figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 6px 9px;
  color: white;
  background: var(--navy-950);
  border: 2px solid white;
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.about__photo--single img {
  display: block;
  aspect-ratio: 4 / 3;
  object-position: center 45%;
}

.about__art > p {
  position: absolute;
  right: -20px;
  bottom: -35px;
  margin: 0;
  padding: 13px 21px;
  color: white;
  background: var(--red-600);
  border: 3px solid var(--navy-950);
  font-family: var(--display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 900;
  line-height: 1.02;
  transform: rotate(5deg);
}

.about__lead {
  margin: 28px 0 18px;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.5;
}

.about__copy > p:not(.eyebrow):not(.about__lead) {
  color: var(--muted);
}

.about__copy .text-link {
  margin-top: 10px;
}

.crew {
  background:
    radial-gradient(circle at 12% 18%, rgba(19, 125, 209, 0.09), transparent 28%),
    radial-gradient(circle at 88% 78%, rgba(231, 45, 49, 0.08), transparent 30%),
    var(--cream);
}

.crew__heading {
  max-width: 900px;
}

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

.crew-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  background: var(--bone);
  border: 3px solid var(--navy-950);
}

.crew-card--blue {
  box-shadow: 9px 9px 0 var(--blue-500);
}

.crew-card--red {
  box-shadow: 9px 9px 0 var(--red-500);
}

.crew-card--gold {
  box-shadow: 9px 9px 0 var(--gold-300);
}

.crew-card__portrait {
  position: relative;
  overflow: hidden;
  background: var(--navy-900);
  border-bottom: 3px solid var(--navy-950);
}

.crew-card__portrait img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.crew-card--blue .crew-card__portrait img {
  object-position: 52% 45%;
}

.crew-card__portrait--placeholder {
  background: var(--bone);
}

.crew-card__portrait--placeholder span {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 8px 11px;
  color: white;
  background: var(--red-600);
  border: 2px solid var(--navy-950);
  font-family: var(--condensed);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  transform: rotate(-3deg);
}

.crew-card__body {
  flex: 1;
  padding: 28px;
}

.crew-card__role {
  margin: 0 0 10px;
  color: var(--red-600);
  font-family: var(--condensed);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crew-card h3 {
  margin: 0 0 14px;
  color: var(--navy-950);
  font-family: var(--display);
  font-size: clamp(2.25rem, 4vw, 3.35rem);
  line-height: 0.95;
}

.crew-card__body > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.62;
}

.estimate {
  min-height: 620px;
  display: grid;
  place-items: center;
  color: white;
  text-align: center;
  background:
    linear-gradient(rgba(4, 19, 38, 0.86), rgba(4, 19, 38, 0.94)),
    url("assets/marine-boat-finished.jpg") center / cover;
}

.estimate__water {
  position: absolute;
  inset: auto 0 0;
  height: 110px;
  opacity: 0.34;
  background:
    radial-gradient(55px 28px at 55px 0, transparent 48px, var(--blue-300) 49px 53px, transparent 54px) 0 0 / 110px 45px repeat-x,
    linear-gradient(transparent, rgba(19, 125, 209, 0.42));
}

.estimate__inner {
  position: relative;
  z-index: 1;
  max-width: 850px;
}

.estimate h2 em {
  color: var(--bone);
  text-shadow: 4px 4px 0 var(--red-600);
}

.estimate__inner > p:not(.eyebrow):not(.estimate__note) {
  max-width: 690px;
  margin: 26px auto 0;
  font-size: 1.12rem;
}

.estimate__note {
  margin: 24px 0 0;
  color: #d7e7f6;
  font-size: 0.86rem;
}

.site-footer {
  color: white;
  background: var(--navy-950);
  border-top: 7px solid var(--red-500);
}

.site-footer__grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.5fr 0.65fr 0.85fr;
  gap: 55px;
  padding-block: 62px 45px;
}

.site-footer__character {
  position: absolute;
  right: -40px;
  bottom: -55px;
  width: 150px;
  height: 150px;
  object-fit: contain;
  opacity: 0.2;
  transform: rotate(-8deg);
  pointer-events: none;
}

.site-footer__brand {
  display: flex;
  gap: 22px;
  align-items: center;
}

.site-footer__brand img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  background: white;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--red-500);
}

.site-footer__brand strong {
  font-family: var(--display);
  font-size: 1.45rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.site-footer__brand p,
.site-footer__grid > div > p:not(.footer-heading) {
  margin: 4px 0 0;
  color: #aabed2;
}

.footer-heading {
  margin: 0 0 14px;
  color: var(--gold-300);
  font-family: var(--condensed);
  font-size: 0.8rem;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.site-footer__grid > div:not(.site-footer__brand) a {
  display: block;
  width: max-content;
  max-width: 100%;
  margin-bottom: 8px;
  text-decoration: none;
}

.site-footer__grid a:hover,
.site-footer__grid a:focus-visible {
  color: var(--gold-300);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 20px 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #aabed2;
  font-size: 0.82rem;
}

.site-footer__bottom p {
  margin: 0;
}

.site-footer__bottom a {
  color: white;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 620ms ease, transform 620ms cubic-bezier(0.2, 0.75, 0.3, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.js .hero__badge.reveal {
  transform: translateY(-25px) rotate(7deg);
  transform-origin: 50% -140px;
}

.js .hero__badge.reveal.is-visible {
  animation: sign-settle 980ms cubic-bezier(0.18, 0.78, 0.3, 1) both;
}

@keyframes sign-settle {
  0% { opacity: 0; transform: translateY(-38px) rotate(8deg); }
  58% { opacity: 1; transform: translateY(0) rotate(-3deg); }
  82% { transform: translateY(0) rotate(3deg); }
  100% { opacity: 1; transform: translateY(0) rotate(2deg); }
}

@media (max-width: 980px) {
  body.nav-open .site-header {
    backdrop-filter: none;
  }

  .nav-toggle {
    display: block;
    position: relative;
    z-index: 102;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(2) {
    transform: translateY(7px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(3) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] span:nth-of-type(4) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 0;
    z-index: 101;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    gap: 5px;
    padding: 100px 30px 50px;
    color: white;
    background: var(--navy-950);
    transform: translateX(100%);
    transition: transform 240ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
  }

  .site-nav a {
    padding: 14px;
    font-family: var(--display);
    font-size: 1.75rem;
    text-align: center;
  }

  .site-nav .nav-cta {
    margin: 18px auto 0;
    font-family: var(--condensed);
    font-size: 0.95rem;
  }

  .hero__content {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 135px;
  }

  .hero__badge {
    width: min(330px, 68vw);
    justify-self: center;
  }

  .marine__heading,
  .work__intro,
  .process__inner,
  .about__grid {
    grid-template-columns: 1fr;
  }

  .marine__heading .eyebrow {
    margin-bottom: -20px;
  }

  .marine-story {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 360px 420px 370px;
  }

  .marine-shot--wide {
    grid-column: 1 / 3;
  }

  .marine-shot--portrait {
    grid-row: 2;
    grid-column: 1;
  }

  .marine-shot--detail {
    grid-row: 2;
    grid-column: 2;
  }

  .marine-note {
    grid-row: 3;
    grid-column: 1 / 3;
  }

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

  .project-card--feature {
    grid-column: span 1;
  }

  .project-card--feature .project-card__media {
    aspect-ratio: 4 / 3;
  }

  .process__flash {
    width: 70vw;
  }

  .about__art {
    max-width: 540px;
    margin-inline: auto;
  }

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

  .crew-card:last-child {
    width: calc(50% - 12px);
    grid-column: 1 / -1;
    justify-self: center;
  }

  .site-footer__character {
    right: 0;
  }
}

@media (max-width: 700px) {
  :root {
    --shell: min(100% - 28px, 1180px);
  }

  html {
    scroll-padding-top: 75px;
  }

  .site-header {
    min-height: 72px;
    padding-inline: 14px;
  }

  .brand__seal {
    width: 48px;
    height: 48px;
  }

  .brand__wordmark strong {
    font-size: 0.92rem;
  }

  .brand__wordmark small {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero__wash {
    background: linear-gradient(90deg, rgba(4, 19, 38, 0.95), rgba(4, 19, 38, 0.68));
  }

  .hero__content {
    padding-block: 120px 90px;
  }

  .hero h1 {
    font-size: clamp(3.05rem, 16vw, 5.2rem);
  }

  .hero__scroll {
    display: none;
  }

  .button-row,
  .button {
    width: 100%;
  }

  .hero__trust {
    display: grid;
  }

  .hero__badge {
    width: min(290px, 80vw);
  }

  .section {
    padding-block: 80px;
  }

  .service-grid,
  .process-list,
  .project-grid,
  .crew-grid,
  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .service-card {
    min-height: auto;
    padding: 28px;
    box-shadow: 6px 6px 0 var(--navy-950);
  }

  .deckhand-callout {
    grid-template-columns: 1fr;
    justify-items: center;
    padding: 28px;
    text-align: center;
  }

  .deckhand-callout img {
    height: 200px;
  }

  .marine__heading {
    gap: 30px;
  }

  .marine__heading .eyebrow {
    margin-bottom: -12px;
  }

  .marine-story {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, 360px) auto;
  }

  .marine-shot--wide,
  .marine-shot--portrait,
  .marine-shot--detail,
  .marine-note {
    grid-row: auto;
    grid-column: 1;
  }

  .marine-note {
    min-height: 330px;
  }

  .work__more {
    align-items: stretch;
    flex-direction: column;
  }

  .gallery-dialog {
    width: calc(100% - 16px);
    max-height: 96dvh;
  }

  .gallery-dialog__shell {
    max-height: 96dvh;
    padding: 8px;
    box-shadow: 6px 6px 0 var(--red-600);
  }

  .gallery-dialog__stage {
    min-height: 48vh;
  }

  .gallery-dialog__stage img {
    height: 52vh;
  }

  .gallery-dialog__nav {
    width: 44px;
    height: 44px;
  }

  .gallery-dialog__nav--previous {
    left: 8px;
  }

  .gallery-dialog__nav--next {
    right: 8px;
  }

  .gallery-dialog__copy {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 22px 8px 14px;
  }

  .gallery-dialog__thumbs button {
    flex-basis: 86px;
  }

  .process-list li {
    min-height: auto;
  }

  .about__art > p {
    right: -4px;
  }

  .crew-card:last-child {
    width: auto;
    grid-column: auto;
  }

  .site-footer__grid {
    gap: 35px;
  }

  .site-footer__character {
    display: none;
  }

  .site-footer__bottom {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

  .js .reveal,
  .js .hero__badge.reveal {
    opacity: 1;
    transform: none;
  }
}
