﻿/* Coastal Home & Property Care - Gallery page final bundle */
/* Shared page shell */
:root {
  --navy: #003B5C;
  --green: #34A853;
  --aqua: #00B4D8;
  --sand: #F4EFE7;
  --ink: #0B2239;
  --slate: #4A5B6B;
  --white: #FFFFFF;
  --mist: #F8FBFC;
  --line: rgba(11, 34, 57, .12);
  --shadow: 0 22px 60px rgba(11, 34, 57, .14);
  --soft-shadow: 0 14px 36px rgba(11, 34, 57, .10);
  --radius: 8px;
  --wrap: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Open Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: none;
}

.wrap {
  width: calc(100% - 40px);
  max-width: var(--wrap, 1180px);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 10;
  transform: translateY(-160%);
  padding: 10px 14px;
  background: var(--ink);
  color: var(--white);
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.topline {
  background: var(--ink);
  color: rgba(255, 255, 255, .86);
  font-size: .88rem;
}

.topline__inner {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.topline__left {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.topline p {
  margin: 0;
  font-weight: 700;
  letter-spacing: .02em;
}

.topline__pills {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.topline__pills span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 999px;
  padding: 0 9px;
  color: rgba(255, 255, 255, .90);
  background: rgba(255, 255, 255, .08);
  font: 800 .68rem/1 Montserrat, sans-serif;
  letter-spacing: .03em;
  white-space: nowrap;
}

.topline a {
  color: var(--white);
  font-weight: 800;
  white-space: nowrap;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .88);
  border-bottom: 1px solid rgba(11, 34, 57, .08);
  backdrop-filter: blur(16px);
}

.nav {
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  font-family: Montserrat, sans-serif;
  font-weight: 800;
  color: var(--navy);
}

.brand img {
  width: 178px;
  height: auto;
}

.brand span {
  max-width: 260px;
  line-height: 1.15;
}

.navlinks {
  display: flex;
  align-items: center;
  gap: 22px;
  font: 700 .92rem/1 Montserrat, sans-serif;
  color: var(--slate);
}

.navlinks a {
  transition: color .2s ease;
}

.navlinks a:hover {
  color: var(--navy);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta,
.btn {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font: 800 .95rem/1 Montserrat, sans-serif;
  transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease;
}

.nav-cta {
  padding: 0 18px;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 28px rgba(0, 59, 92, .18);
}

.menu-toggle {
  display: none;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(0, 59, 92, .16);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
}

.menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
}

.btn {
  padding: 0 20px;
}

.btn:hover,
.nav-cta:hover {
  transform: translateY(-2px);
}

.btn--primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--navy), #075172);
  box-shadow: 0 18px 34px rgba(0, 59, 92, .24);
}

.btn--glass {
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, .54);
  background: rgba(255, 255, 255, .12);
  backdrop-filter: blur(8px);
}

.btn--outline {
  color: var(--navy);
  border: 1px solid rgba(0, 59, 92, .24);
  background: transparent;
}


.footer {
  padding: 44px 0;
  background: #06172a;
  color: rgba(255, 255, 255, .74);
}

.footer__grid {
  grid-template-columns: 1.45fr .7fr 1fr .7fr;
}

.footer h2,
.footer h3 {
  margin: 0 0 10px;
  color: var(--white);
  font: 800 1rem/1.2 Montserrat, sans-serif;
}

.footer p {
  margin: 0;
}

.footer a {
  color: var(--white);
  font-weight: 700;
}

.footer-links {
  display: grid;
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

[data-animate] {
  opacity: 0;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(0, 180, 216, .55);
  outline-offset: 3px;
}


@media (max-width: 1040px) {
  .nav {
    grid-template-columns: 1fr auto;
  }

  .brand span,
  .navlinks {
    display: none;
  }

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

  .mobile-nav {
    display: block;
    max-height: 0;
    overflow: hidden;
    border-top: 1px solid rgba(0, 59, 92, .08);
    background: rgba(255, 255, 255, .96);
    opacity: 0;
    visibility: hidden;
    transition: max-height .24s ease, opacity .18s ease, visibility .18s ease;
  }

  .mobile-nav.is-open {
    max-height: 320px;
    opacity: 1;
    visibility: visible;
  }

  .mobile-nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
    width: min(100% - 40px, var(--wrap));
    margin-inline: auto;
    border-bottom: 1px solid rgba(0, 59, 92, .08);
    color: var(--ink);
    font: 800 .92rem/1 Montserrat, sans-serif;
  }

  .mobile-nav a:last-child {
    color: var(--navy);
    border-bottom: 0;
  }

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

@media (max-width: 640px) {
  .wrap {
    width: min(100% - 28px, var(--wrap));
  }

  .topline {
    position: sticky;
    top: 0;
    z-index: 31;
    background: var(--ink);
  }

  .topline__inner {
    min-height: 36px;
    gap: 8px;
  }

  .topline p {
    display: none;
  }

  .topline__left {
    flex: 1;
  }

  .topline__pills {
    gap: 7px;
    overflow: hidden;
  }

  .topline__pills span {
    min-height: 24px;
    padding: 0 8px;
    border-color: rgba(185, 243, 255, .26);
    background: rgba(185, 243, 255, .10);
    font-size: .61rem;
  }

  .topline__pills span:nth-child(3) {
    display: none;
  }

  .topline a {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0 10px;
    background: rgba(52, 168, 83, .95);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .16);
    font-size: .72rem;
  }

  .site-header {
    top: 36px;
    z-index: 30;
    width: min(100% - 20px, var(--wrap));
    margin: 8px auto 0;
    border: 1px solid rgba(255, 255, 255, .56);
    border-radius: 999px;
    background: rgba(255, 255, 255, .76);
    border-bottom: 0;
    box-shadow: 0 18px 44px rgba(11, 34, 57, .16);
    overflow: visible;
  }

  .nav {
    width: 100%;
    min-height: 58px;
    gap: 10px;
    padding-inline: 10px;
  }

  .brand img {
    width: 142px;
  }

  .nav-cta {
    min-height: 40px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .78rem;
  }

  .menu-toggle {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .78);
    box-shadow: inset 0 0 0 1px rgba(0, 59, 92, .08);
  }

  .mobile-nav {
    position: absolute;
    left: 14px;
    right: 14px;
    top: calc(100% + 10px);
    border: 1px solid rgba(0, 59, 92, .12);
    border-radius: 18px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(11, 34, 57, .18);
    backdrop-filter: blur(16px);
  }

  .mobile-nav.is-open {
    max-height: 360px;
  }

  .mobile-nav a {
    width: auto;
    margin-inline: 16px;
  }

  .mobile-nav a:last-child {
    margin-bottom: 8px;
    color: var(--white);
    justify-content: center;
    border-radius: 999px;
    background: var(--navy);
  }

  .btn {
    width: 100%;
  }
}

/* Gallery-specific styles */
body.gallery-redesign {
  background: #fff;
}

@media (min-width: 1041px) {
  body.gallery-redesign .nav {
    min-height: 64px;
    gap: 20px;
  }

  body.gallery-redesign .brand img {
    width: 154px;
    height: auto;
  }

  body.gallery-redesign .brand span {
    font-size: .78rem;
  }

  body.gallery-redesign .navlinks {
    gap: 22px;
  }

  body.gallery-redesign .nav-cta {
    min-height: 42px;
    padding-inline: 16px;
  }
}

body.gallery-redesign .navlinks a[aria-current="page"],
body.gallery-redesign .mobile-nav a[aria-current="page"] {
  color: var(--navy);
}

body.gallery-redesign .navlinks a[aria-current="page"] {
  position: relative;
}

body.gallery-redesign .navlinks a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12px;
  height: 2px;
  background: linear-gradient(90deg, var(--aqua), var(--green));
}

.gallery-redesign h1,
.gallery-redesign h2,
.gallery-redesign h3,
.gallery-redesign p,
.gallery-redesign figure {
  margin-top: 0;
}

.gallery-redesign h1,
.gallery-redesign h2,
.gallery-redesign h3 {
  color: var(--navy);
  font-family: Montserrat, sans-serif;
}

.gallery-redesign h1 em,
.gallery-redesign h2 em {
  color: var(--aqua);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}

.gallery-redesign .section-kicker {
  margin-bottom: 12px;
  color: var(--green);
  font: 800 .76rem/1.2 Montserrat, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-redesign .section-panel {
  position: relative;
  padding: clamp(68px, 8vw, 112px) 0;
}

.gallery-redesign .section-panel::before {
  content: "";
  position: absolute;
  top: 0;
  left: max(20px, calc((100% - var(--wrap)) / 2));
  right: max(20px, calc((100% - var(--wrap)) / 2));
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 180, 216, .62) 18%, rgba(52, 168, 83, .42) 52%, transparent 86%);
  transform: scaleX(.18);
  transform-origin: center;
  opacity: .38;
  pointer-events: none;
}

.gallery-redesign .section-panel.is-in-view::before {
  animation: galleryLine 1.05s ease forwards;
}

.gallery-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 3.5vw, 48px) 0 clamp(22px, 2.5vw, 34px);
  background:
    radial-gradient(circle at 82% 16%, rgba(0, 180, 216, .12), transparent 28%),
    linear-gradient(145deg, rgba(244, 239, 231, .92), rgba(255, 255, 255, .98) 52%, rgba(247, 250, 252, .96));
}

.gallery-hero__three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.gallery-hero.is-three-ready .gallery-hero__three {
  opacity: .5;
}

.gallery-hero__glow {
  position: absolute;
  top: -22%;
  right: -10%;
  width: min(52vw, 650px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 180, 216, .18), rgba(52, 168, 83, .05) 44%, transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}

.gallery-hero__lines {
  position: absolute;
  top: -26%;
  right: -9%;
  width: min(62vw, 790px);
  aspect-ratio: 1;
  pointer-events: none;
}

.gallery-hero__lines span {
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(0, 180, 216, .18);
  border-left-color: transparent;
  border-bottom-color: rgba(52, 168, 83, .13);
  border-radius: 50%;
  opacity: 0;
}

.gallery-hero__lines span:nth-child(2) {
  inset: 22%;
  border-color: rgba(52, 168, 83, .14);
  border-right-color: transparent;
}

.gallery-hero__lines span:nth-child(3) {
  inset: 33%;
  border-color: rgba(0, 59, 92, .1);
  border-top-color: transparent;
}

.gallery-hero__grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(450px, 1.02fr);
  align-items: center;
  gap: clamp(66px, 6vw, 86px);
}

.gallery-hero__copy {
  position: relative;
  z-index: 2;
}

.gallery-hero__signature {
  margin: -4px 0 13px;
  color: var(--navy);
  font: 800 .82rem/1.2 Montserrat, sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.gallery-hero h1 {
  max-width: 9.9em;
  margin-bottom: 14px;
  font-size: clamp(2.85rem, 3.75vw, 3.2rem);
  line-height: .97;
  letter-spacing: -.05em;
}

.gallery-hero h1 span,
.gallery-hero h1 em {
  display: block;
  white-space: nowrap;
  transform-origin: left center;
  will-change: clip-path, opacity, transform;
}

.gallery-hero__lead {
  max-width: 650px;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: clamp(1rem, 1.28vw, 1.14rem);
  line-height: 1.48;
}

.gallery-hero__copy > p:not(.section-kicker):not(.gallery-hero__lead) {
  max-width: 620px;
  color: var(--slate);
}

.gallery-hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.gallery-hero__signals span {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  border: 1px solid rgba(0, 59, 92, .12);
  border-radius: 999px;
  padding: 0 12px;
  color: var(--green);
  background: rgba(255, 255, 255, .82);
  font: 800 .72rem/1 Montserrat, sans-serif;
  letter-spacing: .035em;
  box-shadow: 0 9px 22px rgba(11, 34, 57, .07);
}

.gallery-hero__feature {
  position: relative;
  z-index: 1;
  margin: 0 22px 22px 0;
}

.gallery-hero__feature::before {
  content: "";
  position: absolute;
  inset: 24px -18px -24px 38px;
  z-index: -1;
  border-radius: 50% 8px 8px 8px;
  background: linear-gradient(145deg, rgba(0, 180, 216, .16), rgba(52, 168, 83, .12));
  transform: rotate(2deg);
}

.gallery-hero__feature picture {
  display: block;
  overflow: hidden;
  border-radius: 48% 8px 8px 8px;
  box-shadow: 0 32px 80px rgba(11, 34, 57, .20);
}

.gallery-hero__frame {
  position: absolute;
  inset: -10px -10px 10px 10px;
  z-index: 3;
  pointer-events: none;
}

.gallery-hero__frame i {
  position: absolute;
  display: block;
  background: linear-gradient(90deg, rgba(0, 180, 216, .08), rgba(0, 180, 216, .72), rgba(52, 168, 83, .42));
  box-shadow: 0 0 18px rgba(0, 180, 216, .18);
}

.gallery-hero__frame i:nth-child(1),
.gallery-hero__frame i:nth-child(3) {
  left: 0;
  width: 100%;
  height: 1px;
  transform: scaleX(0);
}

.gallery-hero__frame i:nth-child(1) {
  top: 0;
  transform-origin: left;
}

.gallery-hero__frame i:nth-child(3) {
  bottom: 0;
  width: 35%;
  transform-origin: right;
}

.gallery-hero__frame i:nth-child(2),
.gallery-hero__frame i:nth-child(4) {
  top: 0;
  width: 1px;
  height: 100%;
  transform: scaleY(0);
  background: linear-gradient(180deg, rgba(0, 180, 216, .7), rgba(52, 168, 83, .32), rgba(0, 180, 216, .08));
}

.gallery-hero__frame i:nth-child(2) {
  right: 0;
  height: calc(100% - 118px);
  transform-origin: top;
}

.gallery-hero__frame i:nth-child(4) {
  left: 0;
  transform-origin: bottom;
}

.gallery-hero__veil {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 48% 8px 8px 8px;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .9), rgba(225, 247, 250, .8) 44%, rgba(0, 180, 216, .15)),
    rgba(255, 255, 255, .66);
  transform-origin: right center;
  pointer-events: none;
}

.gallery-hero__feature img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  will-change: filter, transform;
}

.gallery-hero__feature figcaption {
  --caption-rule: 0;
  position: absolute;
  right: -22px;
  bottom: -22px;
  width: min(280px, 74%);
  border-left: 3px solid var(--aqua);
  border-radius: 4px;
  padding: 16px 18px;
  color: var(--white);
  z-index: 5;
  background: #003b5c;
  box-shadow: 0 15px 34px rgba(11, 34, 57, .18);
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, transform, opacity;
}

.gallery-hero__feature figcaption::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  background: linear-gradient(180deg, #8ce5f2, var(--aqua) 46%, var(--green));
  transform: scaleY(var(--caption-rule));
  transform-origin: top;
}

.gallery-hero__feature figcaption span,
.gallery-hero__feature figcaption strong {
  display: block;
  opacity: 0;
  transform: translateY(6px);
}

.gallery-hero__feature figcaption span {
  margin-bottom: 4px;
  color: rgba(255, 255, 255, .68);
  font: 800 .66rem/1.2 Montserrat, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-hero__feature figcaption strong {
  font: 800 .96rem/1.35 Montserrat, sans-serif;
}

.gallery-work {
  background: linear-gradient(180deg, #fff, #f8fbfc);
  padding-top: clamp(32px, 3.5vw, 48px) !important;
}

.gallery-heading {
  width: min(100%, 940px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, .98fr) minmax(300px, .72fr);
  align-items: start;
  gap: clamp(24px, 3vw, 34px);
  margin-bottom: clamp(30px, 4.2vw, 52px);
}

.gallery-heading h2,
.gallery-standards h2,
.gallery-process h2,
.gallery-context h2,
.gallery-cta h2,
.gallery-faq h2 {
  max-width: 14ch;
  margin-bottom: 0;
  font-size: clamp(2.05rem, 3.45vw, 3.42rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}

.gallery-heading__intro {
  max-width: 520px;
  margin: 18px 0 0;
  color: var(--slate);
  font-size: clamp(.98rem, 1.18vw, 1.08rem);
  line-height: 1.78;
}

.gallery-work__standard {
  align-self: start;
  max-width: 400px;
  margin-top: 4px;
  padding: 17px 20px;
  border: 1px solid rgba(0, 120, 145, .14);
  border-left: 3px solid rgba(47, 184, 178, .72);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .88), rgba(241, 250, 250, .74)),
    rgba(255, 255, 255, .8);
  box-shadow: 0 18px 46px rgba(0, 59, 92, .08);
  color: var(--slate);
}

.gallery-work__standard p {
  margin: 0;
  font-size: .94rem;
  line-height: 1.68;
}

.gallery-work__standard ul {
  display: grid;
  gap: 9px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.gallery-work__standard li {
  position: relative;
  padding-left: 22px;
  font-family: "Montserrat", sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .08em;
  line-height: 1.45;
  text-transform: uppercase;
  color: #0f4d67;
}

.gallery-work__standard li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .52em;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(139, 197, 63, .18), 0 6px 14px rgba(0, 59, 92, .12);
}

.gallery-grid {
  width: min(100%, 960px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(18px, 2vw, 26px);
  align-items: start;
}

.gallery-item {
  grid-column: span 5;
  color: inherit;
}

.gallery-item:nth-child(2),
.gallery-item:nth-child(5) {
  grid-column: 7 / span 6;
}

.gallery-item--wide {
  grid-column: 2 / span 10;
}

.gallery-item figure {
  margin: 0;
}

.gallery-item__media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background: #eaf0f2;
  box-shadow: 0 16px 44px rgba(11, 34, 57, .10);
}

.gallery-item__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 54%, rgba(2, 27, 44, .26));
  opacity: 0;
  transition: opacity .3s ease;
}

.gallery-item__media img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1), filter .4s ease;
}

.gallery-item--tall .gallery-item__media img {
  aspect-ratio: 1.24 / 1;
}

.gallery-item--wide .gallery-item__media img {
  aspect-ratio: 2 / 1;
}

@media (min-width: 1041px) {
  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5),
  .gallery-item--wide {
    grid-column: span 6;
  }

  .gallery-item--tall .gallery-item__media img,
  .gallery-item--wide .gallery-item__media img {
    aspect-ratio: 3 / 2;
  }
}

.gallery-item figcaption {
  padding: 18px 4px 0;
}

.gallery-item figcaption span,
.gallery-item figcaption strong {
  display: block;
}

.gallery-item figcaption span {
  margin-bottom: 6px;
  color: var(--green);
  font: 800 .68rem/1.2 Montserrat, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.gallery-item figcaption strong {
  color: var(--navy);
  font: 800 clamp(1.08rem, 1.7vw, 1.36rem)/1.25 Montserrat, sans-serif;
}

.gallery-item figcaption p {
  margin: 7px 0 0;
  color: var(--slate);
  font-size: .94rem;
}

.gallery-item:hover .gallery-item__media img,
.gallery-item:focus-visible .gallery-item__media img {
  transform: scale(1.025);
  filter: saturate(1.04) contrast(1.02);
}

.gallery-item:hover .gallery-item__media::after,
.gallery-item:focus-visible .gallery-item__media::after {
  opacity: 1;
}

.gallery-item:focus-visible {
  outline: 3px solid rgba(0, 180, 216, .38);
  outline-offset: 7px;
  border-radius: 6px;
}

.gallery-standards {
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 84%, rgba(52, 168, 83, .08), transparent 24%),
    linear-gradient(180deg, rgba(244, 239, 231, .94), rgba(255, 255, 255, .98));
}

.gallery-standards__grid {
  display: grid;
  grid-template-columns: minmax(0, .86fr) minmax(420px, 1.14fr);
  gap: clamp(50px, 8vw, 110px);
  align-items: start;
}

.gallery-standards__copy > p:not(.section-kicker) {
  max-width: 650px;
  color: var(--slate);
}

.gallery-standards__copy h2 {
  margin-bottom: clamp(26px, 3.2vw, 42px);
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 14px;
  color: var(--navy);
  font: 800 .9rem/1.2 Montserrat, sans-serif;
}

.gallery-standards__list {
  border-top: 1px solid rgba(11, 34, 57, .14);
}

.gallery-standards__list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  border-bottom: 1px solid rgba(11, 34, 57, .14);
  padding: 24px 0;
}

.gallery-standards__list article > span {
  color: var(--aqua);
  font: 800 .82rem/1.4 Montserrat, sans-serif;
}

.gallery-standards__list h3 {
  margin-bottom: 6px;
  font-size: 1.08rem;
}

.gallery-standards__list p {
  margin-bottom: 0;
  color: var(--slate);
}

.gallery-process {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 84% 20%, rgba(0, 180, 216, .10), transparent 26%),
    linear-gradient(180deg, #f8fbfc, #fff);
}

.gallery-process__three {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transition: opacity .8s ease;
}

.gallery-process.is-three-ready .gallery-process__three {
  opacity: .58;
}

.gallery-process .wrap {
  position: relative;
  z-index: 1;
}

.gallery-process__heading {
  display: grid;
  grid-template-columns: minmax(0, .64fr) minmax(420px, .86fr);
  align-items: end;
  gap: clamp(34px, 5vw, 76px);
  margin-bottom: 38px;
}

.gallery-process__heading > p {
  max-width: 690px;
  margin-bottom: 2px;
  color: var(--slate);
}

.gallery-process__rail {
  height: 2px;
  margin: 0 5% 28px;
  overflow: hidden;
  background: rgba(0, 59, 92, .08);
}

.gallery-process__rail span {
  display: block;
  width: 100%;
  height: 100%;
  transform: scaleX(.06);
  transform-origin: left;
  background: linear-gradient(90deg, var(--aqua), var(--green), var(--aqua));
}

.gallery-process__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.2vw, 28px);
}

.process-card {
  position: relative;
  min-height: 152px;
  display: grid;
  grid-template-columns: 92px 1fr;
  column-gap: 22px;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgba(0, 59, 92, .11);
  border-radius: 14px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 16px 34px rgba(11, 34, 57, .075);
  backdrop-filter: blur(8px);
}

.process-card::after {
  content: none;
}

.process-card img {
  grid-row: 1 / span 2;
  width: 88px;
  height: 88px;
  object-fit: contain;
  margin: 0;
  filter: drop-shadow(0 8px 14px rgba(11, 34, 57, .10));
}

.process-card__step {
  display: none;
}

.process-card h3 {
  grid-column: 2;
  margin-bottom: 8px;
  font-size: clamp(1.05rem, 1.35vw, 1.2rem);
  line-height: 1.18;
}

.process-card p {
  grid-column: 2;
  margin-bottom: 0;
  color: var(--slate);
  font-size: clamp(.93rem, 1vw, 1rem);
  line-height: 1.52;
}

.gallery-context {
  background: #fff;
}

.gallery-context__grid,
.gallery-faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: clamp(50px, 8vw, 110px);
}

.gallery-context__copy > p {
  color: var(--slate);
}

.gallery-context__links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 26px;
}

.gallery-context__links a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(0, 59, 92, .12);
  border-radius: 6px;
  padding: 0 15px;
  color: var(--navy);
  background: var(--mist);
  font: 800 .8rem/1.2 Montserrat, sans-serif;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.gallery-context__links a::after {
  content: "\2192";
  color: var(--aqua);
}

.gallery-context__links a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 180, 216, .34);
  background: #fff;
}

.gallery-cta {
  background: linear-gradient(145deg, #f4efe7, #fff);
}

.gallery-cta__panel {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 430px);
  align-items: center;
  gap: 42px;
  border-radius: 8px;
  padding: clamp(32px, 5vw, 62px);
  color: var(--white);
  background:
    radial-gradient(circle at 90% 12%, rgba(0, 180, 216, .24), transparent 28%),
    linear-gradient(135deg, #062e48, #003b5c 62%, #075172);
  box-shadow: 0 30px 80px rgba(0, 59, 92, .22);
}

.gallery-cta__panel::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: -1;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255, 255, 255, .12), transparent 28%),
    radial-gradient(circle at 82% 74%, rgba(121, 223, 149, .13), transparent 32%);
}

.gallery-cta__panel::after {
  content: "";
  position: absolute;
  right: -78px;
  bottom: -168px;
  width: 390px;
  height: 390px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 50%;
}

.gallery-cta__copy,
.gallery-cta__side {
  position: relative;
  z-index: 2;
}

.gallery-cta__side {
  display: grid;
  gap: 18px;
}

.gallery-cta__trace,
.gallery-cta__orb {
  position: absolute;
  z-index: 1;
  pointer-events: none;
}

.gallery-cta__trace {
  background: linear-gradient(90deg, rgba(0, 180, 216, .78), rgba(121, 223, 149, .68));
  opacity: .72;
  transform-origin: left center;
}

.gallery-cta__trace--top {
  top: 42px;
  right: clamp(42px, 6vw, 86px);
  width: min(34vw, 430px);
  height: 1px;
  transform: scaleX(.18);
}

.gallery-cta__trace--right {
  top: 42px;
  right: clamp(42px, 6vw, 86px);
  width: 1px;
  height: 78px;
  background: linear-gradient(180deg, rgba(121, 223, 149, .68), rgba(0, 180, 216, .42));
  transform: scaleY(.18);
  transform-origin: top center;
}

.gallery-cta__trace--bottom {
  left: clamp(32px, 5vw, 62px);
  bottom: 42px;
  width: min(28vw, 360px);
  height: 1px;
  transform: scaleX(.18);
  opacity: .44;
}

.gallery-cta__orb {
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
}

.gallery-cta__orb--one {
  right: -36px;
  bottom: -92px;
  width: 280px;
  height: 280px;
}

.gallery-cta__orb--two {
  right: 48px;
  bottom: -42px;
  width: 160px;
  height: 160px;
  border-color: rgba(0, 180, 216, .18);
}

.gallery-cta h2 {
  color: var(--white);
}

.gallery-cta p {
  max-width: 680px;
  margin: 16px 0 0;
  color: rgba(255, 255, 255, .78);
}

.gallery-cta .section-kicker {
  color: #79df95;
}

.gallery-cta__proof {
  position: relative;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px 14px;
  padding: 18px 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, .2);
  border-left: 2px solid rgba(121, 223, 149, .72);
  border-radius: 8px;
  background: rgba(255, 255, 255, .065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  backdrop-filter: blur(8px);
}

.gallery-cta__proof span {
  color: #79df95;
  font: 800 .72rem/1.4 Montserrat, sans-serif;
  letter-spacing: .08em;
}

.gallery-cta__proof p {
  max-width: none;
  margin: 0;
  color: rgba(255, 255, 255, .84);
  font-size: .88rem;
  line-height: 1.45;
}

.gallery-cta__proof strong {
  color: var(--white);
  font-family: Montserrat, sans-serif;
}

.gallery-cta__actions {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  min-width: 210px;
}

.gallery-cta .btn--primary {
  color: var(--navy);
  background: var(--white);
  box-shadow: none;
}

.gallery-cta .btn--outline {
  color: var(--white);
  border-color: rgba(255, 255, 255, .38);
}

.gallery-faq {
  background: #f8fbfc;
}

.faq-list {
  border-top: 1px solid rgba(11, 34, 57, .14);
}

.faq-item {
  border-bottom: 1px solid rgba(11, 34, 57, .14);
}

.faq-item summary {
  position: relative;
  padding: 23px 44px 23px 0;
  color: var(--navy);
  font: 800 1rem/1.35 Montserrat, sans-serif;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  position: absolute;
  right: 6px;
  top: 19px;
  color: var(--aqua);
  font-size: 1.5rem;
  transition: transform .2s ease;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item p {
  max-width: 720px;
  padding: 0 44px 22px 0;
  color: var(--slate);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .24s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 18, 30, .94);
  backdrop-filter: blur(12px);
}

.lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1120px, 100%);
  max-height: calc(100vh - 48px);
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  opacity: 0;
  transform: translate3d(var(--lightbox-origin-x, 0), var(--lightbox-origin-y, 0), 0) scale(var(--lightbox-origin-scale, .96));
  transform-origin: var(--lightbox-origin, center center);
}

.lightbox.is-open .lightbox__panel {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  transition: opacity .26s ease, transform .34s cubic-bezier(.22, 1, .36, 1);
}

.lightbox figure {
  width: 100%;
  max-height: calc(100vh - 48px);
  margin: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 8px;
  background: #061f31;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42);
}

.lightbox picture {
  display: grid;
  min-height: 0;
  place-items: center;
  background: #061521;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 220px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.lightbox figcaption {
  padding: 18px 22px 21px;
  color: rgba(255, 255, 255, .76);
}

.lightbox figcaption h2 {
  margin: 3px 0 5px;
  color: var(--white);
  font-size: clamp(1.15rem, 2vw, 1.5rem);
}

.lightbox figcaption p {
  margin: 0;
  font-size: .9rem;
}

.lightbox__count {
  color: #79df95;
  font: 800 .66rem/1.2 Montserrat, sans-serif;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.lightbox__close,
.lightbox__nav {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}

.lightbox__close:hover,
.lightbox__nav:hover {
  background: rgba(255, 255, 255, .17);
}

.lightbox__close {
  position: absolute;
  top: -14px;
  right: 42px;
  z-index: 3;
  width: 44px;
  height: 44px;
  font-size: 1.6rem;
}

.lightbox__nav {
  width: 46px;
  height: 46px;
  font-size: 1.25rem;
}

.lightbox__nav--prev {
  justify-self: start;
}

.lightbox__nav--next {
  justify-self: end;
}

body.has-lightbox {
  overflow: hidden;
}

@media (max-width: 1040px) {
  .gallery-hero__grid {
    grid-template-columns: minmax(0, 1.12fr) minmax(360px, .88fr);
    gap: 24px;
  }

  .gallery-hero h1 {
    max-width: 10.4em;
    font-size: clamp(2.42rem, 4.35vw, 2.8rem);
  }

  .gallery-item,
  .gallery-item:nth-child(2),
  .gallery-item:nth-child(5) {
    grid-column: span 6;
  }

  .gallery-item--wide {
    grid-column: span 12;
  }
}

@media (max-width: 860px) {
  .gallery-hero {
    padding-top: 42px;
  }

  .gallery-hero__grid,
  .gallery-heading,
  .gallery-standards__grid,
  .gallery-process__heading,
  .gallery-context__grid,
  .gallery-faq__grid,
  .gallery-cta__panel {
    grid-template-columns: 1fr;
  }

  .gallery-cta__side {
    max-width: 520px;
  }

  .gallery-hero__copy {
    max-width: 680px;
  }

  .gallery-hero h1 {
    max-width: 11ch;
  }

  .gallery-hero h1 span,
  .gallery-hero h1 em {
    white-space: normal;
  }

  .gallery-hero__feature {
    width: min(calc(100% - 18px), 720px);
    margin-right: 18px;
    margin-bottom: 22px;
  }

  .gallery-hero__feature figcaption {
    right: -18px;
    bottom: -22px;
  }

  .gallery-heading {
    gap: 14px;
  }

  .gallery-heading > p {
    max-width: 680px;
  }

  .gallery-work__standard {
    max-width: 720px;
  }

  .gallery-standards__grid,
  .gallery-process__heading,
  .gallery-context__grid,
  .gallery-faq__grid {
    gap: 36px;
  }

  .gallery-cta__actions {
    width: min(100%, 420px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gallery-process__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .gallery-redesign .section-panel {
    padding: 64px 0;
  }

  .gallery-grid {
    display: block;
  }

  .gallery-process__grid {
    grid-template-columns: 1fr;
  }

  .gallery-process__rail {
    display: none;
  }

  .process-card {
    min-height: 0;
    display: grid;
    grid-template-columns: 58px 1fr;
    column-gap: 15px;
    align-items: start;
    padding: 18px;
  }

  .process-card img {
    grid-row: 1 / span 2;
    width: 54px;
    height: 54px;
    margin: 0;
  }

  .process-card h3,
  .process-card p {
    grid-column: 2;
  }

  .gallery-hero__copy > p:not(.section-kicker):not(.gallery-hero__lead):not(.gallery-hero__signature) {
    display: none;
  }

  .gallery-item {
    display: block;
    margin-bottom: 38px;
  }

  .gallery-item:last-child {
    margin-bottom: 0;
  }

  .gallery-item__media img,
  .gallery-item--tall .gallery-item__media img,
  .gallery-item--wide .gallery-item__media img {
    aspect-ratio: auto;
  }

  .gallery-context__links {
    grid-template-columns: 1fr;
  }

  .lightbox {
    padding: 12px;
  }

  .lightbox__panel {
    max-height: calc(100vh - 24px);
    display: block;
  }

  .lightbox figure {
    max-height: calc(100vh - 24px);
  }

  .lightbox__image {
    max-height: calc(100vh - 220px);
  }

  .lightbox__nav {
    position: absolute;
    top: 44%;
    z-index: 4;
  }

  .lightbox__nav--prev { left: 8px; }
  .lightbox__nav--next { right: 8px; }
  .lightbox__close { top: 8px; right: 8px; }
}

@media (max-width: 520px) {
  .gallery-hero {
    padding: 20px 0 14px;
  }

  .gallery-hero h1 {
    max-width: none;
    margin-bottom: 12px;
    font-size: clamp(2.22rem, 10.9vw, 2.84rem);
    letter-spacing: -.058em;
  }

  .gallery-hero h1 span {
    white-space: nowrap;
  }

  .gallery-hero h1 em {
    max-width: 8.8em;
    white-space: normal;
  }

  .gallery-hero__lead {
    font-size: 1rem;
    line-height: 1.55;
  }

  .gallery-hero__signals {
    flex-wrap: nowrap;
    gap: 5px;
    margin-top: 8px;
  }

  .gallery-hero__signals span {
    min-height: 26px;
    padding: 0 7px;
    font-size: .58rem;
    letter-spacing: .005em;
    white-space: nowrap;
  }

  .gallery-hero__feature::before {
    inset: 16px -10px -18px 18px;
  }

  .gallery-hero__feature picture {
    border-radius: 38% 6px 6px 6px;
  }

  .gallery-hero__frame {
    inset: -7px -7px 7px 7px;
  }

  .gallery-hero__veil {
    border-radius: 38% 6px 6px 6px;
  }

  .gallery-hero__frame i:nth-child(2) {
    height: calc(100% - 100px);
  }

  .gallery-hero__frame i:nth-child(3) {
    width: 18%;
  }

  .gallery-hero__feature figcaption {
    right: -8px;
    bottom: -18px;
    width: 78%;
    padding: 13px 14px;
  }

  .gallery-heading h2,
  .gallery-standards h2,
  .gallery-context h2,
  .gallery-cta h2,
  .gallery-faq h2 {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .gallery-item figcaption {
    padding-top: 14px;
  }

  .gallery-standards__list article {
    grid-template-columns: 36px 1fr;
    gap: 12px;
  }

  .gallery-cta__panel {
    padding: 28px 22px;
  }

  .gallery-cta__trace--top,
  .gallery-cta__trace--right {
    display: none;
  }

  .gallery-cta__proof {
    grid-template-columns: 28px 1fr;
    padding: 15px 15px 15px 16px;
  }

  .gallery-cta__actions {
    grid-template-columns: 1fr;
  }

  .lightbox figcaption {
    padding: 15px 16px 17px;
  }

  .lightbox figcaption p {
    font-size: .82rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-redesign *,
  .gallery-redesign *::before,
  .gallery-redesign *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .gallery-hero h1 span,
  .gallery-hero h1 em,
  .gallery-hero__feature,
  .gallery-hero__feature img,
  .gallery-hero__feature figcaption,
  .gallery-hero__feature figcaption span,
  .gallery-hero__feature figcaption strong {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
  }

  .gallery-hero__feature figcaption {
    --caption-rule: 1;
  }
}

@keyframes galleryLine {
  to {
    transform: scaleX(1);
    opacity: 1;
  }
}
