/* ================================================================ On-Site Concrete Training (training.py). Prefix tr-.
   Signature: the "Certificate spotlight" band. The certificate and the handout pages are DRAWN here, sized in container
   units so each drawing scales as one piece. Words inside them come from data-t (not page text). Motion is scroll-driven,
   plays once as the band arrives, and the resting state is the finished picture (reduced motion, older browsers). */
.pv-todo{max-width:var(--wrap);margin:20px auto 0;padding:14px var(--gutter)}
.pv-todo strong{display:block;margin-bottom:6px;color:#7d5200;font-size:14px}
.pv-todo ul{display:flex;flex-wrap:wrap;gap:6px}
.pv-todo li{padding:4px 10px;border:1px dashed #c9a24a;border-radius:3px;background:#fff8e8;color:#7d5200;font-size:13.5px}

.tr-hero h1 span{display:block}
.tr-take,.tr-steps,.tr-out,.tr-m-steps{padding:0;list-style:none}

/* ---------------------------------------------------------------- Certificate spotlight */
.tr-spot{padding-bottom:0;background:var(--deep);color:var(--on-navy);overflow:hidden}
.tr-spot h2,.tr-spot h3,.tr-spot .label{color:#fff}
/* Desktop: words left, picture right, running off the bottom of the band (that edge crops the certificate). */
.tr-spot-grid{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);grid-template-areas:"head art" "list art";column-gap:clamp(28px,5vw,80px);align-items:start}
.tr-spot-head{grid-area:head}
.tr-spot-list{grid-area:list;padding-bottom:var(--band)}
.tr-spot-art{grid-area:art;align-self:end}
.tr-academy{display:block;width:min(300px,78%);height:auto;margin-bottom:24px}
.tr-spot .lead{margin-top:16px}
.tr-take{margin:26px 0;border-top:1px solid var(--rule-navy)}
.tr-take li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:16px;padding:15px 0;border-bottom:1px solid var(--rule-navy)}
.tr-take-i{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;background:rgba(255,77,1,.14);color:var(--orange)}
.tr-take-i svg{width:22px;height:22px}
.tr-take h3{font-size:18px;margin:2px 0 4px}
.tr-take p{font-size:15.5px;line-height:1.5}
.tr-note{max-width:34em;margin-top:16px;color:#9fadc6;font-size:13px;line-height:1.45}

/* The stage: the handout fans out behind the certificate, which runs off the edge (it is cropped on purpose). */
.tr-stage{position:relative;margin:0;aspect-ratio:1;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.tr-stage i{display:block;font-style:normal}
/* font-size 0 on the holder, so its line box follows the drawn text size, not the 16 px body text. */
.tr-stage [data-t]{font-size:0;line-height:1.25}
.tr-stage [data-t]::before{content:attr(data-t)}
.tr-fan{position:absolute;inset:0}
.tr-page{position:absolute;left:16%;top:2%;width:40%;aspect-ratio:210/297;container-type:inline-size;overflow:hidden;border-radius:.8cqi;
  background:#fff;transform-origin:22% 100%;rotate:var(--r);box-shadow:0 2cqi 6cqi -1cqi rgba(0,0,0,.55);
  transition:rotate 1.1s var(--ease) var(--d),translate .6s var(--ease)}
.tr-p3{--r:-24deg;--d:.16s}
.tr-p2{--r:-13deg;--d:.08s}
.tr-p1{--r:-3deg;--d:0s}
.tr-pg{position:relative;height:100%;padding:8cqi 8cqi 7cqi;display:flex;flex-direction:column}
.tr-pphoto{position:absolute;inset:0}
.tr-pphoto img{width:100%;height:100%;object-fit:cover;opacity:.42}
.tr-pphoto::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(0,34,91,.55),rgba(0,34,91,.94) 72%)}
.tr-p1,.tr-p2{background:var(--navy)}
.tr-bar{height:1.8cqi;width:var(--w);margin:0 0 1.7cqi;border-radius:1cqi;background:#dde2eb}
.tr-bar.lt{background:rgba(255,255,255,.26)}
.tr-cap::before{font-size:2.3cqi;font-weight:600;letter-spacing:.16em;text-transform:uppercase;color:var(--navy)}

/* Cover */
.tr-cv-logo{width:70cqi;height:auto}
.tr-cv-disc{margin-top:2.4cqi}
.tr-cv-disc::before{color:#c6d0e2;font-size:2.15cqi;letter-spacing:.12em;text-transform:uppercase;white-space:nowrap}
.tr-cv-low{margin-top:34cqi}
.tr-cv-eye::before{color:#ff6a2b;font-size:2.6cqi;font-weight:600;letter-spacing:.16em;text-transform:uppercase}
.tr-cv-title{margin:2.6cqi 0 5cqi}
.tr-cv-title::before{display:block;color:#fff;font-size:8.4cqi;font-weight:700;line-height:1.08;letter-spacing:-.02em}
.tr-cv-meta{display:flex;gap:5cqi;margin-top:auto;padding-top:5cqi;border-top:1px solid rgba(255,255,255,.2)}
.tr-cv-low+.tr-cv-meta{margin-top:auto}
.tr-cv-meta .tr-bar{flex:1}
.tr-p1 .tr-pg{justify-content:flex-start}

/* Part divider */
.tr-p2 .tr-pg{justify-content:flex-end}
.tr-d-letter::before{color:#ff6a2b;font-size:24cqi;font-weight:700;line-height:1}
.tr-d-title::before{display:block;margin:2cqi 0 5cqi;color:#fff;font-size:8.6cqi;font-weight:700;letter-spacing:-.02em}
.tr-d-list{display:block;margin-bottom:6cqi}

/* Module page */
.tr-p3 .tr-pg{padding:7cqi}
.tr-m-head{display:flex;justify-content:space-between;align-items:center;gap:3cqi}
.tr-eye::before{color:#ed5520;font-size:2.1cqi;font-weight:600;letter-spacing:.14em;text-transform:uppercase}
.tr-pill{flex:none;padding:1cqi 2.4cqi;border-radius:4cqi;background:var(--navy)}
.tr-pill::before{color:#fff;font-size:2cqi;font-weight:600;white-space:nowrap}
.tr-m-title{margin-top:3cqi}
.tr-m-title::before{color:var(--navy);font-size:6.4cqi;font-weight:700;letter-spacing:-.01em}
.tr-m-rule{height:.5cqi;margin:2.6cqi 0 4cqi;background:var(--navy)}
.tr-m-cols{display:grid;grid-template-columns:1.25fr 1fr;gap:4.5cqi}
.tr-m-cols .tr-cap{margin:2.4cqi 0 2cqi}
.tr-m-steps li{display:flex;gap:2.4cqi;margin-bottom:1.6cqi}
.tr-m-steps li::before{content:"";flex:none;width:4cqi;height:4cqi;border-radius:50%;background:#ed5520}
.tr-m-steps li>i:first-child{margin-top:.8cqi}
.tr-m-steps li{flex-wrap:wrap;align-items:flex-start}
.tr-m-steps li .tr-bar{flex:1 1 70%}
.tr-m-photo{display:block;aspect-ratio:4/3;overflow:hidden;border-radius:.8cqi;background:#c6d0e2}
.tr-m-photo img{width:100%;height:100%;object-fit:cover}
.tr-m-tiles{display:grid;grid-template-columns:1fr 1fr;gap:1.8cqi}
.tr-m-tiles i{aspect-ratio:1.5;border-radius:.8cqi;background:#eaf0f8}
.tr-m-watch{display:block;margin-top:2.6cqi;padding:2.6cqi 2.6cqi 1cqi;border-radius:.8cqi;background:#fff4ea}
.tr-m-watch .tr-bar{background:#f2cdb3}

/* The specimen certificate (A4 landscape) */
.tr-cert{position:absolute;right:-12%;bottom:-5%;width:76%;aspect-ratio:297/210;container-type:inline-size;rotate:5deg;
  filter:drop-shadow(0 2.6cqi 4cqi rgba(0,0,0,.5));transition:translate 1s var(--ease) .45s,rotate 1s var(--ease) .45s,opacity .5s ease .45s}
.tr-cert-in{position:absolute;inset:0;overflow:hidden;padding:5.4cqi 5cqi 3cqi 10.5cqi;background:#fff;border-radius:.4cqi}
.tr-spine{position:absolute;left:0;top:0;bottom:0;width:4.4cqi;background:var(--navy);overflow:hidden}
.tr-tab{position:absolute;inset:0 0 auto;height:6.6cqi;background:#ed5520}
.tr-guil{position:absolute;inset:0;width:100%;height:100%;fill:none;stroke:#fff;stroke-width:.6px;opacity:.16}
.tr-guil polyline{vector-effect:non-scaling-stroke}
.tr-spine-t{position:absolute;left:0;right:0;bottom:16cqi;display:flex;justify-content:center;writing-mode:vertical-rl;rotate:180deg}
.tr-spine-t::before{color:rgba(255,255,255,.8);font-size:1.15cqi;letter-spacing:.3em;text-transform:uppercase;white-space:nowrap}
.tr-c-top{display:flex;justify-content:space-between;align-items:flex-start}
.tr-wm{width:15cqi;height:auto;fill:var(--navy)}
.tr-disc{margin-top:1.2cqi}
.tr-disc::before{color:#ed5520;font-size:.95cqi;font-weight:600;letter-spacing:.16em;text-transform:uppercase;white-space:nowrap}
.tr-c-no{text-align:right}
.tr-cert .tr-cap::before{font-size:.95cqi;letter-spacing:.18em}
.tr-no::before{color:#ed5520;font-size:2.1cqi;font-weight:700;letter-spacing:.14em}
.tr-c-title{margin-top:6.4cqi}
.tr-c-title::before{color:var(--navy);font-size:1.45cqi;font-weight:600;letter-spacing:.28em;text-transform:uppercase;white-space:nowrap}
.tr-c-rule{width:7.5cqi;height:.45cqi;margin:1.6cqi 0 2.6cqi;background:#ed5520}
.tr-c-body{display:grid;grid-template-columns:minmax(0,1fr) 27cqi;gap:4cqi}
.tr-c-sm::before{color:var(--muted);font-size:1.45cqi}
.tr-c-name{margin:.6cqi 0 1.6cqi}
.tr-c-name::before{color:var(--navy);font-size:4.6cqi;font-weight:800;letter-spacing:-.02em;line-height:1.1;white-space:nowrap}
.tr-c-course{margin:.6cqi 0 2.2cqi}
.tr-c-course::before{color:var(--navy);font-size:2.15cqi;font-weight:700;white-space:nowrap}
.tr-cert .tr-bar{height:1.05cqi;margin-bottom:1.15cqi;border-radius:.6cqi;background:#e3e8f0}
.tr-c-facts{display:grid;grid-template-columns:1fr 1fr;gap:2.4cqi 2cqi;align-content:start;padding-left:3cqi;border-left:1px solid #d7dde8}
.tr-c-facts .tr-bar{margin-top:.9cqi}
.tr-c-sigs{position:absolute;left:10.5cqi;right:5cqi;bottom:8.6cqi;display:flex;align-items:flex-end;gap:6cqi}
.tr-c-sigs>div{width:22cqi}
.tr-sig{margin-bottom:1.2cqi;border-top:.16cqi solid var(--navy)}
.tr-cert .tr-bar.sm{height:.9cqi;margin-bottom:.8cqi}
.tr-seal{width:10.5cqi;height:auto;margin-left:auto;fill:none;stroke:var(--navy)}
.tr-seal .r1{stroke-width:.9}.tr-seal .r2{stroke-width:.45}.tr-seal .r3{stroke-width:.4}
.tr-seal .rays circle{stroke-width:6}
.tr-seal .ros{stroke-width:.25;opacity:.4}
.tr-seal svg path{fill:var(--navy);stroke:none}
.tr-c-foot{position:absolute;left:10.5cqi;right:5cqi;bottom:2.4cqi;padding-top:1.4cqi;border-top:1px solid #e1e6ef}
.tr-cert .tr-bar.xs{height:.7cqi;margin-bottom:.65cqi}
.tr-c-mark{position:absolute;right:-10cqi;bottom:-8cqi;width:52cqi;height:auto;fill:var(--navy);opacity:.045}
.tr-stamp{position:absolute;left:50%;top:47%;translate:-50% -50%;rotate:-17deg;padding:.6cqi 3cqi;border:.6cqi solid rgba(255,77,1,.55);border-radius:1.2cqi;color:rgba(255,77,1,.55)}
.tr-stamp::before{font-size:8.6cqi;font-weight:800;letter-spacing:.16em;text-transform:uppercase;line-height:1.15;white-space:nowrap}

/* ---------------------------------------------------------------- Intro */
.tr-intro{display:grid;grid-template-columns:minmax(0,7fr) minmax(0,5fr);gap:clamp(28px,6vw,96px);align-items:center}
.tr-points{margin-top:28px;border-top:1px solid var(--navy)}
.tr-points li{display:grid;grid-template-columns:28px minmax(0,1fr);gap:16px;padding:18px 0;border-bottom:1px solid var(--line)}
.tr-ico{width:26px;height:26px;color:var(--orange)}
.tr-pt-h{margin-bottom:4px;color:var(--navy);font-size:18px;font-weight:600}
.tr-o{color:var(--orange)}
.tr-intro-photo{margin:0;aspect-ratio:4/5;overflow:hidden}
.tr-intro-photo img{width:100%;height:100%;object-fit:cover}

/* ---------------------------------------------------------------- How it works: four steps, the last one orange */
.tr-steps{position:relative;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(20px,3vw,40px)}
.tr-steps::before{content:"";position:absolute;left:28px;right:12%;top:27px;height:2px;background:#c9d2e2}
.tr-step{position:relative}
.tr-step-n{position:relative;display:grid;place-items:center;width:56px;height:56px;margin-bottom:20px;border:2px solid var(--navy);border-radius:50%;background:#fff;color:var(--navy);font-size:22px;font-weight:600}
.tr-step:last-child .tr-step-n{border-color:var(--orange);background:var(--orange);color:#fff}
.tr-step h4{margin-bottom:8px;font-size:20px}
.tr-step p{font-size:15.5px}
.tr-foot{display:flex;align-items:center;gap:10px;margin-top:32px;color:var(--navy)}
.tr-foot svg{flex:none;width:18px;height:18px;color:var(--orange)}
.tr-foot strong{font-weight:600}

/* ---------------------------------------------------------------- Training topics: 15 cards, a swipe row on phones */
.tr-swipe{display:none}
.tr-topics{display:grid;grid-template-columns:repeat(auto-fill,minmax(232px,1fr));gap:28px 20px}
.tr-topic{display:flex;flex-direction:column;border-top:1px solid var(--navy)}
.tr-topic figure{position:relative;margin:0;aspect-ratio:3/2;overflow:hidden;background:var(--ground)}
.tr-topic img{width:100%;height:100%;object-fit:cover;transition:scale .5s var(--ease)}
.tr-topic:hover img{scale:1.04}
.tr-tag{position:absolute;left:10px;bottom:10px;padding:4px 10px;border-radius:999px;background:var(--navy);color:#fff;font-size:12.5px;font-weight:600;line-height:1.3}
.tr-tag.is-in{background:#fff;color:var(--navy)}
.tr-topic>div{padding-top:14px}
.tr-topic-n{display:flex;gap:8px;margin-bottom:6px;color:var(--muted);font-size:13px;font-weight:500}
.tr-topic-n b{color:var(--orange);font-weight:600}
.tr-topic h4{margin-bottom:8px;font-size:19px}
.tr-topic p{font-size:15px;line-height:1.5}
.tr-calc{display:block;margin-top:10px;padding-top:10px;border-top:1px dashed var(--line)}

/* ---------------------------------------------------------------- Outcomes */
.tr-out-head{max-width:760px;margin-bottom:clamp(28px,4vw,48px)}
.tr-out{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.tr-out li{padding:26px 26px 28px;background:#fff;border-top:3px solid var(--navy)}
.tr-out b{display:block;margin-bottom:14px;color:var(--orange);font-size:28px;font-weight:500;line-height:1;font-variant-numeric:tabular-nums}
.tr-out h4{margin-bottom:8px;font-size:19px}
.tr-out p{font-size:15.5px}

/* ---------------------------------------------------------------- CTA, why it matters, qualified, proof, FAQ */
.tr-cta .wrap{display:flex;justify-content:space-between;align-items:center;gap:28px}
.tr-cta h3{max-width:24em}
.tr-cta .btns{flex:none}
.tr-why{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(24px,3.5vw,48px)}
.tr-why figure{margin:0 0 22px;aspect-ratio:3/2;overflow:hidden}
.tr-why figure img{width:100%;height:100%;object-fit:cover}
.tr-why h3{margin-bottom:12px}
.tr-why p+p{margin-top:12px}
.tr-badges{display:flex;flex-wrap:wrap;gap:8px;margin-top:18px}
.tr-badges li{display:inline-flex;align-items:center;gap:6px;padding:6px 12px;border:1px solid var(--line);border-radius:999px;color:var(--navy);font-size:14px;font-weight:500}
.tr-badges .tick{margin-top:0;width:15px;height:15px}
.tr-qual{align-items:center}
.tr-qual-photo{margin:0;aspect-ratio:4/3;overflow:hidden}
.tr-qual-photo img{width:100%;height:100%;object-fit:cover}
.tr-proof{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr);gap:clamp(24px,5vw,72px);align-items:start;margin-bottom:clamp(48px,6vw,88px)}
.tr-proof .ticks{margin:0}
.tr-co{display:block;color:var(--muted);font-weight:400}
.tr-match{margin-top:32px;padding-top:24px;border-top:1px solid var(--line)}
.tr-match h3{margin-bottom:16px}

/* ---------------------------------------------------------------- Motion (CSS only, once, as the band arrives) */
@media (hover:hover) and (pointer:fine){
  .tr-stage:hover .tr-p3{translate:-4% 0}
  .tr-stage:hover .tr-p2{translate:-2% 0}
}
/* The fan opens and the certificate lands once, when the picture is 40% on screen. The page script only adds tr-armed
   (the closed state) if the picture starts below the fold; without it, or with reduced motion, the finished picture shows. */
.tr-armed .tr-page{rotate:0deg}
.tr-armed .tr-cert{translate:0 18%;rotate:11deg;opacity:0}
.tr-still,.tr-still *{transition:none!important}
@supports (animation-timeline:view()){
  @media (prefers-reduced-motion:no-preference){
    .tr-take li,.tr-topic,.tr-out li,.tr-why>li,.tr-step{animation:rise linear both;animation-timeline:view();animation-range:entry 0% entry 45%}
  }
}

/* ---------------------------------------------------------------- Tablet and phone */
@media (max-width:1180px){
  .tr-why{gap:24px}
}
@media (max-width:900px){
  .tr-spot{padding-bottom:var(--band)}
  .tr-spot-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "art" "list"}
  .tr-spot-list{padding-bottom:0}
  .tr-spot-art{margin:28px 0 4px}
  .tr-stage{aspect-ratio:.92;overflow:clip;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
  .tr-page{left:15%;top:4%;width:45%}
  .tr-cert{width:86%;right:-15%;bottom:-4%}
  .tr-intro{grid-template-columns:minmax(0,1fr)}
  .tr-intro-photo{aspect-ratio:16/10}
  .tr-steps{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tr-steps::before{display:none}
  .tr-swipe{display:block;margin:-8px 0 14px;color:var(--muted);font-size:14px}
  .tr-swipe::after{content:" \2192";color:var(--orange)}
  .tr-topics{grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:min(78vw,300px);gap:16px;overflow-x:auto;overscroll-behavior-x:contain;
    scroll-snap-type:x mandatory;margin:0 calc(var(--gutter)*-1);padding:0 var(--gutter) 12px;scroll-padding-inline:var(--gutter);scrollbar-width:thin}
  .tr-topic{scroll-snap-align:start}
  .tr-out{grid-template-columns:repeat(2,minmax(0,1fr))}
  .tr-cta .wrap{flex-direction:column;align-items:flex-start}
  .tr-why{grid-template-columns:minmax(0,1fr);gap:48px}
  .tr-why figure{aspect-ratio:16/9}
  .tr-proof{grid-template-columns:minmax(0,1fr)}
}
@media (max-width:640px){
  .tr-academy{width:min(250px,84%);margin-bottom:22px}
  .tr-stage{aspect-ratio:.82}
  .tr-page{left:13%;width:49%}
  .tr-cert{width:94%;right:-22%;bottom:-6%}
  .tr-take li{grid-template-columns:38px minmax(0,1fr);gap:14px}
  .tr-take-i{width:38px;height:38px}
  .tr-steps{grid-template-columns:minmax(0,1fr);gap:0}
  .tr-step{display:grid;grid-template-columns:48px minmax(0,1fr);column-gap:16px;padding-bottom:22px}
  .tr-step::before{content:"";position:absolute;left:23px;top:48px;bottom:0;width:2px;background:#c9d2e2}
  .tr-step:last-child::before{display:none}
  .tr-step-n{grid-row:span 2;width:48px;height:48px;margin:0;font-size:19px}
  .tr-step h4{align-self:center;margin:12px 0 6px}
  .tr-foot{align-items:flex-start}
  .tr-foot svg{margin-top:3px}
  .tr-out{grid-template-columns:minmax(0,1fr)}
  .tr-cta .btns,.tr-match .btns{width:100%}
}
@media (prefers-reduced-motion:reduce){.tr-page,.tr-cert,.tr-topic img{transition:none!important;animation:none!important}}
