/* ==========================================================================
   Fourtrex Engineering
   Layout language follows the TCD reference: light-weight display type,
   sentence case, pill buttons, generous radii, airy white space.
   Palette is Fourtrex's own — the logo blue does the work TCD's #0080FF does.
   ========================================================================== */

:root{
  /* Brand */
  --blue:#338DEF;          /* Fourtrex logo blue — primary action */
  --blue-dark:#1A5596;     /* hover */
  --blue-ink:#2167B0;      /* accessible blue — small text & filled buttons (5.79:1 on white) */
  --blue-tint:#E8F2FD;     /* pale blue surface */
  /* The dark family follows the October 2026 navy of the letterheads, email
     banner and ads (#1C3159 -> #14254A -> #0F1A2E). The token names are kept so
     every existing use follows. Action blue #2167B0 is never text on these. */
  --slate:#1C3159;         /* brand navy — buttons, dark panels, footer (white 12.9:1) */
  --slate-lift:#223565;    /* Fourtrex Deep Blue — lighter stop for the dark gradients */
  --navy-mid:#14254A;      /* middle stop of the brand navy gradient */
  --ink:#0F1A2E;           /* deepest navy, gradient ends */
  --navy:#223565;          /* Fourtrex Deep Blue (same value as --slate-lift) */
  --sky:#8DB3F2;           /* the one light blue for small text on navy: 6.0:1 on #1C3159, 5.6:1 on #223565 */
  --navy-grad:linear-gradient(160deg,var(--slate) 0%,var(--navy-mid) 55%,var(--ink) 100%);
  --contours:url(/assets/img/texture/contour-lines-v1.svg);
  --mist:#F2F6FA;          /* quiet light surface */
  --body:#4F5B68;          /* body text: 6.9:1 on white, 6.4:1 on mist */
  --heading:#1B2434;       /* heading text */
  --line:#E3EAF2;

  /* Type — swap these for Yapari / Aktiv Grotesk Ex when licensed files land */
  --font-display:'Poppins',Arial,Helvetica,sans-serif;
  --font-body:'Poppins',Arial,Helvetica,sans-serif;

  /* Small text uses these steps only. Fourteen near-identical sizes between
     .78 and 1.06rem made small text look accidental rather than ranked. */
  --fs-label:.8rem;        /* tracked uppercase kickers and fact-strip labels; .8rem is the floor for phones */
  --fs-xs:.8rem;           /* tags, menu numbers */
  --fs-sm:.88rem;          /* crumbs, meta lines, captions, footer, small links */
  --fs-base:1rem;          /* body, nav, buttons, form labels */
  --fs-md:1.05rem;         /* small headings (h4, menu titles, strip labels) */

  --wrap:1300px;
  --gut:clamp(20px,5vw,60px);
  --sec:clamp(64px,8vw,120px);

  /* Tighter than the old 24/40px so panels read engineered rather than app-like,
     closer to the square-edged print pieces. Buttons and tags stay pills. */
  --r-sm:10px;
  --r-md:clamp(12px,1.4vw,16px);
  --r-lg:clamp(16px,2vw,24px);     /* scales down so phone-width panels are not over-rounded */
  --r-pill:50px;
  --ease:cubic-bezier(.2,.6,.2,1);
  --shadow:0 24px 60px -30px rgba(27,36,52,.35);
}

*,*::before,*::after{box-sizing:border-box}
/* Author display values (.pcard, .card, .btn ...) beat the UA [hidden] rule at
   origin level, so the attribute has to be restated here or JS hiding silently no-ops. */
[hidden]{display:none!important}
/* scroll-padding keeps focused fields, skip-link targets and #anchors clear of
   the 88px sticky header. */
html{-webkit-text-size-adjust:100%;scroll-behavior:smooth;scrollbar-gutter:stable;scroll-padding-top:104px}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{
    animation-duration:.001ms!important;animation-delay:0ms!important;animation-iteration-count:1!important;
    transition-duration:.001ms!important;transition-delay:0ms!important;
  }
}

/* Page-to-page crossfade: progressive enhancement for Chrome/Edge 126+ and
   Safari 18.2+; other browsers simply load the next page. The header has its
   own name, so it is captured separately and holds still while the page under
   it crossfades in about 0.2 s. The reduced-motion rule above does not reach
   the ::view-transition pseudo-elements, so the whole block sits behind
   no-preference. Same-document transitions (the project filter) use it too. */
@media (prefers-reduced-motion:no-preference){
  @view-transition{navigation:auto}
  .hdr{view-transition-name:site-header}
  ::view-transition-group(*){animation-duration:.2s}
  ::view-transition-old(root){animation:120ms cubic-bezier(.4,0,1,1) both vt-out}
  ::view-transition-new(root){animation:200ms var(--ease) both vt-in}
}
@keyframes vt-out{to{opacity:0}}
@keyframes vt-in{from{opacity:0}}

body{
  margin:0;
  font-family:var(--font-body);
  font-size:1rem;
  font-weight:400;
  line-height:1.7;
  color:var(--body);
  background:#fff;
  -webkit-font-smoothing:antialiased;
}

img,svg,video{max-width:100%;height:auto;display:block}
h1,h2,h3,h4{font-family:var(--font-display);color:var(--heading);margin:0}
/* Balanced headings stop single words being stranded ("Talk / to Fourtrex.");
   pretty wrapping keeps paragraphs off one-word last lines where supported. */
h1,h2,h3,h4,.h3,.h4,.mega__title{text-wrap:balance}
p,li,figcaption{text-wrap:pretty}
p{margin:0}
ul,ol{margin:0;padding:0;list-style:none}
a{color:inherit;text-decoration:none}
button{font:inherit;color:inherit}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
/* #338DEF is 2.99:1 on the pale callouts and toolbox results; the accessible blue is 5.1:1 there.
   Callouts on navy keep the light ring. */
.callout :focus-visible,.tool__out :focus-visible{outline-color:var(--blue-ink)}
.section--slate .callout :focus-visible,.section--ink .callout :focus-visible{outline-color:var(--sky)}

.skip{position:absolute;left:-9999px;top:0;z-index:200;background:var(--blue-ink);color:#fff;padding:14px 22px;border-radius:0 0 var(--r-sm) 0;font-weight:500}
.skip:focus{left:0}

/* ---------------- layout ---------------- */
.wrap{width:100%;max-width:var(--wrap);margin-inline:auto;padding-inline:var(--gut)}
.section{padding-block:var(--sec)}
.section--tight{padding-block:clamp(44px,5.5vw,72px)}
.section--mist{background:var(--mist)}
.section--tint{background:var(--blue-tint)}
/* Navy bands are plain navy (Calm + Navy, 8 Nov): no contour lines. */
.section--slate{
  background:var(--navy-grad);
  background-color:var(--slate);color:rgba(255,255,255,.78)
}
.section--ink{background:var(--ink);color:rgba(255,255,255,.75)}
.section--slate h1,.section--slate h2,.section--slate h3,.section--slate h4,
.section--ink h1,.section--ink h2,.section--ink h3,.section--ink h4{color:#fff}

/* ---------------- type ----------------
   TCD's move: large, LIGHT weight, sentence case, roomy line-height. */
.display{
  font-size:clamp(2.35rem,5vw,3.6rem);
  font-weight:300;
  line-height:1.14;
  letter-spacing:-.015em;
  color:var(--heading);
  text-wrap:balance;
}
.h2{font-size:clamp(1.75rem,3.4vw,2.75rem);font-weight:300;line-height:1.15;letter-spacing:-.015em;text-wrap:balance}
.h3{font-size:clamp(1.25rem,1.7vw,1.5rem);font-weight:500;line-height:1.4;letter-spacing:-.005em}
.h4{font-size:var(--fs-md);font-weight:500;line-height:1.45}
.blue{color:var(--blue)}
.section--slate .blue,.section--ink .blue{color:var(--sky)}

.lead{font-size:clamp(1.02rem,1.25vw,1.15rem);line-height:1.72;max-width:62ch;text-wrap:pretty}
.section--slate .lead,.section--ink .lead{color:rgba(255,255,255,.8)}
.section-head{max-width:70ch;margin-bottom:clamp(34px,4vw,56px)}
.section-head .lead{margin-top:20px}
.measure{max-width:64ch}

/* ---------------- buttons: pill, arrow in a circular badge ---------------- */
.btn{
  display:inline-flex;align-items:center;gap:14px;
  padding:9px 10px 9px 26px;min-height:52px;
  background:var(--slate);color:#fff;border:1px solid var(--slate);
  border-radius:var(--r-pill);font-size:var(--fs-base);font-weight:400;line-height:1.2;cursor:pointer;
  transition:background .22s var(--ease),border-color .22s var(--ease),color .22s var(--ease);
}
.btn .arw{
  flex:none;width:34px;height:34px;border-radius:50%;
  background:#fff;color:var(--slate);
  display:inline-flex;align-items:center;justify-content:center;font-size:.95rem;
  transition:transform .22s var(--ease),background .22s var(--ease),color .22s var(--ease);
}
.btn:hover{background:var(--blue-ink);border-color:var(--blue-ink)}
.btn:hover .arw{transform:translateX(3px);color:var(--blue-ink)}

.btn--blue{background:var(--blue-ink);border-color:var(--blue-ink)}
.btn--blue .arw{color:var(--blue-ink)}
.btn--blue:hover{background:var(--slate);border-color:var(--slate)}
.btn--blue:hover .arw{color:var(--slate)}

.btn--light{background:#fff;border-color:#fff;color:var(--slate)}
.btn--light .arw{background:var(--slate);color:#fff}
.btn--light:hover{background:var(--blue-ink);border-color:var(--blue-ink);color:#fff}
.btn--light:hover .arw{background:#fff;color:var(--blue-ink)}

.btn--outline{background:transparent;border-color:rgba(28,49,89,.3);color:var(--heading)}
.btn--outline .arw{background:var(--slate);color:#fff}
.btn--outline:hover{background:var(--slate);border-color:var(--slate);color:#fff}
.btn--outline:hover .arw{background:#fff;color:var(--slate)}

.btn--ghost{background:transparent;border-color:rgba(255,255,255,.4);color:#fff}
.btn--ghost .arw{background:#fff;color:var(--slate)}
.btn--ghost:hover{background:#fff;border-color:#fff;color:var(--slate)}

.btn--plain{padding:9px 26px}
.btn--plain .arw{display:none}

.btn-row{display:flex;flex-wrap:wrap;gap:14px;margin-top:34px}

.txtlink{display:inline-flex;align-items:center;gap:10px;font-weight:500;font-size:var(--fs-sm);color:var(--blue-ink)}
.txtlink .arw{transition:transform .2s var(--ease)}
.txtlink:hover .arw{transform:translateX(4px)}
.section--slate .txtlink,.section--ink .txtlink{color:var(--sky)}

/* ---------------- header ---------------- */
.hdr{position:sticky;top:0;z-index:100;background:#fff;border-bottom:1px solid var(--line)}
.hdr__bar{display:flex;align-items:center;gap:20px;min-height:88px}
.hdr__logo{flex:none;display:block;padding-block:14px}
.hdr__logo svg,.hdr__logo img{height:36px;width:auto}

/* Stretched to the full header height so there is no dead strip below the
   Services button — travelling into the menu used to cross it and fire
   mouseleave, closing the panel before the cursor arrived. */
.nav{margin-left:auto;display:flex;align-items:center;gap:2px;align-self:stretch}
.nav__link{
  display:inline-flex;align-items:center;gap:7px;padding:12px 16px;min-height:44px;
  font-size:var(--fs-base);font-weight:400;color:var(--heading);
  background:none;border:0;border-radius:var(--r-pill);cursor:pointer;
  transition:background .18s var(--ease),color .18s var(--ease);
}
.nav__link:hover,.nav__link[aria-current]{background:var(--blue-tint);color:var(--blue-ink)}
.nav__cta{margin-left:14px}

.nav__group{position:relative;align-self:stretch;display:flex;align-items:center}
.nav__group .chev{transition:transform .2s var(--ease)}
.nav__group[data-open="true"] .chev{transform:rotate(180deg)}
.nav__group[data-open="true"]>.nav__link{background:var(--blue-tint);color:var(--blue-ink)}

.nav__menu{
  position:absolute;top:100%;left:0;min-width:340px;background:#fff;
  border:1px solid var(--line);border-radius:var(--r-md);
  box-shadow:var(--shadow);padding:10px;display:none;
}
.nav__group[data-open="true"] .nav__menu{display:block}

.burger{display:none;margin-left:auto;width:48px;height:48px;align-items:center;justify-content:center;background:var(--mist);border:0;border-radius:50%;cursor:pointer}
.burger span{display:block;width:19px;height:2px;background:var(--heading);position:relative;border-radius:2px}
.burger span::before,.burger span::after{content:"";position:absolute;left:0;width:19px;height:2px;background:var(--heading);border-radius:2px}
.burger span::before{top:-6px}
.burger span::after{top:6px}

@media (max-width:1160px){
  .burger{display:flex}
  .nav{
    display:none;position:absolute;top:100%;left:0;right:0;background:#fff;
    border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch;gap:0;
    padding:12px var(--gut) 28px;max-height:calc(100dvh - 88px);overflow-y:auto;box-shadow:var(--shadow);
  }
  .hdr[data-nav="open"] .nav{display:flex}
  .nav__link{border-radius:var(--r-sm);padding:15px 14px;justify-content:space-between;width:100%}
  .nav__group{position:static;align-self:auto;display:block}
  .nav__cta{margin:20px 0 0;justify-content:center}
}

/* ---------------- mega menu ---------------- */
.nav__group--mega{position:static}
.nav__menu--mega{
  position:absolute;top:100%;left:0;right:0;min-width:0;
  border:0;border-radius:0 0 var(--r-lg) var(--r-lg);border-top:1px solid var(--line);
  box-shadow:var(--shadow);padding:0;overflow:hidden;
}
.mega{display:grid;grid-template-columns:repeat(4,1fr);gap:0;padding-block:clamp(28px,3vw,42px)}
.mega__item{display:flex;flex-direction:column;padding:4px 24px 4px 0;border-right:1px solid var(--line);margin-right:24px;border-radius:var(--r-sm)}
.mega__item:last-child{border-right:0;margin-right:0;padding-right:0}
.mega__num{font-size:var(--fs-xs);font-weight:500;color:var(--blue-ink);margin-bottom:12px}
.mega__title{font-family:var(--font-display);font-size:var(--fs-md);font-weight:500;color:var(--heading);line-height:1.3;margin-bottom:10px}
.mega__desc{font-size:var(--fs-sm);line-height:1.6;color:var(--body);margin-bottom:16px}
.mega__go{margin-top:auto;font-size:var(--fs-sm);font-weight:500;color:var(--blue-ink);display:inline-flex;align-items:center;gap:8px}
.mega__go .arw{transition:transform .2s var(--ease)}
.mega__item:hover .mega__title{color:var(--blue-ink)}
.mega__item:hover .mega__go .arw{transform:translateX(4px)}
.mega__foot{border-top:1px solid var(--line);background:var(--mist)}
.mega__foot .wrap{display:flex;flex-wrap:wrap;gap:14px 28px;align-items:center;justify-content:space-between;padding-block:18px}
.mega__foot p{font-size:var(--fs-sm)}

@media (max-width:1160px){
  .nav__menu--mega{position:static;border-radius:var(--r-sm);border-top:0;box-shadow:none;background:var(--mist);padding:6px 16px;margin:6px 0 10px}
  .nav__menu--mega .wrap{padding-inline:0;max-width:none}
  .mega{grid-template-columns:1fr;padding-block:4px}
  .mega__item{border-right:0;margin-right:0;padding:14px 0;border-bottom:1px solid var(--line);border-radius:0}
  .mega__item:last-child{border-bottom:0}
  .mega__desc{margin-bottom:8px}
  .mega__foot{background:transparent}
  .mega__foot .wrap{padding-block:12px}
}

/* ---------------- media slot ----------------
   Photography drops in with:  style="--img:url(/assets/img/x.jpg)" */
/* Until photography lands, empty slots read as branded panels rather than gaps:
   the gradient stays on the slot and the supplied outline-F sits on its own
   layer above it. Setting --img covers the placeholder and hides the mark. */
.media{
  position:relative;overflow:hidden;border-radius:var(--r-lg);background:var(--slate);
  background-image:
    linear-gradient(118deg,rgba(51,141,239,.30) 0 22%,transparent 22%),
    linear-gradient(118deg,transparent 0 58%,rgba(51,141,239,.16) 58% 76%,transparent 76%),
    linear-gradient(155deg,var(--slate-lift) 0%,var(--ink) 100%);
  background-size:auto,auto,auto;
  background-position:center,center,center;
  background-repeat:no-repeat;
}
.media__mark{
  position:absolute;z-index:0;inset:-18%;pointer-events:none;
  background:url(/assets/img/logo/fourtrex-icon-watermark.svg) center/76% auto no-repeat;
  opacity:.34;transform:none;
  transform-origin:center;contain:paint
}
.media[style*="--img"]>.media__mark{display:none}
.media::after{content:"";position:absolute;z-index:1;inset:0;background-image:var(--img,none);background-size:cover;background-position:var(--pos,center)}
.media>img,.panel__img>img{width:100%;height:100%;max-width:none;object-fit:cover;object-position:var(--pos,center)}
.media--ratio{aspect-ratio:16/10}
.media--tall{aspect-ratio:4/5}
.media--round{aspect-ratio:1;border-radius:50%}
.media--round>img{border-radius:50%}
.media--wide{aspect-ratio:21/9}
.media--sm{border-radius:var(--r-md)}

/* ---------------- hero ---------------- */
.hero{padding-block:clamp(44px,6vw,80px) clamp(52px,7vw,96px)}
.hero__grid{display:grid;grid-template-columns:1.02fr .98fr;gap:clamp(32px,4.5vw,68px);align-items:center}
@media (max-width:1000px){.hero__grid{grid-template-columns:1fr;gap:40px}}
.hero .display{margin-bottom:18px}
.hero__slogan{
  display:flex;align-items:center;gap:14px;margin-bottom:22px;
  font-family:var(--font-display);font-weight:500;font-size:clamp(1.02rem,1.5vw,1.2rem);
  letter-spacing:.02em;line-height:1.35;color:var(--blue)
}
.hero__slogan::before{content:"";flex:none;width:30px;height:2px;background:currentColor}
@media (max-width:700px){.hero__slogan{gap:11px;margin-bottom:18px}.hero__slogan::before{width:22px}}

/* interior page hero */
.phero{background:var(--mist);border-bottom:1px solid var(--line)}
.phero__inner{padding-block:clamp(40px,5.5vw,76px)}
/* Page titles now clearly outrank section headings (.h2 caps at 2.75rem); they
   used to be fractionally smaller than their own H2s. */
.phero h1{font-size:clamp(2.3rem,5vw,3.75rem);font-weight:300;line-height:1.15;letter-spacing:-.015em;max-width:22ch;text-wrap:balance}
.phero .lead{margin-top:22px}
.phero--slate{background:var(--slate);border-bottom:0;color:rgba(255,255,255,.8)}
.phero--slate h1{color:#fff}

/* Navy title band for the text-only pages (About, Equipment, Safety & Quality,
   Careers, Contact, 404). They have no photograph, so instead of a pale field
   with an empty right half they take the capability statement cover: navy
   gradient, still contour lines, and the outline F fully inside the band. */
.phero--navy{
  position:relative;isolation:isolate;overflow:hidden;border-bottom:0;
  background:var(--navy-grad);
  background-color:var(--slate);color:rgba(255,255,255,.84)
}
.phero--navy .phero__inner{
  position:relative;display:flex;flex-direction:column;justify-content:center;
  min-height:clamp(320px,34vw,440px)
}
.phero--navy h1{color:#fff;max-width:min(22ch,64%)}
.phero--navy .lead{color:rgba(255,255,255,.84);max-width:min(62ch,60%)}
.phero--navy .btn-row{margin-top:30px}
@media (max-width:900px){
  .phero--navy h1{max-width:22ch}
  .phero--navy .lead{max-width:62ch}
  .phero--navy .phero__inner{min-height:0}
}

/* Linked-image hero: the approved image on a card or pill continues into the
   page it opens. The photograph is decorative because the adjacent hero copy
   names the service or project. */
.phero--image{
  position:relative;isolation:isolate;overflow:hidden;display:flex;
  min-height:clamp(520px,52vw,680px);background:var(--slate);border-bottom:0;
  color:rgba(255,255,255,.84)
}
.phero--image::before{
  content:"";position:absolute;z-index:-2;inset:0;pointer-events:none;
  background-color:var(--slate);background-image:var(--phero-img);
  background-size:var(--phero-fit,cover);background-position:var(--phero-pos,center);background-repeat:no-repeat
}
.phero--image::after{
  content:"";position:absolute;z-index:-1;inset:0;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(12,19,35,.5) 0,rgba(12,19,35,0) 200px),
    linear-gradient(90deg,rgba(12,19,35,.96) 0%,rgba(12,19,35,.9) 34%,rgba(12,19,35,.62) 48%,rgba(12,19,35,.12) 70%,rgba(12,19,35,.04) 100%),
    linear-gradient(180deg,rgba(12,19,35,.04) 48%,rgba(12,19,35,.32) 100%)
}
.phero--image .phero__inner{
  position:relative;z-index:1;display:flex;flex-direction:column;justify-content:var(--phero-content-y,center);
  width:100%;min-height:inherit
}
.phero--image h1{color:#fff;text-shadow:0 2px 28px rgba(4,12,24,.24)}
.phero--image .lead{color:rgba(255,255,255,.86);max-width:66ch}
@media (min-width:701px){
  /* Fill the screen below the header, never more, and grow with the copy so
     nothing is clipped on narrow tablets. */
  .phero--image{aspect-ratio:auto;min-height:min(75vw,max(560px,calc(100svh - 89px)))}
  .phero--image h1{max-width:17ch}
  .phero--image .lead{max-width:42%}
}
@media (max-width:700px){
  /* Phones fade the photo into the same near-black navy the desktop overlay
     uses (12,19,35), easing in over the lower half of the photo band rather
     than snapping to brand blue. */
  .phero--image{
    --phero-band:var(--phero-mobile-space,min(75vw,420px));
    display:block;min-height:0;aspect-ratio:auto;background:#0C1323
  }
  .phero--image.phero--fill{--phero-band:var(--phero-mobile-space,min(108vw,470px))}
  .phero--image::before{
    background-color:#0C1323;
    z-index:-2;inset:0 0 auto;height:var(--phero-mobile-space,min(75vw,420px));max-height:none;
    background-image:var(--phero-img);background-size:var(--phero-mobile-fit,contain);
    background-position:var(--phero-mobile-pos,center top);
    background-repeat:no-repeat
  }
  .phero--image::after{
    z-index:-1;background:
      linear-gradient(180deg,rgba(12,19,35,.6) 0,rgba(12,19,35,0) 140px),
      linear-gradient(180deg,rgba(12,19,35,0) calc(var(--phero-band) * .4),rgba(12,19,35,.38) calc(var(--phero-band) * .65),rgba(12,19,35,.78) calc(var(--phero-band) * .86),#0C1323 var(--phero-band))
  }
  .phero--image .phero__inner{
    min-height:0;padding-block:calc(var(--phero-mobile-space,min(75vw,420px)) + 30px) 52px
  }
  /* Portrait sources sit tiny inside a contain band. These fill the band edge to
     edge and use the page's own focal point, the way the homepage hero does. */
  .phero--image.phero--fill::before{
    height:var(--phero-mobile-space,min(108vw,470px));
    background-size:cover;
    background-position:var(--phero-mobile-pos,var(--phero-pos,center))
  }
  .phero--image.phero--fill .phero__inner{
    padding-block:calc(var(--phero-mobile-space,min(108vw,470px)) + 30px) 52px
  }
}

/* ---------------- breadcrumbs ---------------- */
.crumbs{font-size:var(--fs-sm);margin-bottom:22px;color:var(--body)}
.crumbs ol{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.crumbs a{color:var(--blue-ink)}
.crumbs a:hover{text-decoration:underline}
/* The separator trails the crumb before it, so a wrapped trail never starts a
   line with a stray slash on a phone. */
.crumbs li:not(:last-child)::after{content:"/";content:"/" / "";margin-left:8px;color:#B8C4D2}
.phero--slate .crumbs{color:rgba(255,255,255,.6)}
.phero--slate .crumbs a{color:var(--sky)}
.phero--image .crumbs{color:rgba(255,255,255,.68)}
.phero--image .crumbs a{color:var(--sky)}
.phero--navy .crumbs{color:rgba(255,255,255,.72)}
.phero--navy .crumbs a{color:var(--sky)}
.phero--navy .crumbs li:not(:last-child)::after,
.phero--image .crumbs li:not(:last-child)::after{color:rgba(255,255,255,.4)}

/* ---------------- process ---------------- */
.process{display:grid;grid-template-columns:repeat(4,1fr);gap:clamp(18px,2.2vw,28px)}
/* Four steps: one row of 4 on wide screens, 2 + 2 on tablets, stacked on phones. */
@media (max-width:1100px){.process{grid-template-columns:repeat(2,1fr)}}
@media (max-width:620px){.process{grid-template-columns:1fr}}
.process article{background:#fff;border:1px solid var(--line);border-radius:var(--r-md);padding:clamp(26px,2.8vw,36px)}
.process b{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--blue-tint);color:var(--blue-ink);font-weight:500;font-size:var(--fs-sm);margin-bottom:20px}
.process h3{margin-bottom:12px}

/* ---------------- service division (TCD pattern) ---------------- */
.division__head{display:grid;grid-template-columns:1.1fr .9fr;gap:clamp(24px,4vw,60px);align-items:end;margin-bottom:clamp(32px,4vw,52px)}
@media (max-width:900px){.division__head{grid-template-columns:1fr;align-items:start;gap:24px}}
.division__head .btn-row{margin-top:0}
@media (min-width:901px){.division__head .btn-row{justify-content:flex-end}}

.panels{display:grid;grid-template-columns:1fr 1fr;gap:clamp(18px,2.2vw,28px)}
@media (max-width:900px){.panels{grid-template-columns:1fr}}

.panel{
  position:relative;display:flex;flex-direction:column;justify-content:flex-end;
  min-height:clamp(380px,42vw,500px);padding:clamp(28px,3.2vw,44px);
  color:#fff;overflow:hidden;border-radius:var(--r-lg);background:var(--slate);isolation:isolate;
}
/* The photo and static gradient stay on the media layer. Empty panels receive a
   separate outline-F layer; the inline --img convention switches that layer off. */
.panel__img{
  position:absolute;inset:0;z-index:-2;
  background-image:
    var(--img,none),
    linear-gradient(118deg,rgba(51,141,239,.34) 0 22%,transparent 22%),
    linear-gradient(118deg,transparent 0 58%,rgba(51,141,239,.18) 58% 76%,transparent 76%),
    linear-gradient(155deg,var(--slate-lift),var(--ink));
  background-size:cover,auto,auto,auto;
  background-position:center,center,center,center;
  background-repeat:no-repeat;
  transition:transform .6s var(--ease);
}
.panel__mark{
  position:absolute;inset:-18%;pointer-events:none;
  background:url(/assets/img/logo/fourtrex-icon-watermark.svg) center/74% auto no-repeat;
  opacity:.34;transform:none;
  transform-origin:center;contain:paint
}
.panel[style*="--img"] .panel__mark,.panel__img[style*="--img"]>.panel__mark{display:none}
.panel::after{content:"";position:absolute;inset:0;z-index:-1;background:linear-gradient(180deg,rgba(12,19,35,.42) 0%,rgba(12,19,35,.74) 58%,rgba(12,19,35,.93) 100%)}
.panel:hover .panel__img{transform:scale(1.04)}
.panel__num{position:absolute;top:clamp(24px,2.8vw,34px);right:clamp(24px,2.8vw,34px);width:44px;height:44px;border-radius:50%;background:rgba(255,255,255,.14);display:flex;align-items:center;justify-content:center;font-size:var(--fs-sm);font-weight:500;color:#fff}
.panel h3{color:#fff;font-size:clamp(1.6rem,2.5vw,2.15rem);font-weight:400;line-height:1.2;margin-bottom:14px}
.panel p{color:rgba(255,255,255,.82);max-width:46ch}
.panel__tags{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0 24px}
.panel__tags li{font-size:var(--fs-xs);color:rgba(255,255,255,.9);border:1px solid rgba(255,255,255,.28);border-radius:var(--r-pill);padding:6px 14px}
.panel .txtlink{color:#fff}
.panel:hover .txtlink{color:var(--sky)}
@media (max-width:560px){.panel h3{padding-inline-end:58px}}
/* Side by side, the two panels share their rows (subgrid), so the headings,
   text, tags and links line up even when one panel's tags wrap to a second
   row (Emilio, 12 Nov). Browsers without subgrid keep the stacked layout. */
@supports (grid-template-rows:subgrid){
  @media (min-width:901px){
    .panels{grid-template-rows:1fr repeat(4,auto);min-height:clamp(380px,42vw,500px)}
    .panel{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:0;align-content:end}
    .panel>h3{grid-row:2}
    .panel>p{grid-row:3}
    .panel>.panel__tags{grid-row:4;align-self:start}
    .panel>.txtlink{grid-row:5}
  }
}

@supports (background-image:image-set(url("/assets/img/og/fourtrex-og-default.jpg") 1x)){
  .media::after{background-image:var(--img-set,var(--img,none))}
  .panel__img{
    background-image:
      var(--img-set,var(--img,none)),
      linear-gradient(118deg,rgba(51,141,239,.34) 0 22%,transparent 22%),
      linear-gradient(118deg,transparent 0 58%,rgba(51,141,239,.18) 58% 76%,transparent 76%),
      linear-gradient(155deg,var(--slate-lift),var(--ink))
  }
}

/* supporting cards */
.cards{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2.2vw,28px);margin-top:clamp(18px,2.2vw,28px)}
/* A row of two cards splits evenly instead of leaving an empty third column
   (the service rows have two cards since Field Support was removed). */
@media (min-width:901px){.cards:has(> :nth-child(2):last-child){grid-template-columns:repeat(2,1fr)}}
@media (max-width:900px){.cards{grid-template-columns:1fr}}
.card{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-md);padding:clamp(26px,2.8vw,36px);
  transition:border-color .22s var(--ease),transform .22s var(--ease),box-shadow .22s var(--ease);
}
.card:hover{border-color:var(--blue);transform:translateY(-4px);box-shadow:var(--shadow)}
.card__num{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border-radius:50%;background:var(--blue-tint);color:var(--blue-ink);font-weight:500;font-size:var(--fs-sm);margin-bottom:20px}
.card h3{margin-bottom:12px}
.card p{margin-bottom:22px}
.card .txtlink{margin-top:auto}

/* ---------------- capability list ---------------- */
.caps{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(24px,4vw,52px)}
@media (max-width:720px){.caps{grid-template-columns:1fr}}
.caps li{display:flex;gap:14px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.caps li::before{
  content:"";flex:none;width:20px;height:20px;margin-top:4px;border-radius:50%;
  background:var(--blue-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%232167B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/12px no-repeat;
}
.section--slate .caps li,.section--ink .caps li{border-bottom-color:rgba(255,255,255,.16);color:rgba(255,255,255,.82)}
.section--slate .caps li::before,.section--ink .caps li::before{
  background-color:rgba(255,255,255,.14);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2 6.2l2.6 2.6L10 3.4' fill='none' stroke='%238DB3F2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
}
/* Lists of things not yet confirmed: a plain dot, never a tick. */
.caps--plain li::before,.section--slate .caps--plain li::before,.section--ink .caps--plain li::before{
  width:7px;height:7px;margin:10px 6px 0 7px;background-image:none
}

/* ---------------- document downloads ---------------- */
.docs{display:grid;grid-template-columns:repeat(2,1fr);gap:0 clamp(24px,4vw,52px)}
@media (max-width:720px){.docs{grid-template-columns:1fr}}
.docs a{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:16px 0;border-bottom:1px solid var(--line);color:var(--heading);font-weight:500;transition:color .2s var(--ease)}
.docs a:hover{color:var(--blue-ink)}
.docs__meta{flex:none;font-size:var(--fs-sm);font-weight:600;letter-spacing:.04em;color:var(--blue-ink);border:1px solid var(--line);border-radius:var(--r-pill);padding:3px 10px}

/* ---------------- split ---------------- */
.split{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,4.5vw,72px);align-items:start}
@media (max-width:900px){
  .split{grid-template-columns:1fr;gap:40px}
  /* Stacked, every portrait sits above its own name and bio (About). */
  .split>.media--round{order:-1}
}
.split--center{align-items:center}
/* A round portrait has no width of its own until its lazy image loads, so it
   sat at 0 x 0 and the page jumped when the photo arrived. */
.split>.media--round{width:100%}

.callout{background:var(--blue-tint);border-radius:var(--r-lg);padding:clamp(28px,3vw,42px)}
.section--slate .callout,.section--ink .callout{background:rgba(255,255,255,.06)}
.callout h3{margin-bottom:18px}

/* ---------------- projects ---------------- */
.projects{display:grid;grid-template-columns:repeat(2,1fr);gap:clamp(18px,2.2vw,28px)}
@media (max-width:820px){.projects{grid-template-columns:1fr}}
/* A lone last card (one project on a service page, or the third of three)
   spans the row with its photo beside the text, instead of leaving half the
   grid empty. */
@media (min-width:821px){
  .projects>.pcard:last-child:nth-child(odd){grid-column:1/-1;display:grid;grid-template-columns:1fr 1fr}
  .projects>.pcard:last-child:nth-child(odd) .media--ratio{height:100%;aspect-ratio:auto}
  /* Same for an On site gallery photo left alone on the last row (Stage 2 has
     one photo, Mardie three): it runs the full width, letterbox-cropped. */
  .projects>.media--ratio:last-child:nth-child(odd){grid-column:1/-1;aspect-ratio:21/9}
}
.pcard{
  display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);
  border-radius:var(--r-lg);overflow:hidden;
  transition:border-color .22s var(--ease),transform .22s var(--ease),box-shadow .22s var(--ease);
}
.pcard:hover{border-color:var(--blue);transform:translateY(-4px);box-shadow:var(--shadow)}
.pcard .media{border-radius:0}
.pcard__body{padding:clamp(24px,2.6vw,34px);display:flex;flex-direction:column;flex:1}
.pcard__meta{font-size:var(--fs-sm);color:var(--blue-ink);font-weight:500;margin-bottom:12px}
.pcard h3{margin-bottom:14px}
.pcard p{margin-bottom:22px}
.pcard .txtlink{margin-top:auto}
.tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:18px}
.tags li{font-size:var(--fs-xs);color:var(--slate);background:var(--mist);border-radius:var(--r-pill);padding:6px 14px}

/* ---------------- proof strip ---------------- */
.strip{display:grid;grid-template-columns:repeat(4,1fr);gap:0;background:#fff;border:1px solid var(--line);border-radius:var(--r-lg);overflow:hidden}
.strip div{padding:clamp(26px,2.8vw,36px);border-right:1px solid var(--line)}
.strip div:last-child{border-right:0}
.strip strong{display:block;font-family:var(--font-display);font-weight:500;font-size:var(--fs-md);color:var(--heading);margin-bottom:6px}
.strip span{font-size:var(--fs-sm);line-height:1.6}
@media (max-width:900px){.strip{grid-template-columns:1fr 1fr}.strip div:nth-child(2){border-right:0}.strip div:nth-child(1),.strip div:nth-child(2){border-bottom:1px solid var(--line)}}
@media (max-width:560px){.strip{grid-template-columns:1fr}.strip div{border-right:0;border-bottom:1px solid var(--line)}.strip div:last-child{border-bottom:0}}

/* ---------------- CTA ---------------- */
.cta{background:var(--slate);color:rgba(255,255,255,.85);border-radius:var(--r-lg);overflow:hidden;position:relative;isolation:isolate}
/* One soft diagonal wedge (as on the ads) over the navy gradient and the still
   contour lines; the second band is gone, as two read busy on navy. */
.cta::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:
    /* plain navy: Emilio, 8 Nov */
    var(--navy-grad);
}
.cta h2{color:#fff}
.cta .lead{color:rgba(255,255,255,.85)}
.cta__inner{padding:clamp(44px,6vw,84px) clamp(28px,5vw,72px);display:grid;grid-template-columns:1.25fr .75fr;gap:clamp(28px,4vw,56px);align-items:center}
@media (max-width:900px){.cta__inner{grid-template-columns:1fr}}
/* ---------------- footer: laid out like the email banner ----------------
   Banner row: reversed logo and intro on the left; the two-weight slogan and
   the tracked services line on the right, over the still contour lines. Below
   it the links, kicker-style column labels, line icons for the contact lines
   and the shield before the licence numbers, as on the email signature. */
.ftr{
  background:linear-gradient(180deg,var(--slate) 0%,var(--navy-mid) 55%,var(--ink) 100%);
  background-color:var(--ink);
  color:rgba(255,255,255,.72);padding-block:clamp(44px,5.5vw,72px) 0;border-radius:var(--r-lg) var(--r-lg) 0 0
}
.ftr__banner{
  display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:28px clamp(28px,5vw,72px);
  padding-bottom:clamp(30px,3.6vw,46px);margin-bottom:clamp(30px,3.6vw,46px);border-bottom:1px solid rgba(255,255,255,.14)
}
.ftr__brand{flex:1 1 360px;max-width:52ch}
.ftr__logo{display:block}
.ftr__logo svg,.ftr__logo img{height:38px;width:auto;margin-bottom:22px}
.ftr__intro{font-size:var(--fs-sm);line-height:1.7}
.ftr__tag{flex:0 1 auto;text-align:right}
.ftr__slogan{
  font-family:var(--font-display);font-weight:300;font-size:clamp(1.35rem,2.1vw,1.8rem);
  line-height:1.2;letter-spacing:-.012em;color:#fff
}
.ftr__slogan b{font-weight:600;color:#fff}
.ftr__serv{margin-top:14px;font-size:var(--fs-label);font-weight:400;line-height:1.5;letter-spacing:.14em;text-transform:uppercase;color:var(--sky)}
.ftr__serv b{font-weight:600;color:#fff}
.ftr .ftr__h{
  margin-bottom:12px;font-family:var(--font-body);font-size:var(--fs-label);font-weight:600;line-height:1.4;
  letter-spacing:.14em;text-transform:uppercase;color:var(--sky)
}
.ftr__grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.35fr);gap:clamp(28px,4vw,52px)}
.ftr a{color:rgba(255,255,255,.76)}
.ftr a:hover{color:#fff}
.ftr li{padding:6px 0;font-size:var(--fs-sm)}
.ftr__ci li{display:flex;align-items:flex-start;gap:12px}
.ftr__ci li>a{gap:12px}
.ftr__ci li>.ftr__ico{margin-top:4px}
.ftr__ico{
  flex:none;width:18px;height:18px;color:var(--sky);
  fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round
}
.ftr__bottom{margin-top:clamp(36px,4.5vw,56px);border-top:1px solid rgba(255,255,255,.14);padding-block:24px;display:flex;flex-wrap:wrap;gap:12px 28px;justify-content:space-between;font-size:var(--fs-sm);color:rgba(255,255,255,.66)}
@media (max-width:760px){
  .ftr__tag{text-align:left}
}
/* Phones: two link columns side by side instead of one 1,300px list; the
   contact block spans both. */
@media (max-width:600px){
  .ftr__grid{grid-template-columns:1fr 1fr;gap:28px 20px}
  .ftr__grid>.ftr__contact{grid-column:1/-1}
}

/* ---------------- forms ---------------- */
.form{display:grid;grid-template-columns:1fr 1fr;gap:20px}
@media (max-width:700px){.form{grid-template-columns:1fr}}
.field{display:flex;flex-direction:column;gap:8px}
.field--full{grid-column:1/-1}
.form--stack{grid-template-columns:1fr}
.form--stack .btn{justify-self:start}
.field>.btn{align-self:flex-start}
.field label{font-size:var(--fs-base);font-weight:500;color:var(--heading)}
.field .req{color:var(--blue-ink)}
.field input,.field select,.field textarea{
  font:inherit;color:var(--heading);background:#fff;border:1px solid #7D8A9B;
  border-radius:var(--r-sm);padding:14px 18px;min-height:58px;width:100%;
  transition:border-color .18s var(--ease),box-shadow .18s var(--ease);
}
.field textarea{min-height:160px;resize:vertical;line-height:1.65}
.field input:focus,.field select:focus,.field textarea:focus{border-color:var(--blue-ink);box-shadow:0 0 0 1px var(--blue-ink);outline:none}
.field .hint{font-size:var(--fs-sm)}
.field .err{font-size:var(--fs-sm);color:#C0392B;font-weight:500;display:none}
.field[data-invalid="true"] input,.field[data-invalid="true"] select,.field[data-invalid="true"] textarea{border-color:#C0392B}
.field[data-invalid="true"] .err{display:block}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.formnote{font-size:var(--fs-sm);margin-top:18px}
.formstatus{grid-column:1/-1;padding:16px 20px;border-radius:var(--r-sm);background:var(--blue-tint);color:var(--slate);font-weight:500;display:none}
.formstatus[data-show="true"]{display:block}

/* ---------------- misc ---------------- */
.contact-list li{display:flex;gap:16px;align-items:baseline;padding:16px 0;border-bottom:1px solid var(--line)}
.contact-list li:last-child{border-bottom:0}
.contact-list strong{flex:none;width:104px;font-weight:500;color:var(--heading)}
.contact-list li>span{min-width:0}
/* On a narrow phone the label sits above its value, so a long email address
   has the card's full width instead of breaking out of it. */
@media (max-width:480px){.contact-list li{flex-direction:column;align-items:flex-start;gap:2px}}
.section--slate .contact-list li,.section--ink .contact-list li{border-bottom-color:rgba(255,255,255,.16)}
.section--slate .contact-list strong,.section--ink .contact-list strong{color:#fff}

.pending{display:inline-flex;align-items:center;gap:9px;font-size:var(--fs-sm);color:var(--body);border:1px dashed var(--line);border-radius:var(--r-pill);padding:8px 16px;background:var(--mist)}
.pending::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--blue);flex:none}
.section--slate .pending,.section--ink .pending{color:rgba(255,255,255,.75);background:rgba(255,255,255,.06);border-color:rgba(255,255,255,.22)}

.filters{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(30px,3.5vw,46px)}
.filters button{
  min-height:46px;padding:0 22px;background:#fff;border:1px solid var(--line);border-radius:var(--r-pill);
  font-size:var(--fs-sm);color:var(--heading);cursor:pointer;
  transition:background .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease);
}
.filters button:hover{border-color:var(--blue-ink);color:var(--blue-ink)}
.filters button[aria-pressed="true"]{background:var(--slate);border-color:var(--slate);color:#fff}

/* ---------------- pipeline toolbox (/tools/) ----------------
   One calculator on screen at a time, picked from a short row of pills that
   match the project filters. Inputs sit left, the answer right in a pale blue
   panel; on a phone the answer drops under the inputs. */
.tooltabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:clamp(30px,3.5vw,46px)}
.tooltabs button{
  min-height:46px;padding:0 22px;background:#fff;border:1px solid var(--line);border-radius:var(--r-pill);
  font-size:var(--fs-sm);color:var(--heading);cursor:pointer;
  transition:background .18s var(--ease),border-color .18s var(--ease),color .18s var(--ease);
}
.tooltabs button:hover{border-color:var(--blue-ink);color:var(--blue-ink)}
.tooltabs button[aria-selected="true"]{background:var(--slate);border-color:var(--slate);color:#fff}
.tool{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,4.5vw,72px);align-items:start}
.tool[hidden],.tool [hidden]{display:none}
.tool__intro{margin:10px 0 26px;max-width:52ch}
.tool__pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(104px,.7fr);gap:10px}
.tool__out{background:var(--blue-tint);border-radius:var(--r-lg);padding:clamp(28px,3vw,42px)}
.tool__out dl{margin:0}
.tool__out dl>div{display:flex;justify-content:space-between;align-items:baseline;gap:18px;padding:15px 0;border-bottom:1px solid rgba(33,103,176,.2)}
.tool__out dl>div:first-child{padding-top:0}
.tool__out dt{font-size:var(--fs-sm)}
.tool__out dd{margin:0;font-family:var(--font-display);font-weight:500;font-size:clamp(1.15rem,1.7vw,1.45rem);line-height:1.3;color:var(--heading);text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.tool__basis{font-size:var(--fs-sm);margin-top:20px}
.tool__out .txtlink{margin-top:20px;min-height:44px}
.tool__note{font-size:var(--fs-sm);max-width:78ch;margin-top:clamp(34px,4vw,52px);padding-top:22px;border-top:1px solid var(--line)}
.tool__note strong{font-weight:500;color:var(--heading)}
@media (max-width:900px){.tool{grid-template-columns:1fr;gap:32px}}
/* under 360px a label and its figure no longer fit side by side: stack them */
@media (max-width:359px){.tool__out dl>div{flex-direction:column;align-items:flex-start;gap:2px}.tool__out dd{text-align:left;white-space:normal}}
/* the buttons do not fit one row on a phone: two columns, and an odd last one spans both */
@media (max-width:480px){.tooltabs{display:grid;grid-template-columns:1fr 1fr}.tooltabs button:last-child:nth-child(odd){grid-column:1/-1}}

.rule{height:1px;background:var(--line);border:0;margin-block:clamp(40px,5vw,60px)}
.section--slate .rule,.section--ink .rule{background:rgba(255,255,255,.16)}
.mt-l{margin-top:clamp(26px,3vw,40px)}
.mb-0{margin-bottom:0}
.stack>*+*{margin-top:18px}
/* A heading inside a stack keeps its larger gap; the stack rule above would
   otherwise flatten it to 18px and run the sections together (Privacy, Terms). */
.stack>.mt-l{margin-top:clamp(40px,5vw,64px)}

/* ---------------- client strip ----------------
   Logos are normalised to white silhouettes so mixed brand colours
   (gold / red / blue / white) sit together cleanly on the dark band.
   Swap the filter off if a client requires exact brand colour. */
.clients{padding-block:clamp(8px,1.5vw,20px)}
.clients__panel{
  background:var(--slate);border-radius:var(--r-lg);overflow:hidden;
  padding:clamp(34px,4vw,52px) clamp(20px,4vw,64px);
  position:relative;isolation:isolate;
}
.clients__panel::before{
  content:"";position:absolute;inset:0;z-index:-1;
  background:linear-gradient(118deg,rgba(51,141,239,.12) 0 18%,transparent 18%),var(--navy-grad);
}
/* The panel sits at the content width, lined up with the headings and cards
   (Emilio, 11 Nov, after trying it full width), and the moving logos run to
   the panel's own edges. */
.clients__panel{padding-inline:var(--gut)}
.fx .clients .logos{margin-inline:calc(var(--gut) * -1);border-radius:0}
.clients__lbl{text-align:center;font-size:var(--fs-sm);color:rgba(255,255,255,.72);margin-bottom:clamp(26px,3vw,38px);text-wrap:balance}
/* Phones: the label stays on one line (Emilio, 11 Nov). It borrows 10px of the
   panel's padding each side and the type scales with the width left over
   (the sentence is about 29.6em wide), up to the usual small size. */
@media (max-width:700px){
  .clients__lbl{white-space:nowrap;margin-inline:-10px;
    font-size:min(var(--fs-sm),calc((100vw - var(--gut) * 4 + 20px) / 30.2))}
}
/* Client strip. Still by default: one set of seven in rows, 2 + 2 + 2 + 1 on
   phones, 4 + 3, then one row of 7 from 1200px. With html.fx (no reduced
   motion) the logos slide slowly across instead (Emilio, 9 Nov), and stop while
   the strip is hovered, tapped or focused, as there is no pause button. */
.logos__set{display:grid;grid-template-columns:repeat(2,auto);justify-content:space-evenly;align-items:center;row-gap:20px}
.logos__set[aria-hidden="true"],.logos__set .client:nth-child(n+8){display:none}
.client{display:inline-flex;align-items:center;justify-content:center;flex:none;padding-inline:clamp(8px,1.4vw,20px)}
.fx .logos{
  overflow:hidden;outline-offset:6px;border-radius:8px;
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 9%,#000 91%,transparent 100%)
}
.fx .logos__track{display:flex;width:max-content;animation:ftx-logos 60s linear infinite}
.fx .logos:is(:hover,:focus) .logos__track{animation-play-state:paused}
.fx .logos__set,.fx .logos__set[aria-hidden="true"]{display:flex;align-items:center;flex:none}
.fx .logos__set .client:nth-child(n+8){display:inline-flex}
.fx .logos .client{padding-inline:clamp(26px,3.6vw,58px)}
@keyframes ftx-logos{from{transform:translateX(0)}to{transform:translateX(-50%)}}
.client img{
  height:calc(var(--k,1) * clamp(22px,2.4vw,32px));width:auto;max-width:230px;object-fit:contain;
  filter:brightness(0) invert(1);
  opacity:.72;transition:opacity .22s var(--ease);
}
.client:hover img{opacity:1}
@media (min-width:520px){
  .logos__set{grid-template-columns:repeat(4,auto)}
}
@media (min-width:1200px){
  .logos__set{grid-template-columns:repeat(7,auto)}
  html:not(.fx) .client{padding-inline:8px}
}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* Grid children default to min-width:auto and refuse to shrink below their
   min-content width — long <select> options were forcing the contact column
   wider than a 320px viewport. */
.split>*,.form>*,.cards>*,.panels>*,.projects>*,.process>*,.strip>*,.hero__grid>*,.cta__inner>*,.division__head>*,.ftr__grid>*,.mega>*,.tool>*{min-width:0}
.field input,.field select,.field textarea{max-width:100%}
/* The email address is a single unbreakable token and overflowed its column
   in the 4-up footer at ~1024px and in the contact list at 320px. */
.ftr li,.ftr a,.contact-list li,.contact-list span,.contact-list a{overflow-wrap:break-word}
/* Footer links were 21px tall — below the 44px minimum interactive target. */
.ftr__grid li a{display:inline-flex;align-items:center;min-height:44px;padding-block:10px}
.ftr__grid li:has(a){padding:0}
.ftr__bottom{align-items:center}
/* Breadcrumb and contact links to the 44px minimum target. */
.crumbs a{display:inline-flex;align-items:center;min-height:44px}
.crumbs li:not(:last-child)::after{align-self:center}
/* The negative margin keeps the 44px tap target without making the Phone and
   Email rows taller than the plain-text rows. */
.contact-list a{display:inline-flex;align-items:center;min-height:44px;margin-block:-10px}

/* ---------------- header logo -----------------------------------------------
   Two layers of the same lock-up: one clipped to the F icon (first 29.6% of the
   artwork, measured from the path geometry), one masked to the wordmark window. */
.hdr__logo .la{position:relative;display:block;width:197px;height:36px}
.hdr__logo .la img{position:absolute;top:0;left:0;height:36px;width:197px;max-width:none}
.hdr__logo .la__icon{clip-path:inset(0 70.4% 0 0)}
.hdr__logo .la__win{position:absolute;top:0;bottom:0;left:29.6%;right:0;overflow:hidden}
.hdr__logo .la__win .la__name{left:-58.3px}

/* Header logo build. It plays once, and only when a visit starts on the
   homepage: the head script sets sessionStorage 'ftx-intro' on every page and
   adds html.logo-intro only if the visit's first page is '/' (or the URL has
   ?intro). The F settles, then the name slides out from behind it through
   .la__win, which already clips; it starts at -72%, wholly hidden (at -70% a
   1px sliver showed). Pure CSS, about 0.8 s, never blocks scrolling and waits on
   nothing, so a failed site.js cannot leave the page stuck. Reduced motion:
   the class is never added. The full-screen version of this build lives on as
   _brand/logo-intro.html, for brand video and social. */
@media (prefers-reduced-motion:no-preference){
  html.logo-intro .hdr__logo .la__icon{animation:la-mark .45s var(--ease) both;transform-origin:15% 50%}
  html.logo-intro .hdr__logo .la__name{animation:la-name .5s cubic-bezier(0,0,.58,1) .3s both}
}
@keyframes la-mark{from{opacity:0;transform:scale(1.4)}}
@keyframes la-name{from{translate:-72% 0}}

/* ---------------- interaction ---------------------------------------------
   Hover and keyboard focus share the same visual language. Movement stays on
   transform/opacity so pointer feedback remains compositor-friendly. */
.btn{
  transition:background .22s var(--ease),border-color .22s var(--ease),color .22s var(--ease),transform .22s var(--ease),box-shadow .22s var(--ease)
}
.nav__link{
  position:relative;
  transition:background .18s var(--ease),color .18s var(--ease),transform .18s var(--ease),box-shadow .18s var(--ease)
}
.mega__item,.filters button,.burger,.process article,.panel{
  transition:transform .22s var(--ease),box-shadow .22s var(--ease),border-color .22s var(--ease),background-color .22s var(--ease),color .22s var(--ease),opacity .22s var(--ease)
}
.inner-page .media{
  transition:transform .65s cubic-bezier(.2,.7,.2,1),box-shadow .65s cubic-bezier(.2,.7,.2,1)
}
.inner-page .media::after{
  transform:none;transition:transform .8s cubic-bezier(.2,.7,.2,1)
}
.panel__img{transition:transform .8s cubic-bezier(.2,.7,.2,1)}
.card__num,.panel__num{transition:transform .35s cubic-bezier(.2,.7,.2,1),background-color .35s var(--ease)}
.btn,.nav__link,.filters button,.burger,.mega__item,.panel,.card,.pcard{touch-action:manipulation}

@media (hover:hover) and (pointer:fine){
  .btn:hover{transform:translateY(-2px);box-shadow:0 14px 30px -24px rgba(27,36,52,.62)}
  .btn:hover .arw{transform:translateX(3px)}
  .nav__link:hover{transform:translateY(-1px);box-shadow:none}
  .nav__group[data-open="true"]>.nav__link{transform:translateY(-1px)}
  .mega__item:hover{background:var(--blue-tint);transform:translateY(-2px)}
  .mega__item:hover .mega__go .arw{transform:translateX(4px)}
  .filters button:hover{transform:translateY(-1px);box-shadow:none}
  .burger:hover{transform:scale(1.025);background:var(--blue-tint)}
  .process article:hover{
    transform:translateY(-3px);border-color:rgba(51,141,239,.45);box-shadow:0 22px 46px -36px rgba(27,36,52,.45);background-color:#fff
  }
  .card:hover{border-color:rgba(51,141,239,.32);background-color:rgba(239,246,253,.42)}
  .panel:hover{transform:translateY(-2px);box-shadow:0 22px 50px -40px rgba(27,36,52,.38)}
  .pcard:hover{transform:translateY(-3px);box-shadow:0 24px 54px -38px rgba(27,36,52,.42)}
  .panel:hover .panel__img{transform:scale(1.028)}
  .pcard:hover .media::after,.pcard:focus-visible .media::after{transform:scale(1.038)}
  .inner-page .split .media:hover{transform:translateY(-3px);box-shadow:0 26px 58px -42px rgba(27,36,52,.5)}
  .inner-page .split .media:hover::after{transform:scale(1.025)}
  .card:hover .card__num{background-color:rgba(51,141,239,.16)}
  .panel:hover .panel__num{transform:translateY(-2px);background-color:rgba(51,141,239,.16)}
}

.btn:focus-visible,.nav__link:focus-visible,.filters button:focus-visible,.burger:focus-visible,
.mega__item:focus-visible,.pcard:focus-visible{
  transform:translateY(-2px);box-shadow:0 0 0 5px rgba(51,141,239,.16)
}
.panel:focus-visible,.card:focus-visible{box-shadow:0 0 0 5px rgba(51,141,239,.16)}
.btn:focus-visible .arw,.txtlink:focus-visible .arw,.mega__item:focus-visible .mega__go .arw{transform:translateX(4px)}
.process article:focus-within{border-color:var(--blue)}
.btn:active,.nav__link:active,.filters button:active,.burger:active,.mega__item:active,.panel:active,.card:active,.pcard:active{transform:translateY(0) scale(.985)}

@media (max-width:700px){
  .media__mark,.panel__mark{inset:-10%;background-size:82% auto}
  /* Photos fill their frame edge to edge, cropped around their focal point,
     as they do on desktop (Emilio, 12 Nov: phone should match the computer;
     the earlier whole-photo-with-blurred-sides treatment is gone). */
  .media[style*="--img"]::after{
    background-color:transparent;background-image:var(--img);background-size:cover;background-repeat:no-repeat;
    background-position:var(--mobile-pos,var(--pos,center))
  }
  /* Case-study "On site" galleries get a taller frame on phones: site photos
     are mostly shot upright, so less of each one is cropped away. */
  .projects>.media--ratio{aspect-ratio:4/5}
  .panel__img[style*="--img"]{
    background-color:var(--slate);
    background-image:
      var(--img),
      linear-gradient(118deg,rgba(51,141,239,.34) 0 22%,transparent 22%),
      linear-gradient(118deg,transparent 0 58%,rgba(51,141,239,.18) 58% 76%,transparent 76%),
      linear-gradient(155deg,var(--slate-lift),var(--ink));
    /* Service panels are text over an atmospheric photo, so the photo fills the
       panel (as on desktop) rather than stopping in a hard line part-way down. */
    background-size:cover,auto,auto,auto;
    background-position:var(--mobile-pos,center),center,center,center
  }
}

.home-page .hero,.home-page main>.section,.home-page .clients{
  position:relative;isolation:isolate;overflow:hidden
}
.home-page .hero>.wrap,.home-page main>.section>.wrap,.home-page .clients>.wrap{
  position:relative;z-index:1
}

/* ---------------- text motion ----------------
   Calm, once-only text motion modelled on Jitter's text templates (Emilio,
   9 Nov: "appealing when you scroll ... not too over the top"). The head
   script adds html.fx unless the visitor asks for reduced motion; without that
   class every rule below is inert and all text simply shows.
   Above the fold it is CSS keyframes that start on first paint and always
   finish, so a failed site.js can never leave text hidden:
   - homepage headline: each line slides up from behind its own edge;
   - page titles and their lead: they sharpen in from a soft blur.
   The bold phrase of a page title is split into words by site.js; the words
   cascade in, each touching blue before settling. Until site.js has split it,
   the phrase is held back, for 1.4 s at most.
   Below the fold, site.js arms each section heading that starts out of view
   (.fx-head) and adds .is-in as it scrolls into view: the label line draws,
   then the heading, lead and buttons sharpen in. */
.display .line,.display .line>span{display:block}
.section-head>.kicker::before,.division__head .kicker::before{
  content:"";display:inline-block;vertical-align:middle;width:28px;height:2px;margin:-2px 12px 0 0;background:currentColor
}
.phero--navy,.phero--image,.section--slate,.section--ink,.cta{--fx-from:var(--sky)}
:root{--fx-ease:cubic-bezier(.2,.7,.1,1)}
@keyframes fx-up{from{transform:translateY(108%)}}
@keyframes fx-clip{0%,99%{overflow:hidden}}
@keyframes fx-sharpen{from{opacity:0;filter:blur(8px);transform:translateY(14px)}}
@keyframes fx-word{from{opacity:0;transform:translateY(.45em)}}
@keyframes fx-tint{from{color:var(--fx-from,var(--blue))}}
@keyframes fx-hold{from,to{opacity:0}}

html.fx .display .line{padding-bottom:.1em;margin-bottom:-.1em;animation:fx-clip 1.3s both}
html.fx .display .line>span{animation:fx-up .9s var(--fx-ease) both}
html.fx .display .line:nth-child(2)>span{animation-delay:.09s}
html.fx .display .line:nth-child(3)>span{animation-delay:.18s}
html.fx .hero--photo .lead{animation:fx-sharpen .8s var(--fx-ease) .45s both}
html.fx .hero--photo .btn-row{animation:fx-sharpen .8s var(--fx-ease) .6s both}

html.fx .phero h1{animation:fx-sharpen .8s var(--fx-ease) .05s both}
html.fx .phero .lead{animation:fx-sharpen .8s var(--fx-ease) .2s both}
html.fx .phero h1 b:not(.fx-split){animation:fx-hold 1.4s backwards}
html.fx .fx-split .fx-w{display:inline-block}
html.fx .phero .fx-w,html.fx .fx-head.is-in .fx-w{
  animation:fx-word .6s var(--fx-ease) both,fx-tint 1.4s ease both;
  animation-delay:calc(var(--fx-at,.35s) + var(--i) * .08s)
}
html.fx .fx-head{--fx-at:.5s}

/* Transitions sit on .is-in only, so arming hides at once and only the
   reveal is animated. */
html.fx .fx-head:not(.is-in) .kicker::before{width:0}
html.fx .fx-head:not(.is-in) :is(h2,.lead,.btn-row){opacity:0;filter:blur(8px);transform:translateY(14px)}
html.fx .fx-head:not(.is-in) .fx-w{opacity:0}
html.fx .fx-head.is-in .kicker::before{transition:width .7s var(--fx-ease) .1s}
html.fx .fx-head.is-in :is(h2,.lead,.btn-row){transition:opacity .8s var(--fx-ease),filter .8s var(--fx-ease),transform .8s var(--fx-ease)}
html.fx .fx-head.is-in h2{transition-delay:.12s}
html.fx .fx-head.is-in .lead{transition-delay:.3s}
html.fx .fx-head.is-in .btn-row{transition-delay:.42s}

/* ---------------- full-bleed photographic homepage hero ----------------- */
.home-page .hero--photo{
  position:relative;min-height:clamp(720px,calc(100svh - 88px),900px);overflow:hidden;
  display:flex;color:#fff;background:var(--ink);padding-block:clamp(56px,7vw,92px) clamp(38px,5vw,62px)
}
.home-page .hero--photo::before{
  content:"";display:block;position:absolute;z-index:0;inset:0;pointer-events:none;
  background-image:var(--hero-img);background-size:cover;background-position:center 68%;background-repeat:no-repeat
}
.home-page .hero--photo::after{
  content:"";position:absolute;z-index:1;inset:0;pointer-events:none;
  background:
    linear-gradient(180deg,rgba(12,19,35,.5) 0,rgba(12,19,35,0) 200px),
    linear-gradient(90deg,rgba(12,19,35,.8) 0%,rgba(12,19,35,.64) 39%,rgba(12,19,35,.14) 64%,transparent 78%),
    linear-gradient(180deg,transparent 56%,rgba(12,19,35,.62) 100%)
}
@supports (background-image:image-set(url("/assets/img/og/fourtrex-og-default.jpg") 1x)){
  .home-page .hero--photo::before{background-image:var(--hero-img-set,var(--hero-img))}
}
.home-page .hero--photo>.wrap{
  position:relative;z-index:2;width:100%;display:flex;flex-direction:column;justify-content:space-between
}
.home-page .hero--photo .hero__grid{grid-template-columns:minmax(0,800px);min-height:460px;align-items:center}
/* Room for "Mine water management." on one line, so the headline keeps its
   three designed lines at desktop width. */
.home-page .hero--photo .display{color:#fff;text-shadow:0 2px 28px rgba(4,12,24,.26)}
.home-page .hero--photo .display .blue{color:#fff;font-weight:600}
.home-page .hero--photo .hero__slogan{color:var(--sky);font-weight:400;text-shadow:0 2px 20px rgba(4,12,24,.3)}
.home-page .hero--photo .hero__slogan b{color:#fff}

.home-page .hero--photo .lead{color:rgba(255,255,255,.86);max-width:58ch}
.home-page .hero--photo .btn--outline{color:#fff;border-color:rgba(255,255,255,.42);background:rgba(12,19,35,.22)}
.home-page .hero--photo .btn--outline .arw{background:#fff;color:var(--slate)}
@media (max-width:700px){
  .home-page .hero--photo{min-height:auto;padding-block:48px 34px}
  .home-page .hero--photo::before{background-position:58% 66%}
  .home-page .hero--photo::after{
    background:linear-gradient(180deg,rgba(12,19,35,.78) 0%,rgba(12,19,35,.67) 48%,rgba(12,19,35,.9) 100%)
  }
  .home-page .hero--photo .hero__grid{min-height:0;grid-template-columns:1fr}
}

/* ---------------- header over the page top ----------------
   Emilio, 9 Nov (header option 2, frosted): on pages that open on a photo or
   navy (body.hdr-over, written by the build) the header sits clear over the
   page top, with no bar, no line, and a larger white logo and menu, so the
   picture runs to the top of the screen. Once the page scrolls, site.js adds
   .is-scrolled and the header turns frosted white glass with the logo back in
   colour, on every page. An open menu always gets the solid white bar. Gated on
   html.js (head script), so a visitor without JavaScript keeps the white bar.
   The page tops carry a soft shade at the top so the white menu reads on any
   photo. 89px = the 88px bar + its 1px border. */
.hdr{transition:background-color .35s var(--ease),border-color .35s var(--ease),box-shadow .35s var(--ease)}
.hdr__logo{position:relative}
.hdr__logo .la{transform-origin:left center;transition:transform .35s var(--ease),opacity .35s var(--ease)}
.hdr__logo .la--rev{position:absolute;top:14px;left:0;opacity:0}

.js .hdr-over .hdr{margin-bottom:-89px}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])){background:transparent;border-bottom-color:transparent}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .la{transform:scale(1.17)}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .la:not(.la--rev){opacity:0}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .la--rev{opacity:1}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .burger{background:rgba(255,255,255,.14)}
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .burger span,
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .burger span::before,
.js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .burger span::after{background:#fff}
@media (min-width:1161px){
  .js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .nav__link{color:#fff}
  .js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .nav__link:hover,
  .js .hdr-over .hdr:not(.is-scrolled,[data-nav="open"],:has([data-open="true"])) .nav__link[aria-current]{background:rgba(255,255,255,.14);color:#fff}
}

.js .hdr.is-scrolled:not([data-nav="open"],:has([data-open="true"])){
  background:rgba(255,255,255,.84);border-bottom-color:transparent;box-shadow:0 10px 30px -18px rgba(15,26,46,.35)
}
@supports ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){
  .js .hdr.is-scrolled:not([data-nav="open"],:has([data-open="true"])){
    background:rgba(255,255,255,.66);-webkit-backdrop-filter:blur(18px) saturate(1.6);backdrop-filter:blur(18px) saturate(1.6)
  }
}

/* The page tops slide up under the header and give its height back as padding. */
.js .home-page .hero--photo{
  padding-top:calc(clamp(56px,7vw,92px) + 89px);
  min-height:calc(clamp(720px,calc(100svh - 88px),900px) + 89px)
}
.js .hdr-over .phero--navy{padding-top:89px}
@media (min-width:701px){
  /* Full screen now includes the header strip; the copy keeps its old position. */
  .js .hdr-over .phero--image{min-height:min(calc(75vw + 89px),max(649px,100svh))}
  .js .hdr-over .phero--image .phero__inner{padding-top:calc(clamp(40px,5.5vw,76px) + 89px)}
}
@media (max-width:700px){
  /* On phones the photo band starts at the top and the logo sits on the photo. */
  .js .home-page .hero--photo{padding-top:calc(48px + 89px);min-height:auto}
}

/* ---------------- the navy voice: two weights and kicker labels -----------
   As on the letterheads, banner and ads ("Smarter water.", "Hydraulic
   Estimator."): headings stay light, sentence case, full stop, with ONE key
   phrase in <b> at 600. A small tracked uppercase label can sit above a
   section heading where it says something the heading does not. The old pill
   eyebrow in the CTA is retired in favour of the same label. */
h1 b,h2 b,.display b,.h2 b{font-weight:600}
.kicker{
  display:block;margin:0 0 14px;
  font-family:var(--font-body);font-size:var(--fs-label);font-weight:600;line-height:1.4;
  letter-spacing:.14em;text-transform:uppercase;color:var(--blue-ink)
}
/* #2167B0 is never text on navy: labels on dark surfaces use the one light blue. */
.section--slate .kicker,.section--ink .kicker,.cta .kicker,.phero--image .kicker,.phero--navy .kicker,.ftr .kicker{color:var(--sky)}
.hero__slogan b{font-weight:600}

/* Project fact strip as a spec sheet: small tracked labels, large values.
   Two by two on phones instead of four stacked rows. */
.strip--spec div{display:flex;flex-direction:column;gap:10px}
.strip--spec strong{
  margin:0;font-family:var(--font-body);font-size:var(--fs-label);font-weight:600;line-height:1.4;
  letter-spacing:.14em;text-transform:uppercase;color:var(--blue-ink)
}
.strip--spec span{font-family:var(--font-display);font-size:clamp(1.12rem,1.6vw,1.45rem);font-weight:500;line-height:1.35;color:var(--heading);text-wrap:balance}
@media (max-width:560px){
  .strip.strip--spec{grid-template-columns:1fr 1fr}
  .strip.strip--spec div{padding:20px 18px;border-right:1px solid var(--line);border-bottom:1px solid var(--line)}
  .strip.strip--spec div:nth-child(2n){border-right:0}
  .strip.strip--spec div:nth-child(n+3){border-bottom:0}
}

/* ---------------- stat band (About) ----------------
   The figures are plain text. All three count up from zero once when the strip
   comes into view (site.js, [data-countup] [data-count]); each reads its value
   from the text, so it edits like any other wording. Reduced motion and no-JS
   show the final values. */
.stats{overflow:visible}
.stats strong{font-size:clamp(1.9rem,3.2vw,2.7rem);font-weight:300;letter-spacing:-.02em;line-height:1.05;margin-bottom:10px}
.stats .num{font-variant-numeric:tabular-nums}
.stats strong .num{font-size:inherit;line-height:inherit;font-weight:inherit;color:inherit}
/* Units sit smaller beside the figure, spec-sheet style, so "63-700 mm" fits its
   cell instead of overflowing it (it used to be forced onto one line). */
.stats strong .unit{font-size:.62em;line-height:inherit;font-weight:400;color:inherit;letter-spacing:0}

/* ---------------- homepage hero photos ----------------
   Slide 1 is an opaque still, and it is all that phones, reduced-motion
   visitors and browsers without JavaScript ever get. At 701px and wider,
   once the page has loaded and photos 2-4 have downloaded, site.js gives
   them their images and adds .is-rotating. Each photo then fades in over the
   one below, which drops out only once it is fully covered, so the picture
   never dims and there is no hard cut, from the very first change. Written
   for four photos, 4 seconds each (Emilio, 16 Nov). It runs ONCE and comes to rest on
   photo 1 (Emilio, 9 Nov: no pause button), so nothing moves for good.
   Photos are plain spans with their own focal point, so swapping one is a
   one-line change. */
.home-page .hero--slides::before{display:none}
.hero__slides{position:absolute;z-index:0;inset:0;pointer-events:none}
.hero__slide{position:absolute;inset:0;opacity:0;
  background:var(--ink) var(--slide-img,none) var(--slide-pos,center 60%)/cover no-repeat}
.hero__slide:first-child{opacity:1}
/* The slides are 2400 x 1600 landscape crops from the 3024 x 4032 originals,
   sharp at full screen width. Phones get the 1200 x 1600 portrait crops
   (photo 1 through --slide-sm, photos 2-4 through data-img-sm in site.js)
   and skip the section's own copy under it. */
@media (max-width:700px){
  .hero__slide:first-child{background-image:var(--slide-sm,var(--slide-img))}
  .home-page .hero--photo.hero--slides::before{background-image:none}
}
@media (prefers-reduced-motion:no-preference){
  .hero__slides.is-rotating .hero__slide:not(:first-child){animation:16s ease-in-out 1 backwards}
  .hero__slides.is-rotating .hero__slide:nth-child(2){animation-name:hero-in;animation-delay:4s}
  .hero__slides.is-rotating .hero__slide:nth-child(3){animation-name:hero-in;animation-delay:8s}
  .hero__slides.is-rotating .hero__slide:nth-child(4){animation-name:hero-last;animation-delay:12s}
}
@keyframes hero-in{0%{opacity:0}7%,32%{opacity:1}33%,100%{opacity:0}}
@keyframes hero-last{0%{opacity:0}7%,25%{opacity:1}32%,100%{opacity:0}}
@media (prefers-reduced-motion:reduce){
  .hero__slide{animation:none!important;opacity:0!important}
  .hero__slide:first-child{opacity:1!important}
}

@media (min-width:901px){.strip:has(> :nth-child(3):last-child){grid-template-columns:repeat(3,1fr)}}

/* Printing: headings the reader has not scrolled to are still held back by
   the text motion, so paper and PDF would lose them. */
@media print{
  html.fx .fx-head:not(.is-in) :is(h2,.lead,.btn-row),
  html.fx .fx-head:not(.is-in) .fx-w{opacity:1;filter:none;transform:none}
  html.fx .fx-head:not(.is-in) .kicker::before{width:28px}
}
