/* ACQUABLU PISCINES — design system */
html {
  scroll-behavior: smooth;
}
:root {
  --ink: oklch(0.18 0.03 235);
  --ink-soft: oklch(0.38 0.03 235);
  --ink-mute: oklch(0.55 0.02 235);
  --line: oklch(0.90 0.01 230);
  --line-soft: oklch(0.95 0.008 230);

  --bg: #ffffff;
  --bg-warm: oklch(0.97 0.012 80);
  --bg-cool: oklch(0.97 0.014 220);
  --sand: oklch(0.92 0.022 78);

  --blue-deep: oklch(0.32 0.08 230);
  --blue-mid: oklch(0.50 0.11 225);
  --blue-pool: oklch(0.72 0.10 210);
  --blue-light: oklch(0.88 0.05 215);

  --gold: oklch(0.72 0.08 80);

  --shadow-sm: 0 1px 2px rgba(15, 30, 50, 0.05), 0 1px 1px rgba(15, 30, 50, 0.04);
  --shadow-md: 0 8px 24px -8px rgba(15, 40, 70, 0.12), 0 2px 6px rgba(15, 40, 70, 0.06);
  --shadow-lg: 0 24px 60px -20px rgba(15, 40, 70, 0.25), 0 8px 20px -10px rgba(15, 40, 70, 0.10);

  --serif: "Cormorant Garamond", "EB Garamond", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
}

body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
}

img, svg { display: block; max-width: 100%; }
section, header, footer { max-width: 100%; }

.serif { font-family: var(--serif); font-weight: 400; }
.mono { font-family: var(--mono); }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  width: 100%;
}
@media (max-width: 720px) { .container { padding: 0 20px; } }
@media (max-width: 480px) { .container { padding: 0 16px; } }
@media (max-width: 360px) { .container { padding: 0 12px; } }

.eyebrow {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-mid);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.eyebrow::before {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-pool);
}

h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin: 0;
  line-height: 1.05;
  word-wrap: break-word;
  overflow-wrap: break-word;
  text-wrap: balance;
}
h1 { font-size: clamp(48px, 7.2vw, 96px); }
h2 { font-size: clamp(36px, 4.8vw, 64px); }
h3 { font-size: clamp(22px, 2vw, 28px); }

p { margin: 0; text-wrap: pretty; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 200ms ease, background 200ms ease, color 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn .arrow { transition: transform 200ms ease; }
.btn:hover .arrow { transform: translateX(3px); }

.btn-primary {
  background: var(--blue-deep);
  color: #fff;
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { background: oklch(0.28 0.09 230); box-shadow: var(--shadow-lg); }

.btn-accent {
  background: var(--blue-pool);
  color: #06223a;
  box-shadow: 0 8px 22px -10px oklch(0.72 0.10 210 / 0.7);
}
.btn-accent:hover { background: oklch(0.78 0.11 205); }

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.45);
}
.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

.btn-outline {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}
.btn-outline:hover { border-color: var(--ink); }

/* Placeholder striped imagery */
.ph {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: repeating-linear-gradient(
    135deg,
    oklch(0.84 0.05 215) 0 14px,
    oklch(0.88 0.04 215) 14px 28px
  );
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
}
.ph::after {
  display: none;
}
.ph.warm {
  background: repeating-linear-gradient(
    135deg,
    oklch(0.90 0.025 80) 0 14px,
    oklch(0.93 0.020 80) 14px 28px
  );
}
.ph.deep {
  background: repeating-linear-gradient(
    135deg,
    oklch(0.42 0.08 230) 0 14px,
    oklch(0.46 0.09 225) 14px 28px
  );
}
.ph.deep::after { display: none; }

/* Reveal on scroll */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 900ms cubic-bezier(.2,.7,.2,1), transform 900ms cubic-bezier(.2,.7,.2,1);
}
.reveal.in {
  opacity: 1;
  transform: translateY(0);
}
/* Fallback: if JS never runs or observer fails, content is still visible */
.no-js .reveal,
html.reveal-fallback .reveal {
  opacity: 1 !important;
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Section spacing */
section { position: relative; }
.section-pad { padding: clamp(80px, 10vw, 140px) 0; }
.section-pad-sm { padding: clamp(60px, 7vw, 100px) 0; }

/* HEADER */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 24px 0;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
  border-bottom: 1px solid transparent;
  transform: translateZ(0);
}
.site-header.scrolled {
  padding: 12px 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--line-soft);
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}
.site-header .nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  position: relative;
  z-index: 1001;             /* keep brand above the slide-down mobile menu */
}
.brand-logo {
  height: 40px;
  width: auto;
  display: block;
  transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled .brand-logo {
  height: 32px;
  filter: brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(1458%) hue-rotate(174deg) brightness(96%) contrast(92%);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  text-decoration: none;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  position: relative;
  padding: 6px 0;
  transition: color 400ms ease;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: 0;
  height: 1px;
  background: var(--blue-pool);
  transition: right 250ms ease;
}
.nav-links a:hover::after { right: 0; }
.site-header.on-dark .nav-links a { color: rgba(255,255,255,0.92); }
.site-header.on-dark.scrolled .nav-links a { color: var(--ink); }

.nav-cta {
  padding: 10px 20px;
  font-size: 13px;
  transition: all 400ms ease;
}
.site-header.scrolled .nav-cta {
  padding: 8px 18px;
}

/* ===========================================
   HAMBURGER BUTTON
   =========================================== */
.menu-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  width: 42px; height: 42px;
  cursor: pointer;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1001;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.menu-btn span {
  display: block;
  width: 16px; height: 1.5px;
  background: var(--ink);
  position: relative;
  transition: background 0.25s ease;
}
.menu-btn span::before,
.menu-btn span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.3s ease, top 0.3s ease, background 0.25s ease;
}
.menu-btn span::before { top: -5px; }
.menu-btn span::after  { top: 5px; }

/* ===========================================
   MOBILE MENU (≤ 980px)
   - Header stays fixed above the menu (z-index 1000)
   - Menu is a full-screen white panel that slides
     down from the top via translateY
   - Sits BELOW the header (padding-top reserves space)
   =========================================== */
@media (max-width: 980px) {
  .nav-links { display: none; }
  .menu-btn  { display: inline-flex; }
  .nav-cta   { display: none; }

  /* Header always on top */
  .site-header { z-index: 1000; }

  /* When menu is open: force header to its solid look so it stays visible
     against the white menu panel (dark logo, dark hamburger/X) */
  .site-header.menu-open {
    background: #ffffff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom-color: var(--line-soft);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  }
  .site-header.menu-open .brand-logo {
    filter: brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(1458%) hue-rotate(174deg) brightness(96%) contrast(92%);
  }
  .site-header.menu-open .menu-btn {
    border-color: var(--line);
    background: transparent;
  }

  /* Hamburger → X transformation */
  .site-header.menu-open .menu-btn span {
    background: transparent;
  }
  .site-header.menu-open .menu-btn span::before {
    top: 0;
    transform: rotate(45deg);
    background: var(--ink);
  }
  .site-header.menu-open .menu-btn span::after {
    top: 0;
    transform: rotate(-45deg);
    background: var(--ink);
  }

  /* The white slide-down panel */
  .mobile-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: #ffffff;
    z-index: 999;                        /* under the header */
    padding: 90px 0 32px;                /* room for fixed header */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    overflow-y: auto;
    overflow-x: hidden;
    transform: translateY(-100%);
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0.45s;     /* hide AFTER slide-up finishes */
    pointer-events: none;
    visibility: hidden;
  }
  .mobile-nav.open {
    transform: translateY(0);
    pointer-events: auto;
    visibility: visible;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1),
                visibility 0s linear 0s;        /* show immediately on open */
  }

  /* Links list — column, black text */
  .mobile-nav .nav-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 24px 32px 0;
    width: 100%;
  }
  .mobile-nav .nav-links li {
    width: 100%;
    border-bottom: 1px solid var(--line-soft);
  }
  .mobile-nav .nav-links li:last-child {
    border-bottom: none;
  }
  .mobile-nav .nav-links a,
  .site-header.on-dark .mobile-nav .nav-links a,
  .site-header.at-top .mobile-nav .nav-links a {
    display: block;
    width: 100%;
    font-family: var(--serif);
    font-size: 24px;
    font-weight: 400;
    color: var(--ink);
    text-decoration: none;
    padding: 22px 0;
    text-align: left;
    letter-spacing: -0.01em;
    transition: color 200ms ease, padding-left 200ms ease;
  }
  .mobile-nav .nav-links a::after { display: none; }
  .mobile-nav .nav-links a:hover {
    color: var(--blue-deep);
    padding-left: 6px;
  }

  /* "Demander un devis" button at bottom of list */
  .mobile-nav-cta {
    display: inline-flex;
    margin: auto 32px 0;                 /* push to bottom of column */
    padding: 18px 28px;
    font-size: 16px;
    font-weight: 500;
    justify-content: center;
    width: calc(100% - 64px);
    align-self: stretch;
  }
}
@media (min-width: 981px) {
  .mobile-nav-cta { display: none; }
  /* At desktop, .mobile-nav is a plain wrapper around .nav-links;
     it must NOT be hidden — just leave it as a normal flex container. */
  .mobile-nav {
    position: static;
    transform: none;
    background: transparent;
    visibility: visible;
    pointer-events: auto;
    padding: 0;
    height: auto;
    width: auto;
    overflow: visible;
    display: block;
  }
}

/* Header sizing on small screens */
@media (max-width: 480px) {
  .site-header { padding: 16px 0; }
  .site-header.scrolled { padding: 10px 0; }
  .brand-logo { height: 34px; }
  .site-header.scrolled .brand-logo { height: 28px; }
  .menu-btn { width: 38px; height: 38px; }
  .mobile-nav { padding-top: 80px; }
  .mobile-nav .nav-links { padding: 20px 24px 0; }
  .mobile-nav .nav-links a { font-size: 22px; padding: 20px 0; }
  .mobile-nav-cta { margin: auto 24px 0; width: calc(100% - 48px); font-size: 15px; }
}
@media (max-width: 360px) {
  .site-header { padding: 12px 0; }
  .site-header.scrolled { padding: 8px 0; }
  .brand-logo { height: 30px; }
  .site-header.scrolled .brand-logo { height: 26px; }
  .menu-btn { width: 36px; height: 36px; }
  .menu-btn span,
  .menu-btn span::before,
  .menu-btn span::after { width: 14px; }
  .mobile-nav { padding-top: 70px; }
  .mobile-nav .nav-links { padding: 16px 20px 0; }
  .mobile-nav .nav-links a { font-size: 20px; padding: 18px 0; }
  .mobile-nav-cta { margin: auto 20px 0; width: calc(100% - 40px); font-size: 14px; padding: 16px 24px; }
}

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  color: #fff;
  overflow: hidden;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 260px;
  width: 100%;
  max-width: 100%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-color: oklch(0.20 0.06 230);
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.hero-bg::before {
  /* dark overlay so headline & cards stay readable */
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.18 0.05 230 / 0.45) 0%, oklch(0.18 0.05 230 / 0.55) 50%, oklch(0.16 0.05 230 / 0.85) 100%);
}
.hero-bg::after {
  /* subtle pool-light highlights */
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 35% at 30% 85%, oklch(0.85 0.08 200 / 0.18), transparent 60%),
    radial-gradient(40% 25% at 75% 65%, oklch(0.85 0.10 200 / 0.14), transparent 60%);
  filter: blur(6px);
}
.hero-label {
  position: absolute;
  top: 22px; right: 22px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.7);
  background: rgba(0,0,0,0.25);
  padding: 6px 10px;
  border-radius: 4px;
  z-index: 1;
  text-transform: uppercase;
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: var(--sans);
  font-size: 11.5px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: oklch(0.92 0.04 210);
  margin-bottom: 32px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--blue-pool);
  box-shadow: 0 0 0 6px oklch(0.72 0.10 210 / 0.18);
}
.hero h1 {
  color: #fff;
  font-weight: 300;
  max-width: 16ch;
}
.hero h1 em {
  font-style: italic;
  color: oklch(0.85 0.06 205);
  font-weight: 300;
}
.hero-sub {
  margin-top: 32px;
  max-width: 56ch;
  font-size: clamp(15px, 1.3vw, 17px);
  color: rgba(255,255,255,0.82);
  line-height: 1.65;
}
.hero-ctas {
  margin-top: 44px;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-meta {
  position: absolute;
  bottom: 150px; left: 0; right: 0;
  z-index: 3;
}
.hero-meta-row {
  display: flex;
  gap: 24px;
  align-items: stretch;
  flex-wrap: wrap;
}
.hero-card {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-radius: 18px;
  padding: 22px 26px;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1 1 240px;
  min-width: 240px;
  box-sizing: border-box;
  overflow: hidden;
}
/* Only the LABEL wrapper should flex-grow — NOT .num */
.hero-card > div:not(.num) {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.hero-card .num {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 0.9;
  font-weight: 400;
  color: oklch(0.90 0.05 205);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  /* Optical correction: serif digits sit slightly low in their line-box,
     nudge up so the visual center matches the label's center */
  transform: translateY(-2px);
}
.hero-card .lbl {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.78);
  line-height: 1.45;
}
.hero-card .stars {
  display: flex; gap: 3px;
  color: var(--gold);
  font-size: 13px;
  margin-bottom: 4px;
}
a.hero-card-google {
  text-decoration: none;
  color: #fff;
  cursor: pointer;
  transition: background 0.25s, border-color 0.25s;
}
a.hero-card-google:hover {
  background: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.32);
}
.hero-card-google .google-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 2px;
}
.hero-scroll {
  position: absolute;
  bottom: 90px;
  left: 50%; transform: translateX(-50%);
  z-index: 5;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  color: rgba(255,255,255,0.65);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-transform: uppercase;
}
.hero-scroll .line {
  width: 1px; height: 34px;
  background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.6));
  animation: scrollPulse 2.4s ease-in-out infinite;
}
@keyframes scrollPulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* Wave divider */
.wave-divider {
  position: absolute;
  bottom: -1px; left: 0; right: 0;
  z-index: 4;
  line-height: 0;
  pointer-events: none;
}
.wave-divider svg {
  display: block;
  width: 100%;
  height: clamp(40px, 4.5vw, 65px);
}

/* Hero responsive */
@media (max-width: 980px) {
  .hero {
    min-height: auto;
    height: auto;
    padding-top: 120px;
    padding-bottom: 80px;
    align-items: stretch;
    flex-direction: column;       /* ⬅ KEY: stack inner + meta vertically */
    justify-content: flex-start;
  }
  .hero-inner { width: 100%; }
  .hero h1 { font-size: clamp(36px, 8vw, 56px); max-width: none; word-wrap: break-word; overflow-wrap: break-word; }
  .hero-sub { font-size: 15px; max-width: 100%; }
  .hero-meta {
    position: static !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
    margin-top: 40px;
    width: 100%;
    z-index: auto;
  }
  .hero-meta-row { gap: 14px; }
  .hero-card { flex: 1 1 200px; min-width: 0; }
  .hero-scroll { display: none; }
}
@media (max-width: 600px) {
  .hero { padding-top: 100px; padding-bottom: 60px; }
  .hero h1 { font-size: clamp(26px, 7.5vw, 40px); }
  .hero-sub { font-size: 14px; max-width: 100%; }
  .hero-ctas { flex-direction: column; width: 100%; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
}
/* ⬇ Stack cards under "Nous contacter" below 520px */
@media (max-width: 520px) {
  .hero-meta-row {
    flex-direction: column !important;
    flex-wrap: nowrap !important;
    gap: 10px !important;
    width: 100% !important;
  }
  .hero-card {
    flex: 0 0 auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding: 16px 20px;
  }
  .hero-card .num { font-size: 28px; }
  .hero-card .lbl { font-size: 11px; letter-spacing: 0.08em; }
}
@media (max-width: 480px) {
  .hero { padding-top: 90px; padding-bottom: 48px; }
  .hero h1 { font-size: clamp(22px, 6.5vw, 32px); line-height: 1.1; }
  .hero-sub { font-size: 13px; line-height: 1.55; }
  .hero-ctas { margin-top: 28px; gap: 10px; }
  .hero-ctas .btn { padding: 12px 20px; font-size: 13px; }
  .hero-meta { margin-top: 24px; }
  .hero-card { padding: 14px 16px; gap: 12px; border-radius: 14px; }
  .hero-card .num { font-size: 24px; }
  .hero-card .lbl { font-size: 10px; letter-spacing: 0.06em; }
  .hero-card-google .google-stars { gap: 1px; }
}
@media (max-width: 360px) {
  .hero { padding-top: 80px; padding-bottom: 40px; }
  .hero h1 { font-size: 20px; line-height: 1.15; }
  .hero-sub { font-size: 12px; line-height: 1.5; }
  .hero-ctas { margin-top: 22px; gap: 8px; }
  .hero-ctas .btn { padding: 10px 16px; font-size: 12px; }
  .hero-meta { margin-top: 20px; }
  .hero-card { padding: 12px 14px; gap: 10px; border-radius: 12px; }
  .hero-card .num { font-size: 20px; }
  .hero-card .lbl { font-size: 9px; letter-spacing: 0.04em; }
  .wave-divider svg { height: 30px; }
}
@media (max-width: 320px) {
  .hero { padding-top: 70px; padding-bottom: 30px; }
  .hero h1 { font-size: 18px; }
  .hero-sub { font-size: 11.5px; }
  .hero-card { padding: 10px 12px; gap: 8px; }
  .hero-card .num { font-size: 18px; }
  .hero-card .lbl { font-size: 8.5px; }
  .hero-ctas .btn { padding: 8px 14px; font-size: 11px; gap: 6px; }
}

/* ABOUT */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  width: 100%;
  max-width: 100%;
}
.about-text, .about-media {
  min-width: 0;
  max-width: 100%;
}
.about-text h2,
.about-text p,
.about-text .body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}
@media (max-width: 980px) {
  .about-grid { grid-template-columns: 1fr; gap: 48px; }
  .about-media { width: 100%; }
  .about-media .ph.float {
    position: relative;
    bottom: auto;
    right: auto;
    width: 50%;
    margin-top: -30px;
    margin-left: auto;
    margin-right: 0;
  }
}
@media (max-width: 600px) {
  .about-grid { gap: 36px; }
  .about-text h2 { font-size: clamp(24px, 6vw, 34px) !important; }
  .about-text .body { font-size: 14.5px; }
  .about-stats {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }
  .about-stats .stat {
    display: flex;
    align-items: center;
    gap: 14px;
  }
  .about-stats .stat .n { font-size: 30px; min-width: 90px; }
  .about-stats .stat .l { margin-top: 0; }
  .contact-pill {
    flex-direction: column !important;
    border-radius: 18px !important;
    gap: 12px;
    padding: 20px;
    text-align: center;
    width: 100%;
    align-items: center;
  }
  .contact-pill .pill-text { width: 100%; text-align: center; }
  .contact-pill .btn { width: 100%; justify-content: center; }
  .contact-pill .pill-num { font-size: 20px; }
}
@media (max-width: 480px) {
  .about-grid { gap: 32px; }
  .about-text h2 { font-size: clamp(22px, 5.8vw, 28px) !important; }
  .about-text .body { font-size: 14px; }
  .about-media .ph.main { border-radius: 14px; }
  .about-media .ph.float {
    width: 50%;
    border-width: 5px;
    border-radius: 10px;
    margin-top: -20px;
  }
  .about-stats { gap: 12px; padding-top: 24px; margin-top: 28px; }
  .about-stats .stat .n { font-size: 26px; min-width: 70px; }
  .about-stats .stat .l { font-size: 11px; }
  .contact-pill { padding: 16px; gap: 10px; border-radius: 14px !important; }
  .contact-pill .icon { width: 38px; height: 38px; }
  .contact-pill .pill-num { font-size: 18px; }
  .contact-pill .pill-label { font-size: 10px; }
  .contact-pill .btn { padding: 10px 16px; font-size: 12px; }
}
@media (max-width: 360px) {
  .about-grid { gap: 24px; }
  .about-text h2 { font-size: 20px !important; }
  .about-text .body { font-size: 13px; line-height: 1.55; }
  .about-media .ph.float {
    width: 45%;
    border-width: 4px;
    margin-top: -16px;
  }
  .about-stats { gap: 10px; padding-top: 20px; margin-top: 24px; }
  .about-stats .stat .n { font-size: 22px; min-width: 60px; }
  .about-stats .stat .l { font-size: 10px; letter-spacing: 0.08em; }
  .contact-pill { padding: 14px; gap: 8px; border-radius: 12px !important; }
  .contact-pill .icon { width: 34px; height: 34px; }
  .contact-pill .pill-num { font-size: 16px; }
  .contact-pill .pill-label { font-size: 9px; }
  .contact-pill .btn { padding: 9px 14px; font-size: 11px; }
  .section-pad { padding: clamp(50px, 8vw, 80px) 0; }
}
@media (max-width: 320px) {
  .about-text h2 { font-size: 18px !important; }
  .about-text .body { font-size: 12px; }
  .about-stats .stat .n { font-size: 20px; min-width: 50px; }
  .about-stats .stat .l { font-size: 9px; }
  .contact-pill { padding: 12px; gap: 6px; }
  .contact-pill .pill-num { font-size: 15px; }
  .contact-pill .btn { padding: 8px 12px; font-size: 10.5px; }
}
.about-media {
  position: relative;
  overflow: visible;
}
.about-media .ph.main {
  aspect-ratio: 4/5;
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
}
.about-media .ph.float {
  position: absolute;
  bottom: -40px;
  right: 0;
  width: 55%;
  aspect-ratio: 4/3;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 8px solid #fff;
}
.about-text h2 { margin-top: 18px; }
.about-text h2 em { font-style: italic; color: var(--blue-mid); }
.about-text .body { margin-top: 24px; color: var(--ink-soft); font-size: 15.5px; }
.about-text .body p + p { margin-top: 16px; }

.contact-pill {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 18px 16px 22px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-md);
  flex-wrap: wrap;
}
.contact-pill .icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--blue-pool);
  color: #fff;
  display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0;
}
.contact-pill .pill-text { line-height: 1.3; flex: 1; }
.contact-pill .pill-label { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-mute); }
.contact-pill .pill-num { font-family: var(--serif); font-size: 22px; color: var(--ink); }
.contact-pill .btn { padding: 11px 20px; font-size: 13px; }

.about-stats {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  padding-top: 32px;
}
.about-stats .stat .n {
  font-family: var(--serif);
  font-size: 44px;
  line-height: 1;
  color: var(--blue-deep);
}
.about-stats .stat .l {
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-mute); margin-top: 8px;
}

/* SECTION HEAD */
.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-head .eyebrow { justify-content: center; margin-bottom: 18px; }
.section-head .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: var(--blue-pool);
}
.section-head h2 em { font-style: italic; color: var(--blue-mid); }
.section-head .lede { margin-top: 18px; color: var(--ink-soft); font-size: 16px; }

/* SERVICES */
.services {
  background: var(--bg-warm);
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  max-width: 1100px;
  margin: 0 auto;
}
@media (max-width: 1100px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border-radius: 20px;
  padding: 0;
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 350ms cubic-bezier(.2,.7,.2,1), box-shadow 350ms ease, border-color 350ms ease;
}
.service-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--blue-light);
}
.service-card .ph {
  aspect-ratio: 4/3;
  border-radius: 0;
  margin: 14px 14px 0;
  border-radius: 12px;
}
.service-card .body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.service-card .num {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--blue-mid);
  letter-spacing: 0.15em;
}
.service-card h3 { font-size: 24px; }
.service-card p { color: var(--ink-soft); font-size: 14.5px; }
.service-card .more {
  margin-top: auto;
  padding-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--blue-deep);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.02em;
}
.service-card .more svg { transition: transform 200ms ease; }
.service-card:hover .more svg { transform: translateX(4px); }

/* PORTFOLIO */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 140px;
  gap: 16px;
}
.tile { position: relative; overflow: hidden; border-radius: 14px; cursor: pointer; }
.tile .ph { width: 100%; height: 100%; border-radius: 14px; }
.tile .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 18px 20px;
  background: linear-gradient(180deg, transparent, rgba(8, 25, 45, 0.85));
  color: #fff;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 320ms ease, transform 320ms ease;
}
.tile:hover .meta { opacity: 1; transform: translateY(0); }
.tile:hover .ph { transform: scale(1.04); }
.tile .ph.zoom { transform: scale(2.1); }
.tile:hover .ph.zoom { transform: scale(2.15); }
.tile .ph { transition: transform 700ms cubic-bezier(.2,.7,.2,1); }
.tile .title { font-family: var(--serif); font-size: 20px; line-height: 1.15; }
.tile .where { font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.85; margin-top: 4px; }
.tile .open {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,0.95);
  color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* portfolio mosaic spans */
.tile.s-1 { grid-column: span 5; grid-row: span 3; }
.tile.s-2 { grid-column: span 4; grid-row: span 2; }
.tile.s-3 { grid-column: span 3; grid-row: span 2; }
.tile.s-4 { grid-column: span 4; grid-row: span 2; }
.tile.s-5 { grid-column: span 3; grid-row: span 3; }
.tile.s-6 { grid-column: span 5; grid-row: span 2; }
.tile.s-7 { grid-column: span 4; grid-row: span 2; }
.tile.s-8 { grid-column: span 4; grid-row: span 2; }

@media (max-width: 900px) {
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .portfolio-grid .tile { grid-column: span 1 !important; grid-row: span 1 !important; }
}

.portfolio-cta { display: flex; justify-content: center; margin-top: 56px; }

/* WHY US */
.why {
  background: var(--bg);
  position: relative;
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 32px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
@media (max-width: 900px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }

.why-item {
  padding: 44px 32px;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: background 250ms ease;
}
.why-item:last-child { border-right: none; }
.why-item:hover { background: var(--bg-cool); }
@media (max-width: 900px) {
  .why-item:nth-child(2) { border-right: none; }
  .why-item:nth-child(1), .why-item:nth-child(2) { border-bottom: 1px solid var(--line); }
}
.why-item .ico {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--bg-cool);
  color: var(--blue-deep);
  display: flex; align-items: center; justify-content: center;
}
.why-item h3 { font-size: 22px; }
.why-item p { color: var(--ink-soft); font-size: 14.5px; }
.why-item .idx { font-family: var(--mono); font-size: 11px; color: var(--ink-mute); letter-spacing: 0.15em; }

/* CONTACT */
.contact {
  position: relative;
  color: #fff;
  overflow: hidden;
}
.contact-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, oklch(0.20 0.06 230 / 0.85), oklch(0.18 0.06 230 / 0.95)),
    radial-gradient(80% 60% at 70% 30%, oklch(0.55 0.13 215) 0%, oklch(0.28 0.08 228) 60%, oklch(0.18 0.05 230) 100%);
  z-index: 0;
}
.contact-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50% 30% at 25% 80%, oklch(0.85 0.08 200 / 0.15), transparent 60%),
    radial-gradient(40% 30% at 80% 70%, oklch(0.85 0.10 200 / 0.10), transparent 60%);
  filter: blur(8px);
}
.contact-inner {
  position: relative;
  z-index: 1;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
@media (max-width: 980px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-left h2 { color: #fff; font-weight: 300; }
.contact-left h2 em { font-style: italic; color: oklch(0.85 0.06 205); }
.contact-left .lede { color: rgba(255,255,255,0.78); margin-top: 24px; max-width: 50ch; font-size: 16px; }
.contact-left .eyebrow { color: oklch(0.85 0.06 210); }
.contact-left .eyebrow::before { background: oklch(0.85 0.06 210); }

.coord-list {
  margin-top: 44px;
  display: grid;
  gap: 22px;
}
.coord-list .row {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.coord-list .row:last-child { border-bottom: none; padding-bottom: 0; }
.coord-list .ico {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.14);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.coord-list .lbl {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: rgba(255,255,255,0.6); margin-bottom: 4px;
}
.coord-list .val { font-family: var(--serif); font-size: 19px; color: #fff; line-height: 1.4; }
.coord-list .val.small { font-family: var(--sans); font-size: 14px; line-height: 1.55; color: rgba(255,255,255,0.88); }

/* Form */
.form-card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 22px;
  padding: 38px 36px;
}
.form-card h3 { color: #fff; font-size: 26px; margin-bottom: 8px; }
.form-card .sub { color: rgba(255,255,255,0.7); font-size: 13.5px; margin-bottom: 28px; }

.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  font-weight: 500;
}
.field input, .field textarea, .field select {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 13px 14px;
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 14px;
  outline: none;
  transition: border-color 200ms ease, background 200ms ease;
  width: 100%;
}
.field input::placeholder, .field textarea::placeholder { color: rgba(255,255,255,0.4); }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue-pool);
  background: rgba(255,255,255,0.10);
}
.field.invalid input, .field.invalid textarea, .field.invalid select {
  border-color: oklch(0.65 0.18 25);
}
.field .err {
  color: oklch(0.78 0.15 25);
  font-size: 11.5px;
  margin-top: 2px;
}
.project-types {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
@media (max-width: 540px) { .project-types { grid-template-columns: repeat(2, 1fr); } }
.project-types .chip {
  padding: 11px 8px;
  text-align: center;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.04);
  cursor: pointer;
  font-size: 12.5px;
  color: rgba(255,255,255,0.85);
  transition: all 200ms ease;
  user-select: none;
}
.project-types .chip:hover { border-color: var(--blue-pool); }
.project-types .chip.on {
  background: var(--blue-pool);
  color: #06223a;
  border-color: var(--blue-pool);
  font-weight: 500;
}
.form-card textarea { resize: vertical; min-height: 110px; }
.form-card .submit-row {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.form-card .submit-note {
  font-size: 12px; color: rgba(255,255,255,0.55);
}
.form-success {
  text-align: center;
  padding: 16px;
}
.form-success .check {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--blue-pool);
  color: #06223a;
  margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { font-size: 28px; }
.form-success p { color: rgba(255,255,255,0.78); margin-top: 12px; }

/* FOOTER */
.site-footer {
  background: oklch(0.13 0.03 235);
  color: rgba(255,255,255,0.7);
  padding: 80px 0 28px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand .brand-name { color: #fff; }
.footer-brand p { margin-top: 18px; max-width: 36ch; line-height: 1.7; }
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.5);
  margin-bottom: 18px;
  font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 11px; }
.footer-col a { color: rgba(255,255,255,0.78); text-decoration: none; transition: color 200ms ease; }
.footer-col a:hover { color: #fff; }
.socials { display: flex; gap: 10px; margin-top: 18px; }
.socials a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: border-color 200ms ease, color 200ms ease, background 200ms ease;
}
.socials a:hover { border-color: var(--blue-pool); color: var(--blue-pool); }
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  font-size: 12px;
  color: rgba(255,255,255,0.45);
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom .legal { display: flex; gap: 22px; }
.footer-bottom .legal a { color: inherit; text-decoration: none; }
.footer-bottom .legal a:hover { color: rgba(255,255,255,0.8); }

/* utilities */
.flex { display: flex; }
.between { justify-content: space-between; }
.center { align-items: center; }

/* CAROUSEL */
.carousel-container {
  position: relative;
  width: 100%;
  aspect-ratio: 4/5;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.carousel-track {
  display: flex;
  height: 100%;
  transition: transform 500ms cubic-bezier(0.4, 0, 0.2, 1);
}
.carousel-slide {
  min-width: 100%;
  height: 100%;
}
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 200ms ease;
  z-index: 2;
}
.carousel-btn:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.1);
  box-shadow: var(--shadow-md);
}
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }

.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.carousel-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  transition: all 200ms ease;
}
.carousel-dots .dot.active {
  background: #fff;
  transform: scale(1.2);
}

/* PROJECT DETAIL PAGES */
.project-hero {
  height: 60vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  position: relative;
  background-attachment: fixed;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
}
.project-hero-content {
  position: relative;
  z-index: 1;
}
.site-header.at-top {
  background: transparent;
  box-shadow: none;
  border-bottom-color: transparent;
  padding: 24px 0;
}
.site-header.at-top .brand-logo {
  filter: none;
}
.site-header.at-top .nav-links a {
  color: #fff;
}
.site-header.at-top .menu-btn {
  border-color: rgba(255,255,255,0.3);
}
.site-header.at-top .menu-btn span,
.site-header.at-top .menu-btn span::before,
.site-header.at-top .menu-btn span::after {
  background: #fff;
}
/* When menu is open on a project page (at-top), force the header
   into its solid look so logo + X are visible on the white menu. */
.site-header.at-top.menu-open {
  background: #ffffff !important;
  border-bottom-color: var(--line-soft) !important;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04) !important;
}
.site-header.at-top.menu-open .brand-logo {
  filter: brightness(0) saturate(100%) invert(14%) sepia(19%) saturate(1458%) hue-rotate(174deg) brightness(96%) contrast(92%) !important;
}
.site-header.at-top.menu-open .menu-btn {
  border-color: var(--line) !important;
}
.site-header.at-top.menu-open .menu-btn span,
.site-header.at-top.menu-open .menu-btn span::before,
.site-header.at-top.menu-open .menu-btn span::after {
  background: var(--ink) !important;
}
.site-header.at-top.menu-open .menu-btn span {
  background: transparent !important;
}

@media (max-width: 900px) {
  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 40px !important;
  }
  .project-hero {
    height: 40vh;
    background-attachment: scroll;
  }
}

/* sticky quote button (mobile bonus) — hidden, CTA lives in hamburger menu */
.float-quote {
  display: none;
}
