/* Dedicated About page — built to sit alongside base.css and menu.css. */

body.about-page {
  overflow-x: clip;
  background: var(--foam);
}

.about-main {
  overflow: hidden;
}

.about-hero {
  position: relative;
  padding: 230px 0 82px;
  color: var(--white);
  background:
    radial-gradient(circle at 88% 6%, rgb(35 173 242 / 18%), transparent 29rem),
    linear-gradient(120deg, #07101b 0%, #080b10 55%, #06121e 100%);
  border-bottom: 1px solid rgb(52 80 108 / 75%);
}

.about-hero::before {
  position: absolute;
  top: 0;
  right: max(22px, calc((100vw - 1200px) / 2));
  width: min(32vw, 390px);
  height: 100%;
  content: "";
  pointer-events: none;
  opacity: 0.6;
  background: repeating-linear-gradient(
    90deg,
    transparent 0,
    transparent 27px,
    rgb(101 199 255 / 8%) 28px,
    transparent 29px
  );
  mask-image: linear-gradient(to bottom, transparent, black 23%, black 80%, transparent);
}

.about-hero .wrap {
  position: relative;
  z-index: 1;
}

.about-eyebrow,
.about-section-label h2 {
  margin: 0;
  color: #65c7ff;
  font-family: Manrope, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  line-height: 1.35;
  text-transform: uppercase;
}

.about-hero h1 {
  max-width: 820px;
  margin: 18px 0 34px;
  font-family: Manrope, sans-serif;
  font-size: clamp(3.4rem, 7vw, 6.85rem);
  font-weight: 500;
  letter-spacing: -0.055em;
  line-height: 0.94;
}

/* base.css styles all navs as a full-width header navigation; reset that here. */
.about-jump {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  width: auto;
  height: auto;
  gap: 9px 24px;
  max-width: 850px;
  color: #c6d7ea;
  font-family: Manrope, sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
}

.about-jump a {
  position: relative;
  padding: 7px 0;
  transition: color 0.2s ease;
}

.about-jump a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  left: 0;
  height: 1px;
  content: "";
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.about-jump a:hover,
.about-jump a:focus-visible {
  color: var(--white);
}

.about-jump a:hover::after,
.about-jump a:focus-visible::after {
  transform: scaleX(1);
}

.about-video {
  position: relative;
  width: min(100%, 420px);
  aspect-ratio: 9 / 16;
  margin: 28px auto 0;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #28465d;
  border-radius: 20px;
  background: #050a10 url("/assets/pool-about-v15-desktop.jpg") center / contain no-repeat;
  pointer-events: none;
}

.about-video-canvas {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
  opacity: 0;
}

.about-video[data-playback-state="playing"] .about-video-canvas,
.about-video[data-playback-state="paused"] .about-video-canvas {
  opacity: 1;
}

.about-video-status {
  max-width: 420px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.85rem;
  line-height: 1.5;
}

.about-video-status[hidden] {
  display: none;
}

.about-section {
  position: relative;
  padding: 112px 0;
  scroll-margin-top: 156px;
  background: var(--foam);
}

.about-section + .about-section {
  border-top: 1px solid #202d3d;
}

.about-section:nth-of-type(odd) {
  background: #0a1018;
}

.about-section-grid {
  display: grid;
  grid-template-columns: minmax(200px, 0.64fr) minmax(0, 1.36fr);
  gap: clamp(48px, 9vw, 140px);
}

.about-section-label {
  position: relative;
  padding-top: 8px;
}

.about-section-label::before {
  display: block;
  width: 42px;
  height: 2px;
  margin-bottom: 18px;
  content: "";
  background: var(--aqua);
}

.about-section-label h2 {
  color: #b9cee5;
}

.about-section-content {
  min-width: 0;
}

.about-section-content > p {
  max-width: 720px;
  margin: 0 0 20px;
  color: var(--muted);
}

.about-section-content > p:last-child {
  margin-bottom: 0;
}

.about-section-content .about-tagline {
  max-width: 790px;
  margin-top: -7px;
  margin-bottom: 28px;
  color: var(--ink);
  font-family: Manrope, sans-serif;
  font-size: clamp(1.68rem, 2.65vw, 2.65rem);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.14;
}

.about-construction {
  max-width: 790px;
  margin-top: 48px;
  border-top: 1px solid #2a3b4d;
}

.about-construction h3,
.about-commitment h3 {
  margin: 0;
  color: var(--white);
  font-family: Manrope, sans-serif;
  font-size: clamp(1.42rem, 2.15vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.about-construction h3 {
  padding: 0 0 23px;
  transform: translateY(-12px);
}

.about-step {
  overflow: clip;
  border-bottom: 1px solid #2a3b4d;
  background: rgb(10 17 27 / 62%);
  transition: background 0.25s ease;
}

.about-step[open] {
  background: #102031;
}

.about-step summary {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 75px;
  padding: 14px 22px;
  cursor: pointer;
  color: var(--white);
  font-family: Manrope, sans-serif;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  list-style: none;
}

.about-step summary::-webkit-details-marker {
  display: none;
}

.about-step summary::after {
  flex: 0 0 auto;
  margin-left: auto;
  width: 9px;
  height: 9px;
  content: "";
  border-right: 1px solid #75cfff;
  border-bottom: 1px solid #75cfff;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.2s ease;
}

.about-step[open] summary::after {
  transform: rotate(225deg) translate(-2px, -1px);
}

.about-step-index {
  color: var(--aqua);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.about-step-title {
  min-width: 0;
}

.about-step-copy {
  padding: 0 58px 24px 85px;
}

.about-step-copy p {
  max-width: 610px;
  margin: 0 0 12px;
  color: #b1c0d2;
  font-size: 0.95rem;
}

.about-step-copy p:last-child {
  margin-bottom: 0;
}

.about-step summary:focus-visible {
  outline: 2px solid #65c7ff;
  outline-offset: -4px;
}

.about-commitment {
  max-width: 790px;
  margin-top: 40px;
  padding: clamp(27px, 4vw, 43px);
  border: 1px solid #28465d;
  border-left: 3px solid var(--aqua);
  background: linear-gradient(135deg, #102437, #0d1826);
}

.about-commitment h3 {
  margin-bottom: 18px;
}

.about-commitment p {
  max-width: 650px;
  margin: 0 0 15px;
  color: #c1d0e0;
}

.about-commitment p:last-child {
  margin-bottom: 0;
}

.about-contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 35px;
}

.about-contact-actions .btn {
  min-height: 52px;
  padding: 14px 23px;
}

@media (max-width: 850px) {
  .about-hero {
    padding-top: 194px;
    padding-bottom: 66px;
  }

  .about-section {
    padding: 84px 0;
    scroll-margin-top: 145px;
  }

  .about-section-grid {
    grid-template-columns: 1fr;
    gap: 31px;
  }

  .about-section-label {
    padding-top: 0;
  }
}

@media (max-width: 540px) {
  .about-hero {
    padding-top: 158px;
    padding-bottom: 52px;
  }

  .about-hero h1 {
    margin-top: 15px;
    margin-bottom: 26px;
    font-size: clamp(3rem, 15vw, 4.5rem);
  }

  .about-jump {
    gap: 7px 17px;
    font-size: 0.7rem;
    letter-spacing: 0.045em;
  }

  .about-video {
    margin-top: 22px;
    border-radius: 16px;
    background-image: url("/assets/pool-about-v15-mobile.jpg");
  }

  .about-section {
    padding: 70px 0;
    scroll-margin-top: 118px;
  }

  .about-section-content .about-tagline {
    font-size: 1.68rem;
  }

  .about-construction {
    margin-top: 37px;
  }

  .about-step summary {
    gap: 10px;
    min-height: 70px;
    padding: 13px 15px;
    font-size: 0.92rem;
  }

  .about-step-copy {
    padding: 0 20px 21px 62px;
  }

  .about-commitment {
    margin-top: 30px;
    padding: 25px 21px;
  }
}
