/* GSDT Design D · International Project Solutions — Sections 02 and 03 (complete page, 24 October 2026).
   02 International Project Delivery: the plan and the ground. The hero's project area as a contoured plan sheet beside
      the photograph from the road; the planned route and its four waypoints registered on both (scroll-driven).
   03 Project Support Services: four support plates, each a working drawing in the approved terms, on a single thread.
   Datum tokens only (the five locked colours and their opacities). The hero and Section 04 are untouched (ips.css). */

/* ------------------------------------------------------------ the sheet edge: dark cinema band → document band */
.sheet-edge { position: relative; height: 0; }
.sheet-edge .wrap { position: relative; }
.sheet-edge__rule { position: absolute; left: max(var(--gutter), env(safe-area-inset-left, 0px)); right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: 0; height: 9px;
  background:
    repeating-linear-gradient(90deg, var(--rule-strong) 0 1px, transparent 1px calc(100% / 12)) top left / 100% 9px no-repeat,
    repeating-linear-gradient(90deg, var(--rule) 0 1px, transparent 1px calc(100% / 48)) top left / 100% 4px no-repeat; }
.sheet-edge__rule i { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--rule-strong); transform-origin: left; }
.js .sheet-edge__rule { clip-path: inset(0 100% 0 0); transition: clip-path 1.4s var(--ease-out); }
.js .sheet-edge.is-in .sheet-edge__rule { clip-path: inset(0 0 0 0); }

/* ------------------------------------------------------------ 02 · head */
.ipd { position: relative; padding-top: var(--section-pad); padding-bottom: clamp(56px, 7vw, 120px); }
.ipd > .sheet-edge { position: absolute; left: 0; right: 0; top: 0; }
.js .ipd.is-pin { padding-bottom: clamp(16px, 2vw, 32px); }
.ipd-head { align-items: end; row-gap: 28px; }
.ipd-head__a { grid-column: 1 / span 6; }
.ipd-head__a .ipd__title { margin-top: 22px; max-width: 13ch; }
.ipd-head__b { grid-column: 8 / span 5; max-width: 34em; }
.ipd-head__b .t-body { color: var(--graphite); }

/* ------------------------------------------------------------ 02 · the figure: a tall plan sheet | the gutter | the ground, and under it the index */
.ipd-track { position: relative; margin-top: clamp(48px, 6vw, 96px); }
.ipd-stage { position: relative; }
.ipd-fig { position: relative; margin: 0; display: grid; grid-template-columns: minmax(0, 33fr) clamp(28px, 3.8vw, 64px) minmax(0, 67fr); grid-template-rows: auto 1fr; align-items: start; }
.ipd-panel { position: relative; overflow: hidden; }
.ipd-plan { grid-column: 1; grid-row: 1 / span 2; aspect-ratio: 660 / 920; background: var(--warm); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ipd-sheet, .ipd-sheet img { position: absolute; inset: 0; width: 100%; height: 100%; }
.ipd-sheet img { object-fit: fill; }
.ipd-ground { grid-column: 3; grid-row: 1; aspect-ratio: 1672 / 885; background: var(--charcoal); }
.ipd-ground img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ipd-gut { grid-column: 2; grid-row: 1 / span 2; position: relative; align-self: stretch; }
.ipd-gut span { position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--rule-strong);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 11px); mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 11px); }
.ipd-side { grid-column: 3; grid-row: 2; padding-top: clamp(16px, 1.8vw, 26px); display: grid; gap: clamp(14px, 1.6vw, 22px); }
.ipd-ov { position: absolute; left: 0; top: 0; width: 100%; height: 100%; pointer-events: none; z-index: 3; }
.ipd-tag { position: absolute; left: 12px; top: 12px; z-index: 4; display: inline-flex; gap: 10px; align-items: baseline; padding: 5px 9px 4px;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 560; color: var(--charcoal);
  background: rgba(246, 243, 239, .9); box-shadow: inset 0 0 0 1px var(--rule-strong); }
.ipd-tag b { font-weight: 640; }
.ipd-tag span { color: var(--graphite); letter-spacing: .1em; font-weight: 500; }
.ipd-tag--dark { color: var(--warm); background: rgba(26, 27, 29, .72); box-shadow: inset 0 0 0 1px rgba(196, 197, 199, .28); }
.ipd-tag--dark span { color: var(--titanium); }
.ipd-cap { display: flex; justify-content: space-between; gap: 24px; font-size: 11.5px; line-height: 1.45; color: var(--graphite); }
.ipd-cap span:first-child { max-width: 56ch; }
.ipd-cap span:last-child { flex: none; }

/* the stage bar: shown while the registration is pinned */
.ipd-bar { display: none; }
.ipd-bar .label { display: inline-flex; align-items: center; gap: 12px; }
.ipd-bar b { color: var(--charcoal); font-weight: 600; }
.ipd-bar i { width: 28px; height: 1px; background: var(--rule-strong); display: inline-block; }
.ipd-bar__r b { margin-left: 18px; min-width: 9ch; text-align: right; }

/* the detail circle: the first 150 m of road around the observation point, at five times the plan's scale */
.ipd-inset { position: absolute; z-index: 2; border-radius: 50%; overflow: hidden; background: var(--warm); box-shadow: 0 0 0 1px var(--rule-strong), 0 0 0 5px rgba(246, 243, 239, .92), 0 0 0 6px var(--rule); }
.ipd-inset__map { position: absolute; left: 0; top: 0; transform-origin: 0 0; }
.ipd-inset__map img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; }

/* the waypoint index: the registration's progress, waypoint by waypoint */
.ipd-index { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--col-gap); border-top: 1px solid var(--rule); }
.ipd-index::before { content: ""; position: absolute; left: 0; top: -1px; height: 1px; width: calc(var(--ipd-prog, 0) * 100%); background: var(--charcoal); }
.ipd-index li { padding-top: 12px; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; row-gap: 3px; color: var(--cool); transition: color var(--t-mid); }
.ipd-index .n { grid-row: span 2; font-size: var(--t-label); letter-spacing: .15em; font-weight: 600; padding-top: 3px; }
.ipd-index .t { font-size: 14.5px; font-weight: 560; letter-spacing: -.005em; line-height: 1.3; }
.ipd-index .m { font-size: 11.5px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.ipd-index li.is-on, .ipd-index li.is-done { color: var(--charcoal); }
.ipd-index li.is-done .m, .ipd-index li.is-on .m { color: var(--graphite); }

/* pinned registration: wide landscape windows. The figure is sized so the plan sheet fits the window. */
@media (min-width: 900px) and (orientation: landscape) and (min-height: 560px) {
  .js .ipd.is-pin .ipd-track { height: 260vh; }
  .js .ipd.is-pin .ipd-stage { position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); display: flex; align-items: center; }
  .js .ipd.is-pin .ipd-stage > .wrap { width: 100%; }
  .js .ipd.is-pin .ipd-fig { width: min(100%, calc((100vh - var(--header-h) - 120px) * 660 / 920 * 100 / 33 + 64px)); margin-inline: auto; }
  .js .ipd.is-pin .ipd-bar { display: flex; justify-content: space-between; align-items: center; width: min(100%, calc((100vh - var(--header-h) - 120px) * 660 / 920 * 100 / 33 + 64px)); margin: 0 auto clamp(14px, 1.6vw, 22px); }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .ipd-index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; }
}
/* stacked: the ground first, then the plan; the waypoints numbered on both */
@media (max-width: 899px), (orientation: portrait), (max-height: 559px) {
  .ipd-head__a, .ipd-head__b { grid-column: 1 / -1; }
  .ipd-fig { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; row-gap: 14px; }
  .ipd-ground { grid-column: 1; grid-row: 1; }
  .ipd-gut { display: none; }
  .ipd-plan { grid-column: 1; grid-row: 2; width: min(100%, 560px); }
  .ipd-side { grid-column: 1; grid-row: 3; padding-top: 4px; }
  .ipd-cap { flex-direction: column; gap: 4px; }
  .ipd-index { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 14px; }
}
/* stacked on a tablet: the plan sheet beside the waypoint list, under the photograph */
@media (min-width: 600px) and (max-width: 899px), (min-width: 600px) and (orientation: portrait), (min-width: 600px) and (max-height: 559px) {
  .ipd-fig { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); column-gap: clamp(20px, 3.4vw, 36px); row-gap: clamp(18px, 2.6vw, 28px); }
  .ipd-ground { grid-column: 1 / -1; }
  .ipd-plan { grid-column: 1; grid-row: 2; width: 100%; }
  .ipd-side { grid-column: 2; grid-row: 2; align-self: start; padding-top: 0; }
  .ipd-index { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ipd-index li { padding: 14px 0 16px 16px; border-bottom: 1px solid var(--rule); }
  .ipd-index::before { width: 1px; height: calc(var(--ipd-prog, 0) * 100%); top: 0; left: -1px; }
  .ipd-index { border-top: 1px solid var(--rule); border-left: 0; }
}
@media (max-width: 599px) {
  .ipd-index li { padding-top: 10px; }
  .ipd-tag { left: 8px; top: 8px; }
}

/* ------------------------------------------------------------ 03 · head and the plates (filled in below) */
.ipsv { position: relative; padding-top: clamp(40px, 5vw, 84px); padding-bottom: clamp(80px, 9vw, 150px); }
.ipsv-head { align-items: end; row-gap: 28px; }
.ipsv-head__a { grid-column: 1 / span 6; }
.ipsv-head__a .ipss__title { margin-top: 22px; max-width: 12ch; }
.ipsv-head__b { grid-column: 8 / span 5; max-width: 34em; }
.ipsv-head__b .t-lede { color: var(--graphite); }

/* the list: one thread down the left edge, a node at each service */
.ipsv-body { position: relative; }
.ipsv-body { --tpad: clamp(30px, 3.2vw, 48px); }
.ipsv-list { position: relative; margin-top: clamp(56px, 7vw, 112px); border-top: 1px solid var(--rule-strong); }
.ipsv-thread { position: absolute; left: 0; top: 0; bottom: calc(-1 * clamp(80px, 9vw, 150px) - 64px); width: 1px; pointer-events: none; }
.ipsv-thread::before { content: ""; position: absolute; inset: 0; background: var(--rule-strong);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 11px); mask: repeating-linear-gradient(180deg, #000 0 5px, transparent 5px 11px); }
.ipsv-thread i { position: absolute; inset: 0; background: var(--charcoal); transform-origin: top; transform: scaleY(0); }
html:not(.js) .ipsv-thread i { transform: none; }

.ipsv-row { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: stretch;
  padding: clamp(36px, 4.4vw, 68px) 0; border-bottom: 1px solid var(--rule); }
.ipsv-text { grid-column: 1 / span 4; position: relative; padding-left: var(--tpad); display: flex; flex-direction: column; min-width: 0; }
.ipsv-node { position: absolute; left: 0; top: 1px; width: 13px; height: 13px; margin-left: -6px; border-radius: 50%; background: var(--warm); box-shadow: inset 0 0 0 1px var(--charcoal); }
.ipsv-node i { position: absolute; inset: 3px; border-radius: 50%; background: var(--charcoal); transform: scale(0); transition: transform .5s var(--ease-out); }
.ipsv-row.is-reached .ipsv-node i, html:not(.js) .ipsv-node i { transform: scale(1); }
.ipsv-n { color: var(--charcoal); font-weight: 600; }
.ipsv-text .t-h3 { margin-top: 14px; max-width: 16ch; }
.ipsv-text .t-body { margin-top: 14px; color: var(--graphite); max-width: 30em; }

/* the keynote legend: the plate's terms, quoted from the description; they light in step with the drawing */
.ipsv-key { margin-top: auto; padding-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr); row-gap: 8px; }
.ipsv-key li { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 10px; align-items: center; color: var(--cool); transition: color var(--t-mid); cursor: default; }
.ipsv-key b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; box-shadow: inset 0 0 0 1px currentColor; font-size: 9.5px; letter-spacing: 0; font-weight: 650; transition: background var(--t-mid), color var(--t-mid); }
.ipsv-key li.is-done { color: var(--graphite); }
.ipsv-key li.is-on, .ipsv-key li.is-hl { color: var(--charcoal); }
.ipsv-key li.is-on b, .ipsv-key li.is-hl b { background: var(--charcoal); color: var(--warm); box-shadow: inset 0 0 0 1px var(--charcoal); }
html:not(.js) .ipsv-key li { color: var(--graphite); }
html:not(.js) .ipsv-svg .mk, html:not(.js) .ipsv-svg .pt { opacity: 1; transform: none; }

/* the plate: a drawing sheet */
.ipsv-plate { grid-column: 5 / span 8; position: relative; margin: 0; aspect-ratio: 2 / 1; max-width: 100%; background: var(--warm); box-shadow: inset 0 0 0 1px var(--rule-strong); transition: box-shadow var(--t-mid); }
.ipsv-row:hover .ipsv-plate { box-shadow: inset 0 0 0 1px rgba(26, 27, 29, .62); }
.ipsv-svg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--charcoal); font-family: var(--font); }
.ipsv-svg pattern circle { fill: var(--charcoal); fill-opacity: .17; }
.ipsv-svg pattern path { stroke: var(--charcoal); stroke-opacity: .55; stroke-width: 1; }
.ipsv-svg .s1 { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.ipsv-svg .s2 { fill: none; stroke: currentColor; stroke-width: 1; stroke-opacity: .78; stroke-linejoin: round; }
.ipsv-svg .s3 { fill: none; stroke: currentColor; stroke-width: .8; stroke-opacity: .36; }
.ipsv-svg .dash { stroke-dasharray: 5 4; }
.ipsv-svg .sf { fill: currentColor; stroke: none; }
.ipsv-svg .hz { stroke: none; }
.ipsv-svg .pad { fill: var(--warm); stroke: none; }
.ipsv-svg .ghost { fill: none; stroke: none; }
.ipsv-svg .rd-e { fill: none; stroke: currentColor; stroke-opacity: .5; stroke-width: 16; }
.ipsv-svg .rd-w { fill: none; stroke: var(--warm); stroke-width: 13.4; }
.ipsv-svg .scr { fill: none; stroke: currentColor; stroke-width: 4.5; }
.ipsv-svg .flw { fill: none; stroke: currentColor; stroke-width: 1.4; stroke-dasharray: 1.5 6; stroke-linecap: round; }
.ipsv-svg .tx { font-size: 12px; letter-spacing: .14em; font-weight: 600; fill: currentColor; }
.ipsv-svg .tx2 { font-size: 11px; letter-spacing: .05em; font-weight: 500; fill: var(--graphite); font-variant-numeric: tabular-nums; }
.ipsv-svg .tx--inv { fill: var(--warm); font-size: 11px; letter-spacing: .06em; }
/* states that follow the scroll */
.ipsv-svg .cd, .ipsv-svg .rp, .ipsv-svg .sn { fill: var(--warm); stroke: currentColor; stroke-width: 1.3; transition: fill .35s; }
.ipsv-svg .cd.is-on, .ipsv-svg .rp.is-on, .ipsv-svg .sn.is-on { fill: currentColor; }
.ipsv-svg .mk { fill: var(--warm); stroke: currentColor; stroke-width: 1.4; transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.3); transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.ipsv-svg .mk--f { fill: currentColor; }
.ipsv-svg .mk.is-on { opacity: 1; transform: none; }
.ipsv-svg .pt { fill: currentColor; transform-box: fill-box; transform-origin: center; opacity: 0; transform: scale(.2); transition: opacity .3s, transform .45s var(--ease-out); }
.ipsv-svg .pt.is-on { opacity: .9; transform: none; }
.ipsv-svg .cur__h { fill: var(--warm); fill-opacity: .9; }
/* keynote tags */
.ipsv-svg .kt circle { fill: var(--warm); stroke: currentColor; stroke-width: 1.1; transition: fill .3s; }
.ipsv-svg .kt text { font-size: 11px; font-weight: 650; fill: currentColor; transition: fill .3s; }
.ipsv-svg .kt.is-on circle, .ipsv-svg .kt.is-hl circle { fill: currentColor; }
.ipsv-svg .kt.is-on text, .ipsv-svg .kt.is-hl text { fill: var(--warm); }
.ipsv-svg .kt__s { transform: scale(var(--kt, 1)); }
/* pointing at a legend term isolates its parts */
.ipsv-svg [data-k] { transition: opacity .35s; }
.ipsv-plate.has-hl .ipsv-svg [data-k]:not(.is-hl) { opacity: .16; }
.ipsv-plate.has-hl .ipsv-svg .mk:not(.is-hl), .ipsv-plate.has-hl .ipsv-svg .pt:not(.is-hl) { opacity: .1; }
.ipsv-plate.has-hl .ipsv-svg .mk.is-hl, .ipsv-plate.has-hl .ipsv-svg .pt.is-hl { opacity: 1; transform: none; }

/* entry: lines draw on, the rest fades in, each at its own delay */
.js .ipsv-row .dr { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.3s var(--ease-out) var(--d, 0s); }
.js .ipsv-row.is-in .dr { stroke-dashoffset: 0; }
.js .ipsv-row .fd { opacity: 0; transition: opacity .9s var(--ease-out) var(--d, 0s); }
.js .ipsv-row.is-in .fd { opacity: 1; }
.js .ipsv-row.is-drawn .fd, .js .ipsv-row.is-drawn .dr { transition-delay: 0s; transition-duration: .35s; }
.js .ipsv-row.is-drawn .dr { stroke-dasharray: none; }
.ipsv-row .ipsv-plate .ipd-tag { transition: opacity .6s var(--ease-out) .2s; }
.js .ipsv-row:not(.is-in) .ipsv-plate .ipd-tag { opacity: 0; }

.ipsv-cap { display: flex; justify-content: space-between; gap: 24px; padding: 18px 0 0 var(--tpad, 40px); font-size: 11.5px; line-height: 1.45; color: var(--graphite); }

/* the foot of the document band: the ruler closes it, the thread runs into it */
.sheet-edge--foot { position: absolute; left: 0; right: 0; bottom: 0; }
.sheet-edge--foot .sheet-edge__rule { top: auto; bottom: 0; background-position: left bottom, left bottom; }
.sheet-edge--foot .sheet-edge__rule i { top: auto; bottom: 0; }

/* medium: the text above its plate */
@media (max-width: 1180px) {
  .ipsv-head__a, .ipsv-head__b { grid-column: 1 / -1; }
  .ipsv-row { padding-left: var(--tpad); }
  .ipsv-text { grid-column: 1 / -1; padding-left: 0; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); column-gap: var(--col-gap); align-items: start; }
  .ipsv-node { left: calc(-1 * var(--tpad)); }
  .ipsv-n { grid-column: 1; }
  .ipsv-text .t-h3 { grid-column: 1; margin-top: 12px; }
  .ipsv-text .t-body { grid-column: 2; grid-row: 1 / span 3; margin-top: 0; }
  .ipsv-key { grid-column: 2; padding-top: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
  .ipsv-plate { grid-column: 1 / -1; margin-top: clamp(22px, 3vw, 34px); }
  .ipsv-cap { padding-left: var(--tpad); }
}
/* phone: number, title, description, the plate (cropped to its drawing), then its key */
@media (max-width: 699px) {
  .ipsv-body { --tpad: 24px; }
  .ipsv-row { display: flex; flex-direction: column; padding-top: 30px; padding-bottom: 32px; }
  .ipsv-text { display: contents; }
  .ipsv-node { left: 0; top: 31px; }
  .ipsv-text .t-h3 { margin-top: 10px; }
  .ipsv-text .t-body { margin-top: 12px; }
  .ipsv-plate { order: 5; margin-top: 46px; }
  .ipsv-plate .ipd-tag { top: auto; bottom: calc(100% + 9px); left: 0; padding: 0; background: none; box-shadow: none; }
  .js .ipsv-plate { aspect-ratio: var(--ar-m, 2 / 1); }
  .ipsv-key { order: 6; padding-top: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; row-gap: 8px; }
  .ipsv-row[data-plate="1"] .ipsv-key { grid-template-columns: minmax(0, 1fr); }
  .ipsv-svg { --kt: 1.85; }
  .ipsv-svg .s1 { stroke-width: 2.6; }
  .ipsv-svg .s2 { stroke-width: 1.8; }
  .ipsv-svg .s3 { stroke-width: 1.3; }
  .ipsv-svg .wk { display: none; }
  .ipsv-svg .cd, .ipsv-svg .rp, .ipsv-svg .sn, .ipsv-svg .mk { stroke-width: 2.2; }
  .ipsv-svg .tx--inv { font-size: 19px; }
  .ipsv-cap { flex-direction: column; gap: 4px; }
}
@media (max-width: 439px) {
  .ipsv-key, .ipsv-row[data-plate="1"] .ipsv-key { grid-template-columns: minmax(0, 1fr); row-gap: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  .ipsv-svg .mk, .ipsv-svg .pt, .ipsv-node i, .ipsv-thread i { transition: none; }
}
