/* ==========================================================================
   Walton Pools — style.css
   Concept: "The Deep End" — the page descends from sunlit surface to deep
   water. Sections step down a navy ramp; a depth rail tracks the descent.
   Type: Bodoni Moda (display, echoes the logo monogram) + Jost (body).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  /* brand */
  --azure: #147AEC;        /* sampled from logo */
  --azure-600: #0E5FC2;    /* AA-safe on white / button fill */
  --azure-700: #0B4DA0;
  --aqua: #6FD4F2;         /* marblite shallow-water accent */
  --aqua-soft: rgba(111, 212, 242, 0.32);

  /* depth ramp — surface to deep end */
  --foam: #F5FAFD;
  --shallow-1: #EAF4FB;
  --shallow-2: #DDEDF8;
  --shallow-3: #CFE6F5;
  --deep-1: #0A3050;
  --deep-2: #072438;
  --deep-3: #061B2C;
  --deep-4: #04121F;
  --abyss: #030D17;

  /* text */
  --ink: #082540;
  --ink-muted: #45607A;
  --light: #EFF7FC;
  --light-muted: #A8C2D8;

  /* semantic */
  --color-bg: var(--foam);
  --color-fg: var(--ink);
  --color-accent: var(--azure-600);
  --color-border: rgba(8, 37, 64, 0.12);
  --color-error: #D93843;
  --color-error-dark: #FFA9B0;

  /* type scale — marketing ratio, fluid */
  --step--1: clamp(0.83rem, 0.8rem + 0.16vw, 0.92rem);
  --step-0: clamp(1rem, 0.95rem + 0.32vw, 1.13rem);
  --step-1: clamp(1.22rem, 1.13rem + 0.5vw, 1.42rem);
  --step-2: clamp(1.5rem, 1.32rem + 0.9vw, 1.9rem);
  --step-3: clamp(1.9rem, 1.58rem + 1.6vw, 2.6rem);
  --step-4: clamp(2.3rem, 1.84rem + 2.4vw, 3.4rem);
  --step-5: clamp(2.9rem, 2.2rem + 3.6vw, 4.6rem);
  --step-6: clamp(2.7rem, 1.7rem + 5.4vw, 5.5rem);

  /* space (8-pt) */
  --space-1: 4px;  --space-2: 8px;  --space-3: 12px; --space-4: 16px;
  --space-5: 24px; --space-6: 32px; --space-7: 48px; --space-8: 64px;
  --space-9: 96px; --space-10: 128px;
  --section-pad: clamp(4rem, 9vw, 8.5rem);

  /* misc */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --shadow-lift: 0 6px 18px rgba(8, 37, 64, 0.08), 0 24px 60px -18px rgba(8, 37, 64, 0.18);
  --font-display: "Bodoni Moda", "Georgia", serif;
  --font-body: "Jost", "Segoe UI", system-ui, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --header-h: 78px;
}

/* ---------- Reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--step-0);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-fg);
  background: var(--deep-4); /* behind everything: deep water */
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a, button, input, textarea, [role="slider"] {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--aqua); color: var(--deep-4); }

:focus-visible {
  outline: 2px solid var(--azure-600);
  outline-offset: 3px;
  border-radius: 4px;
}
.dark-zone :focus-visible,
.site-footer :focus-visible,
.site-header.on-dark :focus-visible { outline-color: var(--aqua); }

.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 300;
  background: var(--azure-600); color: #fff;
  padding: 10px 18px; border-radius: 999px;
  font-weight: 600; text-decoration: none;
  transform: translateY(-64px); transition: transform 200ms var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

.container {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 60px);
}

/* ---------- Typography helpers ---------- */
h1, h2 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h2 { font-size: var(--step-4); max-width: 22ch; }
h3 { font-weight: 600; line-height: 1.25; }
.section p { max-width: 58ch; }

.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--azure-600);
  margin-bottom: var(--space-4);
}
.eyebrow::before { content: ""; width: 26px; height: 1.5px; background: currentColor; opacity: 0.7; }
.dark-zone .eyebrow { color: var(--aqua); }

.section { padding-block: var(--section-pad); position: relative; scroll-margin-top: calc(var(--header-h) + 8px); }
.section-intro { color: var(--ink-muted); font-size: var(--step-1); font-weight: 300; margin-top: var(--space-4); }
.dark-zone .section-intro { color: var(--light-muted); }
.section h2 + .section-intro { margin-top: var(--space-4); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 30px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; letter-spacing: 0.01em;
  text-decoration: none; cursor: pointer;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
  will-change: transform;
  min-height: 48px;
}
.btn:active { transform: scale(0.97); }
.btn-sm { padding: 10px 20px; font-size: 0.9rem; min-height: 44px; }
.btn-block { width: 100%; }

.btn-primary {
  position: relative; overflow: hidden;
  background: var(--azure-600); color: #fff;
  box-shadow: 0 10px 26px -10px rgba(14, 95, 194, 0.65);
}
.btn-primary:hover { background: var(--azure-700); transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(14, 95, 194, 0.75); }
.btn-primary svg { flex: none; }

/* MagicUI-style shimmer sweep */
.btn-shimmer::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.45) 50%, transparent 58%);
  background-size: 240% 100%;
  animation: shimmer 3.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes shimmer {
  0% { background-position: 130% 0; }
  46%, 100% { background-position: -110% 0; }
}

.btn-ghost {
  border: 1.5px solid rgba(255, 255, 255, 0.62); color: #fff;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-2px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 400;
  background: var(--deep-4);
  display: grid; place-items: center;
  transition: transform 700ms var(--ease-out), visibility 0s 700ms;
}
.preloader-inner { position: relative; display: grid; place-items: center; gap: 26px; }
.preloader-logo {
  width: clamp(150px, 22vw, 230px); height: auto;
  animation: preloader-breathe 1.6s ease-in-out infinite;
}
.preloader-water {
  width: clamp(150px, 22vw, 230px); height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua) 35%, var(--azure) 65%, transparent);
  background-size: 180% 100%;
  animation: waterline-sweep 1.15s linear infinite;
}
@keyframes preloader-breathe { 0%, 100% { opacity: 0.85; transform: translateY(0); } 50% { opacity: 1; transform: translateY(-5px); } }
@keyframes waterline-sweep { 0% { background-position: 140% 0; } 100% { background-position: -40% 0; } }
body.is-loaded .preloader { transform: translateY(-101%); visibility: hidden; }

/* ---------- Depth rail ---------- */
.depth-rail {
  position: fixed; left: 26px; top: 50%; z-index: 90;
  transform: translateY(-50%);
  display: none;
  flex-direction: column; align-items: center; gap: 14px;
  pointer-events: none;
  mix-blend-mode: normal;
}
@media (min-width: 1200px) { .depth-rail { display: flex; } }
.depth-rail-line {
  position: relative; width: 2px; height: 190px; border-radius: 2px;
  background: rgba(125, 160, 190, 0.35);
}
.depth-rail-fill {
  position: absolute; top: 0; left: 0; width: 100%; height: 0%;
  background: linear-gradient(180deg, var(--aqua), var(--azure));
  border-radius: inherit;
}
.depth-rail-bob {
  position: absolute; left: 50%; top: 0%;
  width: 9px; height: 9px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--aqua);
  box-shadow: 0 0 0 4px rgba(111, 212, 242, 0.22);
}
.depth-readout {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em;
  color: var(--rail-fg, var(--ink-muted));
  font-variant-numeric: tabular-nums;
  transition: color 400ms ease;
}
body.rail-light { --rail-fg: var(--light-muted); }
.depth-unit { opacity: 0.6; margin-left: 2px; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  transition: background-color 300ms ease, box-shadow 300ms ease, backdrop-filter 300ms ease;
}
.header-inner {
  max-width: 1400px; margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 48px);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display: inline-flex; align-items: center; }
.brand-logo { width: 92px; height: auto; }
.brand-logo-dark { display: none; }

.site-nav ul { display: flex; gap: clamp(18px, 2.6vw, 36px); }
.site-nav a {
  text-decoration: none; font-weight: 500; font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.88);
  padding: 6px 2px;
  position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; background: var(--aqua);
  transition: right 240ms var(--ease-out);
}
.site-nav a:hover::after, .site-nav a[aria-current="true"]::after { right: 0; }
.site-nav a[aria-current="true"] { color: #fff; }

.header-actions { display: flex; align-items: center; gap: 16px; }

/* scrolled = light glass */
.site-header.scrolled {
  background: rgba(245, 250, 253, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(8, 37, 64, 0.08), 0 10px 30px -18px rgba(8, 37, 64, 0.25);
}
.site-header.scrolled .brand-logo-light { display: none; }
.site-header.scrolled .brand-logo-dark { display: block; }
.site-header.scrolled .site-nav a { color: var(--ink-muted); }
.site-header.scrolled .site-nav a:hover,
.site-header.scrolled .site-nav a[aria-current="true"] { color: var(--ink); }
.site-header.scrolled .site-nav a::after { background: var(--azure-600); }

/* over dark sections while scrolled */
.site-header.scrolled.in-deep {
  background: rgba(6, 27, 44, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.07);
}
.site-header.scrolled.in-deep .brand-logo-light { display: block; }
.site-header.scrolled.in-deep .brand-logo-dark { display: none; }
.site-header.scrolled.in-deep .site-nav a { color: rgba(255, 255, 255, 0.85); }
.site-header.scrolled.in-deep .site-nav a:hover,
.site-header.scrolled.in-deep .site-nav a[aria-current="true"] { color: #fff; }
.site-header.scrolled.in-deep .site-nav a::after { background: var(--aqua); }

/* hamburger */
.nav-toggle {
  display: none; align-items: center; gap: 10px; color: #fff;
  min-height: 44px; padding: 8px 16px; border-radius: 999px;
  background: rgba(4, 18, 31, 0.4);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  transition: background-color 250ms ease, color 250ms ease;
}
.site-header.scrolled:not(.in-deep) .nav-toggle { color: var(--ink); background: rgba(8, 37, 64, 0.07); }
.site-header.scrolled.in-deep .nav-toggle { background: rgba(255, 255, 255, 0.08); }
.nav-toggle-box { display: inline-flex; flex-direction: column; gap: 6px; width: 24px; }
.nav-toggle-box span { height: 2px; width: 100%; background: currentColor; border-radius: 2px; transition: transform 250ms var(--ease-out), opacity 200ms; }
.nav-toggle-label { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-box span:last-child { transform: translateY(-4px) rotate(-45deg); }

/* mobile nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 150;
  background: rgba(4, 18, 31, 0.94);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  display: grid; align-content: center; justify-items: start;
  padding: 120px clamp(28px, 8vw, 72px) calc(48px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav ul { display: grid; gap: 6px; }
.mobile-nav ul a {
  font-family: var(--font-display); font-size: var(--step-3);
  color: var(--light); text-decoration: none; line-height: 1.35;
  display: inline-block; padding: 4px 0;
}
.mobile-nav ul a:hover { color: var(--aqua); }
.mobile-nav-cta { margin-top: 40px; display: grid; gap: 18px; justify-items: start; }
.mobile-nav-tel { color: var(--light-muted); text-decoration: none; font-size: var(--step-1); }
.mobile-nav-tel:hover { color: var(--aqua); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  color: #fff;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -1; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover;
  animation: hero-drift 16s var(--ease-out) forwards;
  transform-origin: 62% 40%;
}
@keyframes hero-drift { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero-caustics { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.5; mix-blend-mode: screen; }
.hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(75deg, rgba(4, 18, 31, 0.72) 0%, rgba(4, 18, 31, 0.38) 46%, rgba(4, 18, 31, 0.12) 75%),
    linear-gradient(180deg, rgba(4, 18, 31, 0.42) 0%, rgba(4, 18, 31, 0.05) 32%, rgba(4, 18, 31, 0.6) 100%);
}
.hero-content { position: relative; width: 100%; padding-top: calc(var(--header-h) + 12px); padding-bottom: 120px; }
.hero-eyebrow { color: var(--aqua); }
.hero-title {
  font-size: var(--step-6);
  font-weight: 600;
  max-width: 13ch;
  text-wrap: balance;
}
.hero-title .line { display: block; overflow: hidden; padding-block: 0.06em; }
.hero-title .w {
  display: inline-block;
  transform: translateY(115%) rotate(1.2deg);
  opacity: 0;
}
body.is-loaded .hero-title .w { animation: word-rise 900ms var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes word-rise { to { transform: translateY(0) rotate(0); opacity: 1; } }
.hero-title .em { font-style: italic; color: var(--aqua); font-weight: 500; }
.hero-title .t1, .hero-title .t2 { display: block; }
.hero-title .t2 { font-style: italic; color: var(--aqua); font-weight: 500; }
.ba-grid.ba-solo { grid-template-columns: minmax(0, 920px); justify-content: center; }
.ba figcaption .card-link { margin-left: 10px; }
.hero-sub {
  margin-top: var(--space-5);
  font-size: var(--step-1); font-weight: 300;
  color: rgba(239, 247, 252, 0.92);
  max-width: 44ch;
}
.hero-ctas { margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.hero-tel { margin-top: var(--space-4); font-size: 0.95rem; color: rgba(239, 247, 252, 0.75); }
.hero-tel a { color: #fff; text-decoration-color: var(--aqua); text-underline-offset: 4px; font-weight: 500; }
.hero-tel a:hover { color: var(--aqua); }

/* load reveals (non-title) */
.reveal-load { opacity: 0; transform: translateY(22px); }
body.is-loaded .reveal-load { animation: load-in 800ms var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes load-in { to { opacity: 1; transform: translateY(0); } }

/* hero marquee */
.hero-marquee {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(4, 18, 31, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding-block: 13px calc(13px + env(safe-area-inset-bottom, 0px));
}
.hero-marquee .marquee-track li {
  font-size: 0.8rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(239, 247, 252, 0.85);
  white-space: nowrap;
}
.hero-marquee .marquee-track li[aria-hidden="true"] { color: var(--aqua); font-size: 0.55rem; }

.scroll-cue {
  position: absolute; bottom: 66px; left: 50%; transform: translateX(-50%);
  width: 1.5px; height: 42px; overflow: hidden; border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
}
.scroll-cue span {
  position: absolute; inset: 0;
  background: var(--aqua);
  animation: cue-drop 1.9s var(--ease-out) infinite;
}
@keyframes cue-drop { 0% { transform: translateY(-100%); } 62% { transform: translateY(0); } 100% { transform: translateY(102%); } }

/* ---------- Marquee (shared) ---------- */
.marquee { overflow: hidden; display: flex; }
.marquee-track {
  display: flex; align-items: center; gap: 34px;
  width: max-content; flex: none;
  padding-inline: 17px;
  animation: marquee var(--marquee-dur, 40s) linear infinite;
}
.marquee[data-reverse] .marquee-track { animation-direction: reverse; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Waterline divider ---------- */
.waterline { position: absolute; top: -22px; left: 0; right: 0; height: 24px; pointer-events: none; overflow: hidden; }
.waterline::before, .waterline::after {
  content: ""; position: absolute; top: 0; bottom: 0;
  left: -340px; right: 0;
  background-repeat: repeat-x;
  background-size: 340px 24px;
  background-position: bottom;
  will-change: transform;
}
.waterline::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 24'%3E%3Cpath d='M0 14 Q42 4 85 14 T170 14 T255 14 T340 14 V24 H0 Z' fill='%236FD4F2' fill-opacity='0.5'/%3E%3C/svg%3E");
  animation: waterline-drift 13s linear infinite;
  translate: 0 -5px;
}
.waterline::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 24'%3E%3Cpath d='M0 12 Q42 3 85 12 T170 12 T255 12 T340 12 V24 H0 Z' fill='%23F5FAFD'/%3E%3C/svg%3E");
  animation: waterline-drift 8.5s linear infinite reverse;
}
@keyframes waterline-drift { to { transform: translateX(340px); } }

/* ---------- Stats ---------- */
.stats { background: var(--foam); position: relative; padding-block: clamp(56px, 8vw, 96px) clamp(40px, 6vw, 72px); }
.stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 56px); }
.stat { border-top: 1px solid var(--color-border); padding-top: var(--space-5); }
.stat-number {
  font-family: var(--font-display); font-size: var(--step-4); font-weight: 600;
  color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums;
}
.stat-plus { color: var(--azure-600); font-weight: 500; }
.stat-label { margin-top: var(--space-3); color: var(--ink-muted); font-size: var(--step--1); max-width: 30ch; }

/* ---------- About ---------- */
.about { background: var(--foam); }
.about-grid {
  display: grid; grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.about-copy p { color: var(--ink-muted); margin-top: var(--space-4); }
.about-copy p:first-of-type { color: var(--ink); font-size: var(--step-1); font-weight: 300; }
.about-points { margin-top: var(--space-5); display: grid; gap: 12px; }
.about-points li { display: flex; gap: 12px; align-items: baseline; color: var(--ink); font-weight: 500; }
.about-points li::before {
  content: "✓"; flex: none;
  color: var(--azure-600); font-weight: 700;
}
.about-collage {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: auto auto;
  gap: 18px;
}
.about-collage figure { border-radius: var(--radius-md); overflow: hidden; box-shadow: var(--shadow-lift); }
.about-collage img { width: 100%; height: 100%; object-fit: cover; }
.collage-a { grid-row: 1 / 3; aspect-ratio: 3 / 4.1; }
.collage-b { aspect-ratio: 4 / 3; }
.collage-c { aspect-ratio: 4 / 3.4; }
.quote-band { margin-top: clamp(64px, 9vw, 120px); }
.quote-band blockquote { text-align: center; position: relative; padding-top: var(--space-6); }
.quote-band blockquote::before {
  content: "“";
  position: absolute; top: -0.28em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: 7rem; line-height: 1;
  color: var(--aqua); opacity: 0.5; pointer-events: none;
}
.quote-band p {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--step-4); color: var(--ink);
  max-width: 20ch; margin-inline: auto; line-height: 1.2;
}
.quote-band cite {
  display: block; margin-top: var(--space-4);
  font-style: normal; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-muted);
}

/* ---------- Transformations / BA slider ---------- */
.transformations { background: var(--shallow-1); }
.ba-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3.5vw, 44px); margin-top: clamp(36px, 5vw, 64px); }
.ba-frame {
  position: relative; aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg); overflow: hidden; isolation: isolate;
  box-shadow: var(--shadow-lift);
  touch-action: pan-y;
}
.ba-frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before-wrap {
  position: absolute; inset: 0;
  clip-path: inset(0 calc(100% - var(--pos, 50%)) 0 0);
}
.ba-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos, 50%);
  width: 2px; transform: translateX(-1px);
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 14px rgba(4, 18, 31, 0.4);
  pointer-events: none;
}
.ba-grip {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(245, 250, 253, 0.92);
  color: var(--ink);
  box-shadow: 0 6px 20px rgba(4, 18, 31, 0.35);
  backdrop-filter: blur(4px);
}
.ba-tag {
  position: absolute; top: 14px;
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  padding: 7px 13px; border-radius: 999px;
  background: rgba(4, 18, 31, 0.55); color: #fff;
  backdrop-filter: blur(6px);
}
.ba-tag-before { left: 14px; }
.ba-tag-after { right: 14px; background: rgba(14, 95, 194, 0.82); }
.ba-range {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: ew-resize; margin: 0;
  -webkit-appearance: none; appearance: none;
}
.ba-frame:has(.ba-range:focus-visible) .ba-grip {
  outline: 3px solid var(--azure); outline-offset: 3px;
}
.ba figcaption { margin-top: var(--space-4); color: var(--ink-muted); font-size: var(--step--1); }

/* ---------- Process ---------- */
.process { background: var(--shallow-2); }
.process-steps {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(20px, 2.6vw, 32px);
  counter-reset: step;
}
.step figure {
  aspect-ratio: 4 / 3; border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 4px 14px rgba(8, 37, 64, 0.10);
}
.step img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.step:hover img { transform: scale(1.045); }
.step-head { display: flex; align-items: baseline; gap: 12px; margin-top: var(--space-4); }
.step-num {
  font-family: var(--font-display); font-style: italic; font-weight: 500;
  font-size: var(--step-2); color: var(--azure-600); line-height: 1;
}
.step h3 { font-size: var(--step-0); color: var(--ink); }
.step p { margin-top: var(--space-2); color: var(--ink-muted); font-size: var(--step--1); }

/* ---------- Services / bento ---------- */
.services { background: var(--shallow-3); }
.bento {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; gap: clamp(16px, 2vw, 24px);
  grid-template-columns: repeat(12, 1fr);
  grid-template-areas:
    "f f f f f f f b b b b b"
    "f f f f f f f c c c c c"
    "d d d d e e e e g g g g";
}
.bento-card {
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(8, 37, 64, 0.08);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform 240ms var(--ease-out), box-shadow 240ms ease;
}
.bento-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lift); }
.bento-card figure { aspect-ratio: 16 / 10; overflow: hidden; flex: none; }
.bento-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms var(--ease-out); }
.bento-card:hover img { transform: scale(1.05); }
.bento-body { padding: clamp(18px, 2vw, 26px); display: grid; gap: 8px; align-content: start; }
.bento-body h3 { color: var(--ink); font-size: var(--step-1); }
.bento-body p { color: var(--ink-muted); font-size: var(--step--1); }
.bento-feature { grid-area: f; }
.bento-feature figure { aspect-ratio: 16 / 9.4; }
.bento-feature .bento-body h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.bento-feature .bento-body p { font-size: var(--step-0); max-width: 52ch; }
.bento-card:nth-of-type(2) { grid-area: b; }
.bento-card:nth-of-type(3) { grid-area: c; }
.bento-card:nth-of-type(4) { grid-area: d; }
.bento-card:nth-of-type(5) { grid-area: e; }
.bento-card:nth-of-type(6) { grid-area: g; }
.bento-card:nth-of-type(3) figure { aspect-ratio: 16 / 10; }

.card-link {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 6px; font-weight: 600; color: var(--azure-600);
  text-decoration: none; font-size: 0.95rem;
  width: fit-content;
}
.card-link svg { transition: transform 200ms var(--ease-out); }
.card-link:hover svg { transform: translateX(4px); }
.card-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* border beam on feature card */
@property --beam-angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
[data-beam] { position: relative; }
[data-beam]::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  border-radius: inherit; padding: 1.6px;
  background: conic-gradient(from var(--beam-angle),
    transparent 0deg, transparent 285deg,
    var(--aqua) 320deg, var(--azure) 342deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  animation: beam-spin 7s linear infinite;
  pointer-events: none;
}
@keyframes beam-spin { to { --beam-angle: 360deg; } }

/* service chips marquees */
.services-chips { margin-top: clamp(40px, 6vw, 72px); display: grid; gap: 14px; }
.marquee-track.chips { gap: 14px; }
.marquee-track.chips li {
  white-space: nowrap;
  padding: 10px 20px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(14, 95, 194, 0.22);
  color: var(--ink); font-weight: 500; font-size: 0.9rem;
}

/* ---------- Descent divider ---------- */
.descent {
  height: clamp(240px, 32vh, 340px);
  background: linear-gradient(180deg, var(--shallow-3) 0%, #6FA5CC 34%, #2A5B85 62%, var(--deep-1) 100%);
  display: grid; place-items: center;
}
.descent-note {
  font-family: var(--font-display); font-style: italic;
  font-size: var(--step-1); letter-spacing: 0.06em;
  color: rgba(239, 247, 252, 0.85);
}

/* ---------- Night ---------- */
.night { background: var(--deep-1); color: var(--light); }
.night-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 88px); align-items: center;
}
.night h2 { color: #fff; }
.night-copy > p { color: var(--light-muted); margin-top: var(--space-4); font-size: var(--step-1); font-weight: 300; }
.night-list { margin-top: var(--space-5); display: grid; gap: 12px; }
.night-list li { display: flex; gap: 12px; align-items: baseline; font-weight: 500; color: var(--light); }
.night-list li::before { content: "✓"; flex: none; color: var(--aqua); font-weight: 700; }
.night-copy .btn { margin-top: var(--space-6); }
.night-media { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; align-items: start; }
.night-media figure {
  border-radius: var(--radius-md); overflow: hidden;
  box-shadow: 0 30px 80px -24px rgba(63, 169, 245, 0.4);
}
.night-media img { width: 100%; height: 100%; object-fit: cover; }
.night-a { aspect-ratio: 3 / 4; }
.night-b { aspect-ratio: 3 / 4; margin-top: 56px; }

/* ---------- Gallery ---------- */
.gallery { background: var(--deep-2); color: var(--light); }
.gallery h2 { color: #fff; }
.gallery-rows { margin-top: clamp(36px, 5vw, 64px); display: grid; gap: 18px; }
.marquee-imgs .marquee-track { gap: 18px; }
.marquee-imgs li { flex: none; height: clamp(160px, 22vw, 250px); }
.marquee-imgs img {
  height: 100%; width: auto;
  border-radius: var(--radius-sm);
  filter: brightness(0.94);
  transition: filter 250ms ease, transform 250ms var(--ease-out);
}
.marquee-imgs img:hover { filter: brightness(1.05); transform: scale(1.02); }

/* ---------- Why ---------- */
.why { background: var(--deep-3); color: var(--light); }
.why h2 { color: #fff; }
.why-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  gap: clamp(18px, 2.4vw, 28px);
}
.why-card {
  background: rgba(255, 255, 255, 0.045);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 36px);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform 240ms var(--ease-out), border-color 240ms ease, background-color 240ms ease;
}
.why-card:hover { transform: translateY(-5px); border-color: rgba(111, 212, 242, 0.4); background: rgba(255, 255, 255, 0.07); }
.why-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: grid; place-items: center;
  background: rgba(20, 122, 236, 0.18);
  color: var(--aqua);
  margin-bottom: var(--space-5);
}
.why-card h3 { color: #fff; font-size: var(--step-1); }
.why-card p { margin-top: var(--space-3); color: var(--light-muted); font-size: var(--step--1); line-height: 1.7; }

/* ---------- Contact ---------- */
.contact { background: var(--deep-4); color: var(--light); overflow: hidden; }
.contact-caustics { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.3; mix-blend-mode: screen; pointer-events: none; }
.contact-inner { position: relative; }
.contact-title { font-size: var(--step-5); color: #fff; max-width: 16ch; }
.contact-grid {
  margin-top: clamp(40px, 6vw, 72px);
  display: grid; grid-template-columns: 1.06fr 0.94fr;
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.quote-form { display: grid; gap: 20px; max-width: 560px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 500; font-size: 0.95rem; color: var(--light); }
.field .optional { color: var(--light-muted); font-weight: 400; font-size: 0.85rem; }
.field input, .field textarea {
  width: 100%;
  font: inherit; font-size: 1rem; color: #fff;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  transition: border-color 180ms ease, background-color 180ms ease;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(168, 194, 216, 0.55); }
.field input:hover, .field textarea:hover { border-color: rgba(255, 255, 255, 0.34); }
.field input:focus-visible, .field textarea:focus-visible {
  outline: 2px solid var(--aqua); outline-offset: 0;
  border-color: var(--aqua);
  background: rgba(255, 255, 255, 0.09);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error-dark); }
.field-error { color: var(--color-error-dark); font-size: 0.88rem; }
.form-note { color: var(--light-muted); font-size: 0.85rem; margin-top: -4px; }
.quote-form .btn { justify-self: start; }
.quote-form .btn-block { justify-self: stretch; }

.contact-direct-title { font-size: var(--step-1); color: #fff; }
.contact-list { margin-top: var(--space-5); display: grid; gap: 26px; }
.contact-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--light-muted); margin-bottom: 6px;
}
.contact-value {
  font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-2); color: #fff;
  text-decoration: none;
}
a.contact-value:hover { color: var(--aqua); }
.contact-addr { font-family: var(--font-body); font-size: var(--step-0); font-weight: 400; line-height: 1.6; color: var(--light); }
.contact-hours { margin-top: var(--space-6); color: var(--light-muted); font-size: var(--step--1); }

/* ---------- Footer ---------- */
.site-footer { background: var(--abyss); color: var(--light-muted); padding-top: clamp(56px, 7vw, 88px); }
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1.2fr;
  gap: clamp(32px, 4vw, 56px);
}
.footer-logo { width: 118px; margin-bottom: var(--space-4); opacity: 0.95; }
.footer-brand p { font-size: var(--step--1); line-height: 1.7; }
.site-footer h3 {
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(239, 247, 252, 0.55);
  margin-bottom: var(--space-4);
}
.site-footer ul { display: grid; gap: 10px; font-size: 0.95rem; }
.site-footer a { color: var(--light); text-decoration: none; }
.site-footer a:hover { color: var(--aqua); text-decoration: underline; text-underline-offset: 4px; }
.footer-base {
  margin-top: clamp(40px, 5vw, 64px);
  padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex; flex-wrap: wrap; gap: 16px;
  align-items: center; justify-content: space-between;
  font-size: 0.85rem;
}
.back-top { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; }
.back-top svg { transition: transform 200ms var(--ease-out); }
.back-top:hover svg { transform: translateY(-3px); }

/* ---------- Scroll reveals ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms var(--ease-out), transform 800ms var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* parallax hosts */
[data-parallax] { will-change: transform; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .bento {
    grid-template-areas:
      "f f f f f f f f f f f f"
      "b b b b b b c c c c c c"
      "d d d d e e e e g g g g";
  }
}
@media (max-width: 1000px) {
  .site-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions .btn { display: none; }
  .about-grid, .night-grid, .contact-grid { grid-template-columns: 1fr; }
  .ba-grid { grid-template-columns: 1fr; }
  .process-steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .night-media { max-width: 620px; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .brand-logo { width: 76px; }
  .stats-grid { grid-template-columns: 1fr; gap: 22px; }
  .bento {
    grid-template-areas: "f f f f f f f f f f f f" "b b b b b b b b b b b b" "c c c c c c c c c c c c" "d d d d d d d d d d d d" "e e e e e e e e e e e e" "g g g g g g g g g g g g";
  }
  .about-collage { grid-template-columns: 1fr 1fr; }
  .collage-a { grid-row: auto; grid-column: 1 / 3; aspect-ratio: 16 / 11; }
  .quote-band p { font-size: var(--step-3); }
  .hero-ctas .btn { width: 100%; }
  .hero-content { padding-bottom: 140px; }
  .scroll-cue { display: none; }
  .night-media { grid-template-columns: 1fr 1fr; gap: 14px; }
  .night-b { margin-top: 32px; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-title { font-size: var(--step-4); }
}
@media (max-width: 560px) {
  .process-steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Multi-page layer — effects & page furniture
   ========================================================================== */

/* ---------- WebGL ripple hero ---------- */
#rippleCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; transition: opacity 900ms ease 200ms;
}
#rippleCanvas.ripple-on { opacity: 1; }
.hero-media { z-index: 0; }
.hero-media img, .hero-media canvas { z-index: 0; }
.hero-scrim, .hero-caustics { z-index: 1; }
.hero .container, .hero-marquee, .scroll-cue, .hero-badge { z-index: 2; }

/* ---------- Kinetic letter split ---------- */
.split-word { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.split-ch {
  display: inline-block;
  transform: translateY(118%) rotate(3deg);
  opacity: 0;
  will-change: transform, opacity;
}
body.is-loaded .split-ch { animation: ch-rise 750ms var(--ease-out) forwards; animation-delay: var(--d, 0s); }
@keyframes ch-rise { to { transform: translateY(0) rotate(0); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .split-ch { transform: none; opacity: 1; } }

/* ---------- Page-transition veil ---------- */
html.veil-arriving::before {
  content: ""; position: fixed; inset: 0; z-index: 349;
  background: var(--deep-4);
}
@media (prefers-reduced-motion: reduce) { html.veil-arriving::before { display: none; } }
.veil {
  position: fixed; left: 0; right: 0; z-index: 350;
  top: -6vh; height: 112vh;
  background: var(--deep-4);
  transform: translateY(104%);
  pointer-events: none;
  will-change: transform;
}
.veil::before {
  content: ""; position: absolute; left: 0; right: 0; top: -22px; height: 24px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 340 24'%3E%3Cpath d='M0 14 Q42 4 85 14 T170 14 T255 14 T340 14 V24 H0 Z' fill='%2304121F'/%3E%3C/svg%3E") repeat-x bottom / 340px 24px;
}
.veil::after {
  content: ""; position: absolute; inset: auto 0 40%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--aqua) 40%, var(--azure) 60%, transparent);
  opacity: 0;
}
body.veil-out .veil { transform: translateY(0); transition: transform 560ms cubic-bezier(0.7, 0, 0.3, 1); }
body.veil-in .veil { transform: translateY(0); }
body.veil-in.is-loaded .veil { transform: translateY(-104%); transition: transform 700ms cubic-bezier(0.7, 0, 0.3, 1) 60ms; }

/* ---------- Film grain ---------- */
body::after {
  content: ""; position: fixed; inset: -60px; z-index: 320;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  opacity: 0.045;
  mix-blend-mode: soft-light;
  animation: grain-jitter 0.9s steps(6) infinite;
}
@keyframes grain-jitter {
  0% { transform: translate(0, 0); } 20% { transform: translate(-14px, 8px); }
  40% { transform: translate(10px, -12px); } 60% { transform: translate(-6px, -8px); }
  80% { transform: translate(12px, 10px); } 100% { transform: translate(0, 0); }
}

/* ---------- Rotating badge (hero) ---------- */
.hero-badge {
  position: absolute; right: clamp(24px, 5vw, 72px); bottom: 108px;
  width: 118px; height: 118px;
  display: grid; place-items: center;
  color: #fff; text-decoration: none;
}
.hero-badge svg { position: absolute; inset: 0; animation: badge-spin 16s linear infinite; }
.hero-badge:hover svg { animation-play-state: paused; }
.hero-badge text {
  font: 600 11.5px var(--font-body);
  letter-spacing: 0.24em; text-transform: uppercase;
  fill: rgba(239, 247, 252, 0.85);
}
.hero-badge-core {
  width: 46px; height: 46px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(111, 212, 242, 0.14);
  border: 1px solid rgba(111, 212, 242, 0.45);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  color: var(--aqua);
  transition: background-color 250ms ease, transform 250ms var(--ease-out);
}
.hero-badge:hover .hero-badge-core { background: rgba(111, 212, 242, 0.3); transform: scale(1.08); }
@keyframes badge-spin { to { transform: rotate(360deg); } }
@media (max-width: 1000px) { .hero-badge { display: none; } }

/* ---------- Sub-page hero band ---------- */
.page-hero {
  position: relative; overflow: hidden;
  min-height: clamp(420px, 64vh, 640px);
  display: flex; align-items: flex-end;
  color: #fff;
  padding-bottom: clamp(36px, 6vw, 72px);
}
.page-hero-media { position: absolute; inset: 0; z-index: 0; }
.page-hero-media img {
  width: 100%; height: 112%; object-fit: cover;
  will-change: transform;
}
.page-hero-scrim {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(75deg, rgba(4, 18, 31, 0.66) 0%, rgba(4, 18, 31, 0.28) 55%, rgba(4, 18, 31, 0.1) 80%),
    linear-gradient(180deg, rgba(4, 18, 31, 0.5) 0%, rgba(4, 18, 31, 0.08) 40%, rgba(4, 18, 31, 0.62) 100%);
}
.page-hero .container { position: relative; z-index: 2; width: 100%; }
.crumb {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--aqua); margin-bottom: var(--space-4);
}
.crumb a { color: rgba(239, 247, 252, 0.75); text-decoration: none; }
.crumb a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.crumb span[aria-hidden] { opacity: 0.5; }
.page-hero h1 {
  font-size: var(--step-5);
  max-width: 14ch;
}
.page-hero .page-hero-sub {
  margin-top: var(--space-4);
  font-size: var(--step-1); font-weight: 300;
  color: rgba(239, 247, 252, 0.9); max-width: 46ch;
}

/* ---------- Outline text marquee ---------- */
.outline-marquee { padding-block: clamp(28px, 4vw, 56px); overflow: hidden; }
.outline-marquee .marquee-track { gap: 0; }
.outline-marquee li {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(4rem, 11vw, 10rem); line-height: 1.04;
  white-space: nowrap; padding-right: 0.35em;
  color: transparent;
  -webkit-text-stroke: 1.5px rgba(14, 95, 194, 0.34);
}
.outline-marquee li.fill { color: var(--azure-600); -webkit-text-stroke: 0; font-style: italic; }
.dark-zone .outline-marquee li, .outline-marquee.on-dark li { -webkit-text-stroke-color: rgba(111, 212, 242, 0.3); }
.outline-marquee.on-dark li.fill { color: var(--aqua); }

/* ---------- Home teasers ---------- */
.teaser-grid {
  margin-top: clamp(36px, 5vw, 64px);
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(16px, 2vw, 24px);
}
.teaser {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 5;
  text-decoration: none; color: #fff;
  isolation: isolate;
}
.teaser img {
  position: absolute; inset: 0; z-index: -2;
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 700ms var(--ease-out), filter 400ms ease;
}
.teaser::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(185deg, rgba(4, 18, 31, 0.05) 40%, rgba(4, 18, 31, 0.78) 100%);
  transition: background-color 300ms ease;
}
.teaser:hover img { transform: scale(1.06); filter: brightness(1.06); }
.teaser-body {
  position: absolute; inset: auto 0 0;
  padding: clamp(18px, 2.4vw, 28px);
  display: grid; gap: 6px;
}
.teaser-kicker {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.2em; text-transform: uppercase; color: var(--aqua);
}
.teaser h3 { font-family: var(--font-display); font-size: var(--step-2); font-weight: 600; }
.teaser p { font-size: var(--step--1); color: rgba(239, 247, 252, 0.82); max-width: 34ch; }
.teaser-arrow {
  position: absolute; top: 16px; right: 16px;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(4, 18, 31, 0.4); color: #fff;
  backdrop-filter: blur(6px);
  transition: transform 300ms var(--ease-out), background-color 250ms ease;
}
.teaser:hover .teaser-arrow { transform: rotate(45deg); background: var(--azure-600); }
@media (max-width: 900px) {
  .teaser-grid { grid-template-columns: 1fr; }
  .teaser { aspect-ratio: 16 / 9; }
}

/* ---------- Big link list ---------- */
.link-list { margin-top: var(--space-6); display: grid; }
.link-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: 18px;
  padding: 18px 4px;
  border-top: 1px solid var(--color-border);
  text-decoration: none; color: var(--ink);
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 600;
  transition: padding-left 250ms var(--ease-out), color 200ms ease;
}
.link-list a:last-child { border-bottom: 1px solid var(--color-border); }
.link-list a small { font-family: var(--font-body); font-size: 0.85rem; font-weight: 500; color: var(--ink-muted); letter-spacing: 0.06em; }
.link-list a:hover { padding-left: 14px; color: var(--azure-600); }

/* ---------- Projects gallery grid ---------- */
.gallery-grid {
  margin-top: clamp(28px, 4vw, 48px);
  columns: 3 280px; column-gap: 18px;
}
.gallery-grid figure {
  break-inside: avoid; margin-bottom: 18px;
  border-radius: var(--radius-sm); overflow: hidden;
  position: relative;
}
.gallery-grid img { width: 100%; transition: transform 600ms var(--ease-out); }
.gallery-grid figure:hover img { transform: scale(1.04); }

/* ---------- Mission / vision cards ---------- */
.mv-grid {
  margin-top: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(16px, 2vw, 24px);
}
.mv-card {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(8, 37, 64, 0.08);
  border-radius: var(--radius-lg);
  padding: clamp(24px, 3vw, 40px);
}
.mv-card h3 {
  font-family: var(--font-display); font-size: var(--step-2);
  color: var(--ink); margin-bottom: var(--space-3);
}
.mv-card p { color: var(--ink-muted); max-width: 52ch; }
@media (max-width: 800px) { .mv-grid { grid-template-columns: 1fr; } }

/* ---------- Page CTA band ---------- */
.page-cta {
  background: var(--deep-4); color: var(--light);
  text-align: center;
  position: relative; overflow: hidden;
}
.page-cta h2 { color: #fff; max-width: 18ch; margin-inline: auto; font-size: var(--step-4); }
.page-cta .section-intro { margin-inline: auto; }
.page-cta .cta-actions {
  margin-top: var(--space-6);
  display: flex; flex-wrap: wrap; gap: 16px; justify-content: center;
}
.page-cta .cta-tel { display: block; margin-top: var(--space-5); color: var(--light-muted); font-size: 0.95rem; }
.page-cta .cta-tel a { color: #fff; font-weight: 500; text-decoration-color: var(--aqua); text-underline-offset: 4px; }
.page-cta .cta-tel a:hover { color: var(--aqua); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .hero-title .w, .reveal-load, .reveal { opacity: 1 !important; transform: none !important; }
  .hero-media img { transform: none; animation: none; }
  .marquee { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .marquee-track { animation: none !important; }
  .hero-caustics, .contact-caustics, .scroll-cue { display: none; }
  .preloader { display: none; }
  #rippleCanvas { display: none; }
  .veil { display: none; }
  body::after { animation: none; }
  .hero-badge svg { animation: none; }
  .page-hero-media img { height: 100%; }
}
