:root {
  --navy-deep: #06265c;
  --navy-abyss: #041c48;
  --blue-brand: #125be0;
  --blue-hover: #0c48b8;
  --red-brand: #ed2034;
  --red-hover: #cf1628;
  --surface-white: #ffffff;
  --surface-ice: #eaf1ff;
  --surface-mist: #f5f8ff;
  --ink-primary: #14233d;
  --ink-muted: #4b5a72;
  --ink-on-dark: #ffffff;
  --ink-on-dark-muted: #d6e3fb;
  --border-light: #d0dcf0;
  --border-dark: rgba(255, 255, 255, 0.16);

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Plus Jakarta Sans", Arial, sans-serif;

  --text-heading: clamp(2.125rem, 4.2vw, 3.5rem);
  --text-body: 1.0625rem;
  --text-sm: 0.875rem;

  --max-width: 1260px;
  --gutter: clamp(1.25rem, 4.5vw, 4rem);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 6rem;
}

body {
  margin: 0;
  background-color: var(--surface-white);
  color: var(--ink-primary);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.65;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: var(--text-body);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid #ff8793;
  outline-offset: 3px;
}

::selection {
  background-color: var(--blue-brand);
  color: var(--ink-on-dark);
}

.skip-link {
  position: fixed;
  z-index: 80;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.625rem 1rem;
  border-radius: 0.25rem;
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 180ms var(--ease-out);
}

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

.container {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  margin-inline: auto;
}

.section-pad {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

/* Header & Brand */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  right: 0;
  left: 0;
  background-color: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}

.site-header.is-scrolled {
  background-color: rgba(6, 38, 92, 0.96);
  border-bottom-color: var(--border-dark);
  box-shadow: 0 10px 28px rgba(4, 28, 72, 0.28);
  backdrop-filter: blur(10px);
}

.header-inner {
  width: min(100% - 2 * var(--gutter), var(--max-width));
  min-height: 5.5rem;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex: 0 0 auto;
}

.brand-logo {
  width: 8.75rem;
  height: auto;
  flex: 0 0 auto;
  margin-inline: -1rem -0.75rem;
}

.brand-tagline {
  display: block;
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.03em;
  text-align: left;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.25rem, 2.2vw, 2rem);
}

.main-nav > a:not(.btn) {
  padding-block: 0.5rem;
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  transition: color 180ms var(--ease-out);
}

.main-nav > a:not(.btn):hover {
  color: #9ec0ff;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0.55rem;
  align-items: center;
  justify-content: center;
  color: var(--ink-on-dark);
  background-color: rgba(6, 38, 92, 0.72);
  border: 1px solid var(--border-dark);
  border-radius: 0.375rem;
  cursor: pointer;
}

.menu-toggle svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

/* Buttons */
.btn {
  min-height: 3.125rem;
  padding: 0.75rem 1.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), transform 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}

.btn:hover {
  transform: translateY(-2px);
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn-red {
  background-color: var(--red-brand);
  color: var(--ink-on-dark);
  box-shadow: 0 12px 28px rgba(237, 32, 52, 0.32);
}

.btn-red:hover {
  background-color: var(--red-hover);
  box-shadow: 0 16px 32px rgba(237, 32, 52, 0.42);
}

.btn-blue {
  background-color: var(--blue-brand);
  color: var(--ink-on-dark);
  box-shadow: 0 10px 24px rgba(18, 91, 224, 0.22);
}

.btn-blue:hover {
  background-color: var(--blue-hover);
  box-shadow: 0 14px 28px rgba(18, 91, 224, 0.32);
}

.nav-cta {
  min-height: 2.75rem;
  padding: 0.625rem 1.125rem;
  font-size: var(--text-sm);
}

.nav-cta svg {
  width: 1.1875rem;
  height: 1.1875rem;
  fill: currentColor;
  stroke: none;
}

/* Hero */
.hero {
  position: relative;
  isolation: isolate;
  min-height: clamp(40rem, 94svh, 56rem);
  display: flex;
  align-items: flex-end;
  padding-top: 7.5rem;
  padding-bottom: clamp(3.5rem, 7vw, 5.5rem);
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

.hero-scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(4, 28, 72, 0.85) 0%, rgba(4, 28, 72, 0.14) 24%, rgba(4, 28, 72, 0.14) 68%, rgba(4, 28, 72, 0.88) 100%),
    linear-gradient(95deg, rgba(6, 38, 92, 0.92) 0%, rgba(6, 38, 92, 0.68) 38%, rgba(6, 38, 92, 0.12) 64%, rgba(6, 38, 92, 0.04) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 39rem;
}

.hero-content h1 {
  margin: 0;
  color: var(--ink-on-dark);
  font-family: var(--font-display);
  font-size: clamp(3.25rem, 7.2vw, 6.25rem);
  font-weight: 800;
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.hero-brand-line {
  display: block;
  margin-bottom: 0.625rem;
  color: #9ec0ff;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.6vw, 2.25rem);
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero-copy-text {
  max-width: 48ch;
  margin: 1.5rem 0 2rem;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-body);
  line-height: 1.65;
}

.hero-horizon-rule {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 0.3125rem;
  background: linear-gradient(90deg, var(--red-brand) 0 36%, var(--blue-brand) 36% 100%);
}

/* Shared Section Headings */
h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.section-intro {
  max-width: 46rem;
}

.section-intro h2 {
  color: var(--navy-deep);
}

.section-intro p {
  max-width: 56ch;
  margin: 1rem 0 0;
  color: var(--ink-muted);
}

/* Services Interactive Stage */
.services-section {
  background-color: var(--surface-white);
}

.service-tabs {
  margin-top: 1.75rem;
  display: inline-grid;
  grid-template-columns: repeat(4, minmax(0, auto));
  border: 1px solid var(--border-light);
  border-radius: 0.5rem;
  background-color: var(--surface-mist);
  padding: 0.25rem;
  gap: 0.25rem;
  max-width: 100%;
}

.service-tab {
  min-height: 2.875rem;
  padding: 0.625rem 1.25rem;
  border: 0;
  border-radius: 0.375rem;
  background-color: transparent;
  color: var(--navy-deep);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.service-tab:hover {
  background-color: var(--surface-ice);
}

.service-tab[aria-selected="true"] {
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
}

.service-stage {
  margin-top: 1.75rem;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}

.service-stage[hidden] {
  display: none;
}

.service-stage-media {
  margin: 0;
}

.service-stage-media img {
  width: 100%;
  max-height: 27rem;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: center 55%;
  border-radius: 0.5rem;
  background-color: var(--surface-ice);
  transition: opacity 180ms var(--ease-out);
}

.service-stage-media.is-swapping img {
  opacity: 0.35;
}

.service-stage-media figcaption {
  margin-top: 0.75rem;
  color: var(--ink-muted);
  font-size: var(--text-sm);
}

.service-stage-details h3 {
  margin: 0;
  color: var(--navy-deep);
  font-family: var(--font-display);
  font-size: var(--text-heading);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.service-stage-details > p {
  max-width: 54ch;
  margin: 1rem 0 0;
  color: var(--ink-muted);
}

.service-specs {
  margin: 2rem 0;
  border-top: 1px solid var(--border-light);
}

.spec-row {
  padding-block: 0.95rem;
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  border-bottom: 1px solid var(--border-light);
}

.spec-row dt {
  color: var(--blue-brand);
  font-size: var(--text-sm);
  font-weight: 700;
}

.spec-row dd {
  margin: 0;
  color: var(--ink-primary);
  font-weight: 600;
}

/* Gallery Mosaic */
.gallery-section {
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
}

.gallery-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.gallery-header h2 {
  max-width: 18ch;
  color: var(--ink-on-dark);
}

.gallery-header p {
  max-width: 34ch;
  margin: 0;
  color: var(--ink-on-dark-muted);
}

.gallery-mosaic {
  margin-top: 2.75rem;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 1rem;
}

.gallery-item {
  margin: 0;
  grid-column: span 4;
}

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

.gallery-item-tall {
  grid-column: span 5;
}

.gallery-trigger {
  position: relative;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0.5rem;
  overflow: hidden;
  display: block;
  background-color: var(--navy-abyss);
  text-align: left;
  cursor: pointer;
}

.gallery-trigger img {
  width: 100%;
  height: 21rem;
  object-fit: cover;
  transition: transform 240ms var(--ease-out);
}

.gallery-item-wide .gallery-trigger img,
.gallery-item-tall .gallery-trigger img {
  height: 25rem;
}

.gallery-trigger:hover img {
  transform: scale(1.03);
}

.gallery-trigger::after {
  position: absolute;
  inset: 42% 0 0;
  content: "";
  background: linear-gradient(0deg, rgba(4, 28, 72, 0.92) 0%, rgba(4, 28, 72, 0) 100%);
  pointer-events: none;
}

.gallery-caption {
  position: absolute;
  z-index: 2;
  right: 1.25rem;
  bottom: 1.125rem;
  left: 1.25rem;
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.4;
}

/* About Section */
.about-section {
  background-color: var(--surface-ice);
}

.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}

.about-portrait {
  position: relative;
  width: min(100%, 42.0625rem);
  justify-self: center;
  margin: 0;
  padding: 0 1.25rem 1.25rem 0;
}

.about-portrait::before {
  position: absolute;
  z-index: 0;
  top: -0.9rem;
  left: -0.9rem;
  width: 5.5rem;
  height: 5.5rem;
  content: "";
  border-top: 5px solid var(--red-brand);
  border-left: 5px solid var(--red-brand);
}

.about-portrait::after {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 0;
  width: 44%;
  height: 32%;
  content: "";
  background-color: var(--blue-brand);
  clip-path: polygon(20% 0, 100% 0, 100% 100%, 0 100%);
}

.about-portrait img {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 41rem;
  aspect-ratio: 673 / 656;
  object-fit: cover;
  object-position: center 35%;
  border-radius: 0.5rem;
}

.about-content h2 {
  color: var(--navy-deep);
}

.about-content > p {
  max-width: 58ch;
  margin: 1.25rem 0 0;
  color: var(--ink-primary);
}

.about-pillars {
  margin: 2rem 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #c1d1ee;
}

.about-pillars li {
  padding-block: 1rem;
  border-bottom: 1px solid #c1d1ee;
}

.about-pillars h3 {
  margin: 0;
  color: var(--navy-deep);
  font-size: var(--text-body);
  font-weight: 700;
}

.about-pillars p {
  margin: 0.25rem 0 0;
  color: var(--ink-muted);
}

/* Quote Section & Live Preview */
.quote-section {
  background-color: var(--surface-white);
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: clamp(2rem, 4.5vw, 4rem);
  align-items: stretch;
}

.quote-summary {
  padding: clamp(2rem, 4vw, 3rem);
  border-radius: 0.75rem;
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
  display: flex;
  flex-direction: column;
}

.quote-summary h2 {
  color: var(--ink-on-dark);
}

.quote-summary > p {
  max-width: 48ch;
  margin: 1rem 0 0;
  color: var(--ink-on-dark-muted);
}

.wa-preview-box {
  margin-top: 1.75rem;
  padding: 1.25rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  background-color: var(--navy-abyss);
}

.wa-preview-heading {
  margin: 0;
  color: #9ec0ff;
  font-size: var(--text-sm);
  font-weight: 700;
}

.wa-preview-text {
  margin: 0.75rem 0 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.55;
  color: var(--ink-on-dark);
  font-variant-numeric: tabular-nums;
}

.quote-direct-link {
  margin-top: auto;
  padding-top: 1.75rem;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  align-self: flex-start;
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.quote-direct-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.quote-direct-link svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.quote-form {
  padding: clamp(1.75rem, 3.5vw, 2.75rem);
  border: 1px solid var(--border-light);
  border-radius: 0.75rem;
  background-color: var(--surface-mist);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.125rem 1rem;
  align-content: start;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}

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

.field-group label {
  color: var(--navy-deep);
  font-size: var(--text-sm);
  font-weight: 700;
}

.field-group input,
.field-group select,
.field-group textarea {
  width: 100%;
  min-width: 0;
  min-height: 3rem;
  padding: 0.7rem 0.875rem;
  border: 1px solid #b9cae6;
  border-radius: 0.375rem;
  background-color: var(--surface-white);
  color: var(--ink-primary);
  font-variant-numeric: tabular-nums;
  transition: border-color 160ms var(--ease-out);
}

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

.field-group input::placeholder,
.field-group textarea::placeholder {
  color: #6b7b94;
}

.field-group input:hover,
.field-group select:hover,
.field-group textarea:hover {
  border-color: var(--blue-brand);
}

.form-actions {
  margin-top: 0.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.form-note,
.form-status {
  margin: 0;
  color: var(--ink-muted);
  font-size: var(--text-sm);
  line-height: 1.5;
}

.form-status {
  color: var(--navy-deep);
  font-weight: 600;
}

.form-status:empty {
  display: none;
}

/* Footer */
.site-footer {
  padding-top: clamp(3.5rem, 6vw, 5rem);
  background-color: var(--navy-abyss);
  color: var(--ink-on-dark);
}

.footer-grid {
  padding-bottom: 3rem;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr) minmax(0, 0.75fr);
  gap: clamp(2rem, 5vw, 4.5rem);
}

.footer-description {
  max-width: 38ch;
  margin: 1rem 0 0;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-sm);
}

.footer-flyer {
  display: block;
  width: min(100%, 24rem);
  margin-top: 1.5rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.5rem;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.footer-flyer:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.55);
}

.footer-flyer img {
  width: 100%;
  height: auto;
}

.footer-links-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.footer-links-col h2 {
  margin-bottom: 0.25rem;
  color: var(--ink-on-dark);
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 700;
  letter-spacing: 0;
}

.footer-links-col a {
  color: var(--ink-on-dark-muted);
  font-size: var(--text-sm);
  line-height: 1.55;
  overflow-wrap: anywhere;
  transition: color 180ms var(--ease-out);
}

.footer-links-col a:hover {
  color: var(--ink-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-phone {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-variant-numeric: tabular-nums;
}

.footer-phone svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-bottom {
  padding-block: 1.25rem;
  border-top: 1px solid var(--border-dark);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-sm);
}

.footer-bottom p {
  margin: 0;
}

.footer-bottom a:hover {
  color: var(--ink-on-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Gallery Lightbox */
.gallery-lightbox {
  width: min(92vw, 62rem);
  padding: 0;
  border: 1px solid var(--border-dark);
  border-radius: 0.75rem;
  background-color: var(--navy-abyss);
  color: var(--ink-on-dark);
}

.gallery-lightbox::backdrop {
  background-color: rgba(4, 28, 72, 0.86);
  backdrop-filter: blur(6px);
}

.lightbox-frame {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.lightbox-toolbar,
.lightbox-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.lightbox-counter {
  margin: 0;
  color: var(--ink-on-dark-muted);
  font-size: var(--text-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.lightbox-close,
.lightbox-nav {
  min-height: 2.75rem;
  padding: 0.5rem 1rem;
  border: 1px solid var(--border-dark);
  border-radius: 0.375rem;
  background-color: var(--navy-deep);
  color: var(--ink-on-dark);
  font-size: var(--text-sm);
  font-weight: 700;
  cursor: pointer;
  transition: background-color 180ms var(--ease-out);
}

.lightbox-close:hover,
.lightbox-nav:hover {
  background-color: var(--blue-brand);
}

.lightbox-figure {
  margin: 0;
}

.lightbox-figure img {
  width: 100%;
  max-height: 68vh;
  object-fit: contain;
  border-radius: 0.5rem;
  background-color: #021231;
}

.lightbox-figure figcaption {
  margin-top: 0.75rem;
  color: var(--ink-on-dark);
  font-size: var(--text-body);
  font-weight: 600;
}

/* Responsive Breakpoints */
@media (max-width: 1020px) {
  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .service-stage,
  .about-grid,
  .quote-grid {
    grid-template-columns: 1fr;
  }

  .gallery-header {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .gallery-item:last-child {
    grid-column: span 12;
  }

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

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

@media (max-width: 820px) {
  .header-inner {
    min-height: 4.75rem;
  }

  .brand-logo {
    width: 6.75rem;
    margin-inline: -0.75rem -0.5rem;
  }

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

  .main-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem var(--gutter) 1.5rem;
    background-color: var(--navy-deep);
    border-top: 1px solid var(--border-dark);
    border-bottom: 1px solid var(--border-dark);
    box-shadow: 0 18px 36px rgba(4, 28, 72, 0.45);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav > a:not(.btn) {
    padding-block: 0.875rem;
    border-bottom: 1px solid var(--border-dark);
    font-size: var(--text-body);
  }

  .main-nav .nav-cta {
    margin-top: 1rem;
    align-self: flex-start;
  }

  .hero {
    min-height: 36rem;
    padding-top: 6.5rem;
  }

  .hero-media img {
    object-position: center 48%;
  }

  .hero-scrim {
    background:
      linear-gradient(180deg, rgba(4, 28, 72, 0.9) 0%, rgba(4, 28, 72, 0.32) 32%, rgba(4, 28, 72, 0.58) 60%, rgba(4, 28, 72, 0.96) 100%);
  }
}

@media (max-width: 600px) {
  .service-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .service-tab {
    padding: 0.625rem 0.5rem;
    white-space: normal;
    line-height: 1.25;
  }

  .gallery-item,
  .gallery-item-wide,
  .gallery-item-tall,
  .gallery-item:last-child {
    grid-column: span 12;
  }

  .gallery-trigger img,
  .gallery-item-wide .gallery-trigger img,
  .gallery-item-tall .gallery-trigger img {
    height: 17rem;
  }

  .quote-form {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

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

/* Motion */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready [data-reveal] {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }

  .motion-ready [data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
