/* ==========================================================
   Aqualex Tradelinks — main stylesheet
   Clean, light design: off-white canvas, ink type, single aqua accent
   ========================================================== */

:root {
  --bg: #fafaf8;
  --surface: #ffffff;
  --muted-bg: #f2f2ee;
  --ink: #111315;
  --ink-2: #3b4148;
  --muted: #6a7078;
  --faint: #c9ccd0;
  --line: #e6e6e1;
  --accent: #f2b01e;      /* amber: dots, bars, highlights */
  --accent-ink: #1b3a5c;  /* navy: accent text and links on light backgrounds */
  --accent-soft: #eef2f7;
  --dark: #0b1a2a;
  --whatsapp: #25d366;

  --radius: 18px;
  --radius-lg: 28px;
  --shadow: 0 1px 2px rgba(17, 19, 21, .04), 0 8px 24px rgba(17, 19, 21, .06);
  --shadow-lg: 0 2px 4px rgba(17, 19, 21, .04), 0 24px 60px rgba(17, 19, 21, .10);
  --ease: cubic-bezier(.2, .8, .2, 1);

  --font: "Geist", "Inter", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.035em;
  margin: 0 0 .55em;
}
h1 { font-size: clamp(2.2rem, 4.8vw, 3.9rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0 0 1em; }

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

.container { width: min(1200px, 100% - 40px); margin-inline: auto; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 400;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: var(--font); font-weight: 500; font-size: .95rem; letter-spacing: -0.01em;
  padding: 14px 26px; border-radius: 999px; border: 1px solid transparent;
  text-decoration: none; cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(.97); }

/* Primary: ink pill with arrow bubble */
.btn-primary { background: var(--ink); color: #fff; padding-right: 10px; }
.btn-primary::after {
  content: ""; width: 32px; height: 32px; border-radius: 50%; flex: none;
  background: rgba(255, 255, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 17L17 7M8 7h9v9'/%3E%3C/svg%3E") center / 15px no-repeat;
  transition: transform .35s var(--ease), background-color .25s ease;
}
.btn-primary:hover { background: #000; }
.btn-primary:hover::after { transform: rotate(45deg); background-color: rgba(255, 255, 255, .26); }
.btn-primary.btn-sm { padding: 8px 8px 8px 18px; }
.btn-primary.btn-sm::after { width: 26px; height: 26px; background-size: 12px; }

.btn-outline { border-color: var(--faint); color: var(--ink); background: transparent; }
.btn-outline:hover { border-color: var(--ink); background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-soft); }
.btn-whatsapp { background: var(--whatsapp); color: #06301a; }
.btn-whatsapp:hover { background: #1fbe5a; }
.btn-sm { padding: 10px 20px; font-size: .95rem; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  /* Nearly solid instead of a live blur: a blurred bar has to be redrawn on every scroll frame */
  background: rgba(250, 250, 248, .97);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background .3s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); background: rgba(250, 250, 248, .97); }
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; transition: min-height .3s ease; }
.site-header.scrolled .nav-wrap { min-height: 66px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  position: relative; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--ink); color: #fff; font-weight: 700; font-size: 1.15rem;
  transition: transform .4s var(--ease);
}
.brand-mark::after {
  content: ""; position: absolute; right: -3px; top: -3px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--accent); border: 2px solid var(--bg);
}
.brand:hover .brand-mark { transform: rotate(-6deg); }
.brand-text { line-height: 1.05; }
.brand-text strong { display: block; font-size: 1.15rem; font-weight: 600; letter-spacing: -.02em; }
.brand-text small { font-family: var(--mono); font-size: .68rem; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; }

.site-nav { display: flex; align-items: center; gap: 28px; }
.nav-list { display: flex; gap: 24px; list-style: none; margin: 0; padding: 0; }
.nav-list > li > a {
  position: relative; font-size: .95rem; font-weight: 500; color: var(--ink-2); text-decoration: none; padding: 6px 0;
  transition: color .2s ease;
}
.nav-list > li > a::after {
  content: ""; position: absolute; left: 50%; bottom: -2px; width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent); transform: translateX(-50%) scale(0); transition: transform .3s var(--ease);
}
.nav-list > li > a:hover, .nav-list > li > a[aria-current="page"] { color: var(--ink); }
.nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: translateX(-50%) scale(1); }
.nav-phone { font-family: var(--mono); font-size: .88rem; color: var(--ink); text-decoration: none; white-space: nowrap; }
.nav-phone:hover { color: var(--accent-ink); }

.nav-toggle { display: none; background: none; border: 0; padding: 10px; cursor: pointer; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 6px 0; border-radius: 2px; transition: .25s; }

@media (max-width: 1100px) {
  .nav-phone { display: none; }
}
@media (max-width: 1020px) {
  .nav-toggle { display: block; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    padding: 8px 20px 22px; display: none;
  }
  .site-nav.open { display: flex; animation: nav-drop .3s ease both; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li > a { display: block; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav-list > li > a::after { left: auto; right: 4px; top: 50%; bottom: auto; transform: translateY(-50%) scale(0); }
  .nav-list > li > a:hover::after, .nav-list > li > a[aria-current="page"]::after { transform: translateY(-50%) scale(1); }
  .site-nav .btn { margin-top: 18px; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
}
@keyframes nav-drop { from { opacity: 0; transform: translateY(-8px); } }

/* ---------- Services dropdown ---------- */
.has-menu { position: relative; }
.menu-btn {
  font: inherit; font-size: .95rem; font-weight: 500; color: var(--ink-2);
  background: none; border: 0; padding: 6px 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; transition: color .2s ease;
}
.menu-btn svg { width: 14px; height: 14px; transition: transform .3s var(--ease); }
.menu-btn:hover, .menu-btn.current { color: var(--ink); }
.menu-btn.current { position: relative; }
.menu-btn.current::after {
  content: ""; position: absolute; left: calc(50% - 10px); bottom: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--accent);
}
.has-menu.open .menu-btn svg { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% + 16px); left: 50%; width: 360px; padding: 8px; z-index: 10;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg);
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity .25s ease, transform .35s var(--ease), visibility .25s;
}
.submenu::before { content: ""; position: absolute; left: 0; right: 0; top: -18px; height: 18px; } /* hover bridge */
.has-menu.open .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.submenu a {
  display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 14px;
  text-decoration: none; color: var(--ink); transition: background .2s ease;
}
.submenu a:hover, .submenu a[aria-current="page"] { background: var(--muted-bg); }
.submenu strong { display: block; font-weight: 600; font-size: .96rem; letter-spacing: -.01em; }
.submenu small { display: block; color: var(--muted); font-size: .8rem; line-height: 1.4; }
.sm-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; flex: none; }
@media (min-width: 1021px) and (hover: hover) {
  .has-menu:hover .submenu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .has-menu:hover .menu-btn svg { transform: rotate(180deg); }
}
@media (max-width: 1020px) {
  .menu-btn { width: 100%; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .menu-btn.current::after { display: none; }
  .submenu {
    position: static; width: auto; transform: none; box-shadow: none; border: 0; border-radius: 0;
    padding: 6px 0 10px; opacity: 1; visibility: visible; display: none;
  }
  .submenu::before { display: none; }
  .has-menu.open .submenu { display: block; transform: none; }
}

/* Keep every top-level menu item (links and the Services button) on the same baseline */
.nav-list { align-items: center; }
.nav-list > li { display: flex; align-items: center; }
.nav-list > li > a, .menu-btn { font-family: var(--font); font-size: .92rem; font-weight: 500; line-height: 1.2; padding: 8px 0; }
@media (max-width: 1020px) {
  .nav-list > li { display: block; }
  .nav-list > li > a, .menu-btn { font-size: 1rem; padding: 15px 0; }
}

/* ---------- Smooth scrolling (Lenis) ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* Stacking cards: scale and dim are driven every frame by JS, so no CSS transition (that caused lag) */
.stack-card { transition: none; }
.stack-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: var(--dark); opacity: var(--dim, 0);
}

/* ---------- Photos ---------- */
.photo {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: var(--radius); background: var(--muted-bg);
}
.photo.wide { aspect-ratio: 16 / 10; }
.photo.tall { aspect-ratio: 4 / 5; }
.media { overflow: hidden; }
.media .photo { border-radius: 0; transition: transform .9s var(--ease); }
.card:hover .media .photo, .gallery-item:hover .photo { transform: scale(1.05); }
.gallery-item .media { border-radius: var(--radius); }

/* Wide banner image under inner page headings */
.page-banner {
  margin-top: 52px; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 21 / 8;
  animation: fade-up 1s .35s var(--ease) both;
}
.page-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 640px) { .page-banner { aspect-ratio: 4 / 3; margin-top: 36px; } }

/* Banner made of three photos side by side */
.page-banner.trio {
  display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 100%; gap: 14px;
  aspect-ratio: auto; height: clamp(240px, 30vw, 400px); overflow: visible; border-radius: 0;
}
.page-hero .page-banner.trio { box-shadow: none; }
.page-banner.trio img { height: 100%; min-height: 0; border-radius: var(--radius); box-shadow: 0 24px 50px rgba(0, 0, 0, .25); }
@media (max-width: 640px) {
  .page-banner.trio { grid-template-columns: 1fr 1fr; grid-template-rows: auto; height: auto; }
  .page-banner.trio img { aspect-ratio: 4 / 5; height: auto; }
  .page-banner.trio img:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
}

/* Small service tags inside cards */
.mini-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 30px; padding: 0; list-style: none; }
.mini-tags li {
  font-size: .85rem; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2);
}
.stack-card.dark .mini-tags li { border-color: rgba(255, 255, 255, .14); color: #c9d0d6; }

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 72px 0; }
.bg-sand { background: var(--muted-bg); }
.bg-aqua { background: var(--accent-soft); }
.bg-navy { background: var(--dark); color: #b4bcc4; }
.bg-navy h2, .bg-navy h3 { color: #fff; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-weight: 500; font-size: .76rem; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 20px;
}
.eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none;
}
.bg-navy .eyebrow { color: #8d969f; }

.section-head { max-width: 760px; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--muted); font-size: 1rem; max-width: 620px; }
.section-head.center p { margin-inline: auto; }
.bg-navy .section-head p { color: #9aa3ac; }

.grid { display: grid; gap: 22px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding: 84px 0; }
}

/* ---------- Photo placeholders (swap for <img> once photos arrive) ---------- */
.ph {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3; display: flex; align-items: flex-end; justify-content: flex-start;
  padding: 20px; text-align: left;
  background:
    radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .7), transparent 60%),
    linear-gradient(160deg, #ecece7, #dfe1dc);
  color: var(--muted); font-family: var(--mono); font-size: .78rem; letter-spacing: .04em;
}
.ph::before {
  content: "Photo"; position: absolute; top: 18px; left: 18px;
  font-family: var(--mono); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 9px; border: 1px solid rgba(17, 19, 21, .15); border-radius: 999px; color: var(--muted);
}
.ph span { max-width: 85%; }
.ph-wide { aspect-ratio: 16 / 10; }
.ph-tall { aspect-ratio: 4 / 5; }
.ph.alt  { background: radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .6), transparent 60%), linear-gradient(160deg, #e6eaee, #d7dde3); }
.ph.warm { background: radial-gradient(120% 90% at 85% 10%, rgba(255, 255, 255, .6), transparent 60%), linear-gradient(160deg, #e7ece6, #d6ded4); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 72px 0 110px;
  background: radial-gradient(900px 520px at 88% 0%, rgba(242, 176, 30, .06), transparent 70%);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.hero h1 { margin-bottom: .35em; }
.hero p.lead { font-size: 1.05rem; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 34px 0 48px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 48px; } }

/* Headline lines rise from behind a mask */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span { display: inline-block; transform: translateY(110%); animation: line-up 1.1s var(--ease) forwards; }
.line:nth-child(2) > span { animation-delay: .12s; }
.line:nth-child(3) > span { animation-delay: .24s; }
.line:nth-child(4) > span { animation-delay: .36s; }
@keyframes line-up { to { transform: none; } }
.accent { color: var(--accent); }

/* Tagline */
.tagline {
  font-size: clamp(1rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: -0.02em; color: var(--ink);
  margin: 0 0 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px;
}
.tagline::before { content: ""; width: 34px; height: 1px; background: var(--ink); }
.tagline em { font-style: normal; color: var(--accent-ink); }

.fade-up { animation: fade-up .9s var(--ease) both; }
.d1 { animation-delay: .35s; } .d2 { animation-delay: .45s; } .d3 { animation-delay: .55s; } .d4 { animation-delay: .65s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(24px); } }

/* Stats row */
.stats { display: flex; flex-wrap: wrap; gap: 14px 40px; padding-top: 28px; border-top: 1px solid var(--line); }
.stat { display: flex; align-items: baseline; gap: 10px; font-size: .92rem; color: var(--muted); }
.stat strong { font-family: var(--mono); font-weight: 500; font-size: 1.05rem; color: var(--ink); }

/* Hero slideshow */
.hero-media { position: relative; animation: fade-up 1.1s .3s var(--ease) both; }
.hero-slider { position: relative; aspect-ratio: 4 / 4.6; border-radius: var(--radius-lg); overflow: hidden; }
.hero-slider .slide {
  position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0;
  opacity: 0; transform: scale(1.06);
  transition: opacity 1s ease, transform 1.6s var(--ease);
}
.hero-slider .slide { margin: 0; }
.hero-slider .slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slider .slide.is-active  { opacity: 1; transform: none; z-index: 1; }
.hero-slider .slide.is-leaving { opacity: 0; transform: scale(.98); }
.slide-tag {
  position: absolute; top: 16px; right: 16px; z-index: 2;
  background: rgba(255, 255, 255, .85); color: var(--ink); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.slider-dots { position: absolute; right: 18px; bottom: 18px; z-index: 2; display: flex; gap: 6px; }
.slider-dots button {
  width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: rgba(17, 19, 21, .25); transition: width .4s var(--ease), background .3s ease;
}
.slider-dots button[aria-current="true"] { width: 26px; background: var(--ink); }
.hero-badge {
  position: absolute; left: -26px; bottom: 30px; z-index: 3;
  display: flex; align-items: center; gap: 14px; max-width: 290px;
  background: rgba(255, 255, 255, .92); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 14px 18px;
  animation: fade-up .9s .9s var(--ease) both, bob 7s 2s ease-in-out infinite;
}
.hero-badge .icon { margin: 0; width: 44px; height: 44px; }
.hero-badge strong { display: block; color: var(--ink); font-weight: 600; line-height: 1.25; }
.hero-badge small { display: block; color: var(--muted); font-size: .82rem; line-height: 1.4; margin-top: 3px; }
@keyframes bob { 50% { transform: translateY(-8px); } }
@media (max-width: 900px) { .hero-badge { left: 14px; } }

/* ---------- Inner page hero ---------- */
.page-hero { padding: 80px 0 72px; border-bottom: 1px solid var(--line);
  background: radial-gradient(800px 420px at 90% 0%, rgba(242, 176, 30, .06), transparent 70%); }
.page-hero h1 { max-width: 900px; }
.page-hero p { font-size: 1.05rem; max-width: 700px; color: var(--muted); }
.page-hero > .container > * { animation: fade-up .9s var(--ease) both; }
.page-hero > .container > :nth-child(2) { animation-delay: .08s; }
.page-hero > .container > :nth-child(3) { animation-delay: .16s; }
.page-hero > .container > :nth-child(4) { animation-delay: .24s; }
.page-hero > .container > :nth-child(5) { animation-delay: .32s; }
.breadcrumb { font-family: var(--mono); font-size: .78rem; letter-spacing: .06em; color: var(--muted); margin-bottom: 26px; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--ink); }

/* ---------- Clients ---------- */
.clients { padding: 48px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.clients-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.clients-label { font-family: var(--mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.client-logos { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; align-items: center; }
/* Text wordmarks — replace with official logo images in /images/clients/ */
.client-logo {
  display: flex; align-items: center; gap: 10px; padding: 10px 26px;
  font-weight: 600; font-size: 1.12rem; letter-spacing: -.02em; white-space: nowrap;
  transition: opacity .3s ease;
}
.client-logo img { height: 40px; width: auto; }
.client-logo .dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.client-logo.canara { color: #0072bc; } .client-logo.canara .dot { background: #fdb913; }
.client-logo.pnb { color: #a6192e; } .client-logo.pnb .dot { background: #f2a900; }
.client-logo.bob { color: #f15a22; } .client-logo.bob .dot { background: #f15a22; }
.client-logo.sib { color: #c8102e; } .client-logo.sib .dot { background: #f2b01e; }
.client-more { color: var(--muted); font-size: .92rem; }

.client-logos.marquee {
  width: 100%; overflow: hidden; display: block;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.marquee-track > * { margin-right: 40px; }
.client-logos.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement (words light up as you scroll) ---------- */
.statement { padding: 150px 0; }
.statement p {
  font-size: clamp(1.8rem, 4vw, 3.3rem); font-weight: 500; line-height: 1.2; letter-spacing: -0.035em;
  color: var(--ink); max-width: 1050px; margin: 0;
}
.statement .w { color: var(--faint); transition: color .35s ease; }
.statement .w.on { color: var(--ink); }
.statement .w.hl-word.on { color: var(--accent); }
.statement .sign { margin-top: 40px; font-family: var(--mono); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }

/* ---------- Cards ---------- */
.card {
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card p { color: var(--muted); margin-bottom: 0; }
.card .more {
  margin-top: auto; padding-top: 22px; font-weight: 500; color: var(--ink); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.card .more::after { content: "→"; transition: transform .3s var(--ease); }
.card:hover .more::after { transform: translateX(5px); }
.card .more:hover { color: var(--accent-ink); }

.icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--muted-bg); color: var(--ink); margin-bottom: 26px;
  transition: background .3s ease, color .3s ease, transform .4s var(--ease);
}
.icon svg { width: 26px; height: 26px; }
.card:hover .icon { background: var(--brand); color: var(--yellow); transform: scale(1.06); }
.bg-navy .icon { background: rgba(255, 255, 255, .07); color: #fff; }

.division { padding: 0; overflow: hidden; }
.division .ph { border-radius: 0; aspect-ratio: 16 / 10; transition: transform .9s var(--ease); }
.division:hover .ph { transform: scale(1.05); }
.division[id] { scroll-margin-top: 140px; }

/* ---------- Services page: sticky tabs that jump between the three services ---------- */
.svc-tabs {
  position: sticky; top: 66px; z-index: 90;
  background: rgba(250, 250, 248, .97);
  border-bottom: 1px solid var(--line);
}
.svc-tabs-inner { display: flex; gap: 8px; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.svc-tabs-inner::-webkit-scrollbar { display: none; }
.svc-tabs a {
  flex: none; display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface);
  font-weight: 600; font-size: .9rem; color: var(--ink-2); text-decoration: none; white-space: nowrap;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.svc-tabs a span { font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--muted); transition: color .25s ease; }
.svc-tabs a:hover { border-color: var(--faint); color: var(--ink); }
.svc-tabs a.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.svc-tabs a.is-active span { color: var(--accent); }
.svc-group { scroll-margin-top: 148px; } /* tabs bar plus the 14px the header shrinks by */
@media (max-width: 560px) {
  .svc-tabs a { padding: 8px 14px; font-size: .84rem; gap: 7px; }
}
.division-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.division .tag, .tag {
  align-self: flex-start; font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent-ink); background: var(--accent-soft); padding: 5px 11px; border-radius: 999px; margin-bottom: 16px;
}

/* ---------- Stacking division cards (pinned while scrolling) ---------- */
.stack { display: grid; gap: 28px; }
.stack-card {
  position: sticky; top: calc(100px + var(--i, 0) * 22px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 0; overflow: hidden;
  min-height: 440px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: 0 -10px 40px rgba(17, 19, 21, .05);
  transform-origin: 50% 0; will-change: transform;
}
.stack-card .stack-body { padding: 44px; display: flex; flex-direction: column; }
.stack-card .stack-num { font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 26px; }
.stack-card h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.035em; line-height: 1.1; }
.stack-card p { color: var(--muted); }
.stack-card .checklist { margin: 12px 0 30px; }
.stack-card .btn { margin-top: auto; align-self: flex-start; }
.stack-card .ph, .stack-card .photo { border-radius: 0; aspect-ratio: auto; height: 100%; min-height: 100%; }
.stack-card.dark { background: var(--dark); border-color: var(--dark); }
.stack-card.dark h3 { color: #fff; }
.stack-card.dark p, .stack-card.dark .checklist li { color: #a9b2ba; }
.stack-card.dark .tag { background: rgba(242, 176, 30, .16); color: #f2b01e; }
@media (max-width: 860px) {
  .stack-card { position: relative; top: 0; grid-template-columns: 1fr; min-height: 0; }
  .stack-card .ph, .stack-card .photo { aspect-ratio: 16 / 10; height: auto; min-height: 0; order: -1; }
  .stack-card .stack-body { padding: 32px 26px; }
}

/* ---------- Split / feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } .split.reverse > :first-child { order: 0; } }

.checklist { list-style: none; padding: 0; margin: 24px 0 32px; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; }
.checklist li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231b3a5c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.bg-navy .checklist li::before, .stack-card.dark .checklist li::before { background-color: rgba(242, 176, 30, .2); }

/* ---------- Product detail blocks ---------- */
.product { padding: 88px 0; border-bottom: 1px solid var(--line); scroll-margin-top: 100px; }
.product:last-child { border-bottom: 0; }
.product-num { display: inline-block; font-family: var(--mono); font-size: .8rem; color: var(--muted); letter-spacing: .1em; margin-bottom: 16px; }

/* Quick-jump chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.chip {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--faint);
  color: var(--ink); text-decoration: none; font-size: .95rem; font-weight: 500;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.chip:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Steps ---------- */
.steps { counter-reset: step; position: relative; }
.step { position: relative; padding-top: 34px; border-top: 1px solid var(--line); }
.bg-navy .step { border-top-color: rgba(255, 255, 255, .12); }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  display: block; font-family: var(--mono); font-size: .85rem; color: var(--accent); margin-bottom: 18px;
}
.step::after {
  content: ""; position: absolute; top: -1px; left: 0; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease);
  transition-delay: inherit;
}
.step.in::after { transform: scaleX(1); }
.step p { color: var(--muted); }
.bg-navy .step p { color: #9aa3ac; }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; }
.pill {
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 20px; font-weight: 500; color: var(--ink);
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.pill:hover { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Big services ticker ---------- */
.ticker { padding: 34px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.ticker-track { display: flex; width: max-content; animation: marquee 45s linear infinite; }
.ticker-track span {
  display: inline-flex; align-items: center; gap: 40px; padding-right: 40px; white-space: nowrap;
  font-size: clamp(1.6rem, 3.6vw, 2.8rem); font-weight: 500; letter-spacing: -0.04em; color: var(--ink);
}
.ticker-track span::after { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); }
.ticker-track span:nth-child(even) { color: transparent; -webkit-text-stroke: 1px var(--ink); }
.ticker:hover .ticker-track { animation-play-state: paused; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative; overflow: hidden;
  background: radial-gradient(700px 380px at 100% 0%, rgba(242, 176, 30, .12), transparent 65%), var(--dark);
  border-radius: var(--radius-lg); padding: 72px 64px; color: #a9b2ba;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; align-items: end;
}
.cta-band h2 { color: #fff; margin-bottom: .3em; }
.cta-band p { margin: 0; font-size: 1rem; }
.cta-band .tagline { color: #fff; }
.cta-band .tagline::before { background: #fff; }
.cta-band .tagline em { color: #f2b01e; }
.cta-band .btn-outline { border-color: rgba(255, 255, 255, .3); color: #fff; }
.cta-band .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 860px) { .cta-band { grid-template-columns: 1fr; padding: 48px 28px; } .cta-actions { justify-content: flex-start; } }

/* ---------- Gallery ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.filter-btn {
  font: inherit; font-size: .95rem; font-weight: 500;
  padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .25s ease, color .25s ease, border-color .25s ease;
}
.filter-btn:hover { border-color: var(--ink); }
.filter-btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gallery-item { margin: 0; }
.gallery-item[hidden] { display: none; }
.gallery-item .ph, .gallery-grid > .ph { transition: transform .5s var(--ease), box-shadow .5s ease; }
.gallery-item:hover .ph, .gallery-grid > .ph:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.gallery-item figcaption { padding: 14px 2px 0; }
.gallery-item figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.gallery-item figcaption small { font-family: var(--mono); color: var(--muted); font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; }
.gallery-item.pop { animation: fade-up .6s var(--d, 0ms) var(--ease) both; }
@media (max-width: 900px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .gallery-grid { grid-template-columns: 1fr; } }

/* ---------- Forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 44px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } .form-card { padding: 28px 20px; } }
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 8px; color: var(--ink); }
label .req { color: #c0392b; }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid #d6d8d3; border-radius: 12px; background: var(--bg);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); background: #fff; box-shadow: 0 0 0 4px rgba(27, 58, 92, .14); }
textarea { min-height: 140px; resize: vertical; }
.hp { position: absolute; left: -9999px; }
.form-status { margin-top: 18px; padding: 14px 18px; border-radius: 12px; font-weight: 500; display: none; }
.form-status.success { display: block; background: #e6f7ec; color: #17633a; animation: fade-up .4s ease both; }
.form-status.error { display: block; background: #fdecea; color: #9b2c22; animation: fade-up .4s ease both; }

.contact-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 22px; }
.contact-list li { display: flex; gap: 16px; align-items: flex-start; }
.contact-list .icon { margin: 0; width: 48px; height: 48px; flex: none; background: var(--surface); border: 1px solid var(--line); }
.contact-list .icon svg { width: 22px; height: 22px; }
.contact-list strong { display: block; font-family: var(--mono); font-weight: 500; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.contact-list a { text-decoration: none; font-size: 1rem; color: var(--ink); }
.contact-list a:hover { color: var(--accent-ink); }
.map { border: 0; width: 100%; height: 380px; border-radius: var(--radius-lg); display: block; filter: grayscale(.4); }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #8d969f; padding: 0; font-size: .97rem; }
.footer-tagline {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap;
  padding: 80px 0 56px; border-bottom: 1px solid rgba(255, 255, 255, .08); margin-bottom: 56px;
}
.footer-tagline p {
  margin: 0; color: #fff; font-size: clamp(1.8rem, 4vw, 3.4rem); font-weight: 500; line-height: 1.05; letter-spacing: -0.045em;
}
.footer-tagline p span { color: #4d575f; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1.3fr; gap: 40px; }
.site-footer h4 { font-family: var(--mono); font-weight: 500; color: #fff; font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer a { color: #c8cfd5; text-decoration: none; transition: color .2s ease; }
.site-footer a:hover { color: #fff; }
.site-footer .btn-light, .site-footer .btn-light:hover { color: var(--ink); }
.site-footer .brand { color: #fff; margin-bottom: 18px; }
.site-footer .brand-mark { background: #fff; color: var(--ink); }
.site-footer .brand-mark::after { border-color: var(--dark); }
.footer-bottom {
  margin-top: 64px; padding: 24px 0; border-top: 1px solid rgba(255, 255, 255, .08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .06em;
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; align-items: center; gap: 10px;
  background: var(--whatsapp); color: #06301a; text-decoration: none; font-weight: 600;
  padding: 13px 20px 13px 15px; border-radius: 999px;
  box-shadow: 0 10px 30px rgba(37, 211, 102, .35);
  animation: fade-up .6s 1.2s var(--ease) both;
  transition: transform .3s var(--ease);
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float svg { width: 26px; height: 26px; }
/* Pulse ring uses transform and opacity only, which the browser animates without repainting */
.wa-float::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1;
  background: var(--whatsapp); opacity: 0; pointer-events: none;
  animation: wa-pulse 2.8s 2.5s ease-out infinite;
}
@keyframes wa-pulse {
  0%   { opacity: .45; transform: none; }
  100% { opacity: 0; transform: scale(var(--pulse-x, 1.12), var(--pulse-y, 1.55)); }
}
@media (max-width: 560px) { .wa-float span { display: none; } .wa-float { padding: 14px; --pulse-x: 1.5; --pulse-y: 1.5; } }

/* ---------- Back to top ---------- */
.to-top {
  position: fixed; right: 26px; bottom: 94px; z-index: 140;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); cursor: pointer;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  display: grid; place-items: center;
  opacity: 0; transform: translateY(14px); pointer-events: none;
  transition: opacity .3s ease, transform .3s var(--ease), background .2s ease, color .2s ease;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--ink); color: #fff; }
.to-top svg { width: 20px; height: 20px; }
@media (max-width: 560px) { .to-top { right: 24px; bottom: 88px; } }

/* ---------- Scroll progress bar ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; width: 100%; height: 2px; z-index: 300;
  background: var(--accent); transform: scaleX(var(--progress, 0)); transform-origin: left;
}

/* ---------- Utilities ---------- */
.text-muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.center { text-align: center; }
.note { background: #fff8e6; border: 1px dashed #e0b44c; color: #6b5214; padding: 12px 16px; border-radius: 10px; font-size: .9rem; }

/* ==========================================================
   Bold layer — full colour heroes, display type, playful graphics
   ========================================================== */
:root {
  --brand: #0e2235;       /* midnight navy */
  --brand-deep: #0a1928;
  --yellow: #f2b01e;      /* warm amber */
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --clip-burst: polygon(50% 0%,59.1% 10%,71.7% 5%,75.6% 17.9%,89.1% 18.8%,86.9% 32.2%,98.7% 38.9%,91% 50%,98.7% 61.1%,86.9% 67.8%,89.1% 81.2%,75.6% 82.1%,71.7% 95%,59.1% 90%,50% 100%,40.9% 90%,28.3% 95%,24.4% 82.1%,10.9% 81.2%,13.1% 67.8%,1.3% 61.1%,9% 50%,1.3% 38.9%,13.1% 32.2%,10.9% 18.8%,24.4% 17.9%,28.3% 5%,40.9% 10%);
  --clip-spike: polygon(50% 0%,60.3% 21.8%,82.1% 11.7%,76% 35%,99.2% 41.3%,79.5% 55.2%,93.3% 75%,69.3% 73%,67.1% 97%,50% 80%,32.9% 97%,30.7% 73%,6.7% 75%,20.5% 55.2%,.8% 41.3%,24% 35%,17.9% 11.7%,39.7% 21.8%);
  --clip-hept: polygon(50% 0%,89.1% 18.8%,98.7% 61.1%,71.7% 95%,28.3% 95%,1.3% 61.1%,10.9% 18.8%);
  --clip-oct: polygon(69.1% 3.8%,96.2% 30.9%,96.2% 69.1%,69.1% 96.2%,30.9% 96.2%,3.8% 69.1%,3.8% 30.9%,30.9% 3.8%);
  --clip-tri: polygon(50% 2%,100% 98%,0% 98%);
  --clip-circle: circle(50% at 50% 50%);
}

/* Display type for big headings */
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .005em; line-height: .98; }
h1 { font-size: clamp(2.6rem, 6.2vw, 5.4rem); }
h2 { font-size: clamp(2rem, 4.2vw, 3.5rem); }
.form-card h2, .contact-list + h2, .split h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); }
.stack-card h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1; font-size: clamp(2rem, 3.4vw, 3rem); }
.stack-num { font-family: var(--display) !important; font-size: 1.4rem !important; color: var(--accent) !important; letter-spacing: .04em !important; }
.footer-tagline p { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; }
.footer-tagline p span { color: var(--yellow); }

/* Faint blueprint grid lines */
.grid-lines::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}

/* ---------- Header sitting on a coloured hero ---------- */
.site-header:not(.scrolled):not(.menu-open) { background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header:not(.scrolled):not(.menu-open) .brand,
.site-header:not(.scrolled):not(.menu-open) .brand-text small { color: #fff; }
.site-header:not(.scrolled):not(.menu-open) .brand-mark { background: #fff; color: var(--ink); }
.site-header:not(.scrolled):not(.menu-open) .brand-mark::after { background: var(--yellow); border-color: var(--brand); }
.site-header:not(.scrolled):not(.menu-open) .nav-toggle span { background: #fff; }
@media (min-width: 1021px) {
  .site-header:not(.scrolled) .nav-list > li > a,
  .site-header:not(.scrolled) .menu-btn { color: rgba(255, 255, 255, .88); }
  .site-header:not(.scrolled) .nav-list > li > a:hover,
  .site-header:not(.scrolled) .nav-list > li > a[aria-current="page"],
  .site-header:not(.scrolled) .menu-btn:hover,
  .site-header:not(.scrolled) .menu-btn.current { color: #fff; }
  .site-header:not(.scrolled) .nav-list > li > a::after,
  .site-header:not(.scrolled) .menu-btn.current::after { background: var(--yellow); }
  .site-header:not(.scrolled) .btn-primary { background: #fff; color: var(--ink); }
  .site-header:not(.scrolled) .btn-primary::after { background-color: var(--ink); }
}

/* ---------- Buttons on colour ---------- */
.btn-invert { background: #fff; color: var(--ink); }
.btn-invert::after { background-color: var(--ink) !important; }
.btn-invert:hover { background: var(--yellow); }
.on-color .btn-outline { border-color: rgba(255, 255, 255, .45); color: #fff; }
.on-color .btn-outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

/* ---------- Home hero ---------- */
.hero-x {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand); color: #fff;
  margin-top: -80px; padding: 150px 0 300px; min-height: min(100svh, 960px);
}
.hero-x .eyebrow { color: rgba(255, 255, 255, .8); }
.hero-x .eyebrow::before { background: var(--yellow); }
.hero-x h1 { color: #fff; font-size: clamp(3rem, 8vw, 7rem); max-width: none; margin-bottom: .32em; }
.hero-x .tagline { color: #fff; }
.hero-x .tagline::before { background: #fff; }
.hero-x .tagline em { color: var(--yellow); }
.hero-x .lead { color: rgba(255, 255, 255, .85); max-width: 470px; font-size: 1.05rem; }
.hero-x .hero-actions { margin: 28px 0 0; }
.hero-x-inner { position: relative; z-index: 2; }

/* Swinging crane hook carrying the brand beam */
.crane-wrap { position: absolute; top: 0; left: 66%; z-index: 1; transform: translateY(var(--lift, 0px)); will-change: transform; }
.crane { width: 210px; transform-origin: 105px 0; animation: sway 4.5s ease-in-out infinite alternate; }
.crane svg { display: block; width: 100%; height: auto; overflow: visible; }
@keyframes sway { from { transform: rotate(-3.5deg); } to { transform: rotate(3.5deg); } }

/* Rotating "Get a free quote" badge */
.spin-badge {
  position: absolute; right: 7%; top: 44%; z-index: 3;
  width: 136px; height: 136px; border-radius: 50%; background: #fff; color: var(--ink);
  display: grid; place-items: center; text-decoration: none; box-shadow: 0 18px 40px rgba(0, 0, 0, .18);
  transition: transform .4s var(--ease);
  animation: bob 6s ease-in-out infinite;
}
.spin-badge:hover { transform: scale(1.07); }
.spin-badge .spin-text { position: absolute; inset: 7px; width: calc(100% - 14px); height: calc(100% - 14px); animation: spin 14s linear infinite; }
.spin-badge .spin-text text { font-family: var(--mono); font-size: 9.6px; letter-spacing: 2.4px; text-transform: uppercase; fill: var(--ink); }
.spin-arrow { width: 50px; height: 50px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s ease; }
.spin-arrow svg { width: 22px; height: 22px; }
.spin-badge:hover .spin-arrow { transform: rotate(45deg); background: var(--ink); }
@keyframes spin { to { transform: rotate(360deg); } }

/* Dark staircase silhouette with an accessible ramp line */
.steps-art { position: absolute; left: 0; bottom: 0; width: 48%; height: 250px; z-index: 0; pointer-events: none; }

/* Photos cut into playful shapes, gliding across */
.shape-strip { position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; overflow: hidden; padding: 10px 0 30px; }
.shape-track { display: flex; align-items: flex-start; width: max-content; animation: marquee 46s linear infinite; }
.shape-strip:hover .shape-track { animation-play-state: paused; }
.shape {
  flex: none; width: 180px; height: 180px; margin-right: 34px; padding: 6px;
  background: #fff; clip-path: var(--clip, var(--clip-circle));
  transition: transform .5s var(--ease);
}
.shape:nth-child(even) { margin-top: 26px; }
.shape img { width: 100%; height: 100%; object-fit: cover; display: block; clip-path: var(--clip, var(--clip-circle)); }
.shape:hover { transform: scale(1.08) rotate(-4deg); }
.s-burst { --clip: var(--clip-burst); } .s-spike { --clip: var(--clip-spike); } .s-hept { --clip: var(--clip-hept); }
.s-oct { --clip: var(--clip-oct); } .s-tri { --clip: var(--clip-tri); } .s-circle { --clip: var(--clip-circle); }
.s-tri img { object-position: 50% 70%; }

/* Clean photo strip gliding along the bottom of the hero */
.photo-strip {
  position: absolute; left: 0; right: 0; bottom: 44px; z-index: 2; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.photo-track { display: flex; width: max-content; animation: marquee 70s linear infinite; }
.photo-strip:hover .photo-track { animation-play-state: paused; }
.photo-tile {
  position: relative; flex: none; width: 280px; height: 190px; margin-right: 18px; margin-bottom: 0;
  border-radius: 14px; overflow: hidden; background: rgba(255, 255, 255, .06);
}
.photo-tile img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .9s var(--ease); }
.photo-tile:hover img { transform: scale(1.06); }
.photo-tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px;
  background: linear-gradient(180deg, transparent, rgba(10, 25, 40, .85));
  font-family: var(--mono); font-size: .68rem; letter-spacing: .12em; text-transform: uppercase; color: #fff;
}
.photo-tile figcaption::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--yellow); margin-right: 8px; vertical-align: middle; }

@media (max-width: 760px) {
  .photo-tile { width: 200px; height: 136px; margin-right: 12px; }
  .photo-strip { bottom: 30px; }
}

@media (max-width: 760px) {
  .hero-x { padding: 130px 0 250px; min-height: 0; }
  .crane-wrap { left: auto; right: -30px; opacity: .5; }
  .crane { width: 150px; transform-origin: 75px 0; }
  .spin-badge { width: 104px; height: 104px; top: auto; bottom: 214px; right: 18px; }
  .spin-badge .spin-text text { font-size: 9px; }
  .spin-arrow { width: 40px; height: 40px; }
  .shape { width: 120px; height: 120px; margin-right: 22px; padding: 5px; }
  .shape:nth-child(even) { margin-top: 16px; }
  .steps-art { width: 80%; height: 170px; }
}

/* ---------- Inner page hero on colour ---------- */
.page-hero {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--brand); color: rgba(255, 255, 255, .85); border-bottom: 0;
  margin-top: -80px; padding: 160px 0 88px;
}
.page-hero h1 { color: #fff; max-width: 22ch; }
.page-hero p { color: rgba(255, 255, 255, .85); }
.page-hero .eyebrow { color: rgba(255, 255, 255, .8); }
.page-hero .eyebrow::before { background: var(--yellow); }
.breadcrumb, .breadcrumb a { color: rgba(255, 255, 255, .7); }
.breadcrumb a:hover { color: #fff; }
.page-hero .page-banner { box-shadow: 0 30px 60px rgba(0, 0, 0, .2); }
.hero-shapes { position: absolute; right: 5%; top: 130px; width: 360px; height: 330px; z-index: 0; pointer-events: none; }
.hero-shapes .shape { position: absolute; margin: 0; animation: bob 7s ease-in-out infinite; }
.hero-shapes .shape:nth-child(1) { width: 200px; height: 200px; right: 0; top: 0; }
.hero-shapes .shape:nth-child(2) { width: 140px; height: 140px; left: 10px; top: 120px; animation-delay: -2s; }
.hero-shapes .shape:nth-child(3) { width: 120px; height: 120px; right: 70px; top: 210px; animation-delay: -4s; }
@media (max-width: 1000px) { .hero-shapes { display: none; } }

/* ---------- Colour tinted (duotone) photos ---------- */
.duo { position: relative; overflow: hidden; background: var(--brand); }
.duo img { filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; }
.duo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(10, 25, 40, .55)); pointer-events: none; }

/* ---------- "Why Aqualex" proof section ---------- */
.proof { position: relative; background: var(--dark); color: #a9b2ba; padding: 0 0 110px; overflow: hidden; }
.outline-marquee { padding: 46px 0 58px; overflow: hidden; }
.om-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.om-track span {
  font-family: var(--display); text-transform: uppercase; font-size: clamp(4rem, 11vw, 9.5rem); line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .32); padding-right: 50px;
  display: inline-flex; align-items: center; gap: 50px; white-space: nowrap;
}
.om-track span::after { content: ""; width: .32em; height: .32em; background: var(--yellow); clip-path: var(--clip-spike); }
.om-track span:nth-child(3n+2) { color: var(--brand); -webkit-text-stroke: 0; }
.proof-grid { display: grid; grid-template-columns: .95fr 1.05fr; gap: 64px; align-items: center; }
.proof-media { position: relative; border-radius: var(--radius-lg); aspect-ratio: 4 / 4.4; }
.proof-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.stat-card {
  position: absolute; right: -24px; bottom: 34px; z-index: 2; width: 220px;
  background: var(--yellow); color: var(--ink); border-radius: var(--radius); padding: 22px 24px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, .35);
}
.stat-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 4.2rem; line-height: .9; }
.stat-card span { display: block; margin-top: 8px; font-weight: 600; line-height: 1.3; }
.proof h2 { color: #fff; margin-bottom: 28px; }
.proof .eyebrow { color: #8d969f; }
.proof-row {
  display: grid; grid-template-columns: 50px 1fr auto; gap: 18px; align-items: center;
  padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .1);
}
.proof-row:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.proof-row .icon { margin: 0; width: 50px; height: 50px; background: rgba(255, 255, 255, .06); color: #fff; }
.proof-row h3 { color: #fff; font-size: 1.02rem; margin: 0 0 2px; font-family: var(--mono); font-weight: 500; text-transform: uppercase; letter-spacing: .06em; }
.proof-row p { margin: 0; font-size: .92rem; }
.proof-row .num { font-family: var(--display); font-size: 3rem; line-height: 1; color: #fff; }
.proof-row:hover .num { color: var(--yellow); }
@media (max-width: 900px) {
  .proof-grid { grid-template-columns: 1fr; gap: 48px; }
  .stat-card { right: 16px; }
}

/* ---------- Intro: truck arrives, doors open, camera flies inside to the message ----------
   Without JS (or with reduced motion) this is a simple static hero with the message. */
.intro { position: relative; margin-top: -80px; }
.intro-stage {
  position: relative; overflow: hidden; isolation: isolate; background: var(--brand); color: #fff;
  min-height: 100vh; min-height: 100svh; display: flex; align-items: center;
}
.intro-msg { position: relative; z-index: 3; width: 100%; padding: 150px 0 110px; }
.intro-msg .eyebrow { color: rgba(255, 255, 255, .8); }
.intro-msg .eyebrow::before { background: var(--yellow); }
.intro-msg h1 { color: #fff; font-size: clamp(3rem, 8vw, 7rem); max-width: none; margin-bottom: .32em; }
.intro-msg .tagline { color: #fff; }
.intro-msg .tagline::before { background: #fff; }
.intro-msg .tagline em { color: var(--yellow); }
.intro-msg .lead { color: rgba(255, 255, 255, .85); max-width: 470px; font-size: 1.05rem; }
.intro-msg .hero-actions { margin: 28px 0 0; }
.rig, .scroll-cue, .intro-kicker { display: none; }

.intro.is-anim { height: 300vh; }
.intro.is-anim .intro-stage { position: sticky; top: 0; height: 100vh; height: 100svh; }
.intro.is-anim .intro-msg {
  position: absolute; inset: 0; display: flex; align-items: center; padding: 90px 0 40px;
  opacity: var(--msg, 0); transform: translateY(calc((1 - var(--msg, 0)) * 40px)); pointer-events: none;
}
.intro.is-anim .intro-msg.show { pointer-events: auto; }
.intro.is-anim .intro-msg .line > span { animation: none; transform: translateY(110%); transition: transform 1s var(--ease); }
.intro.is-anim .intro-msg .line:nth-child(2) > span { transition-delay: .12s; }
.intro.is-anim .intro-msg.show .line > span { transform: none; }
.intro.is-anim .intro-msg .fade-up { animation: none; }
.intro.is-anim .spin-badge { opacity: var(--msg, 0); pointer-events: none; }
.intro.is-anim .intro-msg.show ~ .spin-badge { pointer-events: auto; }

.intro.is-anim .intro-kicker {
  display: block; position: absolute; top: 118px; left: 0; right: 0; z-index: 2; text-align: center;
  opacity: var(--hint, 1); transform: translateY(calc((1 - var(--hint, 1)) * -20px));
}
.intro-kicker .eyebrow { color: #fff; margin: 0 0 16px; }
.intro-kicker .eyebrow::before { background: var(--yellow); }
.intro-kicker strong {
  display: block; font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .015em;
  font-size: clamp(1.9rem, 4vw, 3.3rem); line-height: 1; color: #fff;
  text-shadow: 0 4px 24px rgba(0, 0, 0, .35);
  animation: fade-up .9s .5s var(--ease) both;
}
.intro-kicker em { font-style: normal; color: var(--yellow); }
.intro.is-anim .scroll-cue {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2;
  font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
  opacity: var(--hint, 1);
}
.scroll-cue i { width: 1px; height: 26px; background: rgba(255, 255, 255, .25); position: relative; overflow: hidden; }
.scroll-cue i::after { content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%; background: var(--yellow); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { to { top: 100%; } }

/* The truck rig */
.intro.is-anim .rig {
  /* Sits below the headline; on short screens it shrinks so the two never overlap (rig is 1000:380) */
  display: block; position: absolute; left: 50%; top: calc(50% + 70px); z-index: 1;
  width: clamp(260px, calc((100vh - 320px) * 2.63), min(1120px, 94vw));
  transform: translate(-50%, -50%); will-change: transform;
}
.rig-inner { position: relative; animation: rig-in 2s .15s cubic-bezier(.16, .8, .24, 1) both; }
.rig-inner > svg { display: block; width: 100%; height: auto; overflow: visible; }
.rig .wheel { animation: wheel-spin .55s linear 4; }
@keyframes rig-in { from { transform: translateX(-115vw); } }

.cbox { position: absolute; left: 2%; top: 5.263%; width: 68.4%; height: 68.95%; perspective: 1400px; container-type: inline-size; }
.cbox-inside {
  position: absolute; inset: 0; overflow: hidden; border: 3px solid #0a1520;
  background: radial-gradient(ellipse at 50% 30%, #18324d 0%, #0e2235 55%, #0a1928 100%);
}
.cbox-light {
  position: absolute; top: 9%; left: 22%; right: 22%; height: 3px; border-radius: 3px; background: var(--yellow);
  box-shadow: 0 0 30px 10px rgba(242, 176, 30, .45); opacity: var(--glow, 0);
}
.cbox-items {
  position: absolute; inset: 22% 8% 10%; display: flex; justify-content: space-around; align-items: flex-end;
  opacity: var(--items, 0); transform: translateY(calc((1 - var(--items, 0)) * 12px));
}
.cbox-items span { display: flex; flex-direction: column; align-items: center; gap: 1.2cqw; color: var(--yellow); }
.cbox-items svg { width: 9cqw; height: 9cqw; }
.cbox-items small { font-family: var(--mono); font-size: max(8px, 1.5cqw); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.door {
  position: absolute; top: 0; width: 50%; height: 100%;
  background: repeating-linear-gradient(90deg, #e6ebf0 0 1.6cqw, #cfd7df 1.6cqw 1.9cqw);
  border: 3px solid #0a1520; display: flex; align-items: center;
  backface-visibility: visible; will-change: transform;
}
.door b {
  font-family: var(--display); font-weight: 400; font-size: 8.5cqw; letter-spacing: .06em; color: var(--brand); line-height: 1;
}
.door-l { left: 0; transform-origin: left center; transform: rotateY(calc(var(--open, 0deg) * -1)); justify-content: flex-end; padding-right: 1.2cqw; }
.door-r { right: 0; transform-origin: right center; transform: rotateY(var(--open, 0deg)); justify-content: flex-start; padding-left: 1.2cqw; }
/* Lettering and handles only on the outside face; the inside of an open door shows plain panels */
.door { transform-style: preserve-3d; }
.door b, .door .handle { backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.door .handle { position: absolute; top: 64%; bottom: 10%; width: .8cqw; min-width: 3px; background: #0a1520; border-radius: 4px; }
.door-l .handle { right: 5%; } .door-r .handle { left: 5%; }
.door-l b { margin-right: 6%; } .door-r b { margin-left: 6%; }

.intro.is-anim .rig { will-change: transform, opacity; }

/* Phones: the truck closes up and drives off as you scroll (main.js glides it so flicks don't make it jump) */
.rig.driving .wheel { animation: wheel-spin .45s linear infinite; }
@media (max-width: 760px) {
  .intro.is-anim { height: 260vh; } /* more scroll room, so one flick doesn't cover the whole story */
  .intro.is-anim .rig { top: calc(50% + 50px); width: 84vw; } /* leaves room for the doors to swing open */
  .intro.is-anim .intro-kicker { top: 100px; padding: 0 16px; }
  .intro.is-anim .intro-msg { padding: 76px 0 24px; }
}
@media (max-width: 760px) {
  .cbox-items { inset: 20% 4% 10%; }
  .cbox-items span { width: 31%; text-align: center; }
  .cbox-items small { font-size: 7px; letter-spacing: 0; line-height: 1.3; }
  .intro .spin-badge { display: none; }
  .intro-msg h1 { font-size: clamp(2.6rem, 12vw, 4rem); }
  .intro-msg .lead { font-size: .98rem; }

  /* Gentler, quicker reveals: no long slide-ins that make the page feel like it lags behind the finger */
  .js [data-reveal] {
    transition-duration: .55s, .6s, .6s, .4s, .4s, .3s;
    transition-delay: 0s !important;
  }
  .js [data-reveal="up"], .js [data-reveal="left"], .js [data-reveal="right"] { translate: 0 16px; }
  .js [data-reveal="zoom"] { scale: .98; }
}
/* Phones held sideways (very short screens): plain hero, no pinned intro */
@media (max-height: 560px) {
  .intro .spin-badge { display: none; }
  .intro:not(.is-anim) .intro-stage { min-height: 0; }
  .intro:not(.is-anim) .intro-msg { padding: 110px 0 56px; }
}

/* ---------- Services ride: pinned section, truck drives, panels slide ---------- */
.svc-ride { position: relative; height: 330vh; background: var(--bg); }
.svc-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-rows: 42% 58%;
}
.svc-top { position: relative; }
.svc-word {
  position: absolute; left: 50%; top: 56%; margin: 0; z-index: 0; pointer-events: none; white-space: nowrap;
  font-size: clamp(6rem, 23vw, 21rem); line-height: .8; color: #e9e9e3; letter-spacing: .01em;
  transform: translate(calc(-50% - var(--p, 0) * 12%), -50%);
}
.svc-head { position: relative; z-index: 2; padding-top: 104px; display: flex; justify-content: space-between; align-items: flex-start; }
.svc-meta { display: flex; gap: 26px; align-items: baseline; font-family: var(--mono); font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.svc-meta b { font-family: var(--display); font-weight: 400; font-size: 1.9rem; letter-spacing: .02em; color: var(--ink); margin-right: 2px; }
.svc-speed b { color: var(--brand); display: inline-block; min-width: 2ch; text-align: right; }

.truck {
  position: absolute; left: 0; bottom: -6px; z-index: 1; width: clamp(220px, 24vw, 330px);
  transform: translate3d(var(--tx, 20px), 0, 0); will-change: transform;
}
.truck svg { display: block; width: 100%; height: auto; }
.truck .wheel { transform: rotate(var(--spin, 0deg)); }

.svc-bottom { position: relative; background: var(--dark); display: flex; align-items: center; }
.svc-bottom::before { /* lane markings */
  content: ""; position: absolute; left: 0; right: 0; top: 16px; height: 3px; opacity: .55;
  background: repeating-linear-gradient(90deg, var(--yellow) 0 38px, transparent 38px 76px);
}
.svc-track {
  display: flex; gap: 28px; width: max-content; flex: none;
  padding: 0 max(20px, calc((100vw - 1200px) / 2));
  transform: translate3d(var(--shift, 0px), 0, 0); will-change: transform;
}
.svc-panel {
  flex: none; width: min(740px, 80vw); height: min(330px, 44vh);
  display: grid; grid-template-columns: 1fr 1.08fr; overflow: hidden;
  background: #161c1f; border: 1px solid rgba(255, 255, 255, .08); border-radius: 24px;
  opacity: .4; transform: scale(.96); transition: opacity .5s ease, transform .6s var(--ease), border-color .4s ease;
}
.svc-panel.is-active { opacity: 1; transform: none; border-color: rgba(255, 200, 61, .35); }
.svc-media { overflow: hidden; }
.svc-media .photo { height: 100%; aspect-ratio: auto; border-radius: 0; transition: transform .9s var(--ease); }
.svc-panel:hover .svc-media .photo { transform: scale(1.05); }
.svc-body { padding: 28px 30px; display: flex; flex-direction: column; color: #a9b2ba; font-size: .95rem; }
.svc-num { font-family: var(--mono); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--yellow); }
.svc-body h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1;
  font-size: clamp(1.9rem, 3vw, 2.7rem); color: #fff; margin: 10px 0 10px;
}
.svc-body p { margin-bottom: 14px; }
.svc-body .mini-tags { margin: 0 0 18px; }
.svc-body .mini-tags li { border-color: rgba(255, 255, 255, .14); color: #c9d0d6; font-size: .8rem; padding: 5px 11px; }
/* Whole panel is clickable: the "Explore" link stretches over the entire card */
.svc-panel { position: relative; cursor: pointer; }
.svc-link::after { content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.svc-panel:hover { border-color: rgba(242, 176, 30, .6); }
.svc-panel:hover .svc-link { color: var(--yellow); }
.svc-panel:hover .svc-link span { transform: translateX(5px); }
.svc-panel:focus-within { outline: 3px solid var(--yellow); outline-offset: 4px; }
.svc-link:focus-visible { outline: none; }
.svc-link { margin-top: auto; color: #fff; text-decoration: none; font-weight: 500; display: inline-flex; gap: 8px; align-items: center; }
.svc-link span { transition: transform .3s var(--ease); }
.svc-link:hover { color: var(--yellow); }
.svc-link:hover span { transform: translateX(5px); }
.svc-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .08); }
.svc-progress span { display: block; height: 100%; background: var(--yellow); transform: scaleX(var(--p, 0)); transform-origin: left; }

/* Phones and short screens: no pinning; panels stack, truck drives on a loop */
@media (max-width: 860px), (max-height: 560px) {
  .svc-ride { height: auto; }
  .svc-sticky { position: relative; height: auto; display: block; }
  .svc-top { height: 280px; }
  .svc-word { font-size: 30vw; top: 62%; transform: translate(-50%, -50%); }
  .svc-head { padding-top: 64px; }
  .svc-speed { display: none; }
  .truck { width: 200px; animation: drive 9s linear infinite; }
  .truck .wheel { animation: wheel-spin .8s linear infinite; }
  .svc-bottom { display: block; padding: 46px 0 50px; }
  .svc-track { flex-direction: column; transform: none !important; gap: 18px; width: auto; }
  .svc-panel { width: auto; height: auto; grid-template-columns: 1fr; opacity: 1; transform: none; }
  .svc-media .photo { aspect-ratio: 16 / 10; }
  .svc-progress { display: none; }
}
@keyframes drive { from { transform: translateX(-240px); } to { transform: translateX(110vw); } }
@keyframes wheel-spin { to { transform: rotate(360deg); } }

/* ---------- Why Aqualex: bold yellow poster with six reasons ---------- */
.why { position: relative; background: var(--yellow); color: var(--ink); padding: 110px 0 120px; overflow: hidden; }
.why-head { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: end; margin-bottom: 60px; }
.why .eyebrow { color: var(--ink); }
.why .eyebrow::before { background: var(--ink); }
.why h2 { font-size: clamp(4.2rem, 11.5vw, 9.6rem); line-height: .86; margin: 0; color: var(--ink); }
.why h2 .o { display: block; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.why-side { position: relative; padding-left: 0; }
.why-side p { font-size: 1.05rem; color: #3d3510; max-width: 420px; margin-bottom: 24px; }
.why-sticker { width: 150px; height: 150px; margin: 0 0 22px; animation: spin 40s linear infinite; }
.why-sticker:hover { animation-play-state: paused; }

.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.why-card {
  position: relative; padding: 34px 30px 38px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transition: background .35s ease, color .35s ease;
}
.why-card .n {
  display: block; font-family: var(--display); font-size: 3.6rem; line-height: 1; margin-bottom: 22px;
  color: transparent; -webkit-text-stroke: 1.5px var(--ink); transition: color .35s ease, -webkit-text-stroke-color .35s ease;
}
.why-card .icon {
  position: absolute; top: 32px; right: 28px; margin: 0; width: 50px; height: 50px; border-radius: 50%;
  background: var(--ink); color: var(--yellow); transition: background .35s ease, color .35s ease, transform .5s var(--ease);
}
.why-card .icon svg { width: 24px; height: 24px; }
.why-card h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; line-height: 1.05;
  font-size: clamp(1.45rem, 2vw, 1.8rem); color: var(--ink); margin-bottom: 10px; transition: color .35s ease;
}
.why-card p { margin: 0; color: #3d3510; font-size: .95rem; transition: color .35s ease; }
.why-card:hover { background: var(--ink); }
.why-card:hover .n { color: var(--yellow); -webkit-text-stroke-color: var(--yellow); }
.why-card:hover .icon { background: var(--yellow); color: var(--ink); transform: rotate(-12deg) scale(1.08); }
.why-card:hover h3 { color: #fff; }
.why-card:hover p { color: #c9d0d6; }
/* Why: moving ticker band */
.why-band { background: var(--ink); color: var(--yellow); overflow: hidden; padding: 16px 0; margin: -110px 0 96px; }
.why-band-track { display: flex; width: max-content; animation: marquee 32s linear infinite; }
.why-band-track span {
  display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; white-space: nowrap;
  font-family: var(--display); text-transform: uppercase; font-size: 1.35rem; letter-spacing: .05em;
}
.why-band-track span::after { content: ""; width: 9px; height: 9px; background: var(--yellow); transform: rotate(45deg); }

/* Why: heading wipes in word by word */
.js .why h2 .w { display: block; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); }
.js .why h2 .w + .w { transition-delay: .25s; }
.js .why-head.in h2 .w { clip-path: inset(0 0 -10% 0); }

/* Why: cards draw a top rule, numbers rise, icons pop */
.why-card { overflow: hidden; }
.why-card::after {
  content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 5px; background: var(--ink);
  transform: scaleX(0); transform-origin: left; transition: transform 1s var(--ease), background .35s ease;
}
.why-card.in::after { transform: scaleX(1); transition-delay: calc(var(--d, 0ms) + .2s), 0s; }
.why-card:hover::after { background: var(--yellow); }
.js .why-card .n { opacity: 0; translate: 0 30px; transition: opacity .7s ease, translate .9s var(--ease), color .35s ease, -webkit-text-stroke-color .35s ease; }
.why-card.in .n { opacity: 1; translate: 0 0; transition-delay: calc(var(--d, 0ms) + .25s), calc(var(--d, 0ms) + .25s), 0s, 0s; }
.js .why-card .icon { scale: 0; rotate: -120deg; transition: scale .7s cubic-bezier(.3, 1.5, .5, 1), rotate .8s var(--ease), background .35s ease, color .35s ease, transform .5s var(--ease); }
.why-card.in .icon { scale: 1; rotate: 0deg; transition-delay: calc(var(--d, 0ms) + .45s), calc(var(--d, 0ms) + .45s), 0s, 0s, 0s; }
/* Soft spotlight that follows the cursor */
.why-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(242, 176, 30, .22), transparent 65%);
}
.why-card:hover::before { opacity: 1; }
.why-card > * { position: relative; }

@media (max-width: 960px) {
  .why-head { grid-template-columns: 1fr; gap: 28px; }
  .why-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .why { padding: 84px 0 90px; }
  .why-band { margin: -84px 0 64px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-sticker { width: 110px; height: 110px; }
}

/* ---------- Logo (inline SVG; colour follows the link's text colour) ---------- */
.brand { color: var(--brand); }
.brand-logo { display: block; height: 40px; width: auto; transition: height .3s ease; }
.site-header.scrolled .brand-logo { height: 34px; }
.site-footer .brand { color: #fff; }
.site-footer .brand-logo { height: 52px; }
@media (max-width: 560px) { .brand-logo, .site-header.scrolled .brand-logo { height: 32px; } }

/* ---------- Bank ramp compliance page ---------- */
.compliance-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 56px; align-items: start; }
.legal-note { margin-top: 36px; padding: 16px 18px; border-left: 3px solid var(--yellow); background: var(--muted-bg); font-size: .9rem; color: var(--muted) !important; }
.spec-card {
  position: sticky; top: 100px; background: var(--brand); color: rgba(255, 255, 255, .82);
  border-radius: var(--radius-lg); padding: 34px 32px;
}
.spec-card .eyebrow { color: rgba(255, 255, 255, .75); }
.spec-card .eyebrow::before { background: var(--yellow); }
.spec-card h2 { color: #fff; font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 18px; }
.spec-card dl { margin: 0 0 26px; }
.spec-card dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.spec-card dt { font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .7); }
.spec-card dd { margin: 0; text-align: right; font-family: var(--display); font-size: 1.6rem; text-transform: uppercase; letter-spacing: .01em; color: var(--yellow); line-height: 1; }
.spec-card dd small { display: block; margin-top: 4px; font-family: var(--mono); font-size: .62rem; letter-spacing: .12em; color: rgba(255, 255, 255, .6); }
@media (max-width: 900px) { .compliance-grid { grid-template-columns: 1fr; gap: 36px; } .spec-card { position: static; } }

/* Accessibility page pointer to the compliance page */
.notice-link {
  display: grid; gap: 6px; padding: 28px 32px; border-radius: var(--radius-lg); text-decoration: none;
  background: var(--yellow); color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s ease;
}
.notice-link .eyebrow { color: var(--ink); margin: 0; }
.notice-link .eyebrow::before { background: var(--ink); }
.notice-link strong { font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: .01em; font-size: clamp(1.4rem, 2.6vw, 2rem); line-height: 1.1; }
.notice-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }

/* ---------- Legal pages (privacy, terms) ---------- */
.legal { max-width: 760px; }
.legal-updated { font-family: var(--mono); font-size: .75rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 28px; }
.legal h2 {
  font-family: var(--font); text-transform: none; font-weight: 600; letter-spacing: -.02em; line-height: 1.25;
  font-size: 1.35rem; margin: 44px 0 12px; padding-top: 22px; border-top: 1px solid var(--line);
}
.legal p, .legal li { color: var(--ink-2); line-height: 1.75; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal li::marker { color: var(--yellow); }
.legal a { color: var(--accent-ink); }

/* Footer legal links */
.legal-links { display: inline-flex; flex-wrap: wrap; gap: 8px 22px; }
.legal-links a { color: #c8cfd5; }

/* Form consent line */
.consent { margin: 14px 0 0; font-size: .85rem; color: var(--muted); text-align: center; }
.consent a { color: var(--accent-ink); }

/* Contact: map card (replaces the embedded map, so no third-party cookies) */
.map-card {
  position: relative; overflow: hidden; isolation: isolate; display: flex; gap: 22px; align-items: flex-start;
  background: var(--brand); color: rgba(255, 255, 255, .82); border-radius: var(--radius-lg); padding: 34px 32px;
}
.map-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .07) 1px, transparent 1px), linear-gradient(to bottom, rgba(255, 255, 255, .07) 1px, transparent 1px);
  background-size: 32px 32px;
}
.map-card .eyebrow { color: rgba(255, 255, 255, .75); margin-bottom: 10px; }
.map-card .eyebrow::before { background: var(--yellow); }
.map-card h3 { color: #fff; font-size: 1.35rem; margin-bottom: 6px; }
.map-card p { margin-bottom: 20px; }
.map-pin {
  flex: none; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: var(--yellow); color: var(--brand); box-shadow: 0 0 0 8px rgba(242, 176, 30, .18);
}
.map-pin svg { width: 28px; height: 28px; }
@media (max-width: 480px) { .map-card { flex-direction: column; padding: 28px 22px; } }

/* ---------- Big outlined section words ---------- */
.mega { font-family: var(--display); text-transform: uppercase; font-size: clamp(3.6rem, 10vw, 8.5rem); line-height: .9; margin: 0; color: var(--ink); }
.mega .o { color: transparent; -webkit-text-stroke: 1.5px var(--ink); }

/* ---------- CTA band on colour ---------- */
.cta-band { background: var(--brand); isolation: isolate; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255, 255, 255, .1) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
}
.cta-band, .cta-band p { color: rgba(255, 255, 255, .88); }
.cta-band .tagline em { color: var(--yellow); }

/* ==========================================================
   Motion
   ========================================================== */

/* ---------- Page-to-page transition (View Transitions API) ---------- */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
.wa-float { view-transition-name: wa-float; }

::view-transition-old(root) { animation: vt-out .45s cubic-bezier(.4, 0, .2, 1) both; }
::view-transition-new(root) { animation: vt-in .7s var(--ease) both; }
html:active-view-transition-type(back)::view-transition-old(root) { animation-name: vt-out-back; }
html:active-view-transition-type(back)::view-transition-new(root) { animation-name: vt-in-back; }
/* No blur: blurring a full-page snapshot is heavy for phones and made page changes stutter */
@keyframes vt-out      { to   { opacity: 0; transform: translateX(-48px); } }
@keyframes vt-in       { from { opacity: 0; transform: translateX(48px); } }
@keyframes vt-out-back { to   { opacity: 0; transform: translateX(48px); } }
@keyframes vt-in-back  { from { opacity: 0; transform: translateX(-48px); } }

/* Fallback for browsers without View Transitions */
.no-vt main { animation: page-in .6s var(--ease) both; }
.no-vt body.page-out main { animation: page-out .25s ease forwards; }
@keyframes page-in  { from { opacity: 0; transform: translateX(32px); } }
@keyframes page-out { to   { opacity: 0; transform: translateX(-32px); } }

/* ---------- Scroll reveal ----------
   Uses the independent `translate` property so hover `transform`s still work. */
.js [data-reveal] {
  opacity: 0;
  transition: opacity 1s ease, translate 1.1s var(--ease), scale 1.1s var(--ease),
              transform .4s var(--ease), box-shadow .4s ease, border-color .3s ease;
  transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s;
}
.js [data-reveal="up"]    { translate: 0 40px; }
.js [data-reveal="left"]  { translate: -40px 0; }
.js [data-reveal="right"] { translate: 40px 0; }
.js [data-reveal="zoom"]  { scale: .95; }
.js [data-reveal].in      { opacity: 1; translate: 0 0; scale: 1; }
.step[data-reveal] { transition-delay: var(--d, 0ms), var(--d, 0ms), var(--d, 0ms), 0s, 0s, 0s; }
.step::after { transition-delay: calc(var(--d, 0ms) + .2s); }
/* Elements waiting to slide in from the side must not cause sideways scrolling */
main { overflow-x: clip; }

/* ---------- Scroll-linked parallax on images (Chromium / Safari 26+) ---------- */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .split > .ph, .split > .photo, .product .ph { animation: parallax linear both; animation-timeline: view(); }
    .page-banner img { animation: banner-zoom linear both; animation-timeline: view(); animation-range: exit; }
    @keyframes banner-zoom { to { transform: scale(1.12); } }
    @keyframes parallax { from { transform: translateY(30px); } to { transform: translateY(-30px); } }
  }
}

/* ---------- Respect reduced-motion preference ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important;
    transition: none !important; scroll-behavior: auto !important;
  }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .js [data-reveal] { opacity: 1; translate: none; scale: none; }
  .line > span { transform: none; }
  .statement .w { color: var(--ink); }
  .stack-card { transform: none !important; }
  /* Services ride falls back to a simple stacked list */
  .svc-ride { height: auto; }
  .svc-sticky { position: relative; height: auto; display: block; }
  .svc-top { height: 260px; }
  .svc-bottom { display: block; padding: 46px 0 50px; }
  .svc-track { flex-direction: column; transform: none !important; gap: 18px; width: auto; }
  .svc-panel { width: auto; height: auto; grid-template-columns: 1fr 1fr; opacity: 1; transform: none; }
  .svc-speed, .svc-progress { display: none; }
}
