.services-page {
  --service-bg: #07101c;
  --service-text: #f1f8ff;
  --service-muted: #bac9d9;
  --service-glow: #8cecff;
  --service-border: #c1eaff2b;
  color: var(--service-text);
  background: var(--service-bg);
}

.services-page :is(h1, h2, h3) {
  font-weight: 760;
  letter-spacing: -.062em;
}

.services-page .eyebrow { color: var(--service-glow); }

.services-hero {
  min-height: clamp(540px, calc(90svh - var(--header)), 770px);
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: end;
  overflow: clip;
  background: #0b1d35;
}

.services-hero-media, .services-contact-media {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.services-hero-media img, .services-contact-media img {
  position: absolute;
  inset: -7% 0;
  width: 100%;
  height: 114%;
  object-fit: cover;
  object-position: 65% 46%;
  transform: translate3d(0, var(--motion-shift, 0px), 0);
}

.services-hero::after, .services-contact::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(0deg, #07101c 0%, #07101c54 24%, #07101c00 57%),
    linear-gradient(90deg, #07101ce8 0%, #07101ca6 42%, #07101c04 76%),
    linear-gradient(180deg, #07101c16, #07101c00 22%);
}

.services-hero-inner {
  position: relative;
  display: grid;
  align-items: end;
  min-height: inherit;
  padding-block: clamp(85px, 13vh, 150px) clamp(72px, 11vh, 120px);
}

.services-hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 690px);
}

.services-hero h1 {
  margin-top: 18px;
  font-size: clamp(4rem, 8.5vw, 8.2rem);
  line-height: .91;
}

.services-hero h1 span { color: var(--service-glow); }

.services-hero-text {
  max-width: 42ch;
  margin-top: 24px;
  color: #dee9f5;
  font-size: clamp(1rem, 1.55vw, 1.19rem);
}

.services-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 26px;
}

.services-page .button--primary {
  color: #07131f;
  background: #a5f0ff;
}

.services-page .button--primary:hover {
  background: #d2f9ff;
  box-shadow: 0 8px 35px #8cecff34;
}

.services-viewfinder {
  position: absolute;
  inset: 19% 0 17% 64%;
  pointer-events: none;
  opacity: .66;
}

.services-viewfinder i {
  position: absolute;
  width: 16px;
  height: 16px;
  border-color: #d6f8ff;
  border-style: solid;
  border-width: 0;
}

.services-viewfinder i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; }
.services-viewfinder i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.services-viewfinder i:nth-child(3) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
.services-viewfinder i:nth-child(4) { bottom: 0; left: 0; border-width: 0 0 1px 1px; }

.services-viewfinder span {
  position: absolute;
  right: -3px;
  top: 47%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--service-glow);
  box-shadow: 0 0 17px 4px #6fe4ff79;
}

@media (prefers-reduced-motion: no-preference) {
  .services-hero-media img { animation: service-hero-settle 1.5s var(--ease) both; }
  .services-hero-copy > * { animation: service-copy-enter .8s var(--ease) both; }
  .services-hero-copy > :nth-child(2) { animation-delay: .06s; }
  .services-hero-copy > :nth-child(3) { animation-delay: .13s; }
  .services-hero-copy > :nth-child(4) { animation-delay: .19s; }
  .services-viewfinder { animation: service-viewfinder-enter 1.1s .2s var(--ease) both; }
}

@keyframes service-hero-settle {
  from { scale: 1.065; opacity: .55; }
  to { scale: 1; opacity: 1; }
}

@keyframes service-copy-enter {
  from { opacity: 0; translate: 0 20px; }
  to { opacity: 1; translate: 0 0; }
}

@keyframes service-viewfinder-enter {
  from { opacity: 0; scale: 1.045; }
  to { opacity: .66; scale: 1; }
}

.services-options {
  padding-block: clamp(70px, 9vw, 140px) clamp(75px, 9vw, 136px);
  background:
    radial-gradient(ellipse at 86% 28%, #10274677, transparent 52%),
    #07101c;
}

.services-intro {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 25px 40px;
  padding-bottom: clamp(28px, 4vw, 52px);
  border-bottom: 1px solid var(--service-border);
}

.services-intro h2, .services-preparation h2, .services-contact h2 {
  font-size: clamp(2.95rem, 6vw, 6.1rem);
  line-height: .95;
}

.service-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  padding-bottom: 3px;
}

.service-mobile-nav { display: none; }

.service-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid #c1eaff40;
  border-radius: 5px;
  color: #ddeaf6;
  font-size: .84rem;
  font-weight: 690;
  transition: color .2s, background .2s, border-color .2s;
}

.service-tabs a span { color: var(--service-glow); }
.service-tabs a:hover, .service-tabs a[aria-current="location"] {
  border-color: #8cecff90;
  background: #123047;
  color: white;
}

.service-showcase {
  padding-top: clamp(24px, 4vw, 56px);
}

.service-gallery { display: none; }

.service-chapter {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(25px, 5vw, 84px);
  padding-block: clamp(35px, 5vw, 70px);
  border-bottom: 1px solid var(--service-border);
}

.service-chapter:first-child { padding-top: 0; }
.service-chapter:nth-child(even) .service-inline-photo { order: -1; }
.service-chapter:last-child { border-bottom: 0; padding-bottom: 0; }
.service-chapter h3 {
  max-width: 12ch;
  margin-block: 12px 16px;
  font-size: clamp(2.55rem, 4.6vw, 5rem);
  line-height: .99;
}
.service-chapter-copy > p:not(.eyebrow), .services-preparation p, .services-contact p {
  max-width: 46ch;
  color: var(--service-muted);
  font-size: clamp(1rem, 1.45vw, 1.12rem);
}

.service-checks {
  margin: 20px 0 24px;
  padding: 0;
  list-style: none;
  color: #d9e6f2;
}

.service-checks li {
  position: relative;
  padding: 8px 0 8px 16px;
  border-bottom: 1px solid #c1eaff1b;
}

.service-checks li::before {
  content: "";
  position: absolute;
  top: 17px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--service-glow);
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  width: fit-content;
  color: var(--service-glow);
  font-weight: 720;
}

.service-link span { transition: transform .25s var(--ease); }
.service-link:hover { color: #d5f8ff; text-decoration: underline; text-underline-offset: 4px; }
.service-link:hover span { transform: translate(3px, -3px); }

.service-inline-photo {
  position: relative;
  overflow: hidden;
  aspect-ratio: 7 / 5;
  background: #122437;
  border: 1px solid var(--service-border);
  border-radius: 12px;
}

.service-inline-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 900px) and (min-height: 620px) and (prefers-reduced-motion: no-preference) {
  .has-service-gallery .service-showcase {
    display: grid;
    grid-template-columns: minmax(0, 1.23fr) minmax(0, .77fr);
    align-items: start;
    gap: clamp(44px, 6.9vw, 110px);
  }

  .has-service-gallery .service-gallery {
    --service-drift: 0px;
    --gallery-progress: 0;
    position: sticky;
    top: calc(var(--header) + clamp(26px, 7vh, 75px));
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    height: min(565px, calc(100svh - var(--header) - 113px));
    min-height: 400px;
    overflow: hidden;
    border: 1px solid var(--service-border);
    border-radius: 14px;
    background: #0a1728;
    box-shadow: 0 23px 85px #03091386;
  }

  .service-gallery-image {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #15283c;
  }

  .service-gallery-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, #020e21a3, transparent 32%);
    pointer-events: none;
  }

  .service-gallery-image > img {
    position: absolute;
    inset: -5% 0;
    width: 100%;
    height: 110%;
    object-fit: cover;
    opacity: 0;
    transform: translate3d(0, var(--service-drift), 0) scale(1.065);
    transition: opacity .62s var(--ease), scale .9s var(--ease);
    scale: 1.04;
  }

  .service-gallery[data-active="0"] img:nth-child(1),
  .service-gallery[data-active="1"] img:nth-child(2),
  .service-gallery[data-active="2"] img:nth-child(3) { opacity: 1; scale: 1; }

  .service-gallery-sweep {
    position: absolute;
    z-index: 1;
    inset: 0;
    opacity: 0;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 30%, #78ddff21 46%, #b3f1ff3d 50%, transparent 63%);
    transform: translateX(-85%);
  }

  .service-gallery.is-sweeping .service-gallery-sweep { animation: service-gallery-sweep .85s var(--ease); }

  .service-gallery-corner {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    width: 15px;
    height: 15px;
    border-top: 1px solid #d9f6ffb0;
    border-left: 1px solid #d9f6ffb0;
  }

  .service-gallery-corner:last-child {
    inset: auto 18px 18px auto;
    transform: rotate(180deg);
  }

  .service-gallery-caption {
    display: grid;
    grid-template-columns: auto minmax(34px, 1fr);
    align-items: center;
    gap: 15px;
    min-height: 56px;
    padding: 12px 17px;
    color: #e7f3ff;
    font-size: .79rem;
    font-weight: 700;
    letter-spacing: .025em;
  }

  .service-gallery-track {
    position: relative;
    height: 1px;
    background: var(--service-border);
  }

  .service-gallery-track::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--service-glow);
    box-shadow: 0 0 7px #8cecff88;
    transform: scaleX(var(--gallery-progress));
    transform-origin: left center;
  }

  .has-service-gallery .service-inline-photo { display: none; }
  .has-service-gallery .service-chapter {
    grid-template-columns: minmax(0, 1fr);
    position: relative;
    min-height: min(580px, 74svh);
    padding-block: 38px;
  }
  .has-service-gallery .service-chapter:first-child { padding-top: 0; }
  .has-service-gallery .service-chapter:last-child { padding-bottom: 0; }
  .has-service-gallery .service-chapter h3 { font-size: clamp(2.6rem, 4.35vw, 4.7rem); }
}

@keyframes service-gallery-sweep {
  0% { opacity: 0; transform: translateX(-75%); }
  35% { opacity: .8; }
  100% { opacity: 0; transform: translateX(75%); }
}

.services-preparation {
  border-block: 1px solid var(--service-border);
  background: linear-gradient(115deg, #0c1c2f, #0e2540 74%, #103247);
  padding-block: clamp(70px, 9vw, 132px);
}

.services-preparation-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  gap: clamp(30px, 7vw, 100px);
  align-items: center;
}
.services-preparation p, .services-contact p { margin-top: 16px; }

.services-preflight {
  list-style: none;
  margin: 0;
  padding: 0 0 0 19px;
  border-left: 1px solid #8cecff60;
}

.services-preflight li {
  position: relative;
  padding-block: 10px 14px;
  color: #c8d8e8;
}

.services-preflight li::before {
  content: "";
  position: absolute;
  left: -23px;
  top: 18px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--service-glow);
  box-shadow: 0 0 12px #83eaff82;
}

.services-preflight strong { display: block; color: white; }

.services-contact {
  position: relative;
  overflow: clip;
  isolation: isolate;
  background: #0b1d35;
}
.services-contact-media img { object-position: center 58%; }
.services-contact::after {
  background: linear-gradient(90deg, #07101cf0 0%, #07101c9c 52%, #07101c76),
    linear-gradient(0deg, #07101cce 0%, #07101c00 60%);
}
.services-contact-inner {
  min-height: clamp(300px, 38vw, 510px);
  padding-block: 66px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px 30px;
}

@media (max-width: 820px) {
  .services-intro { align-items: start; flex-direction: column; }
  .service-chapter { gap: 25px; }
  .services-preparation-grid { gap: 35px; }
}

@media (min-width: 741px) and (max-width: 899px) {
  .services-hero { min-height: clamp(460px, 69svh, 650px); }
  .services-hero-media img { object-position: 80% 43%; }
}

@media (max-width: 740px) {
  .services-hero { min-height: clamp(352px, calc(60svh - var(--header)), 450px); }
  .services-hero-inner { padding-block: clamp(102px, 19svh, 164px) 24px; }
  .services-hero-media { inset: 0 0 auto; height: 76%; }
  .services-hero-media img { object-position: 89% 42%; }
  .services-hero::after {
    background: linear-gradient(0deg, #07101c 12%, #07101cf2 33%, #07101c35 67%, transparent 92%),
      linear-gradient(90deg, #07101c50, transparent 84%);
  }
  .services-hero h1 { font-size: clamp(2.52rem, 10.5vw, 4.55rem); margin-top: 11px; }
  .services-hero-text { margin-top: 14px; }
  .services-actions { margin-top: 14px; gap: 8px; }
  .services-actions .button { min-height: 46px; padding-inline: 12px; gap: 7px; font-size: .84rem; }
  .services-options { padding-block: clamp(29px, 7vw, 42px) 47px; }
  .services-intro { gap: 13px; padding-bottom: 15px; }
  .services-intro h2, .services-preparation h2, .services-contact h2 {
    font-size: clamp(2.3rem, 8.2vw, 3.6rem);
  }
  .service-showcase { padding-top: 14px; }
  .service-chapters { display: grid; gap: 12px; }
  .service-chapter,
  .service-chapter:first-child,
  .service-chapter:last-child {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid var(--service-border);
    border-radius: 16px;
    background: linear-gradient(140deg, #13273a, #0c1928 70%);
  }
  .service-chapter.is-service-current {
    border-color: #8cecff4a;
  }
  .service-chapter-copy { padding: 15px clamp(14px, 4.6vw, 25px) 11px; }
  .service-chapter h3 { max-width: 15ch; margin-block: 8px 10px; font-size: clamp(1.9rem, 7vw, 3.1rem); }
  .service-chapter .service-inline-photo,
  .service-chapter:nth-child(even) .service-inline-photo {
    order: -1;
    aspect-ratio: 17 / 10;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .service-inline-photo img {
    position: absolute;
    inset: -8% 0;
    height: 116%;
    transform: translate3d(0, clamp(-11px, var(--motion-shift, 0px), 11px), 0);
  }
  .service-inline-photo::after {
    content: "";
    position: absolute;
    pointer-events: none;
    inset: auto 0 0;
    height: 2px;
    background: linear-gradient(90deg, #438cff, var(--service-glow));
    opacity: 0;
    transform: scaleX(var(--service-chapter-progress, 0));
    transform-origin: left;
  }
  .is-service-current .service-inline-photo::after { opacity: 1; }
  .service-checks { margin-block: 11px 8px; }
  .service-checks li { padding-block: 7px; }
  .services-preparation { padding-block: clamp(38px, 8vw, 59px); }
  .services-preparation-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .services-contact-media img { object-position: 66% 58%; }
  .services-contact-inner { flex-direction: column; justify-content: end; align-items: start; padding-block: 38px; }
}

@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  .service-chapter { transition: border-color .25s var(--ease), box-shadow .25s var(--ease); }
  .service-inline-photo::after { transition: opacity .25s var(--ease); }
}

@media (min-width: 540px) and (max-width: 1024px) and (max-height: 520px) {
  .services-hero { min-height: max(337px, calc(100svh - var(--header))); }
  .services-hero-inner { padding-block: 32px; }
  .services-hero-media { inset: 0; height: auto; }
  .services-hero-media img { object-position: 77% 43%; }
  .services-hero::after {
    background: linear-gradient(90deg, #07101cf1, #07101cb2 48%, transparent 87%),
      linear-gradient(0deg, #07101c88, transparent 47%);
  }
  .services-hero-copy { width: min(64%, 535px); }
  .services-hero h1 { font-size: clamp(2.3rem, 6.2vw, 4.45rem); }
  .services-viewfinder { inset: 13% 0 14% 69%; }
}

@media (orientation: portrait) and (max-width: 360px) {
  .services-hero-media img { object-position: 93% 42%; }
}

@media (orientation: landscape) and (max-width: 1024px) and (max-height: 360px) {
  .services-hero { min-height: max(0px, calc(100svh - var(--header))); }
  .services-hero-inner { align-items: center; padding-block: 12px 14px; }
  .services-hero-media { inset: 0; height: auto; }
  .services-hero-media img { object-position: 79% 38%; }
  .services-hero::after {
    background: linear-gradient(90deg, #07101cf1, #07101cb2 48%, transparent 87%),
      linear-gradient(0deg, #07101c88, transparent 47%);
  }
  .services-hero-copy { width: min(100%, max(65%, 292px), 535px); }
  .services-hero h1 { font-size: clamp(1.95rem, 5.3vw, 2.7rem); margin-top: 7px; }
  .services-hero-text { margin-top: 9px; font-size: .9rem; line-height: 1.42; }
  .services-hero .services-actions { margin-top: 11px; gap: 7px; }
  .services-hero .services-actions .button { min-height: 44px; padding-inline: 10px; gap: 6px; font-size: .81rem; }
  .services-viewfinder { inset: 12% 0 13% 72%; }
}

@media (max-width: 740px), (orientation: landscape) and (max-width: 1024px) and (max-height: 520px) {
  .services-hero .button--glass, .services-viewfinder, .service-tabs { display: none; }
  .service-mobile-nav {
    display: block;
    width: min(100%, 285px);
    padding-inline: 12px;
    border: 1px solid var(--service-border);
    border-radius: 9px;
    background: #0d1b2b;
  }
  .service-mobile-nav summary, .service-mobile-nav a {
    display: flex;
    align-items: center;
    min-height: 44px;
    color: #ddeaf6;
    font-size: .9rem;
  }
  .service-mobile-nav summary {
    justify-content: space-between;
    gap: 9px;
    list-style: none;
    cursor: pointer;
    font-weight: 680;
  }
  .service-mobile-nav summary::-webkit-details-marker { display: none; }
  .service-mobile-nav summary::after {
    content: "";
    width: 7px;
    height: 7px;
    margin-inline-end: 3px;
    border: solid var(--service-glow);
    border-width: 0 1.5px 1.5px 0;
    transform: translateY(-2px) rotate(45deg);
  }
  .service-mobile-nav[open] summary::after { transform: translateY(2px) rotate(225deg); }
  .service-mobile-nav a { border-top: 1px solid var(--service-border); }
  .service-mobile-nav a[aria-current="location"] { color: var(--service-glow); }
}

@media (prefers-reduced-motion: reduce) {
  .services-hero-media img, .services-contact-media img, .service-inline-photo img { transform: none; }
  .service-inline-photo::after { display: none; }
  .services-page *, .services-page *::before, .services-page *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}
