/* Aquadviser, one page. Revision 10. */
@font-face {
  font-family: "Inter";
  src: url("assets/fonts/InterVariable-subset.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ink: #1D1D1F;
  --ink-2: #6E6E73;
  --mist: #F5F5F7;
  --line: #D2D2D7;
  --blue: #0066CC;
  --blue-press: #0055AD;
  --navy: #10335A;
  --night: #000000;
  --night-2: #A1A1A6;
  --night-3: #1C1C1E;
  --ok: #30B26A;
  --uf: #64B5F6;
  --amb: #F0A020;
  --plate: #F6F3EB;
  --plate-ink: #34332E;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, "Times New Roman", serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --w: 1080px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 52px; }
html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 17px; line-height: 1.47; letter-spacing: -0.011em;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
p, li, dd, figcaption { text-wrap: pretty; hyphens: none; }
h1, h2, h3 { text-wrap: balance; hyphens: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 10px; }
main:focus, .chapter:focus { outline: none; }
.skip { position: absolute; left: 12px; top: -64px; z-index: 80; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 10px; }
.skip:focus { top: 8px; }
.wrap { width: min(100% - 44px, var(--w)); margin-inline: auto; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 253, .8); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0, 0, 0, .06); }
.nav-in { width: min(100% - 44px, var(--w)); margin-inline: auto; height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 650; letter-spacing: -0.02em; min-height: 44px; }
.brand img { width: 18px; height: 30px; object-fit: contain; }
.nav nav { display: flex; align-items: center; gap: 26px; font-size: 14px; }
.nl { color: #3A3A3C; min-height: 44px; display: inline-flex; align-items: center; transition: color .2s; }
.nl:hover { color: var(--ink); }
.nl[aria-current="true"] { color: var(--ink); font-weight: 600; }
.pill { background: var(--blue); color: #fff; font-weight: 550; padding: 7px 15px; border-radius: 980px; transition: background .2s, transform .15s var(--ease); white-space: nowrap; }
.pill:hover { background: var(--blue-press); }
.pill:active, .btn:active { transform: scale(.96); }

/* Section rhythm */
.white { background: #fff; }
.light { background: var(--mist); }
.dark { background: var(--night); color: #F5F5F7; }
section { position: relative; }
h2 { font-size: clamp(38px, 5.6vw, 76px); line-height: 1.04; font-weight: 650; letter-spacing: -0.035em; }
h2 span, h1 span { display: block; color: var(--ink-2); }
.dark h2 span { color: var(--night-2); }
.sub { font-size: clamp(19px, 1.9vw, 24px); line-height: 1.38; color: var(--ink-2); letter-spacing: -0.016em; max-width: 34em; margin-top: 22px; }
.dark .sub { color: var(--night-2); }
.case { font-size: 14px; line-height: 1.5; color: var(--ink-2); max-width: 46em; margin-top: 18px; }
.fine { font-size: 15px; color: var(--ink-2); max-width: 40em; margin-top: 22px; }

/* Hero */
.hero { text-align: center; padding: clamp(40px, 6vh, 72px) 0 clamp(64px, 9vh, 104px); }
.kicker { font-size: clamp(19px, 1.8vw, 24px); font-weight: 600; color: var(--navy); letter-spacing: -0.016em; }
h1 { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.06; font-weight: 700; letter-spacing: -0.038em; margin: 12px auto 0; max-width: 20.5em; padding: 0 22px; }
.choices { width: min(100% - 44px, var(--w)); margin: clamp(28px, 4.5vh, 48px) auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
.choice {
  all: unset; box-sizing: border-box; cursor: pointer; position: relative;
  display: flex; flex-direction: column; min-height: 320px; padding: 28px 34px 26px;
  border-radius: 30px; overflow: hidden;
  transition: transform .45s var(--spring), box-shadow .35s var(--ease);
}
.choice:hover { transform: translateY(-6px); }
.choice:active { transform: translateY(-2px) scale(.985); transition-duration: .12s; }
.choice:focus-visible { outline: 3px solid var(--blue); outline-offset: 4px; }
.c-a { background: var(--navy); color: #fff; }
.c-b { background: var(--mist); color: var(--ink); }
.choice[aria-selected="true"] { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--blue); }
.tag { font-size: 13px; font-weight: 600; letter-spacing: .01em; padding: 5px 11px; border-radius: 980px; align-self: flex-start; }
.c-a .tag { background: rgba(255, 255, 255, .14); }
.c-b .tag { background: #fff; color: var(--navy); }
.ct { display: block; font-size: clamp(26px, 2.5vw, 35px); line-height: 1.1; font-weight: 650; letter-spacing: -0.03em; margin-top: 18px; max-width: 13.5em; }
.cs { display: block; font-size: 17px; line-height: 1.42; margin-top: 12px; max-width: 27em; }
.c-a .cs { color: rgba(255, 255, 255, .72); }
.c-b .cs { color: var(--ink-2); }
.chips, .path { display: flex; gap: 8px; margin-top: auto; padding-top: 22px; flex-wrap: wrap; }
.chips i { font-style: normal; font-size: 13px; font-weight: 550; padding: 6px 11px; border-radius: 10px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.path { align-items: center; gap: 0; }
.path i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--navy); background: #fff; }
.path i + i { margin-left: 34px; position: relative; }
.path i + i::before { content: ""; position: absolute; right: 12px; top: 4px; width: 34px; height: 2px; background: var(--navy); opacity: .35; }
.path i:last-child { background: var(--navy); }
.more { display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; font-size: 17px; font-weight: 600; }
.plus { width: 30px; height: 30px; border-radius: 50%; position: relative; flex: none; transition: transform .45s var(--spring); }
.c-a .plus { background: #fff; }
.c-b .plus { background: var(--ink); }
.plus::before, .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; border-radius: 2px; transform: translate(-50%, -50%); }
.plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.c-a .plus::before, .c-a .plus::after { background: var(--navy); }
.c-b .plus::before, .c-b .plus::after { background: #fff; }
.choice:hover .plus { transform: rotate(90deg); }

/* Chapters */
html.js .chapter[hidden] { display: none; }

/* Pinned scenes. A scene that does not fit the screen gets .flat and flows normally. */
.sticky { position: relative; }
html.motion [data-scene]:not(.flat) { height: var(--h, 200vh); }
html.motion [data-scene]:not(.flat) > .sticky { position: sticky; top: 52px; height: calc(100vh - 52px); height: calc(100svh - 52px); display: flex; flex-direction: column; justify-content: center; overflow: hidden; }

/* Captures of the real application */
.shot { margin: 0; }
.shot a { display: block; position: relative; border-radius: 14px; overflow: hidden; background: #fff; cursor: zoom-in; transition: transform .45s var(--spring); }
.shot a:hover { transform: scale(1.008); }
.shot a:active { transform: scale(.995); }
.shot img { width: 100%; height: auto; }
.dark .shot a { box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px -30px rgba(0, 0, 0, .8); }
.shot figcaption { font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-top: 14px; }
.dark .shot figcaption { color: #8E8E93; }
.zoom-hint { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; color: #fff; background: rgba(29, 29, 31, .82); padding: 5px 12px 5px 6px; border-radius: 980px; }
@media (hover: hover) {
  .zoom-hint { opacity: 0; transform: translateY(4px); transition: opacity .25s var(--ease), transform .35s var(--spring); }
  .shot a:hover .zoom-hint, .shot a:focus-visible .zoom-hint { opacity: 1; transform: none; }
}
.zoom-hint .plus { width: 20px; height: 20px; background: #fff; }
.zoom-hint .plus::before, .zoom-hint .plus::after { width: 9px; background: var(--ink); }

/* Scene 1: four programs become one */
.conv { --h: 240vh; }
.conv .sticky { padding: 88px 0; }
html.motion .conv:not(.flat) .sticky { padding: 0; }
.conv-grid { width: min(100% - 44px, 1000px); margin: 0 auto; text-align: center; display: grid; justify-items: center; }
.ch p { font-size: clamp(19px, 1.9vw, 24px); color: var(--night-2); margin-top: 16px; line-height: 1.38; }
.ch-b { margin-top: 72px; }
.tiles { width: min(100%, 880px); margin-top: 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tile { border-radius: 22px; background: var(--night-3); padding: 26px 20px; display: flex; flex-direction: column; gap: 6px; align-items: center; justify-content: center; min-height: 132px; will-change: transform, opacity; }
.tile b { font-size: clamp(22px, 2.4vw, 32px); letter-spacing: -0.03em; font-weight: 650; }
.tile span { font-size: 14px; color: var(--night-2); }
.conv .shot { width: 100%; margin-top: 40px; }
html.motion .conv:not(.flat) .conv-grid { grid-template-rows: auto auto; align-items: center; }
html.motion .conv:not(.flat) .ch { grid-area: 1 / 1; margin-top: 0; }
html.motion .conv:not(.flat) .tiles, html.motion .conv:not(.flat) .shot { grid-area: 2 / 1; }
html.motion .conv:not(.flat) .shot { width: min(100%, calc((100vh - 52px - 320px) * 1.935)); width: min(100%, calc((100svh - 52px - 320px) * 1.935)); min-width: min(100%, 300px); will-change: transform, opacity; }
html.motion .conv:not(.flat) .ch-b, html.motion .conv:not(.flat) .shot { opacity: 0; }

/* Section: recorded results side by side */
.app { padding: clamp(96px, 14vh, 150px) 0; }
.win { margin-top: 44px; background: #fff; border-radius: 26px; overflow: hidden; box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 50px -20px rgba(16, 51, 90, .25); }
.win-bar { font-size: 13px; color: var(--ink-2); padding: 13px 24px; border-bottom: 1px solid #ECECEF; background: #FBFBFD; }
.win-body { display: grid; grid-template-columns: 1.55fr 1fr; }
.cmp { padding: 28px 28px 26px; border-right: 1px solid #ECECEF; }
.cmp-h { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: center; font-size: 13px; color: var(--ink-2); padding: 0 14px 10px; }
.srow { all: unset; box-sizing: border-box; display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 20px; align-items: center; width: 100%; padding: 14px; border-radius: 14px; cursor: pointer; transition: background .25s var(--ease), transform .2s var(--ease); }
.srow:hover { background: var(--mist); }
.srow:active { transform: scale(.985); }
.srow[aria-pressed="true"] { background: #EAF2FC; }
.srow:focus-visible { outline: 3px solid var(--blue); outline-offset: 1px; }
.sname { display: flex; flex-direction: column; line-height: 1.25; }
.sname b { font-size: 17px; font-weight: 650; }
.sname span { font-size: 13px; color: var(--ink-2); }
.flag { font-style: normal; font-size: 12.5px; font-weight: 600; color: #8A5A00; display: inline-flex; align-items: center; gap: 6px; margin-top: 3px; }
.flag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amb); flex: none; }
.sbar { display: flex; align-items: center; gap: 10px; }
.bar { flex: 1; height: 8px; border-radius: 4px; background: #ECECEF; overflow: hidden; }
.bar i { display: block; height: 100%; width: calc(var(--w) * 100%); border-radius: 4px; background: #8E9AAB; transform-origin: left; transition: background .25s; }
.srow[aria-pressed="true"] .bar i { background: var(--blue); }
html.motion .app:not(.in) .bar i { transform: scaleX(0); }
html.motion .app .bar i { transition: transform 1.1s var(--ease), background .25s; }
.val { font-size: 17px; font-weight: 600; min-width: 3.4em; text-align: right; }
.take { margin: 18px 14px 0; font-size: 15px; line-height: 1.45; color: var(--ink-2); max-width: 38em; }
.take b { color: var(--ink); font-weight: 600; }
.det { padding: 30px 28px; display: flex; flex-direction: column; }
.det-k { font-size: 15px; color: var(--ink-2); }
.det-k [data-f="name"] { color: var(--ink); font-weight: 650; }
.det-big { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.det-big p { display: flex; flex-direction: column; }
.det-big b { font-size: clamp(40px, 4vw, 56px); line-height: 1; font-weight: 650; letter-spacing: -0.04em; }
.det-big span { font-size: 14px; color: var(--ink-2); margin-top: 8px; }
.det-small { margin-top: 22px; padding-top: 18px; border-top: 1px solid #ECECEF; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.det-small b { color: var(--ink); font-weight: 600; }
.det-nh { font-size: 13px; color: var(--ink-2); margin-top: 22px; }
.det-notes { margin-top: 8px; display: grid; gap: 8px; }
.det-notes li { font-size: 14px; line-height: 1.4; padding: 9px 12px; border-radius: 10px; background: #FFF6E5; color: #6B4A00; }
.det-notes li.info { background: #F2F2F5; color: #48484A; }
.det-notes li.ok { background: #EAF6EE; color: #1E5E3A; }
.det.swap > * { animation: swap .35s var(--ease); }
@keyframes swap { from { opacity: .25; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.foot { font-size: 14px; color: var(--ink-2); margin-top: 18px; }

/* Section: the Optimiser, with the real panel */
.opt { padding: clamp(96px, 14vh, 150px) 0; }
.opt-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; margin-top: 40px; }
.opt h2 { font-size: clamp(36px, 4.6vw, 64px); }
.opt .sub { font-size: clamp(18px, 1.6vw, 21px); margin-top: 20px; max-width: 46em; }
.opt-ex { font-size: clamp(18px, 1.6vw, 21px); line-height: 1.38; letter-spacing: -0.016em; color: #F5F5F7; font-weight: 600; }
.leg { display: flex; flex-wrap: wrap; gap: 8px 26px; margin-top: 14px; font-size: 15px; color: var(--night-2); }
.leg li { display: flex; align-items: center; gap: 8px; }
.leg b { color: #fff; font-weight: 650; }
.leg i { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.leg .g { background: var(--ok); }
.leg .u { box-shadow: inset 0 0 0 2px var(--ok); }
.leg .a { background: var(--amb); }
.opt-note { margin-top: 0; font-size: 15px; line-height: 1.5; color: var(--night-2); max-width: 36em; padding-left: 14px; border-left: 2px solid var(--amb); }
.opt-note b { color: #fff; font-weight: 600; }
.opt .shot { margin-top: 36px; }

/* Scene: warning and its fix */
.warn { --h: 210vh; }
.warn .sticky { padding: 110px 0; }
html.motion .warn:not(.flat) .sticky { padding: 0; }
.ws { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 44px; counter-reset: w; }
.ws li { background: #fff; border-radius: 24px; padding: 26px 24px 24px; display: flex; flex-direction: column; min-height: 230px; transition: opacity .5s var(--ease), transform .6s var(--spring); }
.ws-n { font-size: 14px; font-weight: 650; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.ws-n::before { counter-increment: w; content: counter(w); width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; display: grid; place-items: center; }
.ws li:first-child .ws-n::before { background: var(--amb); }
.ws li:last-child .ws-n::before { background: var(--ok); }
.ws-t { font-size: 19px; line-height: 1.35; font-weight: 600; letter-spacing: -0.015em; margin-top: 16px; }
.ws-s { margin-top: auto; padding-top: 18px; font-size: 15px; color: var(--ink-2); }
html.motion .warn:not(.flat) .ws li:not(.lit) { opacity: .28; transform: translateY(14px) scale(.98); }

/* Evidence */
.proof { padding: clamp(110px, 16vh, 180px) 0; text-align: center; }
.huge { font-size: clamp(76px, 13vw, 188px); line-height: .95; font-weight: 700; letter-spacing: -0.055em; color: var(--navy); }
.huge-l { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.25; font-weight: 600; letter-spacing: -0.022em; max-width: 22em; margin: 22px auto 0; }
.four { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; max-width: 860px; margin: 48px auto 0; }
.four li { background: var(--mist); border-radius: 20px; padding: 20px 12px 18px; display: flex; flex-direction: column; gap: 4px; }
.four b { font-size: clamp(24px, 2.4vw, 32px); font-weight: 650; letter-spacing: -0.03em; }
.four span { font-size: 14px; color: var(--ink-2); }
.proof .fine { margin-inline: auto; }

/* Calls to action */
.cta { padding: clamp(100px, 14vh, 150px) 0 clamp(64px, 8vh, 90px); text-align: center; }
.cta .sub { margin-inline: auto; }
.btns { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 28px; margin-top: 34px; }
.btn { background: var(--blue); color: #fff; font-size: 17px; font-weight: 600; padding: 14px 26px; border-radius: 980px; min-height: 48px; display: inline-flex; align-items: center; transition: background .2s, transform .15s var(--ease); }
.btn:hover { background: var(--blue-press); }
.next { display: flex; flex-direction: column; gap: 4px; max-width: 560px; margin: clamp(72px, 10vh, 110px) auto 0; padding: 24px 28px; border-radius: 22px; background: #fff; text-align: left; transition: transform .45s var(--spring); }
.next:hover { transform: translateY(-4px); }
.next:active { transform: scale(.985); }
.next span { font-size: 15px; color: var(--ink-2); }
.next b { font-size: 20px; font-weight: 650; letter-spacing: -0.02em; color: var(--blue); }

/* Chapter 2 */
.intro2 { padding: clamp(110px, 16vh, 170px) 0; }
.sch { --h: 320vh; }
.sch .wrap { width: min(100% - 44px, 1240px); }
.sch .sticky { padding: 90px 0; }
html.motion .sch:not(.flat) .sticky { padding: 0; }

/* The engraved plate: the one vintage element of the page */
.plate { position: relative; background: var(--plate); color: var(--plate-ink); border: 1px solid var(--plate-ink); border-radius: 16px; padding: 30px 34px 30px; }
.plate::before { content: ""; position: absolute; inset: 6px; border: 1px solid var(--plate-ink); border-radius: 10px; opacity: .55; pointer-events: none; }
.plate-t { font-family: var(--serif); font-style: italic; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.25; text-align: center; letter-spacing: 0; }
.plate-t span { font-style: normal; font-variant-caps: small-caps; letter-spacing: .05em; margin-right: .35em; }
.pgroups { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 20px; margin-top: 22px; }
.pflow { align-self: center; transform: translateY(-44px); display: flex; flex-direction: column; align-items: center; gap: 6px; font-family: var(--serif); font-style: italic; font-size: 14px; line-height: 1.15; letter-spacing: 0; text-align: center; width: 58px; }
.pflow svg { width: 56px; height: 14px; fill: none; stroke: var(--plate-ink); stroke-width: 1.4; stroke-linecap: round; }
.pflow .hd { fill: var(--plate-ink); stroke: none; }
.pgroup { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; align-content: start; }
.pg-lab { grid-column: 1 / -1; display: flex; align-items: flex-end; gap: 12px; font-family: var(--serif); font-style: italic; font-size: 17px; line-height: 1; letter-spacing: 0; margin-bottom: 4px; }
.pg-lab span { transform: translateY(-3px); white-space: nowrap; }
.pg-lab::before, .pg-lab::after { content: ""; flex: 1; height: 9px; border: 1px solid var(--plate-ink); border-bottom: 0; }
.pg-lab::before { border-right: 0; }
.pg-lab::after { border-left: 0; }
.pfig { margin: 0; }
.pf { width: 100%; height: auto; fill: none; stroke: var(--plate-ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.pf .thin { stroke-width: .85; }
.pf .bold { stroke-width: 3; stroke-linecap: butt; }
.pf .dash { stroke-dasharray: 4 3.6; }
.pf .paper { fill: var(--plate); }
.pf .hatch { fill: url(#pl-hatch); }
.pf .hd { fill: var(--plate-ink); stroke: none; }
.pf .pt { fill: var(--plate); stroke-width: 1.2; }
.pf text { fill: var(--plate-ink); stroke: none; font-family: var(--serif); font-style: italic; font-size: 13.5px; letter-spacing: 0; }
.pfig figcaption { border-top: 1px solid var(--plate-ink); margin-top: 8px; padding-top: 12px; font-size: 15px; line-height: 1.42; color: #4A4943; }
.pfig .fno { display: block; font-family: var(--serif); font-variant-caps: small-caps; letter-spacing: .05em; font-size: 15px; line-height: 1.2; color: var(--plate-ink); }
.pfig figcaption b { display: block; font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 18px; line-height: 1.25; letter-spacing: 0; color: var(--plate-ink); margin: 1px 0 6px; }
.plate-n { font-family: var(--serif); font-style: italic; font-size: 15px; line-height: 1.35; letter-spacing: 0; text-align: center; margin-top: 18px; color: #4A4943; }
/* Unpinned: each figure is inked in when it comes into view */
html.motion .sch.flat .pfig svg { -webkit-clip-path: inset(0 0 0 0); clip-path: inset(0 0 0 0); transition: clip-path 1.2s var(--ease), -webkit-clip-path 1.2s var(--ease); }
html.motion .sch.flat .pfig:not(.in) svg { -webkit-clip-path: inset(0 100% 0 0); clip-path: inset(0 100% 0 0); }
html.motion .sch.flat .pfig figcaption { transition: opacity .9s var(--ease) .3s; }
html.motion .sch.flat .pfig:not(.in) figcaption { opacity: 0; }

.built { padding: clamp(100px, 14vh, 150px) 0; }
.built .fine { margin-top: 26px; font-size: 16px; max-width: 44em; }
.bl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 40px; }
.bl li { background: var(--mist); border-radius: 24px; padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; }
.bl b { font-size: clamp(28px, 2.8vw, 40px); line-height: 1.05; font-weight: 650; letter-spacing: -0.03em; color: var(--navy); }
.bl span { font-size: 17px; color: var(--ink-2); line-height: 1.4; }

/* Footer */
.foot-site { background: var(--mist); border-top: 1px solid #E3E3E8; padding: 40px 0 48px; font-size: 13px; color: var(--ink-2); }
.fb { display: flex; align-items: center; gap: 8px; color: var(--ink); font-size: 14px; }
.fb img { width: 12px; height: 20px; object-fit: contain; flex: none; }
.fl { margin-top: 14px; font-size: 14px; }
.fl a { color: var(--blue); min-height: 32px; display: inline-flex; align-items: center; }
.fl a:hover { text-decoration: underline; }
.fn { margin-top: 10px; max-width: 60em; }

/* Enlarged capture */
.zoom { border: 0; padding: 0; margin: 0; background: transparent; width: 100vw; max-width: 100vw; height: 100vh; height: 100dvh; max-height: 100vh; max-height: 100dvh; overflow: hidden; }
.zoom::backdrop { background: rgba(0, 0, 0, .82); }
.zoom form { position: absolute; right: 16px; top: 12px; z-index: 2; }
.zoom-x { border: 0; background: #fff; color: var(--ink); font-size: 15px; font-weight: 600; padding: 8px 16px; border-radius: 980px; cursor: pointer; }
.zoom-in { position: absolute; left: 50%; top: 60px; transform: translateX(-50%); width: min(96vw, var(--nw, 1440px)); max-height: calc(100vh - 76px); max-height: calc(100dvh - 76px); overflow: auto; -webkit-overflow-scrolling: touch; border-radius: 12px; background: #fff; }
.zoom-in img { width: 100%; height: auto; max-width: none; }

/* Reveal on scroll */
html.motion .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
html.motion .rv.in { opacity: 1; transform: none; }
html.motion .hero .rv:nth-child(2) { transition-delay: .08s; }
html.motion .hero .rv:nth-child(3) { transition-delay: .18s; }

/* Medium screens */
@media (max-width: 1099px) {
  .pgroups { grid-template-columns: 1fr; gap: 18px; }
  .pflow { transform: none; flex-direction: row; gap: 12px; width: auto; justify-self: center; }
  .pflow svg { transform: rotate(90deg); width: 40px; }
  .plate { padding: 26px 26px 26px; }
}
@media (max-width: 980px) {
  .win-body { grid-template-columns: 1fr; }
  .cmp { border-right: 0; border-bottom: 1px solid #ECECEF; }
  .opt-head { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 760px) {
  .nl { display: none; }
  .choices { grid-template-columns: 1fr; }
  .choice { min-height: 0; padding: 28px 24px 24px; border-radius: 26px; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tile { min-height: 104px; padding: 20px 14px; border-radius: 18px; }
  .ws { grid-template-columns: 1fr; gap: 12px; }
  .ws li { min-height: 0; padding: 20px; }
  html.motion .warn:not(.flat) .ws li:not(.lit) { opacity: .3; transform: none; }
  .bl { grid-template-columns: 1fr; }
  .four { grid-template-columns: 1fr 1fr; }
  .pgroup { grid-template-columns: 1fr; gap: 6px 0; }
  .pfig + .pfig { margin-top: 18px; }
  .plate { padding: 24px 18px 22px; border-radius: 14px; }
  .plate::before { inset: 5px; border-radius: 9px; }
  .pfig .pf { max-width: 340px; margin-inline: auto; }
  .cmp, .det { padding: 18px 14px; }
  .cmp-h { display: none; }
  .srow { grid-template-columns: 1fr 1fr; gap: 8px 14px; padding: 12px; }
  .sname { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; }
  .flag { margin-top: 0; }
  .sbar { flex-direction: column; align-items: stretch; gap: 4px; }
  .val { text-align: left; font-size: 16px; }
  .sbar::before { font-size: 12px; color: var(--ink-2); }
  .sbar:nth-of-type(2)::before { content: "kWh/m³"; }
  .sbar:nth-of-type(3)::before { content: "Permeate, mg/L"; }
  .take { margin: 14px 12px 0; }
  .win { border-radius: 22px; }
  .win-bar { padding: 11px 16px; }
  .zoom-in { width: 96vw; }
  .zoom-in img { width: var(--nm, 1200px); }
}
@media (max-width: 420px) {
  .wrap, .sch .wrap, .choices, .nav-in { width: calc(100% - 36px); }
  .conv-grid { width: calc(100% - 36px); }
  .choice { padding: 24px 20px 22px; }
  .pill { padding: 7px 12px; }
}
