/* First-party engineering figures */
.ri-handover,.ri-portfolio  {margin-block:0}
.ri-handover figcaption,.ri-portfolio figcaption  {font-family:inherit}
.ri-figure-caption  {display:flex;align-items:flex-end;justify-content:space-between;gap:35px;margin:0 0 24px}
.ri-handover h2,.ri-portfolio h2  {font-size:clamp(1.9rem,3.5vw,3.2rem);line-height:1.06;letter-spacing:-.055em}
.ri-handover .ri-label,.ri-portfolio .ri-label  {font-size:.68rem;font-weight:720;line-height:1.45;text-transform:uppercase;letter-spacing:.13em;margin:0 0 10px}
.ri-handover .ri-label,.ri-portfolio .ri-label  {color:#68548a}
.ri-figure-caption>p  {font-size:.95rem;line-height:1.6;max-width:435px;color:#565365;margin:0}

/* Handover ledger: one continuous delivery path and the two owners of each review. */
.ri-handover,.ri-portfolio {margin-bottom:clamp(38px,5.7vw,78px)}
.ri-handoff-table {--ri-rail:#9f83c0;border-block:1px solid #c9bfd4}
.ri-hand-head,.ri-handoff-table ol>li {display:grid;grid-template-columns:minmax(0,.71fr) minmax(0,1fr) minmax(0,1fr);column-gap:clamp(15px,3vw,45px);align-items:stretch}
.ri-hand-head {background:#2b2639;color:#f4effb;padding:11px 20px;font-weight:620;font-size:.75rem;letter-spacing:.02em}
.ri-handoff-table ol {list-style:none;counter-reset:ri-hand;margin:0;padding:0}
.ri-handoff-table li {counter-increment:ri-hand;padding:0 20px;position:relative}
.ri-handoff-table li+li::before {content:'';position:absolute;top:0;left:37px;right:0;border-top:1px solid #e1dbe7}
.ri-hand-phase,.ri-hand-artifact,.ri-hand-decision {padding-block:19px}
.ri-hand-phase {position:relative;display:flex;align-items:center;gap:12px}
.ri-hand-phase::before {content:'';position:absolute;left:15px;top:0;bottom:0;width:1px;background:var(--ri-rail)}
.ri-handoff-table li:first-child .ri-hand-phase::before {top:50%}
.ri-handoff-table li:last-child .ri-hand-phase::before {bottom:50%}
.ri-hand-phase i {display:grid;place-items:center;position:relative;z-index:1;flex:none;width:31px;height:31px;border:1px solid #987cae;border-radius:50%;background:#f8f4fd}
.ri-hand-phase i::after {content:counter(ri-hand,decimal-leading-zero);font-style:normal;font-family:ui-monospace,monospace;font-size:.7rem;color:#543a70}
.ri-hand-phase strong {font-size:1rem;font-weight:620;line-height:1.3;letter-spacing:-.028em}
.ri-hand-artifact {display:flex;justify-content:center;flex-direction:column;line-height:1.45}
.ri-hand-artifact b {font-size:.94rem;font-weight:640;letter-spacing:-.02em}
.ri-hand-artifact>span:last-child,.ri-hand-decision p {font-size:.85rem;color:#555260;line-height:1.5}
.ri-hand-artifact>span:last-child {margin-top:3px}
.ri-hand-decision {display:flex;flex-direction:column;justify-content:center;line-height:1.45}
.ri-hand-decision p {margin:0}
.ri-hand-key {display:none}

/* Actual project records form the spines. Each strip is one linked product. */
.ri-shelf-bank {display:grid;grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr);background:#f3f1f7;border:1px solid #d8d1e1;border-radius:8px;overflow:hidden}
.ri-shelf {min-width:0;padding:clamp(19px,2.6vw,34px)}
.ri-shelf+.ri-shelf {border-left:1px solid #d8d1e1}
.ri-shelf h3 {display:flex;gap:9px;align-items:baseline;font-size:1.13rem;font-weight:650;letter-spacing:-.025em;margin:0 0 20px}
.ri-shelf h3 span {font-size:.84rem;font-weight:550;color:#675879}
.ri-spines {display:flex;align-items:stretch;gap:3px;padding:0;margin:0;list-style:none;border-bottom:4px solid #6b6478;min-height:172px}
.ri-spines li {font-size:.86rem;line-height:1.1;position:relative;flex:1 1 0;min-width:0;max-width:78px;display:flex;background:var(--ri-fill);border:1px solid var(--ri-edge);border-radius:4px 4px 0 0}
.ri-spines a {isolation:isolate;position:relative;display:flex;width:100%;justify-content:center;align-items:center;color:var(--ri-text);text-decoration:none;transition:transform .15s}
.ri-spines a::before,.ri-spines a::after {position:absolute;content:'';left:13%;right:13%;height:1px;background:currentColor;opacity:.4}
.ri-spines a::before {top:9px}.ri-spines a::after {bottom:9px}
.ri-spines a:hover,.ri-spines a:focus-visible {color:var(--ri-text);transform:translateY(-3px);text-decoration:underline}
.ri-spines a:focus-visible {outline-offset:-3px}
.ri-spines a>span {writing-mode:vertical-rl;transform:rotate(180deg);white-space:nowrap;letter-spacing:.015em;font-size:clamp(.68rem,1vw,.82rem);font-weight:640;padding-block:3px}
.ri-stage-development {--ri-fill:#604783;--ri-edge:#533c74;--ri-text:#fff}
.ri-stage-internal {--ri-fill:#2f4151;--ri-edge:#273c4d;--ri-text:#fff}
.ri-stage-beta {--ri-fill:#a18db9;--ri-edge:#8c79a2;--ri-text:#231a30}
.ri-stage-prototype {--ri-fill:#ad9dca;--ri-edge:#8c79a8;--ri-text:#241b32}
.ri-stage-research {--ri-fill:#e9c988;--ri-edge:#bc9d60;--ri-text:#302417}
.ri-stage-planned,.ri-stage-other {--ri-fill:#dcd8e9;--ri-edge:#b3a9c8;--ri-text:#30263f}
.ri-shelf-key {margin:14px 0 0;padding:0;list-style:none;display:flex;flex-wrap:wrap;gap:4px 13px}
.ri-shelf-key li {display:flex;align-items:center;gap:5px;color:#51495e;font-size:.73rem}
.ri-shelf-key i {width:8px;height:8px;flex:none;border:1px solid var(--ri-edge);background:var(--ri-fill);border-radius:1px}
.ri-shelf-key b {font-size:.72rem;font-weight:650;color:#30273b}
@media(max-width:760px) {
 .ri-figure-caption {display:block;margin-bottom:18px}
 .ri-figure-caption>p {margin-top:12px;max-width:600px;font-size:.92rem}
 .ri-handoff-table li,.ri-hand-head {padding-inline:10px}
 .ri-shelf-bank {grid-template-columns:1fr}
 .ri-shelf+.ri-shelf {border-left:0;border-top:1px solid #d8d1e1}
 .ri-shelf h3 {margin:0 0 14px}
 .ri-spines {min-height:157px}
}
@media(max-width:590px) {
 .ri-handoff-table {border-top:2px solid #6b5d7c}
 .ri-hand-head {display:none}
 .ri-handoff-table ol>li {display:grid;grid-template-columns:1fr;gap:0;padding:15px 0 18px 43px}
 .ri-handoff-table li+li::before {left:43px}
 .ri-handoff-table li::after {content:'';position:absolute;top:0;bottom:0;left:13px;width:1px;background:var(--ri-rail)}
 .ri-handoff-table li:first-child::after {top:25px}.ri-handoff-table li:last-child::after {height:25px}
 .ri-hand-phase,.ri-hand-artifact,.ri-hand-decision {padding-block:0}
 .ri-hand-phase {position:static}
 .ri-hand-phase::before {content:none}
 .ri-hand-phase i {position:absolute;top:13px;left:0;width:27px;height:27px}
 .ri-hand-phase strong {font-size:1.05rem}
 .ri-hand-artifact,.ri-hand-decision {margin-top:8px}
 .ri-hand-key {display:block;font-size:.64rem;letter-spacing:.055em;font-weight:700;text-transform:uppercase;color:#6c567d;margin-bottom:2px}
}
