/* Dream Pools — shared stylesheet */

:root {
  --paper: #F8F6F1;
  --ink: #142D2C;
  --evergreen: #173C38;
  --footer: #112C29;
  --pale: #DCE8E0;
  --sand: #CEAD7B;
  --muted: #4F5E5C;
  --line: #D9D5CB;
  --white: #FFFFFF;
  --serif: Georgia, "Times New Roman", serif;
  --sans: Arial, Helvetica, sans-serif;
  --max: 1296px;
  --gutter: clamp(20px, 4vw, 60px);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.6;
}

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

a {
  color: var(--evergreen);
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: normal;
  line-height: 1.15;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
}

h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
}

h3 {
  font-size: 1.45rem;
}

p {
  margin: 0 0 1em;
}

:focus-visible {
  outline: 3px solid var(--sand);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  background: var(--evergreen);
  color: var(--white);
  padding: 10px 16px;
  z-index: 100;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.75rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.85em 1.3em;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: bold;
  text-decoration: none;
  border: 1px solid var(--evergreen);
  border-radius: 2px;
  background: var(--evergreen);
  color: var(--white);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn:hover {
  background: var(--footer);
}

.btn-light {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--paper);
}

.btn-light:hover {
  background: var(--white);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

.arrow::after {
  content: "\2192";
}

/* ---------- Header ---------- */

.site-header {
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 78px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.75rem;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 36px;
}

.site-nav ul {
  display: flex;
  gap: 36px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a:not(.btn) {
  color: var(--ink);
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.site-nav a:not(.btn):hover {
  border-bottom-color: var(--sand);
}

.site-nav a[aria-current="page"] {
  font-weight: bold;
  border-bottom-color: var(--ink);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--ink);
  color: var(--ink);
  font: bold 0.9rem var(--sans);
  padding: 8px 14px;
  cursor: pointer;
}

/* ---------- Home hero: interactive pool ---------- */

.hero {
  position: relative;
  height: calc(100svh - 79px);
  min-height: 520px;
  max-height: 980px;
  background: #E3D8C4;
  color: var(--white);
  overflow: hidden;
  isolation: isolate;
}

.hero-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  cursor: grab;
  touch-action: pan-y;
  transition: opacity 0.9s ease;
}

.hero-canvas.is-dragging {
  cursor: grabbing;
}

/* Shown over the photo when WebGL is unavailable */
.hero-title {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--gutter);
  background: rgba(17, 44, 41, 0.5);
}

.hero .eyebrow {
  color: var(--white);
}

.hero h1 {
  font-size: clamp(3.2rem, 12vw, 9rem);
  line-height: 1;
  margin: 0;
}

.hero h1 em {
  color: var(--sand);
}

.hero-hint {
  position: absolute;
  left: 50%;
  bottom: clamp(48px, 9vh, 88px);
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(8, 44, 56, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  font-size: 0.72rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  transform: translateX(-50%);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero-hint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--white);
  animation: hint-pulse 1.8s ease-out infinite;
}

@keyframes hint-pulse {
  from {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  to {
    box-shadow: 0 0 0 12px rgba(255, 255, 255, 0);
  }
}

/* WebGL is running: the pool replaces the photo and the title is painted on
   the pool floor, so the text version stays only for screen readers. */
.hero.is-live .hero-canvas {
  opacity: 1;
}

.hero.is-live .hero-fallback {
  visibility: hidden;
}

.hero.is-live .hero-title {
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.hero.is-live .hero-hint {
  display: flex;
}

.hero.has-touched .hero-hint {
  opacity: 0;
  transform: translate(-50%, 12px);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 12px;
}

/* ---------- Sections ---------- */

.section {
  padding: 64px 0;
}

.section-tight {
  padding: 40px 0;
}

.page-intro {
  padding: 56px 0 28px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}

.page-intro p {
  max-width: 46em;
  color: var(--muted);
  font-size: 1.1rem;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.text-link {
  font-weight: bold;
  color: var(--ink);
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
}

.lead {
  font-size: 1.15rem;
  max-width: 48em;
}

/* ---------- Home service cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}

.service-card img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
}

.service-card h3 {
  display: flex;
  justify-content: space-between;
  margin: 14px 0 6px;
}

.service-card h3::after {
  content: "\2192";
  font-family: var(--sans);
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.service-card:hover h3::after {
  transform: translateX(4px);
}

.service-card p {
  color: var(--muted);
  margin: 0;
}

.about-strip {
  background: var(--pale);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 28px;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  font-weight: normal;
}

/* ---------- Services ---------- */

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.service-block img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
  width: 100%;
  margin-bottom: 20px;
}

.service-block h3 {
  font-size: 1.2rem;
  margin-top: 1.4em;
}

.panel {
  background: var(--pale);
  padding: 36px;
  margin-top: 48px;
}

.stages {
  list-style: none;
  counter-reset: stage;
  padding: 0;
  margin: 24px 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 24px;
}

.stages li {
  counter-increment: stage;
  border-top: 1px solid #A9BFB2;
  padding: 14px 0 20px;
}

.stages li::before {
  content: counter(stage, decimal-leading-zero);
  font-size: 0.75rem;
  color: var(--muted);
  margin-right: 12px;
}

.extras {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
}

.extras li {
  background: var(--paper);
  padding: 20px;
  font-family: var(--serif);
  font-size: 1.2rem;
}

/* ---------- Designs ---------- */

.layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.layout-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 14px;
  margin: 0;
}

.layout-card a {
  display: block;
  height: 220px;
  background: var(--white);
}

.layout-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.layout-card figcaption {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 10px;
}

.layout-card figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.3rem;
  font-weight: normal;
}

.layout-card figcaption span {
  font-size: 0.875rem;
  color: var(--muted);
}

.considerations {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 24px 0 48px;
}

.considerations li {
  border-top: 2px solid var(--sand);
  padding-top: 12px;
  font-weight: bold;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.gallery figure {
  margin: 0;
}

.gallery .feature img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
}

.gallery .framed {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 8px;
}

.gallery .framed img {
  margin: 0 auto;
}

.gallery figcaption {
  font-size: 0.9rem;
  font-weight: bold;
  margin-top: 8px;
}

.cta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  border-top: 1px solid var(--line);
  margin-top: 48px;
  padding-top: 24px;
}

/* ---------- About ---------- */

.quotes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.quote {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 28px;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.quote::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3rem;
  line-height: 0.6;
  color: var(--sand);
  margin-bottom: 10px;
}

.quote blockquote {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 1.05rem;
  flex: 1;
}

.quote blockquote p:last-child {
  margin-bottom: 0;
}

.quote figcaption {
  font-size: 0.85rem;
  color: var(--muted);
}

.note {
  font-size: 0.875rem;
  color: var(--muted);
  margin-top: 16px;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

.finance {
  background: var(--pale);
  padding: 36px;
}

.client-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.client-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

/* ---------- Contact ---------- */

.contact-grid {
  display: grid;
  grid-template-columns: 5fr 8fr;
  gap: 28px;
  align-items: start;
}

.contact-card {
  background: var(--evergreen);
  color: var(--white);
}

.contact-card .inner {
  padding: 32px;
}

.contact-card h2 {
  font-size: 1.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  padding-bottom: 16px;
}

.contact-card .eyebrow {
  color: #C7D6CF;
  margin: 24px 0 6px;
}

.contact-card a {
  color: var(--white);
}

.big-phone {
  font-family: var(--serif);
  font-size: 1.9rem;
  text-decoration: none;
}

.contact-card address {
  font-style: normal;
  font-size: 1.1rem;
}

.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  padding: 32px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.field {
  margin-bottom: 20px;
}

.field label {
  display: block;
  font-weight: bold;
  font-size: 0.95rem;
  margin-bottom: 6px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: 1rem var(--sans);
  color: var(--ink);
  padding: 12px;
  border: 1px solid #9DA9A6;
  border-radius: 2px;
  background: var(--white);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 3px solid var(--sand);
  outline-offset: 1px;
  border-color: var(--evergreen);
}

.field input[aria-invalid="true"] {
  border-color: #A3271F;
}

.field.short input {
  max-width: 220px;
}

.help {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 4px 0 0;
}

.error {
  color: #A3271F;
  font-weight: bold;
  font-size: 0.9rem;
  margin: 6px 0 0;
}

.success {
  background: var(--pale);
  border-left: 4px solid var(--evergreen);
  padding: 24px;
  margin-top: 24px;
}

.success h3 {
  font-size: 1.4rem;
}

.success dl {
  margin: 16px 0;
}

.success dt {
  font-weight: bold;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-top: 10px;
}

.success dd {
  margin: 2px 0 0;
  white-space: pre-wrap;
}

[hidden] {
  display: none !important;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--footer);
  color: #D5DFDB;
  padding: 40px 0;
  margin-top: 64px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 32px;
  align-items: start;
}

.footer-brand {
  font-family: var(--serif);
  font-size: 1.6rem;
  color: var(--white);
  text-decoration: none;
}

.site-footer ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
}

.site-footer a {
  color: #E9EFEC;
}

.site-footer ul a {
  text-decoration: none;
}

.site-footer ul a:hover,
.site-footer ul a[aria-current="page"] {
  text-decoration: underline;
}

.footer-contact {
  text-align: right;
}

.footer-contact a {
  font-weight: bold;
  font-size: 1.15rem;
  text-decoration: none;
}

.footer-contact address {
  font-style: normal;
  font-size: 0.9rem;
}

.copyright {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  margin-top: 28px;
  padding-top: 16px;
  font-size: 0.8rem;
}

/* ---------- Responsive ---------- */

@media (max-width: 1000px) {
  .site-nav ul {
    gap: 22px;
  }

  .stages,
  .considerations {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }

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

@media (max-width: 860px) {
  .menu-toggle {
    display: block;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
  }

  .site-nav.open {
    display: flex;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 0;
  }

  .site-nav li a:not(.btn) {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav .btn {
    margin-top: 16px;
    justify-content: center;
  }

  .header-cta-mobile {
    display: inline-flex;
  }

  .two-col,
  .split,
  .contact-grid {
    grid-template-columns: 1fr;
  }

  .card-grid,
  .layout-grid,
  .stats {
    grid-template-columns: 1fr;
  }

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

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

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

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand {
    font-size: 1.35rem;
  }

  .form-row,
  .quotes,
  .stages,
  .considerations {
    grid-template-columns: 1fr;
  }

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

  .panel,
  .finance,
  .form-card,
  .contact-card .inner {
    padding: 22px;
  }

  .btn-row .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
}



/* =====================================================================
   Cinematic scroll: every scene is a camera shot, and scrolling flies
   the camera from one shot to the next. Without JavaScript the scenes
   simply stack down the page.
   ===================================================================== */

.story-page {
  background: linear-gradient(#1C8FA3, #0A4660 35%, #04182A);
  background-attachment: fixed;
  color: #EAF6F7;
}

.deep-canvas,
.bubble-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.deep-canvas {
  z-index: 0;
}

.bubble-canvas {
  z-index: 45;
  pointer-events: none;
}

.svg-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.story-page main,
.story-page .site-footer {
  position: relative;
  z-index: 1;
}

/* ---------- Header above and below the water ---------- */

.site-header {
  transition: background 0.4s ease, border-color 0.4s ease;
}

.site-nav a.is-active {
  border-bottom-color: var(--sand);
}

.is-under .site-header {
  background: rgba(5, 32, 46, 0.62);
  border-bottom-color: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.is-under .brand,
.is-under .site-nav a:not(.btn) {
  color: var(--white);
}

.is-under .site-nav .btn {
  background: var(--sand);
  border-color: var(--sand);
  color: var(--ink);
}

.is-under .menu-toggle {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ---------- Scenes (stacked fallback) ---------- */

.stage {
  position: relative;
}

.scene {
  position: relative;
  padding: 12vh 0;
}

.scene-surface {
  padding: 0;
}

.scene-surface .hero {
  height: calc(100svh - 79px);
}

/* ---------- Scenes in the camera stage ---------- */

html.cinema {
  scroll-snap-type: y mandatory;
}

.cinema .site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
}

.cinema .stage {
  position: fixed;
  top: 79px;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  perspective: 1100px;
  perspective-origin: 50% 45%;
}

.cinema .scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 0;
  opacity: 0;
  pointer-events: none;
  backface-visibility: hidden;
  will-change: transform, opacity;
}

.cinema .scene.is-current {
  pointer-events: auto;
}

.cinema .scene-surface {
  display: block;
  opacity: 1;
}

.cinema .scene-inner {
  max-height: 100%;
  overflow-y: auto;
  padding-top: 28px;
  padding-bottom: 28px;
  scrollbar-width: none;
}

.cinema .scene-inner::-webkit-scrollbar {
  display: none;
}

.cinema [data-depth] {
  will-change: transform;
}

.snap {
  height: var(--snap-h, 100vh);
  scroll-snap-align: start;
}

.cinema .request {
  scroll-snap-align: start;
}

.cinema .site-footer {
  scroll-snap-align: end;
}

/* ---------- The dive from the surface ---------- */

.dive {
  --dive: 0;
}

.cinema .scene-surface .hero {
  height: 100%;
  min-height: 0;
  max-height: none;
  opacity: calc(1 - clamp(0, (var(--dive) - 0.72) * 4, 1));
}


.cinema .scene-surface .hero-fallback {
  transform: scale(calc(1 + var(--dive) * 0.6));
}

/* the flash of breaking through the surface */
.scene-surface .hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(200, 248, 252, 0.9), rgba(70, 180, 200, 0.55) 60%, rgba(10, 70, 95, 0.5));
  opacity: clamp(0, min((var(--dive) - 0.58) * 5, (0.97 - var(--dive)) * 4), 0.9);
}

.scene-surface .hero-hint,
.dive-cue {
  opacity: calc(1 - var(--dive) * 6);
}

.dive-cue {
  position: absolute;
  left: 50%;
  bottom: 6px;
  z-index: 2;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: bold;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}

.dive-cue-line {
  width: 1px;
  height: 18px;
  background: var(--ink);
  transform-origin: top;
  animation: cue-drop 1.6s ease-in-out infinite;
}

@keyframes cue-drop {
  0% { transform: scaleY(0); }
  50% { transform: scaleY(1); }
  100% { transform: scaleY(1); opacity: 0; }
}

/* ---------- Depth gauge ---------- */

.gauge {
  --depth: 0;
  position: fixed;
  right: clamp(14px, 2vw, 30px);
  top: calc(50% + 40px);
  z-index: 44;
  width: 30px;
  height: min(54vh, 460px);
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.is-under .gauge {
  opacity: 1;
  pointer-events: auto;
}

.at-footer .gauge {
  opacity: 0;
  pointer-events: none;
}

.gauge-readout {
  position: absolute;
  right: 0;
  bottom: calc(100% + 14px);
  margin: 0;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.14em;
  white-space: nowrap;
  color: var(--white);
}

.gauge-value {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: normal;
  letter-spacing: 0;
}

.gauge-track {
  position: absolute;
  inset: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-right: 1px solid rgba(255, 255, 255, 0.35);
}

.gauge-track::before {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 6px;
  height: calc(100% + 1px);
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.45) 0 1px, transparent 1px 12.5%);
}

.gauge-track li {
  position: absolute;
  right: 0;
  top: calc(var(--at, 0) * 100%);
}

.gauge-track a {
  position: absolute;
  right: -4px;
  top: -9px;
  width: 34px;
  height: 18px;
  display: block;
}

.gauge-track a::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 8px;
  width: 14px;
  height: 2px;
  background: rgba(255, 255, 255, 0.7);
  transition: width 0.3s ease, background 0.3s ease;
}

.gauge-track a.is-active::after,
.gauge-track a:hover::after {
  width: 24px;
  background: var(--sand);
}

.gauge-label {
  position: absolute;
  right: 40px;
  top: 50%;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(5, 32, 46, 0.85);
  transform: translate(8px, -50%);
  white-space: nowrap;
  font-size: 0.7rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--white);
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.gauge-track a:hover .gauge-label,
.gauge-track a:focus-visible .gauge-label {
  opacity: 1;
  transform: translate(0, -50%);
}

.gauge-marker {
  position: absolute;
  right: -6px;
  top: calc(var(--depth) * 100%);
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--sand);
  box-shadow: 0 0 0 4px rgba(206, 173, 123, 0.25), 0 0 18px rgba(206, 173, 123, 0.8);
  transform: translateY(-50%);
}

/* ---------- Build ---------- */

.build-grid {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(28px, 4vw, 60px);
  align-items: center;
}

.build-copy h2 {
  font-size: clamp(1.7rem, min(3.4vw, 5.4vh), 3rem);
  line-height: 1.08;
}

.build-meter {
  height: 2px;
  margin: 18px 0 14px;
  background: rgba(255, 255, 255, 0.18);
}

.build-meter span {
  display: block;
  height: 100%;
  background: var(--sand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.build-stages {
  list-style: none;
  margin: 0;
  padding: 0;
}

.build-stages li {
  display: grid;
  grid-template-columns: 44px 1fr;
  padding: 5px 0;
  opacity: 0.4;
  transition: opacity 0.4s ease;
}

.build-stages .num {
  font-family: var(--serif);
  font-size: 1.05rem;
  color: #A6E1E8;
}

.build-stages strong {
  font-size: 1rem;
}

.build-stages p {
  max-height: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  color: rgba(234, 246, 247, 0.85);
  transition: max-height 0.5s ease, opacity 0.5s ease, margin 0.5s ease;
}

.build-stages li.is-done {
  opacity: 0.7;
}

.build-stages li.is-done .num,
.build-stages li.is-active .num {
  color: var(--sand);
}

.build-stages li.is-active {
  opacity: 1;
}

.build-stages li.is-active strong {
  font-size: 1.15rem;
}

.build-stages li.is-active p {
  max-height: 7em;
  margin-top: 4px;
  opacity: 1;
}

.build-visual {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  background: #F3F1EA;
  box-shadow: 0 40px 80px -30px rgba(0, 10, 20, 0.7);
}

.build-svg {
  display: block;
  width: 100%;
  height: auto;
}

.build-caption {
  position: absolute;
  left: 18px;
  top: 16px;
  margin: 0;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(18, 63, 77, 0.88);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.build-caption-num {
  color: var(--sand);
  margin-right: 4px;
}

.bstep {
  opacity: 0;
  transform-box: fill-box;
  transition: opacity 0.7s ease, transform 0.9s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.bstep.grow-down {
  transform-origin: 50% 0;
  transform: scaleY(0);
}

.bstep.rise {
  transform-origin: 50% 100%;
  transform: translateY(14px) scaleY(0.3);
}

.bstep.drop {
  transform: translateY(-26px);
}

.bstep.is-on {
  opacity: 1;
  transform: none;
}

.bstep .fill-up {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  transform: scaleY(0);
  transition: transform 1.8s cubic-bezier(0.3, 0.7, 0.2, 1) 0.2s;
}

.bstep.is-on .fill-up {
  transform: none;
}

.b-wave {
  animation: wave-slide 2.6s linear infinite;
}

@keyframes wave-slide {
  to { transform: translateX(-80px); }
}

/* ---------- The bottom and the form ---------- */

.bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 24px 56px;
  margin-top: 12px;
}

.bottom-row .eyebrow {
  margin-bottom: 4px;
  color: #A6E1E8;
}

.stage .bottom-row .big-phone {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: var(--white);
  text-decoration: none;
}

.bottom-row address {
  font-style: normal;
  font-size: 1.05rem;
}

.request {
  position: relative;
  z-index: 2;
  padding: 14vh 0 18vh;
}

.request .wrap {
  max-width: 860px;
}

.request .form-card {
  color: var(--ink);
  border: 0;
  border-radius: 22px;
  box-shadow: 0 50px 90px -30px rgba(0, 10, 20, 0.8);
}

.request .form-card h2 {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}

.story-page .site-footer {
  margin-top: 0;
  background: rgba(3, 18, 28, 0.94);
}

/* ---------- Smaller screens ---------- */

@media (max-width: 900px) {
  .split-shot,
  .split-shot.flip,
  .about-cols,
  .finance-glass,
  .build-grid {
    grid-template-columns: 1fr;
  }

  .split-shot.flip .shot-photo {
    order: 0;
  }

  .split-shot {
    gap: 20px;
  }

  .shot-photo img {
    height: 30vh;
  }

  .about-cols {
    gap: 8px;
  }

  .build-grid {
    gap: 16px;
  }

  .build-visual {
    order: -1;
  }

  .build-stages li:not(.is-active) {
    display: none;
  }

  .mosaic {
    grid-template-columns: repeat(3, 1fr);
  }

  .mosaic figcaption {
    display: none;
  }
}

@media (max-width: 860px) {
  .is-under .site-nav {
    background: #062A3C;
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .is-under .site-nav li a:not(.btn) {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

@media (max-width: 760px) {
  .stage .wrap {
    padding-right: calc(var(--gutter) + 18px);
  }

  .gauge {
    right: 8px;
    width: 18px;
  }

  .gauge-label,
  .gauge-readout {
    display: none;
  }

  .stage .stats {
    grid-template-columns: 1fr;
  }

  .layout-fan {
    flex-direction: column;
    gap: 10px;
  }

  .fan-card {
    width: min(78vw, 300px);
    padding: 10px;
  }

  .fan-card img {
    height: 14vh;
  }

  .fan-card:nth-child(1) { rotate: -3deg; }
  .fan-card:nth-child(3) { rotate: 3deg; }

  .float-gallery img {
    height: 20vh;
  }

  .float-gallery figcaption {
    display: none;
  }

  .stage .lead {
    font-size: 1rem;
  }
}




/* ---------- Logo ---------- */

.brand,
.footer-brand {
  display: inline-block;
  line-height: 0;
}

.logo {
  display: block;
  width: auto;
  height: 40px;
}

.logo-light {
  display: none;
}

/* the light version takes over on the dark underwater header */
.is-under .logo-dark {
  display: none;
}

.is-under .logo-light {
  display: block;
}

.footer-brand .logo {
  height: 34px;
  margin-bottom: 14px;
}

@media (max-width: 1100px) {
  .logo { height: 32px; }
}

@media (max-width: 420px) {
  .logo { height: 27px; }
}

/* the scroll cue sits on the pale deck, so it stays dark inside the stage */
.stage a.dive-cue:not(.btn) {
  color: var(--ink);
}


/* ---------- Build player ---------- */

.build-meter span {
  transition: none;
}

.build-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.build-button {
  padding: 9px 20px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--white);
  font: bold 0.85rem/1.2 Arial, Helvetica, sans-serif;
  cursor: pointer;
}

.build-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.build-status {
  margin: 0;
  font-size: 0.82rem;
  color: #A6E1E8;
}

/* the depth gauge would sit on top of the content on narrow screens */
@media (max-width: 760px) {
  .gauge {
    display: none;
  }
}

/* =====================================================================
   Scene design system
   One type family that matches the logo, one left edge, one rule style.
   ===================================================================== */

.story-page {
  --serif: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --sans: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  --deep: #062634;
  --rule: rgba(255, 255, 255, 0.2);
  --soft: rgba(236, 247, 248, 0.82);
  font-family: var(--sans);
}

.story-page .btn,
.story-page input,
.story-page select,
.story-page textarea { font-family: var(--sans); }

.story-page .btn { border-radius: 6px; padding: 0.85em 1.5em; font-weight: 600; }
.story-page .btn-sand { background: var(--sand); border-color: var(--sand); color: var(--ink); }
.story-page .btn-sand:hover { background: #E2C698; }
.story-page .btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.55); color: var(--white); }
.story-page .btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }

.stage .wrap { padding-right: calc(var(--gutter) + 24px); }
.stage h2, .stage h3 { color: var(--white); font-family: var(--serif); }
.stage a:not(.btn) { color: #BFEAF0; }

.stage .display {
  max-width: 15em;
  margin: 0 0 0.4em;
  font-size: clamp(2.2rem, min(5.4vw, 8.6vh), 4.6rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.stage .title {
  margin: 0 0 0.7em;
  font-size: clamp(1.7rem, min(3.4vw, 5.6vh), 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.stage .lead {
  max-width: 32em;
  margin: 0 0 1.4em;
  font-size: clamp(1.02rem, min(1.45vw, 2.5vh), 1.3rem);
  font-weight: 400;
  line-height: 1.55;
  color: var(--soft);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ruled list, used wherever there are several points */
.rows { list-style: none; margin: 0 0 1.6em; padding: 0; }
.rows li { padding: clamp(10px, 1.9vh, 18px) 0; border-top: 1px solid var(--rule); font-size: clamp(0.98rem, 1.25vw, 1.15rem); }
.rows li:last-child { border-bottom: 1px solid var(--rule); }
.rows-head { margin: 0 0 14px; color: var(--soft); }

.more summary {
  display: inline-block;
  cursor: pointer;
  list-style: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #BFEAF0;
  text-decoration: underline;
  text-underline-offset: 5px;
}
.more summary::-webkit-details-marker { display: none; }
.more[open] summary { margin-bottom: 14px; }
.more p { font-size: 0.95rem; color: var(--soft); }

/* ---------- Opening statement ---------- */
.proof { display: grid; grid-template-columns: repeat(3, 1fr); list-style: none; margin: clamp(36px, 8vh, 90px) 0 0; padding: 0; border-top: 1px solid var(--rule); }
.proof li { display: flex; flex-direction: column; gap: 4px; padding: 20px 24px 0 0; }
.proof strong { font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; }
.proof span { color: var(--soft); font-size: 0.95rem; }

/* ---------- Numbers ---------- */
.stage .stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); margin: clamp(16px, 5vh, 56px) 0 0; }
.stat { border-top: 1px solid var(--rule); padding-top: 20px; }
.stat .figure { margin: 0; font-family: var(--serif); font-size: clamp(3.4rem, min(11vw, 22vh), 11rem); font-weight: 600; line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.stat .figure strong { font-weight: inherit; }
.stat .figure span { color: var(--sand); }
.stat p:last-child { margin: 12px 0 0; color: var(--soft); }

/* ---------- Concept: a three step process ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 64px); list-style: none; margin: clamp(24px, 6vh, 72px) 0 0; padding: 0; }
.steps li { position: relative; padding-top: 58px; }
.steps li::before { content: ""; position: absolute; left: 38px; right: calc(-1 * clamp(20px, 4vw, 64px)); top: 19px; height: 1px; background: var(--rule); }
.steps li:last-child::before { display: none; }
.steps li > span { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--sand); border-radius: 50%; color: var(--sand); }
.steps strong { display: block; margin-bottom: 6px; font-size: 1.3rem; font-weight: 600; }
.steps p { margin: 0; max-width: 22em; color: var(--soft); }

/* ---------- Photo and text, edge to edge ---------- */
.stage .bleed { margin: 0; }
.bleed img { width: 100%; height: 100%; object-fit: cover; }
.cinema .bleed { position: absolute; top: 0; bottom: 0; left: 0; width: 55%; }
.cinema .scene-split.flip .bleed { left: auto; right: 0; }
.cinema .scene-split { background: var(--deep); }
.cinema .scene-split .scene-inner { display: flex; justify-content: flex-end; }
.cinema .scene-split.flip .scene-inner { justify-content: flex-start; }
.cinema .split-copy { width: calc(45% - clamp(24px, 3.5vw, 56px)); }

/* ---------- Two columns ---------- */
.two-col { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(32px, 6vw, 100px); align-items: center; }
.two-col .rows { margin: 0; }

/* ---------- Layout sheets ---------- */
.sheets { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 32px); }
.sheets figure { display: flex; flex-direction: column; margin: 0; }
.sheets a { display: flex; align-items: center; justify-content: center; height: min(48vh, 440px); padding: 18px; border-radius: 8px; background: var(--white); }
.sheets img { width: 100%; height: 100%; object-fit: contain; }
.sheets figcaption { display: flex; justify-content: space-between; gap: 10px; padding-top: 14px; }
.sheets figcaption strong { font-weight: 600; }
.sheets figcaption span { color: var(--soft); font-size: 0.9rem; }

/* ---------- Photography ---------- */
.photo { position: relative; margin: 0; overflow: hidden; }
.photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1); }
.photo:hover img { transform: scale(1.04); }

.cinema .scene-gallery .scene-inner { position: absolute; inset: 0; padding: 0; overflow: hidden; }
.wall { display: grid; grid-template-columns: 7fr 5fr; grid-template-rows: minmax(0, 1fr) minmax(0, 1fr); gap: 4px; height: 100%; }
.wall figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 48px 24px 18px; background: linear-gradient(transparent, rgba(3, 22, 32, 0.8)); font-weight: 600; }

.mosaic { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(10px, 1.4vw, 20px); }
.mosaic .photo { overflow: visible; }
.mosaic img { height: auto; aspect-ratio: 4 / 3; border-radius: 6px; }
.mosaic .photo:hover img { transform: translateY(-4px); }
.mosaic figcaption { padding-top: 8px; font-size: 0.85rem; color: var(--soft); }

/* ---------- Testimonials ---------- */
.cinema .scene-quotes .scene-inner { text-align: center; }
.quote-deck { max-width: 56em; margin: 0 auto; }
.quote-stack { display: grid; }
.quote-stack .fq { grid-area: 1 / 1; align-self: center; margin: 0; }
.cinema .quote-stack .fq { opacity: 0; visibility: hidden; transition: opacity 0.6s ease, visibility 0.6s ease; }
.cinema .quote-stack .fq.is-shown { opacity: 1; visibility: visible; }
.fq blockquote { margin: 0; font-family: var(--serif); font-size: clamp(1.15rem, min(2.3vw, 3.9vh), 2rem); font-weight: 400; line-height: 1.5; }
.fq figcaption { margin-top: 8px; color: var(--sand); font-size: 0.95rem; }
.quote-controls { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 28px; }
.quote-btn { width: 44px; height: 44px; border: 1px solid var(--rule); border-radius: 50%; background: transparent; color: var(--white); font-size: 1.1rem; cursor: pointer; }
.quote-btn:hover { background: rgba(255, 255, 255, 0.12); }
.quote-count { margin: 0; font-variant-numeric: tabular-nums; }
.note { margin-top: 18px; font-size: 0.8rem; color: rgba(236, 247, 248, 0.6); }

/* ---------- Clients and financing ---------- */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; list-style: none; margin: 0; padding: 1px; background: var(--rule); }
.clients li { display: grid; place-items: center; min-height: clamp(64px, 13vh, 120px); padding: 12px; background: #0A3447; text-align: center; font-size: clamp(0.95rem, 1.35vw, 1.2rem); font-weight: 600; }
.clients .yours a { color: var(--sand); text-underline-offset: 6px; }
.finance-band { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: clamp(20px, 3vw, 48px); margin-top: clamp(18px, 4vh, 44px); }
.finance-figure { margin: 0; font-family: var(--serif); font-size: clamp(3rem, min(7vw, 13vh), 6.5rem); font-weight: 600; line-height: 1; letter-spacing: -0.04em; color: var(--sand); }
.finance-band h3 { margin: 0 0 4px; }
.finance-band p { margin-bottom: 8px; }

/* ---------- The bottom ---------- */
.stage .bottom-row { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; align-items: start; gap: clamp(28px, 6vw, 96px); }
.bottom-row .label { margin: 0 0 8px; color: var(--soft); font-size: 0.95rem; }
.stage .bottom-row .big-phone { font-family: var(--serif); font-weight: 400; }

/* ---------- Quieter chrome ---------- */
.gauge-readout, .chapter-tag { display: none; }
.stage .build-copy h2 { font-weight: 600; letter-spacing: -0.02em; }

/* never let a swipe sail past the build */
.snaps #build { scroll-snap-stop: always; }

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .proof, .two-col, .steps, .finance-band { grid-template-columns: 1fr; }
  .proof { margin-top: 28px; }
  .proof li { padding: 12px 0; border-bottom: 1px solid var(--rule); }
  .two-col { gap: 8px; }
  .steps { gap: 18px; }
  .steps li { padding: 0 0 0 56px; }
  .steps li::before { display: none; }
  .cinema .bleed, .cinema .scene-split.flip .bleed { left: 0; right: 0; bottom: auto; width: 100%; height: 28%; }
  .cinema .scene-split .scene-inner, .cinema .scene-split.flip .scene-inner { position: absolute; top: 28%; bottom: 0; left: 0; right: 0; max-height: none; display: block; }
  .cinema .split-copy { width: 100%; }
  .stage .stats { grid-template-columns: 1fr; gap: 12px; }
  .stat .figure { font-size: clamp(3rem, 11vh, 5.5rem); }
  .sheets { grid-template-columns: 1fr; gap: 8px; }
  .sheets a { height: 17vh; padding: 8px; }
  .sheets figcaption { padding-top: 4px; }
  .wall { grid-template-columns: 1fr; grid-template-rows: repeat(4, minmax(0, 1fr)); }
  .clients { grid-template-columns: 1fr 1fr; }
  .clients li { min-height: 56px; }
  .finance-band { gap: 8px; }
  .mosaic { grid-template-columns: repeat(3, 1fr); }
  .mosaic figcaption { display: none; }
  .stage .bottom-row { grid-template-columns: 1fr; gap: 18px; }
}

/* the big figures: number and plus sign sit on one line */
.stage .stat .figure strong,
.stage .stat .figure span {
  display: inline;
  margin: 0;
  font: inherit;
  letter-spacing: inherit;
}

.stage .stat .figure strong {
  color: var(--white);
}

.stage .stat .figure span {
  color: var(--sand);
}

/* one quote fades out before the next fades in */
.cinema .quote-stack .fq { transition-duration: 0.35s; }
.cinema .quote-stack .fq.is-shown { transition-delay: 0.35s; }

/* ---------- No header: every screen uses the full height ---------- */

.story-page .scene-surface .hero {
  height: 100svh;
  max-height: none;
}

.cinema .scene-surface .hero {
  height: 100%;
}

.cinema .stage {
  top: 0;
}

.story-page .gauge {
  top: 55%;
}

.hero-logo {
  display: block;
  width: min(80vw, 640px);
  height: auto;
}

/* on phones the hint sits clear of the depth marker */
@media (max-width: 500px) {
  .scene-surface .hero-hint {
    bottom: 108px;
    white-space: nowrap;
  }
}
