/* ============================================================================
   Training & Recruitment — page-specific styles. EVERY selector is scoped to
   .tr* so nothing here can touch Home, Meet the Team or About. Reuses the shared
   design tokens from home.styles.css (:root --ink/--red/--amber/--e/fonts), the shared
   .acmarq accreditation marquee and the shared .eyebrow/.etrack moving eyebrow.
   Amber is used only for the moving eyebrow labels on the navy bands (per request).
   ========================================================================= */

.tr{
  --tr-zone:#dce6f5;              /* one light-blue field everywhere (no varied zones) */
  --tr-card:#c2d2ee;              /* light-blue columns (not white) */
  --tr-line:#93add9;              /* blue card frames */
  --tr-muted:#51617a;            /* readable slate for body text on light */
  --tr-navy:#0A1F4D;
  --tr-navy-2:#0d275f;
  --tr-red:#C8102E;
  --tr-rad:22px;
  font-family:'Manrope',system-ui,-apple-system,sans-serif;
  color:var(--tr-navy);
  background:#dce6f5;             /* light-blue field (like the other pages); white cards pop */
  -webkit-font-smoothing:antialiased;
}
.tr *{box-sizing:border-box}
/* same container box as the other pages (--maxw 1440 + matching padding) so the
   text margins line up with Home / Meet the Team, not a narrower, centred field. */
.tr-wrap{max-width:1440px;margin:0 auto;padding:0 clamp(18px,3.4vw,48px)}

/* ---------- shared type primitives ---------- */
.tr-eyebrow{font-family:'PlexMono',ui-monospace,monospace;text-transform:uppercase;
  letter-spacing:.2em;font-size:.8rem;font-weight:500;margin:0}
.tr-eyebrow-red{color:var(--tr-red)}
.tr-eyebrow .etrack{color:var(--tr-red)}   /* moving-eyebrow text = page red (overrides the shared .etrack --gold-lo) */
.tr-h2{font-weight:800;letter-spacing:-.028em;line-height:1.04;
  font-size:clamp(1.9rem,4vw,3.15rem);margin:.5rem 0 0;text-wrap:balance}
.tr-lead{color:var(--tr-muted);font-size:clamp(1.02rem,1.25vw,1.18rem);line-height:1.62;margin:18px 0 0;max-width:60ch}
.tr-note{color:var(--tr-muted);font-size:.98rem;line-height:1.6;margin:18px 0 0}
.tr-foot-note{color:var(--tr-muted);font-size:1rem;line-height:1.6;margin:clamp(26px,3.4vw,42px) auto 0;max-width:66ch;text-align:center}
.tr-link{color:var(--tr-red);font-weight:700;text-decoration:none;border-bottom:1.5px solid rgba(200,16,46,.32);transition:border-color .25s var(--e)}
.tr-link:hover{border-color:var(--tr-red)}

/* ---------- buttons ---------- */
.tr-btn{display:inline-flex;align-items:center;gap:10px;font-weight:700;font-size:1rem;
  padding:15px 26px;border-radius:100px;text-decoration:none;cursor:pointer;
  border:1.6px solid transparent;transition:transform .3s var(--e),box-shadow .3s var(--e),background .3s var(--e),color .3s var(--e),border-color .3s var(--e);white-space:nowrap}
.tr-btn .tr-arw{display:inline-flex;transition:transform .3s var(--e)}
.tr-btn .tr-arw svg{width:17px;height:17px;display:block}
.tr-btn-red{background:var(--tr-red);color:#fff;box-shadow:0 14px 30px rgba(200,16,46,.28)}
.tr-btn-ghost{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
.tr-btn-line{background:transparent;color:var(--tr-navy);border-color:rgba(10,31,77,.24)}
.tr-btn-blue{background:var(--tr-navy);color:#fff;box-shadow:0 14px 30px rgba(10,31,77,.3)}

/* ---------- section shell ---------- */
.tr-sec{position:relative;padding:clamp(28px,3.5vh,46px) 0}
.tr-zone{background:var(--tr-zone)}
/* navy contrast band — breaks the single light-blue field into a light/dark
   rhythm. Sections that carry their own light-blue cards sit straight on it. */
.tr-dark{background:var(--tr-navy);color:#fff;position:relative;isolation:isolate;overflow:hidden}
.tr-dark::before{content:"";position:absolute;right:-140px;top:-120px;width:420px;height:420px;
  border-radius:50%;background:radial-gradient(circle,rgba(200,16,46,.22),transparent 68%);
  pointer-events:none;z-index:-1}
.tr-dark .tr-eyebrow-red{color:var(--amber)}   /* amber label on the navy band (per request), not red */
.tr-dark .tr-eyebrow .etrack,.tr-dark .tr-eyebrow .etrack i{color:var(--amber)}   /* moving eyebrow text + dot amber on navy */
.tr-dark .tr-h2{color:#fff}
.tr-dark .tr-lead{color:rgba(255,255,255,.82)}
.tr-dark .tr-foot-note{color:rgba(255,255,255,.72)}
.tr-dark .tr-link{color:#ff9aa8;border-bottom-color:rgba(255,154,168,.4)}
.tr-head{max-width:760px;margin:0 0 clamp(18px,2.4vw,30px)}
.tr-head .tr-lead{margin-inline:0}

/* =====================================================================
   HERO
   ===================================================================== */
/* photo hero: the banner photo is the background; the copy sits low-left over it.
   A gradient scrim (dark on the left, fading to clear across the middle, plus a soft
   base) gives the white copy its own readable zone WITHOUT washing out the photo —
   so the team on the right stays fully visible while the heading never fights a face. */
.tr-hero{position:relative;background:var(--tr-navy);color:#fff;overflow:hidden;
  min-height:clamp(560px,72vh,720px);display:flex;align-items:flex-end;
  padding:clamp(150px,22vh,210px) 0 clamp(40px,6vh,64px)}
.tr-hero-media{position:absolute;inset:0;z-index:0;overflow:hidden}
.tr-hero-media::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:linear-gradient(90deg,rgba(8,18,45,.80),rgba(8,18,45,.50) 32%,rgba(8,18,45,.12) 55%,transparent 70%),linear-gradient(0deg,rgba(8,18,45,.35),transparent 30%)}
.tr-hero-img{width:100%;height:100%;object-fit:cover;object-position:50% 12%;transform-origin:50% 0%;animation:trhz 18s ease-in-out infinite alternate}
@keyframes trhz{from{transform:scale(1)}to{transform:scale(1.16)}}
@media (prefers-reduced-motion:reduce){.tr-hero-img{animation:none;transform:none}}
/* A gentle zoom anchored near the top keeps the whole group — heads included —
   in frame, while object-position holds the framing on the workers (right) and
   the emptier brick wall on the left, where the heading sits.
   - narrower desktop (901-1180px): a touch more zoom so the group reads when tight.
   - wide desktop (>=1181px): barely any, so no one is cropped.
   Not on phones, where the heading already sits clear above the group. */
.tr-hero-inner{position:relative;z-index:2;width:100%}
.tr-hero-kick{color:#fff;display:inline-flex;align-items:center;gap:12px;
  padding:9px 16px;border:1px solid rgba(255,255,255,.5);border-radius:100px;font-size:.76rem;
  text-shadow:0 1px 10px rgba(0,0,0,.28)}
.tr-hero-kick::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--tr-red)}
.tr-hero-title{font-weight:800;letter-spacing:-.035em;line-height:1;margin:14px 0 0;
  font-size:clamp(2.3rem,6vw,4.4rem);max-width:16ch;color:#fff;text-shadow:0 2px 22px rgba(0,0,0,.38)}
.tr-line{display:block;overflow:hidden;padding-bottom:.04em}
.tr-line>span{display:block}
.tr-hero-sub{margin:15px 0 0;max-width:54ch;color:#eef2fb;
  font-size:clamp(1.02rem,1.35vw,1.18rem);line-height:1.5;text-shadow:0 1px 12px rgba(0,0,0,.42)}
.tr-hero-cta{display:flex;flex-wrap:wrap;gap:12px;margin:24px 0 0}

/* =====================================================================
   INTRO
   ===================================================================== */
.tr-intro-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:clamp(32px,5vw,72px);align-items:center}
/* definite width (not auto+max-width): an auto-width aspect-ratio box collapses to 0 when
   it also carries a transform — the slide-in reveal needs the transform, so pin the width. */
.tr-intro-media{margin:0 0 0 auto;width:min(470px,100%);border-radius:var(--tr-rad);overflow:hidden;box-shadow:0 30px 70px rgba(10,31,77,.18);
  aspect-ratio:10/7;position:relative}
.tr-intro-media img{width:100%;height:100%;object-fit:cover;object-position:center top;display:block}

/* =====================================================================
   CARDS (generic white card)
   ===================================================================== */
.tr-card{background:var(--tr-card);border:1.8px solid var(--tr-line);border-radius:var(--tr-rad);
  padding:clamp(24px,2.6vw,34px);box-shadow:0 14px 34px rgba(10,31,77,.08);
  transition:transform .35s var(--e),box-shadow .35s var(--e),border-color .35s var(--e)}
.tr-grid-3{display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(18px,2vw,26px)}

/* offer cards — a clear blue frame on the card, a red frame on the icon tile */
.tr-offer-card{border-width:2px;border-color:#5f83c6;padding:clamp(18px,2vw,24px);display:flex;flex-direction:column}
.tr-offer-card .tr-ic{display:grid;place-items:center;width:48px;height:48px;border-radius:13px;
  background:rgba(200,16,46,.09);border:1.6px solid rgba(200,16,46,.55);color:var(--tr-red);margin-bottom:14px}
.tr-offer-card .tr-ic svg{width:26px;height:26px}
.tr-offer-card h3{font-weight:800;font-size:1.2rem;letter-spacing:-.01em;margin:0 0 8px;color:var(--tr-navy)}
.tr-offer-card p{color:var(--tr-muted);font-size:1rem;line-height:1.58;margin:0}
/* blue frame around the offer card's text block */
.tr-offer-text{border:1.6px solid #5f83c6;border-radius:14px;padding:16px 18px;background:rgba(255,255,255,.14);flex:1}
.tr-offer-text h3{margin-top:0}

/* =====================================================================
   VACANCIES
   ===================================================================== */
/* Roles all share one application form, so each is a link-card showing just the role (no
   repeated "Apply" per card); one "Apply now" button below is the single CTA. Roles sit
   on the LEFT; a Great Britain map marking our main cities (dot -> angled yellow leader ->
   horizontal line with the city name above it) sits on the RIGHT. */
.tr-vac-body{display:grid;grid-template-columns:minmax(0,1.85fr) minmax(0,1.2fr);gap:clamp(16px,2vw,34px);align-items:start;margin-top:clamp(20px,2.4vw,30px)}
.tr-vac-roles-col .tr-head{margin-bottom:clamp(20px,2.6vw,32px)}
.tr-vac-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tr-vac-card{display:flex;align-items:center;justify-content:space-between;gap:12px;
  background:var(--tr-card);border:1.6px solid var(--tr-line);border-radius:14px;
  padding:13px 14px;text-decoration:none;color:var(--tr-navy);
  box-shadow:0 10px 26px rgba(10,31,77,.05);
  transition:transform .3s var(--e),box-shadow .3s var(--e),border-color .3s var(--e),background .3s var(--e),color .3s var(--e)}
.tr-vac-role{font-weight:700;font-size:.95rem;letter-spacing:-.015em;line-height:1.2}
.tr-vac-card .tr-arw{display:inline-flex;color:var(--tr-red);opacity:.5;transition:transform .3s var(--e),opacity .3s var(--e),color .3s var(--e)}
.tr-vac-card .tr-arw svg{width:16px;height:16px;display:block}
/* "Apply now" aligns under the 2nd role column (mirrors the roles grid tracks) */
.tr-vac-act{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:clamp(18px,2.2vw,26px)}
.tr-vac-act .tr-btn{grid-column:2;justify-self:center}
/* lift the map into the section's top padding so the northernmost island nearly
   touches the top edge of the block (the header/eyebrow in the left column stays put).
   The whole SVG moves as one unit, so every city keeps its geographic position.
   Reset to 0 once the layout stacks (map sits below the roles column then). */
.tr-vac-mapwrap{position:relative;max-width:500px;justify-self:end;width:100%;margin-top:clamp(-60px,-4.2vw,-40px)}
.tr-vac-map{width:100%;height:auto;display:block}
/* map cities reveal one-by-one when the map scrolls into view: dot pops, then its leader
   line draws out, then the name fades in (per-city --gi delay). Only the pins/lines/names
   animate — the silhouette stays. JS toggles .is-in, so it replays on return. */
/* Hidden base state + a fast, delay-free RESET (used when .is-in is removed on exit) so the
   block snaps back ready to replay. The staggered per-city delays live on .is-in below, so
   they only shape the forward reveal, never the reverse. */
:where(html.js) .tr-vac-map .tr-city circle{transform:scale(0);transform-box:fill-box;transform-origin:center;
  transition:transform .2s var(--e)}
:where(html.js) .tr-vac-map .tr-city polyline{stroke-dasharray:1;stroke-dashoffset:1;
  transition:stroke-dashoffset .2s var(--e)}
:where(html.js) .tr-vac-map .tr-city text{opacity:0;transform:translateY(4px);transform-box:fill-box;
  transition:opacity .2s var(--e),transform .2s var(--e)}
.tr-vac-map.is-in .tr-city circle{transform:scale(1);
  transition:transform .38s var(--e);transition-delay:calc(var(--gi,0)*.22s)}
.tr-vac-map.is-in .tr-city polyline{stroke-dashoffset:0;
  transition:stroke-dashoffset .5s var(--e);transition-delay:calc((var(--gi,0)*.22s) + .16s)}
.tr-vac-map.is-in .tr-city text{opacity:1;transform:none;
  transition:opacity .4s var(--e),transform .4s var(--e);transition-delay:calc((var(--gi,0)*.22s) + .46s)}
/* the email note now lives in the LEFT column, under "Apply now" (fills the space beside
   the tall map) — left-aligned, not the centred full-width footnote */
/* centred like the original footnote, but kept at this level (under "Apply now") so it
   fills the gap instead of sitting full-width below. Centred within the left column, it
   lines up under the button and stays clear of the map on the right. */
.tr-vac-note{text-align:center;max-width:46ch;margin:clamp(24px,3.4vw,44px) auto 0}

/* =====================================================================
   RECRUITMENT PROCESS  (dark band + scroll-progress rail)
   ===================================================================== */
.tr-proc{background:var(--tr-navy);color:#fff;overflow:hidden}
.tr-proc.tr-zone{background:var(--tr-navy)}
.tr-proc .tr-eyebrow-red{color:var(--amber)}
.tr-proc .tr-eyebrow .etrack,.tr-proc .tr-eyebrow .etrack i{color:var(--amber)}
.tr-proc .tr-h2{color:#fff}
.tr-steps{list-style:none;margin:clamp(30px,4vw,52px) 0 0;padding:0;position:relative;
  display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(22px,3vw,40px)}
.tr-steps-rail{position:absolute;left:0;right:0;top:34px;height:2px;background:rgba(255,255,255,.16);z-index:0}
.tr-steps-fill{position:absolute;left:0;top:0;height:100%;width:0;background:var(--tr-red);
  box-shadow:0 0 16px rgba(200,16,46,.7)}
.tr-step{position:relative;z-index:1}
.tr-step-no{display:grid;place-items:center;width:68px;height:68px;border-radius:50%;
  background:var(--tr-navy);border:2px solid rgba(255,255,255,.22);
  font-family:'PlexMono',monospace;font-size:1.15rem;font-weight:500;color:#fff;margin-bottom:22px}
.tr-step-body h3{font-weight:800;font-size:1.35rem;letter-spacing:-.01em;margin:0 0 10px}
.tr-step-body p{color:rgba(255,255,255,.76);font-size:1rem;line-height:1.6;margin:0;max-width:34ch}
.tr-proc .tr-link{color:#ff9aa8;border-bottom-color:rgba(255,154,168,.4)}

/* =====================================================================
   TRAINING & DEVELOPMENT
   ===================================================================== */
/* Five thematic cards grouped by the kind of training, not by single service.
   Desktop: a 3-up row, then a 2-up (wider) row — a 6-track grid with the first three
   cards spanning 2 and the last two spanning 3. Wider cards read far better than the
   old six narrow columns. */
.tr-train-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:clamp(16px,1.5vw,26px);align-items:stretch}
.tr-train-card:nth-child(-n+3){grid-column:span 2}   /* row 1: three cards */
.tr-train-card:nth-child(n+4){grid-column:span 3}    /* row 2: two wider cards */
.tr-train-card{display:flex;flex-direction:column;background:var(--tr-card);border:1.8px solid var(--tr-line);
  border-radius:var(--tr-rad);padding:clamp(20px,1.7vw,30px);box-shadow:0 14px 34px rgba(10,31,77,.08)}
/* informational category label — red, outlined tag. Static (a <span>, no link/hover/pointer)
   so it reads as a label, not a clickable filter. */
.tr-tlabel{align-self:flex-start;font-family:'PlexMono',ui-monospace,monospace;font-size:.68rem;font-weight:600;
  text-transform:uppercase;letter-spacing:.09em;color:var(--tr-red);
  background:rgba(200,16,46,.09);border:1.4px solid rgba(200,16,46,.5);border-radius:100px;
  padding:5px 12px;line-height:1.3;margin:0 0 14px}
.tr-ttitle{font-weight:800;letter-spacing:-.02em;line-height:1.14;color:var(--tr-navy);
  font-size:clamp(1.16rem,1.5vw,1.4rem);margin:0 0 8px}
.tr-tdesc{color:var(--tr-muted);font-size:.98rem;line-height:1.56;margin:0 0 16px}
.tr-train-card .tr-ticks li{font-size:.95rem}
.tr-ticks{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px}
.tr-ticks li{position:relative;padding-left:28px;color:#33415a;font-size:.98rem;line-height:1.42}
.tr-ticks li::before{content:"";position:absolute;left:0;top:.34em;width:16px;height:16px;border-radius:5px;
  background:rgba(200,16,46,.1);
  -webkit-mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  mask:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/12px no-repeat;
  background-color:var(--tr-red)}

/* =====================================================================
   COMMITMENT
   ===================================================================== */
.tr-commit-grid{display:grid;grid-template-columns:.95fr 1.05fr;gap:clamp(30px,5vw,72px);align-items:center}
.tr-commit-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.tr-commit-item{display:flex;gap:16px;align-items:flex-start;background:var(--tr-card);
  border:1.6px solid var(--tr-line);border-radius:16px;padding:20px 24px;
  font-size:1.05rem;font-weight:500;line-height:1.45;color:var(--tr-navy);
  box-shadow:0 10px 26px rgba(10,31,77,.05)}
.tr-tick{flex:none;display:grid;place-items:center;width:30px;height:30px;border-radius:9px;
  background:var(--tr-red);color:#fff}
.tr-tick svg{width:17px;height:17px}

/* =====================================================================
   INTRO — family-values line (moved in from the old values section)
   ===================================================================== */
.tr-intro-values{color:var(--tr-navy);font-weight:700;line-height:1.5;margin:18px 0 0;
  font-size:clamp(1.05rem,1.3vw,1.2rem)}
/* intro photo: slides in from the right (with a fade) once 3/4 of the block is in view (JS
   toggles .is-in on .tr-intro-media); it re-arms on full exit so it replays on return. The
   section clips horizontally so the off-screen start never adds a scrollbar. Progressive
   enhancement — no-JS / no-observer shows the photo in place immediately. */
.tr-intro{overflow-x:clip}
html.js .tr-intro-media{opacity:0;transform:translateX(70px);transition:opacity .8s var(--e),transform .9s var(--e)}
html.js .tr-intro-media.is-in{opacity:1;transform:none}

/* =====================================================================
   APPLICATION CTA
   ===================================================================== */
/* centred composition: heading, copy and both buttons stack down the middle, so a
   full-width card never leaves a big empty gap between left copy and right buttons. */
.tr-cta-card{background:var(--tr-card);color:var(--tr-navy);border:1.8px solid var(--tr-line);
  border-radius:clamp(22px,3vw,34px);padding:clamp(40px,5.5vw,72px) clamp(28px,5vw,64px);
  display:flex;flex-direction:column;align-items:center;text-align:center;gap:clamp(20px,2.6vw,30px);
  position:relative;overflow:hidden;box-shadow:0 28px 64px rgba(10,31,77,.14)}
/* the full hero photo sits behind the CTA as a faded texture (inlined <img>, no JS). A
   soft light veil over it keeps the navy heading and slate copy readable. */
/* nudge the faded photo LEFT (zoom anchored to the right edge, clipped by the card's
   overflow) so the centred "Apply now" button doesn't sit over the nearest worker's face. */
.tr-cta-bg{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 48%;
  transform:scale(1.12);transform-origin:100% 48%;
  opacity:.42;pointer-events:none;z-index:0}
.tr-cta-card::after{content:"";position:absolute;inset:0;z-index:1;pointer-events:none;
  background:radial-gradient(130% 120% at 50% 38%,rgba(220,230,245,.34),rgba(198,213,240,.58))}
.tr-cta-copy{max-width:60ch;position:relative;z-index:2}
.tr-cta-copy h2{font-weight:800;letter-spacing:-.025em;line-height:1.06;font-size:clamp(1.95rem,3.6vw,2.9rem);margin:0}
.tr-cta-copy p{color:var(--tr-muted);font-size:1.08rem;line-height:1.6;margin:14px auto 0;max-width:54ch}
.tr-cta-acts{display:flex;flex-direction:row;flex-wrap:wrap;justify-content:center;gap:14px;position:relative;z-index:2}
.tr-cta-acts .tr-btn-line{color:var(--tr-navy);border-color:rgba(10,31,77,.28)}
/* balance the Apply card in its band: nudge it DOWN (bigger top padding) while the marquee
   gap below is trimmed (see .tr-accred .acmarq) so the space above and below the card matches */
#tr-apply{padding-top:clamp(32px,3.1vw,44px);padding-bottom:clamp(4px,0.8vh,10px)}

/* =====================================================================
   ACCREDITATION BAND (reuses shared .acmarq/.actrack/.accard)
   ===================================================================== */
/* the band sits OUTSIDE .tr, so custom props don't reach it — use an explicit
   light-blue (the same field) so the marquee flows like the previous page, not navy. */
.tr-accred{background:#dce6f5;padding:clamp(4px,1vw,12px) 0 clamp(28px,3.6vw,44px)}
/* trim the shared ~46-88px marquee top gap (like about/fit-out/construction do) so the
   space above the marquee matches the space above the Apply card — Home unaffected */
.tr-accred .acmarq{max-width:none;margin-top:clamp(14px,1.7vw,24px)}

/* ---------- mobile menu (JS-built from the shared nav links) ---------- */
.tr-mnav{position:fixed;top:82px;left:clamp(14px,3.4vw,40px);right:clamp(14px,3.4vw,40px);z-index:99;
  max-height:calc(100dvh - 100px);overflow-y:auto;-webkit-overflow-scrolling:touch;
  background:#0B2560;border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:10px;
  box-shadow:0 30px 70px rgba(0,0,0,.55);display:none;flex-direction:column;gap:2px;
  opacity:0;transform:translateY(-10px);transition:opacity .3s var(--e),transform .3s var(--e)}
.tr-mnav.open{display:flex;opacity:1;transform:none}
.tr-mnav-a{display:block;padding:13px 16px;border-radius:12px;font-size:.98rem;font-weight:600;
  color:rgba(255,255,255,.9);text-decoration:none}
.tr-mnav-a.sub{padding:10px 16px 10px 30px;font-weight:500;font-size:.9rem;color:rgba(255,255,255,.66)}
.tr-mnav-a.cta{margin-top:8px;text-align:center;background:#C8102E;color:#fff;font-weight:700}
@media(hover:hover){.tr-mnav-a:hover{background:rgba(255,255,255,.08);color:#fff}}
@media(min-width:1081px){.tr-mnav{display:none!important}}

/* ---------- back-to-top (sits OUTSIDE .tr, so brand colours are explicit hex) ---------- */
/* back-to-top — matched to the home page's button: a rounded-square navy button that
   flips to a WHITE button over dark bands so the arrow always reads (JS toggles .over-dark). */
.tr-totop{position:fixed;right:clamp(20px,3vw,40px);bottom:clamp(20px,3vw,36px);z-index:120;
  width:54px;height:54px;display:grid;place-items:center;border:0;cursor:pointer;border-radius:16px;
  background:#0A1F4D;color:#fff;box-shadow:0 14px 34px rgba(200,16,46,.42);
  opacity:0;pointer-events:none;visibility:hidden;transform:translateY(18px);
  transition:opacity .4s var(--e),transform .4s var(--e),background .3s var(--e),color .3s var(--e),box-shadow .3s var(--e),visibility .4s var(--e)}
.tr-totop svg{width:21px;height:21px;display:block}
.tr-totop.is-vis{opacity:1;pointer-events:auto;visibility:visible;transform:none}
/* over a navy/dark band the dark button vanishes — flip it to a white button, like home */
.tr-totop.over-dark{background:#fff;color:#0A1F4D;box-shadow:0 14px 34px rgba(10,31,77,.45)}
@media(hover:hover) and (pointer:fine){
  .tr-totop.is-vis:hover{transform:translateY(-4px);box-shadow:0 18px 42px rgba(200,16,46,.55)}
  .tr-totop.over-dark.is-vis:hover{box-shadow:0 18px 42px rgba(10,31,77,.55)}
}
@media(prefers-reduced-motion:reduce){.tr-totop{transition:none}}

/* =====================================================================
   REVEAL — CARDS ONLY.
   Text is never hidden or animated (it must always be visible); the Intro block
   after the hero has no reveal at all; the process steps and the CTA banner are
   static too. Only the four card grids animate — per card, when 2/3 of the card
   is in view. The hero keeps its own on-load entrance (below). Hidden states
   apply ONLY under html.js, so with JS disabled every card is fully visible —
   the reveal is progressive enhancement.
   ===================================================================== */
:where(html.js) .tr-hero-title .tr-line>span{transform:translateY(112%);transition:transform 1s var(--e)}
.tr-hero.is-in .tr-line>span{transform:none}
.tr-hero.is-in .tr-line:nth-child(2)>span{transition-delay:.12s}
:where(html.js) .tr-hero-kick,:where(html.js) .tr-hero-sub,:where(html.js) .tr-hero-cta,:where(html.js) .tr-hero-facts{opacity:0;transform:translateY(20px);
  transition:opacity .8s var(--e),transform .8s var(--e)}
.tr-hero.is-in .tr-hero-kick{opacity:1;transform:none;transition-delay:.05s}
.tr-hero.is-in .tr-hero-sub{opacity:1;transform:none;transition-delay:.35s}
.tr-hero.is-in .tr-hero-cta{opacity:1;transform:none;transition-delay:.46s}
.tr-hero.is-in .tr-hero-facts{opacity:1;transform:none;transition-delay:.56s}

/* cards reveal PER CARD, when 2/3 of that card is in view (JS adds .is-in to each
   CARD — not to the grid). --n is the card's column index (set in JS from the grid's
   live column count); a small per-column delay gives a gentle in-row cascade. */
:where(html.js) .tr-stagger>*{opacity:0;transform:translateY(30px);
  transition:opacity .6s var(--e),transform .6s var(--e);transition-delay:calc(var(--n,0)*.06s);
  will-change:opacity,transform}
.tr-stagger>*.is-in{opacity:1;transform:none}
/* staircase variant (commitment): each item steps in from the lower-left, one after
   another (bigger per-step delay so it clearly reads as steps) */
:where(html.js) .tr-stair>*{transform:translate(-40px,22px);transition-delay:calc(var(--n,0)*.12s)}
.tr-stair>*.is-in{transform:none}
/* drop-in variant (offer cards): they fall in from ABOVE, one after another */
:where(html.js) .tr-drop>*{transform:translateY(-46px);transition-delay:calc(var(--n,0)*.12s)}
.tr-drop>*.is-in{transform:none}
/* training cards use the shared .tr-stagger fade-rise reveal (defined above). */

/* =====================================================================
   PREVIEW LOOP — the auto-height artifact iframe can't fire scroll reveals,
   so JS adds .tr-preview and every block loops its entrance in a rolling
   cascade (per-element --pd). Directional variety per section. On the real
   website these stay one-time scroll reveals (see the JS + the .is-in rules).
   ===================================================================== */
.tr-preview .tr-stagger>*{animation:trFxUp 8.5s var(--e) var(--pd,0s) infinite both}
.tr-preview .tr-fx-left{animation-name:trFxLeft}
.tr-preview .tr-fx-right{animation-name:trFxRight}
.tr-preview .tr-fx-scale{animation-name:trFxScale}
.tr-preview .tr-fx-stair{animation-name:trFxStair}
.tr-preview .tr-fx-top{animation-name:trFxTop}
@keyframes trFxUp{0%{opacity:0;transform:translateY(42px)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:translateY(-14px)}100%{opacity:0;transform:translateY(42px)}}
@keyframes trFxLeft{0%{opacity:0;transform:translateX(-70px)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:translateX(22px)}100%{opacity:0;transform:translateX(-70px)}}
@keyframes trFxRight{0%{opacity:0;transform:translateX(70px)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:translateX(-22px)}100%{opacity:0;transform:translateX(70px)}}
@keyframes trFxScale{0%{opacity:0;transform:scale(.84)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:scale(1.05)}100%{opacity:0;transform:scale(.84)}}
@keyframes trFxStair{0%{opacity:0;transform:translate(-46px,26px)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:translate(16px,-10px)}100%{opacity:0;transform:translate(-46px,26px)}}
@keyframes trFxTop{0%{opacity:0;transform:translateY(-56px)}9%{opacity:1;transform:none}88%{opacity:1;transform:none}96%{opacity:0;transform:translateY(18px)}100%{opacity:0;transform:translateY(-56px)}}
@keyframes trFxMask{0%{opacity:0;clip-path:inset(0 100% 0 0)}12%{opacity:1;clip-path:inset(0 0 0 0)}88%{opacity:1;clip-path:inset(0 0 0 0)}97%{opacity:0;clip-path:inset(0 0 0 100%)}100%{opacity:0;clip-path:inset(0 100% 0 0)}}

/* ---------- desktop hover polish ---------- */
@media(hover:hover) and (pointer:fine){
  .tr-btn-red:hover{transform:translateY(-2px);box-shadow:0 20px 40px rgba(200,16,46,.36)}
  .tr-btn-red:hover .tr-arw{transform:translateX(4px)}
  .tr-btn-blue:hover{transform:translateY(-2px);box-shadow:0 20px 40px rgba(10,31,77,.4)}
  .tr-btn-ghost:hover{background:rgba(255,255,255,.12);border-color:#fff}
  .tr-btn-line:hover{border-color:var(--tr-navy);background:rgba(10,31,77,.04)}
  .tr-cta-acts .tr-btn-line:hover{background:rgba(255,255,255,.12);border-color:#fff}
  .tr-card:hover{transform:translateY(-5px);box-shadow:0 26px 54px rgba(10,31,77,.12);border-color:rgba(10,31,77,.2)}
  .tr-vac-card:hover{transform:translateY(-4px);background:var(--tr-navy);border-color:var(--tr-navy);
    box-shadow:0 22px 44px rgba(10,31,77,.24)}
  .tr-vac-card:hover .tr-vac-role{color:#fff}
  .tr-vac-card:hover .tr-arw{color:#ff8494;opacity:1;transform:translateX(4px)}
  .accard:hover{border-color:var(--tr-red)}
}

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media(max-width:1180px){
  /* not enough width for 3 role columns beside the map — fall back to 2 */
  .tr-vac-body{grid-template-columns:minmax(0,1.3fr) minmax(0,1fr)}
  .tr-vac-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tr-vac-act{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tr-vac-mapwrap{max-width:460px}
  /* below the wide desktop, drop to two columns and clear the 3+2 spans
     (match the base nth-child specificity so these resets actually win) */
  .tr-train-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tr-train-card:nth-child(-n+3),.tr-train-card:nth-child(n+4){grid-column:auto}
  .tr-train-card:nth-child(5){grid-column:span 2}
}
@media(max-width:900px){
  .tr-intro-grid{grid-template-columns:1fr;gap:32px}
  .tr-intro-media{order:-1;width:100%;margin:0}
  .tr-grid-3{grid-template-columns:1fr;max-width:520px;margin-inline:auto}
  .tr-vac-body{grid-template-columns:1fr;gap:34px}
  .tr-vac-grid{grid-template-columns:repeat(2,1fr)}
  .tr-vac-mapwrap{max-width:520px;margin-inline:auto;margin-top:0}
  .tr-commit-grid{grid-template-columns:1fr;gap:30px}
  .tr-steps{grid-template-columns:1fr;gap:0}
  .tr-steps-rail{left:33px;right:auto;top:0;bottom:0;width:2px;height:auto}
  .tr-steps-fill{width:100%!important;height:0}
  .tr-step{display:grid;grid-template-columns:68px 1fr;gap:20px;align-items:start;padding-bottom:34px}
  .tr-step-no{margin-bottom:0}
  .tr-step-body{padding-top:14px}
  .tr-step-body p{max-width:none}
}
@media(max-width:620px){
  .tr-vac-grid{grid-template-columns:1fr}
  .tr-train-grid{grid-template-columns:1fr;max-width:460px;margin-inline:auto}
  .tr-train-card:nth-child(5){grid-column:auto}
  .tr-vac-act{grid-template-columns:1fr}
  .tr-vac-act .tr-btn{grid-column:1}
  .tr-vac-map{display:none}
  .tr-cta-acts{width:100%;flex-direction:column}
  .tr-cta-acts .tr-btn{width:100%;justify-content:center}
  .tr-hero-cta{width:100%}
  .tr-hero-cta .tr-btn{flex:1;justify-content:center}
}
@media(max-width:420px){
  .tr-hero-cta{flex-direction:column}
  .tr-hero-cta .tr-btn{width:100%}
  .tr-hero-facts{gap:8px 18px}
}

/* =====================================================================
   REDUCED MOTION — everything visible, nothing animates
   ===================================================================== */
@media(prefers-reduced-motion:reduce){
  .tr-stagger>*,.tr-hero-kick,.tr-hero-sub,.tr-hero-cta,.tr-hero-facts,
  .tr-hero-title .tr-line>span{opacity:1!important;transform:none!important;transition:none!important;animation:none!important}
  .actrack{animation:none}
  .tr-intro-media{opacity:1!important;transform:none!important;transition:none!important}
  .tr-vac-map .tr-city circle{transform:none!important}
  .tr-vac-map .tr-city polyline{stroke-dashoffset:0!important}
  .tr-vac-map .tr-city text{opacity:1!important;transform:none!important}
}
