/* Project Loire's own look on the list stage (creative director's spec, docs/notes/v4/creative/loire-look.md, 2026-11-12; Brian has not seen it).
   The one case page in daylight: it stands on the tool's own paper, so the dark recordings in their devices are the darkest thing on it.
   Every colour is the tool's own token (TGH light theme: --bg-page, --text-primary, primary-600 sage, accent-600 copper).
   Scoped to .sbx[data-case="staff-tool"]; the shared rules are not touched, only overridden where they set the dark ground by number.
   ?look=night (data-look="night" on <main>) swaps to the tool's dark theme, for Brian to compare. */

.sbx[data-case="staff-tool"] { --sbx-g: #F5F2ED; --sbx-c: #1E1C18; --sbx-soft: rgba(30, 28, 24, .74); --sbx-rule: rgba(30, 28, 24, .16); --loire-sage: #5F6459; --loire-copper: #B0743F; --loire-bar: rgba(245, 242, 237, .94); --loire-link: rgba(30, 28, 24, .62); }
.sbx[data-case="staff-tool"][data-look="night"] { --sbx-g: #1a1816; --sbx-c: #ede9e1; --sbx-soft: rgba(237, 233, 225, .8); --sbx-rule: rgba(237, 233, 225, .2); --loire-copper: #C88951; --loire-bar: rgba(26, 24, 22, .94); --loire-link: rgba(237, 233, 225, .66); }

/* the cover stays night: the name and line keep the cover's light colour on the softened home screen */
.sbx[data-case="staff-tool"] .sbx-in { color: #F5F2ED; }
.sbx[data-case="staff-tool"] .sbx-name { font-weight: 300; text-transform: uppercase; letter-spacing: .14em; font-size: clamp(2.2rem, 7.4vw, 7rem); line-height: 1; }
.sbx[data-case="staff-tool"] .sbx-line { color: rgba(245, 242, 237, .9); }

/* the heading and the list: a record's fields, not a poster */
.sbx[data-case="staff-tool"] .sbx-mh { font-weight: 600; text-transform: none; letter-spacing: -.01em; color: var(--sbx-c); }
.sbx[data-case="staff-tool"] .sbx-list a, .sbx[data-case="staff-tool"] .sbx-ld-list a { font-family: var(--text); font-weight: 600; text-transform: none; letter-spacing: 0; font-size: clamp(1.02rem, 1.2vw, 1.2rem); color: var(--sbx-c); }
.sbx[data-case="staff-tool"] .sbx-ld-list a { opacity: 1; color: rgba(30, 28, 24, .64); }
.sbx[data-case="staff-tool"][data-look="night"] .sbx-ld-list a { color: rgba(237, 233, 225, .6); }
.sbx[data-case="staff-tool"] .sbx-ld-list li.on a, .sbx[data-case="staff-tool"] .sbx-ld-list a:hover, .sbx[data-case="staff-tool"] .sbx-ld-list a:focus-visible { color: var(--sbx-c); }
.sbx[data-case="staff-tool"] .sbx-ld-job { font-family: var(--text); font-weight: 400; color: var(--sbx-soft); }
/* the line that shows how far: copper, 2px */
.sbx[data-case="staff-tool"] .sbx-ld-list li::after, .sbx[data-case="staff-tool"] .sbx-ld-now::after { background: var(--loire-copper); height: 2px; }

/* the sticky menu, the phone's dock and its sheet, on paper (the shared rules set them dark by number) */
.sbx[data-case="staff-tool"] .sbx-bar { background: var(--loire-bar); border-bottom-color: rgba(30, 28, 24, .12); }
.sbx[data-case="staff-tool"][data-look="night"] .sbx-bar { border-bottom-color: rgba(237, 233, 225, .12); }
.sbx[data-case="staff-tool"] .sbx-bar a { color: var(--loire-link); }
.sbx[data-case="staff-tool"] .sbx-bar a[aria-current] { color: var(--sbx-c); }
@media (hover: hover) { .sbx[data-case="staff-tool"] .sbx-bar a:hover { color: var(--sbx-c); } }
@media (max-width: 899px) {
  .sbx[data-case="staff-tool"] .sbx-dock { background: var(--loire-bar); color: var(--sbx-c); }
  .sbx[data-case="staff-tool"] .sbx-sheet:not([hidden]) { background: var(--sbx-g); color: var(--sbx-c); }
}

/* after the list: the diagram and "how a menu change usually goes" stand as built, on one band of the tool's dark theme, straight edges */
.sbx[data-case="staff-tool"] .sbx-after { background: #1a1816; color: #ede9e1; --paper: #ede9e1; --ink: #1a1816; --ink2: #221f1c; --ink3: #2a2723; --soft: rgba(237, 233, 225, .74); --quiet: rgba(237, 233, 225, .58); --rule: rgba(237, 233, 225, .14); --rule2: rgba(237, 233, 225, .3); }
.sbx[data-case="staff-tool"] .sbx-after[data-piece="staff-menu"] { padding-top: clamp(56px, 8vw, 120px); }
.sbx[data-case="staff-tool"] .sbx-after[data-piece="loire-change"] { padding-bottom: clamp(56px, 8vw, 120px); }
.sbx[data-case="staff-tool"] .sbx-after .sf { padding: 0 var(--pad); }

/* the close, back on paper: the button drawn dark so it shows on the light ground */
.sbx[data-case="staff-tool"] .sbx-close { color: var(--sbx-c); }
.sbx[data-case="staff-tool"] .sbx-close .btn { background: var(--sbx-c); color: var(--sbx-g); box-shadow: none; }
.sbx[data-case="staff-tool"] .sbx-close a:not(.btn) { color: var(--sbx-c); }
/* the two pieces form one unbroken band: no ground showing between them */
.sbx[data-case="staff-tool"] .sbx-after { margin-top: 0; margin-bottom: 0; }
.sbx[data-case="staff-tool"] .sbx-after + .sbx-after .mc { margin-top: 0; padding-top: clamp(48px, 7vw, 104px); }

/* ---- press print (pieces/loire-print.js): its own section (Brian 20:38), a deep river blue between the paper and the night band,
   centred, each sheet in its real page's shape with a skeleton of that page; a soft blue glow comes up on the printed page ---- */
.sbx[data-case="staff-tool"] .sbx-after[data-piece="loire-print"] {
  --lp-ink: #EAF0F5; --lp-soft: rgba(234, 240, 245, .74); --lp-rule: rgba(234, 240, 245, .16); --lp-blue: #7DB8EA; --lp-glow: rgba(96, 164, 230, .42); --lp-ring: rgba(125, 184, 234, .5); --lp-btn-ink: #10202F; --lp-sheet: #F3F1EC;
  /* navy, as first built: the creative director's 22:2x word, kept until Brian has seen the river map (which is now copper light on near-black) */
  background: radial-gradient(120% 80% at 50% 38%, #18324A 0%, #10202F 55%, #0B1621 100%); color: var(--lp-ink);
  padding: clamp(64px, 9vw, 136px) var(--pad);
}
.lp { display: grid; gap: clamp(28px, 3.4vw, 48px); max-width: 1180px; margin: 0 auto; justify-items: center; }
/* the three stand on one line, bottoms level, each its real size against the others (columns in proportion to their real widths) */
.lp-sheets { list-style: none; margin: 0 auto; padding: 0; display: grid; gap: clamp(16px, 2.6vw, 40px); align-items: end; width: 100%; }
.lp-sheet { display: grid; gap: 10px; align-content: start; min-width: 0; }
.lp-ctl { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 10px; }
.lp-go { appearance: none; min-height: 48px; padding: 0 14px; border: 0; border-radius: 2px; background: var(--lp-ink); color: var(--lp-btn-ink); white-space: nowrap; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; text-align: left; }
.lp-go:hover, .lp-go.is-hp-hover { background: #fff; }   /* is-hp-hover: the drawn pointer resting on it (human-pointer.js) */
.lp-go[disabled] { cursor: progress; }
.lp-go:focus-visible { outline: 2px solid var(--lp-blue); outline-offset: 3px; }
.lp-clock { font-family: var(--disp); font-weight: 600; font-size: clamp(1.1rem, 1.3vw, 1.3rem); line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: var(--lp-ink); }
.lp-run { height: 2px; background: var(--lp-rule); }
.lp-run i { display: block; height: 100%; background: var(--lp-blue); box-shadow: 0 0 10px var(--lp-glow); transform-origin: 0 50%; transform: scaleX(0); }
.lp-paper { position: relative; aspect-ratio: var(--ar); background: rgba(234, 240, 245, .06); box-shadow: inset 0 0 0 1px var(--lp-rule); border-radius: 2px; overflow: hidden; transition: box-shadow .8s ease, background .5s ease; }
.lp-paper img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transform: translateY(10px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .7, .2, 1); }
.lp-sheet.is-in .lp-paper { background: var(--lp-sheet); box-shadow: 0 0 0 1px var(--lp-ring), 0 0 48px 4px var(--lp-glow), 0 24px 60px rgba(0, 0, 0, .45); }
.lp-sheet.is-in .lp-paper img { opacity: 1; transform: none; }
/* the skeleton: the page's own layout, faint before a press; a press builds it top to bottom over the sheet's time, with a light sweep */
.lp-sk { position: absolute; inset: 0; transition: opacity .5s ease; }
.lp-sk i { position: absolute; display: block; border-radius: 2px; background: rgba(234, 240, 245, .16); }
.lp-sk i.k-c { border-radius: 50%; }
.lp-sk i.k-b { background: none; box-shadow: inset 0 0 0 1px rgba(234, 240, 245, .18); }
.lp-sk i.k-r { background: rgba(234, 240, 245, .14); }
.lp-sheet.is-running .lp-sk i { opacity: .25; animation: lp-build .45s ease forwards, lp-sweep 1.4s linear infinite; animation-delay: calc(var(--o) * var(--at) * .92), calc(var(--o) * -1.4s); }
.lp-sheet.is-running .lp-sk i.k-b { animation: lp-build .45s ease forwards; animation-delay: calc(var(--o) * var(--at) * .92); }
.lp-sheet.is-in .lp-sk { opacity: 0; }
@keyframes lp-build { to { opacity: 1; background-color: rgba(125, 184, 234, .34); } }
@keyframes lp-sweep { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.6); } }
.lp-sheet.is-running .lp-sk i.k-b { background: none; }
.lp-cap { margin: 0; font-size: 16px; line-height: 1.35; color: var(--lp-soft); }
.lp-cap b { color: var(--lp-ink); font-weight: 600; display: block; }
.lp-said { margin: 0; min-height: 1.35em; white-space: nowrap; font-size: 16px; font-weight: 600; color: var(--lp-blue); }
.lp-before { margin: 0 auto; max-width: 46em; font-size: 17px; line-height: 1.5; color: var(--lp-soft); text-align: center; }
.lp-before b { color: var(--lp-ink); font-weight: 600; }
.lp.is-still .lp-ctl, .lp.is-still .lp-run, .lp.is-still .lp-said, .lp.is-still .lp-sk { display: none; }
/* a phone: each sheet is a row, its page at the left and its button, clock and caption beside it */
/* a phone or a tablet: one centred column per sheet; the button and clock on one row, the page under them in its real size (the 11 in menu at 240px) */
@media (max-width: 899px) {
  .lp-sheets { grid-template-columns: minmax(0, 1fr) !important; gap: 44px; justify-items: center; }
  .lp-sheet { width: min(100%, calc(240px * var(--w) / 11 + 90px)); }
  .lp-paper { width: calc(240px * var(--w) / 11); justify-self: center; }
  .lp-cap, .lp-said { text-align: center; }
  .lp-ctl { flex-wrap: nowrap; }
}
@media (prefers-reduced-motion: reduce) { .lp-paper, .lp-paper img, .lp-sk { transition: none; } }
/* on a wide screen the buttons, the clocks and the three whole sheets fit one screen: the row is no wider than the three pages' widths
   at the height left over (100svh less about 360px for the bar, the button row and the captions); 28 / 17 is the three pages' widths (11 + 8.5 + 8.5 in) over the tallest (17 in) */
@media (min-width: 900px) { .lp-sheets { max-width: calc((100svh - 360px) * 28 / 17 + 80px); } }
/* the cover: the Loire home screen, unblurred; a deeper scrim from the middle down so the name and line never sit on the app's own words */
.sbx[data-case="staff-tool"] .sbx-stage::after { background: linear-gradient(180deg, rgba(20, 18, 16, 0) 26%, rgba(20, 18, 16, .78) 50%, rgba(20, 18, 16, .97) 70%); }
.sbx[data-case="staff-tool"].is-still .sbx-stage::after { display: block; }
/* the hero film: its top band is the app's own header (its wordmark, its menu), which would sit under the site's bar; the film is drawn
   taller than the screen and anchored at the bottom, so that band stays above the top edge */
.sbx[data-case="staff-tool"]:not(.is-still) .sbx-cv { inset: auto 0 0 0; height: 116%; object-position: 50% 100%; }
@media (max-width: 599px) { .sbx[data-case="staff-tool"]:not(.is-still) .sbx-cv { height: 115%; } }
/* on a phone the site's bar sits on the film's own header: a short shade at the top keeps the bar readable */
@media (max-width: 599px) { .sbx[data-case="staff-tool"]:not(.is-still) .sbx-stage::before { content: ""; position: absolute; z-index: 1; inset: 0 0 auto 0; height: 130px; background: linear-gradient(180deg, rgba(20, 18, 16, .92) 0%, rgba(20, 18, 16, .6) 55%, rgba(20, 18, 16, 0) 100%); pointer-events: none; } }

/* ---- Watch the film (pieces/loire-hero.js): the name, line, cue and scrim step aside; the button stays ---- */
.lh-watch { position: absolute; z-index: 4; right: var(--pad); bottom: clamp(84px, 9vw, 120px); display: inline-flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 20px 0 6px; border: 1px solid rgba(245, 242, 237, .4); border-radius: 999px; background: rgba(20, 18, 16, .5); color: #F5F2ED; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .25s ease, border-color .25s ease; }
.lh-watch:hover { background: rgba(20, 18, 16, .72); border-color: rgba(245, 242, 237, .7); }
.lh-watch:focus-visible { outline: 2px solid #F5F2ED; outline-offset: 3px; }
.lh-i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #F5F2ED; }
.lh-i svg { width: 18px; height: 18px; fill: #1E1C18; }
.lh-back { display: none; }
.is-watching .lh-play { display: none; } .is-watching .lh-back { display: inline; }
.sbx-in .sbx-cin, .sbx-in .sbx-cue { transition: opacity .45s ease; }
.sbx-in.is-watching .sbx-cin, .sbx-in.is-watching .sbx-cue { opacity: 0; pointer-events: none; }
.sbx[data-case="staff-tool"] .sbx-in .sbx-stage::after { transition: opacity .45s ease; }
.sbx[data-case="staff-tool"] .sbx-in.is-watching .sbx-stage::after { opacity: 0; }
@media (max-width: 899px) { .lh-watch { left: var(--pad); right: auto; bottom: 18px; } }
/* while the film plays on a phone or tablet the button moves up under the site's bar, off the app's own tab bar at the foot of the film */
@media (max-width: 899px) { .sbx-in.is-watching .lh-watch { top: 76px; bottom: auto; left: auto; right: var(--pad); } }
.sbx.is-still .lh-watch { top: calc(60svh - 66px); bottom: auto; left: var(--pad); right: auto; }
/* on a phone or tablet the still film's own words run down to its foot, so the button takes the top right there, as it does while the film plays */
@media (max-width: 899px) { .sbx.is-still .lh-watch { top: 76px; bottom: auto; left: auto; right: var(--pad); } }
@media (prefers-reduced-motion: reduce) { .lh-watch, .sbx-in .sbx-cin, .sbx-in .sbx-stage::after { transition: none; } }

/* the river map (pieces/loire-river.js, cleared 2026-11-13): held under the header and, on a wide screen, the section bar */
.sbx[data-case="staff-tool"] .sbx-after.lrv { --lr-top: calc(var(--sbx-hd) + var(--sbx-bar) + 12px); --lr-bottom: var(--sbx-dock); background: #0b0a09; }   /* the player sits above the phone dock */

/* One place per device (Brian 11:40, "All of the device demos on the Loire page need to line up on phone, tablet, and laptop"): changing
   chapter never moves a device. The slides crossfade in place (no 28px rise), every slide's devices take the same width, and the caption
   under them always holds three lines' room, so a short or missing caption no longer re-centres the devices. */
.sbx[data-case="staff-tool"] .sbx-ld-slide, .sbx[data-case="staff-tool"] .sbx-ld-slide.was, .sbx[data-case="staff-tool"] .sbx-ld-slide.on { transform: none; }
@media (min-width: 900px) {
  .sbx[data-case="staff-tool"] .sbx-ld-slide .sbx-dev { width: min(100%, calc((100svh - var(--sbx-hd) - var(--sbx-bar) - 190px) * 1.9)); }
  .sbx[data-case="staff-tool"] .sbx-ld-more { min-height: calc(1.42em * 3); }
  .sbx[data-case="staff-tool"] .sbx-ld-slide:not(:has(.sbx-ld-more))::after { content: ""; display: block; font-size: clamp(.9rem, min(1.08vw, 1.9svh), 1.1rem); height: calc(1.42em * 3); }
}

/* Project Loire's entrance (pieces/loire-entrance.js), the etched medallion (D116); on the curtain pieces/immersive.js lifts and fades */
.sbx .lopl { background: #0b0a09; }
.sbx .lopl::before { background: radial-gradient(52% 48% at 50% 46%, rgba(198, 122, 42, .12) 0%, rgba(198, 122, 42, 0) 70%); }
.sbx .lopl-stage { position: relative; display: flex; flex-direction: column; align-items: center; gap: clamp(18px, 3svh, 32px); will-change: transform; }
.sbx .lopl-mark { display: block; width: min(40svh, 56vw, 380px); height: auto; overflow: visible; }
.sbx .lopl-art { transform-box: fill-box; transform-origin: 50% 50%; }
.sbx .lopl-fill { fill: #c67a2a; opacity: 0; }
.sbx .lopl-cut { fill: none; stroke: #c67a2a; stroke-width: 2.2; stroke-linecap: round; stroke-dasharray: 0 1; }
.sbx .lopl.is-carved .lopl-cut { visibility: hidden; }
.sbx .lopl-word { margin: 0; display: flex; gap: .42em; font-family: var(--text); font-weight: 400; font-size: clamp(1rem, 1.5vw, 1.3rem); letter-spacing: 0; color: #ede9e1; }
.sbx .lopl-word span { display: block; opacity: 0; }
.sbx .lopl.is-static .lopl-fill, .sbx .lopl.is-static .lopl-word span { opacity: 1; }
.sbx .lopl.is-static .lopl-cut { display: none; }
