/* ==========================================================================
   PRO POOLS — global.css
   Brand tokens, base styles, header/nav, footer, shared components.
   Colours come from the client's branded shirt & vehicle:
   deep navy / black, cyan, royal blue + warm paper & terracotta stamps.
   ========================================================================== */

/* ---------- Fonts (self-hosted, latin subset) ---------- */
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/barlowcondensed-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/barlowcondensed-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Barlow Condensed';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/barlowcondensed-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/publicsans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/publicsans-500.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/publicsans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Public Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('../fonts/publicsans-700.woff2') format('woff2');
}

/* ---------- Tokens ---------- */
:root {
  --navy-900: #0a1624;
  --navy-800: #0f2236;
  --navy-700: #16334e;
  --royal: #1e6fb8;
  --cyan: #2ba7df;
  --cyan-soft: #bfe0f2;
  --paper: #f7f3ea;
  --paper-2: #efe8d8;
  --ink: #13202e;
  --ink-soft: #47596b;
  --terra: #d97c4f;
  --white: #ffffff;
  --on-dark: #eaf3fa;
  --on-dark-soft: #9fb6c9;
  --line: rgba(19, 32, 46, 0.14);
  --line-dark: rgba(234, 243, 250, 0.16);

  --font-head: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', Arial, sans-serif;

  --wrap: 1180px;
  --radius: 12px;
  --shadow-photo: 0 14px 30px -12px rgba(10, 22, 36, 0.35);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.98;
  letter-spacing: 0.012em;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2.7rem, 6.4vw, 4.7rem); }
h2 { font-size: clamp(2rem, 4.6vw, 3.1rem); }
h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); line-height: 1.05; }

.hl-cyan { color: var(--cyan); }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--royal); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--cyan); }

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

.wrap {
  width: min(var(--wrap), 100% - 2.5rem);
  margin-inline: auto;
}

.section { padding: clamp(3.2rem, 7vw, 5.5rem) 0; }
.section--dark { background: var(--navy-900); color: var(--on-dark); }
.section--alt  { background: var(--paper-2); }

.section-head { max-width: 640px; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.lede {
  font-size: 1.12rem;
  color: var(--ink-soft);
  max-width: 56ch;
}
.section--dark .lede { color: var(--on-dark-soft); }
.section-head--center .lede { margin-inline: auto; }

/* ---------- "Site stamp" eyebrow labels ---------- */
.stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--terra);
  border: 1.5px dashed currentColor;
  border-radius: 6px;
  padding: 0.35em 0.8em;
  transform: rotate(-1.2deg);
  margin-bottom: 1.1rem;
}
.stamp::before {
  content: '';
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.section--dark .stamp { color: #e9a87e; }

/* ---------- Buttons: chunky, hard offset shadow ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.14rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.72em 1.45em;
  border-radius: 10px;
  border: 2px solid var(--navy-900);
  cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease);
}
.btn--primary {
  background: var(--terra);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--navy-900);
}
.btn--primary:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--navy-900);
  color: var(--white);
}
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--navy-900); color: var(--white); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--cyan); }
.btn--ondark {
  background: var(--cyan);
  border-color: var(--cyan);
  color: var(--navy-900);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55);
}
.btn--ondark:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); color: var(--navy-900); }
.btn--outline-dark { background: transparent; color: var(--on-dark); border-color: var(--on-dark); }
.btn--outline-dark:hover { background: var(--on-dark); color: var(--navy-900); transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--cyan); }
.btn .btn-arrow { transition: transform 0.18s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--navy-900);
  border-bottom: 1px solid var(--line-dark);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: 0 10px 28px -14px rgba(0, 0, 0, 0.65); }

.header-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--white);
}
.brand-logo {
  display: block;
  height: 52px;
  width: auto;
}
@media (max-width: 880px) {
  .brand-logo { height: 42px; }
}

.main-nav ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2vw, 1.7rem);
  margin: 0;
  padding: 0;
}
.main-nav a:not(.btn) {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--on-dark);
  padding: 0.4em 0.1em;
  position: relative;
}
.main-nav a:not(.btn)::after {
  content: '';
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0.15em;
  height: 3px;
  background: var(--cyan);
  border-radius: 2px;
  transition: right 0.25s var(--ease);
}
.main-nav a:not(.btn):hover::after,
.main-nav a[aria-current='page']::after { right: 0; }
.main-nav a[aria-current='page'] { color: var(--cyan); }

.nav-cta { margin-left: 0.4rem; }
/* Live wave button: transparent (navbar shows through), orange border,
   two slow wave layers running constantly; they rise on hover. */
.nav-cta .btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0.5em 1.05em;
  font-size: 1.02rem;
  background: transparent;
  border: 1.6px solid var(--terra);
  color: var(--white);
  box-shadow: none;
  text-shadow: 0 1px 8px rgba(10, 22, 36, 0.65);
  transition: border-color 0.2s ease, box-shadow 0.25s ease;
}
.nav-cta .btn::before,
.nav-cta .btn::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-repeat: repeat-x;
  background-position: left bottom;
  pointer-events: none;
  transform-origin: 50% 100%;
  transition: transform 0.45s var(--ease), opacity 0.3s ease;
}
.nav-cta .btn::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='26' viewBox='0 0 96 26'%3E%3Cpath d='M0 13 Q12 1 24 13 T48 13 T72 13 T96 13 V26 H0 Z' fill='%232ba7df'/%3E%3C/svg%3E");
  background-size: 96px 26px;
  opacity: 0.5;
  animation: navwave-a 3.1s linear infinite;
}
.nav-cta .btn::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='128' height='26' viewBox='0 0 128 26'%3E%3Cpath d='M0 14 Q16 4 32 14 T64 14 T96 14 T128 14 V26 H0 Z' fill='%231e6fb8'/%3E%3C/svg%3E");
  background-size: 128px 26px;
  opacity: 0.45;
  animation: navwave-b 4.9s linear infinite;
}
@keyframes navwave-a { to { background-position-x: 96px; } }
@keyframes navwave-b { to { background-position-x: -128px; } }
.nav-cta .btn:hover,
.nav-cta .btn:focus-visible {
  border-color: #e9a87e;
  color: var(--white);
}
.nav-cta .btn:hover::before { transform: scaleY(1.8); opacity: 0.62; }
.nav-cta .btn:hover::after { transform: scaleY(1.5); opacity: 0.55; }

.nav-toggle {
  display: none;
  background: none;
  border: 2px solid var(--line-dark);
  border-radius: 10px;
  padding: 0.55rem 0.65rem;
  cursor: pointer;
}
.nav-toggle .bars { display: block; width: 22px; height: 14px; position: relative; }
.nav-toggle .bars span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2.5px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform 0.25s var(--ease), opacity 0.2s ease, top 0.25s var(--ease);
}
.nav-toggle .bars span:nth-child(1) { top: 0; }
.nav-toggle .bars span:nth-child(2) { top: 5.5px; }
.nav-toggle .bars span:nth-child(3) { top: 11px; }
.nav-toggle[aria-expanded='true'] .bars span:nth-child(1) { top: 5.5px; transform: rotate(45deg); }
.nav-toggle[aria-expanded='true'] .bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded='true'] .bars span:nth-child(3) { top: 5.5px; transform: rotate(-45deg); }

@media (max-width: 880px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--navy-800);
    border-bottom: 1px solid var(--line-dark);
    padding: 0.4rem 1.4rem 1.4rem;
    display: none;
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 0.2rem; }
  .main-nav a:not(.btn) { display: block; padding: 0.7em 0.2em; font-size: 1.2rem; border-bottom: 1px solid var(--line-dark); }
  .main-nav a:not(.btn)::after { display: none; }
  .main-nav a[aria-current='page'] { color: var(--cyan); }
  .nav-cta { margin: 0.9rem 0 0; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ---------- Waterline divider (signature) ---------- */
.waterline {
  display: block;
  width: 100%;
  height: 26px;
  margin: 0;
}
.waterline path {
  fill: none;
  stroke-width: 3;
  stroke-linecap: round;
}
.waterline .wl-1 { stroke: var(--cyan); }
.waterline .wl-2 { stroke: var(--royal); opacity: 0.55; stroke-width: 2; }

/* draw-in animation, driven by global.js */
.waterline.is-drawable path {
  stroke-dasharray: 1400;
  stroke-dashoffset: 1400;
  transition: stroke-dashoffset 1.6s var(--ease);
}
.waterline.is-drawable path.wl-2 { transition-delay: 0.15s; }
.waterline.is-drawn path { stroke-dashoffset: 0; }

/* ---------- Ticker strip ---------- */
.ticker {
  overflow: hidden;
  background: var(--navy-800);
  border-block: 1px solid var(--line-dark);
  padding: 0.85rem 0;
}
.ticker-track {
  display: flex;
  width: max-content;
  animation: ticker 36s linear infinite;
}
.ticker-track span {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--on-dark);
  white-space: nowrap;
  padding-right: 2.2rem;
}
.ticker-track span .dot { color: var(--terra); font-weight: 700; }
@keyframes ticker {
  /* track holds 4 identical spans; one loop = one span width (-25%) */
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

/* ---------- Photo prints (framed, slightly rotated) ---------- */
.photo {
  background: var(--white);
  padding: 10px 10px 14px;
  border-radius: 6px;
  box-shadow: var(--shadow-photo);
  display: block;
}
.photo img {
  border-radius: 3px;
  width: 100%;
  object-fit: cover;
}
.photo figcaption {
  font-size: 0.82rem;
  color: var(--ink-soft);
  padding-top: 9px;
  letter-spacing: 0.02em;
}
.tilt-l { transform: rotate(-1.6deg); }
.tilt-r { transform: rotate(1.6deg); }

/* corner tape for the hero collage only */
.taped { position: relative; }
.taped::before,
.taped::after {
  content: '';
  position: absolute;
  width: 74px;
  height: 22px;
  background: rgba(43, 167, 223, 0.28);
  border-left: 1px dashed rgba(43, 167, 223, 0.5);
  border-right: 1px dashed rgba(43, 167, 223, 0.5);
  z-index: 2;
}
.taped::before { top: -11px; left: 26px; transform: rotate(-4deg); }
.taped::after { bottom: -9px; right: 30px; transform: rotate(3deg); }

/* depth-tick annotation on photos */
.depth-tick {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--white);
  text-shadow: 0 1px 6px rgba(10, 22, 36, 0.7);
  z-index: 3;
}
.depth-tick::before {
  content: '';
  width: 26px;
  height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 0 1px rgba(10, 22, 36, 0.35);
}

/* ---------- Numbered rate-card rows (services preview) ---------- */
.ratecard { display: grid; gap: clamp(1.4rem, 3vw, 2.2rem); }
.rate-row {
  display: grid;
  grid-template-columns: 120px 220px 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2rem);
  padding: 1.3rem 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s ease;
}
.rate-row:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px -18px rgba(10, 22, 36, 0.4);
  border-color: var(--cyan);
  color: var(--ink);
}
.rate-num {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(3rem, 6vw, 4.4rem);
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px var(--cyan);
  transition: -webkit-text-stroke-color 0.22s ease, color 0.22s ease;
}
.rate-row:hover .rate-num { color: var(--cyan); -webkit-text-stroke-color: var(--navy-900); }
.rate-thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; }
.rate-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s var(--ease); }
.rate-row:hover .rate-thumb img { transform: scale(1.05); }
.rate-copy h3 { margin-bottom: 0.2em; }
.rate-copy p { color: var(--ink-soft); font-size: 0.98rem; margin: 0; }
.rate-go {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--royal);
  white-space: nowrap;
  transition: transform 0.22s var(--ease);
}
.rate-row:hover .rate-go { transform: translateX(6px); color: var(--cyan); }
.rate-row:nth-child(even) { grid-template-columns: auto 1fr 220px 120px; }
.rate-row:nth-child(even) .rate-num { order: 4; text-align: right; }
.rate-row:nth-child(even) .rate-thumb { order: 3; }
.rate-row:nth-child(even) .rate-copy { order: 2; }
.rate-row:nth-child(even) .rate-go { order: 1; text-align: right; }

@media (max-width: 900px) {
  .rate-row,
  .rate-row:nth-child(even) {
    grid-template-columns: 72px 1fr;
    grid-template-rows: auto auto;
    gap: 1.1rem 0.8rem;
    padding: 1.25rem 1.1rem;
  }
  .rate-row:nth-child(even) .rate-num { order: 0; text-align: left; }
  .rate-thumb,
  .rate-row:nth-child(even) .rate-thumb { display: none; }
  .rate-copy,
  .rate-row:nth-child(even) .rate-copy { order: 1; }
  .rate-go { display: none; }
}

/* ---------- Process steps ---------- */
.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.step { position: relative; }
/* photos run edge-to-edge with the text column: no white mat here,
   the shadow sits on the image itself, so photo width == text width */
.step .photo {
  background: transparent;
  padding: 0;
  box-shadow: none;
  margin-inline: 0; /* kill the UA figure side margins on every screen size */
  margin-bottom: 1.1rem;
}
.step .photo img {
  border-radius: 8px;
  box-shadow: var(--shadow-photo);
}
.step-tag {
  font-family: var(--font-head);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  font-size: 1rem;
  margin-bottom: 0.3rem;
}
.step h3 { font-size: 1.35rem; margin-bottom: 0.4em; }
.step p { font-size: 0.95rem; color: var(--on-dark-soft); margin: 0; }
@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps { grid-template-columns: 1fr; }
}

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  overflow: hidden;
  /* brand wave pattern instead of the flat navy + glow circle; a flat
     veil keeps the copy readable */
  background:
    linear-gradient(rgba(10, 22, 36, 0.55), rgba(10, 22, 36, 0.55)),
    url('../../image/wave-pattern.jpg') center / cover no-repeat;
  padding-block: clamp(2.6rem, 5vw, 4rem);
}
.cta-band .btn { padding: 0.8em 2em; }
.cta-band .wrap { position: relative; z-index: 2; }
.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
/* everything-centred variant (homepage bottom band) */
.cta-inner--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0;
}
.cta-inner--center .cta-note { margin-bottom: 1.4rem; }
.cta-contact {
  list-style: none;
  margin: 0 0 1.6rem;
  padding: 0;
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  color: var(--on-dark);
  font-size: 1rem;
}
.cta-contact li {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.cta-contact svg { color: var(--cyan); flex: none; }
.cta-contact a { color: var(--on-dark); text-decoration: none; border-bottom: 2px solid var(--cyan); padding-bottom: 1px; }
.cta-contact a:hover { color: var(--cyan); }
.cta-phone-row { margin-bottom: 0.3rem; }
.cta-inner--center .hero-actions { justify-content: center; margin-bottom: 0; }
.cta-phone {
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  color: var(--cyan);
  text-decoration: none;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.cta-phone:hover { color: var(--on-dark); }
.cta-note + .cta-phone { margin-top: 0.5rem; } /* phone sits under the note on subpages */
.cta-note { color: var(--on-dark-soft); font-size: 0.95rem; margin-top: 0.4rem; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900);
  color: var(--on-dark);
  border-top: 1px solid var(--line-dark);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: clamp(1.8rem, 4vw, 3.5rem);
  /* taller footer logo is offset here so the bottom bar doesn't shift */
  padding: clamp(1.8rem, 3.4vw, 2.6rem) 0 1.4rem;
}
.site-footer h4 {
  font-size: 1.1rem;
  letter-spacing: 0.14em;
  color: var(--cyan);
  margin-bottom: 1rem;
}
.footer-brand .brand-logo { height: 100px; margin-bottom: 0.4rem; }
.footer-brand p { color: var(--on-dark-soft); font-size: 0.95rem; margin-top: 0.5rem; max-width: 34ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.55rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--cyan); }
.footer-contact li { display: flex; gap: 0.6rem; align-items: baseline; }
.footer-contact svg { flex: none; transform: translateY(2px); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 1.1rem 0 1.3rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--on-dark-soft);
}
.footer-bottom .tagline { font-family: var(--font-head); letter-spacing: 0.12em; text-transform: uppercase; }
@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
}

/* ---------- Reveal-on-scroll system ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
  transition-delay: var(--d, 0s);
}
/* 16px slide keeps the pre-reveal state inside the viewport on phones
   (wrap 20px + content + 16px < 375px), so nothing scrolls sideways */
[data-reveal='left']  { transform: translateX(-16px); }
[data-reveal='right'] { transform: translateX(16px); }
[data-reveal].revealed { opacity: 1; transform: none; }

/* ---------- Hero shared bits (used by subpages) ---------- */
.page-hero {
  /* brand wave pattern; a flat veil keeps the headings readable */
  background:
    linear-gradient(rgba(10, 22, 36, 0.45), rgba(10, 22, 36, 0.45)),
    url('../../image/wave-pattern.jpg') center / cover no-repeat;
  color: var(--on-dark);
  padding: clamp(3rem, 7vw, 5.2rem) 0 clamp(2.4rem, 5vw, 3.6rem);
  position: relative;
  overflow: hidden;
}
.page-hero .wrap { position: relative; z-index: 2; }
.page-hero h1 { max-width: 15ch; }
.page-hero .lede { margin-top: 0.6rem; color: #c9d9e6; max-width: 62ch; }
.crumbs {
  font-family: var(--font-head);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.95rem;
  color: var(--on-dark-soft);
  margin-bottom: 1.2rem;
}
.crumbs a { color: var(--on-dark-soft); text-decoration: none; }
.crumbs a:hover { color: var(--cyan); }

/* ---------- Scroll strip (photo rail on home) ---------- */
.rail-zone { position: relative; }
.rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(300px, 74vw);
  gap: 0.9rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 0.4rem 0.2rem 1.3rem;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail .snap { scroll-snap-align: start; }

/* desktop: hands-free marquee — the strip drifts and loops forever.
   No arrows, no manual scrolling. Mobile (<=700px) keeps snap + arrows. */
@media (min-width: 901px) {
  .rail-zone .rail-btn { display: none; }
  .rail-zone { overflow: hidden; }
  .rail.is-marquee {
    display: flex;
    width: max-content;
    gap: 0.9rem;
    padding-inline: 0;
    overflow: visible;
    scroll-snap-type: none;
    scroll-behavior: auto;
    animation: rail-marquee 48s linear infinite;
  }
  .rail.is-marquee .snap { width: 300px; flex: none; } /* flex has no grid tracks */
  /* halve the space inside each listing */
  .rail .photo { padding: 5px 5px 7px; }
  .rail .photo figcaption { padding-top: 4px; }
}
@keyframes rail-marquee { to { transform: translateX(-50%); } }

.rail-btn {
  position: absolute;
  top: 44%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--navy-900);
  color: var(--white);
  border: 2px solid var(--cyan);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px -6px rgba(10, 22, 36, 0.55);
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s var(--ease), opacity 0.25s ease;
}
.rail-btn:hover {
  background: var(--cyan);
  color: var(--navy-900);
}
.rail-btn:active { transform: translateY(-50%) scale(0.94); }
.rail-btn--prev { left: -10px; }
.rail-btn--next { right: -10px; }
.rail-btn[disabled] { opacity: 0.3; pointer-events: none; }
.rail-hint {
  font-size: 0.9rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
@media (max-width: 700px) {
  /* smaller banner on phones */
  .ticker { padding: 0.5rem 0; }
  .ticker-track span { font-size: 1.02rem; padding-right: 1.6rem; }
  /* photo rail: each card fills the row, so it sits dead-centre under the
     text edges; the neighbours peek through the gap */
  .rail { gap: 0.55rem; grid-auto-columns: 100%; padding-inline: 0; }
  .rail .snap { margin-inline: 0; scroll-snap-align: center; }
  .rail-btn { width: 40px; height: 40px; top: 40%; }
  .rail-btn--prev { left: 2px; }
  .rail-btn--next { right: 2px; }
  /* hint: only the gallery link, centred */
  .rail-hint { justify-content: center; text-align: center; }
  /* homepage CTA: no sun icon; a clear break before the Sundays line */
  .cta-sun { display: none; }
  .cta-contact li:last-child { margin-top: 1rem; }
  /* subpage CTA: phone number dropped on phones, button spans the text
     width and sits flush */
  .cta-inner:not(.cta-inner--center) { gap: 1.3rem; }
  .cta-inner:not(.cta-inner--center) > div { flex: 1 1 100%; }
  .cta-inner:not(.cta-inner--center) > div > a.cta-phone { display: none; }
  .cta-inner:not(.cta-inner--center) .hero-actions { width: 100%; }
  .cta-inner:not(.cta-inner--center) .hero-actions .btn { width: 100%; justify-content: center; }
  /* about page prints: straight and clean on phones — no tilt, no tape */
  .tilt-l, .tilt-r { transform: none; }
  .taped::before, .taped::after { display: none; }
}

/* ---------- Homepage hero (brand wave-pattern background) ---------- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  /* fill the first screen so the ticker strip sits fully visible at the bottom edge
     (72px header + ~63px ticker are subtracted) */
  min-height: calc(100vh - 136px);
  min-height: calc(100svh - 136px);
  color: var(--on-dark);
  background:
    linear-gradient(rgba(10, 22, 36, 0.4), rgba(10, 22, 36, 0.4)),
    url('../../image/wave-pattern.jpg') center / cover no-repeat;
  padding: clamp(2.2rem, 4.5vw, 3.4rem) 0;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
  gap: clamp(2rem, 5vw, 4rem);
}
.hero-copy { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.hero .stamp { color: #e9a87e; }
.hero .lede { color: #c9d9e6; margin-bottom: 1.6rem; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.7rem; }
.hero .btn--primary { box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.55); }
.hero .btn--primary:hover { box-shadow: 8px 8px 0 rgba(0, 0, 0, 0.55); }
.hero .btn--ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.72);
}
.hero .btn--ghost:hover {
  background: var(--white);
  color: var(--navy-900);
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 rgba(43, 167, 223, 0.9);
}
.hero-contact {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  font-size: 0.98rem;
}
.hero-contact a {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  border-bottom: 2px solid var(--cyan);
  padding-bottom: 2px;
}
.hero-contact a:hover { color: var(--cyan); }
.hero-contact .sep { color: rgba(255, 255, 255, 0.4); }

/* ----- Before / after reveal frame ----- */
.hero-visual { min-width: 0; height: 100%; }
.ba-frame {
  position: relative;
  height: 100%;
  min-height: 430px;
  margin: 0;
  display: flex;
  background: var(--white);
  padding: 10px;
  border-radius: 8px;
  box-shadow: 0 28px 54px -22px rgba(0, 0, 0, 0.65);
}
.ba-window {
  position: relative;
  flex: 1;
  overflow: hidden;
  border-radius: 4px;
  background: var(--navy-800);
}
.ba-window img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
}
.ba-before {
  position: absolute;
  inset: 0;
  z-index: 1;
  clip-path: inset(0 0 0 0);
}
.ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  margin-left: -1.5px;
  z-index: 3;
  background: var(--white);
  box-shadow: 0 0 0 1px rgba(10, 22, 36, 0.4), 0 0 20px rgba(43, 167, 223, 0.85);
  transition: opacity 0.7s ease 0.25s;
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--white);
  color: var(--navy-900);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}
.ba-tag {
  position: absolute;
  z-index: 4;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  background: rgba(10, 22, 36, 0.72);
  color: var(--white);
  padding: 0.35em 0.9em;
  border-radius: 999px;
  transition: opacity 0.45s ease;
}
.ba-tag--before { top: 14px; right: 14px; }
.ba-tag--after { top: 14px; left: 14px; opacity: 0; }
/* white veil used to cross-fade between slideshow pairs */
.ba-fade {
  position: absolute;
  inset: 0;
  z-index: 6;
  background: var(--white);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

@media (max-width: 900px) {
  /* phone hero: photo frame first (above the title), everything compact
     so the hero and the scrolling banner still fill the first screen */
  .hero {
    padding: 0.8rem 0 0.5rem;
    min-height: calc(100vh - 112px);
    min-height: calc(100svh - 112px);
  }
  .hero-grid { display: flex; flex-direction: column; }
  .hero-visual {
    order: -1;
    height: auto;
    margin-top: 0.55rem;    /* gap under the navbar */
    margin-bottom: 0.95rem; /* gap above the title */
  }
  .hero .stamp { display: none; } /* no eyebrow chip on phones */
  .hero h1 { font-size: clamp(2.05rem, 8.4vw, 2.6rem); margin-bottom: 0.35em; }
  .hero .lede { margin-bottom: 0.9rem; font-size: 0.95rem; }
  .hero-actions { flex-wrap: nowrap; margin-bottom: 0.85rem; gap: 0.7rem; }
  .hero .btn { font-size: 0.95rem; padding: 0.6em 0.95em; }
  .hero-contact { display: none; } /* phone/email row is a desktop-only touch */
  .ba-frame { min-height: 0; display: block; }
  .ba-window { aspect-ratio: 2 / 1; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ticker-track { animation: none; }
  .rail.is-marquee { animation: none; }
  .rail.is-marquee .marquee-clone { display: none; }
  .waterline.is-drawable path { stroke-dasharray: none; stroke-dashoffset: 0; transition: none; }
  .btn, .rate-row, .rate-thumb img, .rate-num, .rate-go { transition: none; }
  .nav-cta .btn::before, .nav-cta .btn::after { animation: none; }
  /* before/after frame: show the finished photo, no wipe animation */
  .ba-before, .ba-line { display: none; }
  .ba-tag--after { opacity: 1; }
}
