[data-theme="dark"] body {
  --canvas: #030b18;
  --surface: #081628;
  --nav: #071426;
  --muted: #bdcedb;
  --line: #29425d;
  --button-text: #030b18;
  background: linear-gradient(155deg, #081931 0%, #061329 26%, #030b18 62%, #050f21 100%);
}

[data-theme="dark"] footer {
  background: #030b18;
  color: var(--ink);
}

[data-theme="dark"] .footer-place { color: var(--muted); }

.coast-photo img {
  aspect-ratio: 2.15;
  object-position: 50% 48%;
}

.service-explorer {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.service-explorer legend { padding: 0; }

.explorer-layout {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

.explorer-choices {
  display: grid;
  align-content: start;
  gap: .5rem;
}

.explorer-choices label {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 48px;
  padding: .65rem 1rem;
  border: 1px solid var(--line);
  border-radius: 20px;
  cursor: pointer;
}

.explorer-choices label:has(:checked) {
  background: var(--button);
  color: var(--button-text);
  border-color: var(--button);
}

.explorer-choices input {
  inline-size: 1rem;
  block-size: 1rem;
  margin: 0;
  accent-color: var(--accent);
}

.explorer-results {
  display: grid;
  align-content: center;
  min-height: 13rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 40px;
  background: var(--surface);
}

.explorer-result p { max-width: 52ch; }
.explorer-link { margin-top: .75rem; }

@supports selector(:has(*)) {
  .explorer-result { display: none; }
  .service-explorer:has([value="checks"]:checked) [data-service="checks"],
  .service-explorer:has([value="repairs"]:checked) [data-service="repairs"],
  .service-explorer:has([value="expenses"]:checked) [data-service="expenses"] {
    display: block;
  }
}

@media (min-width: 48rem) {
  .explorer-layout { grid-template-columns: minmax(12rem, 1fr) minmax(0, 2.15fr); }
}

@media (max-width: 47.99rem) {
  .coast-photo img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .coast-photo img { animation: coast-arrival 800ms ease-out both; }
  .explorer-result { animation: panel-arrival 220ms ease-out both; }

  @keyframes coast-arrival {
    from { opacity: .6; transform: scale(1.045); }
    to { opacity: 1; transform: scale(1); }
  }

  @keyframes panel-arrival {
    from { opacity: .5; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

.coastal-hero {
  position: relative;
  isolation: isolate;
}

.sea-lights {
  position: absolute;
  inset: -1.5rem 0 auto;
  height: clamp(24rem, 55vw, 43rem);
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  contain: paint;
}

[data-theme="dark"] .sea-lights::before,
[data-theme="dark"] .sea-lights::after {
  content: "";
  position: absolute;
  inset: 0;
}

[data-theme="dark"] .sea-lights::before {
  background:
    radial-gradient(ellipse at 96% 0%, rgb(175 229 222 / .36), rgb(77 163 185 / .17) 16%, transparent 51%),
    radial-gradient(ellipse at 64% 0%, rgb(38 109 146 / .18), transparent 66%);
}

[data-theme="dark"] .sea-lights::after {
  background: conic-gradient(
    from 0deg at 97% -15%,
    transparent 181deg,
    rgb(164 230 219 / .22) 188deg,
    transparent 197deg,
    rgb(128 210 209 / .16) 204deg,
    transparent 212deg,
    rgb(137 219 211 / .18) 220deg,
    transparent 229deg,
    rgb(133 207 215 / .15) 238deg,
    transparent 247deg
  );
  filter: blur(12px);
  mask-image: linear-gradient(black 3%, transparent 87%);
}

.sea-lights span {
  position: absolute;
  z-index: 1;
  top: var(--y);
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #28758a;
  opacity: .26;
  --drift-x: 16px;
  --drift-y: -13px;
}

.sea-lights span:nth-child(3n) { --drift-x: -18px; --drift-y: -16px; }
.sea-lights span:nth-child(3n + 1) { --drift-x: 11px; --drift-y: 15px; }

[data-theme="dark"] .sea-lights span {
  background: #e4fcf3;
  box-shadow: 0 0 5px 1px rgb(163 239 226 / .62), 0 0 12px rgb(141 231 250 / .46);
}

@media (prefers-reduced-motion: no-preference) {
  .sea-lights span {
    animation: sea-glimmer calc(var(--time) * .74) ease-in-out var(--delay) infinite;
  }

  @keyframes sea-glimmer {
    0%, 100% { opacity: .14; transform: translate(0, 0) scale(.78); }
    24% { opacity: .95; transform: translate(calc(var(--drift-x) * .42), calc(var(--drift-y) * .64)) scale(1.24); }
    47% { opacity: .22; transform: translate(var(--drift-x), var(--drift-y)) scale(.85); }
    73% { opacity: .75; transform: translate(calc(var(--drift-x) * .64), calc(var(--drift-y) * -.25)) scale(1.1); }
  }
}

@media (max-width: 47.99rem) {
  .sea-lights span:nth-child(2n) { display: none; }
}

/* Keep the deep-water backdrop continuous across the five pages. */
.coastal-site .header { position: relative; z-index: 2; }

.coastal-site .nav-shell {
  border-color: color-mix(in srgb, var(--line) 75%, transparent);
  background: color-mix(in srgb, var(--nav) 88%, transparent);
  backdrop-filter: blur(16px);
}

.coastal-site .coast-intro {
  min-height: clamp(15rem, 27vw, 22rem);
}

.coast-photo {
  position: relative;
  box-shadow: 0 20px 70px rgb(0 0 0 / .22);
}

.coast-photo::after {
  position: absolute;
  inset: 0;
  border: 1px solid rgb(245 252 255 / .22);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.coastal-site .closer,
.coastal-site .explorer-results {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid var(--line);
  background: radial-gradient(ellipse at 95% 0%, rgb(44 133 151 / .16), transparent 55%), var(--surface);
}

.coastal-site .closer::before,
.coastal-site .explorer-results::before {
  position: absolute;
  inset: 0 12% auto;
  z-index: -1;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgb(144 218 216 / .72), transparent);
}

.coastal-site .surface {
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-block: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
}

.coastal-site .section-photo .media {
  border: 1px solid var(--line);
  box-shadow: 0 14px 40px rgb(0 0 0 / .15);
}

.coastal-site .service-detail {
  scroll-margin-top: 2rem;
}

.coastal-site .service-detail > h2::before {
  display: block;
  width: 28px;
  height: 2px;
  margin-bottom: .9rem;
  border-radius: 2px;
  background: var(--accent);
  content: "";
}

.coastal-site .owners-photo {
  position: relative;
  background: radial-gradient(ellipse at 75% 0%, rgb(73 155 166 / .17), transparent 62%), var(--surface);
}

.coastal-site .owners-photo::before,
.coastal-site .owners-photo::after {
  position: absolute;
  border: 1px solid color-mix(in srgb, var(--line) 68%, transparent);
  border-radius: 50%;
  content: "";
}

.coastal-site .owners-photo::before { inset: 20% 24%; }
.coastal-site .owners-photo::after { inset: 12% 18%; }
.coastal-site .owners-photo:has(img)::before,
.coastal-site .owners-photo:has(img)::after { display: none; }

.coastal-site details[open] summary { color: var(--ink); }
.coastal-site summary::marker { color: var(--accent); }

@media (prefers-reduced-motion: no-preference) {
  .coast-intro > * { animation: coast-type 620ms ease-out both; }
  .coast-intro > :nth-child(2) { animation-delay: 100ms; }
  .coastal-site .reveal-ready {
    opacity: 0;
    transform: translateY(12px);
    filter: blur(3px);
    transition:
      opacity 1100ms ease-out,
      transform 1400ms cubic-bezier(.16, 1, .3, 1),
      filter 1200ms ease-out;
  }

  .coastal-site .reveal-ready.is-visible,
  .coastal-site .reveal-ready:focus-within,
  .coastal-site .reveal-ready:target {
    opacity: 1;
    transform: none;
    filter: none;
  }

  .coastal-site .reveal-ready:focus-within,
  .coastal-site .reveal-ready:target { transition: none; }
  .coastal-site details[open] > p { animation: panel-arrival 220ms ease-out both; }
  .coastal-site .button,
  .coastal-site .icon,
  .coastal-site .explorer-choices label { transition: transform 180ms ease, box-shadow 180ms ease; }

  @keyframes coast-type {
    from { opacity: .64; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
  }
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .coastal-site .button:hover,
  .coastal-site .icon:hover { transform: translateY(-2px); }
  .coastal-site .explorer-choices label:hover {
    transform: translateX(3px);
    box-shadow: 0 5px 18px rgb(0 0 0 / .13);
  }
  .coastal-site .section-photo img { transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
  .coastal-site .section-photo .media:hover img { transform: scale(1.045); }
}

@media (max-width: 47.99rem) {
  .coastal-site .coast-intro { min-height: 0; }
  .coastal-site .sea-lights { height: 30rem; }
}

.owners-video-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  box-shadow: 0 16px 46px rgb(0 0 0 / .2);
}

.owners-video-frame video {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--surface);
}

.owners-video-play {
  position: absolute;
  bottom: clamp(.9rem, 3vw, 1.75rem);
  left: clamp(.9rem, 3vw, 1.75rem);
  box-shadow: 0 4px 26px rgb(0 0 0 / .35);
  cursor: pointer;
}

@media (max-width: 47.99rem) {
  #owners .owners-video { order: 2; }
}

.coastal-site .owners-photo:has(img),
.coastal-site .owners-photo img {
  aspect-ratio: auto;
}

.coastal-site .owners-photo img { height: auto; }
