/* =====================================================================
   Bretonnet Net Services — Design System v2 (identité propre)
   Vagues du logo · Bricolage Grotesque · bento · full-bleed
   Nettoyage professionnel · Bons-en-Chablais — Haute-Savoie (74)
   ===================================================================== */

:root {
  --ink:        #0c2236;
  --text:       rgba(14, 34, 54, 0.86);
  --text-soft:  rgba(20, 42, 66, 0.72);
  --text-mute:  #51677d;
  --bg:         #eaf1f8;
  --bg-deep:    #e0eaf3;
  --surface:    #ffffff;
  --line:       rgba(16, 48, 80, 0.12);
  --line-soft:  rgba(16, 48, 80, 0.07);
  --danger:      #c0584f;
  --danger-tint: rgba(192,88,79,.12);

  /* brand azure (vagues du logo) */
  --accent:        #1577cc;
  --accent-deep:   #0f5b9f;
  --accent-bright: #3aa3e8;
  --accent-tint:   rgba(21,119,204,.10);
  --accent-tint-2: rgba(21,119,204,.18);

  --navy-1: #0a1d33;
  --navy-2: #0e2a47;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xs: 10px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --sh-sm: 0 1px 2px rgba(12,40,75,.05), 0 10px 26px rgba(12,40,75,.07);
  --sh-md: 0 2px 8px rgba(12,40,75,.06), 0 20px 44px rgba(12,40,75,.12);
  --sh-lg: 0 10px 24px rgba(12,40,75,.10), 0 44px 90px rgba(12,40,75,.20);

  --maxw: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.62;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
a, button, .btn, summary, [role="link"], input, select, textarea { touch-action: manipulation; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; padding: 0; }
input, textarea, select { font-family: inherit; font-size: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; letter-spacing: -0.02em; line-height: 1.05; color: var(--ink); }

/* ===================== LAYOUT ===================== */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }
.section { padding-block: clamp(64px, 9vw, 128px); }

.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px 7px 11px; border-radius: 999px;
  background: var(--accent-tint); color: var(--accent-deep);
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.chip .wv { width: 16px; height: 16px; color: var(--accent); }

.h2 { font-family: var(--display); font-size: clamp(31px, 4.8vw, 56px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.02; color: var(--ink); }
.lead { font-size: clamp(16px, 1.4vw, 19px); color: var(--text-soft); max-width: 58ch; }

.sec-head { max-width: 680px; margin-bottom: 48px; }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head .chip { margin-bottom: 20px; }
.sec-head .lead { margin-top: 18px; }
.sec-head.center .lead { margin-inline: auto; }

/* ===================== BUTTONS (rounded-rect + sliding arrow) ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 500; white-space: nowrap;
  padding: 13px 22px; border-radius: var(--r-xs);
  transition: transform .2s cubic-bezier(.2,.8,.2,1), background .2s, box-shadow .2s, color .2s, border-color .2s;
}
.btn .ar { width: 17px; height: 17px; flex: none; transition: transform .25s cubic-bezier(.2,.8,.2,1); }
.btn:hover .ar { transform: translateX(4px); }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: #fff; box-shadow: 0 2px 6px rgba(15,91,159,.28), 0 12px 26px rgba(21,119,204,.26); }
.btn-primary:hover { background: var(--accent-deep); box-shadow: 0 4px 10px rgba(15,91,159,.3), 0 18px 36px rgba(21,119,204,.34); }

.btn-light { background: #fff; color: var(--ink); box-shadow: var(--sh-sm); }
.btn-light:hover { box-shadow: var(--sh-md); }

.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--accent); color: var(--accent-deep); }

.btn-glass { background: rgba(255,255,255,.12); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.34); }
.btn-glass:hover { background: rgba(255,255,255,.2); }

.btn-lg { font-size: 16px; padding: 16px 26px; border-radius: 12px; }
.btn-block { width: 100%; justify-content: center; }

/* ===================== NAVBAR (full-width, transparent → solid) ===================== */
.site-nav { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: background .3s, box-shadow .3s, backdrop-filter .3s; }
.nav-inner { max-width: var(--maxw); margin-inline: auto; padding: 18px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -0.01em; color: #fff; transition: color .3s; }
.brand-mark { width: 40px; height: 40px; border-radius: 11px; flex: none; overflow: hidden; background: #fff; box-shadow: 0 4px 14px rgba(8,20,40,.18); display: grid; place-items: center; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: flex; align-items: center; gap: 30px; margin-inline: auto; }
.nav-links a { position: relative; font-size: 15px; font-weight: 500; color: rgba(255,255,255,.86); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 2px; border-radius: 2px; background: var(--accent-bright); }
.nav-scrolled .nav-links a.active { color: var(--accent-deep); }
.nav-scrolled .nav-links a.active::after { background: var(--accent); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-phone { display: inline-flex; align-items: center; gap: 7px; font-size: 15px; font-weight: 600; color: #fff; transition: color .2s; }
.nav-phone svg { width: 16px; height: 16px; }

/* scrolled state */
.nav-scrolled .site-nav { background: rgba(255,255,255,.82); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); box-shadow: 0 1px 0 var(--line), 0 8px 28px rgba(12,40,75,.08); }
.nav-scrolled .brand { color: var(--ink); }
.nav-scrolled .nav-links a { color: var(--text-soft); }
.nav-scrolled .nav-links a:hover { color: var(--accent-deep); }
.nav-scrolled .nav-phone { color: var(--ink); }

.nav-toggle { display: none; width: 44px; height: 44px; border-radius: 11px; place-items: center; }
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; width: 20px; height: 2px; background: #fff; border-radius: 2px; transition: .3s; }
.nav-scrolled .nav-toggle span, .nav-scrolled .nav-toggle span::before, .nav-scrolled .nav-toggle span::after { background: var(--ink); }
.nav-toggle span { position: relative; }
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }
body.menu-open .nav-toggle span { background: transparent; }
body.menu-open .nav-toggle span::before { top: 0; transform: rotate(45deg); background: var(--ink); }
body.menu-open .nav-toggle span::after { top: 0; transform: rotate(-45deg); background: var(--ink); }

body.menu-open .brand { color: var(--ink); }
.mobile-menu { position: fixed; inset: 0; z-index: 99; background: rgba(245,249,252,.98); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); padding: 92px 24px 40px; display: flex; flex-direction: column; gap: 4px; opacity: 0; transform: translateY(-10px); pointer-events: none; transition: .3s; }
body.menu-open .mobile-menu { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a:not(.btn) { font-family: var(--display); font-size: 22px; font-weight: 600; padding: 16px 8px; border-bottom: 1px solid var(--line); color: var(--ink); }
.mobile-menu .btn { margin-top: 16px; }

/* ===================== HERO (full-bleed + wave bottom) ===================== */
.hero { position: relative; min-height: clamp(620px, 96vh, 960px); display: flex; align-items: flex-end; overflow: hidden; background: var(--navy-1); padding-top: 104px; }
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-media img, .hero-media video { width: 100%; height: 100%; object-fit: cover; object-position: 62% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(8,17,32,.94) 0%, rgba(8,17,32,.72) 26%, rgba(8,17,32,.34) 48%, rgba(8,17,32,0) 70%),
    linear-gradient(to right, rgba(8,17,32,.62) 0%, rgba(8,17,32,.16) 48%, rgba(8,17,32,0) 72%),
    linear-gradient(to bottom, rgba(8,17,32,.42) 0%, rgba(8,17,32,0) 18%),
    linear-gradient(rgba(8,17,32,.20), rgba(8,17,32,.20));
}
@media (max-width: 720px) {
  .hero-media::after {
    background:
      linear-gradient(to top, rgba(8,17,32,.95) 0%, rgba(8,17,32,.82) 30%, rgba(8,17,32,.55) 58%, rgba(8,17,32,.34) 100%);
  }
}
.hero-inner { position: relative; z-index: 2; width: 100%; max-width: var(--maxw); margin-inline: auto; padding: 0 24px clamp(64px, 8vw, 104px); }
.hero-label { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px; background: rgba(255,255,255,.13); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; font-size: 13.5px; font-weight: 500; }
.hero-label svg { width: 16px; height: 16px; color: var(--accent-bright); flex: none; }
.hero-label b { color: #fff; font-weight: 700; }
.hero h1 { font-family: var(--display); font-size: clamp(36px, 6.4vw, 82px); font-weight: 700; line-height: .98; letter-spacing: -0.035em; color: #fff; max-width: 15ch; margin-top: 22px; text-shadow: 0 4px 30px rgba(6,12,24,.4); }
.hero h1 em { font-style: normal; color: var(--accent-bright); }
.hero-sub { margin-top: 22px; max-width: 52ch; font-size: clamp(15.5px, 1.5vw, 19px); color: rgba(255,255,255,.9); text-shadow: 0 1px 4px rgba(6,12,24,.55); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 0; margin-top: 40px; }
.hero-stats div { padding-right: 30px; margin-right: 30px; border-right: 1px solid rgba(255,255,255,.2); }
.hero-stats div:last-child { border-right: none; margin-right: 0; padding-right: 0; }
.hero-stats b { display: block; font-family: var(--display); font-size: clamp(24px, 2.6vw, 34px); font-weight: 700; color: #fff; letter-spacing: -0.03em; line-height: 1; }
.hero-stats span { display: block; margin-top: 6px; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.66); }
.hero-wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: 3; line-height: 0; pointer-events: none; }
.hero-wave svg { width: 100%; height: clamp(40px, 6vw, 78px); display: block; }
.hero-wave path { fill: var(--bg); }

/* ===================== INTRO ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }

/* ===================== SERVICES (bento) ===================== */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); grid-auto-rows: 232px; gap: 18px; }
.b-card {
  position: relative; border-radius: var(--r-md); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; justify-content: flex-end;
  box-shadow: var(--sh-sm); transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  grid-column: span 3;
}
.b-card.feat { grid-column: span 3; grid-row: span 2; }
.b-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.b-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.b-card:hover img { transform: scale(1.06); }
.b-card::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(8,20,36,.92) 0%, rgba(8,20,36,.5) 42%, rgba(8,20,36,.12) 72%, rgba(8,20,36,0) 92%); }
.b-card.feat::after { background: linear-gradient(to top, rgba(8,20,36,.93) 0%, rgba(8,20,36,.68) 40%, rgba(8,20,36,.28) 70%, rgba(8,20,36,0) 96%); }
.b-num { z-index: 2; display: block; font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: .16em; color: var(--accent-bright); margin-bottom: 9px; }
.b-arrow { position: absolute; top: 16px; right: 16px; z-index: 3; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.3); color: #fff; transition: background .25s, transform .25s; }
.b-card:hover .b-arrow { background: var(--accent); transform: rotate(-45deg); }
.b-arrow svg { width: 17px; height: 17px; }
.b-body { position: relative; z-index: 2; padding: 24px; color: #fff; }
.b-body h3 { color: #fff; font-size: 21px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 8px; }
.b-card.feat .b-body h3 { font-size: 27px; }
.b-body p { color: rgba(255,255,255,.82); font-size: 14.5px; max-width: 46ch; }
.b-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.b-tags span { font-size: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(255,255,255,.15); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }

/* ===================== DARK SECTION (waves) ===================== */
.dark { position: relative; background: linear-gradient(160deg, var(--navy-2) 0%, var(--navy-1) 100%); color: rgba(255,255,255,.72); isolation: isolate; }
.dark::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity: .6; -webkit-mask-image: radial-gradient(120% 90% at 90% 0%, #000, transparent 60%); mask-image: radial-gradient(120% 90% at 90% 0%, #000, transparent 60%); }
.dark .wave-top, .dark .wave-bottom { position: absolute; left: 0; right: 0; z-index: 1; line-height: 0; }
.dark .wave-top { top: -1px; transform: rotate(180deg); }
.dark .wave-bottom { bottom: -1px; }
.wave-top svg, .wave-bottom svg { width: 100%; height: clamp(34px, 5vw, 64px); display: block; }
.wave-top path, .wave-bottom path { fill: var(--bg); } /* = couleur de la section suivante (Zones, fond --bg) */
.dark .h2 { color: #fff; }
.dark .lead { color: rgba(255,255,255,.66); }
.dark .chip { background: rgba(58,163,232,.16); color: var(--accent-bright); }
.dark .chip .wv { color: var(--accent-bright); }
.feature-list { display: grid; gap: 2px; margin-top: 10px; }
.feat-item { display: flex; gap: 18px; padding: 22px 0; border-bottom: 1px solid rgba(255,255,255,.1); }
.feat-item:last-child { border-bottom: none; }
.feat-item .ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: grid; place-items: center; background: rgba(58,163,232,.12); box-shadow: inset 0 0 0 1px rgba(58,163,232,.24); color: var(--accent-bright); }
.feat-item .ic svg { width: 23px; height: 23px; }
.feat-item h3 { font-size: 18px; color: #fff; margin-bottom: 4px; font-weight: 600; }
.feat-item p { font-size: 14.5px; color: rgba(255,255,255,.6); }
.visual { border-radius: var(--r-lg); overflow: hidden; min-height: 480px; box-shadow: 0 30px 70px rgba(0,0,0,.45); position: relative; }
.visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.visual .badge { position: absolute; left: 20px; bottom: 20px; z-index: 2; padding: 12px 18px; border-radius: 14px; background: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); color: #fff; }
.visual .badge b { font-family: var(--display); font-size: 26px; font-weight: 700; display: block; line-height: 1; }
.visual .badge span { font-size: 12px; color: rgba(255,255,255,.8); }

/* ===================== PRESTATIONS DETAIL ===================== */
.pres { background: var(--surface); }
.pres-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 10px; }
.pres-card { padding: 30px; border-radius: var(--r-lg); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-soft); transition: transform .3s, box-shadow .3s; }
.pres-card:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.pres-card .ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: #fff; box-shadow: var(--sh-sm); color: var(--accent); margin-bottom: 18px; }
.pres-card .ic svg { width: 25px; height: 25px; }
.pres-card h3 { font-size: 20px; color: var(--ink); margin-bottom: 14px; font-weight: 600; }
.pres-card ul { display: grid; gap: 10px; }
.pres-card li { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--text-soft); }
.pres-card li svg { width: 18px; height: 18px; color: var(--accent); flex: none; margin-top: 3px; }

/* ===================== ZONES ===================== */
.zone-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.zone-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; background: var(--surface); box-shadow: var(--sh-sm); font-size: 14.5px; font-weight: 500; color: var(--text); }
.zone-chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.map { border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-md); min-height: 420px; }
.map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; display: block; filter: grayscale(.15) contrast(.96); }

/* ===================== FAQ ===================== */
.faq { display: grid; gap: 12px; }
.faq details { background: var(--surface); border-radius: var(--r-md); box-shadow: var(--sh-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 24px; font-family: var(--display); font-size: 17px; font-weight: 500; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--accent-tint); display: grid; place-items: center; transition: .3s; color: var(--accent-deep); font-size: 18px; }
.faq details[open] summary .pm { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq .ans { padding: 0 24px 22px; color: var(--text-soft); font-size: 15.5px; }

/* ===================== CONTACT / FORM ===================== */
.contact-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 44px; align-items: start; }
.info { display: grid; gap: 12px; }
.info-item { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); }
.info-item .ic { width: 48px; height: 48px; border-radius: 13px; flex: none; display: grid; place-items: center; background: linear-gradient(150deg, var(--accent), var(--accent-deep)); color: #fff; }
.info-item .ic svg { width: 22px; height: 22px; }
.info-item > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.info-item .l { font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-mute); }
.info-item .v { font-size: 17px; color: var(--ink); font-weight: 500; }
.info-item .v.small { font-size: 14.5px; }

.form { background: var(--surface); border-radius: var(--r-lg); padding: 32px; box-shadow: var(--sh-md); }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 500; color: var(--text-soft); }
.field label .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm);
  background: var(--bg); box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--accent); }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-mute); margin-bottom: 18px; }
.consent input { width: 18px; height: 18px; flex: none; margin-top: 2px; accent-color: var(--accent); }
.form-note { text-align: center; font-size: 13px; color: var(--text-mute); margin-top: 14px; }
.form-success { display: none; text-align: center; padding: 18px; border-radius: var(--r-md); background: var(--accent-tint); color: var(--ink); margin-top: 16px; }


/* ===================== CLOSING (pré-footer CTA + footer) ===================== */
.closing { position: relative; background: linear-gradient(170deg, var(--navy-2) 0%, var(--navy-1) 64%); color: rgba(255,255,255,.66); padding: clamp(92px,12vw,158px) 0 34px; overflow: hidden; isolation: isolate; }
.closing::before { content: ""; position: absolute; z-index: -1; inset: 0; background-image: radial-gradient(rgba(255,255,255,.05) 1px, transparent 1px); background-size: 22px 22px; opacity: .55; -webkit-mask-image: radial-gradient(120% 80% at 85% 0%, #000, transparent 62%); mask-image: radial-gradient(120% 80% at 85% 0%, #000, transparent 62%); }
.closing .wave-top { position: absolute; top: -1px; left: 0; right: 0; z-index: 1; transform: rotate(180deg); line-height: 0; }
.closing .chip { background: rgba(58,163,232,.16); color: var(--accent-bright); }
.closing .chip .wv { color: var(--accent-bright); }

.end-cta { display: grid; grid-template-columns: 1.45fr 1fr; gap: clamp(28px,4vw,56px); align-items: center; }
.end-cta-text h2 { color: #fff; font-size: clamp(27px,3.4vw,46px); letter-spacing: -0.03em; margin-top: 16px; line-height: 1.04; }
.end-cta-text p { color: rgba(255,255,255,.62); margin-top: 16px; max-width: 46ch; }
.end-cta-side { display: flex; flex-direction: column; gap: 12px; }
.end-cta-side .btn { justify-content: space-between; padding-left: 24px; }
.end-note { text-align: center; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }

.end-sep { height: 1px; background: rgba(255,255,255,.12); margin: clamp(40px,6vw,72px) 0; }

.end-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: clamp(32px,5vw,64px); }
.end-brand .brand { color: #fff; margin-bottom: 16px; }
.end-brand .brand-mark { background: #fff; }
.end-brand p { font-size: 14.5px; color: rgba(255,255,255,.58); max-width: 42ch; margin-bottom: 24px; }
.end-contact { display: grid; gap: 13px; }
.end-contact a, .end-contact span { display: flex; gap: 11px; align-items: center; color: #fff; font-size: 15px; }
.end-contact a:hover { color: var(--accent-bright); }
.end-contact svg { width: 18px; height: 18px; flex: none; color: var(--accent-bright); }
.end-links { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
.end-links h3 { font-family: var(--display); color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 16px; }
.end-links ul { display: grid; gap: 11px; }
.end-links a { font-size: 14.5px; color: rgba(255,255,255,.62); }
.end-links a:hover { color: #fff; }

.end-bottom { border-top: 1px solid rgba(255,255,255,.12); margin-top: clamp(40px,6vw,64px); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 13px; color: rgba(255,255,255,.46); }

/* ===================== MOBILE CALL BAR ===================== */
.callbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: none; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); box-shadow: 0 -6px 22px rgba(12,40,75,.14); }
.callbar a { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 15px; font-size: 15px; font-weight: 500; }
.callbar .call { background: #fff; color: var(--ink); }
.callbar .quote { background: var(--accent); color: #fff; }
.callbar svg { width: 18px; height: 18px; }

/* ===================== REVEAL ===================== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.2,.8,.2,1), transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; } .reveal.d3 { transition-delay: .21s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* Hero is above the fold: animate via CSS on load, never gated by JS (never invisible) */
.hero .reveal { animation: heroIn .7s cubic-bezier(.2,.8,.2,1) both; }
.hero .reveal.d1 { animation-delay: .08s; }
.hero .reveal.d2 { animation-delay: .16s; }
.hero .reveal.d3 { animation-delay: .24s; }
@keyframes heroIn { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hero .reveal { animation: none; opacity: 1; transform: none; } }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 980px) {
  .split, .contact-grid { grid-template-columns: 1fr; }
  .visual { min-height: 340px; }
  .end-cta, .end-grid { grid-template-columns: 1fr; }
  .bento { grid-auto-rows: 210px; }
  .b-card, .b-card.feat { grid-column: span 3; grid-row: span 1; }
  .b-card.feat { grid-column: span 6; grid-row: span 2; min-height: 0; }
  .pres-grid { grid-template-columns: 1fr; }
}
/* tablet / narrow-desktop: switch to hamburger before the desktop nav crowds */
@media (max-width: 920px) {
  .nav-links, .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; margin-left: auto; }
  .brand > span { white-space: nowrap; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .nav-links, .nav-phone, .nav-cta .btn { display: none; }
  .nav-toggle { display: grid; }
  .nav-inner { padding: 14px 20px; }
  .brand { font-size: 16px; }
  .form .row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .b-card, .b-card.feat { grid-column: span 1; grid-row: span 1; min-height: 340px; max-height: 380px; }
  .b-card .b-body { padding: 22px; }
  .b-card .b-body h3, .b-card.feat .b-body h3 { font-size: 21px; }
  .b-card .b-body p { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .b-card.feat .b-tags { display: none; }
  .callbar { display: grid; }
  .callbar a { padding-bottom: calc(15px + env(safe-area-inset-bottom)); }
  .closing { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
  .end-cta-text h2 br { display: none; }
  /* app-grade tap targets for footer links */
  .end-links a { display: inline-block; padding: 9px 0; }
  .end-contact a, .end-contact span { padding: 9px 0; }
  .end-bottom { gap: 6px; }
  .hero-stats div { padding-right: 20px; margin-right: 20px; }
  .hero-label { font-size: 13px; }
  .hero-label .hl-exp { display: none; }
  .consent input { width: 22px; height: 22px; }
  .section { padding-block: clamp(54px, 11vw, 128px); }
}

/* ===================== INTERIOR / SERVICE PAGES ===================== */
.subhero { position: relative; overflow: hidden; background: var(--navy-1); padding: clamp(118px,16vh,178px) 0 clamp(54px,7vw,88px); }
.subhero .hero-media { position: absolute; inset: 0; z-index: 0; }
.subhero .hero-media img { width: 100%; height: 100%; object-fit: cover; }
.subhero .hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(8,17,32,.93), rgba(8,17,32,.66) 55%, rgba(8,17,32,.42)); }
.subhero .container { position: relative; z-index: 2; }
.crumb { font-size: 13.5px; color: rgba(255,255,255,.72); margin-bottom: 18px; }
.crumb a { color: rgba(255,255,255,.72); display: inline-block; padding: 10px 6px; margin: -10px -6px; } .crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }
.subhero h1 { color: #fff; font-family: var(--display); font-size: clamp(30px,4.6vw,54px); letter-spacing: -0.03em; line-height: 1.04; max-width: 19ch; }
.subhero h1 em { font-style: normal; color: var(--accent-bright); }
.subhero .sub { color: rgba(255,255,255,.84); margin-top: 16px; max-width: 56ch; font-size: clamp(15.5px,1.5vw,18px); }
.subhero .hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.prose { max-width: 740px; }
.prose p { color: var(--text-soft); margin-bottom: 15px; }
.prose h2 { font-family: var(--display); font-size: clamp(24px,3vw,34px); letter-spacing: -0.02em; margin: 6px 0 16px; color: var(--ink); }
.prose .lead + h2, .prose p + h2 { margin-top: 32px; }
.related { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; margin-top: 10px; }
.related a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--sh-sm); color: var(--ink); font-weight: 500; transition: transform .25s, box-shadow .25s; }
.related a:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--accent-deep); }
.related svg { width: 18px; height: 18px; flex: none; color: var(--accent); }
@media (max-width: 720px) { .related { grid-template-columns: 1fr; } }

@media (max-width: 380px) {
  .brand { font-size: 15px; }
}
