/* Brightrun Drainage — concept site. Palette and type per brief 09C. */
:root {
  --abyss: #070D14;
  --deep: #0E1A26;
  --culvert: #1B2B3A;
  --foam: #E6F1F5;
  --silt: #9DB3BF;
  --flow: #5FD3E6;
  --amber: #F2B544;
  --pixel: "Pixelify Sans", ui-monospace, monospace;
  --body: "Lexend", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1240px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--abyss); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--abyss); color: var(--foam);
  font: 400 17px/1.65 var(--body);
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--flow); text-underline-offset: 3px; }
a:hover { color: var(--foam); }
:focus-visible { outline: 2px solid var(--flow); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1em; }
.num, .price, .btn, .strip, .tag, td, a[href^="tel"] { font-variant-numeric: tabular-nums; }
.num { font-family: var(--body); font-weight: 500; letter-spacing: 0; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
.wrap { width: 100%; max-width: calc(var(--max) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--amber); color: var(--abyss); padding: 10px 14px; font-weight: 500; }
.skip:focus { top: 12px; }

/* ---------- strip + header ---------- */
.strip {
  position: relative; z-index: 20; height: 36px; display: flex; align-items: center; justify-content: center;
  background: var(--culvert); color: var(--foam); font-size: 14px; padding: 0 12px; text-align: center; line-height: 1.2;
}
.strip a { color: var(--foam); font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--flow); }
.site-head {
  position: sticky; top: 0; z-index: 20;
  background: var(--abyss); border-bottom: 1px solid var(--culvert);
}
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 72px; }
.brand {
  font: 600 28px/1 var(--pixel); color: var(--foam); text-decoration: none; letter-spacing: .01em;
  display: inline-flex; align-items: baseline; gap: 3px;
}
.brand i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--flow); box-shadow: 0 0 10px var(--flow); }
.brand:hover { color: var(--foam); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { color: var(--foam); text-decoration: none; font-size: 15px; font-weight: 400; padding: 12px 0; border-bottom: 1px solid transparent; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--flow); border-bottom-color: var(--flow); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px;
  font: 500 16px/1 var(--body); text-decoration: none; border-radius: 3px; border: 1px solid transparent; cursor: pointer;
  transition: background-color .18s ease-out, filter .18s ease-out, transform .18s ease-out;
}
.btn-amber { background: var(--amber); color: var(--abyss); }
.btn-amber:hover { color: var(--abyss); filter: brightness(.92); }
.btn-line { background: transparent; color: var(--foam); border-color: var(--flow); }
.btn-line:hover { color: var(--foam); background: rgba(95, 211, 230, .08); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn svg { width: 16px; height: 16px; flex: none; }
.textbtn {
  background: none; border: 0; color: var(--flow); font: 500 15px/1 var(--body); cursor: pointer; padding: 14px 0;
  display: inline-flex; align-items: center; gap: 10px;
}
.textbtn span { display: inline-block; width: 18px; height: 18px; border: 1px solid var(--flow); border-radius: 50%; box-shadow: inset 0 0 0 4px var(--abyss), inset 0 0 0 5px var(--flow); }
.textbtn:hover { color: var(--foam); }

/* ---------- type ---------- */
.eyebrow { font: 500 14px/1.3 var(--body); color: var(--silt); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 18px; }
.display { font: 600 88px/1 var(--pixel); letter-spacing: .01em; }
.h2 { font: 600 44px/1.05 var(--pixel); letter-spacing: .01em; margin-bottom: 18px; }
.lead { font-size: 20px; font-weight: 300; color: var(--foam); max-width: 34em; }
.muted { color: var(--silt); }
.price { font: 500 15px/1.3 var(--body); color: var(--flow); margin: 0; }
section { position: relative; }
.sec { padding: 120px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head p { color: var(--silt); margin: 0; }

/* ---------- index: flow zone (hero + how it works) ---------- */
#water { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100lvh; z-index: 0; display: block; }
#water.off { visibility: hidden; }
.hero-still {
  position: fixed; inset: 0; z-index: 0; background: var(--abyss) url("assets/s1-water-flow.jpg") center / cover no-repeat;
  display: none;
}
.no-gl .hero-still { display: block; }
.hero-still video { display: block; width: 100%; height: 100%; object-fit: cover; }
.no-gl .hero-still.off { visibility: hidden; }
.no-gl #water, .no-gl .ripple-btn { display: none; }
.flow-zone { position: relative; } /* no stacking context: steps can sit above the fixed readout */
.hero {
  min-height: calc(100vh - 108px); min-height: calc(100svh - 108px); display: flex; align-items: flex-end; padding: 120px 0 112px;
  position: relative;
}
.flow-zone::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(7, 13, 20, .8) 0%, rgba(7, 13, 20, .55) 36%, rgba(7, 13, 20, 0) 62%);
}
.hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 8.6em; margin-bottom: 24px; }
.hero h1 .char { opacity: 0; }
.js:not(.reduce) .hero h1:not(.typed) { visibility: hidden; }
.hero .lead { margin-bottom: 34px; text-shadow: 0 1px 12px rgba(7, 13, 20, .9); }
.hero .eyebrow { text-shadow: 0 0 3px var(--abyss), 0 0 10px var(--abyss), 0 0 18px var(--abyss); }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.ripple-btn { position: absolute; left: var(--gutter); bottom: 22px; z-index: 2; }
.readout {
  position: fixed; right: var(--gutter); bottom: 26px; z-index: 1; pointer-events: none;
  font: 500 14px/1.5 var(--body); font-variant-numeric: tabular-nums; color: var(--flow); text-align: right; letter-spacing: .02em;
  background: rgba(7, 13, 20, .72); padding: 8px 12px; border: 1px solid var(--culvert);
  transition: opacity .3s ease-out;
}
.readout b { font-weight: 500; display: block; color: var(--foam); }
.readout.off { opacity: 0; }

.how { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: 96px 0; }
.how .wrap { position: relative; }
.how-steps-nav { list-style: none; margin: 0 0 28px; padding: 0; display: flex; gap: 22px; font: 500 15px/1 var(--pixel); color: var(--silt); }
.how-steps-nav li { display: flex; align-items: center; gap: 8px; transition: color .3s; }
.how-steps-nav li::before { content: ""; width: 8px; height: 8px; border: 1px solid currentColor; border-radius: 50%; }
.how-steps-nav li.on { color: var(--flow); }
.how-steps-nav li.on::before { background: var(--flow); box-shadow: 0 0 8px var(--flow); }
.steps { list-style: none; margin: 0; padding: 0; position: relative; width: min(440px, 100%); min-height: 220px; }
.step {
  background: rgba(14, 26, 38, .85); border: 1px solid var(--culvert); padding: 26px 28px 24px;
  position: relative; z-index: 2;
}
.step .n { font: 500 15px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--flow); margin-bottom: 12px; display: block; }
.step h3 { font: 600 30px/1.05 var(--pixel); margin-bottom: 10px; }
.step p { margin: 0; color: var(--foam); }
/* pinned crossfade (desktop, motion on) */
.js-pin .steps .step { position: absolute; inset: 0 0 auto 0; opacity: 0; transform: translateY(14px); transition: opacity .45s var(--ease), transform .45s var(--ease); }
.js-pin .steps .step.on { opacity: 1; transform: none; }
/* stacked (mobile, reduced motion) */
.stacked .how { display: block; padding: 96px 0 40vh; }
.stacked .how-steps-nav { display: none; }
.stacked .steps .step { margin-bottom: 64vh; }
.stacked .steps .step:last-child { margin-bottom: 0; }
.reduce .stacked .steps .step, .reduce.stacked .steps .step { margin-bottom: 20px; }
.reduce .how { padding-bottom: 96px; }

/* everything after the flow zone sits on solid ground above the fixed canvas */
.ground { position: relative; z-index: 2; background: var(--abyss); }

/* ---------- cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--deep); color: var(--foam); text-decoration: none; display: flex; flex-direction: column;
  border-top: 2px solid rgba(95, 211, 230, .55); padding: 28px 26px 26px; min-height: 220px;
  transition: transform .18s ease-out, border-color .18s ease-out;
}
.card:hover { transform: translateY(-4px); border-top-color: var(--flow); color: var(--foam); }
.card h3 { font: 500 21px/1.25 var(--body); margin-bottom: 10px; }
.card p { color: var(--silt); margin-bottom: 22px; }
.card .price { margin-top: auto; color: var(--flow); }
.card .go { display: inline-block; margin-left: 6px; transition: transform .18s ease-out; }
.card:hover .go { transform: translateX(3px); }

.found { background: var(--deep); border: 1px solid var(--culvert); overflow: hidden; display: flex; flex-direction: column; transition: transform .18s ease-out; }
.found:hover { transform: translateY(-4px); }
.found figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--abyss); }
.found img { width: 100%; height: 100%; object-fit: cover; }
.found .zoom { transform: scale(1.7); transform-origin: 32% 40%; }
.cap {
  position: absolute; left: 12px; bottom: 12px; font: 500 14px/1 var(--body); font-variant-numeric: tabular-nums; color: var(--foam);
  background: rgba(7, 13, 20, .82); padding: 7px 9px; letter-spacing: .04em;
}
.tag {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  background: var(--amber); color: var(--abyss); font: 500 13px/1 var(--body); padding: 6px 9px; border-radius: 2px; margin-bottom: 12px;
}
.found .body { padding: 20px 22px 24px; }
.found h3 { font: 500 19px/1.3 var(--body); margin: 0 0 6px; }
.found p { color: var(--silt); margin: 0; font-size: 16px; }

/* grade cool on the warm stills so they sit in the night palette */
.grade { filter: saturate(.5) hue-rotate(-10deg) brightness(.94) contrast(1.05); }

.review { background: var(--deep); padding: 28px 26px; border: 1px solid var(--culvert); margin: 0; display: flex; flex-direction: column; }
.stars { display: flex; gap: 3px; margin-bottom: 16px; }
.stars svg { width: 18px; height: 18px; fill: var(--flow); }
.review blockquote { margin: 0 0 18px; font-size: 17px; }
.review figcaption { margin-top: auto; color: var(--silt); font-size: 15px; }

.faq { max-width: 860px; }
.faq details { border-top: 1px solid var(--culvert); }
.faq details:last-child { border-bottom: 1px solid var(--culvert); }
.faq summary {
  list-style: none; cursor: pointer; padding: 22px 44px 22px 0; position: relative; font: 500 19px/1.35 var(--body);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 2px solid var(--flow); border-bottom: 2px solid var(--flow); transform: rotate(45deg); transition: transform .18s ease-out;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { color: var(--silt); margin: 0 0 22px; max-width: 46em; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; background: var(--abyss); min-height: 480px; display: flex; align-items: center; }
.cta-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.cta-band::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, var(--abyss) 0%, rgba(7, 13, 20, .92) 34%, rgba(7, 13, 20, .2) 72%, rgba(7, 13, 20, 0) 100%);
}
.cta-band .wrap { position: relative; z-index: 2; padding-top: 96px; padding-bottom: 96px; }
.cta-band h2 { max-width: 9em; }
.cta-band p { color: var(--silt); max-width: 26em; }

/* ---------- footer ---------- */
.site-foot { background: var(--culvert); color: var(--foam); padding: 64px 0 36px; position: relative; z-index: 2; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 44px; }
.site-foot h2 { font: 500 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--silt); margin-bottom: 12px; }
.site-foot p { margin: 0 0 6px; }
.site-foot a { color: var(--flow); }
.site-foot .brand { color: var(--foam); }
.credit { border-top: 1px solid rgba(157, 179, 191, .25); padding-top: 22px; color: var(--silt); font-size: 14px; margin: 0; }

/* ---------- inner pages ---------- */
.page-head { padding: 80px 0 96px; }
.page-head .wrap { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.page-head .display { font-size: 72px; margin-bottom: 22px; }
.page-head figure { margin: 0; }
.page-head img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.page-head.solo .wrap { grid-template-columns: 1fr; }

.svc-list { position: relative; padding: 24px 0 120px; }
.pipe-line { position: absolute; left: calc(var(--gutter) * .45); top: 0; bottom: 120px; width: 10px; pointer-events: none; }
.pipe-line svg { width: 10px; height: 100%; display: block; overflow: visible; }
.svc {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; padding: 72px 0; border-top: 1px solid var(--culvert); align-items: start;
}
.svc:first-child { border-top: 0; }
.svc.flip .svc-side { order: -1; }
.svc h2 { font: 600 40px/1.05 var(--pixel); margin-bottom: 18px; }
.svc .svc-main p { max-width: 34em; }
.svc .price { font-size: 17px; margin-top: 8px; }
.svc-side { background: var(--deep); border: 1px solid var(--culvert); padding: 26px 28px; }
.svc-side h3 { font: 500 14px/1.3 var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--silt); margin-bottom: 12px; }
.svc-side ul { margin: 0; padding: 0; list-style: none; }
.svc-side li { padding: 9px 0 9px 22px; border-top: 1px solid var(--culvert); position: relative; }
.svc-side li:first-child { border-top: 0; }
.svc-side li::before { content: ""; position: absolute; left: 0; top: 18px; width: 8px; height: 8px; border-radius: 50%; border: 1px solid var(--flow); }
.svc-side.media { padding: 0; border: 0; background: none; margin: 0; }
.svc-side.media img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.svc-side.media figcaption { color: var(--silt); font-size: 15px; padding-top: 10px; }

.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.ba figure { margin: 0; position: relative; }
.ba img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.ba .cap { font-size: 15px; }
.ba figcaption.note { color: var(--silt); font-size: 15px; padding-top: 10px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--culvert); background: var(--deep); }
table { width: 100%; border-collapse: collapse; font-size: 16px; min-width: 620px; }
caption { text-align: left; padding: 18px 20px; font: 500 15px/1.4 var(--body); font-variant-numeric: tabular-nums; color: var(--flow); letter-spacing: .01em; border-bottom: 1px solid var(--culvert); }
th, td { text-align: left; padding: 14px 20px; border-bottom: 1px solid var(--culvert); vertical-align: middle; }
thead th { color: var(--silt); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; }
tbody tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
tbody th { font: 500 15px/1.5 var(--body); font-variant-numeric: tabular-nums; color: var(--foam); white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.dot.a { background: var(--amber); }
.dot.c { background: var(--flow); }
.key { color: var(--silt); font-size: 15px; margin-top: 14px; }

.two { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 72px; padding: 72px 0 96px; }
.big-phone { font: 500 52px/1.05 var(--body); font-variant-numeric: tabular-nums; letter-spacing: -.01em; color: var(--foam); text-decoration: none; display: inline-block; margin: 6px 0 24px; }
.big-phone:hover { color: var(--flow); }
.info dl { margin: 0; }
.info dt { color: var(--silt); font-size: 14px; text-transform: uppercase; letter-spacing: .06em; margin-top: 18px; }
.info dd { margin: 4px 0 0; }
form.callback { background: var(--deep); border: 1px solid var(--culvert); padding: 34px 32px; }
.field { margin-bottom: 18px; }
.field label, fieldset legend { display: block; font-weight: 500; margin-bottom: 6px; font-size: 16px; }
.field input, .field textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 400 16px/1.4 var(--body); color: var(--foam);
  background: var(--abyss); border: 1px solid #5A7486; border-radius: 3px;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { border-color: var(--flow); }
fieldset { border: 0; padding: 0; margin: 0 0 24px; }
.radios { display: flex; gap: 12px; }
.radios label { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 1px solid #5A7486; border-radius: 3px; cursor: pointer; }
.radios input { width: 18px; height: 18px; accent-color: var(--flow); margin: 0; }
.thanks { border: 1px solid var(--flow); padding: 22px 24px; background: var(--abyss); }
.thanks p { margin: 0; font-size: 19px; }
.thanks[hidden] { display: none; }
.wide-fig { margin: 0 0 120px; }
.wide-fig img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; }
.wide-fig figcaption { color: var(--silt); padding-top: 12px; }


/* ---------- 390 ---------- */
@media (max-width: 860px) {
  body { font-size: 16px; }
  .site-head .wrap { flex-wrap: wrap; gap: 0 16px; min-height: 0; padding-top: 8px; padding-bottom: 0; }
  .brand { font-size: 24px; }
  .head-call { margin-left: auto; }
  .nav { order: 3; width: 100%; margin: 0; gap: 22px; }
  .nav a { font-size: 15px; padding: 8px 0 10px; }
  .head-call { min-height: 40px; }
  .strip { font-size: 13px; }
  .display { font-size: 44px; }
  .h2 { font-size: 30px; }
  .lead { font-size: 18px; }
  .hero { min-height: calc(100svh - 150px); padding: 72px 0 92px; }
  .flow-zone::before { background: none; }
  .hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(0deg, rgba(7, 13, 20, 0) 0%, rgba(7, 13, 20, .72) 14%, rgba(7, 13, 20, .62) 58%, rgba(7, 13, 20, 0) 84%); }
  .cta-row .btn { flex: 1 1 100%; }
  /* soft scrim behind the hero copy so text stays AA over bright network lines */
  .hero .wrap::before {
    content: ""; position: absolute; z-index: -1; pointer-events: none; inset: -150px 0 -40px;
    background: radial-gradient(120% 62% at 45% 60%, rgba(7, 13, 20, .9) 0%, rgba(7, 13, 20, .88) 50%, rgba(7, 13, 20, .62) 66%, rgba(7, 13, 20, .3) 82%, rgba(7, 13, 20, 0) 100%);
  }
  .readout { bottom: 16px; font-size: 13px; padding: 6px 9px; }
  .ripple-btn { bottom: 10px; }
  .sec { padding: 80px 0; }
  .grid3, .ba, .two, .foot-grid, .page-head .wrap, .svc, .contact-grid { grid-template-columns: 1fr; }
  .svc { gap: 28px; padding: 56px 0 56px 18px; }
  .svc.flip .svc-side { order: 0; }
  .svc h2 { font-size: 30px; }
  .page-head { padding: 48px 0 56px; }
  .page-head .wrap { gap: 32px; }
  .page-head .display { font-size: 44px; }
  .contact-grid { gap: 48px; padding: 48px 0 72px; }
  .big-phone { font-size: 38px; }
  form.callback { padding: 26px 20px; }
  .cta-band { min-height: 560px; align-items: flex-end; }
  .cta-band > img { object-position: 62% 30%; }
  .cta-band::before { background: linear-gradient(0deg, var(--abyss) 0%, rgba(7, 13, 20, .9) 46%, rgba(7, 13, 20, .1) 85%); }
  .wide-fig img { aspect-ratio: 4 / 3; }
  .wide-fig { margin-bottom: 72px; }
  .card { min-height: 0; }
}
@media (max-width: 600px) {
  table, tbody, caption { display: block; min-width: 0; }
  .table-wrap { overflow: visible; }
  thead { display: none; } /* each cell carries its label via data-label */
  tbody tr { display: block; padding: 14px 18px; border-bottom: 1px solid var(--culvert); }
  tbody tr:last-child { border-bottom: 0; }
  tbody th, tbody td { border: 0; padding: 3px 0; }
  tbody th { display: block; color: var(--flow); padding-bottom: 6px; }
  tbody td { display: grid; grid-template-columns: 112px 1fr; }
  tbody td::before { content: attr(data-label); color: var(--silt); font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
