/* ==========================================================
   Aquazul Filtration Systems
   ========================================================== */

:root {
  --navy: #0B1F3A;
  --navy-2: #0F2A4D;
  --ocean: #0E5A8A;
  --ocean-2: #1270A8;
  --aqua: #3CC4CF;
  --aqua-soft: #DDF4F6;
  --mist: #F2F6F9;
  --line: #E1E8EF;
  --ink: #0B1726;
  --text: #46566A;
  --white: #FFFFFF;
  --danger: #C2410C;

  --font-sans: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: "Instrument Serif", Georgia, "Times New Roman", serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 40px);
  --radius: 18px;
  --radius-sm: 12px;
  --nav-h: 76px;

  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-sm: 0 1px 2px rgba(11, 31, 58, .06), 0 2px 8px rgba(11, 31, 58, .04);
  --shadow-md: 0 2px 6px rgba(11, 31, 58, .05), 0 18px 40px -18px rgba(11, 31, 58, .22);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 8px);
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

a, button, label, summary { touch-action: manipulation; }

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
p { margin: 0 0 1em; }
em { font-family: var(--font-serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 200;
  background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 2px solid var(--aqua); outline-offset: 3px; border-radius: 6px; }

/* ---------- Type helpers ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 22px; height: 1.5px; background: currentColor; opacity: .7; }
.eyebrow--light { color: var(--aqua); }

.h2 { font-size: clamp(34px, 4.6vw, 56px); margin-bottom: 22px; }
.h2 em { color: var(--ocean); }
.lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); opacity: .82; line-height: 1.6; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--h); padding: 0 24px;
  font: 600 15.5px/1 var(--font-sans); letter-spacing: -0.005em;
  text-decoration: none; border-radius: 999px; border: 1.5px solid transparent;
  cursor: pointer; white-space: nowrap;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: scale(.97); transition-duration: .08s; }
.btn--sm { --h: 42px; padding: 0 18px; font-size: 14.5px; }
.btn--lg { --h: 56px; padding: 0 30px; font-size: 16.5px; }
.btn--block { width: 100%; }

.btn--primary { background: var(--ocean); color: #fff; box-shadow: 0 8px 20px -10px rgba(14, 90, 138, .7); }

.btn--ghost { color: #fff; border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .08); }

.btn--ghost-dark { color: var(--navy); border-color: var(--line); background: #fff; }

.btn--light { background: #fff; color: var(--navy); }

.link-arrow {
  display: inline-flex; gap: 8px; align-items: center;
  font-weight: 600; color: var(--ocean); text-decoration: none; margin-top: 8px;
}
.link-arrow span { transition: transform .25s var(--ease); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: var(--nav-h);
  transition: background-color .35s var(--ease), box-shadow .35s var(--ease), color .35s var(--ease);
  color: #fff;
}
.nav.is-solid {
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  box-shadow: 0 1px 0 rgba(11, 31, 58, .08);
  color: var(--navy);
}
.nav__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand__mark { width: 30px; height: 30px; color: var(--aqua); flex: none; }
.nav.is-solid .brand__mark { color: var(--ocean); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.brand__text span { font-size: 10.5px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; opacity: .72; margin-top: 3px; }

.nav__links { display: flex; gap: 4px; }
.nav__links a {
  position: relative; padding: 8px 14px; font-size: 15px; font-weight: 500;
  text-decoration: none; opacity: .86; border-radius: 999px;
  transition: opacity .2s, background-color .2s;
}
.nav__links a.is-active { opacity: 1; }
.nav__links a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 1.5px;
  background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__links a.is-active::after { transform: scaleX(1); }

.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__phone { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-decoration: none; }
.nav__phone svg { width: 16px; height: 16px; fill: currentColor; }

.nav__toggle {
  display: none; width: 44px; height: 44px; border: 0; background: transparent; color: inherit;
  border-radius: 999px; cursor: pointer; position: relative;
}
.nav__toggle span {
  position: absolute; left: 12px; right: 12px; height: 1.8px; background: currentColor; border-radius: 2px;
  transition: transform .3s var(--ease), top .3s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 25px; }
.nav.menu-open .nav__toggle span:first-child { top: 21px; transform: rotate(45deg); }
.nav.menu-open .nav__toggle span:last-child { top: 21px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: var(--nav-h) 0 0 0; background: #fff; color: var(--navy);
  padding: 12px var(--gutter) calc(32px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; justify-content: space-between;
  opacity: 0; transform: translateY(-8px); transition: opacity .3s var(--ease), transform .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; transform: none; }
/* Closed menu must never sit over the page or catch taps. */
.mobile-menu[hidden] { display: none; }
.mobile-menu:not(.is-open) { pointer-events: none; visibility: hidden; }
.mobile-menu nav { display: flex; flex-direction: column; }
.mobile-menu nav a {
  font-size: 28px; font-weight: 600; letter-spacing: -0.02em; text-decoration: none;
  padding: 16px 0; border-bottom: 1px solid var(--line);
}
.mobile-menu__foot { display: grid; gap: 12px; margin-top: 32px; }
.nav.menu-open { background: #fff; color: var(--navy); box-shadow: 0 1px 0 var(--line); }
.nav.menu-open .brand__mark { color: var(--ocean); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100lvh;
  display: flex; align-items: center; overflow: hidden;
  background: var(--navy); color: #fff;
  padding: calc(var(--nav-h) + 40px) 0 96px;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
  transform: scale(1.06); animation: heroIn 2.4s var(--ease) forwards;
}
@keyframes heroIn { to { transform: scale(1); } }
.hero__scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(7, 21, 41, .9) 0%, rgba(7, 21, 41, .72) 34%, rgba(7, 21, 41, .18) 62%, rgba(7, 21, 41, .05) 100%),
    linear-gradient(180deg, rgba(7, 21, 41, .45) 0%, transparent 22%, transparent 78%, rgba(7, 21, 41, .4) 100%);
}
.hero__inner { position: relative; z-index: 1; }
.hero__title {
  color: #fff; font-size: clamp(50px, 8.2vw, 112px); line-height: .98; letter-spacing: -0.035em;
  font-weight: 600; margin-bottom: 28px; max-width: 11ch;
}
.hero__title em { color: #BDEFF3; font-size: 1.06em; }
.hero__lead { font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: rgba(255, 255, 255, .86); max-width: 560px; margin-bottom: 36px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__tags {
  list-style: none; padding: 0; margin: 48px 0 0; display: flex; flex-wrap: wrap; gap: 10px 28px;
  font-size: 14px; color: rgba(255, 255, 255, .72);
}
.hero__tags li { display: inline-flex; align-items: center; gap: 10px; }
.hero__tags li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 1;
  width: 26px; height: 42px; border: 1.5px solid rgba(255, 255, 255, .5); border-radius: 999px;
}
.hero__scroll span {
  position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px;
  border-radius: 2px; background: #fff; animation: scrollDot 2s var(--ease) infinite;
}
@keyframes scrollDot { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 148px) 0; }
.section--mist { background: var(--mist); }

.section-head { max-width: 760px; margin-bottom: clamp(44px, 6vw, 72px); }
.section-head__lead { font-size: 18px; max-width: 600px; }
.section-head--split {
  max-width: none; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end;
}
.section-head--split .h2 { margin-bottom: 0; }
.section-head--split .section-head__lead { margin-bottom: 6px; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: 1.08fr 1fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.about__media { position: relative; padding: 0 12% 14% 0; }
.about__img-main { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--radius); }
.about__img-accent {
  position: absolute; right: 0; bottom: 0; width: 42%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-sm); border: 8px solid #fff; box-shadow: var(--shadow-md);
}
.about__copy p { max-width: 540px; }
.checklist { list-style: none; padding: 0; margin: 28px 0 26px; display: grid; gap: 12px; }
.checklist li { position: relative; padding-left: 34px; color: var(--ink); font-weight: 500; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--aqua-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m7 12.5 3.2 3.2L17 9' fill='none' stroke='%230E5A8A' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat;
}

/* ---------- Service cards ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow-sm); border: 1px solid rgba(11, 31, 58, .05);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease);
}
.card__media { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.card__body { padding: 28px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.card__num { font-size: 13px; font-weight: 600; color: var(--ocean); letter-spacing: .1em; margin-bottom: 12px; }
.card h3 { font-size: 22px; margin-bottom: 10px; }
.card p { font-size: 16px; margin-bottom: 22px; }
.card__cta {
  margin-top: auto; display: inline-flex; gap: 8px; align-items: center; align-self: flex-start;
  font-size: 15px; font-weight: 600; color: var(--navy); text-decoration: none;
  padding: 6px 0; border-bottom: 1.5px solid var(--line); transition: border-color .25s, color .25s;
}
.card__cta span { transition: transform .25s var(--ease); }

/* ---------- Why ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.feature { padding: 40px 32px 8px 0; }
.feature + .feature { padding-left: 32px; border-left: 1px solid var(--line); }
.feature__icon {
  width: 46px; height: 46px; padding: 10px; margin-bottom: 26px; border-radius: 12px;
  background: var(--aqua-soft); fill: none; stroke: var(--ocean); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round;
}
.feature h3 { font-size: 20px; margin-bottom: 12px; }
.feature p { font-size: 16px; }

/* ---------- How ---------- */
.how__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(48px, 7vw, 110px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 12px 0 40px; }
.step { display: flex; gap: 22px; padding: 26px 0; border-bottom: 1px solid var(--line); }
.step:first-child { border-top: 1px solid var(--line); }
.step__num {
  flex: none; width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 600; font-size: 16px;
  color: #fff; background: var(--navy);
}
.step h3 { font-size: 20px; margin: 9px 0 6px; }
.step p { margin: 0; font-size: 16px; }
.how__media img { width: 100%; aspect-ratio: 4 / 4.6; object-fit: cover; border-radius: var(--radius); }

/* ---------- CTA band ---------- */
.cta {
  position: relative; overflow: hidden; color: #fff; text-align: center;
  padding: clamp(110px, 14vw, 180px) 0; background: var(--navy);
}
.cta__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta__scrim { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 31, 58, .72), rgba(14, 90, 138, .62)); }
.cta__inner { position: relative; z-index: 1; }
.cta__title { color: #fff; font-size: clamp(42px, 6.4vw, 84px); letter-spacing: -0.035em; margin-bottom: 20px; }
.cta__title em { color: #BDEFF3; }
.cta__lead { font-size: clamp(18px, 1.8vw, 21px); color: rgba(255, 255, 255, .88); max-width: 560px; margin: 0 auto 38px; }
.cta__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Contact ---------- */
.contact__grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: clamp(48px, 7vw, 100px); align-items: start; }
.contact__info { position: sticky; top: calc(var(--nav-h) + 32px); }
.contact__list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 22px; }
.contact__list li { display: flex; gap: 16px; align-items: center; }
.contact__icon { flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--mist); }
.contact__icon svg { width: 20px; height: 20px; fill: var(--ocean); }
.contact__list small { display: block; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--text); opacity: .8; }
.contact__list a, .contact__list span { color: var(--ink); font-weight: 600; font-size: 18px; text-decoration: none; overflow-wrap: anywhere; }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: clamp(24px, 4vw, 48px); box-shadow: var(--shadow-md);
}
.field { margin: 0 0 22px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field label, .field legend { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); margin-bottom: 8px; padding: 0; }
.optional { font-weight: 400; color: var(--text); }

input[type="text"], input[type="tel"], input[type="email"], select, textarea {
  width: 100%; font: 400 16px/1.4 var(--font-sans); color: var(--ink);
  background: var(--mist); border: 1.5px solid transparent; border-radius: var(--radius-sm);
  padding: 14px 16px; min-height: 52px; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
textarea { resize: vertical; min-height: 120px; }
input:focus, select:focus, textarea:focus { outline: none; background: #fff; border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(14, 90, 138, .12); }
::placeholder { color: #8A98A8; }

.select { position: relative; }
.select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; margin-top: -6px;
  border-right: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(45deg); pointer-events: none;
}
select { padding-right: 44px; cursor: pointer; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.segmented label { margin: 0; cursor: pointer; }
.segmented input { position: absolute; opacity: 0; pointer-events: none; }
.segmented span {
  display: flex; align-items: center; justify-content: center; min-height: 52px;
  border-radius: var(--radius-sm); background: var(--mist); border: 1.5px solid transparent;
  font-weight: 600; color: var(--ink); transition: all .2s var(--ease);
}
.segmented input:checked + span { background: var(--navy); color: #fff; }
.segmented input:focus-visible + span { outline: 2px solid var(--aqua); outline-offset: 2px; }

.field.has-error input, .field.has-error select, .field.has-error .segmented span { border-color: var(--danger); background: #FFF8F5; }
.field__error { color: var(--danger); font-size: 14px; margin: 6px 0 0; min-height: 0; }
.field__error:empty { display: none; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-note { font-size: 13.5px; text-align: center; margin: 14px 0 0; }
.form-status { font-size: 14.5px; color: var(--danger); text-align: center; margin: 10px 0 0; }
.form-status:empty { display: none; }

button[type="submit"].is-loading { pointer-events: none; opacity: .8; }
button[type="submit"].is-loading .btn__label::after {
  content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .5); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { text-align: center; padding: 28px 8px; outline: none; }
.form-success__icon svg { width: 72px; height: 72px; margin: 0 auto 24px; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-success__icon circle { stroke: var(--aqua-soft); fill: var(--aqua-soft); }
.form-success__icon path { stroke: var(--ocean); stroke-dasharray: 32; stroke-dashoffset: 32; animation: draw .6s .2s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.form-success h3 { font-size: 28px; margin-bottom: 14px; }
.form-success p { max-width: 420px; margin: 0 auto 14px; }
.form-success__alt a { color: var(--ocean); font-weight: 600; }
.form-success .btn { margin-top: 14px; }

/* ---------- Footer ---------- */
.footer { background: var(--navy); color: rgba(255, 255, 255, .72); padding: 88px 0 0; font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 48px; padding-bottom: 64px; }
.brand--light { color: #fff; margin-bottom: 22px; }
.brand--light .brand__mark { color: var(--aqua); }
.footer__brand p { max-width: 320px; }
.footer h4 { color: #fff; font-size: 14px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; margin: 6px 0 20px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer__col li { margin-bottom: 12px; overflow-wrap: anywhere; }
.footer a { text-decoration: none; transition: color .2s; }
.footer__cta { margin-top: 12px; }

.social { display: flex; gap: 10px; margin-top: 26px; }
.social a {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgba(255, 255, 255, .18); transition: background-color .25s, border-color .25s;
}
.social svg { width: 18px; height: 18px; fill: #fff; }

.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, .12); padding-top: 26px; padding-bottom: 30px; font-size: 14px;
}
.footer__bottom p { margin: 0; }

/* ---------- Mobile action bar ---------- */
.mobile-bar { display: none; }

/* ---------- Reveal animations ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .reveal-img { clip-path: inset(8% 8% 8% 8% round var(--radius)); opacity: 0; transition: clip-path 1.3s var(--ease), opacity 1s var(--ease); }
.js .reveal-img.is-in { clip-path: inset(0 0 0 0 round 0); opacity: 1; }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .features { grid-template-columns: repeat(2, 1fr); }
  .feature:nth-child(3) { padding-left: 0; border-left: 0; }
  .feature:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 32px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .about__grid, .how__grid, .contact__grid, .section-head--split { grid-template-columns: 1fr; }
  .section-head--split { gap: 18px; }
  .about__media { max-width: 560px; }
  .how__media { order: -1; }
  .how__media img { aspect-ratio: 16 / 11; }
  .contact__info { position: static; }
}

@media (max-width: 760px) {
  :root { --nav-h: 66px; }
  body { font-size: 16.5px; padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  .nav__actions { gap: 4px; }
  .nav__actions > .btn { display: none; }
  .nav__phone { width: 44px; height: 44px; justify-content: center; border-radius: 999px; }
  .nav__phone span { display: none; }
  .nav__phone svg { width: 19px; height: 19px; }
  .eyebrow { font-size: 12px; letter-spacing: .12em; }
  .brand__text strong { font-size: 18px; }

  /* Fill the whole phone screen, even after the browser toolbar hides (lvh),
     and keep the content clear of that toolbar while it is showing. */
  .hero {
    align-items: flex-end; min-height: 100vh; min-height: 100lvh;
    padding-bottom: calc(96px + env(safe-area-inset-bottom));
  }
  .hero__media img { object-position: 50% 40%; animation: none; transform: none; }
  .js .hero .reveal { transition-duration: .5s; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(7, 21, 41, .5) 0%, rgba(7, 21, 41, .05) 22%, rgba(7, 21, 41, .55) 50%, rgba(7, 21, 41, .92) 100%);
  }
  .hero__title { font-size: clamp(48px, 13.5vw, 64px); margin-bottom: 20px; }
  .hero__lead { font-size: 16.5px; margin-bottom: 28px; }
  .hero__ctas { flex-direction: column; }
  .hero__ctas .btn { width: 100%; }
  .hero__tags { margin-top: 28px; gap: 8px 18px; font-size: 13px; }
  .hero__scroll { display: none; }

  .cards { grid-template-columns: 1fr; gap: 18px; }
  .card__media { aspect-ratio: 16 / 10; }
  .card__body { padding: 24px; }

  .features { grid-template-columns: 1fr; border-top: 0; }
  .feature, .feature + .feature { padding: 28px 0; border-left: 0; border-top: 1px solid var(--line); margin-top: 0; }
  .feature:nth-child(n+3) { margin-top: 0; }
  .feature { display: grid; grid-template-columns: 46px 1fr; column-gap: 18px; }
  .feature__icon { grid-row: span 2; margin-bottom: 0; }
  .feature h3 { margin: 10px 0 8px; font-size: 19px; }
  .feature p { margin: 0; }

  .steps + .btn { width: 100%; }
  .cta__actions { flex-direction: column; }
  .cta__actions .btn { width: 100%; }

  .field-row { grid-template-columns: 1fr; gap: 0; }
  .form-card { border-radius: 20px; }

  .footer { padding-top: 64px; }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 40px 24px; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__col:last-child { grid-column: 1 / -1; }

  .mobile-bar {
    display: grid; grid-template-columns: auto 1fr; gap: 10px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .92); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px);
    box-shadow: 0 -1px 0 rgba(11, 31, 58, .08);
    transform: translateY(110%); transition: transform .4s var(--ease);
  }
  .mobile-bar.is-visible { transform: none; }
  .mobile-bar a {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 52px; border-radius: 999px; font-weight: 600; font-size: 16px; text-decoration: none;
  }
  .mobile-bar__call { padding: 0 22px; color: var(--navy); border: 1.5px solid var(--line); background: #fff; }
  .mobile-bar__call svg { width: 18px; height: 18px; fill: currentColor; }
  .mobile-bar__quote { background: var(--ocean); color: #fff; }
}

@media (max-width: 380px) {
  .footer__grid { grid-template-columns: 1fr; }
}

/* Hover effects only on devices with a real mouse, so taps on phones
   never leave a button stuck in its hover state or move a card mid-tap. */
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: var(--navy); }
  .btn--ghost:hover { border-color: #fff; background: rgba(255, 255, 255, .12); }
  .btn--ghost-dark:hover { border-color: var(--navy); }
  .btn--light:hover { background: var(--aqua-soft); }
  .link-arrow:hover span { transform: translateX(4px); }
  .nav__links a:hover { opacity: 1; }
  .nav__links a:hover::after { transform: scaleX(1); }
  .card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .card:hover .card__media img { transform: scale(1.05); }
  .card__cta:hover { color: var(--ocean); border-color: var(--ocean); }
  .card__cta:hover span { transform: translateX(4px); }
  .contact__list a:hover { color: var(--ocean); }
  input:hover, select:hover, textarea:hover { border-color: var(--line); }
  .segmented label:hover span { border-color: var(--line); }
  .footer a:hover { color: #fff; }
  .social a:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .reveal-img { opacity: 1; transform: none; clip-path: none; }
  .hero__media img { transform: none; }
}
