/* Ligonier Township Municipal Authority preview, West Media Group, 2026-10-30.
   Skin from the logo: navy plate lettering, sky-blue droplet, silver plate with a navy keyline,
   the arched "At your service" line. Texture: a water ripple edge. */
:root {
  --navy: #0a1280;
  --navy-deep: #070d52;
  --navy-ink: #10163a;
  --sky: #3888f0;
  --sky-soft: #d9e7fb;
  --silver: #c9ccd6;
  --silver-soft: #e7e9ef;
  --paper: #f6f5f0;
  --paper-2: #eeece4;
  --white: #fcfcfa;
  --alert: #a3241c;
  --ok: #1f6b45;
  --ink: var(--navy-ink);
  --muted: #4a5070;
  --display: "Sofia Sans Condensed", "Arial Narrow", sans-serif;
  --label: "Sofia Sans Semi Condensed", "Arial Narrow", sans-serif;
  --body: "Source Sans 3", "Helvetica Neue", Arial, sans-serif;
  --r: 8px;
  --r-sm: 4px;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --bar-h: 40px;
  --head-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 128px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 19px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  padding-top: calc(var(--bar-h) + var(--head-h));
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); text-underline-offset: 3px; }
a:hover { color: var(--sky); }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 2px; }
h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.005em;
  text-wrap: balance;
  margin: 0;
  color: var(--navy);
}
h1 { font-size: clamp(48px, 7vw, 96px); text-transform: uppercase; letter-spacing: 0.005em; }
h2 { font-size: clamp(40px, 4.6vw, 64px); }
h3 { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.08; }
p { margin: 0 0 16px; text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--white); padding: 8px 16px; }
.skip:focus { left: 8px; }
.tnum { font-variant-numeric: tabular-nums; }
.label {
  font: 700 14px/1 var(--label);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sky);
}

/* Buttons: the logo's plate. Silver face, navy keyline, navy lettering. */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 12px 24px;
  font: 800 20px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  text-decoration: none; border-radius: var(--r);
  transition: background-color .25s ease-out, color .25s ease-out, transform .25s ease-out;
}
.btn i { font-size: 18px; }
.btn-plate { background: var(--silver-soft); color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy), inset 0 0 0 4px var(--silver-soft), inset 0 0 0 5px var(--navy); }
.btn-plate:hover { background: var(--white); color: var(--navy); transform: translateY(-2px); }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-deep); color: var(--white); transform: translateY(-2px); }
.btn-ghost { color: var(--white); box-shadow: inset 0 0 0 2px rgba(252,252,250,.7); }
.btn-ghost:hover { color: var(--white); background: rgba(252,252,250,.12); }

/* Top bar */
.topbar {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--bar-h);
  background: var(--navy-deep); color: var(--silver-soft);
  font: 600 15px/1 var(--label); letter-spacing: 0.02em;
  transition: transform .35s ease-out;
}
.topbar .wrap { height: 100%; display: flex; align-items: center; gap: 24px; }
.topbar a { color: var(--white); text-decoration: none; }
.topbar a:hover { color: var(--sky-soft); text-decoration: underline; }
.topbar .open { display: inline-flex; align-items: center; gap: 8px; }
.topbar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--silver); }
.topbar .dot.is-open { background: #57c98a; }
.topbar .meet { color: var(--silver); }
.topbar .push { margin-left: auto; display: flex; gap: 24px; align-items: center; }
.wmg-tag { font: 600 12px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--silver) !important; }

/* Header: slim bar, oversized badge hanging below it; the badge tucks up on scroll */
.site-head {
  position: fixed; left: 0; right: 0; top: var(--bar-h); z-index: 49; height: var(--head-h);
  background: var(--white);
  box-shadow: 0 1px 0 rgba(10,18,128,.12);
  transition: transform .35s ease-out, box-shadow .35s ease-out;
}
.site-head .wrap { height: 100%; display: flex; align-items: center; gap: 32px; }
.badge {
  position: relative; align-self: flex-start; flex: 0 0 auto;
  width: 132px; height: var(--head-h);
}
.badge img {
  position: absolute; top: 8px; left: 0; width: 132px;
  filter: drop-shadow(0 4px 8px rgba(7,13,82,.22));
  transform-origin: top left;
  transition: transform .35s ease-out;
}
.badge .name { position: absolute; left: -9999px; }
.nav { display: flex; gap: 28px; margin-left: 12px; }
.nav a {
  position: relative; padding: 8px 0;
  font: 700 19px/1 var(--display); letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--navy); text-decoration: none;
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: var(--sky);
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease-out;
}
.nav a:hover::after, .nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav a[aria-current="page"] { color: var(--navy); }
.site-head .btn { margin-left: auto; min-height: 44px; padding: 8px 20px; font-size: 18px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 0; font: 800 18px/1 var(--display); color: var(--navy); text-transform: uppercase; letter-spacing: .06em; padding: 12px 4px; cursor: pointer; }
.is-scrolled .topbar { transform: translateY(-100%); }
.is-scrolled .site-head { transform: translateY(calc(var(--bar-h) * -1)); box-shadow: 0 4px 16px rgba(7,13,82,.12); }
.is-scrolled .badge img { transform: scale(.44); }

/* Ripple edge: the water's surface, used between three bands */
.ripple { display: block; width: 100%; height: 32px; }
.ripple path { fill: currentColor; }

/* Hero: a slow pan across Loyalhanna Creek, a restrained imprint, one fact, one action */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(700px, calc(100svh - 112px));
  display: flex; align-items: flex-end;
  color: var(--white);
  background: var(--navy-deep);
}
.hero-photo { position: absolute; inset: 0; z-index: -2; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(90deg, rgba(7,13,82,.84) 0%, rgba(7,13,82,.62) 38%, rgba(7,13,82,.12) 72%, rgba(7,13,82,.06) 100%),
    linear-gradient(0deg, rgba(7,13,82,.55) 0%, rgba(7,13,82,0.08) 40%);
}
.hero .wrap { width: 100%; padding-top: 112px; padding-bottom: 124px; }
.hero-imprint { max-width: 1040px; }
.hero h1 { color: var(--white); font-size: clamp(52px, 6.6vw, 100px); line-height: .92; }
.hero h1 span { display: block; color: var(--sky-soft); }
.serves {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 24px;
  font: 700 16px/1 var(--label); letter-spacing: .2em; text-transform: uppercase; color: var(--sky-soft);
}
.serves svg { width: 20px; height: 26px; }
.hero .fact { margin: 24px 0 32px; max-width: 560px; font-size: 21px; line-height: 1.5; color: var(--white); }
.hero .fact strong { color: var(--white); }
.hero .actions { display: flex; flex-wrap: wrap; gap: 16px; }

/* The task plate: four things people come for, overlapping into the next band */
.tasks { position: relative; z-index: 3; margin-top: -84px; }
.tasks ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--silver-soft); border-radius: var(--r);
  box-shadow: inset 0 0 0 2px var(--navy), 0 16px 32px rgba(7,13,82,.18);
}
.tasks li + li { border-left: 1px solid rgba(10,18,128,.22); }
.tasks a {
  display: grid; grid-template-columns: 48px 1fr; gap: 4px 16px; align-items: center;
  padding: 24px; min-height: 120px; text-decoration: none; color: var(--navy);
  transition: background-color .25s ease-out;
}
.tasks a:hover { background: var(--white); color: var(--navy); }
.tasks .ico {
  grid-row: span 2; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; background: var(--navy); color: var(--white); font-size: 20px;
}
.tasks strong { font: 800 24px/1 var(--display); text-transform: uppercase; letter-spacing: .02em; }
.tasks span { font-size: 15px; line-height: 1.35; color: var(--muted); }

/* Numbered chapters */
.chapter { position: relative; padding: 96px 0; }
.chap-no {
  display: flex; align-items: baseline; gap: 16px; margin-bottom: 16px;
  font: 800 20px/1 var(--display); color: var(--sky); letter-spacing: .1em;
}
.chap-no b { font-size: 56px; line-height: .8; color: transparent; -webkit-text-stroke: 1.5px var(--sky); letter-spacing: 0; }
.chapter .intro { max-width: 680px; font-size: 20px; color: var(--muted); margin-top: 20px; }

/* 01: a number beside the thing it counts */
.counts { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 24px; margin-top: 56px; align-items: start; }
.count { position: relative; }
.count:nth-child(2) { margin-top: 64px; }
.count:nth-child(3) { margin-top: 128px; }
.count figure { margin: 0; border-radius: var(--r); overflow: hidden; background: var(--silver-soft); }
.count figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.count .num {
  position: relative; z-index: 1;
  margin: -40px 16px 0; padding: 16px 20px 20px;
  background: var(--white); border-radius: var(--r);
  box-shadow: inset 0 0 0 1px rgba(10,18,128,.14), 0 8px 20px rgba(7,13,82,.08);
}
.count .big {
  display: block; font: 800 clamp(48px, 5vw, 72px)/0.95 var(--display); color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.count .unit { font: 700 18px/1.2 var(--label); text-transform: uppercase; letter-spacing: .1em; color: var(--sky); }
.count p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; color: var(--ink); }
.gauge { margin-top: 16px; height: 8px; border-radius: 4px; background: var(--silver-soft); overflow: hidden; }
.gauge i { display: block; height: 100%; width: var(--fill, 100%); background: linear-gradient(90deg, var(--sky), var(--navy)); border-radius: 4px; transform-origin: left; }
.gauge-scale { display: flex; justify-content: space-between; margin-top: 8px; font: 600 13px/1 var(--label); color: var(--muted); letter-spacing: .04em; }

/* 02: service area */
.area { background: var(--paper-2); color: var(--ink); overflow: hidden; }
.area-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.area-side p { font-size: 18px; }
.area-side .note {
  margin-top: 24px; padding: 20px 24px; border-radius: var(--r);
  background: rgba(252,252,250,.86); box-shadow: inset 4px 0 0 var(--sky);
  font-size: 16px; line-height: 1.5;
}
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.filters button {
  min-height: 44px; padding: 8px 20px; border-radius: 22px; cursor: pointer;
  border: 0; background: var(--white); color: var(--navy);
  box-shadow: inset 0 0 0 1.5px var(--navy);
  font: 700 17px/1 var(--display); letter-spacing: .05em; text-transform: uppercase;
  transition: background-color .25s ease-out, color .25s ease-out;
}
.filters button:hover { background: var(--sky-soft); }
.filters button[aria-pressed="true"] { background: var(--navy); color: var(--white); }
.filters b { font-variant-numeric: tabular-nums; opacity: .7; margin-left: 4px; }
.places { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.place {
  padding: 16px 20px; border-radius: var(--r); background: rgba(252,252,250,.94);
  box-shadow: inset 0 0 0 1px rgba(10,18,128,.14);
  transition: opacity .3s ease-out, transform .3s ease-out;
}
.place h3 { font-size: 24px; margin-bottom: 12px; }
.svc { display: flex; gap: 8px; flex-wrap: wrap; }
.svc span {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 4px;
  font: 700 14px/1.2 var(--label); letter-spacing: .04em;
}
.svc .y { background: var(--navy); color: var(--white); }
.svc .n { background: transparent; color: var(--muted); box-shadow: inset 0 0 0 1px var(--silver); }
.place.is-hidden { display: none; }

/* 03: questions, set like a glossary, with the "something wrong" panel */
.qa-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: 64px; align-items: start; margin-top: 48px; }
.qa-group + .qa-group { margin-top: 56px; }
.qa-group > h3 { font-size: 28px; color: var(--sky); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 12px; border-bottom: 2px solid var(--navy); }
.qa-group dl { margin: 0; }
.qa-group dt { margin-top: 28px; font: 800 26px/1.15 var(--display); color: var(--navy); text-wrap: balance; }
.qa-group dd { margin: 8px 0 0; max-width: 680px; }
.qa-group dd p:last-child { margin-bottom: 0; }
.wrong {
  position: sticky; top: 104px;
  padding: 32px; border-radius: var(--r);
  background: var(--navy); color: var(--silver-soft);
}
.wrong h3 { color: var(--white); font-size: 36px; margin-bottom: 16px; }
.wrong ul { margin: 0 0 24px; padding: 0; list-style: none; }
.wrong li { display: grid; grid-template-columns: 32px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid rgba(201,204,214,.22); font-size: 16px; line-height: 1.45; }
.wrong li i { color: var(--sky); font-size: 18px; margin-top: 3px; }
.wrong strong { color: var(--white); }
.wrong .phone { display: block; font: 800 40px/1 var(--display); color: var(--white); text-decoration: none; margin: 8px 0 4px; font-variant-numeric: tabular-nums; }
.wrong .phone:hover { color: var(--sky-soft); }
.wrong small { display: block; font-size: 14px; color: var(--silver); line-height: 1.45; }
.wrong .nine { margin-top: 20px; padding-top: 16px; border-top: 1px solid rgba(201,204,214,.22); font-size: 15px; }

/* 04: meetings and board */
.meet-band { background: var(--white); }
.meet-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: stretch; border-radius: var(--r); overflow: hidden; box-shadow: inset 0 0 0 1px rgba(10,18,128,.12); }
.meet-photo { position: relative; min-height: 420px; }
.meet-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.meet-copy { padding: 48px; background: var(--white); }
.dates { list-style: none; margin: 24px 0; padding: 0; }
.dates li { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: center; padding: 16px 0; border-top: 1px solid var(--silver); }
.dates li:last-child { border-bottom: 1px solid var(--silver); }
.cal { text-align: center; border-radius: var(--r-sm); overflow: hidden; box-shadow: inset 0 0 0 2px var(--navy); }
.cal b { display: block; background: var(--navy); color: var(--white); font: 800 15px/1 var(--display); letter-spacing: .12em; padding: 6px 0; text-transform: uppercase; }
.cal span { display: block; font: 800 36px/1.2 var(--display); color: var(--navy); padding: 4px 0; font-variant-numeric: tabular-nums; }
.dates strong { display: block; font: 800 22px/1.1 var(--display); color: var(--navy); }
.dates em { font-style: normal; color: var(--muted); font-size: 16px; }
.board { columns: 2; column-gap: 32px; margin: 0; padding: 0; list-style: none; font-size: 16px; }
.board li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--silver-soft); }
.board b { display: block; color: var(--navy); }

/* Signature band: the DEP emergency call notice */
.sig {
  position: relative; background: var(--sky); color: var(--navy-deep);
  padding: 72px 0 80px;
}
.sig .wrap { display: grid; grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; }
.sig .ring { width: 132px; height: 132px; }
.sig h2 { color: var(--navy-deep); font-size: clamp(32px, 3.6vw, 48px); }
.sig p { margin: 12px 0 0; font-size: 19px; max-width: 640px; }
.sig .btn-navy { white-space: nowrap; }

/* Footer: the horizon. Their reservoir across the top, the creek line running through. */
.foot { position: relative; background: var(--navy-deep); color: var(--silver-soft); overflow: hidden; }
.foot-horizon { position: relative; height: 260px; }
.foot-horizon img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.foot-horizon::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,13,82,.06) 0%, rgba(7,13,82,.35) 55%, var(--navy-deep) 100%); }
.creek-line { position: absolute; left: 0; right: 0; top: 168px; width: 100%; height: 72px; z-index: 1; }
.creek-line path { fill: none; stroke: var(--sky); stroke-width: 2; stroke-dasharray: 2400; stroke-dashoffset: 0; }
.foot-numbers { position: relative; z-index: 2; display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 24px; margin-top: -56px; padding-bottom: 48px; border-bottom: 1px solid rgba(201,204,214,.2); }
.foot-numbers div { text-align: left; }
.foot-numbers b { display: block; white-space: nowrap; font: 800 clamp(36px, 4vw, 60px)/1 var(--display); color: var(--white); font-variant-numeric: tabular-nums; }
.foot-numbers a { color: var(--white); text-decoration: none; }
.foot-numbers a:hover { color: var(--sky-soft); }
.foot-numbers span { font: 700 14px/1.3 var(--label); letter-spacing: .14em; text-transform: uppercase; color: var(--sky); }
.foot-cols { display: grid; grid-template-columns: 1.2fr 1fr 1fr 1.4fr; gap: 40px; padding: 48px 0; }
.foot-cols h4 { color: var(--white); font-size: 22px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.foot-cols ul { list-style: none; margin: 0; padding: 0; }
.foot-cols li { padding: 4px 0; font-size: 16px; }
.foot-cols a { color: var(--silver-soft); text-decoration: none; }
.foot-cols a:hover { color: var(--white); text-decoration: underline; }
.foot-logo { width: 148px; margin-bottom: 20px; filter: drop-shadow(0 4px 12px rgba(0,0,0,.3)); }
.foot-cols address { font-style: normal; font-size: 16px; line-height: 1.6; }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.hours td { padding: 6px 0; border-bottom: 1px solid rgba(201,204,214,.14); }
.hours td + td { text-align: right; }
.hours tr.today td { color: var(--white); font-weight: 700; }
.map { margin-top: 16px; border-radius: var(--r); overflow: hidden; aspect-ratio: 16 / 9; background: rgba(201,204,214,.1); }
.map iframe { width: 100%; height: 100%; border: 0; filter: saturate(.6); }
.credits { padding: 20px 0 28px; border-top: 1px solid rgba(201,204,214,.2); font-size: 13px; line-height: 1.6; color: var(--silver); }
.credits a { color: var(--silver-soft); }
.credits .row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }

/* Interior page head */
.page-head { position: relative; isolation: isolate; color: var(--white); background: var(--navy-deep); overflow: hidden; }
.page-head img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(7,13,82,.86) 0%, rgba(7,13,82,.55) 55%, rgba(7,13,82,.2) 100%); }
.page-head .wrap { padding-top: 112px; padding-bottom: 88px; }
.page-head h1 { color: var(--white); font-size: clamp(48px, 6.4vw, 88px); max-width: 900px; }
.page-head p { max-width: 640px; margin-top: 20px; font-size: 20px; color: var(--silver-soft); }
.crumbs { font: 700 15px/1 var(--label); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 20px; }
.crumbs a { color: var(--sky-soft); text-decoration: none; }

/* Shared interior blocks */
.band { padding: 88px 0; }
.band.white { background: var(--white); }
.band.tint { background: var(--paper-2); }
.band.navy { background: var(--navy); color: var(--silver-soft); }
.band.navy h2, .band.navy h3 { color: var(--white); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.lede { font-size: 21px; color: var(--muted); max-width: 720px; margin-top: 20px; }

.ways { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 16px; margin-top: 48px; }
.way { padding: 28px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px rgba(10,18,128,.14); }
.way.lead { background: var(--navy); color: var(--silver-soft); box-shadow: none; }
.way.lead h3 { color: var(--white); }
.way .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-soft); color: var(--navy); font-size: 22px; margin-bottom: 20px; }
.way.lead .ico { background: var(--sky); color: var(--white); }
.way h3 { margin-bottom: 12px; }
.way p { font-size: 16px; line-height: 1.5; }
.way ol { margin: 0 0 20px; padding-left: 20px; font-size: 16px; line-height: 1.5; }
.way ol li { padding: 4px 0; }

.rate-tables { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.rate { border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px rgba(10,18,128,.14); }
.rate header { padding: 20px 24px; background: var(--silver-soft); border-bottom: 2px solid var(--navy); }
.rate header h3 { font-size: 28px; }
.rate header small { font: 600 14px/1.3 var(--label); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.rate table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.rate td { padding: 14px 24px; border-bottom: 1px solid var(--silver-soft); font-size: 16px; vertical-align: top; }
.rate td:last-child { text-align: right; font: 800 22px/1.2 var(--display); color: var(--navy); white-space: nowrap; }
.rate tr:last-child td { border-bottom: 0; }
.rate .foot-note { padding: 12px 24px 20px; font-size: 14px; color: var(--muted); }

.fees { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 32px; border-top: 2px solid var(--navy); }
.fee { padding: 20px 24px 20px 0; border-bottom: 1px solid var(--silver); }
.fee b { display: block; font: 800 36px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.fee strong { display: block; margin: 8px 0 4px; font-size: 17px; }
.fee span { font-size: 15px; color: var(--muted); line-height: 1.45; display: block; }

.sources { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 48px; }
.source { border-radius: var(--r); overflow: hidden; background: var(--white); box-shadow: inset 0 0 0 1px rgba(10,18,128,.14); }
.source img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.source .ph { aspect-ratio: 3 / 2; display: grid; place-items: center; background: repeating-linear-gradient(135deg, var(--silver-soft) 0 12px, var(--paper) 12px 24px); color: var(--muted); font: 700 15px/1.3 var(--label); letter-spacing: .06em; text-align: center; padding: 24px; text-transform: uppercase; }
.source div { padding: 24px; }
.source h3 { margin-bottom: 8px; }
.source p { font-size: 16px; line-height: 1.5; margin: 0; }

.results { width: 100%; border-collapse: collapse; margin-top: 32px; font-variant-numeric: tabular-nums; font-size: 16px; }
.results th { text-align: left; font: 700 14px/1.2 var(--label); letter-spacing: .1em; text-transform: uppercase; color: var(--sky-soft); padding: 12px 16px; border-bottom: 2px solid var(--sky); }
.results td { padding: 14px 16px; border-bottom: 1px solid rgba(201,204,214,.18); vertical-align: top; }
.results td:first-child { font-weight: 700; color: var(--white); }
.results .pass { display: inline-flex; align-items: center; gap: 6px; color: #8fe0b2; font-weight: 700; }
.results-wrap { overflow-x: auto; }

.reports { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 40px; }
.reports h3 { padding-bottom: 12px; border-bottom: 2px solid var(--navy); margin-bottom: 8px; }
.reports h3 small { display: block; font: 600 14px/1.4 var(--label); letter-spacing: .06em; color: var(--muted); text-transform: uppercase; margin-top: 6px; }
.yr { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 8px; list-style: none; margin: 16px 0 0; padding: 0; }
.yr a {
  display: grid; place-items: center; min-height: 52px; border-radius: var(--r-sm);
  background: var(--white); box-shadow: inset 0 0 0 1px rgba(10,18,128,.22);
  font: 800 22px/1 var(--display); color: var(--navy); text-decoration: none; font-variant-numeric: tabular-nums;
  transition: background-color .25s ease-out, color .25s ease-out;
}
.yr a:hover { background: var(--navy); color: var(--white); }
.yr li:first-child a { background: var(--navy); color: var(--white); }

.steps { counter-reset: s; list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.steps li { counter-increment: s; padding: 24px; border-radius: var(--r); background: rgba(252,252,250,.08); box-shadow: inset 0 0 0 1px rgba(201,204,214,.24); font-size: 16px; line-height: 1.5; }
.steps li::before { content: counter(s, decimal-leading-zero); display: block; font: 800 40px/1 var(--display); color: var(--sky); margin-bottom: 12px; }
.steps strong { display: block; color: var(--white); font: 800 22px/1.15 var(--display); margin-bottom: 8px; }

.timeline { position: relative; margin-top: 48px; list-style: none; padding: 0; }
.timeline::before { content: ""; position: absolute; left: 112px; top: 8px; bottom: 8px; width: 2px; background: var(--sky); }
.timeline li { position: relative; display: grid; grid-template-columns: 112px 1fr; gap: 40px; padding: 16px 0; }
.timeline li::after { content: ""; position: absolute; left: 106px; top: 28px; width: 14px; height: 14px; border-radius: 50%; background: var(--white); box-shadow: inset 0 0 0 3px var(--navy); }
.timeline b { font: 800 40px/1 var(--display); color: var(--navy); font-variant-numeric: tabular-nums; }
.timeline p { margin: 4px 0 0; max-width: 620px; }
.side-photo { margin: 0; border-radius: var(--r); overflow: hidden; box-shadow: 0 16px 32px rgba(7,13,82,.16); position: sticky; top: 104px; }
.side-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.people { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 40px; }
.people ul { list-style: none; margin: 0; padding: 0; }
.people li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--silver); font-size: 17px; }
.people li span { color: var(--muted); text-align: right; font-size: 15px; }
.people h3 { padding-bottom: 12px; border-bottom: 2px solid var(--navy); }

.form-card { padding: 40px; border-radius: var(--r); background: var(--white); box-shadow: inset 0 0 0 1px rgba(10,18,128,.14); }
.form-card .stub { display: flex; gap: 12px; padding: 12px 16px; margin-bottom: 24px; border-radius: var(--r-sm); background: var(--sky-soft); font-size: 15px; line-height: 1.45; }
.field { display: grid; gap: 8px; margin-bottom: 20px; }
.field label { font: 700 15px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; color: var(--navy); }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: var(--r-sm); border: 1.5px solid var(--silver); background: var(--paper); font: inherit; font-size: 17px; color: var(--ink); }
.field input:focus, .field textarea:focus { border-color: var(--navy); outline: 3px solid var(--sky-soft); }
.form-card .btn { border: 0; cursor: pointer; }
.form-done { display: none; padding: 16px; border-radius: var(--r-sm); background: var(--paper-2); margin-top: 16px; }

/* Phone app bar */
.appbar { display: none; }

/* Motion (calm): reveal only when script is on, never hiding content without it */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform .6s ease-out; transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .hero-photo img { animation: pan 40s ease-in-out infinite alternate; }
@keyframes pan { from { transform: scale(1.08) translateX(-1.5%); } to { transform: scale(1.08) translateX(1.5%); } }
.js .hero .stagger > * { opacity: 0; transform: translateY(24px); animation: rise .6s ease-out forwards; }
.js .hero .stagger > *:nth-child(1) { animation-delay: .1s; }
.js .hero .stagger > *:nth-child(2) { animation-delay: .25s; }
.js .hero .stagger > *:nth-child(3) { animation-delay: .4s; }
.js .hero .stagger > *:nth-child(4) { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }
.js .gauge i { transform: scaleX(0); transition: transform 1.6s ease-out .3s; }
.js .is-in .gauge i { transform: scaleX(1); }
.js .creek-line path { stroke-dashoffset: 2400; transition: stroke-dashoffset 3s ease-out; }
.js .foot.is-in .creek-line path { stroke-dashoffset: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .hero .stagger > * { opacity: 1; transform: none; }
  .js .gauge i { transform: none; }
  .js .creek-line path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}

/* Tablet */
@media (max-width: 1100px) {
  .nav { gap: 20px; }
  .nav a { font-size: 17px; }
  .site-head .btn { display: none; }
  .topbar .meet { display: none; }
  .tasks ul { grid-template-columns: 1fr 1fr; }
  .tasks li:nth-child(3) { border-left: 0; }
  .tasks li:nth-child(n+3) { border-top: 1px solid rgba(10,18,128,.22); }
  .counts { grid-template-columns: 1fr 1fr; }
  .count:nth-child(3) { margin-top: 0; grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; }
  .count:nth-child(3) .num { margin: 0; }
  .area-grid, .qa-grid, .two { grid-template-columns: 1fr; gap: 40px; }
  .wrong { position: static; }
  .places { grid-template-columns: repeat(2, 1fr); }
  .meet-grid { grid-template-columns: 1fr; }
  .meet-photo { min-height: 320px; }
  .sig .wrap { grid-template-columns: auto 1fr; }
  .sig .btn-navy { grid-column: 2; justify-self: start; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .ways { grid-template-columns: 1fr 1fr; }
  .rate-tables { grid-template-columns: 1fr; max-width: 640px; }
  .sources { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .side-photo { position: static; }
  .side-photo img { aspect-ratio: 3 / 2; }
  .fees { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 760px) {
  :root { --bar-h: 36px; --head-h: 64px; }
  body { font-size: 17px; padding-bottom: 72px; }
  .topbar { font-size: 14px; }
  .topbar .push { display: none; }
  .topbar .wrap { gap: 16px; justify-content: space-between; }
  .topbar a, .topbar .open { white-space: nowrap; }
  .nav { display: none; }
  .menu-btn { display: block; }
  .nav.is-open {
    display: grid; position: fixed; left: 0; right: 0; top: calc(var(--bar-h) + var(--head-h));
    grid-template-columns: 1fr 1fr; gap: 0; margin: 0; padding: 8px var(--gutter) 16px;
    background: var(--white); box-shadow: 0 12px 24px rgba(7,13,82,.16);
  }
  .is-scrolled .nav.is-open { top: var(--head-h); }
  .nav.is-open a { padding: 16px 0; border-bottom: 1px solid var(--silver-soft); }
  .badge, .badge img { width: 96px; }
  .is-scrolled .badge img { transform: scale(.6); }
  .hero { min-height: 640px; }
  .hero .wrap { padding-top: 96px; padding-bottom: 112px; }
  .hero::before { background: linear-gradient(0deg, rgba(7,13,82,.9) 0%, rgba(7,13,82,.62) 55%, rgba(7,13,82,.3) 100%); }
  .hero .fact { font-size: 19px; }
  .tasks { margin-top: -64px; }
  .tasks a { padding: 16px; min-height: 96px; grid-template-columns: 40px 1fr; gap: 4px 12px; }
  .tasks .ico { width: 40px; height: 40px; font-size: 16px; }
  .tasks strong { font-size: 20px; }
  .tasks span { display: none; }
  .chapter, .band { padding: 72px 0; }
  .counts { grid-template-columns: 1fr; }
  .count:nth-child(2), .count:nth-child(3) { margin-top: 0; }
  .count:nth-child(3) { grid-column: auto; display: block; }
  .count:nth-child(3) .num { margin: -40px 16px 0; }
  .places { grid-template-columns: 1fr; }
  .meet-copy { padding: 32px 24px; }
  .board { columns: 1; }
  .sig .wrap { grid-template-columns: 1fr; }
  .sig .ring { width: 96px; height: 96px; }
  .sig .btn-navy { grid-column: auto; white-space: normal; }
  .foot-horizon { height: 180px; }
  .creek-line { top: 156px; }
  .foot-numbers { grid-template-columns: 1fr; margin-top: -40px; gap: 20px; }
  .foot-cols { grid-template-columns: 1fr; gap: 32px; }
  .ways, .sources, .steps, .reports, .people, .fees { grid-template-columns: 1fr; }
  .timeline::before { left: 76px; }
  .timeline li { grid-template-columns: 76px 1fr; gap: 28px; }
  .timeline li::after { left: 70px; }
  .timeline b { font-size: 30px; }
  .form-card { padding: 24px; }
  .appbar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    background: var(--navy-deep); box-shadow: 0 -4px 16px rgba(7,13,82,.24);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .appbar a { display: grid; justify-items: center; gap: 4px; padding: 12px 0; color: var(--white); text-decoration: none; font: 700 14px/1 var(--label); letter-spacing: .08em; text-transform: uppercase; }
  .appbar a i { font-size: 20px; color: var(--sky); }
  .appbar a + a { border-left: 1px solid rgba(201,204,214,.2); }
}
