/* The Kempton Park Plumbers
   Concept: the airport town. Kempton Park is where O. R. Tambo sits, so the system borrows from
   airport wayfinding: tarmac black, taxiway cobalt, black-on-yellow direction signs, a split-flap
   departure board for the fault tables, square sign-plate corners. Overpass (built on the
   highway-signage letterform) for headings, Atkinson Hyperlegible for reading.
   Motion verb: flip (board rows), everything else stays still. */

:root {
  --ink: #14171b;
  --ink-2: #1e232a;
  --ink-3: #2c333c;
  --cobalt: #1d3cb4;
  --cobalt-dk: #142a85;
  --signal: #ffc61a;
  --signal-2: #ffd75e;
  --flap: #f1eee4;
  --concrete: #eef0f1;
  --concrete-2: #e2e6e9;
  --line: #d3d8dd;
  --text: #191d22;
  --muted: #4c545d;
  --white: #fff;

  --head: 'Overpass', 'Arial Narrow', Arial, sans-serif;
  --body: 'Overpass', 'Segoe UI', Arial, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, Consolas, monospace;

  --wrap: 1200px;
  --gut: clamp(16px, 4vw, 32px);
  --sec: clamp(60px, 8.5vw, 112px);
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--white); color: var(--text);
  font: 400 1.0625rem/1.62 var(--body);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
picture { display: block; }
a { color: var(--cobalt); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--signal); color: var(--ink); padding: 10px 14px; font-weight: 700; }
.skip:focus { left: 8px; }

h1, h2, h3, h4 { font-family: var(--head); color: var(--ink); margin: 0; line-height: 1.1; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.35rem, 1.4rem + 3.6vw, 4.1rem); letter-spacing: -.025em; line-height: 1.02; }
h2 { font-weight: 800; font-size: clamp(1.75rem, 1.25rem + 1.8vw, 2.6rem); text-wrap: pretty; }
h3 { font-weight: 700; font-size: 1.22rem; line-height: 1.25; letter-spacing: -.005em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.narrow { max-width: 820px; }
.sec { padding: var(--sec) 0; }
.sec--concrete { background: var(--concrete); }
.sec--ink { background: var(--ink); color: #dfe3e8; }
.sec--ink h2, .sec--ink h3 { color: var(--white); }
.sec--cobalt { background: var(--cobalt); color: #e6ebff; }
.sec--cobalt h2, .sec--cobalt h3 { color: var(--white); }
.sec--tight-top { padding-top: calc(var(--sec) * .55); }

.head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.head h2 + p { margin: 12px 0 0; font-size: 1.12rem; color: var(--muted); max-width: 64ch; }
.sec--ink .head h2 + p { color: #b9c1ca; }
.sec--cobalt .head h2 + p { color: #c9d3ff; }

/* ---------- buttons: the direction sign ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 0;
  background: var(--signal); color: var(--ink);
  font: 800 1.02rem/1 var(--head); letter-spacing: .01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--signal); text-decoration: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.sec--ink .btn, .panel .btn, .hero .btn { border-color: var(--signal); }
.sec--ink .btn:hover, .panel .btn:hover, .hero .btn:hover { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn--block { width: 100%; }

/* ---------- header ---------- */
.hdr { position: sticky; top: 0; z-index: 50; background: var(--white); transition: box-shadow .2s; }
.hdr.is-scrolled { box-shadow: 0 6px 20px rgba(20, 23, 27, .08); }
.hdr__in { display: flex; align-items: center; gap: 28px; height: 76px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); flex: none; }
.logo:hover { color: var(--ink); }
.logo__plate { width: 42px; height: 42px; flex: none; }
.logo__words { display: flex; flex-direction: column; line-height: 1; }
.logo__town { font: 800 1.28rem/1 var(--head); letter-spacing: -.02em; }
.logo__trade { font: 700 .7rem/1 var(--head); letter-spacing: .2em; text-transform: uppercase; margin-top: 5px; color: var(--muted); }

.nav { margin-left: auto; }
.nav__list { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav__item { position: relative; }
.nav__link, .nav__btn {
  display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 12px;
  background: none; border: 0; color: var(--ink); text-decoration: none; cursor: pointer;
  font: 700 .98rem/1 var(--head);
}
.nav__link:hover, .nav__btn:hover, .nav__btn[aria-expanded="true"] { color: var(--cobalt); text-decoration: none; }
.nav__btn svg { width: 12px; height: 12px; transition: transform .2s; }
.nav__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); }
.nav__panel {
  position: absolute; top: calc(100% + 10px); left: 0; min-width: 300px; padding: 10px;
  background: var(--ink); list-style: none; display: none;
  box-shadow: 0 18px 40px rgba(20, 23, 27, .22);
}
.nav__panel.is-open { display: block; }
.nav__panel a {
  display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: #e9edf1; text-decoration: none;
  font: 600 .98rem/1.2 var(--body);
}
.nav__panel a:hover, .nav__panel a[aria-current="page"] { background: var(--ink-3); color: var(--signal); }
.nav__panel .ic { width: 22px; height: 22px; background: var(--signal); }
.hdr__cta { flex: none; }
.burger { display: none; }

/* ---------- icons as masks ---------- */
.ic { display: inline-block; width: 40px; height: 40px; flex: none; background: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat; mask: var(--i) center / contain no-repeat; }

/* ---------- hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--ink); overflow: hidden; }
.hero__img, .hero__img picture, .hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__img img { object-fit: cover; animation: settle 1.4s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(20, 23, 27, .92) 0%, rgba(20, 23, 27, .82) 38%, rgba(20, 23, 27, .35) 72%, rgba(20, 23, 27, .15) 100%);
}
.hero__in { position: relative; z-index: 1; display: flex; flex-direction: column; justify-content: center;
  min-height: clamp(460px, 64vh, 640px); padding-top: 56px; padding-bottom: 120px; }
.hero--svc .hero__in { min-height: clamp(420px, 56vh, 560px); }
.hero__trust { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; font: 700 1.02rem/1.3 var(--head); color: var(--flap); }
.hero__trust::before { content: ""; flex: none; width: 30px; height: 4px; background: var(--signal); }
.hero h1 { color: var(--white); max-width: 26ch; }
.hero--svc h1 { font-size: clamp(2.2rem, 1.3rem + 3vw, 3.6rem); }
.hero h1 .l2 { display: inline-block; margin-top: .14em; padding: .1em .26em .02em; background: var(--ink); color: var(--signal); border: 3px solid var(--signal); line-height: 1; }
.hero__lede { max-width: 56ch; margin: 22px 0 0; font-size: 1.16rem; line-height: 1.6; color: #e3e7ec; }
.hero__lede a { color: var(--white); text-decoration-color: var(--signal); }
.hero__lede a:hover { color: var(--signal); }
.crumb { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 18px; list-style: none; font: 600 .9rem/1.3 var(--body); color: #b9c1ca; }
.crumb a { color: #e3e7ec; text-decoration: none; }
.crumb a:hover { color: var(--signal); }
.crumb li + li::before { content: "/"; margin-right: 6px; color: #7d8792; }
@keyframes settle { from { transform: scale(1.06); } to { transform: none; } }

/* ---------- the call-out bar (search-bar style form under the hero) ---------- */
.callbar-wrap { position: relative; z-index: 5; margin-top: -84px; }
.callbar { background: var(--white); color: var(--text); box-shadow: 0 12px 26px -14px rgba(20, 23, 27, .45); border: 2px solid var(--ink); }
.callbar__title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 24px; padding: 13px 22px; background: var(--ink); border-bottom: 4px solid var(--signal); }
.callbar__title p { margin: 0; font: 800 1.12rem/1.2 var(--head); color: var(--white); }
.callbar__title span { font-size: .95rem; color: #b9c1ca; }
.callbar__row { display: grid; grid-template-columns: 1.1fr 1fr 1fr 1.3fr auto; gap: 12px; align-items: end; padding: 18px 22px 0; }
.callbar .form-note, .callbar .form-msg { padding: 0 22px; }
.callbar .form-note { color: var(--muted); padding-bottom: 16px; }
.callbar .form-note a { color: var(--cobalt); }
.callbar .form-msg.ok { color: var(--ink); background: var(--signal); padding: 14px 22px; margin: 0; }
.callbar .form-msg.err { color: #b3261e; padding-bottom: 14px; margin: 0; }
.callbar .fld label { color: var(--ink); }
.callbar .fld input, .callbar .fld select { background-color: var(--concrete); border-color: var(--concrete); }
.callbar .fld input:focus, .callbar .fld select:focus { border-color: var(--ink); background-color: var(--white); }
.callbar .btn { border-color: var(--ink); }
.callbar .btn:hover { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.fld { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.fld label { font: 700 .82rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #c4ccd5; }
.fld input::placeholder { color: #7a838d; }
.fld input, .fld select, .fld textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 2px solid transparent; border-radius: 0;
  background: var(--white); color: var(--text); font-size: 1rem; line-height: 1.3;
}
.fld select { appearance: none; padding-right: 38px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2314171b' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 12px 8px; }
.fld textarea { min-height: 110px; resize: vertical; }
.fld input:focus, .fld select:focus, .fld textarea:focus { outline: none; border-color: var(--signal); }
.fld--hp { position: absolute !important; left: -9999px; }
.form-note { margin: 12px 0 0; font-size: .86rem; color: #9ea8b3; }
.form-note a { color: #dfe3e8; }
.form-msg { margin: 12px 0 0; font-weight: 700; display: none; }
.form-msg.is-on { display: block; }
.form-msg.ok { color: var(--signal); }
.form-msg.err { color: #ff9b8f; }
form.is-sent .callbar__row, form.is-sent .panel__fields { display: none; }

/* ---------- home: service index ---------- */
.index { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 clamp(24px, 4vw, 56px); }
.index__group h3 { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; font-size: 1.32rem; }
.index__group h3 .ic { width: 30px; height: 30px; color: var(--cobalt); }
.index__group p.g-sub { margin: -6px 0 14px; color: var(--muted); font-size: .98rem; }
.index__list { list-style: none; border-top: 2px solid var(--ink); }
.index__list a {
  display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 16px 0; text-decoration: none; color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.index__list strong { font: 700 1.1rem/1.25 var(--head); color: var(--cobalt); }
.index__list span { grid-column: 1; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.index__list a:hover strong { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }

/* ---------- service page: what gets fixed ---------- */
.handles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px clamp(24px, 4vw, 48px); list-style: none; }
.handles li { display: grid; grid-template-columns: 44px 1fr; gap: 4px 16px; align-items: start; }
.handles .ic { width: 40px; height: 40px; color: var(--cobalt); grid-row: span 2; margin-top: 2px; }
.handles h3 { font-size: 1.12rem; }
.handles p { margin: 0; color: var(--muted); font-size: .99rem; line-height: 1.55; }

/* ---------- the hook (the long local section) ---------- */
.hook { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.hook__body h2 { margin-bottom: 22px; }
.hook__body p { max-width: 68ch; }
.hook__body p:last-child { margin-bottom: 0; }
.hook__body strong { color: var(--ink); }
.takeaway { margin-top: 26px !important; padding: 18px 20px; background: var(--white); border: 2px solid var(--ink); font-size: 1.04rem; }
.sec--concrete .takeaway { background: var(--white); }
.notes { background: var(--ink); color: #dfe3e8; padding: 26px 24px; }
@media (min-height: 940px) and (min-width: 981px) { .notes { position: sticky; top: 100px; } }
.notes h3 { color: var(--signal); font: 700 .86rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 16px; }
.notes ol { list-style: none; counter-reset: n; }
.notes li { counter-increment: n; position: relative; padding: 0 0 16px 34px; font-size: .95rem; line-height: 1.5; }
.notes li:last-child { padding-bottom: 0; }
.notes li::before { content: counter(n); position: absolute; left: 0; top: 0; width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--signal); color: var(--ink); font: 700 .78rem/1 var(--mono); }
.notes a { color: #fff; text-decoration-color: rgba(255, 198, 26, .7); }
.notes a:hover { color: var(--signal); }
.notes .src { display: block; margin-top: 3px; font-size: .84rem; color: #9ea8b3; }

/* ---------- the departure board ---------- */
.board { background: var(--ink); color: var(--flap); padding: clamp(18px, 3vw, 30px); }
.board__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 20px; margin-bottom: 14px; }
.board__top p { margin: 0; font: 700 .86rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); }
.board table { width: 100%; border-collapse: separate; border-spacing: 0 6px; }
.board th { text-align: left; padding: 0 14px 6px; font: 600 .78rem/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8f99a4; }
.board td { padding: 14px; background: var(--ink-2); vertical-align: top; font-size: .98rem; line-height: 1.45; color: #e3e7ec; }
.board td:first-child { font: 600 1rem/1.35 var(--mono); color: var(--flap); width: 30%; }
.board td:nth-child(2) { width: 34%; }
.board td:last-child { color: var(--signal-2); }
.board tr.flip td { transform-origin: 50% 0; }
.js .board tr.flip td { opacity: 0; transform: rotateX(-80deg); }
.js .board.is-in tr.flip td { opacity: 1; transform: none; transition: transform .55s var(--ease), opacity .3s; transition-delay: calc(var(--r) * 90ms); }
.board__foot { margin: 12px 0 0; font-size: .9rem; color: #9ea8b3; }
.board a { color: var(--white); text-decoration-color: var(--signal); text-underline-offset: .2em; }
.board a:hover { color: var(--signal); }

/* ---------- promises (cobalt band) ---------- */
.promises { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(24px, 3vw, 40px); list-style: none; }
.promises li { padding-top: 18px; border-top: 4px solid var(--signal); }
.promises h3 { color: var(--white); font-size: 1.18rem; margin-bottom: 10px; }
.promises p { margin: 0; color: #d6ddff; font-size: .99rem; line-height: 1.55; }

/* ---------- process: gates ---------- */
.gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; list-style: none; position: relative; counter-reset: g; }
.gates::before { content: ""; position: absolute; left: 28px; right: 28px; top: 27px; height: 0; border-top: 3px dashed var(--line); }
.gates li { position: relative; padding-right: clamp(16px, 2.4vw, 32px); counter-increment: g; }
.gates li::before { content: counter(g); position: relative; display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  background: var(--signal); color: var(--ink); border: 2px solid var(--ink); font: 800 1.6rem/1 var(--head); }
.gates h3 { font-size: 1.14rem; margin-bottom: 8px; }
.gates p { margin: 0; color: var(--muted); font-size: .98rem; line-height: 1.55; }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq__head { position: sticky; top: 100px; }
.faq__head h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2.05rem); }
.faq__head p { color: var(--muted); margin-top: 12px; }
.faq__list { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 18px; padding: 20px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 1.12rem; line-height: 1.35; }
.faq summary::after { content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px;
  background: linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover h3 { color: var(--cobalt); }
.faq__a { padding: 0 0 22px; max-width: 70ch; }
.faq__a p:last-child { margin-bottom: 0; }

/* ---------- closing: form panel + coverage ---------- */
.closing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--ink); color: #dfe3e8; padding: clamp(22px, 3.4vw, 36px); border-top: 6px solid var(--signal); }
.panel h2 { color: var(--white); font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.2rem); }
.panel > p { margin: 10px 0 22px; color: #b9c1ca; }
.panel__fields { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.panel__fields .fld--full { grid-column: 1 / -1; }
.when { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.when legend { grid-column: 1 / -1; }
.when span { width: 100%; justify-content: center; }
.when legend { font: 700 .82rem/1 var(--head); letter-spacing: .06em; text-transform: uppercase; color: #c4ccd5; margin-bottom: 8px; padding: 0; }
.when label { position: relative; }
.when input { position: absolute; opacity: 0; }
.when span { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border: 2px solid var(--ink-3); color: #dfe3e8; font-weight: 700; font-size: .95rem; cursor: pointer; }
.when input:checked + span { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.when input:focus-visible + span { outline: 3px solid var(--signal); outline-offset: 2px; }
.cover h2 { margin-bottom: 12px; }
.cover > p { color: var(--muted); }
.cover__map { margin-top: 20px; aspect-ratio: 4 / 3; background: var(--concrete-2); }
.cover__map iframe { width: 100%; height: 100%; border: 0; display: block; filter: grayscale(.35) contrast(1.05); }
.suburbs { columns: 3; column-gap: 20px; margin: 18px 0 0; list-style: none; font-size: .97rem; }
.suburbs li { break-inside: avoid; padding: 3px 0; }

/* ---------- home: areas departure board ---------- */
.areas-board td:first-child { width: 34%; }

/* ---------- related services ---------- */
.related { display: flex; flex-wrap: wrap; gap: 10px 30px; list-style: none; }
.related a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; color: var(--cobalt); text-decoration: none; font: 700 1.02rem/1.2 var(--head); }
.related a:hover { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.related .ic { width: 26px; height: 26px; color: var(--cobalt); }

/* ---------- photo split ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split__img { align-self: stretch; min-height: 100%; }
.split__img picture, .split__img img { width: 100%; height: 100%; object-fit: cover; }
.split--flip .split__img { order: -1; }

/* ---------- prose pages (privacy, contact) ---------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 1.5rem; margin: 2em 0 .6em; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }

/* ---------- footer ---------- */
.ftr { background: var(--ink); color: #b9c1ca; padding: clamp(56px, 7vw, 88px) 0 0; font-size: .97rem; }
.ftr a { color: #dfe3e8; text-decoration: none; }
.ftr a:hover { color: var(--signal); }
.ftr__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 36px; }
.ftr .logo { color: var(--white); }
.ftr .logo__trade { color: #9ea8b3; }
.ftr__blurb { margin: 18px 0 0; max-width: 36ch; }
.ftr__t { font: 700 .82rem/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--signal); margin: 0 0 16px; }
.ftr ul { list-style: none; }
.ftr li { padding: 4px 0; }
.ftr__legal { margin-top: 56px; padding: 22px 0; border-top: 1px solid var(--ink-3); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .88rem; color: #8f99a4; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- mobile drawer ---------- */
.drawer { display: none; }

@media (max-width: 1100px) {
  .nav__link, .nav__btn { padding: 0 9px; font-size: .94rem; }
  .hdr__in { gap: 16px; }
}

@media (max-width: 980px) {
  .nav, .hdr__cta { display: none; }
  .burger { display: inline-grid; place-items: center; margin-left: auto; margin-right: -8px; width: 48px; height: 48px; background: none; border: 0; cursor: pointer; }
  .burger span, .burger span::before, .burger span::after { display: block; width: 26px; height: 2px; background: var(--ink); position: relative; transition: transform .2s, background .2s; }
  .burger span::before, .burger span::after { content: ""; position: absolute; left: 0; }
  .burger span::before { top: -8px; } .burger span::after { top: 8px; }
  .menu-open .burger span { background: transparent; }
  .menu-open .burger span::before { transform: translateY(8px) rotate(45deg); }
  .menu-open .burger span::after { transform: translateY(-8px) rotate(-45deg); }
  .menu-open .hdr { position: fixed; left: 0; right: 0; }
  .drawer { position: fixed; inset: 76px 0 0; z-index: 49; background: var(--white); overflow-y: auto; padding: 8px var(--gut) 32px; }
  .menu-open .drawer { display: block; }
  .menu-open { overflow: hidden; }
  .drawer__list { list-style: none; }
  .drawer__list > li { border-bottom: 1px solid var(--line); }
  .drawer__list > li > a, .drawer__list summary { display: flex; justify-content: space-between; align-items: center; min-height: 58px; color: var(--ink); text-decoration: none; font: 700 1.18rem/1 var(--head); cursor: pointer; list-style: none; }
  .drawer__list summary::-webkit-details-marker { display: none; }
  .drawer__list summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg) translateY(-3px); transition: transform .2s; }
  .drawer__list details[open] summary::after { transform: rotate(225deg); }
  .drawer__sub { list-style: none; padding: 0 0 12px 16px; }
  .drawer__sub a { display: block; padding: 10px 0; color: var(--text); text-decoration: none; font-size: 1.04rem; }
  .drawer__cta { margin-top: 24px; }

  .index { grid-template-columns: 1fr 1fr; gap: 36px 32px; }
  .index__group:last-child { grid-column: 1 / -1; }
  .handles { grid-template-columns: 1fr 1fr; }
  .hook { grid-template-columns: minmax(0, 1fr); }
  .notes { position: static; }
  .promises { grid-template-columns: 1fr 1fr; }
  .gates { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .gates::before { display: none; }
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq__head { position: static; }
  .closing { grid-template-columns: minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .split--flip .split__img { order: 0; }
  .ftr__grid { grid-template-columns: 1fr 1fr; }
  .callbar__row { grid-template-columns: 1fr 1fr; }
  .callbar__row .btn { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  body { font-size: 1.03rem; }
  .hdr__in { height: 68px; }
  .drawer { inset: 68px 0 0; }
  .logo__plate { width: 38px; height: 38px; }
  .logo__town { font-size: 1.14rem; }
  .hero__in { min-height: 0; padding-top: 40px; padding-bottom: 100px; }
  .hero::after { background: linear-gradient(180deg, rgba(20, 23, 27, .6) 0%, rgba(20, 23, 27, .84) 100%); }
  .hero h1, .hero__lede { text-shadow: 0 1px 12px rgba(0, 0, 0, .45); }
  .hero__lede { font-size: 1.06rem; }
  .callbar-wrap { margin-top: -64px; }
  .callbar__title { padding: 12px 16px; }
  .callbar__row { padding: 16px 16px 0; }
  .callbar .form-note, .callbar .form-msg { padding-left: 16px; padding-right: 16px; }
  .callbar__row { grid-template-columns: minmax(0, 1fr); }
  .index { grid-template-columns: minmax(0, 1fr); }
  .handles { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .promises { grid-template-columns: minmax(0, 1fr); }
  .gates { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .gates li { display: grid; grid-template-columns: 56px 1fr; gap: 0 16px; padding: 0 0 26px; }
  .gates li::before { grid-row: span 2; margin: 0; }
  .gates li:not(:last-child)::after { content: ""; position: absolute; left: 27px; top: 60px; bottom: 4px; border-left: 3px dashed var(--line); }
  .board { padding: 16px 12px; }
  .handles p, .promises p, .gates p, .index__list span, .board td { font-size: 1rem; }
  .ftr a, .ftr .is-here { display: block; padding: 10px 0; }
  .ftr li { padding: 0; }
  .board thead { display: none; }
  .board table, .board tbody, .board tr, .board td { display: block; width: auto !important; }
  .board tr { margin-bottom: 8px; background: var(--ink-2); }
  .board td { padding: 4px 14px; background: none; }
  .board td:first-child { padding-top: 14px; }
  .board td:last-child { padding-bottom: 14px; }
  .board td[data-h]::before { content: attr(data-h); display: block; font: 600 .72rem/1.4 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #8f99a4; }
  .board td:first-child::before { display: none; }
  .panel__fields { grid-template-columns: minmax(0, 1fr); }
  .suburbs { columns: 2; }
  .ftr__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 20px; }
  .ftr__grid > div:first-child { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal, .js .board tr.flip td { opacity: 1 !important; transform: none !important; }
}

/* current page in menus and footer: shown, not linked */
.nav__panel .is-here { display: flex; align-items: center; gap: 12px; padding: 11px 12px; color: var(--signal); font: 600 .98rem/1.2 var(--body); background: var(--ink-3); }
.nav__panel .is-here .ic { width: 22px; height: 22px; background: var(--signal); }
.nav__link[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--signal); cursor: default; }
.drawer .is-here { display: block; padding: 10px 0; color: var(--cobalt); font-weight: 700; }
.drawer__list > li > .is-here { display: flex; align-items: center; min-height: 58px; font: 700 1.18rem/1 var(--head); }
.ftr .is-here { color: var(--signal); }

/* mid-page call to action under the promises band */
.band-cta { margin-top: clamp(32px, 4vw, 48px); }
.sec--cobalt .btn { border-color: var(--ink); }
.sec--cobalt .btn:hover { background: var(--ink); color: var(--signal); border-color: var(--ink); }
.prose h1 { margin-bottom: .4em; }
