/* Signature Pools & Spa — Untamed Web Design mockup
   Palette sampled from their current site (see Design Direction.md).
   Type: Zilla Slab (headlines) + Inter (body). Phone-first. */

:root {
  --ink:        #1d2a2e;  /* near-black, header band + dark sections */
  --teal:       #2c5c69;  /* deep pool teal, primary */
  --teal-mid:   #3a5960;  /* mid pool water */
  --cyan:       #00aeee;  /* logo cyan — hairline accent only */
  --granite:    #c9b896;  /* warm decomposed granite */
  --stone:      #575e61;  /* body text on light */
  --stone-soft: #8c8d96;
  --paper:      #f4f1ec;  /* warm paper */
  --white:      #fff;

  --serif: "Zilla Slab", Georgia, serif;
  --sans:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gut: 6vw;                 /* page gutter, phone */
  --max: 1240px;
  --rhythm: 68px;             /* section spacing, phone */
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--stone);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}

h1 { font-size: 40px; }
h2 { font-size: 30px; }
h3 { font-size: 21px; }

p { margin: 0 0 1.1em; }
a { color: var(--teal); }
img { max-width: 100%; display: block; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gut); }
.section { padding: var(--rhythm) 0; }

/* A measure that stays readable */
.measure { max-width: 34em; }

/* Eyebrow: small caps label above a heading */
.eyebrow {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 26px;
  height: 2px;
  background: var(--cyan);
  flex: none;
}
.on-dark .eyebrow, .eyebrow.light { color: var(--granite); }
.hero .eyebrow {
  color: #f0e6d2;
  text-shadow: 0 1px 10px rgba(0,0,0,.85), 0 0 26px rgba(0,0,0,.6);
}
.hero .eyebrow::before { box-shadow: 0 0 10px rgba(0,0,0,.6); }

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

.site-header {
  background: var(--ink);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 62px;
}
.logo {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 18px;
  color: var(--white);
  text-decoration: none;
  line-height: 1.05;
  letter-spacing: -0.01em;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 2px 0;
}
.logo span {
  display: block;
  font-family: var(--sans);
  font-size: 9.5px;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-top: 3px;
}

.nav-toggle {
  appearance: none;
  border: 1px solid rgba(255,255,255,.28);
  background: transparent;
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 44px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}
.nav-toggle:hover { border-color: var(--cyan); }
.nav-toggle .bars { display: block; width: 17px; height: 9px; position: relative; }
.nav-toggle .bars::before,
.nav-toggle .bars::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 1.5px;
  background: currentColor;
  transition: transform .22s ease, opacity .22s ease;
}
.nav-toggle .bars::before { top: 0; }
.nav-toggle .bars::after  { bottom: 0; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(3.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after  { transform: translateY(-3.75px) rotate(-45deg); }

#site-nav {
  display: none;
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 6px var(--gut) 22px;
}
#site-nav.open { display: block; }
#site-nav ul { list-style: none; margin: 0; padding: 0; }
#site-nav a {
  display: block;
  padding: 13px 0;
  min-height: 44px;
  color: rgba(255,255,255,.82);
  text-decoration: none;
  font-weight: 500;
  font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
#site-nav a:hover, #site-nav a[aria-current="page"] { color: var(--cyan); }
#site-nav .nav-call {
  margin-top: 16px;
  border: 0;
  background: var(--teal);
  color: var(--white);
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  padding: 14px;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 52px;
  padding: 0 26px;
  font-family: var(--sans);
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.btn-call {
  background: var(--cyan);
  color: var(--ink);
  letter-spacing: .01em;
}
.btn-call:hover { background: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--cyan); color: var(--cyan); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--teal); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background: var(--ink);
  overflow: hidden;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 42% 58%;
}
@media (min-width: 900px) {
  .hero-img { object-position: 58% 50%; }
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(12,20,23,.95) 0%, rgba(12,20,23,.82) 32%, rgba(12,20,23,.30) 64%, rgba(12,20,23,.36) 100%),
    linear-gradient(to right, rgba(12,20,23,.55) 0%, rgba(12,20,23,.12) 52%, rgba(12,20,23,0) 78%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-top: 84px;
  padding-bottom: 30px;
}
.hero h1 {
  color: var(--white);
  font-size: clamp(34px, 8.6vw, 48px);
  max-width: 15ch;
  margin-bottom: .42em;
  text-shadow: 0 2px 22px rgba(0,0,0,.42);
}
.hero h1 em {
  font-style: normal;
  color: var(--granite);
}
.hero-sub {
  color: rgba(255,255,255,.9);
  font-size: 17px;
  max-width: 40ch;
  margin-bottom: 26px;
  text-shadow: 0 1px 14px rgba(0,0,0,.5);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { flex: 1 1 auto; min-width: 190px; }

/* caption on a photo */
.shot-note {
  font-size: 11.5px;
  letter-spacing: .04em;
  color: var(--stone-soft);
  margin: 10px 0 0;
  line-height: 1.5;
}
.hero .shot-note {
  position: relative;
  z-index: 2;
  color: rgba(255,255,255,.62);
  margin-top: 22px;
}

/* ---------- Proof line (a sentence, not a dashboard) ---------- */

.proofline {
  background: var(--ink);
  color: rgba(255,255,255,.78);
  padding: 26px 0;
  border-top: 1px solid rgba(255,255,255,.1);
}
.proofline p {
  margin: 0;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.55;
  max-width: 62ch;
}
.proofline b {
  color: var(--white);
  font-weight: 600;
  white-space: nowrap;
}
.proofline .star { color: var(--cyan); }

/* ---------- Split: photo + text ---------- */

.split { display: grid; gap: 28px; }
.split-media figure { margin: 0; }
.split-media img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 42%;
  background: var(--ink);
}
.split-media img.portrait { aspect-ratio: 4 / 5; }

/* ---------- Named people ---------- */

.people { border-top: 1px solid rgba(87,94,97,.2); }
.person {
  padding: 26px 0;
  border-bottom: 1px solid rgba(87,94,97,.18);
  display: grid;
  gap: 4px;
}
.person:last-child { border-bottom: 0; }
.person .who {
  font-family: var(--serif);
  font-size: 23px;
  color: var(--ink);
  font-weight: 600;
}
.person .role {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--teal);
}
.person p { margin: 6px 0 0; }

/* ---------- Work grid ---------- */

.work { display: grid; gap: 18px; }
.work figure { margin: 0; }
.work .shot {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  display: block;
}
.work img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.3,1);
}
.work .shot:hover img { transform: scale(1.04); }
.work .w-full img { aspect-ratio: 21 / 9; }
.work .shot.tall img { aspect-ratio: 4 / 3; object-position: 50% 62%; }
@media (min-width: 640px) {
  .work .w-full img { aspect-ratio: 21 / 9; }
}
.work figcaption {
  padding: 14px 0 0;
}
.work .cap-title {
  font-family: var(--serif);
  font-size: 19px;
  color: var(--ink);
  font-weight: 600;
  display: block;
}
.work .cap-meta {
  font-size: 13px;
  color: var(--stone-soft);
  display: block;
  margin-top: 3px;
}

/* ---------- Pull quote on dark ---------- */

.quoteband {
  background: var(--teal);
  color: var(--white);
  padding: var(--rhythm) 0;
  position: relative;
  overflow: hidden;
}
.quoteband::before {
  content: "\201C";
  position: absolute;
  top: -.06em;
  left: .01em;
  font-family: var(--serif);
  font-size: 300px;
  line-height: 1;
  color: rgba(255,255,255,.07);
  pointer-events: none;
}
.quoteband blockquote {
  margin: 0;
  max-width: 100%;
}
.quoteband q {
  font-family: var(--serif);
  font-size: clamp(26px, 6.6vw, 40px);
  line-height: 1.26;
  font-weight: 500;
  quotes: "\201C" "\201D";
  display: block;
  text-wrap: balance;
}
.quoteband cite {
  display: block;
  margin-top: 22px;
  font-style: normal;
  font-size: 13px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.72);
}

/* smaller quotes stacked, not boxed in threes */
.quotes { display: grid; gap: 34px; }
.quotes blockquote {
  margin: 0;
  border-left: 2px solid var(--cyan);
  padding-left: 20px;
}
.quotes q {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.45;
  color: var(--ink);
  display: block;
  quotes: "\201C" "\201D";
}
.quotes cite {
  display: block;
  margin-top: 12px;
  font-style: normal;
  font-size: 12.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--stone-soft);
}

/* ---------- Steps ---------- */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  counter-increment: step;
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 26px 0;
  border-top: 1px solid rgba(87,94,97,.18);
}
.step:last-child { border-bottom: 1px solid rgba(87,94,97,.18); }
.step::before {
  content: counter(step, decimal-leading-zero);
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 600;
  color: var(--granite);
  line-height: 1;
}
.step h3 { margin-bottom: .35em; }
.step p { margin: 0; }
.step .when {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--teal);
}

/* ---------- Facts list ---------- */

.facts { list-style: none; margin: 0; padding: 0; }
.facts li {
  display: grid;
  gap: 2px;
  padding: 15px 0;
  border-bottom: 1px solid rgba(87,94,97,.18);
}
.facts dt, .facts .k {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--stone-soft);
}
.facts .v { font-size: 18px; color: var(--ink); font-family: var(--serif); font-weight: 500; }
.facts .v a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--cyan);
  display: inline-block;
  padding: 10px 0;
  line-height: 1.4;
}

/* ---------- CTA band ---------- */

.cta {
  background: var(--ink);
  color: var(--white);
  padding: var(--rhythm) 0;
}
.cta h2 { color: var(--white); max-width: 16ch; }
.cta p { color: rgba(255,255,255,.76); max-width: 42ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

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

.site-footer {
  background: #16211f;
  color: rgba(255,255,255,.62);
  font-size: 15px;
  padding: 46px 0 30px;
}
.site-footer a { color: rgba(255,255,255,.86); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.foot-grid { display: grid; gap: 30px; }
.foot-grid h4 {
  color: var(--white);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin: 0 0 12px;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; }
.foot-grid li { margin-bottom: 8px; }
.foot-phone {
  font-family: var(--serif);
  font-size: 25px;
  color: var(--white) !important;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 6px;
}
.legal {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 12.5px;
  line-height: 1.6;
  color: rgba(255,255,255,.42);
}
.legal p { margin: 0 0 6px; }

/* ---------- Page head (inner pages) ---------- */

.pagehead {
  background: var(--ink);
  color: var(--white);
  padding: 52px 0 46px;
}
.pagehead h1 { color: var(--white); font-size: clamp(32px, 8vw, 44px); max-width: 16ch; }
.pagehead p { color: rgba(255,255,255,.76); max-width: 46ch; margin: 0; }

/* map */
.map-frame {
  width: 100%;
  height: 320px;
  border: 0;
  display: block;
  filter: saturate(.86);
  background: var(--stone-soft);
}

/* Reveal on scroll.
   Only hidden once JS has confirmed it can observe them (html.js-reveal), so
   the content is never invisible if the script fails to load. */
.js-reveal .reveal { opacity: 0; transform: translateY(16px); }
.js-reveal .reveal.in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s ease; }

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

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .js-reveal .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ============ 640px ============ */
@media (min-width: 640px) {
  :root { --gut: 44px; --rhythm: 92px; }
  body { font-size: 18px; }
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
  .work { grid-template-columns: 1fr 1fr; gap: 22px; }
  .work .wide { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 30px 34px; }
}

/* ============ 900px — nav goes horizontal ============ */
@media (min-width: 900px) {
  :root { --gut: 56px; --rhythm: 124px; }
  h1 { font-size: 62px; }
  h2 { font-size: 42px; }
  h3 { font-size: 23px; }

  .nav-toggle { display: none; }
  #site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  #site-nav ul {
    display: flex;
    align-items: center;
    gap: 30px;
  }
  #site-nav a {
    padding: 0;
    min-height: 0;
    border: 0;
    font-size: 15px;
    font-weight: 500;
    color: rgba(255,255,255,.78);
    position: relative;
  }
  #site-nav a::after {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -7px;
    height: 2px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform .22s ease;
  }
  #site-nav a:hover::after,
  #site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  #site-nav .nav-call {
    margin: 0 0 0 8px;
    padding: 11px 20px;
    background: var(--cyan);
    color: var(--ink);
    font-size: 15px;
    font-family: var(--sans);
    font-weight: 600;
  }
  #site-nav .nav-call::after { display: none; }
  #site-nav .nav-call:hover { background: var(--white); color: var(--ink); }
  .header-inner { min-height: 76px; }
  .logo { font-size: 21px; }

  .hero { min-height: 88vh; align-items: flex-end; }
  .hero-inner { padding-bottom: 62px; padding-top: 140px; }
  .hero h1 { font-size: clamp(50px, 5.2vw, 72px); max-width: 17ch; }
  .hero-sub { font-size: 19px; }
  .hero-actions .btn { flex: 0 0 auto; }

  .proofline { padding: 30px 0; }
  .proofline p { font-size: 21px; }

  .split {
    grid-template-columns: 1.05fr .95fr;
    gap: 64px;
    align-items: center;
  }
  .split.flip .split-media { order: 2; }
  .split-text { padding: 8px 0; }

  .people { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .person { padding: 30px 0; }

  .work { grid-template-columns: repeat(6, 1fr); gap: 26px; }
  .work .w-tall  { grid-column: span 2; }
  .work .w-half  { grid-column: span 3; }
  .work .w-full  { grid-column: span 6; }
  .work .w-third { grid-column: span 2; }

  .quoteband { padding: 104px 0; }
  .quoteband blockquote { max-width: 860px; }
  .quoteband cite { margin-top: 28px; }
  .quotes { grid-template-columns: 1fr 1fr; gap: 44px 56px; }

  .steps { grid-template-columns: 1fr 1fr; column-gap: 56px; }
  .step { grid-template-columns: 64px 1fr; }
  .step:nth-last-child(2) { border-bottom: 1px solid rgba(87,94,97,.18); }

  .facts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 56px; }

  .foot-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 44px; }
  .map-frame { height: 420px; }
  .pagehead { padding: 86px 0 74px; }
  .pagehead .wrap {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 56px;
    align-items: end;
  }
  .pagehead .eyebrow { grid-column: 1 / -1; margin-bottom: 4px; }
  .pagehead h1 { margin-bottom: 0; }
  .pagehead p { padding-bottom: 10px; }

  .cta-inner { display: grid; grid-template-columns: 1fr auto; gap: 44px; align-items: end; }
  .cta-actions { margin-top: 0; }
}

@media (min-width: 1200px) {
  .hero h1 { font-size: 76px; }
}
