/* V.O. Pools: "the pool in section". The page is built like the section drawing on a pool plan: the waterline (stamped coping over a row of dark six-inch tile, straight out of their own photographs) is the edge between moments, and the build is drawn as one pool cut in half, every layer a phase with John's mark on it, because "onsite for ALL phases" is the whole business. */
:root {
  /* colour, sampled from home-slider-pool.jpg (ffmpeg area average) and read off the logo */
  --tile: #233033;      /* waterline tile, sampled 47 53 53, deepened toward their blue */
  --tile-2: #2E3D41;    /* the same tile in sun */
  --grout: #4E6266;
  --water: #4CB5BC;     /* the turquoise of the shallow water */
  --royal: #1F3F91;     /* the V.O. in their logo */
  --cedar: #8A4B2C;     /* the board-on-board fence in sun */
  --deck: #E2C9AE;      /* stamped concrete deck, sampled 222 187 155, lifted */
  --plaster: #F3F6F5;   /* white plaster finish: a cool ground, not cream */
  --ink: #152022;
  --muted: #45534F;
  --rule: #C9D3D1;

  /* type: Antonio is the tall monoline POOLS of their own logo, set as headlines; Readex Pro is round and open,
     like the free-form edge of their pools, and holds up at 18 px on a phone in the sun */
  --display: "Antonio", "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: "Readex Pro", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --step-hero: clamp(2.5rem, 1.55rem + 3.4vw, 4.25rem);  /* 40 on a phone, 68 on desktop */
  --step-h2: clamp(2rem, 1.55rem + 1.6vw, 2.75rem);      /* 32 to 44 */
  --step-quote: clamp(1.5rem, 1.15rem + 1.2vw, 2.125rem);
  --step-body: 1.125rem;                                  /* 18 */
  --step-small: 0.9375rem;

  --gutter: 16px;
  --wrap: 1200px;
  --header-h: 60px;
  --space: clamp(64px, 40px + 6vw, 128px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body { margin: 0; background: var(--plaster); color: var(--ink); font: 400 var(--step-body)/1.6 var(--body); }
img, svg { display: block; max-width: 100%; height: auto; }
figure, blockquote { margin: 0; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; line-height: 1.04; text-wrap: balance; }
h2 { font-size: var(--step-h2); }
a { color: var(--royal); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--royal); outline-offset: 3px; }
.on-dark :focus-visible { outline-color: #fff; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--gutter); top: -80px; z-index: 100; padding: 12px 16px; background: var(--ink); color: #fff; font-weight: 600; }
.skip:focus { top: 8px; }

/* ---------- the waterline: coping over a row of tile ---------- */
.waterline {
  height: 26px;
  background:
    linear-gradient(to bottom, var(--deck) 0 9px, #A8957C 9px 10px, transparent 10px),
    linear-gradient(to bottom, transparent 0 24px, var(--grout) 24px),
    repeating-linear-gradient(90deg, var(--grout) 0 2px, var(--tile-2) 2px 16px);
}

/* ---------- header: sticky, under 64 px, logo left, call right, menu between ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; border-bottom: 1px solid var(--rule); }
.bar { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); height: var(--header-h); display: flex; align-items: center; gap: 8px; }
.brand { display: flex; align-items: center; min-height: 44px; margin-right: auto; }
.brand img { height: 30px; width: auto; }
.menu-btn { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--rule); background: #fff; color: var(--ink); cursor: pointer; }
.js .menu-btn { display: inline-flex; }
.menu-btn svg { width: 22px; height: 22px; }
.nav ul { list-style: none; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--royal); text-decoration: underline; }
.nav a[aria-current="page"] { color: var(--royal); text-decoration: underline; text-decoration-thickness: 2px; }
.call { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--tile); color: #fff; font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap; }
.call svg { width: 18px; height: 18px; flex: none; }
.call:hover { background: var(--royal); }

@media (max-width: 479px) {
  .call-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1023px) {
  html:not(.js) .bar { height: auto; flex-wrap: wrap; padding-block: 8px; }
  html:not(.js) .nav { order: 3; width: 100%; }
  .js .nav { display: none; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--rule); padding: 4px var(--gutter) 16px; box-shadow: 0 18px 30px rgba(21, 32, 34, 0.18); }
  .js .nav.is-open { display: block; }
  .nav a { display: flex; align-items: center; min-height: 52px; font-size: 1.125rem; border-bottom: 1px solid var(--rule); }
}
@media (min-width: 1024px) {
  :root { --header-h: 62px; }
  .brand img { height: 34px; }
  .js .menu-btn { display: none; }
  .nav, .js .nav { display: block; }
  .nav ul { display: flex; gap: 2px; }
  .nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: 1rem; }
  .call { margin-left: 8px; }
}

/* ---------- hero: the photograph first, the headline on the fence, the waterline under it ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1fr); background: var(--tile); color: #fff; }
.hero-pic { display: block; position: relative; }
.hero-pic img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 40% 50%; }
.hero h1 { padding: 26px var(--gutter) 0; font-size: var(--step-hero); font-weight: 700; letter-spacing: 0.002em; }
.h1-in { display: block; max-width: 18ch; }
.hero-band { padding: 20px var(--gutter) 40px; display: grid; gap: 20px; }
.hero-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.btn-call { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 22px; background: var(--water); color: var(--ink); font-weight: 600; font-size: 1.0625rem; text-decoration: none; }
.btn-call svg { width: 20px; height: 20px; flex: none; }
.btn-call:hover { background: #fff; }
.hero-act .quiet { color: #fff; min-height: 44px; display: inline-flex; align-items: center; }
.deck-copy { max-width: 58ch; color: #E4ECEA; }
.license { margin-top: 10px; font-size: var(--step-small); color: #B9CBC8; }

@media (min-width: 900px) {
  .hero-pic img { aspect-ratio: auto; height: clamp(440px, 62vh, 640px); object-position: 50% 58%; }
  .hero-pic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(24, 14, 9, 0.76) 0%, rgba(24, 14, 9, 0.52) 36%, rgba(24, 14, 9, 0) 62%); }
  .hero-pic { grid-row: 1; grid-column: 1; }
  .hero h1 { grid-row: 1; grid-column: 1; align-self: start; z-index: 1; padding: clamp(32px, 6vh, 64px) max(var(--gutter), calc((100% - var(--wrap)) / 2 + var(--gutter))) 0; text-shadow: 0 1px 24px rgba(0, 0, 0, 0.35); }
  .h1-in { max-width: 17ch; }
  .hero .waterline { grid-row: 2; }
  .hero-band { grid-row: 3; width: 100%; max-width: var(--wrap); margin-inline: auto; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: 24px 48px; padding: 28px var(--gutter) 40px; }
  .hero-act { order: 2; flex-direction: column; align-items: flex-start; gap: 6px; }
}

/* ---------- the owner: one wide photograph, then John in his own words ---------- */
.owner { padding-top: var(--space); }
.owner-pic img { width: 100%; }
.owner-pic figcaption { max-width: var(--wrap); margin-inline: auto; padding: 10px var(--gutter) 0; font-size: var(--step-small); color: var(--muted); }
.owner-grid { display: grid; gap: 36px; padding-top: 40px; }
.john { margin-top: 24px; padding-left: 20px; border-left: 4px solid var(--cedar); }
.john p { font-family: var(--display); font-weight: 500; font-size: var(--step-quote); line-height: 1.22; }
.cite { margin-top: 12px; font-size: var(--step-small); color: var(--muted); }
.summary { margin-top: 28px; max-width: 52ch; }
.creds { background: var(--tile); color: #fff; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) 72px; gap: 16px; align-items: center; }
.creds p { font-size: 1rem; line-height: 1.55; }
.creds strong { display: block; font-family: var(--display); font-size: 1.75rem; font-weight: 600; line-height: 1.1; margin-bottom: 6px; }
.creds img { width: 72px; }
@media (min-width: 480px) {
  .creds { padding: 24px; grid-template-columns: minmax(0, 1fr) 96px; gap: 20px; }
  .creds img { width: 96px; }
}
@media (min-width: 900px) {
  .owner-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; padding-top: 56px; }
  .creds { margin-top: 8px; }
}

/* ---------- the build, drawn as a section ---------- */
.build { padding-block: var(--space); }
.lede { margin-top: 16px; max-width: 56ch; }
.section-drawing { max-width: var(--wrap); margin: 36px auto 0; padding-inline: var(--gutter); }
.section-drawing svg { width: 100%; }
.build-grid { display: grid; gap: 32px; margin-top: 56px; align-items: start; }
.key { display: flex; align-items: center; gap: 10px; font-size: var(--step-small); color: var(--muted); margin: 32px 0 20px; }
.jmark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff; border: 3px solid var(--royal); color: var(--royal); font: 700 0.9375rem/1 var(--display); flex: none; }

/* the build timeline: a water line with John's mark at every stop (down the side on a phone, across on desktop) */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.timeline li { position: relative; padding-left: 48px; }
.timeline li::before { content: ""; position: absolute; left: 13px; top: 14px; bottom: -36px; width: 3px; background: var(--water); }
.timeline li:last-child::before { display: none; }
.timeline .jmark { position: absolute; left: 0; top: 0; z-index: 1; }
.timeline strong { display: block; font-weight: 600; line-height: 1.3; }
.timeline .t { display: block; color: var(--muted); font-size: 1rem; line-height: 1.5; }
.sw { display: block; width: 48px; height: 10px; margin: 9px 0 8px; border: 1px solid rgba(21, 32, 34, 0.35); }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0 18px; }
  .timeline li { padding: 44px 0 0; }
  .timeline li::before { left: 14px; right: -32px; top: 13px; bottom: auto; width: auto; height: 3px; }
}
.sw-design { background: #fff; border: 2px dashed var(--royal); }
.sw-dig { background: #B48A64; }
.sw-steel { background: linear-gradient(to bottom, transparent 0 70%, var(--royal) 70%), repeating-linear-gradient(90deg, #7A4A2E 0 3px, #A3ABAC 3px 9px); }
.sw-shell { background: #A3ABAC; }
.sw-tile { background: linear-gradient(to bottom, #CDBFA6 0 38%, #2B3A3E 38%); }
.sw-deck { background: var(--deck); }
.sw-water { background: linear-gradient(to bottom, #fff 0 14%, #6CC9CC 14%, #2E8F9C); }
.build-photo img { width: 100%; }
.build-photo figcaption, .work figcaption, .said figcaption { margin-top: 10px; font-size: var(--step-small); color: var(--muted); }
.keelia { margin-top: 28px; padding-left: 20px; border-left: 4px solid var(--water); }
.keelia p { font-size: 1.1875rem; }
@media (min-width: 900px) {
  .build-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .keelia { margin-top: 0; }
}

/* ---------- the work: an uneven grid with captions ---------- */
.work { padding-bottom: var(--space); }
.work-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.work-head a { font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.mosaic { display: grid; gap: 24px 16px; }
.mosaic figure { display: flex; flex-direction: column; }
.mosaic .frame { overflow: hidden; flex: 1; }
.mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.mosaic figure:hover img { transform: scale(1.035); }
@media (min-width: 760px) {
  .mosaic { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .m-a { grid-row: 1 / span 2; }
}

/* ---------- what customers said, on the deck ---------- */
.said { background: var(--deck); padding-block: var(--space); }
.said-grid { display: grid; gap: 36px; }
.todd p { font-size: var(--step-quote); line-height: 1.32; font-weight: 500; }
.said .cite { color: #3D4744; }
.billy p { font-size: 1.1875rem; }
.billy { max-width: 56ch; }
.said-pic img { width: 100%; }
.said .said-pic figcaption { color: #3D4744; }
@media (min-width: 900px) {
  .said-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 64px; row-gap: 40px; align-items: start; }
  .said h2 { grid-column: 1; grid-row: 1; }
  .todd { grid-column: 1; grid-row: 2; }
  .said-pic { grid-column: 2; grid-row: 1 / span 3; margin-top: 8px; }
  .billy { grid-column: 1; grid-row: 3; padding-left: 64px; }
}

/* ---------- the call ---------- */
.close { background: var(--tile); color: #fff; padding-bottom: var(--space); }
.close-grid { display: grid; gap: 40px; padding-top: clamp(56px, 40px + 4vw, 96px); }
.close h2 { color: #fff; }
.close p { margin-top: 14px; max-width: 46ch; color: #E4ECEA; }
.btn-big { display: inline-flex; flex-direction: column; margin-top: 28px; padding: 14px 24px 16px; background: var(--water); color: var(--ink); text-decoration: none; }
.btn-big small { font-size: 1rem; font-weight: 600; }
.btn-big span { font-family: var(--display); font-weight: 700; font-size: clamp(2.25rem, 1.6rem + 2.4vw, 3.5rem); line-height: 1; }
.btn-big:hover { background: #fff; }
.reach { list-style: none; margin: 0; padding: 0; }
.reach li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, 0.18); }
.reach li:last-child { border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
.reach .k { display: block; font-size: var(--step-small); color: #B9CBC8; }
.close a:not(.btn-big) { color: var(--water); }
.reach a { display: inline-flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) {
  .close-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 64px; align-items: end; }
}

/* ---------- footer ---------- */
.site-footer { padding-block: 48px 32px; font-size: var(--step-small); color: var(--muted); }
.foot-grid { display: grid; gap: 28px; }
.site-footer img { height: 34px; width: auto; }
.site-footer p + p { margin-top: 6px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer ul a { display: inline-flex; min-height: 44px; align-items: center; }
.mock { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 0.8125rem; }
@media (min-width: 900px) {
  .foot-grid { grid-template-columns: auto minmax(0, 1fr) auto; gap: 48px; align-items: start; }
}

/* ---------- stub pages ---------- */
.stub { padding-block: var(--space); }
.stub h1 { font-size: var(--step-hero); font-weight: 700; }
.stub p { margin-top: 18px; max-width: 54ch; }
.stub .btn-call { margin-top: 28px; }
.stub .btn-call:hover { background: var(--tile); color: #fff; }

/* attribution lines stay small inside any quote */
blockquote .cite, .summary .cite { display: block; font: 400 var(--step-small)/1.5 var(--body); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .mosaic figure:hover img { transform: none; }
}
