/* ==========================================================================
   Miranda's Cleaning Service — 2026 redesign
   Vanilla CSS. Brand: royal blue + sky blue from the logo, teal sparkle accent.
   ========================================================================== */

:root {
  --brand: #0364af;
  --brand-deep: #024b85;
  --brand-ink: #06345c;
  --sky: #3eb5f5;
  --sky-soft: #e4f4fd;
  --sky-tint: #f1f9fe;
  --mint: #1fb3ac;

  --bg: #f5f9fc;
  --surface: #ffffff;
  --surface-2: #eaf2f8;
  --ink: #0b2239;
  --ink-2: #435a70;
  --ink-3: #7b8da0;
  --line: rgba(11, 34, 57, 0.09);
  --line-strong: rgba(11, 34, 57, 0.16);

  --font-display: "Bricolage Grotesque", "Avenir Next", system-ui, sans-serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow-soft: 0 1px 2px rgba(6, 52, 92, 0.05), 0 22px 44px -26px rgba(6, 52, 92, 0.3);
  --shadow-lift: 0 2px 4px rgba(6, 52, 92, 0.05), 0 34px 64px -28px rgba(6, 52, 92, 0.38);
  --shadow-brand: 0 14px 30px -12px rgba(3, 100, 175, 0.55);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  --container: 1220px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(76px, 10vw, 132px);

  --z-header: 20;
  --z-fab: 30;
  --z-dialog: 60;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; background: var(--bg); color: var(--ink-2);
  font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 8px; }
::selection { background: var(--brand); color: #fff; }
.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: absolute; left: 16px; top: -60px; z-index: var(--z-dialog); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 999px; transition: top 0.3s var(--ease); }
.skip-link:focus { top: 16px; }

.icon { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.icon--fill { fill: currentColor; stroke: none; }
.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Type ---------- */
h1, h2, h3, .display {
  font-family: var(--font-display); font-optical-sizing: auto; color: var(--ink);
  font-weight: 600; letter-spacing: -0.03em; text-wrap: balance;
}
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; letter-spacing: -0.045em; }
h2 { font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.04; }
h3 { font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.02em; }
h1 em, h2 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
h1 em::after {
  content: ""; position: absolute; left: -2%; right: -4%; bottom: -0.16em; height: 0.32em; z-index: -1;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 24' preserveAspectRatio='none'%3E%3Cpath d='M2 18C70 4 170 2 298 10' fill='none' stroke='%233eb5f5' stroke-width='7' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
p { text-wrap: pretty; }
.lead { font-size: clamp(1.08rem, 1.35vw, 1.2rem); line-height: 1.6; max-width: 36em; }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand); }
.eyebrow .sparkle { width: 14px; height: 14px; color: var(--mint); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border-radius: 14px;
  font-weight: 700; font-size: 1rem; letter-spacing: -0.005em; white-space: nowrap;
  transition: transform 0.4s var(--ease), background-color 0.3s var(--ease), box-shadow 0.4s var(--ease), color 0.3s var(--ease);
}
.btn .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.4s var(--ease); }
.btn:hover .icon--move { transform: translateX(3px); }
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--primary:hover { background: var(--brand-deep); }
.btn--light { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn--light:hover { box-shadow: inset 0 0 0 1px var(--brand), var(--shadow-soft); color: var(--brand-deep); }
.btn--light .icon { color: var(--brand); }
.btn--white { background: #fff; color: var(--brand-deep); }
.btn--white:hover { background: var(--sky-soft); }
.btn--ghost-light { color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.45); }
.btn--ghost-light:hover { background: rgba(255, 255, 255, 0.12); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: 0.95rem; border-radius: 12px; }

.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--brand); }
.text-link .icon { width: 18px; height: 18px; stroke-width: 2; transition: transform 0.4s var(--ease); }
.text-link:hover .icon { transform: translateX(3px); }

/* ---------- Header ---------- */
.topbar { background: var(--brand-ink); color: rgba(255, 255, 255, 0.82); font-size: 0.86rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 40px; }
.topbar ul { display: flex; gap: 22px; }
.topbar li, .topbar a { display: inline-flex; align-items: center; gap: 7px; }
.topbar .icon { width: 15px; height: 15px; color: var(--sky); }
.topbar a:hover { color: #fff; }

.site-header { position: sticky; top: 0; z-index: var(--z-header); padding: 12px 0; transition: padding 0.4s var(--ease); }
.site-header::before { content: ""; position: absolute; inset: 0; background: rgba(245, 249, 252, 0); transition: background-color 0.4s var(--ease); pointer-events: none; }
.header-bar {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 10px 10px 10px 20px; border-radius: 20px; background: rgba(255, 255, 255, 0.86);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 1px var(--line), 0 10px 30px -22px rgba(6, 52, 92, 0.4);
  transition: box-shadow 0.4s var(--ease);
}
.site-header.is-scrolled .header-bar { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8), 0 0 0 1px var(--line), 0 18px 40px -18px rgba(6, 52, 92, 0.35); }
.brand img { height: 50px; width: auto; }
.nav { display: flex; gap: 4px; }
.nav a { position: relative; padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 0.98rem; color: var(--ink-2); transition: color 0.3s var(--ease), background-color 0.3s var(--ease); }
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a[aria-current="page"] { color: var(--brand); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: 16px; right: 16px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--sky); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.header-phone { display: inline-flex; align-items: center; gap: 10px; padding: 6px 12px 6px 6px; border-radius: 12px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.header-phone__ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--sky-soft); color: var(--brand); }
.header-phone__ic .icon { width: 17px; height: 17px; }
.header-phone small { display: block; font-size: 0.72rem; font-weight: 600; color: var(--ink-3); line-height: 1.1; }
.header-phone:hover { background: var(--surface-2); }

.menu-btn { display: none; width: 46px; height: 46px; border-radius: 12px; background: var(--brand); color: #fff; position: relative; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: currentColor; transition: transform 0.45s var(--ease), top 0.45s var(--ease), opacity 0.3s; }
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

.mobile-panel {
  position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% - 4px);
  padding: 12px; border-radius: 20px; background: #fff; box-shadow: 0 0 0 1px var(--line), var(--shadow-lift);
  opacity: 0; visibility: hidden; transform: translateY(-8px) scale(0.98); transform-origin: top center;
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
}
.mobile-panel.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.mobile-panel nav { display: grid; }
.mobile-panel nav a { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px; border-radius: 12px; font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; color: var(--ink); letter-spacing: -0.02em; }
.mobile-panel nav a .icon { color: var(--ink-3); }
.mobile-panel nav a[aria-current="page"] { background: var(--sky-tint); color: var(--brand); }
.mobile-panel__ctas { display: grid; gap: 8px; padding: 10px 2px 2px; }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; position: relative; }
.section--tight { padding-top: 0; }
.section-head { display: grid; gap: 16px; justify-items: start; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head--center { justify-items: center; text-align: center; margin-inline: auto; }
.section-head--split { max-width: none; grid-template-columns: 1fr 1fr; align-items: end; gap: 16px 64px; }
.section-head--split > div { display: grid; gap: 16px; justify-items: start; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(36px, 6vw, 72px) 0 clamp(64px, 8vw, 104px); overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -200px -10% auto 40%; height: 760px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(62, 181, 245, 0.22), rgba(62, 181, 245, 0) 72%);
}
.hero__grid { display: grid; grid-template-columns: 1.02fr 0.98fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.hero__copy { display: grid; gap: 26px; justify-items: start; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__trust { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding-top: 22px; border-top: 1px solid var(--line); width: 100%; max-width: 560px; }
.hero__trust img { height: 50px; width: auto; }
.hero__trust p { font-size: 0.92rem; line-height: 1.45; color: var(--ink-2); max-width: 15em; }
.hero__trust strong { color: var(--ink); }

/* Results card with tabs */
.results { position: relative; }
.results__frame { padding: 8px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.results__stage { position: relative; aspect-ratio: 16 / 11; border-radius: calc(var(--r-xl) - 8px); overflow: hidden; background: var(--surface-2); }
.results__stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.03); transition: opacity 0.7s var(--ease), transform 1.2s var(--ease); }
.results__stage img.is-active { opacity: 1; transform: none; }
.results__tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; padding: 8px 2px 2px; }
.results__tab { position: relative; padding: 12px 10px 14px; border-radius: 12px; text-align: left; font-weight: 700; font-size: 0.9rem; color: var(--ink-3); overflow: hidden; transition: color 0.3s var(--ease), background-color 0.3s var(--ease); }
.results__tab small { display: block; font-weight: 500; font-size: 0.76rem; }
.results__tab:hover { background: var(--surface-2); color: var(--ink-2); }
.results__tab[aria-selected="true"] { color: var(--ink); background: var(--sky-tint); }
.results__tab i { position: absolute; left: 10px; right: 10px; bottom: 6px; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.results__tab i::after { content: ""; position: absolute; inset: 0; background: var(--brand); transform: scaleX(0); transform-origin: left; }
.results__tab[aria-selected="true"] i::after { animation: tabfill var(--tab-ms, 5200ms) linear forwards; }
.results.is-paused .results__tab[aria-selected="true"] i::after { animation-play-state: paused; }
@keyframes tabfill { to { transform: scaleX(1); } }
.results__badge {
  position: absolute; top: -18px; right: 22px; z-index: 2; display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px 9px 10px; border-radius: 12px; background: var(--ink); color: #fff; font-size: 0.85rem; font-weight: 700;
  box-shadow: 0 14px 30px -12px rgba(11, 34, 57, 0.6);
}
.results__badge .icon { width: 16px; height: 16px; color: var(--sky); }
.results__note { position: absolute; left: -22px; bottom: 86px; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.results__note span { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: #e2f6f4; color: var(--mint); }
.results__note .icon { width: 18px; height: 18px; }

/* ---------- States strip ---------- */
.states { background: var(--brand); color: #fff; position: relative; overflow: hidden; }
.states::before { content: ""; position: absolute; inset: 0; background: radial-gradient(600px 200px at 85% 0%, rgba(62, 181, 245, 0.55), transparent 70%), radial-gradient(500px 220px at 0% 100%, rgba(2, 40, 72, 0.5), transparent 70%); }
.states .container { position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 24px 48px; padding-block: 28px; }
.states__label { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.states ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.states li { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 14px; background: rgba(255, 255, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16); font-weight: 700; }
.states li b { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: #fff; color: var(--brand); font-family: var(--font-display); font-size: 0.95rem; letter-spacing: 0; flex: none; }
.states li small { display: block; font-weight: 500; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); }

/* ---------- Audience bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.tile {
  position: relative; grid-column: span 4; display: flex; flex-direction: column; gap: 12px;
  padding: 28px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden;
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tile:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); }
.tile__ic { width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; background: var(--sky-soft); color: var(--brand); margin-bottom: 10px; }
.tile__ic .icon { width: 25px; height: 25px; stroke-width: 1.6; }
.tile p { font-size: 0.98rem; }
.tile .text-link { margin-top: auto; padding-top: 8px; }
.tile--photo { grid-column: span 7; grid-row: span 2; min-height: 440px; padding: 0; background: var(--ink); color: rgba(255, 255, 255, 0.85); }
.tile--photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.tile--photo:hover img { transform: scale(1.04); }
.tile--photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 34, 57, 0) 35%, rgba(11, 34, 57, 0.88)); }
.tile--photo .tile__body { position: relative; z-index: 1; margin-top: auto; padding: clamp(26px, 3vw, 38px); display: grid; gap: 10px; }
.tile--photo h3 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.tile--photo .tile__ic { background: rgba(255, 255, 255, 0.16); color: #fff; margin-bottom: 4px; }
.tile--photo .text-link { color: #fff; }
.tile--wide { grid-column: span 5; }
.tile--accent { grid-column: span 5; background: linear-gradient(140deg, var(--brand) 0%, var(--brand-deep) 100%); color: rgba(255, 255, 255, 0.86); box-shadow: var(--shadow-brand); }
.tile--accent h3 { color: #fff; }
.tile--accent .tile__ic { background: rgba(255, 255, 255, 0.16); color: #fff; }
.tile--accent .text-link { color: #fff; }
.tile--accent::after { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(62, 181, 245, 0.5), transparent); }

/* ---------- Service list ---------- */
.svc-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 48px; }
.svc-item { display: grid; grid-template-columns: 52px 1fr; gap: 4px 18px; padding: 22px 0; border-top: 1px solid var(--line); }
.svc-item__ic { grid-row: span 2; width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); color: var(--brand); transition: background-color 0.3s var(--ease), color 0.3s var(--ease); }
.svc-item__ic .icon { width: 24px; height: 24px; stroke-width: 1.6; }
.svc-item:hover .svc-item__ic { background: var(--brand); color: #fff; }
.svc-item h3 { font-size: 1.15rem; align-self: end; }
.svc-item p { font-size: 0.96rem; }
.svc-foot { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.freq { display: flex; flex-wrap: wrap; gap: 8px; }
.freq li { padding: 8px 14px; border-radius: 10px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 0.9rem; color: var(--ink); }

/* ---------- Steps ---------- */
.steps-wrap { background: var(--surface); border-radius: clamp(26px, 4vw, 44px); padding: clamp(44px, 6vw, 80px) clamp(22px, 5vw, 64px); box-shadow: inset 0 0 0 1px var(--line); position: relative; overflow: hidden; }
.steps-wrap::before { content: ""; position: absolute; left: -10%; right: -10%; bottom: -1px; height: 120px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 90C260 30 520 20 800 55S1120 100 1200 70V120H0Z' fill='%23e4f4fd'/%3E%3Cpath d='M0 105C300 60 620 60 900 85S1150 110 1200 95V120H0Z' fill='%23d3ecfb'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat; pointer-events: none; }
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: s; }
.step { position: relative; display: grid; gap: 10px; align-content: start; }
.step__n { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; box-shadow: var(--shadow-brand); margin-bottom: 10px; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 28px; left: 72px; right: -12px; height: 2px; background: repeating-linear-gradient(90deg, var(--sky) 0 6px, transparent 6px 12px); opacity: 0.6; }
.step p { font-size: 0.97rem; }
.steps-cta { position: relative; display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(36px, 5vw, 52px); }

/* ---------- Work grid & lightbox ---------- */
.work-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.work { position: relative; aspect-ratio: 37 / 40; border-radius: var(--r-md); overflow: hidden; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
.work img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.work:hover img { transform: scale(1.05); }
.work__zoom { position: absolute; right: 10px; bottom: 10px; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.94); color: var(--brand); opacity: 0; transform: translateY(6px); transition: opacity 0.35s var(--ease), transform 0.35s var(--ease); }
.work:hover .work__zoom, .work:focus-visible .work__zoom { opacity: 1; transform: none; }
.work-foot { display: flex; justify-content: center; margin-top: 32px; }

.compare-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.compare { padding: 7px; border-radius: var(--r-lg); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.compare button { display: block; width: 100%; border-radius: calc(var(--r-lg) - 7px); overflow: hidden; aspect-ratio: 1600 / 650; }
.compare img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease); }
.compare button:hover img { transform: scale(1.03); }
.compare figcaption { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 10px 6px; font-weight: 700; color: var(--ink); }
.compare figcaption span { font-weight: 500; font-size: 0.88rem; color: var(--ink-3); }

.lightbox { border: 0; padding: 0; background: transparent; width: min(1100px, 94vw); max-width: none; overflow: visible; }
.lightbox::backdrop { background: rgba(6, 22, 38, 0.86); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lightbox[open] { animation: lb-in 0.45s var(--ease-out); }
@keyframes lb-in { from { opacity: 0; transform: scale(0.97); } }
.lightbox img { width: auto; max-width: 100%; max-height: 78vh; margin-inline: auto; border-radius: var(--r-md); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; color: rgba(255, 255, 255, 0.86); }
.lightbox__bar p { font-size: 0.95rem; }
.lightbox__btns { display: flex; gap: 8px; }
.lightbox__btns button { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.14); color: #fff; transition: background-color 0.3s var(--ease); }
.lightbox__btns button:hover { background: rgba(255, 255, 255, 0.28); }

/* ---------- Estimate band ---------- */
.estimate { position: relative; border-radius: clamp(26px, 4vw, 44px); overflow: hidden; background: var(--brand-ink); color: rgba(255, 255, 255, 0.82); display: grid; grid-template-columns: 0.9fr 1.1fr; }
.estimate::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 420px at 0% 0%, rgba(62, 181, 245, 0.35), transparent 65%), radial-gradient(500px 360px at 100% 100%, rgba(31, 179, 172, 0.25), transparent 65%); pointer-events: none; }
.estimate__copy { position: relative; padding: clamp(36px, 5vw, 64px); display: grid; gap: 20px; align-content: start; justify-items: start; }
.estimate__copy h2 { color: #fff; }
.estimate__copy h2 em { color: var(--sky); }
.estimate__copy .eyebrow { color: var(--sky); }
.estimate__list { display: grid; gap: 10px; margin-top: 6px; }
.estimate__list li { display: flex; align-items: center; gap: 10px; font-weight: 600; color: #fff; }
.estimate__list .icon { width: 20px; height: 20px; color: var(--sky); stroke-width: 2.2; }
.estimate__phone { display: inline-flex; align-items: center; gap: 12px; margin-top: 8px; font-family: var(--font-display); font-size: clamp(1.6rem, 3vw, 2.1rem); font-weight: 600; color: #fff; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.estimate__phone span { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.12); }
.estimate__phone .icon { color: var(--sky); }
.estimate__form { position: relative; margin: 10px; padding: clamp(24px, 4vw, 40px); border-radius: calc(clamp(26px, 4vw, 44px) - 10px); background: #fff; color: var(--ink-2); }
.estimate__form h3 { font-size: 1.5rem; margin-bottom: 4px; }
.estimate__form > p { font-size: 0.95rem; margin-bottom: 22px; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.86rem; font-weight: 700; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border-radius: var(--r-sm); border: 0; background: var(--bg);
  box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow 0.3s var(--ease), background-color 0.3s var(--ease);
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8da0' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; background-size: 18px; padding-right: 42px; }
.field textarea { min-height: 130px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:hover, .field textarea:hover, .field select:hover { box-shadow: inset 0 0 0 1px var(--ink-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: #fff; box-shadow: inset 0 0 0 1.5px var(--brand), 0 0 0 4px rgba(3, 100, 175, 0.12); }
.field input:user-invalid { box-shadow: inset 0 0 0 1.5px #c0392b; }
.field__err { display: none; font-size: 0.82rem; color: #b03227; }
.field input:user-invalid + .field__err { display: block; }
.form-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; margin-top: 20px; }
.form-foot small { color: var(--ink-3); font-size: 0.85rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; padding: clamp(36px, 5vw, 64px) 0 clamp(48px, 6vw, 80px); overflow-x: clip; }
.page-hero::before { content: ""; position: absolute; inset: -220px -10% auto 45%; height: 640px; z-index: -1; background: radial-gradient(closest-side, rgba(62, 181, 245, 0.2), transparent 72%); pointer-events: none; }
.page-hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 24px 64px; align-items: end; }
.page-hero__title { display: grid; gap: 18px; justify-items: start; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: 0.88rem; font-weight: 600; color: var(--ink-3); }
.crumbs a:hover { color: var(--brand); }
.crumbs .icon { width: 14px; height: 14px; }
.page-hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); }
.page-hero__side { display: grid; gap: 18px; justify-items: start; }

/* ---------- Services page rows ---------- */
.feature-rows { display: grid; gap: clamp(20px, 3vw, 28px); }
.feature-row { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 10px; border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.feature-row:nth-child(even) { grid-template-columns: 1.1fr 0.9fr; }
.feature-row:nth-child(even) .feature-row__media { order: 2; }
.feature-row__media { border-radius: calc(var(--r-xl) - 10px); overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.feature-row__media img { width: 100%; height: 100%; object-fit: cover; }
.feature-row__body { display: grid; gap: 14px; justify-items: start; padding: clamp(14px, 3vw, 36px); }
.feature-row__body h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.checks { display: grid; gap: 8px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.checks .icon { width: 20px; height: 20px; color: var(--mint); stroke-width: 2.2; margin-top: 2px; }

.plan-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.plan { padding: 26px 22px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; align-content: start; }
.plan b { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.plan p { font-size: 0.95rem; }
.plan--hi { background: var(--sky-tint); box-shadow: inset 0 0 0 1.5px var(--sky); }
.plan__tag { justify-self: start; padding: 4px 10px; border-radius: 8px; background: var(--brand); color: #fff; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; }
.about-media { position: relative; }
.about-media__main { border-radius: var(--r-xl); overflow: hidden; aspect-ratio: 1600 / 650; box-shadow: var(--shadow-lift); }
.about-media__main img { width: 100%; height: 100%; object-fit: cover; }
.about-media__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 14px; }
.about-media__row img { border-radius: var(--r-lg); aspect-ratio: 37 / 40; object-fit: cover; width: 100%; }
.about-copy { display: grid; gap: 22px; justify-items: start; }
.values { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; width: 100%; }
.value { padding: 20px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 8px; }
.value .tile__ic { width: 42px; height: 42px; border-radius: 12px; margin: 0 0 4px; }
.value .tile__ic .icon { width: 21px; height: 21px; }
.value h3 { font-size: 1.08rem; }
.value p { font-size: 0.93rem; line-height: 1.55; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.badges img { height: 56px; width: auto; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
.info-cards { display: grid; gap: 12px; }
.info-card { display: flex; gap: 16px; align-items: center; padding: 18px; border-radius: var(--r-md); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow 0.4s var(--ease), transform 0.4s var(--ease); }
a.info-card:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.info-card .tile__ic { margin: 0; width: 48px; height: 48px; }
.info-card dt { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3); }
.info-card dd { font-weight: 700; color: var(--ink); font-size: 1.04rem; word-break: break-word; }
.form-card { padding: clamp(24px, 4vw, 40px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-bottom: 6px; }
.form-card > p { margin-bottom: 24px; font-size: 0.97rem; }
.map { margin-top: clamp(40px, 5vw, 64px); padding: 7px; border-radius: var(--r-xl); background: #fff; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); }
.map iframe { display: block; width: 100%; height: clamp(300px, 36vw, 420px); border: 0; border-radius: calc(var(--r-xl) - 7px); filter: saturate(0.75); }

/* ---------- Footer ---------- */
.site-footer { position: relative; background: var(--surface); border-top: 1px solid var(--line); padding: clamp(56px, 7vw, 88px) 0 28px; }
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 4px; background: linear-gradient(90deg, var(--brand), var(--sky), var(--mint)); }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1.1fr 1.3fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--line); }
.footer-brand { display: grid; gap: 18px; align-content: start; justify-items: start; }
.footer-brand img { height: 64px; width: auto; }
.footer-brand p { font-size: 0.95rem; max-width: 26em; }
.footer-col h4 { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink); margin-bottom: 16px; }
.footer-col ul { display: grid; gap: 9px; }
.footer-col a { font-size: 0.97rem; transition: color 0.3s var(--ease); }
.footer-col a:hover { color: var(--brand); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; }
.footer-contact .icon { width: 18px; height: 18px; color: var(--brand); margin-top: 4px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding-top: 24px; font-size: 0.88rem; color: var(--ink-3); }
.footer-bottom a { color: var(--ink-2); font-weight: 600; }
.footer-bottom a:hover { color: var(--brand); }

/* ---------- SMS widget ---------- */
.sms { position: fixed; right: 20px; bottom: 20px; z-index: var(--z-fab); display: grid; justify-items: end; gap: 12px; }
.sms__fab { display: inline-flex; align-items: center; gap: 10px; padding: 7px 18px 7px 7px; border-radius: 16px; background: var(--brand); color: #fff; font-weight: 700; font-size: 0.95rem; box-shadow: 0 18px 38px -14px rgba(3, 100, 175, 0.7); transition: transform 0.45s var(--ease), background-color 0.3s var(--ease); }
.sms__fab:hover { transform: translateY(-2px); background: var(--brand-deep); }
.sms__fab:active { transform: scale(0.97); }
.sms__fab img { width: 40px; height: 40px; border-radius: 11px; background: #fff; }
.sms__card { width: min(320px, calc(100vw - 40px)); border-radius: 22px; background: #fff; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -20px rgba(6, 52, 92, 0.45); overflow: hidden; transform-origin: bottom right; opacity: 0; visibility: hidden; transform: translateY(10px) scale(0.96); transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s; }
.sms.is-open .sms__card { opacity: 1; visibility: visible; transform: none; transition: opacity 0.35s var(--ease), transform 0.45s var(--ease); }
.sms__head { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 20px 20px 18px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.sms__head strong { font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; }
.sms__close { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.16); flex: none; }
.sms__close .icon { width: 16px; height: 16px; }
.sms__body { padding: 16px; display: grid; gap: 14px; }
.sms__person { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: var(--bg); }
.sms__person img { width: 48px; height: 48px; border-radius: 13px; }
.sms__person b { display: block; color: var(--ink); }
.sms__person span { font-size: 0.85rem; color: var(--ink-3); }
.sms__status { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8rem !important; font-weight: 700; color: #1f8a4c !important; }
.sms__status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2fb36a; }
.sms__body .btn { width: 100%; }

/* ---------- 404 ---------- */
.notfound { min-height: 64dvh; display: grid; place-items: center; text-align: center; padding: 48px 0 96px; }
.notfound__inner { display: grid; gap: 20px; justify-items: center; max-width: 560px; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(6rem, 18vw, 10rem); line-height: 0.9; letter-spacing: -0.06em; background: linear-gradient(135deg, var(--brand), var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1140px) {
  .header-phone { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 960px) {
  .topbar { display: none; }
  .nav, .header-actions .btn { display: none; }
  .menu-btn { display: block; }
  .brand img { height: 42px; }
  .hero__grid, .page-hero__inner, .about-grid, .contact-grid, .estimate { grid-template-columns: 1fr; }
  .results { max-width: 640px; }
  .results__note { left: 10px; bottom: auto; top: -18px; }
  .section-head--split { grid-template-columns: 1fr; }
  .states .container { grid-template-columns: 1fr; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .tile, .tile--wide, .tile--accent { grid-column: span 1; }
  .tile--photo { grid-column: 1 / -1; grid-row: auto; min-height: 380px; }
  .svc-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 32px 24px; }
  .step:not(:last-child)::after { display: none; }
  .work-grid { grid-template-columns: repeat(3, 1fr); }
  .feature-row, .feature-row:nth-child(even) { grid-template-columns: 1fr; }
  .feature-row:nth-child(even) .feature-row__media { order: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .site-header { padding: 8px 0; }
  .header-bar { padding: 8px 8px 8px 14px; border-radius: 16px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .results__tabs { grid-template-columns: repeat(2, 1fr); }
  .results__badge { right: 12px; }
  .states ul { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .tile { padding: 24px; }
  .steps { grid-template-columns: 1fr; }
  .work-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .compare-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .sms { right: 12px; bottom: 12px; }
  .sms__fab-label { display: none; }
  .sms__fab { padding: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media (max-width: 640px) { .results__note { display: none; } }

/* ==========================================================================
   Areas we serve (tri-state map)
   ========================================================================== */
.areas {
  --map-pa: #f3f6f2;
  --map-nj: #f3f2ec;
  --map-de: #f7efe6;
  --map-md: #ececec;
  --map-park: rgba(110, 160, 96, 0.17);
  --map-water: #c3def3;
  --map-water-line: #98c7ea;
  --map-road: #ffffff;
  --map-road-casing: #dbe3ea;
  --map-road-minor: #e3e9ee;
  --map-line: rgba(11, 34, 57, 0.3);
  --st-PA: var(--brand);
  --st-NJ: #1f93d1;
  --st-DE: var(--mint);
}
.areas .section-head .lead { max-width: 40em; }
.area-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: clamp(28px, 4vw, 44px); }
.area-filter {
  display: inline-flex; align-items: center; gap: 9px; padding: 9px 10px 9px 16px; border-radius: 999px;
  background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); font-size: 0.92rem; font-weight: 700; color: var(--ink);
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.4s var(--ease), transform 0.4s var(--ease);
}
.area-filter i { width: 8px; height: 8px; border-radius: 50%; background: var(--st-PA); }
.area-filter[data-state="NJ"] i { background: var(--st-NJ); }
.area-filter[data-state="DE"] i { background: var(--st-DE); }
.area-filter span { min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; display: grid; place-items: center; background: var(--surface-2); font-size: 0.78rem; color: var(--ink-2); }
.area-filter:hover { box-shadow: inset 0 0 0 1px var(--line-strong), var(--shadow-soft); }
.area-filter:active { transform: scale(0.97); }
.area-filter.is-active { background: var(--brand-ink); color: #fff; box-shadow: 0 12px 26px -12px rgba(6, 52, 92, 0.6); }
.area-filter.is-active span { background: rgba(255, 255, 255, 0.16); color: #fff; }
.area-filter.is-active i { box-shadow: 0 0 0 2px #fff; }

.areas__grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.areas-map { position: relative; aspect-ratio: var(--map-ratio, 700 / 620); border-radius: var(--r-xl); overflow: hidden; box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); isolation: isolate; background: var(--map-pa); }
.areas-map__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.map-state { font: 700 10px/1 var(--font-body); letter-spacing: 0.2em; fill: rgba(11, 34, 57, 0.38); }
.map-water-label { font: italic 500 10px/1 var(--font-body); fill: #5e95c2; }
.map-park-label { font: italic 500 10px/1 var(--font-body); fill: #5f8a52; }
.map-road-label { font: 700 8.5px/1 var(--font-body); letter-spacing: 0.08em; fill: var(--ink-3); }
.map-shield { font: 700 8.5px/1 var(--font-body); fill: #fff; text-anchor: middle; }
.areas-map__pins { position: absolute; inset: 0; }

.pin { position: absolute; left: calc(var(--x) * 1%); top: calc(var(--y) * 1%); z-index: 1; display: flex; align-items: center; gap: 5px; transform: translate(-7px, -50%); transition: opacity 0.4s var(--ease), filter 0.4s var(--ease); --pin: var(--st-PA); }
.pin[data-state="NJ"] { --pin: var(--st-NJ); }
.pin[data-state="DE"] { --pin: var(--st-DE); }
.pin[data-side="l"] { flex-direction: row-reverse; transform: translate(calc(-100% + 7px), -50%); }
.pin[data-side="b"] { flex-direction: column; gap: 4px; transform: translate(-50%, -7px); }
.pin__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; background: var(--pin); box-shadow: 0 0 0 3px #fff, 0 2px 6px rgba(11, 34, 57, 0.3); transition: transform 0.4s var(--ease); }
.pin__label { padding: 5px 10px; border-radius: 8px; background: var(--brand-ink); color: #fff; font-size: 0.74rem; font-weight: 700; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 14px -6px rgba(11, 34, 57, 0.55); transition: background-color 0.3s var(--ease), transform 0.4s var(--ease); }
.pin:hover { z-index: 3; }
.pin:hover .pin__label { transform: translateY(-2px); }
.pin:hover .pin__dot { transform: scale(1.15); }
.pin--hub .pin__label { font-size: 0.86rem; padding: 7px 12px; }
.pin--hub .pin__dot { width: 18px; height: 18px; }
.pin.is-active { z-index: 4; }
.pin.is-active .pin__label { background: var(--pin); box-shadow: 0 10px 22px -8px rgba(3, 100, 175, 0.6); }
.pin.is-active .pin__dot { background: #fff; box-shadow: 0 0 0 4px var(--pin), 0 0 0 10px rgba(3, 100, 175, 0.16); }
.areas-map.is-filtered .pin:not(.is-match) { opacity: 0.25; filter: grayscale(1); }

.map-badge { position: absolute; z-index: 5; border-radius: var(--r-md); padding: 11px 15px; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); }
.map-badge--count { top: 16px; left: 16px; display: grid; gap: 1px; }
.map-badge--count span { font-size: 0.74rem; font-weight: 600; color: var(--ink-3); }
.map-badge--count strong { font-family: var(--font-display); font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; line-height: 1.1; }
.map-badge--area { right: 16px; bottom: 16px; display: flex; gap: 10px; align-items: center; }
.map-badge--area .icon { color: var(--brand); width: 22px; height: 22px; }
.map-badge--area strong { display: block; font-size: 0.9rem; }
.map-badge--area span { font-size: 0.76rem; color: var(--ink-3); }
.map-legend { position: absolute; z-index: 5; top: 16px; right: 16px; display: flex; gap: 12px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.92); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); font-size: 0.8rem; font-weight: 700; color: var(--ink); }
.map-legend li { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { width: 9px; height: 9px; border-radius: 50%; background: var(--st-PA); }
.map-legend [data-state="NJ"] i { background: var(--st-NJ); }
.map-legend [data-state="DE"] i { background: var(--st-DE); }

.area-detail { position: relative; display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3vw, 32px); border-radius: var(--r-xl); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line), var(--shadow-soft); overflow: hidden; }
.area-detail::before { content: ""; position: absolute; inset: 0 0 auto; height: 5px; background: linear-gradient(90deg, var(--brand), var(--sky)); }
.area-detail[data-state="NJ"]::before { background: linear-gradient(90deg, var(--st-NJ), #7cd0f7); }
.area-detail[data-state="DE"]::before { background: linear-gradient(90deg, var(--mint), #7fdcd4); }
.area-detail__badge { align-self: flex-start; padding: 6px 12px; border-radius: 999px; background: var(--sky-soft); color: var(--brand-deep); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.area-detail h3 { font-size: clamp(1.9rem, 3vw, 2.4rem); line-height: 1.05; letter-spacing: -0.035em; }
.area-detail__region { display: flex; align-items: center; gap: 6px; font-weight: 700; color: var(--brand); font-size: 0.95rem; margin-top: -6px; }
.area-detail__region .icon { width: 17px; height: 17px; }
.area-detail__desc { font-size: 0.98rem; line-height: 1.65; }
.area-detail__label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.area-detail__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.area-detail__ctas { display: grid; gap: 10px; margin-top: auto; padding-top: 8px; }
.area-detail__ctas .btn { white-space: normal; }
.area-detail__facts { display: grid; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-strong); font-size: 0.88rem; font-weight: 600; }
.area-detail__facts li { display: flex; align-items: center; gap: 8px; }
.area-detail__facts .icon { width: 17px; height: 17px; color: var(--brand); }
.area-detail [data-area] { transition: opacity 0.25s var(--ease); }
.area-detail.is-swapping [data-area] { opacity: 0; }

.area-chip { padding: 7px 14px; border-radius: 999px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-strong); font-size: 0.88rem; font-weight: 700; color: var(--ink); transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease); }
.area-chip:hover { background: var(--sky-soft); box-shadow: inset 0 0 0 1px rgba(3, 100, 175, 0.35); }
.area-chip:active { transform: scale(0.96); }
.area-chip.is-active { background: var(--brand-ink); color: #fff; box-shadow: none; }

.areas__list-title { text-align: center; font-weight: 700; color: var(--ink); margin: clamp(48px, 6vw, 72px) 0 24px; font-size: 1.05rem; }
.area-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.area-card { position: relative; padding: 26px 24px 24px; border-radius: var(--r-lg); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: box-shadow 0.5s var(--ease), transform 0.5s var(--ease); --pin: var(--st-PA); }
.area-card[data-state="NJ"] { --pin: var(--st-NJ); }
.area-card[data-state="DE"] { --pin: var(--st-DE); }
.area-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--pin); opacity: 0.5; transition: opacity 0.4s var(--ease); }
.area-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.22rem; margin-bottom: 16px; }
.area-card h3 .icon { color: var(--pin); width: 22px; height: 22px; flex: none; }
.area-card h3 small { margin-left: auto; padding: 3px 8px; border-radius: 6px; background: var(--surface-2); font: 700 0.72rem/1.3 var(--font-body); letter-spacing: 0.06em; color: var(--ink-2); }
.area-card ul { display: flex; flex-wrap: wrap; gap: 8px; }
.area-card:hover { box-shadow: inset 0 0 0 1px var(--line), var(--shadow-lift); transform: translateY(-3px); }
.area-card.is-current { box-shadow: inset 0 0 0 1.5px var(--pin), var(--shadow-lift); }
.area-card.is-current::before { opacity: 1; }

@media (max-width: 1100px) {
  .areas__grid { grid-template-columns: 1fr; }
  .areas-map, .area-detail { max-width: 760px; width: 100%; margin-inline: auto; }
  .area-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .area-filters { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 8px; scrollbar-width: none; }
  .area-filters::-webkit-scrollbar { display: none; }
  .area-filter { flex: none; font-size: 0.86rem; }
  .areas-map { border-radius: var(--r-lg); }
  .pin__label { display: none; }
  .pin, .pin[data-side="l"], .pin[data-side="b"] { transform: translate(-50%, -50%); }
  .pin::after { content: ""; position: absolute; inset: -9px; }
  .pin__dot { width: 11px; height: 11px; }
  .pin--hub .pin__dot { width: 15px; height: 15px; }
  .pin.is-active .pin__label, .pin--hub .pin__label { display: block; font-size: 0.7rem; padding: 4px 8px; }
  .pin.is-active[data-side="l"], .pin--hub[data-side="l"] { transform: translate(calc(-100% + 6px), -50%); }
  .pin.is-active[data-side="r"] { transform: translate(-6px, -50%); }
  .pin.is-active[data-side="b"] { transform: translate(-50%, -6px); }
  .map-badge--area { display: none; }
  .map-badge--count { top: auto; bottom: 10px; left: 10px; padding: 8px 12px; }
  .map-badge--count strong { font-size: 0.95rem; }
  .map-legend { top: 10px; right: 10px; padding: 6px 10px; gap: 8px; font-size: 0.72rem; }
  .area-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .pin--hub[data-side="l"] { flex-direction: column-reverse; gap: 4px; transform: translate(-50%, calc(-100% + 8px)); }
}
