/* William Lloyd's Group — site styles
   One screen per section: the page snaps from section to section and each one pops in. */
/* Archivo (SIL Open Font License, see fonts/OFL.txt), served with the site instead of from Google */
@font-face{font-family:Archivo;font-style:normal;font-weight:400 800;font-stretch:100% 125%;font-display:swap;src:url(fonts/archivo-latin-ext.woff2) format('woff2');unicode-range:U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF}
@font-face{font-family:Archivo;font-style:normal;font-weight:400 800;font-stretch:100% 125%;font-display:swap;src:url(fonts/archivo-latin.woff2) format('woff2');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+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
:root{
  --night:#06141c; --channel:#0b2433;
  --ladder:#f2b705; --ladder-hi:#ffc928; --ochre:#a87a00; --river:#7fb4d1;
  --overcast:#e8edef; --white:#fff;
  --ink:#0b2433; --soft:#4f6170; --on-dark:rgba(255,255,255,.7);
  --hair:rgba(11,36,51,.1); --hair-dark:rgba(255,255,255,.1);
  --field:#7d8d96; --error:#b42318;
  --max:1280px; --gut:clamp(20px,4vw,40px); --nav:72px;
  --ease:cubic-bezier(.22,1,.36,1);
  --lift:0 1px 2px rgba(6,20,28,.06),0 12px 32px rgba(6,20,28,.1);
  --lift-sm:0 1px 2px rgba(6,20,28,.06),0 8px 24px rgba(6,20,28,.07);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%;background:var(--night);scroll-snap-type:y mandatory;scroll-behavior:smooth;scrollbar-color:#3d5462 var(--night)}
body{font-family:Archivo,system-ui,sans-serif;font-size:17px;line-height:1.6;color:var(--ink);background:var(--night);-webkit-font-smoothing:antialiased;overflow-x:clip}
::selection{background:var(--ladder);color:var(--night)}
a{color:inherit}
p{text-wrap:pretty}
img,svg{display:block;max-width:100%}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--ladder);outline-offset:3px;border-radius:6px}
[data-theme="light"] :focus-visible{outline-color:var(--ink)}
.sr{position:absolute;width:1px;height:1px;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.wrap{max-width:var(--max);margin-inline:auto;padding-inline:var(--gut)}
.skip{position:absolute;left:12px;top:-60px;z-index:200;background:var(--ladder);color:var(--night);padding:8px 16px;border-radius:999px;font-weight:500;text-decoration:none}
.skip:focus{top:12px}

/* type */
.display{font-stretch:125%;font-weight:500;letter-spacing:-.02em;line-height:1.02;text-wrap:balance}
h2.display{font-size:clamp(1.9rem,3.6vw,3.4rem)}
.lede{font-size:clamp(1rem,1.2vw,1.125rem);color:var(--soft);max-width:34em;margin-top:16px}
.dark .lede{color:var(--on-dark)}

/* buttons */
.btn{display:inline-flex;align-items:center;height:48px;padding:0 24px;border-radius:999px;border:0;font-size:1rem;font-weight:500;text-decoration:none;cursor:pointer;transition:background-color .15s var(--ease),transform .15s var(--ease)}
.btn-primary{background:var(--ladder);color:var(--night)}
.btn-primary:hover{background:var(--ladder-hi)}
.btn-line{background:none;color:inherit;box-shadow:inset 0 0 0 1px currentColor}
.btn-line:hover{background:color-mix(in srgb,currentColor 8%,transparent)}
.btn:active{transform:scale(.98)}
/* a dark band outside the ring keeps focus visible on any background */
.btn:focus-visible{outline:3px solid var(--ladder);outline-offset:3px;box-shadow:0 0 0 7px var(--night)}

/* ---------- screens ---------- */
.screen{position:relative;min-height:100svh;display:flex;flex-direction:column;scroll-snap-align:start;scroll-snap-stop:always}
.screen-inner{flex:1;display:flex;flex-direction:column;justify-content:center;width:100%;padding-top:calc(var(--nav) + 3vh);padding-bottom:4vh;transform-origin:50% 30%}
/* content pops in when its section arrives, and resets once it has left */
.js .scene [data-pop]{opacity:0;transform:translateY(12px);transition:opacity .5s var(--ease),transform .5s var(--ease);transition-delay:calc(var(--d,0) * 50ms + 60ms)}
.js .scene.is-in [data-pop]{opacity:1;transform:none}

/* ---------- navigation ---------- */
.nav{position:fixed;inset:0 0 auto;z-index:100;color:#fff;transition:background-color .3s var(--ease),box-shadow .3s var(--ease),color .3s var(--ease)}
[data-theme="light"] .nav{color:var(--ink)}
.nav .wrap{height:var(--nav);display:flex;align-items:center;justify-content:space-between;gap:24px}
.nav.scrolled{background:rgba(6,20,28,.74);-webkit-backdrop-filter:saturate(160%) blur(20px);backdrop-filter:saturate(160%) blur(20px);box-shadow:0 1px 0 rgba(255,255,255,.06)}
/* over light sections the bar turns light so it doesn't sit there as a grey slab */
[data-theme="light"] .nav.scrolled{background:rgba(255,255,255,.82);box-shadow:0 1px 0 var(--hair)}
.menu-open .nav,.menu-open .nav.scrolled{background:transparent;box-shadow:none;color:#fff}
.brand{font-stretch:125%;font-weight:600;text-decoration:none;font-size:1.0625rem;white-space:nowrap;padding-block:12px}
.links{display:flex;align-items:center;gap:32px;list-style:none}
.links a{position:relative;text-decoration:none;font-size:.9375rem;color:inherit;opacity:.7;transition:opacity .15s var(--ease)}
.links a:hover,.links a[aria-current="true"]{opacity:1}
@supports not (position-anchor:auto){.links a[aria-current="true"]::after{content:"";position:absolute;left:0;right:0;bottom:-8px;border-top:2px solid currentColor;border-radius:2px}}
.links .btn{height:36px;padding:0 16px;font-size:.9375rem;color:var(--night);opacity:1}
.menu-btn{display:none;width:44px;height:44px;border:0;background:none;cursor:pointer;position:relative;color:inherit}
.menu-btn span{position:absolute;left:11px;right:11px;height:2px;background:currentColor;border-radius:2px;transition:transform .2s var(--ease)}
.menu-btn span:first-child{top:17px}.menu-btn span:last-child{top:25px}
.menu-open .menu-btn span:first-child{transform:translateY(4px) rotate(45deg)}
.menu-open .menu-btn span:last-child{transform:translateY(-4px) rotate(-45deg)}
.menu-panel{position:fixed;inset:0;z-index:90;background:var(--night);color:#fff;padding:112px var(--gut) 40px;display:flex;flex-direction:column;justify-content:space-between;visibility:hidden;opacity:0;transition:opacity .2s var(--ease),visibility 0s .2s}
.menu-open .menu-panel{visibility:visible;opacity:1;transition:opacity .2s var(--ease)}
.menu-panel ul{list-style:none;display:grid;gap:8px}
.menu-panel ul a{font-stretch:125%;font-weight:500;font-size:clamp(2rem,9vw,3rem);letter-spacing:-.02em;text-decoration:none;display:inline-block;transform:translateY(12px);opacity:0;transition:transform .4s var(--ease),opacity .4s var(--ease)}
.menu-open .menu-panel ul a{transform:none;opacity:1}
.menu-panel li:nth-child(2) a{transition-delay:.05s}.menu-panel li:nth-child(3) a{transition-delay:.1s}
.menu-panel li:nth-child(4) a{transition-delay:.15s}.menu-panel li:nth-child(5) a{transition-delay:.2s}
.menu-panel .menu-contact{color:var(--on-dark);font-size:1rem;display:grid;gap:4px}
.menu-panel .menu-contact a{color:#fff;font-weight:500;padding-block:12px;text-underline-offset:4px}
.menu-open{overflow:hidden}

/* ---------- hero: the headline and its line, then the photo of the dredgers across the column ---------- */
.hero{background:var(--overcast)}
.hero-inner{gap:clamp(20px,3.5svh,40px)}
.hero-copy{display:grid;grid-template-columns:minmax(0,auto) minmax(0,26rem);align-items:end;justify-content:space-between;gap:20px clamp(32px,5vw,80px)}
.hero h1{font-size:clamp(2.4rem,1rem + 3vw,4rem)}
.line{display:block;overflow:hidden;padding-bottom:.08em;margin-bottom:-.08em}
.line>span{display:block;animation:fadeUp .5s var(--ease) both}
.line+.line>span{animation-delay:50ms}
.hero-sub{display:grid;gap:20px;padding-bottom:.3rem;animation:fadeUp .5s var(--ease) .1s both}
.hero-sub>p:first-child{color:var(--soft);font-size:clamp(1rem,1.1vw,1.125rem)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:12px 28px}
.hero-link{font-weight:500}
/* the photo keeps to the column at about the size the picture holds, instead of stretching across the screen */
.hero-scene{position:relative;animation:fadeUp .5s var(--ease) .2s both}
.hero-scene img{display:block;width:100%;height:auto;aspect-ratio:16/9;max-height:46svh;object-fit:cover;object-position:50% 64%;border-radius:12px;background:var(--white)}
.hero-scene figcaption{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:5px 12px;border-radius:999px;background:rgba(6,20,28,.78);color:#fff;font-size:.8125rem;line-height:1.4}
.text-btn{flex:none;border:0;background:none;padding:12px 0;font:inherit;font-size:.8125rem;font-weight:500;color:inherit;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
@keyframes fadeUp{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}

/* ---------- process: four snap stops, one per step ---------- */
.process{background:var(--channel);color:#fff}
.process-track{position:relative}
.process-stage{position:relative;height:100svh;display:grid;grid-template-columns:3.4fr 8.6fr;gap:clamp(32px,5vw,72px);align-items:center;padding-top:var(--nav);padding-bottom:2vh;transform-origin:50% 30%}
.process h2.display{font-size:clamp(1.9rem,3.3vw,3.1rem)}
.steps{--row:48px;--slot:104px;list-style:none;position:relative;margin-top:32px;padding-left:28px;padding-bottom:var(--slot)}
.steps::before,.steps::after{content:"";position:absolute;left:0;top:8px;width:2px;border-radius:2px}
.steps::before{bottom:8px;background:var(--hair-dark)}
.steps::after{bottom:8px;transform-origin:top;transform:scaleY(var(--p,0));background:#fff}
/* every heading sits in a fixed row; the steps after the open one slide down by one text slot (main.js measures it) */
.step{position:relative;height:var(--row);display:flex;align-items:center;transition:transform .4s var(--ease)}
.step.on~.step{transform:translateY(var(--slot))}
.step h3{font-stretch:112%;font-weight:500;font-size:1.25rem;line-height:1.6;opacity:.5;transition:opacity .3s var(--ease)}
.step.on h3{opacity:1}
.step .body{position:absolute;left:0;right:0;top:calc(var(--row) - 4px);opacity:0;transition:opacity .3s var(--ease)}
.step.on .body{opacity:1;transition-delay:.1s}
.step .body p{color:var(--on-dark);font-size:.9375rem;max-width:27em}
.step-btn{padding:0;border:0;background:none;font:inherit;color:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
.step:not(.on) h3:hover{opacity:.8}
.proc-pause{margin:8px 0 0 28px;color:var(--on-dark);font-size:.875rem}
.diagram svg{transition:opacity .3s var(--ease)}
.diagram.fade svg{opacity:0}
/* the drawing bleeds off the right edge of the screen */
.diagram{margin-right:calc((100vw - min(100vw, var(--max))) / -2 - var(--gut))}
.diagram svg{width:100%;height:auto;-webkit-mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(#000 76%,transparent);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent,#000 6%,#000 94%,transparent),linear-gradient(#000 76%,transparent);mask-composite:intersect}
.pr-surface{fill:none;stroke:var(--river);stroke-width:2}
.pr-bed{fill:none;stroke:rgba(255,255,255,.7);stroke-width:2}
.pr-design{stroke:var(--ladder);stroke-width:2;stroke-dasharray:10 8}
.pr-ink{fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.pr-solid{fill:var(--channel);stroke:#fff;stroke-width:2;stroke-linejoin:round}
.pr-acc{fill:none;stroke:var(--ladder);stroke-linecap:round;stroke-linejoin:round}
.pr-lbl{fill:rgba(255,255,255,.7);font-size:17px;font-family:Archivo,system-ui,sans-serif}

/* ---------- what we do: a schedule of works, every line of service with its drawing ---------- */
.caps{background:var(--overcast)}
.caps-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 48px;flex-wrap:wrap}
.caps-head .lede{margin-top:0;max-width:30em}
.caps-aside{display:flex;align-items:flex-end;gap:8px 32px}
.works-list{list-style:none;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:clamp(24px,4vw,64px);margin-top:clamp(16px,3vh,36px);border-top:2px solid var(--ink)}
.work{display:grid;grid-template-columns:clamp(132px,13vw,196px) minmax(0,1fr);gap:20px;align-items:center;padding-block:clamp(8px,1.6svh,18px);border-bottom:1px solid rgba(11,36,51,.14)}
.work-art svg{width:100%;height:auto;max-height:clamp(60px,9.5svh,100px)}
.work h3{font-stretch:112%;font-weight:500;font-size:clamp(1rem,1.15vw,1.1875rem);line-height:1.3}
.work-text ul{list-style:none;margin-top:4px;color:var(--soft);font-size:.9375rem;line-height:1.42}
.work-cta{grid-template-columns:minmax(0,1fr)}
.work-cta p{margin-top:4px;color:var(--soft);font-size:.9375rem;line-height:1.42}
.work-cta .btn{margin-top:12px;height:44px}
.dw *{vector-effect:non-scaling-stroke}
.dw{fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.dw .acc{stroke:var(--ochre)}
.dw .thick{stroke-width:7}
.dw .wl{stroke:#2f7aa6;stroke-width:3;stroke-dasharray:36 8}
.dw .water{fill:rgba(47,122,166,.24);stroke:none}
.dw .hatch{fill:url(#hatch-ink)}
.dw .sand{fill:url(#sand)}
.dw .dash{stroke-dasharray:6 6;opacity:.85}
.dw .flow{stroke-dasharray:8 12}
.dw .lbl{fill:currentColor;font-size:24px;font-family:Archivo,system-ui,sans-serif;paint-order:stroke;stroke:#fff;stroke-width:5px;stroke-linejoin:round}
.dw .cutter{transform-box:fill-box;transform-origin:center}
.dw .road{stroke:#fff;stroke-width:2;stroke-dasharray:10 12}
.dw .pulse{stroke:var(--ladder);stroke-width:5;stroke-dasharray:3 57}
.dw .slurry{stroke:var(--channel);stroke-width:3.5;stroke-dasharray:0 11}
.dw .runoff{stroke:#2f7aa6;stroke-width:2.5;stroke-dasharray:5 9}
/* each drawing shows its work while What we do is on screen: the cutter turns and slurry climbs the ladder and runs
   ashore, product runs through the pipeline, water rises to the tank and out to the town, runoff trickles down the
   gabions, power runs along the lines, traffic moves on the road and the water ripples. All of it stops when the
   section leaves the screen, when you press Pause, and with reduced motion */
.is-in .work .cutter{animation:spin 3s linear infinite}
.is-in .work .flow{animation:flow 1.1s linear infinite}
.is-in .work .pipe{animation:dots .9s linear infinite}
.is-in .work .wl{animation:ripple 2.6s linear infinite}
.is-in .work .road{animation:road 1.2s linear infinite}
.is-in .work .pulse{animation:pulse 1.8s linear infinite}
.is-in .work .slurry{animation:slurry .9s linear infinite}
.is-in .work .runoff{animation:runoff 1.4s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
@keyframes flow{to{stroke-dashoffset:-40}}
@keyframes dots{to{stroke-dashoffset:-28}}
@keyframes ripple{to{stroke-dashoffset:-44}}
@keyframes road{to{stroke-dashoffset:-22}}
@keyframes pulse{to{stroke-dashoffset:-60}}
@keyframes slurry{to{stroke-dashoffset:-22}}
@keyframes runoff{to{stroke-dashoffset:-28}}.dw .callout{display:none}
.caps.is-paused .work .dw *{animation-play-state:paused}

/* ---------- fleet: two rows of photos drift in opposite directions ---------- */
.fleet{background:var(--white)}
.fleet-inner{gap:clamp(24px,4vh,40px)}
.fleet-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 48px;width:100%}
.fleet-head .lede{margin-top:0;max-width:28em}
.fleet-rows{display:grid;gap:16px}
/* rows clip only sideways, so the photo under the pointer can grow out of its row */
.fleet-row{position:relative;min-width:0;overflow:hidden}
@supports (overflow:clip){.fleet-row{overflow-x:clip;overflow-y:visible}}
.fleet-row:hover{z-index:1}
.fleet-track{display:flex;gap:16px;width:max-content;list-style:none;animation:drift 80s linear infinite}
.fleet-track.back{animation-name:drift-back}
.fleet-track li{flex:none;width:320px;height:224px}
.fleet-card{position:relative;display:block;width:100%;height:100%;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--overcast);cursor:zoom-in;transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.fleet-card:focus-visible{border-radius:12px}
.fleet-card img{width:100%;height:100%;object-fit:cover}
.fleet-card span{position:absolute;left:12px;bottom:12px;max-width:calc(100% - 24px);padding:4px 8px;border-radius:6px;background:rgba(6,20,28,.72);color:#fff;font-size:.8125rem;line-height:1.4;text-align:left}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .fleet-track .fleet-card:hover{z-index:1;transform:scale(1.5);box-shadow:var(--lift)}
}
.fleet-rows:hover .fleet-track,.fleet.is-paused .fleet-track,.fleet:not(.is-in) .fleet-track{animation-play-state:paused}
@keyframes drift{to{transform:translateX(calc(-50% - 8px))}}
@keyframes drift-back{from{transform:translateX(calc(-50% - 8px))}to{transform:none}}
.fleet-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px 24px;width:100%}
.fleet-foot p{color:var(--soft);font-size:.9375rem}
.fleet-foot .text-btn{font-size:.9375rem}
.fleet-actions{display:flex;align-items:center;gap:8px 24px}
/* one photo large, or every fleet photo in a grid */
/* scrolling stays inside an open dialog instead of moving the page behind it (no lock on the root, so no layout shift) */
dialog:modal{overscroll-behavior:contain}
dialog::backdrop{overflow:hidden;overscroll-behavior:contain}
.gallery,.lightbox{position:fixed;inset:0;width:auto;height:auto;max-width:none;max-height:none;margin:0;border:0;background:var(--night);color:#fff}
.gallery::backdrop,.lightbox::backdrop{background:rgba(6,20,28,.6)}
.gallery :focus-visible,.lightbox :focus-visible{outline-color:var(--ladder)}
.gallery{padding:0 0 40px;overflow-y:auto;overscroll-behavior:contain}
.gallery-head{position:sticky;top:0;z-index:2;display:flex;align-items:center;justify-content:space-between;gap:16px;padding-block:16px;background:var(--night)}
.gallery-head h2{font-stretch:112%;font-weight:500;font-size:1.25rem;line-height:1.3}
.gallery-head p{color:var(--on-dark);font-size:.875rem}
.gallery-grid{list-style:none;display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px}
.gallery-grid li{aspect-ratio:4/3}
.gallery .fleet-card{background:var(--channel)}
.gallery .fleet-card img{transition:transform .35s var(--ease)}
.gallery .fleet-card:hover img{transform:scale(1.04)}
.lightbox{padding:clamp(16px,4vw,48px);background:rgba(6,20,28,.96);cursor:zoom-out}
.lightbox[open]{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px}
.lightbox img{min-height:0;max-height:calc(100% - 64px);object-fit:contain;animation:zoomIn .35s var(--ease)}
.lightbox-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:12px 24px;font-size:.9375rem}
.facts-body{display:grid;gap:40px;padding-top:8px}
.facts-body .figures{margin-top:0}
.facts-cols{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:32px 48px}
.facts-cols h3{margin-bottom:16px;font-stretch:112%;font-weight:500;font-size:1.125rem;line-height:1.3}
.facts-list{display:grid;gap:14px;list-style:none;color:var(--on-dark);font-size:.9375rem;line-height:1.5}
.facts-list b{display:block;color:#fff;font-weight:500}
@keyframes zoomIn{from{opacity:0;transform:scale(.94)}to{opacity:1;transform:none}}

/* ---------- certificates of completion ---------- */
.certs{background:var(--night);color:#fff}
.certs-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 48px}
.certs-head .lede{margin-top:0;max-width:30em}
.cert-grid{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:20px;margin-top:clamp(24px,5vh,48px);list-style:none}
.cert{position:relative;display:block;width:100%;padding:0;border:0;border-radius:8px;overflow:hidden;background:#fff;cursor:zoom-in;box-shadow:0 1px 2px rgba(0,0,0,.3),0 12px 32px rgba(0,0,0,.35);transition:transform .35s var(--ease),box-shadow .35s var(--ease)}
.cert img{width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:top}
/* a View label on every certificate says it opens; it stays on touch screens, where there is no hover */
.cert-view{position:absolute;right:8px;bottom:8px;display:flex;align-items:center;gap:4px;padding:4px 10px 4px 8px;border-radius:999px;background:rgba(6,20,28,.82);color:#fff;font-size:.75rem;font-weight:500;line-height:1.4}
.cert-view svg{width:14px;height:14px}
@media (hover:hover) and (prefers-reduced-motion:no-preference){.cert:hover{transform:translateY(-6px)}}
/* laptop screens and wider: the certificate under the pointer, or in keyboard focus, pops up larger */
@media (hover:hover) and (min-width:1280px) and (prefers-reduced-motion:no-preference){
  .cert-grid .cert:hover,.cert-grid .cert:focus-visible{z-index:2;transform:scale(1.6);box-shadow:0 2px 4px rgba(0,0,0,.35),0 24px 56px rgba(0,0,0,.55)}
  .cert-grid li:first-child .cert{transform-origin:left center}
  .cert-grid li:last-child .cert{transform-origin:right center}
}
.cert-grid h3{margin-top:14px;font-weight:500;font-size:.9375rem;line-height:1.35}
.cert-grid p{margin-top:4px;color:var(--on-dark);font-size:.8125rem;line-height:1.5}
.cert-mini{width:72px;border-radius:4px}
/* below laptop width the certificates scroll sideways in one row */
@media (max-width:1279px){
  .cert-grid{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:minmax(200px,28%);overflow-x:auto;scroll-snap-type:x mandatory;overscroll-behavior-x:contain;scrollbar-width:thin;margin-inline:calc(var(--gut) * -1);padding:8px var(--gut) 16px;scroll-padding-inline:var(--gut)}
  .cert-grid li{scroll-snap-align:start}
}

/* ---------- river niger map ---------- */
.niger{background:var(--night);color:#fff}
.niger h2.display{font-size:clamp(1.9rem,3.1vw,2.9rem)}
.niger-grid{display:grid;grid-template-columns:7fr 5fr;gap:32px clamp(32px,5vw,80px);align-items:center;align-content:center}
.map{position:relative;aspect-ratio:960/790;width:min(100%,calc((100svh - var(--nav) - 12vh - var(--strip,0px)) * 960 / 790));margin-inline:auto}
.map>svg{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.ng{fill:#0e2a3a;stroke:rgba(255,255,255,.26);stroke-width:1;vector-effect:non-scaling-stroke}
.rv,.lot5{fill:none;stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke}
.rv{stroke:var(--river);stroke-width:1.8;opacity:.85}
.lot5{stroke:var(--ladder);stroke-width:5}
.zoom-box{fill:none;stroke:var(--ladder);stroke-width:1.2;stroke-dasharray:4 4;vector-effect:non-scaling-stroke;opacity:.8}
.js .map .rv,.js .map .lot5{stroke-dasharray:1;stroke-dashoffset:1}
.js .is-in .map .rv{stroke-dashoffset:0;transition:stroke-dashoffset 1.2s var(--ease) .2s}
.js .is-in .map .lot5{stroke-dashoffset:0;transition:stroke-dashoffset .6s var(--ease) 1s}
.pin{position:absolute;left:calc(var(--x) * 100%);top:calc(var(--y) * 100%);width:12px;height:12px;margin:-6px 0 0 -6px}
.pin::before{content:"";position:absolute;inset:0;border-radius:50%;background:#fff;box-shadow:0 0 0 4px rgba(255,255,255,.16)}
.pin.tag::before{display:none}
.pin.tag b{color:var(--ladder)}
.pin.place::before{inset:2px;background:transparent;box-shadow:inset 0 0 0 2px rgba(255,255,255,.75)}
.pin.place b{font-weight:400;color:var(--on-dark)}
/* map labels keep a halo of the background so river lines never cut through them */
.pin b,.pin small{position:absolute;left:20px;white-space:nowrap;line-height:1.25;text-shadow:0 0 2px var(--night),0 0 3px var(--night),0 0 6px var(--night)}
.pin b{top:-5px;font-weight:500;font-size:.875rem}
.pin small{top:14px;font-size:.75rem;color:var(--on-dark)}
.pin.left b,.pin.left small{left:auto;right:20px;text-align:right}
.js .map .pin,.js .map .inset{opacity:0;transform:scale(.6);transition:opacity .4s var(--ease),transform .4s var(--ease)}
.js .map .inset{transform:translateY(12px)}
.js .is-in .map .pin{opacity:1;transform:none;transition-delay:calc(1.1s + var(--i) * 50ms)}
.js .is-in .map .inset{opacity:1;transform:none;transition-delay:1.4s}
.inset{position:absolute;right:0;bottom:2%;width:36%;border-radius:10px;background:var(--channel);box-shadow:0 12px 40px rgba(0,0,0,.45),inset 0 0 0 1px rgba(242,183,5,.45);overflow:hidden}
.inset svg{width:100%;height:auto}
.inset .irv{fill:none;stroke:var(--river);stroke-width:5;stroke-linecap:round;stroke-linejoin:round;opacity:.9}
.inset .ilot{fill:none;stroke:var(--ladder);stroke-width:6;stroke-linecap:round;stroke-linejoin:round}
.inset text{font-family:Archivo,system-ui,sans-serif;fill:#fff;font-size:15px;font-weight:500;paint-order:stroke;stroke:var(--channel);stroke-width:5px;stroke-linejoin:round}
.inset .it-river{fill:var(--river);font-style:italic;font-weight:400;font-size:13px}
.inset .it-title{font-size:18px;font-weight:500;fill:var(--ladder)}
.inset .it-scale{font-size:12px;font-weight:400;fill:var(--on-dark)}
.figures{display:flex;flex-wrap:wrap;gap:24px 28px;margin-top:32px;padding-top:24px;border-top:1px solid var(--hair-dark)}
.figures div{display:flex;flex-direction:column-reverse;gap:8px}
.figures dt{font-size:.875rem;color:var(--on-dark)}
.niger-more{margin-top:24px}
.figures dd{font-stretch:125%;font-weight:500;font-size:clamp(1.375rem,1.9vw,1.75rem);line-height:1;font-variant-numeric:tabular-nums}
/* site photos under the map, only where the screen is tall enough to keep the map readable */
.niger-photos{display:none;grid-column:1/-1;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.niger-photos img{width:100%;height:auto;aspect-ratio:2/1;object-fit:cover;border-radius:12px}
.niger-photos figcaption{margin-top:8px;font-size:.8125rem;line-height:1.5;color:var(--on-dark)}
@media (min-width:1021px) and (min-height:800px){.niger{--strip:280px}.niger-photos{display:grid}}

/* ---------- selected projects ---------- */
.projects{background:var(--overcast)}
.projects-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:12px 48px}
.projects-head .lede{margin-top:0;max-width:26em}
.projects-body{display:grid;grid-template-columns:5fr 7fr;gap:32px 48px;align-items:start;margin-top:clamp(20px,4vh,40px)}
.lead-project{border-radius:14px;overflow:hidden;background:var(--channel);color:#fff;box-shadow:var(--lift)}
.lead-project img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover}
.lead-text{display:grid;gap:20px;padding:24px}
.lead-text h3,.project-list h3{font-stretch:112%;font-weight:500;font-size:1.25rem;line-height:1.3}
.lead-text p{margin-top:8px;color:var(--on-dark);font-size:.9375rem;line-height:1.5}
.lead-text dl{display:flex;flex-wrap:wrap;gap:16px 48px}
.lead-text dt{font-size:.8125rem;color:var(--on-dark)}
.lead-text dd{margin-top:4px;font-stretch:125%;font-weight:500;font-size:2rem;line-height:1;font-variant-numeric:tabular-nums}
.project-list{list-style:none;border-bottom:1px solid var(--hair)}
.project-list li{display:grid;grid-template-columns:88px minmax(0,1fr);gap:4px 24px;padding:20px 0;border-top:1px solid var(--hair)}
.project-list .yr{font-size:.9375rem;line-height:1.6;color:var(--soft);font-variant-numeric:tabular-nums}
.project-list h3{font-size:1.1875rem}
.project-list p{font-size:.9375rem;line-height:1.5}
.project-list .who{margin-top:4px;color:var(--soft)}

/* ---------- record ---------- */
.record{background:var(--white)}
.numbers{display:flex;flex-wrap:wrap;justify-content:space-between;gap:24px 40px;margin-top:clamp(24px,5vh,56px)}
.numbers b{display:block;font-stretch:125%;font-weight:500;font-size:clamp(1.75rem,3.2vw,3rem);letter-spacing:-.02em;line-height:1;font-variant-numeric:tabular-nums}
.numbers div>span{display:block;margin-top:8px;color:var(--soft);font-size:.9375rem;max-width:13em}
.timeline{position:relative;display:grid;grid-template-columns:repeat(4,1fr);gap:24px;list-style:none;margin-top:clamp(36px,8vh,88px);padding-top:36px}
.timeline::before,.timeline::after{content:"";position:absolute;left:0;right:0;top:0;height:2px;border-radius:2px}
.timeline::before{background:var(--hair)}
.timeline::after{background:var(--ink);transform-origin:left;transform:scaleX(0);transition:transform 1.2s var(--ease) .2s}
.is-in .timeline::after{transform:scaleX(1)}
.timeline li{position:relative}
.timeline li::before{content:"";position:absolute;top:-42px;left:0;width:14px;height:14px;border-radius:50%;background:var(--white);box-shadow:inset 0 0 0 2px var(--hair);transition:background-color .3s var(--ease),box-shadow .3s var(--ease)}
.is-in .timeline li::before{background:var(--ink);box-shadow:inset 0 0 0 2px var(--ink);transition-delay:calc(var(--i) * 100ms + .2s)}
.timeline h3{font-stretch:125%;font-weight:500;font-size:1.5rem;line-height:1.1}
.timeline p{color:var(--soft);font-size:.9375rem;line-height:1.5;margin-top:8px;max-width:20em}

/* ---------- contact ---------- */
.contact{background:var(--overcast);border-top:1px solid var(--hair)}
.contact-grid{display:grid;grid-template-columns:5fr 7fr;gap:clamp(32px,5vw,80px);align-items:center;align-content:center}
.mail{display:inline-block;margin-top:16px;padding:8px 0 12px;font-stretch:112%;font-weight:500;font-size:clamp(1.125rem,1.5vw,1.25rem);text-decoration:none;background:linear-gradient(var(--ink),var(--ink)) left calc(100% - 4px)/100% 2px no-repeat;transition:background-size .2s var(--ease)}
.mail:hover{background-size:0 2px;background-position:right calc(100% - 4px)}
.phones{display:flex;flex-wrap:wrap;gap:0 20px;margin-top:4px;font-size:.9375rem}
.phones a{padding:8px 0;text-decoration:none;font-variant-numeric:tabular-nums}
.phones a:hover{text-decoration:underline;text-underline-offset:4px}
.phones .profile-link{font-weight:500;text-decoration:underline;text-underline-offset:4px}
.clients{margin-top:clamp(20px,4vh,40px);color:var(--soft);font-size:.9375rem}
.clients span{color:var(--ink);font-weight:500}
.offices{display:grid;grid-template-columns:1fr 1fr;gap:20px 32px;margin-top:24px}
@media (min-width:641px) and (max-width:1020px){.offices{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px 24px}}
.offices h3{font-size:.9375rem;font-weight:500}
.offices p{color:var(--soft);font-size:.875rem;line-height:1.5;margin-top:2px}
.form{background:var(--white);border-radius:14px;padding:32px;box-shadow:var(--lift);display:grid;grid-template-columns:1fr 1fr;gap:16px}
.form .full{grid-column:1/-1}
.field{display:grid;gap:4px;align-content:start}
.form label{display:grid;gap:8px;font-size:.875rem;font-weight:500}
.form label .opt{font-weight:400;color:var(--soft)}
.form select{height:48px}
.form input,.form select,.form textarea{width:100%;min-height:48px;font:inherit;font-size:1rem;line-height:24px;font-weight:400;color:var(--ink);caret-color:var(--ink);background:#fbfcfc;border:1px solid var(--field);border-radius:8px;padding:11px 15px;transition:border-color .15s var(--ease),background-color .15s var(--ease)}
.form input:hover,.form select:hover,.form textarea:hover{border-color:#566872}
.form input:focus,.form select:focus,.form textarea:focus{outline:2px solid var(--ink);outline-offset:1px;background:#fff;border-color:var(--ink)}
.form [aria-invalid="true"]{border-color:var(--error);background:#fff7f6}
.form [aria-invalid="true"]:focus{outline-color:var(--error)}
.field-error{font-size:.8125rem;font-weight:500;color:var(--error)}
.field-error:empty{display:none}
.form textarea{min-height:min(120px,14svh);resize:vertical}
.form-actions{grid-column:1/-1;display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px}
.form-note{grid-column:1/-1;color:var(--ink);font-size:.9375rem;line-height:1.5}
.form-note:empty{display:none}
.copy-btn{border:0;background:none;padding:12px 0;font-weight:500;font-size:.9375rem;text-decoration:underline;text-underline-offset:4px;cursor:pointer}
.copy-btn[hidden]{display:none}
.form-privacy{grid-column:1/-1;font-size:.8125rem;line-height:1.5;color:var(--soft)}
/* spam trap: invisible to people, filled in by bots, rejected by FormSubmit */
.trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}

/* ---------- footer ---------- */
.footer{position:relative;background:var(--night);color:var(--on-dark);padding-top:clamp(56px,7vw,96px);padding-bottom:36px;scroll-snap-align:start;scroll-margin-top:var(--nav)}
.foot-brand{color:#fff;font-stretch:125%;font-weight:600;font-size:clamp(1.25rem,2vw,1.5rem);line-height:1.2}
.foot-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:32px;margin-top:32px;padding-top:32px;border-top:1px solid var(--hair-dark);font-size:.9375rem}
.foot-grid h3{color:#fff;font-size:.9375rem;font-weight:500;margin-bottom:8px}
.foot-grid ul{list-style:none;display:grid;gap:8px}
.foot-grid a{text-decoration:none;transition:color .15s var(--ease)}
.foot-grid a:hover{color:#fff}
.legal{margin-top:48px;font-size:.8125rem;color:rgba(255,255,255,.55)}

/* ---------- responsive ---------- */
/* very large monitors: a wider column and slightly larger type, so the page doesn't shrink into the middle */
/* short laptop screens: slightly smaller fleet photos so the screen keeps its buttons */
@media (min-width:1021px) and (max-height:760px){.fleet-track li{width:288px;height:200px}}
@media (min-width:1800px){
  :root{--max:1480px}
  body{font-size:18px}
}
@media (max-width:1020px){
  .hero-copy{grid-template-columns:1fr}
  .hero-sub{max-width:36rem;padding-bottom:0}
  .works-list{grid-template-columns:1fr}
  .work{grid-template-columns:120px minmax(0,1fr);padding-block:6px}
  .work-art svg{max-height:56px}
  .work-text ul{font-size:.875rem;line-height:1.35}
  .work-cta{display:none}
  .links{display:none}
  .menu-btn{display:block}
  .process-stage{grid-template-columns:1fr;align-content:center;gap:16px;padding-top:calc(var(--nav) + 8px)}
  .process-copy{display:contents}
  .process-stage h2{order:0}
  .diagram{order:1;margin-inline:calc(var(--gut) * -1)}
  .steps{order:2;margin-top:0}
  .proc-pause{order:3}
  .steps{--row:36px}
  .step h3{font-size:1.0625rem}
  .pr-lbl,.dw .callout{display:none}
  .niger-grid{grid-template-columns:1fr;gap:20px}
  .projects-body{grid-template-columns:1fr}
  .lead-project img{display:none}
  .fleet-track li{width:280px;height:196px}
  .map{width:min(100%,calc(46svh * 960 / 790))}
  .contact-grid{grid-template-columns:1fr;gap:24px}
  .foot-grid{grid-template-columns:1fr 1fr}
  .facts-cols{grid-template-columns:1fr}
}
@media (max-width:640px){
  :root{--nav:60px}
  body{font-size:16px}
  .offices,.inset,.zoom-box{display:none}
  .caps-head .lede{max-width:none}
  .hero-copy{gap:16px}
  .hero-scene img{aspect-ratio:3/2}
  .hero-sub{gap:16px}
  /* the pause sits by the heading; the lede takes the next row */
  .caps-head{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px 16px}
  .caps-aside{display:contents}
  .caps-head .lede{grid-column:1/-1;grid-row:2}
  #what-pause{grid-column:2;grid-row:1;padding-block:8px}
  .work{grid-template-columns:80px minmax(0,1fr);gap:12px;padding-block:7px}
  .work-art svg{max-height:40px}
  .work h3{font-size:.9375rem;line-height:1.25}
  .work-text ul{margin-top:2px;font-size:.75rem;line-height:1.3}
  .numbers{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:16px}
  .numbers>div{grid-column:span 2}
  .numbers>.extra{grid-column:span 3}
  .numbers b{font-size:1.75rem}
  .numbers .extra b{font-size:1.25rem}
  .clients{font-size:.875rem}
  .numbers div>span{font-size:.8125rem}
  .timeline{grid-template-columns:1fr;gap:16px;padding:0 0 0 32px;margin-top:28px}
  .timeline::before,.timeline::after{left:6px;right:auto;top:6px;bottom:6px;width:2px;height:auto}
  .timeline::after{transform-origin:top;transform:scaleY(0)}
  .is-in .timeline::after{transform:scaleY(1)}
  .timeline li::before{top:4px;left:-32px}
  .timeline h3{font-size:1.125rem}
  .timeline p{font-size:.875rem;margin-top:2px}
  .form{grid-template-columns:1fr 1fr;gap:8px 12px;padding:16px}
  .form label{gap:4px}
  .mail{margin-top:8px}
  .figures{gap:12px 24px;margin-top:16px;padding-top:16px}
  .figures dd{font-size:1.375rem}
  .niger-more{margin-top:16px;height:44px}
  .niger .map{width:min(88%,calc(46svh * 960 / 790))}
  .fleet-track li{width:240px;height:168px}
  .gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
  .cert-grid{grid-auto-columns:62%;scrollbar-width:none}
  .cert-grid::-webkit-scrollbar{display:none}
  .fleet-foot p{display:none}
  .phones a{padding:4px 0}
  .lead-text p{display:none}
  .lead-text{gap:12px;padding:20px}
  .lead-text dd{font-size:1.5rem}
  .lead-text dl{gap:12px 32px}
  .project-list li{grid-template-columns:64px minmax(0,1fr);padding:12px 0}
  .project-list li:nth-child(4){display:none}
  .form .f-email,.form .f-type,.form .full{grid-column:1/-1}
  .form input,.form select,.form textarea{min-height:44px;padding:9px 11px}
  .form select{height:44px}
  .form textarea{min-height:72px}
  .pin b{font-size:.75rem}.pin small{display:none}
  .foot-grid{gap:20px 24px;padding-top:24px;margin-top:24px}
  .foot-grid ul{gap:0}
  .foot-grid a{display:inline-block;padding-block:12px}
  .legal{margin-top:28px}
}
/* short phones: drop secondary lines so each section still fits */
@media (max-width:640px) and (max-height:780px){
  /* the hero keeps its photo on screen: less room above, a shorter photo, a slightly smaller line */
  .hero-inner{gap:14px;padding-top:calc(var(--nav) + 10px);padding-bottom:16px}
  .hero-scene img{max-height:26svh}
  .hero-sub>p:first-child{font-size:.9375rem}
  .caps .screen-inner{padding-top:calc(var(--nav) + 8px);padding-bottom:12px}
  .caps-head .lede{font-size:.8125rem;line-height:1.4}
  .works-list{margin-top:10px}
  .work{grid-template-columns:64px minmax(0,1fr);gap:10px;padding-block:4px}
  .work h3{font-size:.875rem}
  .work-text ul{font-size:.6875rem}
  .contact .lede,.record .lede,.niger-grid .figures,.contact .mail,.hero-scene figcaption,.projects .lede,.project-list li:nth-child(3),.timeline li:nth-child(4){display:none}
  .form textarea{min-height:56px}
  .form-privacy{font-size:.75rem}
  .timeline{gap:12px}
}
/* the shortest phones: What we do keeps all its lines with smaller drawings and rows */
@media (max-width:640px) and (max-height:700px){
  .work{grid-template-columns:56px minmax(0,1fr);padding-block:3px}
  .work-art svg{max-height:32px}
  .work h3{font-size:.8125rem}
}
/* short screens (landscape phones): normal scrolling */
@media (max-height:560px){
  html{scroll-snap-type:none}
  .screen{min-height:0}
}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .fleet-row{overflow-x:auto}
  #fleet-pause,.proc-pause,#what-pause{display:none}
  .js .scene [data-pop],.js .map .pin,.js .map .inset{opacity:1;transform:none}
  .js .map .rv,.js .map .lot5{stroke-dashoffset:0}
  .timeline::after{transform:none!important}
  .timeline li::before{background:var(--ink);box-shadow:inset 0 0 0 2px var(--ink)}
}

/* ---------- modern platform touches ---------- */

/* a thin line under the bar fills as you go down the page; decorative, so browsers without scroll timelines skip it */
@media (prefers-reduced-motion:no-preference){
  @supports (animation-timeline:scroll()){
    .nav::after{content:"";position:absolute;inset:auto 0 0;height:2px;background:var(--ladder);transform-origin:0 50%;animation:grow-progress auto linear;animation-timeline:scroll(root)}
    [data-theme="light"] .nav::after{background:var(--ochre)}
    @keyframes grow-progress{from{transform:scaleX(0)}to{transform:scaleX(1)}}
  }
}

/* the nav underline slides from link to link as the sections change */
@supports (position-anchor:auto){
  .links a[aria-current="true"]{anchor-name:--current}
  .links::before{content:"";position:absolute;position-anchor:--current;top:calc(anchor(bottom) + 6px);left:anchor(left);right:anchor(right);border-top:2px solid currentColor;border-radius:2px;pointer-events:none}
  .links:not(:has([aria-current="true"]))::before{opacity:0}
}
@media (prefers-reduced-motion:no-preference){
  @supports (position-anchor:auto){.links::before{transition:inset .35s var(--ease),opacity .2s var(--ease)}}
}

/* the section you leave sinks back as the next one slides over it, on the scroll position itself */
@media (prefers-reduced-motion:no-preference){
  @supports ((animation-timeline:view()) and (animation-range:entry)){
    main>.screen{view-timeline:--leave block}
    main>.screen:not(#contact)>.screen-inner,#stage{animation:recede auto linear forwards;animation-timeline:--leave;animation-range:exit}
    @keyframes recede{to{transform:translate3d(0,10vh,0) scale(.95);opacity:.4}}
  }
}

/* a photo or certificate grows out of the picture you pressed and shrinks back into it */
::view-transition-group(photo){animation-duration:.4s;animation-timing-function:var(--ease)}
::view-transition-old(photo),::view-transition-new(photo){height:100%;object-fit:cover;overflow:clip}
.lightbox.morph img{animation:none}
html:has(dialog[open]) .fleet-track{animation-play-state:paused}
@media (prefers-reduced-motion:reduce){
  ::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}
}

/* Lot 5 in detail is a panel over the page: tap outside it, press Esc or Close to put it away */
.sheet{inset:0 0 0 auto;width:min(1080px,calc(100vw - 32px));border-left:1px solid var(--hair-dark);box-shadow:-24px 0 64px rgba(0,0,0,.35)}
.sheet .wrap{max-width:none}
/* the fleet photos and the Lot 5 panel fade in and out of the top layer; the panel slides from the right */
dialog.gallery{opacity:0;transition-property:opacity,translate,display,overlay;transition-duration:.35s;transition-timing-function:var(--ease);transition-behavior:allow-discrete}
dialog.gallery::backdrop{opacity:0;transition-property:opacity,display,overlay;transition-duration:.35s;transition-behavior:allow-discrete}
.sheet::backdrop{background:rgba(6,20,28,.55)}
:is(dialog.gallery[open]):where(:not([data-closing])){opacity:1}
:is(dialog.gallery[open]):where(:not([data-closing]))::backdrop{opacity:1}
@starting-style{
  :is(dialog.gallery[open]):where(:not([data-closing])){opacity:0}
  :is(dialog.gallery[open]):where(:not([data-closing]))::backdrop{opacity:0}
}
@media (prefers-reduced-motion:no-preference){
  dialog.gallery{translate:0 24px}
  dialog.sheet{translate:100% 0}
  :is(dialog.gallery[open]):where(:not([data-closing])){translate:0 0}
  @starting-style{
    :is(dialog.gallery[open]):where(:not([data-closing])){translate:0 24px}
    :is(dialog.sheet[open]):where(:not([data-closing])){translate:100% 0}
  }
}
/* with reduced motion the panels still fade, briefly, instead of jumping */
@media (prefers-reduced-motion:reduce){
  dialog.gallery,dialog.gallery::backdrop{transition-property:opacity,display,overlay!important;transition-duration:.1s!important;transition-behavior:allow-discrete!important}
}

/* the enquiry box grows with the message, up to a point, then scrolls */
.form textarea{field-sizing:content;max-height:min(32svh,280px)}

/* ---------- an arrow at each edge of a section with more above or below it ---------- */
.cue{position:absolute;left:50%;z-index:5;display:grid;place-items:center;width:44px;height:26px;margin-left:-22px;color:inherit;opacity:.9;transition:opacity .2s var(--ease)}
.cue:hover{opacity:1}
.cue svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2.25;stroke-linecap:round;stroke-linejoin:round}
.cue-down{bottom:0}
/* tucked against the bar, so it stays clear of headings on short screens */
.cue-up{top:calc(var(--nav) - 4px)}
.footer .cue-up{top:4px}
/* three nudges in its direction when the section arrives, then it rests (under five seconds in all) */
@media (prefers-reduced-motion:no-preference){
  :is(.is-in,:has(.is-in))>.cue-down svg{animation:nudge-down 1.3s var(--ease) .5s 3}
  :is(.is-in,:has(.is-in))>.cue-up svg{animation:nudge-up 1.3s var(--ease) .5s 3}
}
@keyframes nudge-down{50%{transform:translateY(5px)}}
@keyframes nudge-up{50%{transform:translateY(-5px)}}
/* short phones: What we do fills the screen to both edges, so its arrows would sit on its list; and the hero's
   photo and line get a little smaller so the hero still fits */
@media (max-width:640px) and (max-height:700px){
  #what>.cue{display:none}
  .hero-scene img{max-height:20svh}
  .hero-sub>p:first-child{font-size:.875rem;line-height:1.5}
}
