:root {
  --ink: #081b4b;
  --ink-2: #133c8c;
  --aqua: #103fe0;
  --aqua-bright: #8ab5ff;
  --cream: #f2f6ff;
  --paper: #ffffff;
  --sand: #c7d5f3;
  --line: rgba(8, 27, 75, 0.15);
  --radius: 3px;
  --shadow: 0 24px 60px rgba(8, 27, 75, 0.14);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "DM Sans", sans-serif; line-height: 1.6; }
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section { padding: 120px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 100; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: 136px; display: flex; align-items: center; padding: 0 max(28px, calc((100vw - 1320px) / 2)); color: white; transition: background .3s, height .3s, box-shadow .3s; }
.site-header.scrolled { height: 74px; background: rgba(6, 22, 65, .96); box-shadow: 0 8px 30px rgba(8,27,75,.18); backdrop-filter: blur(12px); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.official-logo { width: 260px; height: auto; filter: drop-shadow(0 0 1px rgba(255,255,255,.9)) drop-shadow(0 3px 5px rgba(4,17,54,.35)); transition: width .3s; }
.site-header.scrolled .official-logo { width: 135px; }
.brand-mark { display: grid; place-items: center; width: 45px; height: 45px; color: var(--aqua-bright); }
.brand-mark svg { width: 100%; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .wave { stroke-width: 2; }
.brand-copy { display: grid; line-height: 1; text-transform: uppercase; }
.brand-copy strong { font: 800 21px/1 "Manrope", sans-serif; letter-spacing: .12em; }
.brand-copy small { margin-top: 5px; font: 600 9px/1 "Manrope", sans-serif; letter-spacing: .28em; opacity: .82; }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 34px; }
.site-nav a { text-decoration: none; font-size: 14px; font-weight: 600; letter-spacing: .02em; }
.site-nav a:not(.nav-cta) { position: relative; }
.site-nav a:not(.nav-cta)::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -5px; height: 1px; background: var(--aqua-bright); transition: right .25s; }
.site-nav a:hover::after { right: 0; }
.nav-phone { color: var(--aqua-bright); font-variant-numeric: tabular-nums; }
.nav-cta { padding: 12px 19px; border: 1px solid rgba(255,255,255,.55); border-radius: 100px; }
.nav-cta:hover { background: white; color: var(--ink); }
.menu-toggle { display: none; margin-left: auto; width: 44px; height: 44px; padding: 11px 8px; border: 0; background: transparent; }
.menu-toggle span:not(.sr-only) { display: block; height: 2px; margin: 5px 0; background: white; }

.hero { position: relative; min-height: 790px; height: 94vh; display: flex; align-items: center; overflow: hidden; color: white; background: var(--ink); }
.hero-image { position: absolute; inset: 0; background: url("assets/hopper-pool-hero-v2.jpg") center 58% / cover no-repeat; animation: hero-in 1.4s ease-out both; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 19, 58, .92) 0%, rgba(7, 27, 75, .72) 31%, rgba(10, 39, 100, .18) 70%, rgba(7, 25, 65, .08) 100%), linear-gradient(0deg, rgba(5, 20, 60, .30), transparent 42%); }
.hero-content { position: relative; z-index: 2; padding-top: 50px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 25px; text-transform: uppercase; letter-spacing: .2em; font: 700 11px/1.2 "Manrope", sans-serif; }
.eyebrow span { width: 25px; height: 1px; background: var(--aqua-bright); }
.eyebrow.dark { color: #3158b2; }
.eyebrow.dark span { background: var(--aqua); }
.eyebrow.light { color: var(--aqua-bright); }
.hero h1, h2 { margin: 0; font-family: "Manrope", sans-serif; letter-spacing: -.055em; line-height: .98; }
.hero h1 { max-width: 790px; font-size: clamp(64px, 8.4vw, 118px); font-weight: 700; }
h1 em, h2 em { color: var(--aqua-bright); font-weight: 500; font-style: normal; }
.hero-lede { max-width: 520px; margin: 30px 0 38px; color: rgba(255,255,255,.82); font-size: 19px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 28px; min-height: 56px; padding: 0 24px; border: 0; border-radius: 100px; text-decoration: none; text-transform: uppercase; letter-spacing: .08em; font: 700 11px/1 "Manrope", sans-serif; cursor: pointer; transition: transform .2s, background .2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--aqua-bright); color: var(--ink); }
.button-primary:hover { background: white; }
.button-light { border: 1px solid rgba(255,255,255,.32); color: white; }
.button-light:hover { background: white; color: var(--ink); }
.text-link { text-underline-offset: 6px; font-size: 13px; font-weight: 600; }
.text-link span { margin-left: 8px; color: var(--aqua-bright); }
.bbb-badge { position: absolute; z-index: 3; right: 6%; bottom: 128px; width: 142px; aspect-ratio: 1; display: grid; place-content: center; justify-items: center; border: 4px solid var(--aqua-bright); border-radius: 50%; background: rgba(255,255,255,.96); color: var(--ink); text-align: center; text-decoration: none; box-shadow: 0 18px 45px rgba(5,20,60,.30), inset 0 0 0 4px white; transform: rotate(-4deg); transition: transform .25s, box-shadow .25s; }
.bbb-badge:hover { transform: rotate(0) scale(1.04); box-shadow: 0 22px 52px rgba(5,20,60,.38), inset 0 0 0 4px white; }
.bbb-badge-kicker { color: var(--aqua); letter-spacing: .18em; font: 800 13px/1 "Manrope", sans-serif; }
.bbb-badge strong { margin: 3px 0 1px; color: var(--aqua); font: 800 46px/.95 "Manrope", sans-serif; letter-spacing: -.07em; }
.bbb-badge-copy { text-transform: uppercase; letter-spacing: .09em; font: 800 9px/1.25 "Manrope", sans-serif; }
.hero-note { position: absolute; z-index: 2; right: 6%; bottom: 44px; display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-left: 1px solid rgba(255,255,255,.35); color: rgba(255,255,255,.88); }
.sun-icon { font-size: 30px; color: #ffffff; }
.hero-note span:last-child { display: grid; }
.hero-note strong { font-size: 12px; }
.hero-note small { margin-top: 2px; font-size: 10px; opacity: .64; }

.section-heading { max-width: 610px; }
.section-heading h2, .care h2, .why h2, .quote h2 { font-size: clamp(46px, 6vw, 76px); font-weight: 650; }
.section-heading h2 em, .why h2 em { color: var(--aqua); }
.intro { display: grid; grid-template-columns: 1fr 1fr; gap: 70px 80px; }
.intro-copy { align-self: end; max-width: 510px; color: #52585c; font-size: 17px; }
.intro-copy p:first-child { margin-top: 0; color: var(--ink); font-size: 20px; }
.services-grid { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.service-card { position: relative; min-height: 390px; padding: 32px 27px 26px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); transition: background .3s, transform .3s; }
.service-card:hover { z-index: 1; background: white; transform: translateY(-6px); box-shadow: var(--shadow); }
.service-card.featured { background: var(--cream); }
.service-number { color: #7a8084; font: 600 10px/1 "Manrope", sans-serif; letter-spacing: .18em; }
.service-icon { width: 58px; height: 58px; margin: 44px 0 30px; color: var(--aqua); }
.service-icon svg { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service-card h3 { margin: 0 0 12px; font: 700 20px/1.25 "Manrope", sans-serif; }
.service-card p { margin: 0; color: #60666a; font-size: 14px; line-height: 1.7; }
.service-card a { position: absolute; bottom: 28px; text-decoration: none; font-size: 12px; font-weight: 700; }
.service-card a span { color: var(--aqua); margin-left: 5px; }

.work { background: var(--cream); }
.work-heading { display: grid; grid-template-columns: 1.1fr .9fr; gap: 80px; align-items: end; margin-bottom: 54px; }
.work-intro { max-width: 500px; justify-self: end; color: #52585c; font-size: 17px; }
.work-intro p { margin: 0 0 20px; }
.work-intro a { color: var(--ink); text-underline-offset: 6px; font-size: 13px; font-weight: 700; }
.work-intro a span { color: var(--aqua); margin-left: 5px; }
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.work-card { position: relative; height: 330px; margin: 0; overflow: hidden; background: #d8e1f5; }
.work-card-wide { grid-column: span 2; }
.work-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.work-card:hover img { transform: scale(1.025); }
.work-card::after { content: ""; position: absolute; inset: 45% 0 0; background: linear-gradient(transparent, rgba(5,20,60,.72)); pointer-events: none; }
.work-card figcaption { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; color: white; font: 650 15px/1.3 "Manrope", sans-serif; text-shadow: 0 2px 12px rgba(5,20,60,.5); }

.care { position: relative; background: var(--ink); color: white; overflow: hidden; }
.care::before { content: ""; position: absolute; width: 680px; height: 680px; top: -340px; right: -180px; border: 1px solid rgba(255,255,255,.15); border-radius: 50%; box-shadow: 0 0 0 90px rgba(255,255,255,.025), 0 0 0 180px rgba(255,255,255,.02); }
.care-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 110px; align-items: center; }
.care-copy { position: sticky; top: 120px; }
.care h2 em, .quote h2 em { color: var(--aqua-bright); }
.care-copy > p:not(.eyebrow) { max-width: 500px; margin: 30px 0 36px; color: #c5c7c9; font-size: 17px; }
.care-steps { border-top: 1px solid rgba(255,255,255,.18); }
.care-step { display: grid; grid-template-columns: 50px 1fr; gap: 28px; padding: 36px 0; border-bottom: 1px solid rgba(255,255,255,.18); }
.care-step > span { color: var(--aqua-bright); font: 600 10px/1 "Manrope", sans-serif; letter-spacing: .15em; }
.care-step h3 { margin: -5px 0 10px; font: 600 26px/1.2 "Manrope", sans-serif; }
.care-step p { max-width: 500px; margin: 0; color: #b5b8ba; font-size: 14px; }

.why-panel { position: relative; min-height: 590px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 100px; align-items: center; overflow: hidden; padding: 74px 80px; background: var(--cream); }
.why-copy, .why-list { position: relative; z-index: 1; }
.why-copy > p:last-child { max-width: 460px; color: #5f6569; }
.why-orbit { position: absolute; left: -100px; bottom: -310px; width: 660px; height: 660px; border: 1px solid rgba(16,63,224,.30); border-radius: 50%; }
.why-orbit span { position: absolute; inset: 13%; border: 1px solid rgba(16,63,224,.20); border-radius: 50%; }
.why-orbit span:nth-child(2) { inset: 27%; }
.why-orbit span:nth-child(3) { inset: 42%; background: var(--aqua); border: 0; }
.why-list { padding: 0; margin: 0; list-style: none; border-top: 1px solid rgba(8,27,75,.20); }
.why-list li { display: grid; grid-template-columns: 48px 1fr; padding: 26px 0; border-bottom: 1px solid rgba(8,27,75,.20); }
.why-list span { grid-row: 1 / 3; color: var(--aqua); font-size: 10px; font-weight: 700; }
.why-list strong { font: 650 17px/1.3 "Manrope", sans-serif; }
.why-list small { margin-top: 4px; color: #6b7175; }

.quote { background: #0d2d75; color: white; }
.quote-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 110px; align-items: start; }
.quote-copy { position: sticky; top: 120px; }
.quote-copy > p:not(.eyebrow) { max-width: 450px; color: #bfc2c4; font-size: 17px; }
.contact-detail { display: grid; gap: 18px; margin-top: 36px; }
.contact-detail a { display: grid; text-decoration: none; }
.contact-detail span { color: var(--aqua-bright); text-transform: uppercase; letter-spacing: .12em; font-size: 9px; font-weight: 700; }
.quote-form { padding: 46px; background: white; color: var(--ink); box-shadow: 0 24px 80px rgba(5,20,60,.18); }
.quote-form label { display: grid; gap: 9px; margin-bottom: 22px; text-transform: uppercase; letter-spacing: .1em; font: 700 9px/1.2 "Manrope", sans-serif; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.quote-form input, .quote-form select, .quote-form textarea { width: 100%; padding: 12px 0; border: 0; border-bottom: 1px solid #b9bdc0; border-radius: 0; outline: none; background: white; color: var(--ink); text-transform: none; letter-spacing: 0; font-size: 15px; resize: vertical; transition: border-color .2s; }
.quote-form input:focus, .quote-form select:focus, .quote-form textarea:focus { border-color: var(--aqua); }
.form-submit { width: 100%; margin-top: 10px; }
.form-note { margin: 14px 0 0; text-align: center; color: #737a7e; font-size: 11px; }
.form-note.error { color: #9b3c32; }

.site-footer { background: #07183f; color: white; }
.footer-top { min-height: 170px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 30px; border-bottom: 1px solid rgba(255,255,255,.14); }
.brand-footer { justify-self: start; }
.footer-logo { width: 340px; }
.footer-top p { color: var(--aqua-bright); font-family: "Manrope", sans-serif; }
.footer-links { justify-self: end; display: flex; align-items: flex-end; flex-direction: column; gap: 6px; }
.footer-links a { font-size: 12px; text-underline-offset: 5px; }
.footer-bottom { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; color: #9ca1a4; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@keyframes hero-in { from { opacity: 0; transform: scale(1.035); } to { opacity: 1; transform: scale(1); } }

@media (max-width: 980px) {
  .section { padding: 90px 0; }
  .services-grid { grid-template-columns: 1fr 1fr; }
  .work-heading { grid-template-columns: 1fr; gap: 28px; }
  .work-intro { max-width: 620px; justify-self: start; }
  .work-grid { grid-template-columns: repeat(2, 1fr); }
  .work-card-wide { grid-column: span 2; }
  .care-layout, .quote-grid { grid-template-columns: 1fr; gap: 70px; }
  .care-copy, .quote-copy { position: static; }
  .why-panel { grid-template-columns: 1fr; gap: 50px; padding: 65px 55px; }
  .why-orbit { left: auto; right: -260px; bottom: -300px; }
}

@media (min-width: 761px) and (max-width: 1080px) {
  .official-logo { width: 210px; }
  .site-nav { gap: 20px; }
  .site-nav a { font-size: 13px; }
}

@media (max-width: 760px) {
  .wrap { width: min(100% - 34px, 600px); }
  .site-header { height: 106px; padding: 0 17px; }
  .brand-mark { width: 39px; height: 39px; }
  .official-logo { width: 205px; }
  .site-header.scrolled .official-logo { width: 128px; }
  .brand-copy strong { font-size: 18px; }
  .menu-toggle { display: block; cursor: pointer; }
  .site-nav { position: absolute; top: 106px; left: 0; right: 0; display: grid; gap: 0; padding: 0 18px 18px; background: rgba(6,22,65,.98); transform: translateY(-130%); opacity: 0; pointer-events: none; transition: transform .3s, opacity .3s; }
  .site-nav.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .site-nav a { padding: 14px 8px; border-bottom: 1px solid rgba(255,255,255,.12); }
  .nav-cta { margin-top: 10px; text-align: center; border: 1px solid rgba(255,255,255,.35) !important; }
  .hero { min-height: 720px; height: 94svh; }
  .hero-image { background-position: center 55%; }
  .hero-shade { background: linear-gradient(90deg, rgba(5,19,58,.92), rgba(7,27,75,.50)), linear-gradient(0deg, rgba(5,20,60,.36), transparent 50%); }
  .hero h1 { font-size: clamp(54px, 18vw, 80px); }
  .hero-lede { font-size: 16px; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 22px; }
  .bbb-badge { right: 18px; bottom: 22px; width: 112px; border-width: 3px; }
  .bbb-badge strong { font-size: 36px; }
  .bbb-badge-kicker { font-size: 11px; }
  .bbb-badge-copy { font-size: 8px; }
  .hero-note { display: none; }
  .intro { grid-template-columns: 1fr; gap: 35px; }
  .services-grid { grid-column: auto; grid-template-columns: 1fr; }
  .service-card { min-height: 350px; }
  .work-grid { grid-template-columns: 1fr; }
  .work-card, .work-card-wide { grid-column: auto; height: 290px; }
  .section-heading h2, .care h2, .why h2, .quote h2 { font-size: clamp(42px, 13vw, 62px); }
  .why-panel { min-height: 650px; padding: 55px 28px; }
  .quote-form { padding: 33px 24px; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .footer-top { grid-template-columns: 1fr; gap: 14px; padding: 50px 0; }
  .footer-top p, .footer-links, .brand-footer { justify-self: start; align-items: flex-start; margin: 0; }
  .footer-logo { width: min(310px, 100%); }
  .footer-bottom { display: grid; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
