/* ==========================================================================
   Highview Bathroom
   Hand-coded, no framework. Mobile-first.
   1. Fonts & tokens    2. Base    3. Layout & utilities    4. Buttons
   5. Header & menu     6. Heroes  7. Components            8. Contact & form
   9. Footer            10. Motion
   ========================================================================== */

/* ---------- 1. Fonts (self-hosted, latin subset) ---------- */
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 800; font-display: swap; src: url("../assets/fonts/montserrat-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Montserrat"; font-style: normal; font-weight: 700; font-display: swap; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("../assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("../assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }

:root {
  /* Brand colours, checked against logo.png */
  --navy: #0b2545;
  --navy-deep: #061a31;
  --navy-ink: #04121f;
  --teal: #00adb0;          /* logo teal: fills, accents, large text, text on navy (5.6:1) */
  --teal-bright: #3fd2d4;   /* highlights on dark backgrounds */
  --teal-dark: #00777a;     /* AA on white (5.4:1) & aqua (4.9:1): links, small text */
  --aqua: #e8f7f7;
  --white: #ffffff;
  --paper: #f6f9f9;
  --text: #1f2937;
  --muted: #5b6472;
  --on-dark: #d6e2ec;
  --on-dark-muted: #a9bccd;
  --line: #dde5ea;
  --line-dark: rgb(255 255 255 / 0.14);

  --font-head: "Montserrat", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --radius: 4px;
  --radius-lg: 10px;
  --shadow: 0 2px 4px rgb(6 26 49 / 0.06), 0 22px 44px -16px rgb(6 26 49 / 0.3);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --container: 1320px;
  --gutter: 1rem;
  --header-h: 72px;
  --section-y: clamp(4rem, 8vw, 7.5rem);
}
@media (min-width: 768px) { :root { --gutter: 2rem; --header-h: 84px; } }
@media (min-width: 1400px) { :root { --gutter: 3rem; } }
@media (min-width: 1800px) { :root { --container: 1440px; } }

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  color: var(--text); background: var(--white); overflow-x: clip;
}
img, picture, svg { display: block; max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.08; margin: 0 0 1rem; letter-spacing: -0.025em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.5rem, 6.2vw, 6rem); font-size: clamp(2.5rem, min(6.2vw, 10.5svh), 6rem); line-height: 0.98; letter-spacing: -0.035em; }
h2 { font-weight: 800; font-size: clamp(2rem, 3.4vw + 0.5rem, 3.5rem); }
h3 { font-weight: 700; font-size: clamp(1.2rem, 1.6vw, 1.4rem); line-height: 1.25; letter-spacing: -0.01em; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1rem; padding-left: 1.25rem; }
a { color: var(--teal-dark); text-underline-offset: 0.2em; text-decoration-thickness: 1.5px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; color: var(--navy); }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 500; background: var(--teal); color: var(--navy); padding: 0.75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; color: var(--navy); }

/* ---------- 3. Layout & utilities ---------- */
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: var(--section-y); position: relative; }
.section--paper { background: var(--paper); }
.section--dark { background: var(--navy); color: var(--on-dark); }
.section--dark h2, .section--dark h3 { color: var(--white); }
.section--dark a:not(.btn) { color: var(--teal-bright); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font: 700 0.78rem/1.2 var(--font-head); letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal-dark); margin-bottom: 1.1rem;
}
.eyebrow::before {
  content: ""; width: 15px; height: 15px; flex: none;
  background:
    linear-gradient(var(--teal) 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(var(--teal) 0 0) 8px 0 / 7px 7px no-repeat,
    linear-gradient(var(--teal) 0 0) 0 8px / 7px 7px no-repeat,
    linear-gradient(currentColor 0 0) 8px 8px / 7px 7px no-repeat;
}
.section--dark .eyebrow { color: var(--teal); }
@media (max-width: 479px) { .eyebrow { font-size: 0.72rem; letter-spacing: 0.12em; gap: 0.5rem; } }

.lead { font-size: clamp(1.1rem, 1.4vw, 1.3rem); line-height: 1.6; color: var(--muted); }
.section--dark .lead { color: var(--on-dark); }
.section-head { max-width: 50rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head p:last-child { margin-bottom: 0; }

.head-row { display: grid; gap: 1.25rem; margin-bottom: clamp(2.5rem, 5vw, 4.5rem); align-items: end; }
.head-row h2, .head-row p { margin: 0; }
@media (min-width: 900px) { .head-row { grid-template-columns: 1.3fr 1fr; gap: 4rem; } }

.text-teal { color: var(--teal-dark); }
.section--dark .text-teal { color: var(--teal-bright); }

.tile-grid-light {
  background-image: linear-gradient(rgb(0 173 176 / 0.08) 1px, transparent 1px), linear-gradient(90deg, rgb(0 173 176 / 0.08) 1px, transparent 1px);
  background-size: 44px 44px;
}
.tile-grid-dark {
  background-image: linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
}

.img-frame { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--aqua); }
.img-frame picture { height: 100%; }
.img-frame img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- 4. Buttons ---------- */
.btn {
  --btn-bg: var(--teal); --btn-fg: var(--navy);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 52px; padding: 0.85rem 1.6rem;
  border: 2px solid transparent; border-radius: var(--radius);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 700 1rem/1.2 var(--font-head); text-decoration: none; cursor: pointer;
  overflow: hidden; isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: -2px; z-index: -1;
  background: var(--btn-hover, var(--navy));
  transform: scaleX(0); transform-origin: right; transition: transform 0.45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.btn:hover, .btn:focus-visible { color: var(--btn-hover-fg, var(--white)); }
.btn svg { width: 20px; height: 20px; flex: none; transition: transform 0.35s var(--ease); }
.btn:hover .i-arrow { transform: translateX(4px); }
.btn--navy { --btn-bg: var(--navy); --btn-fg: var(--white); --btn-hover: var(--teal); --btn-hover-fg: var(--navy); }
.btn--outline { --btn-bg: transparent; --btn-fg: var(--navy); border-color: var(--navy); }
.btn--ghost { --btn-bg: rgb(255 255 255 / 0.08); --btn-fg: var(--white); --btn-hover: var(--white); --btn-hover-fg: var(--navy); border-color: rgb(255 255 255 / 0.6); }
.btn--lg { min-height: 60px; padding-inline: 2rem; font-size: 1.0625rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
@media (max-width: 479px) { .btn-row .btn { flex: 1 1 100%; } }

.link-arrow { display: inline-flex; align-items: center; gap: 0.5rem; font: 700 1rem var(--font-head); text-decoration: none; color: var(--navy); border-bottom: 2px solid var(--teal); padding-bottom: 0.2rem; }
.link-arrow svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }
.link-arrow:hover svg, a:hover .link-arrow svg { transform: translateX(4px); }

/* ---------- 5. Header & menu ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 200; color: var(--white);
  transition: background-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease), transform 0.5s var(--ease);
}
.site-header::after {
  content: ""; position: absolute; inset: 0 0 -48px 0; z-index: -1; pointer-events: none;
  background: linear-gradient(rgb(4 18 31 / 0.6), transparent); transition: opacity 0.4s var(--ease);
}
.site-header.is-scrolled, .site-header--solid { background: rgb(255 255 255 / 0.97); color: var(--navy); box-shadow: 0 1px 0 var(--line), 0 12px 30px -20px rgb(6 26 49 / 0.4); }
@supports (backdrop-filter: blur(10px)) {
  .site-header.is-scrolled, .site-header--solid { background: rgb(255 255 255 / 0.88); backdrop-filter: blur(14px) saturate(1.4); }
}
.site-header.is-scrolled::after, .site-header--solid::after { opacity: 0; }

.header-inner { position: relative; display: flex; align-items: center; gap: 1.5rem; height: var(--header-h); }
/* Logo centred on phones and tablets; top left on desktop (see min-width: 1240px) */
.brand { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: block; width: 128px; z-index: 2; }
.brand img { width: 100%; height: auto; transition: opacity 0.35s var(--ease); }
.brand .logo-dark { position: absolute; inset: 0; opacity: 0; }
.site-header.is-scrolled .logo-dark, .site-header--solid .logo-dark { opacity: 1; }
.site-header.is-scrolled .logo-light, .site-header--solid .logo-light { opacity: 0; }
@media (min-width: 768px) { .brand { width: 150px; } }
@media (min-width: 1440px) { .brand { width: 168px; } }

.header-actions { margin-left: auto; display: flex; align-items: center; gap: 1rem; z-index: 2; }
.header-phone { display: none; align-items: center; gap: 0.5rem; color: inherit; text-decoration: none; font: 700 0.98rem var(--font-head); white-space: nowrap; }
.header-phone svg { width: 18px; height: 18px; color: var(--teal); }
.header-phone:hover { color: var(--teal); }
.header-cta { display: none; min-height: 46px; padding: 0.6rem 1.2rem; font-size: 0.95rem; }
@media (min-width: 640px) { .header-cta { display: inline-flex; } }

.nav-toggle {
  display: inline-flex; align-items: center; gap: 0.75rem; min-height: 46px; padding: 0 0.5rem 0 0; z-index: 2;
  border: 0; background: none; color: inherit; cursor: pointer;
  font: 700 0.8rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase;
}
.nav-toggle-box { position: relative; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid currentColor; transition: background-color 0.3s var(--ease), border-color 0.3s var(--ease), color 0.3s; }
.nav-toggle-box span { position: absolute; left: 13px; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.45s var(--ease), top 0.45s var(--ease), width 0.45s var(--ease); }
.nav-toggle-box span:nth-child(1) { top: 18px; }
.nav-toggle-box span:nth-child(2) { top: 25px; width: 11px; }
.nav-toggle:hover .nav-toggle-box span:nth-child(2) { width: 18px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:nth-child(2) { top: 21px; width: 18px; transform: rotate(-45deg); }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav a { text-decoration: none; }
.nav-extra { display: none; }

@media (max-width: 1239px) {
  .nav-toggle { order: 3; margin-left: auto; flex-direction: row-reverse; padding: 0 0 0 0.5rem; }
  .header-actions { order: 1; margin-left: 0; }
  .js .site-nav {
    position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column;
    padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(1.5rem + env(safe-area-inset-bottom));
    background-color: var(--navy-deep);
    background-image:
      radial-gradient(circle at 90% 0%, rgb(0 173 176 / 0.3), transparent 50%),
      linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
      linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
    background-size: auto, 44px 44px, 44px 44px;
    color: var(--white); overflow-y: auto; overscroll-behavior: contain;
    visibility: hidden; clip-path: inset(0 0 100% 0);
    transition: clip-path 0.75s var(--ease), visibility 0s linear 0.75s;
  }
  .js .site-nav.is-open { visibility: visible; clip-path: inset(0 0 0 0); transition: clip-path 0.75s var(--ease), visibility 0s; }
  .site-nav { counter-reset: nav; }
  .site-nav li { counter-increment: nav; overflow: hidden; border-bottom: 1px solid var(--line-dark); }
  .site-nav li a {
    display: flex; align-items: baseline; gap: 1rem; padding: 0.65rem 0; color: var(--white);
    font: 800 clamp(1.75rem, 7.5vw, 3.25rem)/1.1 var(--font-head); letter-spacing: -0.03em;
    transition: color 0.3s, padding-left 0.4s var(--ease);
  }
  .site-nav li a::before { content: counter(nav, decimal-leading-zero); font: 700 0.8rem var(--font-head); letter-spacing: 0.1em; color: var(--teal); min-width: 1.75rem; }
  .site-nav li a:hover { color: var(--teal-bright); padding-left: 0.5rem; }
  .site-nav li a[aria-current="page"] { color: var(--teal-bright); }
  .js .site-nav li a { transform: translateY(105%); transition: transform 0.7s var(--ease), color 0.3s, padding-left 0.4s var(--ease); }
  .js .site-nav.is-open li a { transform: none; }
  .js .site-nav.is-open li:nth-child(1) a { transition-delay: 0.2s, 0s, 0s; }
  .js .site-nav.is-open li:nth-child(2) a { transition-delay: 0.25s, 0s, 0s; }
  .js .site-nav.is-open li:nth-child(3) a { transition-delay: 0.3s, 0s, 0s; }
  .js .site-nav.is-open li:nth-child(4) a { transition-delay: 0.35s, 0s, 0s; }
  .js .site-nav.is-open .nav-right li:nth-child(1) a { transition-delay: 0.4s, 0s, 0s; }
  .js .site-nav.is-open .nav-right li:nth-child(2) a { transition-delay: 0.45s, 0s, 0s; }
  .js .site-nav.is-open .nav-right li:nth-child(3) a { transition-delay: 0.5s, 0s, 0s; }
  .js .nav-extra {
    display: grid; gap: 1rem; margin-top: auto; padding-top: 2.5rem;
    opacity: 0; transform: translateY(16px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
  }
  .js .site-nav.is-open .nav-extra { opacity: 1; transform: none; transition-delay: 0.55s; }
  .nav-extra p { margin: 0; color: var(--on-dark-muted); font-size: 0.95rem; }
  .nav-extra .nav-phone { color: var(--white); font: 800 1.6rem var(--font-head); text-decoration: none; letter-spacing: -0.02em; }
  .nav-extra .btn { justify-self: start; }

  .menu-open { overflow: hidden; }
  .menu-open .site-header { color: var(--white); background: transparent; box-shadow: none; backdrop-filter: none; transform: none; }
  .menu-open .site-header::after { opacity: 0; }
  .menu-open .site-header .logo-light { opacity: 1; }
  .menu-open .site-header .logo-dark { opacity: 0; }
  .menu-open .header-cta, .menu-open .call-fab { visibility: hidden; }

  .no-js .header-inner { flex-wrap: wrap; height: auto; padding-block: 0.75rem; }
  .no-js .brand { position: static; transform: none; }
  .no-js .site-nav { width: 100%; order: 3; }
  .no-js .site-nav ul { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; }
  .no-js .site-nav a { color: inherit; font-weight: 600; font-size: 0.95rem; }
  .no-js .nav-toggle { display: none; }
}

@media (min-width: 1240px) {
  .nav-toggle { display: none; }
  .header-inner { gap: 2.25rem; }
  /* Desktop: standard header with the logo top left, links grouped on the right */
  .brand { position: relative; left: auto; top: auto; transform: none; }
  .site-nav { margin-left: auto; display: flex; align-items: center; gap: clamp(1.25rem, 1.8vw, 2rem); }
  .header-actions { margin-left: 0; }
  .site-nav ul { display: flex; gap: clamp(1.25rem, 1.8vw, 2rem); }
  .site-nav a { position: relative; display: block; padding: 0.5rem 0; color: inherit; font-weight: 600; font-size: 0.95rem; white-space: nowrap; }
  .site-nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: right; transition: transform 0.4s var(--ease); }
  .site-nav a:hover::after, .site-nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
}
@media (min-width: 1440px) { .header-phone { display: inline-flex; } }

.call-fab {
  position: fixed; right: max(1rem, env(safe-area-inset-right)); bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 150;
  display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%;
  background: var(--teal); color: var(--navy);
  box-shadow: 0 10px 28px -6px rgb(6 26 49 / 0.55), 0 0 0 4px rgb(255 255 255 / 0.9);
  transition: transform 0.35s var(--ease), background-color 0.3s;
}
.call-fab svg { width: 26px; height: 26px; }
.call-fab::before { /* gentle pulse ring */
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--teal);
  animation: fab-pulse 2.6s var(--ease) infinite;
}
.call-fab:hover, .call-fab:focus-visible { transform: scale(1.06); background: var(--teal-bright); color: var(--navy); }
@keyframes fab-pulse { 0% { transform: scale(1); opacity: 0.8; } 70%, 100% { transform: scale(1.55); opacity: 0; } }
@media (min-width: 1240px) { .call-fab { display: none; } }
@media (max-width: 1239px) {
  .footer-bottom { padding-bottom: 6rem; }
}

/* ---------- 6. Heroes ---------- */
.hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: max(560px, 100svh);
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem)) 0 clamp(3rem, 9vh, 8rem);
  background: var(--navy-ink); color: var(--white); overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: -3; }
.hero-bg picture { height: 100%; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; animation: hero-zoom 2.8s var(--ease) both; }
@keyframes hero-zoom { from { transform: scale(1.12); } to { transform: scale(1); } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(0deg, rgb(4 18 31 / 0.94) 0%, rgb(4 18 31 / 0.6) 42%, rgb(4 18 31 / 0.15) 75%), linear-gradient(90deg, rgb(4 18 31 / 0.55), transparent 70%);
}
@media (min-width: 900px) {
  .hero::before { background: linear-gradient(90deg, rgb(4 18 31 / 0.93) 0%, rgb(4 18 31 / 0.74) 36%, rgb(4 18 31 / 0.12) 68%, rgb(4 18 31 / 0) 100%), linear-gradient(0deg, rgb(4 18 31 / 0.6) 0%, transparent 35%); }
}

/* Tile reveal: echoes the tile wall in the logo */
.hero-tiles { position: absolute; inset: 0; z-index: -1; display: grid; grid-template-columns: repeat(var(--cols, 6), 1fr); grid-auto-rows: 1fr; pointer-events: none; }
@media (min-width: 768px) { .hero-tiles { --cols: 10; } }
.hero-tiles span { background: var(--navy-deep); outline: 1px solid rgb(0 173 176 / 0.22); animation: tile-out 0.85s var(--ease) both; animation-delay: calc(var(--d) * 50ms + 120ms); }
.hero-tiles span:nth-child(7n+3) { background: #0b3550; }
.hero-tiles span:nth-child(13n+5) { background: var(--teal); }
@keyframes tile-out { from { transform: none; opacity: 1; } to { transform: scale(0.3) rotate(6deg); opacity: 0; visibility: hidden; } }

.hero-content { position: relative; max-width: 54rem; }
@media (min-width: 900px) and (max-height: 860px) {
  .hero h1 { margin-bottom: 1rem; }
  .hero .lead { font-size: 1.05rem; margin-bottom: 1.5rem; max-width: 34rem; }
  .hero .eyebrow { margin-bottom: 0.75rem; }
  .hero-card { padding: 1.25rem; width: 290px; bottom: clamp(3rem, 9vh, 8rem); }
  .hero-card ul { margin-bottom: 0.9rem; }
}
.hero .eyebrow { color: var(--teal-bright); animation: fade-up 1s var(--ease) 0.1s both; }
.hero h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero h1 .line { display: block; overflow: hidden; padding-bottom: 0.1em; margin-bottom: -0.1em; }
.hero h1 .line > span { display: inline-block; }
@media (min-width: 900px) {
  .hero h1 .line > span { animation: line-up 1.1s var(--ease) both; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 0.09s; }
  .hero h1 .line:nth-child(3) > span { animation-delay: 0.18s; }
}
.hero h1 em { font-style: normal; color: var(--teal-bright); }
@keyframes line-up { from { transform: translateY(100%); } to { transform: none; } }
.hero .lead { color: var(--on-dark); max-width: 36rem; margin-bottom: 2rem; animation: fade-up 1s var(--ease) 0.35s both; }
.hero .btn-row { animation: fade-up 1s var(--ease) 0.45s both; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-card {
  display: none; position: absolute; right: var(--gutter); bottom: clamp(3rem, 9vh, 8rem);
  width: 310px; padding: 1.6rem;
  background: rgb(6 26 49 / 0.45); border: 1px solid rgb(255 255 255 / 0.22); border-radius: var(--radius-lg);
  backdrop-filter: blur(18px) saturate(1.4);
  animation: fade-up 1s var(--ease) 0.75s both;
}
.hero-card h2 { font-size: 1.15rem; color: var(--white); margin-bottom: 0.9rem; letter-spacing: -0.01em; }
.hero-card ul { list-style: none; padding: 0; margin: 0 0 1.25rem; display: grid; gap: 0.55rem; font-size: 0.95rem; color: var(--on-dark); }
.hero-card li { display: flex; gap: 0.6rem; align-items: flex-start; }
.hero-card li svg { width: 18px; height: 18px; color: var(--teal-bright); flex: none; margin-top: 0.2rem; }
.hero-card .small { display: block; font: 700 0.72rem var(--font-head); color: var(--on-dark-muted); letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 0.2rem; }
.hero-card a { color: var(--white); font: 800 1.4rem var(--font-head); text-decoration: none; letter-spacing: -0.02em; }
.hero-card a:hover { color: var(--teal-bright); }
@media (min-width: 1100px) { .hero-card { display: block; } }

.scroll-cue { position: absolute; left: 50%; bottom: 1.5rem; display: none; width: 1px; height: 56px; background: rgb(255 255 255 / 0.25); overflow: hidden; }
.scroll-cue::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--teal-bright); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { to { top: 100%; } }
@media (min-width: 900px) { .scroll-cue { display: block; } }

/* Inner page hero */
.page-hero {
  position: relative; isolation: isolate; display: flex; align-items: flex-end;
  min-height: max(480px, 72svh);
  padding: calc(var(--header-h) + clamp(1.5rem, 5vh, 3rem)) 0 clamp(3rem, 8vh, 5.5rem);
  background: var(--navy-ink); color: var(--white); overflow: hidden;
}
.page-hero--short { min-height: max(420px, 58svh); }
.page-hero .hero-bg img { animation-duration: 2.2s; object-position: 50% 50%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: linear-gradient(0deg, rgb(4 18 31 / 0.95) 0%, rgb(4 18 31 / 0.55) 50%, rgb(4 18 31 / 0.3) 100%), linear-gradient(90deg, rgb(4 18 31 / 0.65) 0%, transparent 70%); }
.page-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; z-index: -1; background: repeating-linear-gradient(90deg, var(--teal) 0 42px, transparent 42px 46px); }
.page-hero h1 { color: var(--white); max-width: 17ch; animation: fade-up 1s var(--ease) 0.1s both; }
.page-hero .lead { color: var(--on-dark); max-width: 40rem; margin-bottom: 1.75rem; animation: fade-up 1s var(--ease) 0.2s both; }
.page-hero .btn-row { animation: fade-up 1s var(--ease) 0.3s both; }
.page-hero .eyebrow { color: var(--teal-bright); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.25rem 0.6rem; padding: 0; margin: 0 0 1.5rem; font-size: 0.9rem; color: var(--on-dark-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 0.6rem; opacity: 0.6; }
.breadcrumb a { color: var(--white); text-decoration-color: rgb(255 255 255 / 0.4); }
.breadcrumb a:hover { color: var(--teal-bright); }

/* ---------- 7. Components ---------- */

/* Marquee */
.marquee { background: var(--teal); color: var(--navy); overflow: hidden; padding-block: 1.15rem; }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee ul { display: flex; list-style: none; margin: 0; padding: 0; }
.marquee li { display: flex; align-items: center; gap: 2rem; padding-right: 2rem; font: 800 clamp(1.25rem, 2.6vw, 2rem)/1 var(--font-head); letter-spacing: -0.02em; text-transform: uppercase; white-space: nowrap; }
.marquee li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px var(--navy); }
.marquee li::after {
  content: ""; width: 14px; height: 14px; flex: none;
  background: linear-gradient(var(--navy) 0 0) 0 0 / 6px 6px no-repeat, linear-gradient(var(--navy) 0 0) 8px 0 / 6px 6px no-repeat, linear-gradient(var(--navy) 0 0) 0 8px / 6px 6px no-repeat, linear-gradient(var(--white) 0 0) 8px 8px / 6px 6px no-repeat;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* Intro: statement + layered photos */
.intro { display: grid; gap: 3.5rem; align-items: center; }
@media (min-width: 960px) {
  .intro { grid-template-columns: 5fr 6fr; gap: clamp(3rem, 6vw, 7rem); }
  .intro--reverse > :first-child { order: 2; }
}
.intro h2 { margin-bottom: 1.5rem; }
.intro .checklist { margin-block: 1.75rem 2rem; }

.stack { position: relative; isolation: isolate; padding: 0 0 18% 16%; }
.stack-main { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.stack-sub { position: absolute !important; left: 0; bottom: 0; width: 44%; aspect-ratio: 3 / 4; border: 8px solid var(--white); box-shadow: var(--shadow); }
.section--paper .stack-sub { border-color: var(--paper); }
.stack::before {
  content: ""; position: absolute; right: -16px; top: 10%; width: 36%; height: 48%; z-index: -1; border-radius: var(--radius-lg);
  background-color: var(--teal);
  background-image: linear-gradient(rgb(255 255 255 / 0.5) 2px, transparent 2px), linear-gradient(90deg, rgb(255 255 255 / 0.5) 2px, transparent 2px);
  background-size: 24px 24px;
}
@media (max-width: 599px) { .stack::before { right: -8px; } }
.stack--landscape .stack-main { aspect-ratio: 4 / 3; }

.badge { position: absolute; right: 5%; bottom: 3%; z-index: 2; width: clamp(108px, 13vw, 148px); aspect-ratio: 1; border-radius: 50%; background: var(--navy); display: grid; place-items: center; box-shadow: var(--shadow); }
.badge svg.badge-ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 24s linear infinite; }
.badge svg.badge-ring text { font: 700 10.5px var(--font-head); letter-spacing: 2.6px; text-transform: uppercase; fill: var(--white); }
.badge img { width: 34%; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 0.75rem; }
.checklist li { position: relative; padding-left: 2.1rem; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 0.22em; width: 1.3rem; height: 1.3rem; border-radius: 3px;
  background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 78% no-repeat;
}
@media (min-width: 640px) { .checklist--2 { grid-template-columns: 1fr 1fr; column-gap: 2rem; } }
.section--dark .checklist li { color: var(--on-dark); }

/* Interactive services list */
.svc { display: grid; gap: 3rem; }
@media (min-width: 1024px) { .svc { grid-template-columns: 1.15fr 1fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } }
.svc-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); counter-reset: svc; }
.svc-item { border-bottom: 1px solid var(--line); counter-increment: svc; }
.svc-link { display: grid; grid-template-columns: auto 1fr auto; gap: 0.35rem 1.25rem; align-items: center; padding: clamp(1.4rem, 2.4vw, 2rem) 0; color: var(--navy); text-decoration: none; }
.svc-link::before { content: counter(svc, decimal-leading-zero); font: 700 0.85rem var(--font-head); color: var(--teal-dark); letter-spacing: 0.08em; align-self: start; padding-top: 0.7rem; }
.svc-link h3 { margin: 0; font-size: clamp(1.5rem, 2.6vw + 0.4rem, 2.6rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; transition: transform 0.5s var(--ease), color 0.3s; }
.svc-link p { grid-column: 2; margin: 0; color: var(--muted); max-width: 34rem; }
.svc-arrow { grid-row: 1 / span 2; grid-column: 3; display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color 0.35s, border-color 0.35s, transform 0.5s var(--ease); }
.svc-arrow svg { width: 20px; height: 20px; }
.svc-link:hover h3, .svc-item.is-active h3 { transform: translateX(10px); color: var(--teal-dark); }
.svc-link:hover .svc-arrow, .svc-item.is-active .svc-arrow { background: var(--teal); border-color: var(--teal); transform: rotate(-45deg); }
.svc-thumb { display: block; grid-column: 1 / -1; margin-top: 0.75rem; aspect-ratio: 16 / 10; }
.svc-frame { display: none; }
@media (max-width: 599px) { .svc-arrow { width: 44px; height: 44px; } }
@media (min-width: 1024px) {
  .svc-thumb { display: none; }
  .svc-frame { display: block; position: sticky; top: calc(var(--header-h) + 2rem); aspect-ratio: 4 / 5; border-radius: var(--radius-lg); overflow: hidden; background: var(--aqua); box-shadow: var(--shadow); }
  .svc-frame picture { position: absolute; inset: 0; opacity: 0; transform: scale(1.08); transition: opacity 0.7s var(--ease), transform 1.4s var(--ease); }
  .svc-frame picture.is-active { opacity: 1; transform: none; }
  .svc-frame img { width: 100%; height: 100%; object-fit: cover; }
}

/* Bento (why Highview) */
.bento { display: grid; gap: 1rem; }
@media (min-width: 700px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .bento { grid-template-columns: 1.3fr 1fr 1fr; } .bento-photo { grid-row: span 2; } }
.bento-cell { position: relative; padding: clamp(1.75rem, 3vw, 2.5rem); border-radius: var(--radius-lg); background: rgb(255 255 255 / 0.035); border: 1px solid var(--line-dark); transition: border-color 0.4s, background-color 0.4s, transform 0.6s var(--ease); }
.bento-cell:hover { border-color: rgb(0 173 176 / 0.6); background: rgb(255 255 255 / 0.06); transform: translateY(-4px); }
.bento-num { display: block; font: 800 3.5rem/1 var(--font-head); color: transparent; -webkit-text-stroke: 1.5px var(--teal); margin-bottom: 1.5rem; letter-spacing: -0.04em; }
.bento-cell h3 { color: var(--white); margin-bottom: 0.6rem; }
.bento-cell p { margin: 0; color: var(--on-dark-muted); }
.bento-photo { padding: 0; overflow: hidden; min-height: 420px; border: 0; }
.bento-photo:hover { transform: none; }
.bento-photo picture, .bento-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(4 18 31 / 0.92), transparent 60%); }
.bento-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: clamp(1.75rem, 3vw, 2.5rem); }
.bento-caption p { color: var(--on-dark); margin: 0.5rem 0 0; }
.bento-caption h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 800; letter-spacing: -0.03em; }
.bento-teal { background: var(--teal); border-color: var(--teal); }
.bento-teal:hover { background: var(--teal); border-color: var(--teal-bright); }
.bento-teal h3 { color: var(--navy); }
.bento-teal p { color: var(--navy); }
.bento-teal .bento-num { -webkit-text-stroke-color: var(--navy); }

/* Full-bleed photo band */
.band { position: relative; isolation: isolate; overflow: hidden; min-height: clamp(420px, 72vh, 780px); display: flex; align-items: center; padding-block: 4rem; color: var(--white); background: var(--navy-ink); }
.band picture { position: absolute; inset: -10% 0; z-index: -2; }
.band img { width: 100%; height: 100%; object-fit: cover; }
.band::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 18 31 / 0.88), rgb(4 18 31 / 0.35) 65%, rgb(4 18 31 / 0.1)); }
.band-text { max-width: 46rem; }
.band-quote { font: 800 clamp(1.9rem, 4.4vw, 4rem)/1.04 var(--font-head); font-size: clamp(1.9rem, min(4.4vw, 8.5svh), 4rem); letter-spacing: -0.035em; color: var(--white); margin-bottom: 1.5rem; text-wrap: balance; }
.band-quote em { font-style: normal; color: var(--teal-bright); }
.band-sub { font-size: 1.15rem; color: var(--on-dark); max-width: 34rem; margin: 0; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .band picture { animation: parallax linear both; animation-timeline: view(); }
    @keyframes parallax { from { transform: translateY(-7%); } to { transform: translateY(7%); } }
  }
}

/* Process timeline */
.process { display: grid; gap: 3rem; }
@media (min-width: 1000px) {
  .process { grid-template-columns: 1fr 1.25fr; gap: clamp(3rem, 7vw, 8rem); align-items: start; }
  .process-head { position: sticky; top: calc(var(--header-h) + 3rem); }
}
.steps { list-style: none; margin: 0; padding: 0 0 0 2rem; position: relative; }
.steps::before, .steps::after { content: ""; position: absolute; left: 7px; top: 0.6rem; bottom: 0.6rem; width: 2px; background: var(--line); }
.section--dark .steps::before { background: var(--line-dark); }
.steps::after { background: var(--teal); transform-origin: top; }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .steps::after { animation: grow linear both; animation-timeline: view(); animation-range: entry 20% cover 65%; }
    @keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
  }
}
.steps li { position: relative; padding: 0 0 clamp(2.5rem, 5vw, 4rem) 1.75rem; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ""; position: absolute; left: -2rem; top: 0.45rem; width: 16px; height: 16px; z-index: 1; background: var(--teal); border: 4px solid var(--white); box-shadow: 0 0 0 2px var(--teal); border-radius: 3px; }
.section--paper .steps li::before { border-color: var(--paper); }
.section--dark .steps li::before { border-color: var(--navy); }
.step-num { display: block; font: 800 clamp(3rem, 6vw, 4.5rem)/0.9 var(--font-head); letter-spacing: -0.05em; color: transparent; -webkit-text-stroke: 1.5px var(--teal-dark); margin-bottom: 0.75rem; }
.section--dark .step-num { -webkit-text-stroke-color: var(--teal); }
.steps h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-bottom: 0.5rem; }
.steps p { margin: 0; color: var(--muted); max-width: 34rem; }
.section--dark .steps p { color: var(--on-dark-muted); }

/* Horizontal showcase rail */
.rail-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.5rem; }
.rail-head h2 { margin: 0; max-width: 18ch; }
.rail-head p { max-width: 30rem; margin: 1rem 0 0; color: var(--muted); }
.rail-controls { display: flex; gap: 0.6rem; }
.rail-btn { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 1.5px solid var(--navy); background: transparent; color: var(--navy); cursor: pointer; transition: background-color 0.3s, color 0.3s, opacity 0.3s; }
.rail-btn:hover:not(:disabled) { background: var(--navy); color: var(--white); }
.rail-btn:disabled { opacity: 0.3; cursor: default; }
.rail-btn svg { width: 22px; height: 22px; }
.no-js .rail-controls { display: none; }
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 410px); gap: 1.25rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; overscroll-behavior-x: contain;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2)) 1.5rem;
  scroll-padding-inline: max(var(--gutter), calc((100vw - var(--container)) / 2));
  margin: 0; list-style: none; scrollbar-width: thin; scrollbar-color: var(--teal) transparent;
}
.rail li { scroll-snap-align: start; }
.rail-card { display: block; position: relative; text-decoration: none; color: var(--white); border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 5; background: var(--navy); }
.rail-card picture, .rail-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.rail-card img { transition: transform 1.1s var(--ease); }
.rail-card:hover img { transform: scale(1.06); }
.rail-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgb(4 18 31 / 0.9), transparent 52%); }
.rail-caption { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 1.5rem; }
.rail-tag { display: inline-block; font: 700 0.7rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--navy); background: var(--teal); padding: 0.3rem 0.55rem; border-radius: 3px; margin-bottom: 0.75rem; }
.rail-card h3 { color: var(--white); margin: 0; font-size: 1.45rem; }
.rail-card:hover { color: var(--white); }

/* Mosaic of style tiles */
.mosaic { display: grid; gap: 1rem; }
@media (min-width: 640px) { .mosaic { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) {
  .mosaic { grid-template-columns: repeat(12, 1fr); grid-auto-rows: 290px; }
  .mosaic > :nth-child(6n+1) { grid-column: span 7; grid-row: span 2; }
  .mosaic > :nth-child(6n+2), .mosaic > :nth-child(6n+3) { grid-column: span 5; }
  .mosaic > :nth-child(6n+4), .mosaic > :nth-child(6n+5), .mosaic > :nth-child(6n+6) { grid-column: span 4; }
}
.tile-card { position: relative; min-height: 360px; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy); color: var(--white); isolation: isolate; }
@media (min-width: 1024px) { .tile-card { min-height: 0; } }
.tile-card picture, .tile-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.tile-card img { transition: transform 1.2s var(--ease); }
.tile-card:hover img { transform: scale(1.05); }
.tile-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(4 18 31 / 0.93) 0%, rgb(4 18 31 / 0.4) 45%, transparent 72%); }
.tile-card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: clamp(1.4rem, 2.5vw, 2rem); }
.tile-card h3 { color: var(--white); margin-bottom: 0.4rem; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 800; letter-spacing: -0.025em; }
.tile-card p { margin: 0; color: var(--on-dark); max-width: 30rem; font-size: 0.98rem; }
.tile-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: var(--teal); color: var(--navy); margin-bottom: 1rem; }
.tile-icon svg { width: 22px; height: 22px; }

/* Services grid */
.svc-grid { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
@media (min-width: 640px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .svc-grid { grid-template-columns: repeat(4, 1fr); } }
.svc-cell { position: relative; background: var(--white); padding: clamp(1.75rem, 2.5vw, 2.25rem); display: flex; flex-direction: column; min-height: 320px; transition: background-color 0.4s var(--ease); }
.svc-cell:hover { background: var(--aqua); }
.svc-ico { display: grid; place-items: center; width: 56px; height: 56px; border-radius: var(--radius); background: var(--navy); color: var(--teal); transition: transform 0.5s var(--ease), background-color 0.4s, color 0.4s; }
.svc-cell:hover .svc-ico { transform: rotate(-8deg) scale(1.05); background: var(--teal); color: var(--navy); }
.svc-ico svg { width: 26px; height: 26px; }
.svc-cell h3 { margin: auto 0 0.5rem; padding-top: 2.5rem; }
.svc-cell p { color: var(--muted); margin: 0 0 1.25rem; font-size: 0.98rem; }
.svc-more { font: 700 0.95rem var(--font-head); text-decoration: none; display: inline-flex; gap: 0.4rem; align-items: center; }
.svc-more::after { content: ""; position: absolute; inset: 0; }
.svc-more svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.svc-cell:hover .svc-more svg { transform: translateX(4px); }
.svc-cell:focus-within { outline: 3px solid var(--teal); outline-offset: -3px; }
.svc-more:focus-visible { outline: none; }

/* Values (about) */
.values { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line-dark); }
@media (min-width: 900px) { .values { grid-template-columns: repeat(2, 1fr); column-gap: 4rem; } }
.values li { display: grid; grid-template-columns: auto 1fr; gap: 1.5rem; padding: 2rem 0; border-bottom: 1px solid var(--line-dark); }
.values .bento-num { margin: 0; font-size: 2.75rem; }
.values h3 { color: var(--white); margin-bottom: 0.4rem; }
.values p { margin: 0; color: var(--on-dark-muted); }

.cred-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 3vw, 2.5rem); box-shadow: var(--shadow); border-top: 5px solid var(--teal); margin-top: 2rem; }
.cred-card h3 { margin-bottom: 1.25rem; }

/* Link panels */
.panels { display: grid; gap: 1rem; }
@media (min-width: 800px) { .panels { grid-template-columns: 1fr 1fr; } }
.panel { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 380px; padding: clamp(1.75rem, 3vw, 2.75rem); border-radius: var(--radius-lg); overflow: hidden; isolation: isolate; color: var(--white); text-decoration: none; background: var(--navy); }
.panel picture, .panel img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.panel img { transition: transform 1.2s var(--ease); }
.panel:hover img { transform: scale(1.05); }
.panel::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgb(4 18 31 / 0.93), rgb(4 18 31 / 0.2) 70%); }
.panel .eyebrow { color: var(--teal-bright); }
.panel h3 { color: var(--white); font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; letter-spacing: -0.03em; margin: 0 0 1rem; }
.panel .link-arrow { color: var(--white); align-self: flex-start; }
.panel:hover { color: var(--white); }

/* FAQ */
.faq-layout { display: grid; gap: 2.5rem; }
@media (min-width: 1000px) { .faq-layout { grid-template-columns: 1fr 1.6fr; gap: clamp(3rem, 6vw, 6rem); align-items: start; } .faq-side { position: sticky; top: calc(var(--header-h) + 3rem); } }
.faq-call { margin-top: 2rem; padding: 1.75rem; border-radius: var(--radius-lg); background: var(--navy); color: var(--on-dark); }
.faq-call p { margin-bottom: 0.25rem; }
.faq-call a { color: var(--white); font: 800 1.6rem var(--font-head); text-decoration: none; letter-spacing: -0.02em; }
.faq-call a:hover { color: var(--teal-bright); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:first-child { border-top: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 1.5rem 3.75rem 1.5rem 0; font: 700 clamp(1.1rem, 1.6vw, 1.3rem)/1.35 var(--font-head); color: var(--navy); letter-spacing: -0.01em; transition: color 0.3s; }
.faq summary:hover { color: var(--teal-dark); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 0; top: 50%; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1.5px solid var(--line);
  background: linear-gradient(var(--navy) 0 0) center / 14px 2px no-repeat, linear-gradient(var(--navy) 0 0) center / 2px 14px no-repeat;
  transition: transform 0.45s var(--ease), background-color 0.3s, border-color 0.3s;
}
.faq details[open] summary::after { transform: rotate(135deg); background-color: var(--teal); border-color: var(--teal); }
.faq-answer { padding: 0 3.75rem 1.6rem 0; color: var(--muted); }
.faq-answer p { margin: 0; }

/* Big CTA */
.cta { position: relative; isolation: isolate; overflow: hidden; padding-block: clamp(5rem, 12vw, 9rem); background: var(--navy-ink); color: var(--on-dark); }
.cta picture { position: absolute; inset: 0; z-index: -2; }
.cta img { width: 100%; height: 100%; object-fit: cover; }
.cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(4 18 31 / 0.95) 0%, rgb(4 18 31 / 0.82) 50%, rgb(4 18 31 / 0.5) 100%); }
.cta-inner { display: grid; gap: 2.5rem; align-items: end; }
@media (min-width: 1000px) { .cta-inner { grid-template-columns: 1.4fr 1fr; gap: 5rem; } }
.cta h2 { color: var(--white); font-size: clamp(2.25rem, 5vw, 4.5rem); font-size: clamp(2.25rem, min(5vw, 9svh), 4.5rem); line-height: 0.98; letter-spacing: -0.04em; margin-bottom: 1.5rem; }
.cta h2 em { font-style: normal; color: var(--teal-bright); }
.cta p { font-size: 1.15rem; max-width: 36rem; }
.cta-contact { border-left: 2px solid var(--teal); padding-left: 1.75rem; }
.cta-contact .small { display: block; font: 700 0.78rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; color: var(--teal-bright); margin-bottom: 0.4rem; }
.cta-phone { display: inline-block; color: var(--white); font: 800 clamp(2rem, 4vw, 3rem)/1.1 var(--font-head); letter-spacing: -0.03em; text-decoration: none; margin-bottom: 1.5rem; }
.cta-phone:hover { color: var(--teal-bright); }
.cta-contact p { font-size: 0.98rem; color: var(--on-dark-muted); margin: 1.25rem 0 0; }

/* Gallery */
.gallery-note { display: flex; gap: 1rem; align-items: flex-start; padding: 1.25rem 1.5rem; margin-bottom: 2rem; background: var(--aqua); border-left: 4px solid var(--teal); border-radius: var(--radius); }
.gallery-note p { margin: 0; color: var(--navy); }
.gallery-note svg { width: 22px; height: 22px; color: var(--teal-dark); flex: none; margin-top: 0.15rem; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 2rem; }
.no-js .gallery-filters { display: none; }
.filter-btn { min-height: 46px; padding: 0.5rem 1.3rem; border: 1.5px solid var(--line); border-radius: 999px; background: var(--white); color: var(--navy); font: 700 0.95rem var(--font-head); cursor: pointer; transition: border-color 0.3s, background-color 0.3s, color 0.3s; }
.filter-btn:hover { border-color: var(--teal); }
.filter-btn[aria-pressed="true"] { background: var(--navy); border-color: var(--navy); color: var(--white); }
.masonry { columns: 2 200px; column-gap: 0.75rem; list-style: none; padding: 0; margin: 0; }
@media (min-width: 1024px) { .masonry { columns: 3; column-gap: 1.25rem; } }
.masonry li { break-inside: avoid; margin-bottom: 0.75rem; }
@media (min-width: 1024px) { .masonry li { margin-bottom: 1.25rem; } }
.masonry li[hidden] { display: none; }
.gallery-item { display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--aqua); color: var(--white); }
.gallery-item img { width: 100%; transition: transform 1s var(--ease); }
.gallery-item:hover img { transform: scale(1.05); }
.gi-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.5rem 1.25rem 1rem; background: linear-gradient(0deg, rgb(4 18 31 / 0.85), transparent); font: 700 0.92rem/1.3 var(--font-head); opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.gallery-item:hover .gi-caption, .gallery-item:focus-visible .gi-caption { opacity: 1; transform: none; }
@media (hover: none) { .gi-caption { opacity: 1; transform: none; font-size: 0.8rem; padding: 2rem 0.85rem 0.75rem; } }

.lightbox { position: fixed; inset: 0; z-index: 600; display: flex; align-items: center; justify-content: center; padding: 4rem 0.75rem; background: rgb(4 18 31 / 0.96); }
.lightbox[hidden] { display: none; }
.lightbox figure { margin: 0; max-width: min(1400px, 100%); text-align: center; }
.lightbox img { max-height: calc(100vh - 10rem); width: auto; margin-inline: auto; border-radius: var(--radius); touch-action: pan-y; }
.lightbox figcaption { color: var(--on-dark); margin-top: 1rem; font-size: 0.95rem; }
.lb-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 1.5px solid rgb(255 255 255 / 0.35); border-radius: 50%; background: rgb(4 18 31 / 0.4); color: var(--white); cursor: pointer; transition: background-color 0.3s, color 0.3s; }
.lb-btn:hover { background: var(--teal); border-color: var(--teal); color: var(--navy); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 0.75rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 0.75rem; top: 50%; transform: translateY(-50%); }
@media (min-width: 768px) { .lb-prev { left: 1.5rem; } .lb-next { right: 1.5rem; } }
body.lb-open { overflow: hidden; }

.testimonial { margin: 0; padding: 2rem; border-radius: var(--radius-lg); background: var(--white); box-shadow: var(--shadow); }
.testimonial blockquote { margin: 0 0 1.25rem; font-size: 1.1rem; color: var(--navy); }
.testimonial figcaption { font-weight: 600; color: var(--muted); }

/* Thank you / 404 */
.simple { min-height: 100svh; display: grid; align-items: center; padding: calc(var(--header-h) + 3rem) 0 4rem; background: var(--paper); }
.simple-inner { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 900px) { .simple-inner { grid-template-columns: 1.1fr 1fr; gap: 5rem; } }
.simple h1 { font-size: clamp(2.4rem, 6vw, 4.5rem); }
.simple .img-frame { aspect-ratio: 4 / 5; box-shadow: var(--shadow); }
.simple-code { display: block; font: 800 clamp(5rem, 14vw, 10rem)/0.85 var(--font-head); color: transparent; -webkit-text-stroke: 2px var(--teal-dark); letter-spacing: -0.05em; margin-bottom: 1.25rem; }

/* ---------- 8. Contact & form ---------- */
.contact-wrap { position: relative; z-index: 2; margin-top: clamp(-6rem, -7vw, -2.5rem); padding-bottom: var(--section-y); }
.contact-grid { display: grid; gap: 1.25rem; }
@media (min-width: 1000px) { .contact-grid { grid-template-columns: 0.85fr 1.4fr; gap: 0; align-items: stretch; } }
.contact-panel { position: relative; overflow: hidden; padding: clamp(2rem, 4vw, 3rem); border-radius: var(--radius-lg); background-color: var(--navy); color: var(--on-dark); }
@media (min-width: 1000px) { .contact-panel { border-radius: var(--radius-lg) 0 0 var(--radius-lg); } }
.contact-panel h2 { color: var(--white); font-size: clamp(1.75rem, 3vw, 2.25rem); }
.contact-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.contact-list li { display: grid; grid-template-columns: auto 1fr; gap: 1rem; padding: 1.25rem 0; border-top: 1px solid var(--line-dark); }
.c-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: var(--radius); background: rgb(0 173 176 / 0.15); color: var(--teal-bright); }
.c-ico svg { width: 22px; height: 22px; }
.contact-list h3 { color: var(--on-dark-muted); font: 700 0.75rem var(--font-head); letter-spacing: 0.16em; text-transform: uppercase; margin: 0 0 0.3rem; }
.contact-list p { margin: 0; color: var(--white); }
.contact-list a { color: var(--white); font-weight: 600; }
.contact-list a:hover { color: var(--teal-bright); }
.contact-list .c-big { font: 800 1.5rem var(--font-head); text-decoration: none; letter-spacing: -0.02em; }

.form-card { background: var(--white); border-radius: var(--radius-lg); padding: clamp(1.75rem, 4vw, 3.25rem); box-shadow: var(--shadow); }
@media (min-width: 1000px) { .form-card { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; } }
.form-card h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); }
.form-grid { display: grid; gap: 1.35rem; }
@media (min-width: 640px) { .form-grid { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; } .form-grid .full { grid-column: 1 / -1; } }
.field label, .field legend { display: block; padding: 0; margin-bottom: 0.45rem; font: 700 0.85rem var(--font-head); color: var(--navy); }
.field .req { color: #b42318; }
.field .opt { color: var(--muted); font-weight: 400; font-family: var(--font-body); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 54px; padding: 0.8rem 1rem; border: 1.5px solid #b9c5cf; border-radius: var(--radius);
  background: var(--paper); color: var(--text); font: inherit; font-size: 1rem;
  transition: border-color 0.25s, background-color 0.25s, box-shadow 0.25s;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #8696a5; }
.field textarea { min-height: 150px; resize: vertical; }
.field select { appearance: none; padding-right: 2.75rem; background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2545' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 18px no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal-dark); background-color: var(--white); box-shadow: 0 0 0 4px rgb(0 173 176 / 0.25); }
.field [aria-invalid="true"] { border-color: #b42318; background-color: #fff8f7; }
.field-error { color: #b42318; font-size: 0.92rem; margin: 0.4rem 0 0; font-weight: 600; }
.field-error:empty { display: none; }
.field-hint { color: var(--muted); font-size: 0.92rem; margin: 0.4rem 0 0; }
fieldset.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.radio-row label { position: relative; margin: 0; cursor: pointer; font: 600 0.95rem var(--font-body); }
.radio-row input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.radio-row span { display: inline-flex; align-items: center; min-height: 46px; padding: 0.5rem 1.25rem; border: 1.5px solid #b9c5cf; border-radius: 999px; background: var(--paper); color: var(--navy); transition: background-color 0.25s, border-color 0.25s, color 0.25s; }
.radio-row input:checked + span { background: var(--navy); border-color: var(--navy); color: var(--white); }
.radio-row input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 1rem; padding: 0.9rem 1rem; border-radius: var(--radius); font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-error { background: #fdecea; color: #8a1c12; }
.form-note { font-size: 0.92rem; color: var(--muted); margin: 1rem 0 0; }
@media (max-width: 639px) { .form-submit { width: 100%; } }

/* ---------- 9. Footer ---------- */
.site-footer { position: relative; overflow: hidden; background: var(--navy-ink); color: var(--on-dark-muted); font-size: 0.97rem; }
.site-footer a { color: var(--on-dark); text-decoration: none; }
.site-footer a:hover { color: var(--teal-bright); }
.footer-top { display: grid; gap: 2rem; padding-block: clamp(3.5rem, 7vw, 5.5rem) 3rem; border-bottom: 1px solid var(--line-dark); align-items: end; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1.5fr auto; } }
.footer-statement { margin: 0; font: 800 clamp(1.6rem, 3vw + 0.4rem, 2.75rem)/1.05 var(--font-head); letter-spacing: -0.035em; color: var(--white); max-width: 22ch; }
.footer-statement em { font-style: normal; color: var(--teal-bright); }
.footer-grid { display: grid; gap: 2.5rem; padding-block: 3rem; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 3rem; } }
.footer-brand img { width: 180px; margin-bottom: 1.25rem; }
.footer-brand p { max-width: 24rem; }
.site-footer h2 { font: 700 0.78rem var(--font-head); letter-spacing: 0.18em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.55rem; }
.site-footer .footer-phone { font: 800 1.35rem var(--font-head); color: var(--white); letter-spacing: -0.02em; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.75rem 2rem; padding-block: 1.5rem; border-top: 1px solid var(--line-dark); font-size: 0.86rem; position: relative; z-index: 1; }
.footer-bottom p { margin: 0; }
.site-footer .footer-bottom a { text-decoration: underline; text-decoration-color: rgb(255 255 255 / 0.4); }
.footer-word { display: block; margin: 0 0 -0.2em; padding-inline: var(--gutter); font: 800 clamp(3.5rem, 16vw, 15rem)/1 var(--font-head); letter-spacing: -0.06em; text-align: center; color: transparent; -webkit-text-stroke: 1px rgb(0 173 176 / 0.3); user-select: none; white-space: nowrap; }

/* ---------- 10. Reveal-on-scroll & motion ---------- */
.js .reveal { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(14% 0 0 0 round var(--radius-lg)); transition: clip-path 1.3s var(--ease); transition-delay: var(--rd, 0s); }
.js .reveal-img.is-visible { clip-path: inset(0 0 0 0 round var(--radius-lg)); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: 0.01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .hero-tiles { display: none; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .marquee-track { animation: none; }
  .call-fab::before { display: none; }
}

@media print {
  .site-header, .call-fab, .site-footer, .cta, .hero-tiles, .marquee { display: none; }
  body { padding: 0; }
  .hero, .page-hero { min-height: 0; color: var(--navy); background: none; }
}

/* Small phones: keep the menu button compact so it never touches the centred logo */
@media (max-width: 419px) {
  .nav-toggle-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Keep the hero buttons clear of the floating call button on phones and tablets */
@media (max-width: 1239px) { .hero { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); } }
/* Small phones: the floating call button replaces the hero call button */
@media (max-width: 479px) { .hero .btn--ghost { display: none; } }
@media (max-width: 479px) and (max-height: 700px) {
  .hero .lead { font-size: 1rem; margin-bottom: 1.25rem; }
  .hero h1 { margin-bottom: 1rem; }
}

/* ---------- Service areas ---------- */
.area-home { border-top: 1px solid var(--line); }
.area-home-inner { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1000px) { .area-home-inner { grid-template-columns: 1fr 1.1fr; gap: 5rem; } }
.area-home h2 { margin-bottom: 1.25rem; }
.area-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.area-chips a {
  display: inline-flex; align-items: center; gap: 0.5rem; min-height: 46px; padding: 0.55rem 1.1rem;
  border: 1.5px solid var(--line); border-radius: 999px; background: var(--white);
  color: var(--navy); font: 700 0.95rem var(--font-head); text-decoration: none;
  transition: background-color 0.3s, border-color 0.3s, color 0.3s;
}
.area-chips a::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: var(--teal); flex: none; }
.area-chips a:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.area-jump { margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.regions { display: grid; gap: 1.25rem; }
.region { scroll-margin-top: calc(var(--header-h) + 1.5rem); padding: clamp(1.5rem, 3vw, 2.5rem); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--white); }
.region:nth-child(even) { background: var(--paper); }
.region-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 1rem; margin-bottom: 1.5rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.region-head h2 { font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem); margin: 0; }
.region-head p { margin: 0; color: var(--muted); flex: 1 1 18rem; }
.region-count { font: 700 0.75rem var(--font-head); letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal-dark); }
.suburbs { list-style: none; margin: 0; padding: 0; columns: 2 10rem; column-gap: 1.5rem; }
@media (min-width: 768px) { .suburbs { columns: 4; } }
@media (min-width: 1200px) { .suburbs { columns: 5; } }
.suburbs li { break-inside: avoid; padding: 0.3rem 0 0.3rem 1rem; position: relative; font-size: 0.97rem; }
.suburbs li::before { content: ""; position: absolute; left: 0; top: 0.85em; width: 5px; height: 5px; border-radius: 1px; background: var(--teal); }
.cta-contact a:not(.cta-phone) { color: var(--teal-bright); }
.cta-contact a:not(.cta-phone):hover { color: var(--white); }

/* Gallery video walkthroughs */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.25rem; margin-top: 1.5rem; }
.video-card { margin: 0; }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: #111; }
.video-card figcaption { margin-top: 0.5rem; font-size: 0.95rem; }
@media (min-width: 1024px) { .video-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 960px; } }
