/* =====================================================================
   GSDT Design D · Strategic Procurement — Stage 3 Creative Concept R1
   Built on the approved Datum system (design-d.css, home.css, s2.css). New rules only; nothing approved is changed.
   01 hero "Detail A"  ·  02/03 direction bands  ·  04 the requirement's journey  ·  05 approved CL-A closing
   ===================================================================== */
.page-proc .section-pad-top { padding-top: var(--section-pad); }

/* ---------------------------------------------------------------- 01 Hero: Detail A — from the berth to the network */
.ph__track { position: relative; height: 270vh; }
.ph__stage { position: sticky; top: 0; height: 100vh; min-height: 680px; overflow: hidden; background: var(--charcoal); }
.ph__map, .ph__ov { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.ph__map { z-index: 0; }
.ph__plate { position: absolute; inset: 0; z-index: 1; transform-origin: 0 0; will-change: transform, clip-path; background: #111214; }
.ph__plate picture, .ph__img { display: block; width: 100%; height: 100%; }
.ph__img { object-fit: cover; object-position: 60% 50%; }
.ph__shade {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(26, 27, 29, .9) 0%, rgba(26, 27, 29, .58) 30%, rgba(26, 27, 29, 0) 54%),
    linear-gradient(180deg, rgba(26, 27, 29, .5) 0%, rgba(26, 27, 29, 0) 20%, rgba(26, 27, 29, 0) 70%, rgba(26, 27, 29, .9) 100%);
}
.ph__ov { z-index: 3; }
/* the text layer is a sibling of the stage: pinned with it on desktop, scrolling away over it on phones and tablets */
.ph__content { position: sticky; top: 0; z-index: 4; height: 100vh; min-height: 680px; margin-top: calc(-1 * max(100vh, 680px)); pointer-events: none; }
.ph__inner { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 36px; }
.ph__content a, .ph__content button { pointer-events: auto; }
.ph__grid { align-items: end; }
.ph__text { grid-column: 1 / span 6; }
.ph__eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--cool); }
.ph__eyebrow .sl { color: var(--graphite); }
.pk { font: inherit; letter-spacing: inherit; text-transform: inherit; color: var(--cool); padding: 6px 0; position: relative; transition: color var(--t-mid) var(--ease-out); }
.pk::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--warm); transform: scaleX(0); transform-origin: left; transition: transform 600ms var(--ease-out); }
.pk:hover, .pk:focus-visible { color: var(--titanium); }
.pk.is-on { color: var(--warm); }
.pk.is-on::after { transform: scaleX(1); }
.ph__title { margin-top: 22px; color: var(--warm); max-width: 12ch; }
.ph__title .ln:not(:first-child) > span { color: var(--titanium); }
@media (min-width: 1081px) { .ph__title { font-size: min(var(--t-xl), 5.3vw); max-width: none; } .ph__title .ln { white-space: nowrap; } }
.ph__lede { margin-top: 26px; max-width: 31em; }
.ph__lede .t-lede { color: var(--titanium); }
.ph__lede .t-body { color: var(--cool); }
.ph__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 30px; }
.ph__quick { display: flex; flex-wrap: wrap; gap: 0; }
.ph__quick a { font-size: 13px; font-weight: 560; letter-spacing: .01em; color: var(--titanium); padding: 8px 14px; border-left: 1px solid rgba(196, 197, 199, .24); transition: color var(--t-fast); }
.ph__quick a:first-child { border-left: 0; padding-left: 0; }
.ph__quick a:hover, .ph__quick a:focus-visible { color: var(--warm); }
.ph__meta {
  margin-top: 40px; padding-top: 14px; border-top: 1px solid rgba(196, 197, 199, .2);
  display: grid; grid-template-columns: auto minmax(120px, 280px) 1fr; gap: 22px; align-items: center;
  font-size: 12px; letter-spacing: .04em; color: var(--cool);
}
.ph__meta #ph-state { color: var(--warm); letter-spacing: .12em; text-transform: uppercase; font-size: 11px; font-weight: 560; min-width: 13.5em; }
.ph__meta em { font-style: italic; justify-self: end; text-align: right; }
.ph__bar { height: 1px; background: rgba(196, 197, 199, .22); position: relative; overflow: hidden; }
.ph__bar i { position: absolute; inset: 0; background: var(--warm); transform-origin: left; transform: scaleX(0); }
/* Desktop heights (from 1081 px wide). The hero text is anchored to the bottom of the screen, so in a short browser window
   (a laptop, or a browser with its toolbars) it used to rise under the header. Now:
   - the title also scales with the height. --ph-k is the height of everything except the title at that width (header,
     24 px clearance, eyebrow, lede, actions, meta line, bottom padding); 2.94 is the title's three lines. The title only
     shrinks when the window is too short for it, so tall windows are unchanged;
   - below 881 px tall the spacing tightens, the lede takes a longer measure and the quick links set closer, so that the
     title can stay large; below 761 px the lede steps down one size and the stage may be as short as 600 px (was 680);
     below 661 px the lede and spacing step down once more.
   Values were measured with work/tools/s3p/hero_heights.py, which also checks every width and height. */
@media (min-width: 1081px) {
  .ph { --ph-k: calc(var(--header-h) + 574px); --ph-min: 680px; }   /* --ph-k is set per width and height below */
  .ph__inner { justify-content: flex-end; justify-content: safe flex-end; padding-top: calc(var(--header-h) + 20px); }
  .ph__title { font-size: max(40px, min(var(--t-xl), 5.3vw, calc((max(100vh, var(--ph-min)) - var(--ph-k)) / 2.94))); }
}
@media (min-width: 1081px) and (max-height: 880px) {
  .ph__inner { padding-bottom: 22px; }
  .ph__title { margin-top: 16px; }
  .ph__lede { margin-top: 18px; max-width: 40em; }
  .ph__ctas { margin-top: 22px; gap: 12px 18px; }
  .ph__quick a { padding: 6px 10px; font-size: 12.5px; }
  .ph__meta { margin-top: 24px; }
}
@media (min-width: 1081px) and (max-height: 760px) {
  .ph { --ph-min: 600px; }
  .ph__stage { min-height: 600px; }
  .ph__content { min-height: 600px; margin-top: calc(-1 * max(100vh, 600px)); }
  .ph__title { margin-top: 12px; }
  .ph__lede .t-lede { font-size: 19px; line-height: 1.45; }
  .ph__lede .t-body { font-size: 15.5px; }
  .ph__ctas { margin-top: 18px; }
  .ph__meta { margin-top: 18px; }
}
@media (min-width: 1081px) and (max-height: 660px) {
  .ph__title { margin-top: 8px; }
  .ph__lede { margin-top: 10px; }
  .ph__lede .t-lede { font-size: 17.5px; }
  .ph__lede .t-body { font-size: 15px; margin-top: 8px; }
  .ph__ctas { margin-top: 12px; }
  .ph__meta { margin-top: 12px; padding-top: 10px; }
  .ph__inner { padding-bottom: 16px; }
}
/* --ph-k by width and height tier (measured by hero_heights.py: header + 24 px + the hero text without its title + bottom padding) */
@media (min-width: 1081px) { .ph { --ph-k: calc(var(--header-h) + 574px); } }
@media (min-width: 1100px) { .ph { --ph-k: calc(var(--header-h) + 566px); } }
@media (min-width: 1150px) { .ph { --ph-k: calc(var(--header-h) + 525px); } }
@media (min-width: 1210px) { .ph { --ph-k: calc(var(--header-h) + 559px); } }
@media (min-width: 1310px) { .ph { --ph-k: calc(var(--header-h) + 560px); } }
@media (min-width: 1400px) { .ph { --ph-k: calc(var(--header-h) + 512px); } }
@media (min-width: 1081px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 514px); } }
@media (min-width: 1100px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 496px); } }
@media (min-width: 1150px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 467px); } }
@media (min-width: 1210px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 441px); } }
@media (min-width: 1310px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 398px); } }
@media (min-width: 1400px) and (max-height: 880px) { .ph { --ph-k: calc(var(--header-h) + 400px); } }
@media (min-width: 1081px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 455px); } }
@media (min-width: 1100px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 435px); } }
@media (min-width: 1150px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 410px); } }
@media (min-width: 1210px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 410px); } }
@media (min-width: 1310px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 365px); } }
@media (min-width: 1400px) and (max-height: 760px) { .ph { --ph-k: calc(var(--header-h) + 365px); } }
@media (min-width: 1081px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 384px); } }
@media (min-width: 1100px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 364px); } }
@media (min-width: 1150px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 364px); } }
@media (min-width: 1210px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 364px); } }
@media (min-width: 1310px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 319px); } }
@media (min-width: 1400px) and (max-height: 660px) { .ph { --ph-k: calc(var(--header-h) + 293px); } }

/* ---------------------------------------------------------------- 02 Capabilities: one specification sheet */
.pd__head { row-gap: 24px; }
.pd__eyebrow { grid-column: 1 / span 3; padding-top: 14px; }
.pd__title { grid-column: 4 / span 9; max-width: 18ch; }
.pd__p { grid-column: 4 / span 6; }
.pc__body { margin-top: clamp(56px, 7vw, 104px); align-items: start; }
.pc__list { grid-column: 1 / span 4; grid-row: 1; border-top: 1px solid var(--rule); padding-bottom: 26vh; }
.pc__item { min-height: 30vh; border-bottom: 1px solid var(--rule); padding: 0 0 26px; color: var(--cool); transition: color var(--t-mid) var(--ease-out); }
.pc__h { margin: 0; font: inherit; }
.pc__btn { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 8px; width: 100%; text-align: left; padding: 22px 0 10px; color: inherit; align-items: baseline; }
.pc__btn .num { font-size: var(--t-label); letter-spacing: .15em; font-weight: 560; }
.pc__btn .t-h3 { color: inherit; transition: color var(--t-mid) var(--ease-out); }
.pc__btn:focus-visible { outline: 1px solid var(--charcoal); outline-offset: 4px; }
.pc__item > p { margin-left: calc(3.2em + 8px); max-width: 30em; color: var(--cool); transition: color var(--t-mid) var(--ease-out); }
.pc__item.is-on { color: var(--charcoal); }
.pc__item.is-on > p { color: var(--graphite); }
.pc__item.is-on .pc__btn .num::after { content: ""; display: inline-block; width: 18px; height: 1px; background: currentColor; margin-left: 8px; vertical-align: middle; }
.pc__fig { grid-column: 6 / span 7; grid-row: 1; margin: 0; position: sticky; top: calc(var(--header-h) + 28px); padding: 14px; }
.pc__fig .reg-mark { --c: var(--charcoal); }
.pc__sheet { position: relative; }
#cap-svg { display: block; width: 100%; height: auto; overflow: hidden; max-height: calc(100vh - var(--header-h) - 120px); }
.pc__cap { display: flex; justify-content: space-between; gap: 16px; margin-top: 12px; color: var(--graphite); }
.pc__cap .num { color: var(--charcoal); white-space: nowrap; order: 2; }   /* first in the markup so phones can float it beside the first line */
/* drawing tokens: B1 Light Schematic line weights on Warm White (as Section 04) */
#cap-svg .f-main { fill: none; stroke: var(--charcoal); stroke-width: 1.2; }
#cap-svg .f-thin { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
#cap-svg .ln { fill: none; stroke: var(--graphite); stroke-width: 1.1; stroke-linejoin: round; }
#cap-svg .ln-s { fill: none; stroke: var(--charcoal); stroke-width: 1.5; stroke-linejoin: round; }
#cap-svg .ln-h { fill: none; stroke: var(--cool); stroke-width: .9; stroke-dasharray: 5 4; }
#cap-svg .ln-d { fill: none; stroke: var(--graphite); stroke-width: .8; }
#cap-svg .ln-f { fill: none; stroke: var(--cool); stroke-width: .9; }
#cap-svg .cl { fill: none; stroke: var(--cool); stroke-width: .8; stroke-dasharray: 14 4 2 4; }
#cap-svg .ld { fill: none; stroke: var(--graphite); stroke-width: .85; }
#cap-svg .hatch { fill: url(#pc-hatch); stroke: none; }
#cap-svg .hatch-ln { stroke: var(--graphite); stroke-width: 1; }
#cap-svg .fill-w, #cap-svg .ln-s.fill-w, #cap-svg .ln.fill-w { fill: var(--warm); }
#cap-svg .fill-c, #cap-svg .nd { fill: var(--charcoal); }
#cap-svg .chk { fill: none; stroke: var(--charcoal); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
#cap-svg .sel { fill: rgba(26, 27, 29, .05); stroke: var(--charcoal); stroke-width: 1.6; }
#cap-svg .bar { fill: var(--titanium); }
#cap-svg .bar-k { fill: var(--charcoal); }
#cap-svg .ms { fill: var(--warm); stroke: var(--charcoal); stroke-width: 1.2; }
#cap-svg .stp { fill: rgba(246, 243, 239, .85); stroke: var(--charcoal); stroke-width: 2; }
#cap-svg .stp-t { fill: none; stroke: var(--charcoal); stroke-width: .8; }
#cap-svg .stp-c { fill: none; stroke: var(--charcoal); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
#cap-svg .ct { font: 560 12.5px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; fill: var(--charcoal); }
#cap-svg .ct-s { font: 560 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--graphite); }
#cap-svg .ct-v { font: 600 11.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; fill: var(--charcoal); }
#cap-svg .ct-r { font: 560 10px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--graphite); }
#cap-svg .ct-w { font: 600 11px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--warm); }
#cap-svg .ct-z { font: 560 9.5px/1 var(--font); letter-spacing: .1em; fill: var(--cool); }
#cap-svg .ct-dim { font: 600 14px/1 var(--font); letter-spacing: .04em; fill: var(--charcoal); }
#cap-svg .ct-stp { font: 600 8.6px/1 var(--font); letter-spacing: .2em; text-transform: uppercase; fill: var(--charcoal); }
#cap-svg .pc-z { transition: opacity 520ms var(--ease-out); }
#cap-svg .pc-z.is-dim { opacity: .2; }
#cap-svg.is-static .pc-z.is-dim { opacity: .32; }

/* ---------------------------------------------------------------- 04 Process: the requirement's journey */
.pq { overflow: clip; }
.pq__intro { display: none; }
.pq__track { position: relative; height: 560vh; }
.pq__stage { position: sticky; top: 0; height: 100vh; min-height: 700px; display: flex; align-items: center; }
.pq__grid { align-items: center; width: 100%; padding-top: calc(var(--header-h) * .55); }
.pq__text { grid-column: 1 / span 4; }
.pq__title { margin-top: 22px; max-width: 11ch; }
.pq__list { margin-top: clamp(28px, 3.4vw, 52px); border-top: 1px solid var(--rule); }
.pq__item { border-bottom: 1px solid var(--rule); color: var(--cool); transition: color var(--t-mid) var(--ease-out); }
.pq__btn { display: grid; grid-template-columns: 3.2em minmax(0, 1fr); column-gap: 8px; width: 100%; text-align: left; padding: 16px 0 14px; color: inherit; align-items: baseline; }
.pq__btn .num { font-size: var(--t-label); letter-spacing: .15em; font-weight: 560; }
.pq__btn .t-h3 { color: inherit; }
.pq__item > p { display: grid; grid-template-rows: 0fr; overflow: hidden; margin-left: calc(3.2em + 8px); max-width: 30em; color: var(--graphite);
  max-height: 0; opacity: 0; transition: max-height 520ms var(--ease-out), opacity 420ms var(--ease-out), padding 520ms var(--ease-out); }
.pq__item.is-on { color: var(--charcoal); }
.pq__item.is-on > p { max-height: 10em; opacity: 1; padding-bottom: 18px; }
.pq__item.is-done { color: var(--graphite); }
.pq__fig { grid-column: 5 / span 8; margin: 0; display: grid; gap: 12px; }
.pq__sheet { position: relative; }
#pq-svg { display: block; width: 100%; height: auto; max-height: calc(100vh - var(--header-h) - 120px); overflow: visible; }
.pq__cap { display: flex; justify-content: space-between; gap: 16px; color: var(--graphite); }
.pq__cap .num { color: var(--charcoal); white-space: nowrap; order: 2; }
/* drawing tokens: the B1 Light Schematic line weights on Warm White */
#pq-svg .frame { fill: none; stroke: var(--charcoal); stroke-width: 1.2; }
#pq-svg .frame-f { fill: none; stroke: var(--rule-strong); stroke-width: 1; }
#pq-svg .ln { fill: none; stroke: var(--graphite); stroke-width: 1.15; stroke-linejoin: round; stroke-linecap: round; }
#pq-svg .ln-s { fill: none; stroke: var(--charcoal); stroke-width: 1.6; stroke-linejoin: round; stroke-linecap: round; }
#pq-svg .ln-f { fill: none; stroke: var(--cool); stroke-width: .9; }
#pq-svg .ln-h { fill: none; stroke: var(--cool); stroke-width: .9; stroke-dasharray: 5 4; }
#pq-svg .ln-c { fill: none; stroke: var(--cool); stroke-width: .8; stroke-dasharray: 14 4 2 4; }
#pq-svg .ln-dim { fill: none; stroke: var(--graphite); stroke-width: .8; }
#pq-svg .ln-env { fill: none; stroke: var(--charcoal); stroke-width: 1; stroke-dasharray: 2 4; }
#pq-svg .hatch { fill: url(#pq-hatch); stroke: var(--charcoal); stroke-width: 1; }
#pq-svg .face-t { fill: var(--warm); }
#pq-svg .face-l { fill: rgba(196, 197, 199, .5); }
#pq-svg .face-r { fill: rgba(154, 156, 158, .4); }
#pq-svg .fill-w { fill: var(--warm); }
#pq-svg .fill-c { fill: var(--charcoal); }
#pq-svg .fill-g { fill: rgba(196, 197, 199, .35); }
#pq-svg .tag { font: 560 14px/1 var(--font); letter-spacing: .15em; text-transform: uppercase; fill: var(--charcoal); }
#pq-svg .tag-s { font: 560 12px/1 var(--font); letter-spacing: .13em; text-transform: uppercase; fill: var(--graphite); }
#pq-svg .tag-w { font: 600 12px/1 var(--font); letter-spacing: .12em; text-transform: uppercase; fill: var(--warm); }
#pq-svg .dimtx { font: 600 15px/1 var(--font); letter-spacing: .06em; fill: var(--charcoal); }
#pq-svg .tb-t { font: 560 11px/1 var(--font); letter-spacing: .14em; text-transform: uppercase; fill: var(--graphite); }
#pq-svg .tb-v { font: 600 12.5px/1 var(--font); letter-spacing: .1em; text-transform: uppercase; fill: var(--charcoal); }
#pq-svg .tag-line { stroke: var(--graphite); stroke-width: .85; fill: none; }
#pq-svg .node { fill: var(--warm); stroke: var(--charcoal); stroke-width: 1.2; }
#pq-svg .node.on { fill: var(--charcoal); }
#pq-svg .packet { fill: var(--charcoal); }

/* ---------------------------------------------------------------- 05 Final (approved CL-A closing component) */
.page-proc .final__row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }
.page-proc .related { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.page-proc .related a { font-size: 14.5px; font-weight: 560; color: var(--titanium); border-bottom: 1px solid var(--rule-strong); padding-bottom: 2px; }
.page-proc .related a:hover, .page-proc .related a:focus-visible { color: var(--warm); border-color: var(--warm); }
.page-proc .final__p { grid-column: 9 / span 4; }
.page-proc .final__title { max-width: 12ch; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
  .ph__track { height: 290svh; }
  .ph__stage { height: 100svh; min-height: 520px; }
  .ph__content { position: relative; height: auto; min-height: 100svh; margin-top: calc(-1 * max(100svh, 520px)); }
  .ph__inner { min-height: 100svh; padding-top: calc(var(--header-h) + 24px); position: relative; }
  /* a scrim that starts just above the eyebrow (whatever the text height) and fades out below the meta line,
     so the text reads over the photograph and leaves it without a hard edge as it scrolls away */
  .ph__text { position: relative; }
  .ph__text::before { content: ""; position: absolute; z-index: -1; pointer-events: none;
    left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
    top: -120px; bottom: -220px;
    background: linear-gradient(180deg, rgba(26, 27, 29, 0) 0, rgba(26, 27, 29, .78) 110px, rgba(26, 27, 29, .9) 50%, rgba(26, 27, 29, .9) calc(100% - 170px), rgba(26, 27, 29, 0) 100%); }
  .ph__text { grid-column: 1 / -1; }
  .ph__meta { grid-template-columns: auto 1fr; }
  .ph__meta em { display: none; }
  .ph__shade { background: linear-gradient(180deg, rgba(26, 27, 29, .5) 0%, rgba(26, 27, 29, 0) 20%, rgba(26, 27, 29, 0) 82%, rgba(26, 27, 29, .6) 100%); }
  .pd__eyebrow, .pd__title, .pd__p { grid-column: 1 / -1; }
  /* capabilities: the sheet holds at the top while the four capabilities are read beneath it */
  .pc__body { margin-top: calc(var(--header-h) + 16px); }
  .pc__fig { grid-column: 1 / -1; grid-row: 1; z-index: 2; top: var(--header-h); padding: 12px 0 14px; isolation: isolate; }
  .pc__fig::before { content: ""; position: absolute; z-index: -1; top: calc(-1 * var(--header-h)); bottom: 0;   /* covers the gap the header leaves when it hides */ left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); right: calc(-1 * max(var(--gutter), env(safe-area-inset-right, 0px)));
    background: var(--warm); box-shadow: 0 1px 0 var(--rule); }
  .pc__fig .reg-mark { display: none; }
  .pc__list { grid-column: 1 / -1; grid-row: 2; padding-bottom: 24vh; margin-top: 8px; }
  .pc__item { min-height: 34vh; }
  #cap-svg { max-height: 48svh; }
  .page-proc .final__p { grid-column: 1 / -1; }
  /* process: drawing on top, the active stage's words beneath it */
  .pq__track { height: 520vh; }
  .pq__stage { align-items: flex-start; }
  .pq__grid { padding-top: calc(var(--header-h) + 8px); row-gap: 14px; align-content: start; }
  .pq__text, .pq__fig { grid-column: 1 / -1; }
  .pq__text { order: 2; }
  .pq__fig { order: 1; }
  .pq__text .pq__title, .pq__text .eyebrow { display: none; }
  .pq__intro { display: block; padding-top: var(--section-pad); }
  .pq__intro .pq__title { display: block; margin-top: 18px; max-width: 14ch; }
  .pq__list { margin-top: 0; }
  #pq-svg { max-height: 52vh; }
}
@media (max-width: 1080px) and (min-width: 700px) {
  .pq__text { max-width: 40em; }
}
/* landscape tablets: keep the photograph open on the right — a left-to-right scrim instead of a full-width one */
@media (max-width: 1080px) and (orientation: landscape) {
  .ph__text { max-width: min(62%, 40em); }
  .ph__text::before { right: auto; width: 100vw;
    background: linear-gradient(90deg, rgba(26, 27, 29, .9) 0, rgba(26, 27, 29, .82) 42%, rgba(26, 27, 29, 0) 78%);
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 170px), transparent 100%);
            mask-image: linear-gradient(180deg, transparent 0, #000 110px, #000 calc(100% - 170px), transparent 100%); }
}
@media (max-width: 699px) {
  .ph__title { font-size: clamp(2.35rem, 1rem + 6.6vw, 3.4rem); max-width: none; }
  .ph__lede { margin-top: 18px; }
  .ph__ctas { margin-top: 22px; gap: 12px 18px; }
  .ph__quick a { padding: 6px 10px; font-size: 12.5px; }
  .ph__meta { margin-top: 22px; }
  #cap-svg { aspect-ratio: 1.2; max-height: 44svh; }
  .pc__cap { font-size: .6rem; margin-top: 8px; }
  .pc__cap > span:last-child { max-width: 74%; }
  .pc__btn { padding: 18px 0 8px; }
  .pc__item { min-height: 34vh; padding-bottom: 20px; }
  /* phones: each zone is framed on its own; its words are set larger than on the full sheet */
  #cap-svg .z1 .ct { font-size: 16px; letter-spacing: .1em; }
  #cap-svg .z1 .ct-dim { font-size: 20px; }
  #cap-svg .z3 .ct-s, #cap-svg .z3 .ct { font-size: 15px; letter-spacing: .08em; }
  .pq__stage { height: 100svh; min-height: 0; }
  .pq__btn { padding: 12px 0 10px; }
  .pq__item:not(.is-on) .pq__btn .t-h3 { font-size: 1rem; }
  .pq__item.is-on > p { padding-bottom: 12px; }
  .pq__cap { font-size: .6rem; }
  /* the list carries the words on phones (as B1 does); the drawing keeps its key tags, enlarged */
  #pq-svg .tag { font-size: 20px; letter-spacing: .1em; }
  #pq-svg .tag-s, #pq-svg .tb-t { display: none; }
  #pq-svg .tb-v { font-size: 19px; }
  #pq-svg .dimtx { font-size: 22px; }
  #pq-svg { aspect-ratio: 1.05; max-height: 50svh; overflow: hidden; }
  #pq-svg .tb { display: none; }   /* the caption carries the stage number on phones */
}
@media (max-width: 360px) {
  .ph__eyebrow { gap: 6px; font-size: 10px; letter-spacing: .11em; }
}
@media (max-width: 699px) and (max-height: 760px) {
  .ph__lede .t-lede { font-size: 1rem; }
  .pq__grid { padding-top: calc(var(--header-h) * .55); row-gap: 8px; }
  #pq-svg { max-height: 36svh; }
  #cap-svg { max-height: 34svh; }
  .pc__cap { font-size: .55rem; letter-spacing: .1em; }
  .pq__cap { font-size: .55rem; letter-spacing: .1em; }
  .pq__btn { padding: 7px 0 6px; }
  .pq__item:not(.is-on) .pq__btn .t-h3 { font-size: .9rem; }
  .pq__item.is-on .pq__btn .t-h3 { font-size: 1.05rem; }
  .pq__item.is-on > p { font-size: .9rem; line-height: 1.5; padding-bottom: 8px; }
}

/* ---------------------------------------------------------------- Reduced motion: no sticky stages; final states */
@media (prefers-reduced-motion: reduce) {
  .ph__track { height: auto; }
  .ph__stage { position: relative; height: 100vh; min-height: 680px; }
  .ph__content { position: absolute; inset: 0; margin-top: 0; height: auto; }
  .pq__track { height: auto; }
  .pq__stage { position: relative; height: auto; min-height: 0; padding-block: var(--section-pad); }
  .pq__item > p { max-height: none; opacity: 1; padding-bottom: 14px; }
  .pq__item { color: var(--charcoal); }
}
.rm .ph__track { height: auto; }
.rm .ph__stage { position: relative; height: 100vh; min-height: 680px; }
.rm .ph__track { position: relative; }
.rm .ph__content { position: absolute; inset: 0; margin-top: 0; height: auto; }
.rm .pq__track { height: auto; }
.rm .pq__stage { position: relative; height: auto; min-height: 0; padding-block: var(--section-pad); }
.rm .pq__item > p { max-height: none; opacity: 1; padding-bottom: 14px; }
.rm .pq__item { color: var(--charcoal); }

@media (max-width: 1080px) { .rm .pq__stage { padding-top: 28px; } }
@media (max-width: 1080px) and (prefers-reduced-motion: reduce) { .pq__stage { padding-top: 28px; } }

/* review scaffolding only: on phones and tablets the Review notes button steps aside while the process sequence and
   the hero network are on screen, so it never covers the stage list (as on the approved Homepage's Section A–A) */
@media (max-width: 1080px) { .review-toggle { transition: opacity .25s, visibility 0s linear .25s; } .review-toggle.is-aside { opacity: 0; visibility: hidden; } }

/* ---------------------------------------------------------------- Final refinement (23 October): drawing labels on phones
   On phones the two drawings run edge to edge (the camera already crops them) and the zone grid's tiny numerals step
   aside. Each label is sized for the screen, not for the drawing: the scripts set --u (drawing units per CSS pixel for
   the current camera) and a label is "N px x --u", so it reads at about N px on any phone. Each class has a ceiling,
   tested at 320 px, that keeps it clear of the line work around it. A thin halo in the sheet colour keeps a label
   clear where it crosses a line. Positions, line work, timing and camera moves are unchanged. */
@media (max-width: 699px) {
  #cap-svg, #pq-svg { --u: 1; width: calc(100% + max(var(--gutter), env(safe-area-inset-left, 0px)) + max(var(--gutter), env(safe-area-inset-right, 0px)));
    max-width: none; margin-left: calc(-1 * max(var(--gutter), env(safe-area-inset-left, 0px))); }
  #cap-svg .ct-z { display: none; }
  #cap-svg .ct, #cap-svg .ct-s, #cap-svg .ct-r, #cap-svg .ct-v, #cap-svg .ct-dim, #pq-svg .tag, #pq-svg .dimtx, #pq-svg .tb-v {
    paint-order: stroke; stroke: var(--warm); stroke-width: 4px; stroke-linejoin: round; }
  /* 02 · the specification sheet, zone by zone */
  #cap-svg .z1 .ct { font-size: clamp(16px, calc(var(--u) * 11px), 24px); letter-spacing: .02em; }
  #cap-svg .z1 .ct-l1 { transform: translateX(-8px); }          /* "Technical requirements" clears the handwheel */
  #cap-svg .z1 .ct-l2 { transform: translate(-8px, 9px); }
  #cap-svg .z1 .ct-dim { font-size: clamp(14px, calc(var(--u) * 10.5px), 23px); }
  #cap-svg .z2 .ct-s { font-size: clamp(11px, calc(var(--u) * 11px), 13px); }
  #cap-svg .z2 .ct-r { font-size: clamp(10px, calc(var(--u) * 11px), 11px); letter-spacing: .02em; }
  #cap-svg .z2 .ct-w { font-size: clamp(11px, calc(var(--u) * 11px), 12px); }
  #cap-svg .z3 .ct-s, #cap-svg .z3 .ct { font-size: clamp(15px, calc(var(--u) * 11px), 17.5px); letter-spacing: .02em; }
  #cap-svg .pc-tb .ct-s { font-size: clamp(11px, calc(var(--u) * 11px), 12px); letter-spacing: .05em; }
  #cap-svg .pc-tb .ct-v { font-size: clamp(11.5px, calc(var(--u) * 11px), 12.5px); }
  #cap-svg .z4 .ct-w { font-size: clamp(11px, calc(var(--u) * 11px), 12px); letter-spacing: .04em; }
  #cap-svg .ct-stp { font-size: clamp(8.6px, calc(var(--u) * 10.5px), 12.5px); letter-spacing: .02em; }
  /* tightly framed zones: sentence case reads larger in the same width */
  #cap-svg.is-tight .z4 .ct-w, #cap-svg.is-tight .pc-tb .ct-s, #cap-svg.is-tight .pc-tb .ct-v {
    font-size: clamp(11px, calc(var(--u) * 11px), 14px); letter-spacing: .01em; text-transform: none; }
  #cap-svg.is-tight .z2 .srcrow .ct-r { font-size: clamp(10px, calc(var(--u) * 11px), 13px); letter-spacing: .01em; text-transform: none; }
  #cap-svg .z4 .tagg { display: none; }                         /* off-frame on phones; the title block's acceptance field carries it */
  #cap-svg .pc-z.is-dim text { opacity: .5; }                   /* other zones' enlarged words recede further behind the frame */
  #cap-svg .pc-tb { transition: opacity 520ms var(--ease-out); }
  #cap-svg[data-zone="1"] .pc-tb { opacity: 0; }                /* would only be cut by zone 1's frame; zone 4 shows it whole */
  /* 04 · the process sheet, stage by stage (the list beneath carries each stage's words, as approved) */
  #pq-svg g.tag { display: none; }                              /* stage 01's tag lies outside the phone frame */
  #pq-svg .dimtx { font-size: clamp(18px, calc(var(--u) * 11px), 26px); }
  #pq-svg .s2 .tag { font-size: clamp(16px, calc(var(--u) * 11px), 28px); letter-spacing: .04em; }
  #pq-svg .tb-v { font-size: clamp(16px, calc(var(--u) * 11px), 28px); }
  #pq-svg .s4 .tag { font-size: clamp(16px, calc(var(--u) * 11px), 22px); letter-spacing: .02em; }
}
@media (max-width: 699px) and (max-height: 760px) {
  #cap-svg { max-height: 40svh; }
  #pq-svg { max-height: 39svh; }
}

/* Drawing captions and the hero's disclosure on phones: sentence case at reading size, the stage or zone number floated
   to the right of the first line, so the caption keeps to two or three lines. The hero's disclosure, which tablets and
   phones did not show, now reads under the hero's meta line. */
@media (max-width: 1080px) {
  .ph__meta { row-gap: 10px; }
  .ph__meta > span:last-child { grid-column: 1 / -1; text-align: left; }
  .ph__meta em { display: inline; font-size: 11.5px; line-height: 1.45; letter-spacing: .01em; }
}
@media (max-width: 699px) {
  .pc__cap, .pq__cap { display: block; }
  .pc__cap > span:last-child, .pq__cap > span:last-child { max-width: none; font-size: 12px; line-height: 1.4; letter-spacing: .005em; text-transform: none; font-weight: 500; }
  .pc__cap .num, .pq__cap .num { float: right; margin: 1px 0 0 14px; font-size: 10.5px; letter-spacing: .12em; }
}
@media (max-width: 699px) and (max-height: 760px) {
  .pc__cap > span:last-child, .pq__cap > span:last-child { font-size: 11.5px; line-height: 1.35; }
  .pc__cap .num, .pq__cap .num { font-size: 10px; }
}

/* Tablets (700–1080 px) show each sheet whole, as approved. Labels that have room around them aim for about 10 px on
   screen, up to a ceiling that keeps the composition as drawn; labels set tight to their cells keep their size. */
@media (min-width: 700px) and (max-width: 1080px) {
  #cap-svg, #pq-svg { --u: 1; }
  #cap-svg .ct, #cap-svg .ct-s, #cap-svg .ct-v, #cap-svg .ct-dim, #pq-svg .tag, #pq-svg .tag-s, #pq-svg .dimtx, #pq-svg .tb-v, #pq-svg .tb-t {
    paint-order: stroke; stroke: var(--warm); stroke-width: 3px; stroke-linejoin: round; }
  #cap-svg .z1 .ct, #cap-svg .z3 .ct, #cap-svg .z4 .ct { font-size: clamp(12.5px, calc(var(--u) * 10.5px), 15px); }
  #cap-svg .z2 .ct-s { font-size: clamp(11px, calc(var(--u) * 10px), 13px); }
  #cap-svg .z3 .ct-s { font-size: clamp(11px, calc(var(--u) * 10px), 14px); }
  #cap-svg .pc-tb .ct-s { font-size: clamp(11px, calc(var(--u) * 10px), 12px); letter-spacing: .07em; }
  #cap-svg .pc-tb .ct-v { font-size: clamp(11.5px, calc(var(--u) * 10px), 12.5px); }
  #cap-svg .ct-dim { font-size: clamp(14px, calc(var(--u) * 10px), 16px); }
  #pq-svg .tag { font-size: clamp(14px, calc(var(--u) * 10.5px), 17px); }
  #pq-svg .tag-s { font-size: clamp(12px, calc(var(--u) * 10px), 14px); }
  #pq-svg .s2 .tag { font-size: clamp(14px, calc(var(--u) * 10.5px), 15.5px); }   /* Specification and Tolerance envelope share one line */
  #pq-svg .s2 .tag-s { font-size: clamp(12px, calc(var(--u) * 10px), 12.5px); }
  #pq-svg .s3 .tag-s { font-size: 12px; }                          /* document headings are set to their sheets' width */
  #pq-svg .tb-t { font-size: clamp(11px, calc(var(--u) * 9.5px), 12.5px); }
  #pq-svg .tb-v { font-size: clamp(12.5px, calc(var(--u) * 10px), 14px); }
  #pq-svg .dimtx { font-size: clamp(15px, calc(var(--u) * 10.5px), 18px); }
}

/* Hero on short desktop windows (see 01 Hero above): the reduced-motion stage may also be as short as 600 px. */
@media (min-width: 1081px) and (max-height: 760px) { .rm .ph__stage { min-height: 600px; } }
@media (min-width: 1081px) and (max-height: 760px) and (prefers-reduced-motion: reduce) { .ph__stage { min-height: 600px; } }

/* ---------------------------------------------------------------- Visual corrections (23 October, second round)
   1 · Phones and tablets: "Acceptance criteria" is set in two lines above the end view, clear of the tolerance frames,
       the ØC dimension, the flange outline and Compatibility (proc-cap.js draws both callouts; one shows). Desktop keeps
       the approved one-line callout. On phones, zone 1's callouts step aside while another zone is framed, so they never
       show as dimmed fragments cut by that frame's edge (such as "…lity" at the left of zone 4); the drawing itself
       stays, dimmed, as before.
   2 · Phones: zone 3 is framed from the same left margin as zone 1 (proc-cap.js), so its heading sits clear of the edge.
   3 · Supplier register: the row names are tracked a little tighter, so "Manufacturer" clears its first check box.
   4 · Landscape tablets: see the block below. */
#cap-svg .acc-p { display: none; }
@media (max-width: 1080px) {                                    /* tablets too: their enlarged labels (23 Oct) brought the one-line */
  #cap-svg .acc-d { display: none; }                            /* callout to within 0.4 px of the position frame; desktop keeps it */
  #cap-svg .acc-p { display: inline; }
}
@media (min-width: 700px) and (max-width: 1080px) { #cap-svg .ct-acc2 { transform: translateY(-8px); } }   /* tablets: line spacing for their smaller labels */
@media (max-width: 699px) {
  #cap-svg .z1 .tagg, #cap-svg .z1 .ct-l2 { transition: opacity 520ms var(--ease-out); }
  #cap-svg .z1.is-dim .tagg, #cap-svg .z1.is-dim .ct-l2 { opacity: 0; }    /* .ct-l2: the second line of "Technical requirements" */
  #cap-svg .z2 .ct-r { font-size: clamp(10px, calc(var(--u) * 11px), 10.5px); letter-spacing: .01em; }   /* 3 · phones too (360 px) */
}
@media (min-width: 700px) { #cap-svg .srcrow .ct-r { letter-spacing: .04em; } }

/* 4 · Landscape tablets (1024 × 768 and similar): each sheet is still shown whole, at its approved size and with its
   approved animation, so the fix is typographic only. The small fields set tight in their cells (register rows and
   column heads, title-block fields, document tabs, the process sheet's sub-labels and register) are set in sentence
   case with lighter tracking, which reads larger in the same width (as on the smallest phones). */
@media (min-width: 700px) and (max-width: 1080px) and (orientation: landscape) {
  #cap-svg .srcrow .ct-r { font-size: 13px; letter-spacing: .01em; text-transform: none; }
  #cap-svg .z2 g[transform] .ct-r { font-size: 13px; letter-spacing: .01em; text-transform: none; }
  #cap-svg .srcrow .ct-w { font-size: 13px; }
  #cap-svg .pc-tb .ct-s, #cap-svg .pc-tb .ct-v { font-size: 14px; letter-spacing: .01em; text-transform: none; }
  #cap-svg .z4 .ct-w { font-size: 14px; letter-spacing: .01em; text-transform: none; }
  #pq-svg .tb .tb-t, #pq-svg .s2 .tb-t { font-size: 15.5px; letter-spacing: .01em; text-transform: none; }
  #pq-svg .tag-s, #pq-svg .s2 .tag-s, #pq-svg .s3 .tag-s { font-size: 15.5px; letter-spacing: .01em; text-transform: none; }
}

/* ---------------------------------------------------------------- Final approval fix (23 October, third round)
   Section 04 on landscape tablets (1024 × 768 and similar): while the process sequence is pinned, each stage's
   description is now wholly on screen, with room below it. Vertical spacing only: the drawing keeps its approved size
   (52 vh), the type keeps its sizes, and the scroll timing, stage activation and animation are unchanged.
   - The stage starts 22 px higher. When the header returns (on scrolling back up) it covers the sheet's top border
     strip (outer frame, grid numerals and inner frame line); everything drawn inside stays at least 8 px clear of it.
   - Drawing to caption 8 px (was 12), caption to list 10 px (was 14), stage rows 8 / 6 px (were 16 / 14).
   Reduced motion is not pinned (every description already reads in full), so it keeps its approved spacing. */
@media (min-width: 700px) and (max-width: 1080px) and (orientation: landscape) and (prefers-reduced-motion: no-preference) {
  html:not(.rm) .pq__grid { padding-top: calc(var(--header-h) - 22px); row-gap: 10px; }
  html:not(.rm) .pq__fig { gap: 8px; }
  html:not(.rm) .pq__btn { padding: 8px 0 6px; }
}
