/* Jenko jenko3 (FR) — from v19 « Schéma ». The page is a single-line diagram: a graphite cable duct runs down the left edge and carries
   the conductor; every block is a feeder with its own breaker. Yellow is the current: it lives on graphite only (the duct,
   the graphite bands) and, on light grounds, only as filled shapes with graphite letters. */

@font-face { font-family: "RF"; src: url("../../concepts/fonts/roboto-flex-latin-full.woff2") format("woff2"); font-weight: 100 1000; font-stretch: 25% 151%; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* palette 1: cool RAL + graphite bands + the current */
  --bg: #e4e6e3; --surface: #f2f3f1; --band: #1c1f22; --band-2: #23272b; --raised: #2a2f34;
  --ink: #1c1f22; --ink-2: #4b5258; --b-ink: #e9eae6; --b-ink-2: #a9afb5;
  --line: #9ca3a0; --line-m: #7d8480; --dead: #6f767c; --grid: #272b2f; --b-line: rgba(233, 234, 230, .16);
  --live: #ffcf2b; --live-deep: #f2bf12; --err-l: #9e2418; --err-d: #ffab9c;

  /* six text roles */
  --step-hero: clamp(28px, 5.4vw, 88px);
  --step-h2: clamp(26px, 3.3vw, 54px);
  --step-acc: clamp(24px, 2.7vw, 44px);
  --step-sub: clamp(18px, 1.3vw, 21px);
  --step-body: clamp(16px, 1.08vw, 18px);
  --step-sm: 14px;

  /* spacing */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --sy: clamp(72px, 8.4vw, 132px);
  --duct: 48px; --gut: 76px; --rm: 56px; --hd: 64px; --bw: 40px; --col: clamp(16px, 1.8vw, 28px);
  --cx: calc(var(--duct) + var(--gut));

  --ease: cubic-bezier(.22, .7, .2, 1);
  color-scheme: light;
}
@media (max-width: 1099.98px) { :root { --duct: 32px; --gut: 52px; --rm: 32px; --bw: 32px; } }
@media (max-width: 699.98px) { :root { --duct: 14px; --gut: 16px; --rm: 16px; --bw: 26px; --hd: 60px; } }

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--band); -webkit-text-size-adjust: 100%; scroll-padding-top: var(--hd); }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 "RF", system-ui, sans-serif; font-stretch: 100%; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
::selection { background: var(--ink); color: var(--b-ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
[data-tone="dark"] :focus-visible, .hd :focus-visible, .menu :focus-visible, .ft :focus-visible { outline-color: var(--b-ink); }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 100; left: 12px; top: -80px; padding: 12px 16px; background: var(--live); color: var(--ink); font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- type ---------- */
.h-hero, .h2 { margin: 0; font-weight: 900; font-stretch: 151%; text-transform: uppercase; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; hyphens: manual; }
/* French capitals carry accents (É, À, Î): the line height leaves them room under the line above */
.nw, .nw2 { white-space: nowrap; }
@media (max-width: 379.98px) { .nw2 { white-space: normal; } }
.h-hero { font-size: var(--fit, var(--step-hero)); }
.h2 { font-size: var(--fit, var(--step-h2)); }
.lede { font-size: var(--step-sub); line-height: 1.42; color: var(--ink-2); max-width: 40ch; }
[data-tone="dark"] .lede { color: var(--b-ink-2); }

/* ---------- one button, one height ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 22px; border: 0; border-radius: 2px;
  background: var(--live); color: var(--ink); font: 700 var(--step-body)/1 "RF", system-ui, sans-serif; font-stretch: 110%; text-decoration: none; white-space: nowrap; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(28, 31, 34, .55); transition: background-color .2s ease-out; }
.btn > span { display: inline-flex; align-items: baseline; gap: 10px; }
.btn svg { width: 18px; height: 18px; align-self: center; transition: transform .25s var(--ease); }
.btn:hover { background: var(--live-deep); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { background: var(--live-deep); box-shadow: inset 0 0 0 2px var(--ink); }

/* ---------- header: graphite, leaves going down, comes back going up ---------- */
.hd { position: fixed; z-index: 50; left: 0; right: 0; top: 0; height: var(--hd); display: flex; align-items: center; gap: clamp(16px, 2vw, 32px);
  padding: 0 var(--rm) 0 var(--cx); background: var(--band); color: var(--b-ink); transition: transform .3s var(--ease); }
.hd.is-away { transform: translateY(-100%); }
.hd::before { content: ""; position: absolute; left: calc(var(--duct) / 2 - 1px); top: 50%; bottom: 0; width: 2px; background: var(--live); }
.hd::after { content: ""; position: absolute; left: calc(var(--duct) / 2 - 5px); top: calc(50% - 5px); width: 10px; height: 10px; background: var(--live); box-shadow: 0 0 0 2px var(--band), 0 0 0 3px var(--b-ink-2); }
.hd__logo { flex: none; display: flex; align-items: center; min-height: 44px; width: clamp(104px, 9.6vw, 138px); color: var(--b-ink); }
.hd__logo svg { width: 100%; height: auto; }
.hd__nav { display: flex; gap: clamp(18px, 2vw, 32px); margin-left: auto; }
.hd__nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; font: 600 var(--step-sm)/1.2 "RF", system-ui, sans-serif; color: var(--b-ink-2); text-decoration: none; }
.hd__nav a:hover, .hd__nav a[aria-current] { color: var(--b-ink); }
.hd__nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--b-ink); transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--ease); }
.hd__nav a[aria-current]::after { transform: scaleX(1); }
.hd__tel { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; color: var(--b-ink); text-decoration: none;
  font: 700 var(--step-sm)/1 "RF", system-ui, sans-serif; font-stretch: 112%; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hd__tel svg { width: 20px; height: 20px; }
.hd__cta { flex: none; }
.hd__cta .hd__cta-s { display: none; }
.hd__menu { display: none; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; justify-content: center; padding: 0 12px; border: 1px solid var(--b-line); border-radius: 2px;
  background: none; color: var(--b-ink); font: 600 var(--step-sm)/1 "RF", system-ui, sans-serif; cursor: pointer; }
.hd__menu svg { width: 20px; height: 20px; }
.menu { position: fixed; z-index: 49; left: 0; right: 0; top: var(--hd); display: grid; gap: var(--s5); padding: var(--s4) var(--rm) var(--s6) var(--cx);
  background: var(--band); color: var(--b-ink); border-top: 1px solid var(--b-line); box-shadow: 0 24px 40px -24px rgba(0, 0, 0, .6); }
.menu[hidden] { display: none; }
.menu nav { display: grid; }
.menu nav a { display: flex; align-items: center; min-height: 52px; border-bottom: 1px solid var(--b-line); font: 800 var(--step-sub)/1.1 "RF", system-ui, sans-serif; font-stretch: 125%; text-transform: uppercase; text-decoration: none; }
.menu__tel { display: grid; gap: 2px; color: var(--b-ink-2); font-size: var(--step-sm); }
.menu__tel a { color: var(--b-ink); font: 800 var(--step-sub)/1.2 "RF", system-ui, sans-serif; font-stretch: 125%; text-decoration: none; }
.menu .btn { justify-self: start; }

/* ---------- the duct and the current ---------- */
main { position: relative; display: block; }
.duct { position: absolute; z-index: 1; left: 0; top: 0; bottom: 0; width: var(--duct); background: var(--band); pointer-events: none; }
.duct__dead, .duct__live, .duct__pkt { position: absolute; top: 0; }
.duct__dead { left: calc(50% - 1px); width: 2px; height: 100%; background: var(--dead); }
.duct__live { left: calc(50% - 2px); width: 4px; height: var(--spine, 100%); background: var(--live); transform-origin: 50% 0; transform: scaleY(0); }
.duct__pkt { left: calc(50% - 3px); width: 6px; height: 64px; margin-top: -64px; background: linear-gradient(180deg, rgba(255, 207, 43, 0), #ffe27a 72%, #fff8dc); opacity: 0; }
html.fx .duct__live, html.fx .duct__pkt { transition: transform .5s var(--ease), opacity .25s ease-out; }
.wires { position: absolute; z-index: 2; left: 0; top: 0; overflow: visible; pointer-events: none; }
.w { fill: none; stroke-linecap: square; stroke-linejoin: miter; }
.w--d { stroke: var(--dead); stroke-width: 1.5; }
.w--l { stroke: var(--line-m); stroke-width: 1.5; }
.jn { fill: var(--dead); }
.wg.on .w--d { stroke: var(--live); stroke-width: 3; }
.wg.on .w--l { stroke: var(--ink); stroke-width: 2.5; }
.wg.on .jn { fill: var(--live); }
html.fx .w, html.fx .jn { transition: stroke .3s ease-out, stroke-width .3s ease-out, fill .3s ease-out; transition-delay: var(--d, 0s); }

/* the breaker: a drawn MCB front; closed = lever up, flag window filled with the current */
.head { position: relative; font-size: var(--fit, var(--step-h2)); }
.hero .head { font-size: var(--fit, var(--step-hero)); }
.brk { position: absolute; z-index: 3; left: calc((var(--gut) + var(--bw)) / -2); top: calc(.54em - var(--bw) * .8); width: var(--bw); height: calc(var(--bw) * 1.6); }
.brk svg { width: 100%; height: 100%; overflow: visible; }
.b-body { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.b-scr { fill: var(--bg); stroke: var(--ink); stroke-width: 1.2; }
.b-slot { fill: #d3d6d2; stroke: var(--ink); stroke-width: 1.1; }
.b-lev { fill: var(--ink); }
.b-flag { fill: #c3c7c3; stroke: var(--ink); stroke-width: 1; }
[data-tone="dark"] .b-body { fill: var(--raised); stroke: var(--b-ink-2); }
[data-tone="dark"] .b-scr { fill: var(--band); stroke: var(--b-ink-2); }
[data-tone="dark"] .b-slot { fill: var(--band); stroke: var(--b-ink-2); }
[data-tone="dark"] .b-lev { fill: var(--b-ink); }
[data-tone="dark"] .b-flag { fill: #3a4046; stroke: var(--b-ink-2); }
.brk.is-on .b-lev { transform: translateY(-11px); }
.brk.is-on .b-flag { fill: var(--live); }
html.fx .b-lev { transition: transform .2s var(--ease); }
html.fx .b-flag { transition: fill .15s ease-out .12s; }

/* ---------- photos: line drawing → colour, the wipe carries a sheathed conductor ---------- */
.ph { position: relative; display: block; overflow: hidden; background: var(--surface); }
.ph img, .ph video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ph__c { position: absolute; inset: 0; display: block; }
.ph__edge { position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent calc(100% - 10px), var(--ink) calc(100% - 10px) calc(100% - 8px), var(--live) calc(100% - 8px) calc(100% - 2px), var(--ink) calc(100% - 2px)); }
html.fx .ph:not(.is-lit) .ph__c { clip-path: inset(0 100% 0 0); }
html.fx .ph.is-lit .ph__c { clip-path: inset(0 0 0 0); transition: clip-path .5s var(--ease); }
html.fx .ph.is-lit .ph__edge { animation: wipe .5s var(--ease) forwards; }
@keyframes wipe { 0% { opacity: 1; transform: translateX(-100%); } 88% { opacity: 1; } 100% { opacity: 0; transform: translateX(0); } }
.ph video { opacity: 0; transition: opacity .3s ease-out; }
.ph video.is-on { opacity: 1; }
.film-btn { position: absolute; z-index: 3; right: var(--s4); bottom: var(--s4); width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 1px solid rgba(233, 234, 230, .35); border-radius: 2px;
  background: rgba(28, 31, 34, .78); color: var(--b-ink); cursor: pointer; }
.film-btn svg { width: 18px; height: 18px; }
.film-btn[hidden] { display: none; }

/* ---------- sections ---------- */
.sec { position: relative; padding: var(--sy) var(--rm) var(--sy) var(--cx); }
[data-tone="dark"] { background: var(--band); color: var(--b-ink); }
.sec__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s8); }
.sec__head .head { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.sec__head .lede { flex: 0 1 34ch; padding-bottom: .2em; }

/* hero: the film is the first thing lit */
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(34svh, 1fr) auto; min-height: 100svh; padding-top: var(--hd); }
.hero__media { margin-left: var(--duct); background: var(--band); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), calc(100% - 112px) 100%, 0 100%); }
.hero__media .film-btn { bottom: 40px; }
.hero__copy { padding: clamp(24px, 4.2vh, 48px) var(--rm) clamp(28px, 5.4vh, 60px) var(--cx); }
.hero__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: var(--s5) var(--s7); margin-top: clamp(18px, 3vh, 32px); }
.hero__lede { max-width: 44ch; font-size: var(--step-sub); line-height: 1.42; color: var(--b-ink-2); }
.hero__act { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4) var(--s6); }
.tel { display: grid; gap: 2px; }
.tel__n { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; color: var(--b-ink); font: 900 var(--step-sub)/1.15 "RF", system-ui, sans-serif; font-stretch: 130%; text-decoration: none; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tel__n:hover { text-decoration: underline; text-underline-offset: 4px; }
.tel__st { display: flex; align-items: center; gap: 8px; font-size: var(--step-sm); line-height: 1.35; color: var(--b-ink-2); }
.tel__st i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--b-ink-2); }
.tel__st.is-open i { background: var(--live); box-shadow: none; }

/* families: six feeders on a bus, lettered A–F */
.fam__grid { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--col); }
.fam__it { position: relative; padding-top: 44px; }
.fam__a { display: grid; color: inherit; text-decoration: none; }
.fam__a:focus-visible { outline-offset: 6px; }
.tag { position: absolute; z-index: 3; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--surface); box-shadow: 0 0 0 1.5px var(--ink);
  font: 800 var(--step-sm)/1 "RF", system-ui, sans-serif; font-stretch: 120%; color: var(--ink); }
.fam.is-on .tag { background: var(--live); }
html.fx .tag { transition: background-color .2s ease-out; transition-delay: calc(var(--i, 0) * 80ms + .15s); }
.fam__a:hover .tag, .fam__a:focus-visible .tag { background: var(--ink); color: var(--b-ink); transition-delay: 0s; }
.fam__ph { aspect-ratio: 4 / 3; clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 18px, 100% 100%, 0 100%); }
.fam__ph .ph__c img { transition: transform .5s var(--ease); }
.fam__a:hover .ph__c img, .fam__a:focus-visible .ph__c img { transform: scale(1.04); }
.fam__txt { display: grid; gap: 6px; padding-top: var(--s4); }
.fam__n { font: 800 var(--step-sub)/1.2 "RF", system-ui, sans-serif; font-stretch: 112%; }
.fam__n .ar, .fam__n .ar2 { white-space: nowrap; }
.fam__n svg { display: inline-block; width: 18px; height: 18px; margin-left: 4px; vertical-align: -2px; transition: transform .25s var(--ease); }
.fam__a:hover .fam__n svg, .fam__a:focus-visible .fam__n svg { transform: translateX(4px); }
.fam__a:hover .fam__n > span { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.fam__l { color: var(--ink-2); max-width: 36ch; }

/* the cabinet: the explorer on a faint schematic grid */
.cab__frame { position: relative; margin-top: clamp(32px, 5vh, 56px); border: 1px solid var(--b-line);
  background-color: var(--band); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 32px 32px; background-position: -1px -1px; }
.cab__host { position: relative; min-height: 280px; }
.cab__poster { width: 100%; height: auto; }
.cab__facts { list-style: none; margin: var(--s6) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: var(--s4) clamp(32px, 5vw, 80px); }
.cab__facts li { display: grid; gap: 2px; }
.cab__facts b { font: 900 var(--step-acc)/1 "RF", system-ui, sans-serif; font-stretch: 151%; letter-spacing: -.01em; }
.cab__facts span { font-size: var(--step-sm); color: var(--b-ink-2); }
/* the shared explorer in this page's language: square controls, the node list as a terminal strip */
.cab .jcab { background: transparent; font-stretch: 100%; }
.cab .jcab--dark .jcab__stage, .cab .jcab--light .jcab__stage { background: transparent; }
.cab .jcab.is-wide .jcab__side { background: var(--band-2); border-left-color: var(--b-line); }
.cab .jcab__seg, .cab .jcab__btn, .cab .jcab__views, .cab .jcab__num, .cab .jcab__hint, .cab .jcab__edge { border-radius: 2px; }
.cab .jcab__item { border-radius: 2px; }
.cab .jcab__list { position: relative; }
.cab .jcab__list::before { content: ""; position: absolute; left: 20px; top: 24px; bottom: 24px; width: 2px; background: var(--dead); }
.cab.is-on .jcab__list::before { background: var(--live); }
.cab .jcab__item-n { position: relative; z-index: 1; background: var(--band-2); }
.cab .jcab__item.is-on .jcab__item-n { background: var(--live); }
.cab .jcab__pimg, .cab .jcab__panel { border-radius: 2px; }

/* fallback when the shared module cannot load: the flat photo, seven numbers and the panel */
.cabf { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: var(--s5); padding: var(--s5); }
.cabf__ph { position: relative; }
.cabf__dot { position: absolute; width: 44px; height: 44px; margin: -22px 0 0 -22px; padding: 0; border: 0; background: none; display: grid; place-items: center; cursor: pointer; }
.cabf__dot span[aria-hidden] { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--band); color: var(--b-ink); box-shadow: 0 0 0 1.5px var(--b-ink); font-weight: 700; font-size: var(--step-sm); }
.cabf__dot.is-on span[aria-hidden] { background: var(--live); color: var(--ink); }
.cabf__p { display: grid; gap: var(--s3); align-content: start; }
.cabf__p img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.cabf__t { margin: 0; font: 800 var(--step-sub)/1.2 "RF", system-ui, sans-serif; }
.cabf__l { font-size: var(--step-sm); font-weight: 700; color: var(--b-ink-2); }
@media (max-width: 699.98px) { .cabf { grid-template-columns: minmax(0, 1fr); padding: var(--s3); } }

/* workshop: readings on a ruled line, the hall as a film band, three real photos */
.meter { list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.rd { position: relative; display: grid; align-content: start; gap: var(--s2); padding: var(--s5) var(--col) 0 0; border-top: 1.5px solid var(--line-m); }
.rd::before { content: ""; position: absolute; left: 0; top: -1.5px; width: 2px; height: 14px; background: var(--ink); }
html.fx .rd { transition: border-color .3s ease-out; }
.shop.is-on .rd { border-top-color: var(--ink); }
.rd__v { font: 900 var(--step-acc)/1 "RF", system-ui, sans-serif; font-stretch: 151%; letter-spacing: -.015em; white-space: nowrap; }
.rd__v small { margin-left: .2em; font-size: var(--step-sub); font-weight: 800; font-stretch: 120%; letter-spacing: 0; }
/* « + de 2 500 » : the « + de » is set like a unit, before the figure; where the column is too narrow it steps up onto its own line */
.rd__v--pre { white-space: normal; }
.rd__v .rd__pre { margin: 0 .2em 0 0; }
.rd__l { color: var(--ink-2); font-size: var(--step-sm); line-height: 1.4; max-width: 22ch; }
.band { margin: 0; }
.shop__band { margin: clamp(48px, 7vh, 80px) calc(var(--rm) * -1) 0 calc(var(--gut) * -1); }
.band__ph { aspect-ratio: 16 / 6.4; background: var(--bg); }
.band__cap { margin: var(--s3) var(--rm) 0 var(--gut); font-size: var(--step-sm); color: var(--ink-2); }
.shop__foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: var(--s6) var(--col); align-items: start; margin-top: clamp(40px, 6vh, 64px); }
.shop__q { font-size: var(--step-sub); line-height: 1.42; color: var(--ink-2); max-width: 26ch; }
.shop__q b { color: var(--ink); font-weight: 800; }
.shop__row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col); }
.shop__row figure { margin: 0; }
.shop__ph { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.shop__ph img { width: 100%; height: 100%; object-fit: cover; }
.shop__row figcaption { margin-top: var(--s2); font-size: var(--step-sm); color: var(--ink-2); }

/* steps: the current runs through four terminals */
.steps__band { margin: calc(var(--sy) * -1) calc(var(--rm) * -1) var(--sy) calc(var(--gut) * -1); aspect-ratio: 16 / 5.6; overflow: hidden; }
.steps__band img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.steps__list { --n: 48px; position: relative; list-style: none; margin: clamp(40px, 6vh, 64px) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s6) var(--col); }
.steps__list::before, .steps__list::after { content: ""; position: absolute; left: calc(var(--n) / 2); right: calc(25% - var(--col) * .75 - var(--n) / 2); top: calc(var(--n) / 2 - 1px); height: 2px; background: var(--dead); }
.steps__list::after { height: 3px; margin-top: -.5px; background: var(--live); transform-origin: 0 50%; transform: scaleX(0); }
.steps.is-on .steps__list::after { transform: scaleX(1); }
html.fx .steps__list::after { transition: transform .6s var(--ease) .1s; }
.st { position: relative; display: grid; align-content: start; gap: var(--s2); }
.st__n { position: relative; z-index: 1; width: var(--n); height: var(--n); margin-bottom: var(--s3); display: grid; place-items: center; border-radius: 50%; background: var(--band); box-shadow: inset 0 0 0 2px var(--b-ink-2);
  font: 900 var(--step-sub)/1 "RF", system-ui, sans-serif; font-stretch: 151%; color: var(--b-ink); }
/* lit: a solid yellow disc (transform only, never a half-tone) appears at once big enough to sit under the number,
   then grows to the rim; the number turns dark in the same frame. Going dark again is instant. */
.st__n::before { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: 50%; background: var(--live); transform: scale(0); }
.steps.is-on .st__n { color: var(--ink); }
.steps.is-on .st__n::before { transform: scale(1); }
html.fx .steps.is-on .st__n { transition: color 0s linear calc(var(--i, 0) * 150ms + .1s); }
/* the fill and the dark number switch in the same frame (one 0 s step each, same delay): a grow animation let a dark number show on the dark disc for a frame */
html.fx .steps.is-on .st__n::before { transition: transform 0s linear calc(var(--i, 0) * 150ms + .1s); }
.st__t { margin: 0; font: 800 var(--step-sub)/1.2 "RF", system-ui, sans-serif; font-stretch: 112%; }
.st p { color: var(--b-ink-2); max-width: 26ch; }

/* clients: the two main loads on the bus, the others as tables */
.refs__top { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1.05fr); gap: var(--s7) clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 6vh, 64px); }
.refs__main { list-style: none; margin: 0; padding: 36px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col); }
.refs__main li { display: grid; gap: var(--s2); }
.refs__pl { display: grid; place-items: center; height: clamp(150px, 15vw, 220px); background: var(--surface); clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 18px, 100% 100%, 0 100%); }
.refs__pl img { width: 62%; height: auto; }
.refs__cap { font-size: var(--step-sm); color: var(--ink-2); }
.quote { margin: 0; display: grid; gap: var(--s4); padding-top: 36px; }
.quote__note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: var(--step-sm); color: var(--ink-2); }
.stub { display: inline-block; padding: 3px 8px; background: var(--ink); color: var(--b-ink); font-weight: 700; }
.quote blockquote { margin: 0; font: 600 var(--step-sub)/1.35 "RF", system-ui, sans-serif; font-stretch: 105%; }
.quote figcaption { display: flex; align-items: center; gap: var(--s3); font-size: var(--step-sm); color: var(--ink-2); }
.quote figcaption img { width: 48px; height: 48px; object-fit: cover; object-position: 50% 25%; }
.refs__groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) clamp(32px, 4vw, 64px); margin-top: clamp(48px, 7vh, 80px); }
.refs__h { margin: 0 0 var(--s3); font: 700 var(--step-sm)/1.3 "RF", system-ui, sans-serif; color: var(--ink-2); }
.logos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.logos li { display: grid; place-items: center; height: 72px; padding: 10px; background: var(--bg); }
.logos img { width: auto; height: calc(18px * var(--k, 1)); max-width: 100%; object-fit: contain; mix-blend-mode: multiply; }

/* request: the circuit closes at the button */
.dv__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr) minmax(0, 1fr); gap: var(--s6) clamp(32px, 4vw, 64px); align-items: start; margin-top: clamp(40px, 6vh, 64px); }
.dv__card { padding: clamp(24px, 2.4vw, 36px); background: var(--band-2); border: 1px solid var(--b-line); }
.dv__intro { font-size: var(--step-sub); line-height: 1.42; color: var(--b-ink); margin-bottom: var(--s5); }
.rq { display: grid; gap: var(--s4); }
.field { display: grid; gap: 6px; }
.field label { font-size: var(--step-sm); font-weight: 600; color: var(--b-ink-2); }
.field input { width: 100%; height: 52px; padding: 0 14px; border: 1px solid var(--dead); border-radius: 2px; background: var(--band); color: var(--b-ink); font-size: max(16px, var(--step-body)); }
.field input:hover { border-color: var(--b-ink-2); }
.field input:focus { outline: 2px solid var(--b-ink); outline-offset: 1px; border-color: var(--b-ink); }
.field input[aria-invalid="true"] { border-color: var(--err-d); }
.field__err { font-size: var(--step-sm); line-height: 1.35; color: var(--err-d); }
.field__err:empty { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rq__btn { width: 100%; margin-top: var(--s2); }
.rq[hidden] { display: none; }
.rq__done { display: none; gap: var(--s2); }
.rq__done.is-on { display: grid; }
.rq__ok { display: flex; align-items: center; gap: var(--s3); font: 800 var(--step-sub)/1.2 "RF", system-ui, sans-serif; font-stretch: 112%; }
.rq__ok i { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--live); box-shadow: 0 0 0 3px var(--band-2), 0 0 0 4.5px var(--live); }
.rq__done p { color: var(--b-ink-2); }
.rq__done .rq__ok { color: var(--b-ink); }
.dv__call { display: grid; gap: var(--s2); align-content: start; }
.dv__q { color: var(--b-ink-2); }
.dv__tel { display: inline-flex; align-items: center; min-height: 44px; justify-self: start; color: var(--b-ink); font: 900 var(--step-acc)/1.05 "RF", system-ui, sans-serif; font-stretch: 140%; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.dv__tel:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.dv__addr { margin-top: var(--s3); color: var(--b-ink-2); max-width: 32ch; }
.dv__ph { margin: 0; }
.dv__ph img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; clip-path: polygon(0 0, calc(100% - 72px) 0, 100% 18px, 100% 100%, 0 100%); }
.dv__ph figcaption { margin-top: var(--s2); font-size: var(--step-sm); color: var(--b-ink-2); }

/* footer: the circuit ends here. A header-size wordmark heads the first column (no oversized closer), four balanced
   columns, then the legal line; the duct ends in a de-energised terminal level with the wordmark. */
.ft { --lw: clamp(104px, 9.6vw, 138px); position: relative; background: var(--band); color: var(--b-ink); padding: var(--s8) var(--rm) var(--s6) var(--cx); border-top: 1px solid var(--b-line); }
.ft::before { content: ""; position: absolute; left: calc(var(--duct) / 2 - 1px); top: 0; height: calc(var(--s8) + var(--lw) * .0606); width: 2px; background: var(--dead); }
.ft::after { content: ""; position: absolute; left: calc(var(--duct) / 2 - 5px); top: calc(var(--s8) + var(--lw) * .0606 - 5px); width: 10px; height: 10px; background: var(--dead); box-shadow: 0 0 0 2px var(--band), 0 0 0 3px var(--b-ink-2); }
.ft__cols { display: grid; grid-template-columns: minmax(0, 1.35fr) repeat(3, minmax(0, 1fr)); gap: var(--s6) var(--col); }
.ft__c { display: grid; align-content: start; justify-items: start; gap: 0; color: var(--b-ink-2); font-size: var(--step-sm); line-height: 1.5; }
.ft__h { color: var(--b-ink); font-weight: 700; margin-bottom: var(--s2); }
.ft__c a { color: var(--b-ink-2); text-decoration: none; }
.ft__c a:hover { color: var(--b-ink); text-decoration: underline; }
.ft__c a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.ft__c p a { min-height: 0; }
.ft__nav a:nth-of-type(1) { margin-top: -12px; }
.ft__tel { display: inline-flex; align-items: center; min-height: 44px; margin-top: -12px; color: var(--b-ink); font-weight: 700; text-decoration: none; }
.ft__c .ft__tel { color: var(--b-ink); }
.ft__brand { gap: var(--s4); padding-right: var(--s5); }
.ft__logo { width: var(--lw); height: auto; color: var(--b-ink); }
.ft__brand p { max-width: 30ch; }
.ft__legal { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s6); margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--b-line); font-size: var(--step-sm); color: var(--b-ink-2); }
.ft__legal > p:first-child { margin-right: auto; text-wrap: balance; }
.ft__links { display: flex; flex-wrap: wrap; gap: 0 var(--s5); }
.ft__links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--b-ink-2); text-decoration: none; }
.ft__links a:hover { color: var(--b-ink); text-decoration: underline; }
.ft__up { color: var(--b-ink); text-decoration: none; font-weight: 700; display: inline-flex; min-height: 44px; align-items: center; }
.ft__up span { display: inline-flex; align-items: baseline; gap: 6px; }
.ft__up svg { width: 14px; height: 14px; align-self: center; }
.ft__up:hover { text-decoration: underline; }

/* demo toast for pages that arrive at the next stage */
.toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--s4) + env(safe-area-inset-bottom, 0px)); width: max-content; max-width: calc(100vw - 2 * var(--s4));
  display: flex; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--band); color: var(--b-ink); border: 1px solid var(--b-line); border-radius: 2px;
  box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .55); font-size: var(--step-body); line-height: 1.35; text-wrap: balance;
  opacity: 0; visibility: hidden; transform: translate(-50%, 12px); transition: opacity .2s ease-out, transform .25s var(--ease), visibility 0s linear .25s; pointer-events: none; }
.toast::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--b-ink-2); }
.toast.is-on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition: opacity .2s ease-out, transform .25s var(--ease), visibility 0s; }
sub { font-size: max(12px, .72em); line-height: 0; }

/* ---------- laptops and tablets ---------- */
@media (max-width: 1279.98px) {
  .hd__tel-n { display: none; }
  .dv__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
  .dv__ph { grid-column: 2; }
}
@media (max-width: 1099.98px) {
  .hd__nav { display: none; }
  .hd__tel { margin-left: auto; }
  .hd__menu { display: inline-flex; }
  .fam__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .meter { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s6); }
  .shop__foot { grid-template-columns: minmax(0, 1fr); }
  .steps__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps__list::before, .steps__list::after { display: none; }
  .refs__top { grid-template-columns: minmax(0, 1fr); }
  .ft__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--s7); }
  .ft__brand { grid-column: 1 / -1; }
}

/* ---------- phones ---------- */
@media (max-width: 699.98px) {
  .hd { gap: var(--s2); padding-left: calc(var(--duct) + 14px); }
  .hd__cta { padding: 0 16px; }
  .hd__cta .hd__cta-l { display: none; }
  .hd__cta .hd__cta-s { display: inline; }
  .hd__menu { padding: 0 10px; }
  .hd__menu-l { display: none; }
  .head { padding-left: calc(var(--bw) + 4px); }
  .brk { left: -6px; }
  .sec__head { gap: var(--s4); }
  .sec__head .lede { flex-basis: 100%; }
  .h2 { font-stretch: 136%; }
  .hero { grid-template-rows: minmax(40svh, 1fr) auto; }
  .hero__media { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 16px), calc(100% - 64px) 100%, 0 100%); }
  .hero__media .film-btn { bottom: 24px; right: 8px; }
  .hero__row { margin-top: var(--s4); }
  .hero__act { width: 100%; }
  .hero__act .btn { width: 100%; }
  .fam__grid { gap: var(--s6) var(--s3); }
  .fam__it { padding-top: 40px; }
  .fam__ph { aspect-ratio: 4 / 5; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 10px, 100% 100%, 0 100%); }
  .fam__txt { padding-top: var(--s3); gap: 4px; }
  .fam__n { font-stretch: 100%; }
  .fam__l { font-size: var(--step-sm); line-height: 1.4; }
  .cab__frame { margin-left: calc(var(--gut) * -1); margin-right: calc(var(--rm) * -1); border-left: 0; border-right: 0; }
  .cab__facts { gap: var(--s4) var(--s6); }
  .rd { padding-right: var(--s3); }
  .band__ph { aspect-ratio: 4 / 3; }
  .shop__row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .shop__row li:first-child { grid-column: 1 / -1; }
  .steps__band { aspect-ratio: 16 / 10; }
  .steps__list { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .steps__list::before, .steps__list::after { display: block; left: calc(var(--n) / 2 - 1px); right: auto; top: calc(var(--n) / 2); bottom: calc(var(--n) / 2 + 40px); width: 2px; height: auto; }
  .steps__list::after { width: 3px; margin: 0 0 0 -.5px; transform-origin: 50% 0; transform: scaleY(0); }
  .steps.is-on .steps__list::after { transform: scaleY(1); }
  .st { grid-template-columns: var(--n) minmax(0, 1fr); column-gap: var(--s4); }
  .st__n { grid-row: 1 / span 2; margin: 0; }
  .refs__main { gap: var(--s3); }
  .refs__pl { height: 112px; clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 10px, 100% 100%, 0 100%); }
  .refs__pl img { width: 74%; }
  .refs__groups { grid-template-columns: minmax(0, 1fr); }
  .logos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos li { height: 60px; }
  .dv__grid { grid-template-columns: minmax(0, 1fr); }
  .dv__ph { grid-column: auto; }
  .dv__card { margin-left: calc(var(--gut) * -1 + 2px); margin-right: calc(var(--rm) * -1); padding: var(--s5) var(--rm) var(--s5) calc(var(--gut) - 2px); border-left: 0; border-right: 0; }
  .ft__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s4); }
  .ft__brand, .ft__nav { grid-column: 1 / -1; }
  .ft__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s4); }
  .ft__nav .ft__h { grid-column: 1 / -1; }
  .ft__nav a:nth-of-type(2) { margin-top: -12px; }
  .ft__legal { margin-top: var(--s6); }
}
@media (max-width: 479.98px) {
  .ft__cols > .ft__c { grid-column: 1 / -1; }
}
@media (max-width: 379.98px) {
  .ft__nav { grid-template-columns: minmax(0, 1fr); }
  .ft__nav a:nth-of-type(2) { margin-top: 0; }
}
@media (max-width: 359.98px) {
  .fam__grid { grid-template-columns: minmax(0, 1fr); }
  .fam__ph { aspect-ratio: 4 / 3; }
  .hd__logo { width: 88px; }
  .hd__cta { padding: 0 12px; }
}

/* mouse and trackpad: the footer links keep a 32 px target and read as one list, not a ladder */
@media (hover: hover) and (pointer: fine) and (min-width: 1100px) {
  .ft__c a, .ft__tel { min-height: 32px; }
  .ft__nav a:nth-of-type(1), .ft__tel { margin-top: -6px; }
}

/* ---------- reduced motion: final states at once ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation-duration: 0s !important; animation-delay: 0s !important; }
}
