/* AQCOT PW & WFI Systems — one-page site */
:root {
  --steel: #E6EBEE;
  --paper: #F6F8F9;
  --white: #FFFFFF;
  --ink: #14233A;
  --graphite: #56636F;
  --rule: #C6CFD5;
  --loop: #1A6DA3;
  --loop-deep: #0F4E7A;
  --marker: #F2C230;

  --font: "IBM Plex Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --wrap: 1180px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(72px, 10vw, 124px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 17px; line-height: 1.65; color: var(--ink); background: var(--paper); }
h1, h2, h3, p, dl, dd, ol, ul, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
svg { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid var(--loop); outline-offset: 3px; border-radius: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; text-decoration: none; }
.skip:focus { top: 12px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 248, 249, 0.92);
  backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--rule);
}
.header-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; }
.brand-word { font-weight: 700; font-size: 20px; letter-spacing: 0.04em; }
.brand-sub { font-size: 15px; color: var(--graphite); padding-left: 12px; border-left: 1px solid var(--rule); }
.nav { display: flex; align-items: center; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-size: 15px; font-weight: 500; color: var(--graphite); }
.nav a:hover { color: var(--ink); }
.nav .nav-cta { color: var(--ink); border: 1.5px solid var(--ink); border-radius: 4px; padding: 7px 14px; }
.nav .nav-cta:hover { background: var(--ink); color: #fff; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px; font: 600 16px/1 var(--font); text-decoration: none;
  border-radius: 4px; border: 1.5px solid transparent;
  transition: background-color .15s, color .15s, border-color .15s;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--loop-deep); }
.btn-quiet { color: var(--ink); border-color: var(--ink); }
.btn-quiet:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--marker); }

/* Hero */
.hero { background: var(--steel); border-bottom: 1px solid var(--rule); padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 6vw, 72px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(34px, 4.3vw, 54px); line-height: 1.12; font-weight: 700; letter-spacing: -0.022em; max-width: 14em; }
.lede { margin-top: 24px; font-size: clamp(17px, 1.5vw, 19px); color: var(--graphite); max-width: 33em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero-diagram svg { width: 100%; height: auto; overflow: visible; }
.hero-diagram figcaption { margin-top: 10px; font-size: 14px; color: var(--graphite); }

/* Diagram */
.d-grid path { stroke: #D3DADF; stroke-width: 1; fill: none; }
.pipe, .pipe path { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; color: var(--ink); }
.pipe .plant { stroke: var(--graphite); stroke-dasharray: 7 5; color: var(--graphite); }
.pipe.steam { stroke: var(--loop); stroke-width: 3.2; }
.pipe.pw { stroke: #5B9CC8; stroke-width: 3; color: #5B9CC8; }
.pipe-plain { fill: none; stroke: var(--ink); stroke-width: 2.4; }
.equip-thin { fill: none; stroke: var(--ink); stroke-width: 1.4; }
.fill-ink { fill: var(--ink); }
.fill-loop { fill: var(--loop); }
.pou path { stroke: var(--loop); stroke-width: 2.4; fill: none; }
.i-text.small { font-size: 8.5px; }
.flow { fill: none; stroke: #fff; stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 3 15; opacity: .85; }
.equip, .equip rect, .equip circle { fill: var(--paper); stroke: var(--ink); stroke-width: 2.4; }
.equip .thin { stroke-width: 1.6; }
.lance { stroke: var(--loop); stroke-width: 2; stroke-linecap: round; fill: none; }
.inst path, .inst circle { fill: var(--paper); stroke: var(--ink); stroke-width: 1.6; }
.t-label { font: 600 13px var(--font); fill: var(--ink); letter-spacing: 0.06em; }
.t-sub { font: 500 12px var(--font); fill: var(--graphite); }
.i-text { font: 600 11px var(--font); fill: var(--ink); }
.tag rect { fill: var(--marker); }
.tag text { font: 700 12.5px var(--font); fill: var(--ink); }

/* One orchestrated moment: lines draw in, then steam starts moving */
@media (prefers-reduced-motion: no-preference) {
  .js .pipe path:not(.plant), .js .pipe.steam, .js .pipe.pw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.3s cubic-bezier(.6,.1,.3,1) forwards; }
  .js .pipe .plant { opacity: 0; animation: appear .6s .2s forwards; }
  .js .pipe.pw { animation-delay: .5s; animation-duration: 1.2s; }
  .js .pipe.steam { animation-delay: 1.1s; animation-duration: 1.4s; }
  .js .pipe.drop { animation-delay: 1.3s; animation-duration: .8s; }
  .js .flow { opacity: 0; animation: appear .4s 2.2s forwards, flow 1.8s 2.2s linear infinite; }
  .js .equip, .js .inst, .js .lance, .js .equip-thin, .js .pipe-plain, .js .fill-ink, .js .fill-loop, .js .pou, .js .t-label, .js .t-sub, .js .i-text, .js .tag { opacity: 0; animation: appear .6s .2s forwards; }
}
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes appear { to { opacity: 1; } }
@keyframes flow { to { stroke-dashoffset: -36; } }

/* Sections */
.section { padding: var(--section) 0; }
.section h2 { font-size: clamp(28px, 3.2vw, 40px); line-height: 1.2; font-weight: 700; letter-spacing: -0.018em; }
.section-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(24px, 5vw, 72px); align-items: end; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head p { color: var(--graphite); max-width: 34em; }

/* Comparison */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.compare { width: 100%; border-collapse: collapse; min-width: 640px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 18px 24px 18px 0; border-bottom: 1px solid var(--rule); }
.compare thead th { font-size: 20px; font-weight: 600; padding-bottom: 14px; border-bottom: 2px solid var(--ink); }
.compare thead th.is-clean { color: var(--loop); border-bottom-color: var(--loop); }
.compare tbody th { font-size: 15px; font-weight: 500; color: var(--graphite); width: 18%; }
.compare tbody td { width: 41%; color: var(--graphite); }
.compare tbody td.is-clean { color: var(--ink); font-weight: 500; }

/* Uses */
.uses { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.uses-grid { display: grid; grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 3fr)); gap: clamp(24px, 4vw, 48px); }
.use { border-top: 2px solid var(--loop); padding-top: 18px; }
.use h3 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.use p { color: var(--graphite); font-size: 16px; }

/* Quality: the test sheet */
.sheet { background: var(--white); border: 1px solid var(--rule); border-radius: 6px; overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 14px 28px; background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; }
.sheet-head span:last-child { color: var(--marker); }
.tests { width: 100%; border-collapse: collapse; }
.tests th, .tests td { text-align: left; vertical-align: top; padding: 22px 28px; border-bottom: 1px solid var(--rule); }
.tests thead th { font-size: 14px; font-weight: 500; color: var(--graphite); padding-top: 16px; padding-bottom: 12px; }
.tests tbody th { font-size: 19px; font-weight: 600; width: 26%; }
.tests td.limit { font-size: 19px; font-weight: 600; color: var(--loop-deep); width: 32%; font-variant-numeric: tabular-nums; }
.tests td:last-child { color: var(--graphite); }
.tests th small { display: block; font-size: 13px; font-weight: 500; color: var(--graphite); margin-top: 2px; }
.tests.limits td.limit { width: 30%; color: var(--loop-deep); }
.tests td.limit.muted { color: var(--graphite); font-weight: 500; }
.m-label { display: none; }
.tests.log tbody th { width: 24%; font-size: 18px; }
.tests.log td { width: 38%; color: var(--graphite); }
.tests.log td:last-child { color: var(--ink); }
.excursions { background: var(--steel); border-top: 1px solid var(--rule); }
.sheet-foot { display: grid; grid-template-columns: minmax(0, 26%) 1fr; gap: 0; padding: 22px 28px 26px; background: var(--paper); }
.sheet-foot h3 { font-size: 19px; font-weight: 600; }
.sheet-foot p { color: var(--graphite); max-width: 44em; }

/* Services */
.services { background: var(--white); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.service-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(32px, 5vw, 72px); }
.service-list li { padding: 26px 0; border-top: 1px solid var(--rule); }
.service-list h3 { font-size: 21px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; }
.service-list p { color: var(--graphite); max-width: 32em; }

/* Process */
.process { background: var(--ink); color: #fff; }
.process .section-head p { color: #A9B6C3; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; position: relative; counter-reset: step; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 4px; background: var(--loop); border-radius: 2px; }
.steps li { position: relative; padding-top: 40px; counter-increment: step; }
.steps .node { position: absolute; top: 0; left: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); border: 4px solid var(--loop); }
.steps.five { grid-template-columns: repeat(5, 1fr); }
.steps li:nth-child(5) .node { background: var(--marker); border-color: var(--marker); }
.steps h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.steps h3::before { content: counter(step) ". "; color: #7F93A8; font-weight: 500; }
.steps p { font-size: 15.5px; color: #A9B6C3; max-width: 22em; }

/* Contact */
.contact { background: var(--loop-deep); color: #fff; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.contact-lede { margin: 16px 0 32px; color: #CFE0EE; font-size: 18px; max-width: 30em; }
.contact-info div { display: grid; grid-template-columns: 88px 1fr; gap: 16px; padding: 16px 0; border-bottom: 1px solid rgba(255,255,255,.22); }
.contact-info div:first-child { border-top: 1px solid rgba(255,255,255,.22); }
.contact-info dt { color: #9FC0DB; font-size: 15px; }
.contact-info dd { font-size: 18px; font-weight: 500; }
.contact-info a { text-decoration: none; }
.contact-info a:hover { text-decoration: underline; text-underline-offset: 4px; }
.contact :focus-visible { outline-color: var(--marker); }

/* Footer */
.site-footer { background: var(--ink); color: #A9B6C3; font-size: 14px; padding: 36px 0 44px; }
.footer-inner { display: grid; gap: 6px; }
.footer-inner strong { color: #fff; margin-right: 8px; }
.footer-inner .tm { color: #7F93A8; }

/* Responsive */
@media (max-width: 1000px) {
  .uses-grid { grid-template-columns: 1fr 1fr 1fr; }
  .uses-grid h2 { grid-column: 1 / -1; }
  .steps, .steps.five { grid-template-columns: 1fr 1fr 1fr; row-gap: 40px; }
  .steps::before { display: none; }
  .steps li { border-top: 4px solid var(--loop); padding-top: 28px; }
  .steps .node { top: -13px; }
}
@media (max-width: 860px) {
  .nav a:not(.nav-cta) { display: none; }
  .hero-grid, .section-head, .contact-grid { grid-template-columns: 1fr; }
  .section-head { align-items: start; gap: 12px; }
  .hero-diagram { max-width: 580px; }
  .service-list, .uses-grid { grid-template-columns: 1fr; }
  .tests thead { display: none; }
  .tests, .tests tbody, .tests tr, .tests th, .tests td { display: block; width: auto !important; }
  .tests tr { padding: 20px 22px; border-bottom: 1px solid var(--rule); }
  .tests th, .tests td { padding: 0; border: 0; }
  .tests td.limit { margin: 6px 0 4px; font-size: 17px; }
  .tests.limits td.limit { display: flex; gap: 12px; margin: 4px 0 0; }
  .m-label { display: inline-block; min-width: 40px; font-size: 13px; font-weight: 600; color: var(--graphite); padding-top: 3px; }
  .tests.log td { margin-top: 8px; }
  .tests.log td::before { display: block; font-size: 13px; font-weight: 600; color: var(--graphite); }
  .tests.log td:nth-of-type(1)::before { content: "Usual causes"; }
  .tests.log td:nth-of-type(2)::before { content: "What we do"; color: var(--loop); }
  .sheet-head { padding: 14px 22px; }
  .sheet-foot { grid-template-columns: 1fr; gap: 6px; padding: 20px 22px 24px; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .brand-sub { display: none; }
  .hero-actions .btn { flex: 1 1 100%; }
  .compare { min-width: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; width: auto !important; }
  .compare tr { padding: 16px 0; border-bottom: 1px solid var(--rule); }
  .compare tbody tr:first-child { border-top: 2px solid var(--ink); }
  .compare th, .compare td { border: 0; padding: 0; }
  .compare tbody th { margin-bottom: 6px; }
  .compare td::before { display: block; font-size: 13px; font-weight: 600; color: var(--graphite); }
  .compare td:nth-of-type(1)::before { content: "PW"; }
  .compare td:nth-of-type(2)::before { content: "WFI"; color: var(--loop); }
  .compare td + td { margin-top: 8px; }
  .steps, .steps.five { grid-template-columns: 1fr; row-gap: 0; }
  .steps li { border-top: 0; border-left: 4px solid var(--loop); padding: 0 0 28px 28px; }
  .steps li:last-child { padding-bottom: 0; }
  .steps .node { top: 2px; left: -13px; }
}
