/* GSDT Design D · Experience · R7 working scroll proof (private review; isolated).
   Sits on R6 (exp6.css) and the approved shell/About components; nothing here edits them.
   Default (no class): R6's static composition. .is-motion (set by exp7.js once WebGL2 and the imagery are ready):
   one pinned journey — the stage is sticky for var(--pin) screens; the warm Our Work sheet overlaps the last screen of
   the track, so it rises over the scene with the reader's own scroll, exactly as the pin releases. */

:root { --pin: 3.3; }

/* ---------------------------------------------------------------- always */
.exr7 .exr7-track { position: relative; height: auto; }   /* static: R6's opening, one screen (about-r's 1000vh track is for About) */
.exr7-skip { white-space: nowrap; }   /* INT R1.4: the opening's way past the journey is a visible link beside the CTA (was a
   focus-only link under the header, which a pointer at 390 px reached as the header's logo) */
.exr7-skip .arr { width: 10px; height: 16px; }
.exr7-skip:hover .arr, .exr7-skip:focus-visible .arr { transform: translateY(3px); }
.exr7-skip:focus-visible { outline: 2px solid var(--warm); outline-offset: 4px; }
.exr7-fore, .exr7-layer, .exr7-key, .exr7 .exr7-gl, .exr7 .exr7-ov { display: none; }

/* A: the record, printed at the head of Our Work (both modes) */
.ex2-rec { grid-column: 10 / span 3; grid-row: 1; justify-self: end; align-self: start; width: 220px; max-width: 100%; margin: -6px 0 0; }
.ex2-rec img { display: block; width: 100%; height: auto; }
/* the sheet's edge label keeps to the page margin (R6 set it against the screen edge) */
.ex2-edge .label { right: max(var(--gutter), env(safe-area-inset-right, 0px)); }
.ex2--a .ab-head { position: relative; }

/* ---------------------------------------------------------------- motion: the pinned journey */
.exr7.is-motion .exr7-track { height: calc((var(--pin) + 1) * 100svh); }
.exr7.is-motion .abr__stage { position: sticky; top: 0; z-index: 1; height: 100svh; min-height: 0; overflow: hidden; background: var(--charcoal); }
.exr7.is-motion .exr7-static { display: none !important; }
.exr7.is-motion.is-live .exr6__pic { opacity: 0; transition: opacity .4s linear; }
.exr7.is-motion .abr__stage .abr__shade { display: none; }
.exr7-fore .exr7-shade { z-index: 1; opacity: var(--shade7, 1); }
.exr7.is-motion .exr7-fore { display: block; position: sticky; top: 0; z-index: 3; height: 100svh; margin-top: -100svh; pointer-events: none; }
.exr7.is-motion .abr__content { position: sticky; inset: 0 auto auto auto; z-index: 3; height: 100svh; min-height: 0; margin-top: -100svh; }
.exr7.is-motion ~ .exr7-static { display: none !important; }
.exr7.is-motion ~ .exr7-layer { display: block; position: fixed; inset: 0; z-index: 2; pointer-events: none; }
.exr7.is-motion ~ .exr7-layer.is-over { z-index: 5; }
.exr7.is-motion ~ .exr7-layer.is-off { visibility: hidden; }
.exr7.is-motion ~ .exr7-layer canvas { display: block; position: absolute; left: 0; top: 0; width: 100%; height: 100%; }
.exr7.is-motion ~ .exr7-layer .exr7-ov { z-index: 1; }
.exr7.is-motion ~ #work { position: relative; z-index: 4; margin-top: -100svh; }
.exr7.is-motion ~ #work.ex2--a .ex2-rec img.st-all { opacity: 0; }
/* INT R1.6: with the motion opening, the record's region overlays and dial appear with the print at the hand-over (--hk is the
   print's own cross-fade, set by exp11.js); before it they stood on the rising sheet under the travelling globe as a second globe */
.exr7.is-motion ~ #work.ex2--a .ex2-rec .st { opacity: calc(var(--so, 0) * var(--hk, 0)); }
.exr7.is-motion ~ #work.ex2--a .ex2-rec .ex2-dial { opacity: calc(var(--da, 1) * var(--hk, 0)); }

/* the copy: About's conventions — one paragraph at a time, the title gives way to the record, all copy leaves before the sheet */
.exr7.is-motion .abr__paras { display: grid; gap: 0; }
.exr7.is-motion .abr__paras > p { grid-area: 1 / 1; opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .4s var(--ease-out), transform .4s var(--ease-out), visibility 0s linear .4s; }
.exr7.is-motion .abr__paras > p.is-on { opacity: 1; visibility: visible; transform: none;
  transition: opacity .7s var(--ease-out) .12s, transform .7s var(--ease-out) .12s, visibility 0s; }
.exr7-tk { display: grid; }
.exr7-tk > * { grid-area: 1 / 1; }
.exr7.is-motion .abr__eyebrow, .exr7.is-motion .abr__title { transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.exr7.is-motion.is-rec .abr__eyebrow, .exr7.is-motion.is-rec .abr__title { opacity: 0; transform: translateY(-14px); }
.exr7.is-motion .abr__text { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.exr7.is-motion.is-out .abr__text { opacity: 0; transform: translateY(-12px); pointer-events: none; }
.exr7.is-motion.is-out .abr__text a { visibility: hidden; transition: visibility 0s linear .45s; }

/* the phone key takes the title's place in the record state */
.exr7-key { list-style: none; margin: 0; padding: 0; align-self: end; display: grid; gap: 7px; font-size: 12px; line-height: 1.35; color: var(--titanium);
  opacity: 0; transform: translateY(8px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); }
.exr7-key li { display: flex; align-items: center; gap: 9px; }
.exr7-key svg { width: 22px; height: 16px; flex: none; overflow: visible; }
.exr7-key b { color: var(--warm); font-weight: 560; }
.exr7 .sw-done { fill: rgba(246, 243, 239, .30); stroke: rgba(246, 243, 239, .85); stroke-width: 1; }
.exr7 .sw-on { fill: url(#hatch7); stroke: rgba(246, 243, 239, .85); stroke-width: 1; stroke-dasharray: 3 2; }
.exr7 .sw-line { fill: none; stroke: rgba(246, 243, 239, .95); stroke-width: 1.4; }
.exr7 .sw-dash { fill: none; stroke: rgba(246, 243, 239, .95); stroke-width: 1.4; stroke-dasharray: 3.5 2.5; }

/* HUD, labels, legend (fore) */
.exr7-fore .abr__hud { z-index: 5; }
.exr7-fore .hud-top { top: calc(var(--header-h) + 14px); }
.exr7-fore .hud-cap { opacity: var(--cap7, 1); }
.exr7-fore .abr-instr { opacity: var(--instr7, 0); }
.exr7-labels { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.exr7-labels .abr-lab { visibility: visible; opacity: 0; transform: none; text-align: center; justify-items: center; transition: none; }
.exr7-labels .abr-lab.is-region .rn { justify-content: center; }
.exr7-labels .abr-lab.to-l { text-align: right; justify-items: end; }
.exr7-labels .abr-lab.to-r { text-align: left; justify-items: start; }
.exr7-labels .abr-lab.to-l.is-region .rn { justify-content: flex-end; }
.exr7-labels .abr-lab.to-r.is-region .rn { justify-content: flex-start; }
.exr7-labels .abr-lab .rm, .exr7-labels .abr-lab .rn { text-shadow: 0 0 10px rgba(26, 27, 29, .85), 0 0 2px rgba(26, 27, 29, .9); }
.exr7-legend { right: max(var(--gutter), env(safe-area-inset-right, 0px)); bottom: 46px; }
.exr7-legend .keys { display: grid; gap: 8px; }

/* B: the reading line (fore) */
.exr7-line { position: absolute; z-index: 4; top: calc(var(--header-h) + 54px); bottom: 0; left: calc(50% + var(--col-gap) / 2); width: 1px;
  background: rgba(246, 243, 239, .62); pointer-events: none; }
.exr7-line::before { content: ""; position: absolute; left: -5px; top: 0; width: 11px; height: 1px; background: var(--warm); }
.exr7-line .rd { position: absolute; left: 10px; top: -6px; font-size: 10.5px; font-weight: 500; letter-spacing: .12em; color: var(--cool); white-space: nowrap;
  text-transform: uppercase; text-shadow: 0 0 12px rgba(26, 27, 29, .9), 0 0 3px rgba(26, 27, 29, .85); }
.exr7-line .rd b { font-weight: 560; letter-spacing: .08em; color: var(--warm); font-variant-numeric: tabular-nums; margin-right: 8px; text-transform: none; }

/* B's copy shade follows the copy (R6 values), and lifts as the copy leaves */
.exr7--b.is-motion .exr7-shade { transition: opacity .3s linear; }

/* ---------------------------------------------------------------- phones */
@media (max-width: 699px) {
  .ex2-rec { grid-column: 1 / -1; grid-row: 1; width: 104px; margin: -18px 0 4px; }
  .ex2--a .ab-head__a { grid-row: 2; }
  .exr7.is-motion .abr__paras > p { font-size: 1rem; line-height: 1.5; }
  .exr7.is-motion.is-rec .exr7-key { opacity: 1; transform: none; }
  .exr7.is-motion .exr7-key { display: grid; }
  .exr7-legend { display: none; }
  .exr7-fore .hud-top { flex-direction: column; align-items: flex-start; gap: 6px; }
  .exr7-line { left: 50%; bottom: auto; }
  .exr7-labels .abr-lab.is-region .rm { white-space: normal; max-width: 150px; font-size: 10px; line-height: 1.3; }
  /* B: on the phone the line becomes the register's margin rule (the register is one column) */
  .exr7.is-motion ~ #work.ex2--b .w-spine { left: calc(var(--gutter) / 2); height: auto; top: 0; bottom: 0; opacity: .7; }
}
/* tablets: the legend keeps to the right of the copy; upright screens use the phone's key in place of the title */
@media (min-width: 700px) and (max-width: 1080px) {
  .exr7-fore .exr7-legend { left: auto; right: max(var(--gutter), env(safe-area-inset-right, 0px)); top: auto; bottom: 46px; width: min(330px, 40vw); }
}
@media (min-width: 700px) and (max-aspect-ratio: 3/4) {
  .exr7-fore .exr7-legend { display: none; }
  .exr7.is-motion .exr7-key { display: grid; }
  .exr7.is-motion.is-rec .exr7-key { opacity: 1; transform: none; }
}
/* short landscape screens (phones turned sideways): the labels carry the status; the opening copy is set smaller to fit */
@media (max-height: 560px) {
  .exr7-legend { display: none; }
  .exr7.is-motion .abr__eyebrow { display: none; }
  .exr7.is-motion .abr__title { margin-top: 0; font-size: clamp(26px, 9vh, 38px); }
  .exr7.is-motion .abr__paras { margin-top: 12px; }
  .exr7.is-motion .abr__paras > p { font-size: .95rem; line-height: 1.45; }
  .exr7.is-motion .abr__ctas { margin-top: 16px; }
  .exr7.is-motion .abr__inner { padding-bottom: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .exr7 .abr__paras > p, .exr7 .abr__title, .exr7 .abr__eyebrow, .exr7 .abr__text, .exr7-key { transition: none !important; }
}

/* ---------------------------------------------------------------- R8 · hero refinements */
/* A: the record's key takes the title's place at every width (clear of the globe); the floating legend is not used.
   The key stays while the globe is carried into its print, until the rising sheet covers it. */
.exr7--a .exr7-legend { display: none !important; }
.exr7--a.is-motion .exr7-key { display: grid; }
.exr7--a.is-motion.is-rec .exr7-key { opacity: 1; transform: none; }
.exr7-key .k-note { display: none; }
@media (min-width: 700px) {
  .exr7--a .exr7-key { gap: 10px; font-size: 14px; line-height: 1.4; max-width: 30em; }
  .exr7--a .exr7-key svg { width: 26px; height: 16px; }
  .exr7--a .exr7-key .k-note { display: block; margin-top: 6px; padding-top: 10px; border-top: 1px solid rgba(196, 197, 199, .22); font-size: 12px; font-style: italic; color: var(--cool); }
}
.exr7--a.is-motion.is-out .abr__text { opacity: 1; transform: none; pointer-events: none; }
.exr7--a.is-motion .abr__paras, .exr7--a.is-motion .abr__ctas { transition: opacity .45s var(--ease-out), transform .45s var(--ease-out); }
.exr7--a.is-motion.is-out .abr__paras, .exr7--a.is-motion.is-out .abr__ctas { opacity: 0; transform: translateY(-12px); }
/* labels on the planet and the plan: a touch larger, on a firmer halo, so status reads over imagery */
.exr7-labels .abr-lab .rn { text-shadow: 0 0 12px rgba(26, 27, 29, .95), 0 0 3px rgba(26, 27, 29, .95), 0 1px 1px rgba(26, 27, 29, .55); }
.exr7-labels .abr-lab .rm { font-size: 11px; color: rgba(246, 243, 239, .88); text-shadow: 0 0 12px rgba(26, 27, 29, .95), 0 0 3px rgba(26, 27, 29, .95), 0 1px 1px rgba(26, 27, 29, .55); }
/* B: on desktop the line moves (in the handoff) to the register's spine; before that it is the hero's own line */

/* INT R1.4 · short sideways phones: the opening's two links share the last line of the copy; the credit keeps to a
   narrower column on the right so it stays clear of them */
@media (orientation: landscape) and (max-height: 560px) {
  .exr7.is-motion .abr__ctas { row-gap: 6px; }
  .exr7.is-motion .exr7-skip { padding-block: 3px; }
  .exr7.is-motion .exr7-fore .hud-cap span { max-width: 26ch; }   /* with the short credit (exp11.js), two lines */
}
/* sideways phones: the two links share one row, running past the copy column if they need to; on the narrower ones
   (under 760 px) the credit stands under the readout at the top right instead of at the foot, where that row now runs */
@media (orientation: landscape) and (max-height: 430px) {
  .exr7.is-motion .abr__ctas { flex-wrap: nowrap; width: max-content; column-gap: 18px; }
}
@media (orientation: landscape) and (max-height: 430px) and (max-width: 759px) {
  .exr7.is-motion .exr7-fore .hud-cap { top: calc(var(--header-h) + 52px); bottom: auto; }
}
