/*
 * The Shrewdies — On-device section (security, reproducibility, machine and hardware).
 * Loaded only on these pages through front matter `extra_css`. Tokens: /assets/brand/tokens.css.
 * Motion: transform, opacity and stroke-dashoffset only. Reduced motion shows still frames.
 */

/* ---------- Shared building blocks -------------------------------------------------------- */
.od-stage {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(0.6rem, 2.2vw, 1.75rem);
  border-radius: var(--sh-radius-l);
  border: 1px solid rgba(196, 240, 0, 0.45);
  background:
    radial-gradient(110% 80% at 12% 0%, rgba(47, 134, 240, 0.38), rgba(47, 134, 240, 0) 62%),
    radial-gradient(90% 80% at 100% 100%, rgba(165, 0, 68, 0.42), rgba(165, 0, 68, 0) 62%),
    linear-gradient(160deg, #0A1A48 0%, #13296B 52%, #2A1D63 100%);
  box-shadow: var(--sh-shadow-2), 0 0 0 1px rgba(196, 240, 0, 0.18), 0 0 70px rgba(196, 240, 0, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.od-stage::before { /* silver shine along the top edge */
  content: ""; position: absolute; left: 6%; right: 6%; top: 0; height: 1px; z-index: 1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.9), transparent);
}
.od-stage svg { display: block; width: 100%; height: auto; overflow: visible; }
.od-caption { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1rem; margin: 0.9rem 0.25rem 0; font-size: var(--sh-step--1); font-weight: 600; color: var(--sh-white); }
.od-caption::before { content: ""; width: 1.6rem; height: 3px; border-radius: 2px; background: var(--sh-lime); box-shadow: 0 0 10px var(--sh-lime); }
.od-caption a { font-weight: 800; }

.od-lead { max-width: 60ch; margin: 0 0 var(--sh-space-m); font-size: var(--sh-step-1); line-height: 1.5; color: var(--sh-white); text-shadow: 0 1px 14px rgba(14, 18, 70, 0.45); }
.od-lead strong { color: var(--sh-lime); }

.od-chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.9rem 0 0; padding: 0; }
.od-chips li {
  display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.35rem 0.75rem; border-radius: 999px;
  background: rgba(10, 31, 68, 0.55); border: 1px solid var(--sh-glass-edge);
  font-family: var(--sh-font-mono); font-size: var(--sh-step--2); font-weight: 600; letter-spacing: 0.06em; color: var(--sh-white);
}
.od-chips li::before { content: ""; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--c, var(--sh-lime)); box-shadow: 0 0 8px var(--c, var(--sh-lime)); }

/* Cards with an icon */
.od-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sh-space-s); grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); }
.od-card {
  position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 0.55rem;
  padding: var(--sh-space-m); border-radius: var(--sh-radius-m);
  transition: transform var(--sh-dur-base) var(--sh-ease-out), border-color var(--sh-dur-fast);
}
.od-card:hover { transform: translateY(-4px); border-color: rgba(196, 240, 0, 0.7); }
.od-card::after { /* tricolour edge that grows on hover */
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--sh-grad-tricolour); transform: scaleX(0.2); transform-origin: left;
  transition: transform var(--sh-dur-base) var(--sh-ease-out);
}
.od-card:hover::after { transform: scaleX(1); }
.od-card:nth-child(3n+1) { background: linear-gradient(155deg, rgba(0, 77, 152, 0.72), rgba(16, 36, 92, 0.6)); }
.od-card:nth-child(3n+2) { background: linear-gradient(155deg, rgba(110, 76, 159, 0.72), rgba(16, 36, 92, 0.6)); }
.od-card:nth-child(3n) { background: linear-gradient(155deg, rgba(165, 0, 68, 0.66), rgba(16, 36, 92, 0.6)); }
.od-card__icon {
  display: grid; place-items: center; width: 3.1rem; height: 3.1rem; border-radius: 14px;
  background: rgba(196, 240, 0, 0.12); border: 1px solid rgba(196, 240, 0, 0.6); color: var(--sh-lime);
  box-shadow: 0 0 22px rgba(196, 240, 0, 0.18);
}
.od-card__icon svg { width: 1.7rem; height: 1.7rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-card__title { margin: 0.35rem 0 0; font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-2); line-height: 1; text-transform: uppercase; color: var(--sh-white); }
.od-card p { margin: 0; font-size: var(--sh-step--1); line-height: 1.55; color: var(--sh-white); }
.od-get__note code, .od-lead code, .od-card code, .od-flags code, .od-pins code, .od-strip code, .od-article code {
  font-family: var(--sh-font-mono); font-size: 0.86em; padding: 0.08em 0.35em; border-radius: 5px; background: rgba(255, 255, 255, 0.14);
}

/* A full-width statement strip */
.od-strip {
  display: grid; gap: var(--sh-space-s); align-items: center; padding: clamp(1.1rem, 3vw, 2rem);
  border-radius: var(--sh-radius-l); border: 1px solid rgba(196, 240, 0, 0.55);
  background: linear-gradient(100deg, rgba(10, 31, 68, 0.78), rgba(77, 68, 166, 0.6) 60%, rgba(165, 0, 68, 0.55));
}
.od-strip .od-strip__big { margin: 0; font-family: var(--sh-font-display); font-weight: 900; font-size: var(--sh-step-4); line-height: 0.95; text-transform: uppercase; color: var(--sh-lime); text-shadow: 0 0 26px rgba(196, 240, 0, 0.4); }
.od-strip p { margin: 0; font-size: var(--sh-step-0); line-height: 1.55; color: var(--sh-white); max-width: 62ch; }
@media (min-width: 860px) { .od-strip { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: var(--sh-space-l); } }

/* Terminal */
.od-term {
  position: relative; margin: 0; border-radius: var(--sh-radius-m); overflow: hidden;
  background: linear-gradient(180deg, #0B1433, #0A1A44); border: 1px solid rgba(233, 237, 245, 0.25);
  box-shadow: var(--sh-shadow-2), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.od-term__bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.65rem 1rem; background: rgba(255, 255, 255, 0.06); border-bottom: 1px solid rgba(233, 237, 245, 0.14); }
.od-term__bar i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: var(--sh-garnet-bright); }
.od-term__bar i:nth-child(2) { background: var(--sh-mauve); }
.od-term__bar i:nth-child(3) { background: var(--sh-lime); }
.od-term__bar span { margin-left: auto; font-family: var(--sh-font-mono); font-size: var(--sh-step--2); letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-silver-2); }
.od-term pre { margin: 0; padding: 1rem 1.1rem 1.15rem; overflow-x: auto; font-family: var(--sh-font-mono); font-size: clamp(0.74rem, 0.7rem + 0.25vw, 0.9rem); line-height: 1.75; color: var(--sh-silver); white-space: pre; }
.od-term .p { color: var(--sh-lime); user-select: none; }
.od-term .c { color: var(--sh-silver-2); }
.od-term .k { color: var(--sh-white); font-weight: 600; }
.od-term .line { display: inline; animation: od-type 9s steps(1, end) infinite; animation-delay: calc(var(--i, 0) * 0.55s); }
@keyframes od-type { 0% { opacity: 0.18; } 6%, 100% { opacity: 1; } }
.od-term__caret { display: inline-block; width: 0.55em; height: 1.1em; vertical-align: -0.2em; background: var(--sh-lime); animation: od-blink 1.1s steps(2, jump-none) infinite; }

/* Numbered sub-heads within a block */

/* ---------- SVG typography and shapes ------------------------------------------------------ */
.od-svg text { font-family: var(--sh-font-sans); fill: var(--sh-white); }
.od-svg .t-mono { font-family: var(--sh-font-mono); font-weight: 600; letter-spacing: 0.12em; }
.od-svg .t-disp { font-family: var(--sh-font-display); font-weight: 900; letter-spacing: 0.01em; }
.od-svg .t-lime { fill: var(--sh-lime); }
.od-svg .t-silver { fill: var(--sh-silver-2); }
.od-svg .t-red { fill: #FF6A97; }
.od-svg .t-navy { fill: var(--sh-navy); }
.od-svg .ln { fill: none; stroke: rgba(233, 237, 245, 0.35); stroke-width: 2; }

/* ---------- Motion primitives -------------------------------------------------------------- */
/* Paths using these carry pathLength="100". */
.od-flow { fill: none; stroke: var(--sh-lime); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 9 100; stroke-dashoffset: 55; animation: od-flow 2.4s linear infinite; }
.od-flow--back { animation-name: od-flow-back; }
.od-flow--white { stroke: var(--sh-white); }
.od-flow--violet { stroke: var(--sh-mauve); }
.od-flow--slow { animation-duration: 3.6s; }
.od-flow--d1 { animation-delay: -0.8s; }
.od-flow--d2 { animation-delay: -1.6s; }
.od-conveyor { fill: none; stroke: var(--sh-white); stroke-width: 12; stroke-dasharray: 3 9; stroke-dashoffset: 0; animation: od-conveyor 1.2s linear infinite; }
.od-conveyor--lime { stroke: var(--sh-lime); }
.od-march { animation: od-march 1.6s linear infinite; }
.od-spin { transform-box: fill-box; transform-origin: center; animation: od-spin 14s linear infinite; }
.od-spin--rev { animation-direction: reverse; }
.od-blink { animation: od-blink 1.2s steps(2, jump-none) infinite; }
.od-float { transform-box: fill-box; transform-origin: center; animation: od-float 5s ease-in-out infinite; }
.od-breathe { transform-box: fill-box; transform-origin: center; animation: od-breathe 2.6s ease-in-out infinite; }
.od-wave { animation: od-wave 2.4s ease-in-out infinite; animation-delay: calc(var(--i, 0) * 0.11s); }
.od-ping { transform-box: fill-box; transform-origin: center; animation: od-ping 2.6s var(--sh-ease-out) infinite; }
.od-sweep { animation: od-sweep 6.5s var(--sh-ease-out) infinite; }

@keyframes od-flow { from { stroke-dashoffset: 109; } to { stroke-dashoffset: 0; } }
@keyframes od-flow-back { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 109; } }
@keyframes od-conveyor { to { stroke-dashoffset: -12; } }
@keyframes od-march { to { stroke-dashoffset: -48; } }
@keyframes od-spin { to { transform: rotate(360deg); } }
@keyframes od-blink { 50% { opacity: 0.15; } }
@keyframes od-float { 50% { transform: translateY(-10px); } }
@keyframes od-breathe { 50% { transform: scale(1.06); } }
@keyframes od-wave { 0%, 100% { opacity: 0.32; } 35% { opacity: 1; } }
@keyframes od-ping { 0% { transform: scale(0.6); opacity: 0.9; } 80%, 100% { transform: scale(1.9); opacity: 0; } }
@keyframes od-sweep { 0% { transform: translateX(-1200px); } 55%, 100% { transform: translateX(1200px); } }
@keyframes od-rise { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Security: command anatomy ------------------------------------------------------ */
.od-anatomy { display: grid; gap: var(--sh-space-m); }
.od-cmd { font-family: var(--sh-font-mono); font-size: clamp(0.8rem, 0.74rem + 0.3vw, 1rem); line-height: 2.1; color: var(--sh-silver); padding: 1.1rem 1.2rem 1.25rem; overflow-wrap: anywhere; }
.od-cmd .p { color: var(--sh-lime); }
.od-tok { position: relative; display: inline-block; padding: 0 0.15em; color: var(--sh-white); font-weight: 600; white-space: nowrap; }
.od-tok::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -0.05em; height: 3px; border-radius: 2px;
  background: var(--sh-lime); box-shadow: 0 0 10px var(--sh-lime); transform-origin: left;
  animation: od-tok 7.2s var(--sh-ease-out) infinite; animation-delay: calc(var(--i) * 1.2s);
}
.od-tok sup { margin-left: 0.15em; font-size: 0.62em; color: var(--sh-lime); }
@keyframes od-tok { 0% { transform: scaleX(0); opacity: 1; } 8%, 14% { transform: scaleX(1); opacity: 1; } 22%, 100% { transform: scaleX(1); opacity: 0.25; } }
.od-flags { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15.5rem), 1fr)); counter-reset: flag; }
.od-flags li { position: relative; padding: 0.95rem 1rem 1rem 3.3rem; border-radius: var(--sh-radius-m); background: rgba(10, 31, 68, 0.55); border: 1px solid var(--sh-glass-edge); font-size: var(--sh-step--1); line-height: 1.5; color: var(--sh-white); counter-increment: flag; }
.od-flags li::before {
  content: counter(flag); position: absolute; left: 0.9rem; top: 0.9rem; display: grid; place-items: center;
  width: 1.7rem; height: 1.7rem; border-radius: 50%; background: var(--sh-lime); color: var(--sh-navy);
  font: 800 0.8rem/1 var(--sh-font-mono);
}
.od-flags b { display: block; margin-bottom: 0.15rem; font-family: var(--sh-font-mono); font-size: 0.9em; color: var(--sh-lime); }
@media (min-width: 980px) { .od-anatomy { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: start; } .od-flags { grid-template-columns: 1fr; } }

/* ---------- Reproducibility: pipeline and hash match --------------------------------------- */
.od-pipe { list-style: none; margin: 0; padding: 0.4rem 0 0; display: grid; gap: 0.8rem; grid-template-columns: repeat(5, minmax(0, 1fr)); position: relative; }
.od-pipe::before { /* track */
  content: ""; position: absolute; left: 10%; right: 10%; top: calc(0.4rem + 2.6rem); height: 4px; border-radius: 2px; background: rgba(233, 237, 245, 0.2);
}
.od-pipe::after { /* travelling light */
  content: ""; position: absolute; left: 10%; top: calc(0.4rem + 2.6rem - 2px); width: 16%; height: 8px; border-radius: 4px;
  background: linear-gradient(90deg, rgba(196, 240, 0, 0), var(--sh-lime)); box-shadow: 0 0 16px var(--sh-lime);
  animation: od-run 5s cubic-bezier(0.45, 0, 0.3, 1) infinite;
}
@keyframes od-run { 0% { transform: translateX(-20%); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(420%); opacity: 0; } }
.od-pipe li { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; }
.od-node {
  position: relative; display: grid; place-items: center; width: 5.2rem; height: 5.2rem; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #2A4EA8, #0B1A48 70%); border: 2px solid rgba(233, 237, 245, 0.5);
  color: var(--sh-white); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.od-node svg { width: 2.1rem; height: 2.1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-node::before { /* lights up as the pulse passes */
  content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--sh-lime);
  box-shadow: 0 0 22px rgba(196, 240, 0, 0.75), inset 0 0 18px rgba(196, 240, 0, 0.35);
  opacity: 0; animation: od-node 5s linear infinite; animation-delay: calc(var(--i) * 0.92s);
}
@keyframes od-node { 0% { opacity: 0; } 4% { opacity: 1; } 30% { opacity: 1; } 42%, 100% { opacity: 0.0; } }
.od-pipe li:last-child .od-node { background: radial-gradient(circle at 35% 30%, var(--sh-lime-bright), var(--sh-lime-deep) 75%); color: var(--sh-navy); border-color: var(--sh-lime); }
.od-pipe__name { font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-2); line-height: 1; text-transform: uppercase; color: var(--sh-white); }
.od-pipe__note { font-family: var(--sh-font-mono); font-size: var(--sh-step--2); letter-spacing: 0.04em; color: var(--sh-silver); line-height: 1.4; }
@media (max-width: 720px) {
  .od-pipe { grid-template-columns: 1fr; gap: 0.6rem; }
  .od-pipe::before { left: calc(2.6rem - 2px); right: auto; top: 2.6rem; bottom: 2.6rem; width: 4px; height: auto; }
  .od-pipe::after { display: none; }
  .od-pipe li { flex-direction: row; text-align: left; gap: 1rem; }
  .od-pipe li > span:last-child { display: flex; flex-direction: column; gap: 0.25rem; }
}
@media (min-width: 721px) { .od-pipe li > span:last-child { display: contents; } }

.od-match { display: grid; gap: var(--sh-space-s); align-items: center; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); margin-top: var(--sh-space-l); }
.od-file { position: relative; padding: 1rem 1.1rem; border-radius: var(--sh-radius-m); background: rgba(10, 31, 68, 0.62); border: 1px solid var(--sh-glass-edge); overflow: hidden; }
.od-file__head { display: flex; justify-content: space-between; gap: 0.5rem; font-family: var(--sh-font-mono); font-size: var(--sh-step--2); letter-spacing: 0.1em; text-transform: uppercase; color: var(--sh-silver); }
.od-file__head b { color: var(--sh-white); }
.od-hash { display: grid; grid-template-columns: repeat(16, 1fr); gap: 3px; margin-top: 0.8rem; }
.od-hash i { height: 1.35rem; border-radius: 3px; background: var(--c); transform-origin: bottom; animation: od-hashbar 5s var(--sh-ease-out) infinite; animation-delay: calc(var(--i) * 0.05s); }
@keyframes od-hashbar { 0% { transform: scaleY(0.15); opacity: 0.3; } 18%, 100% { transform: scaleY(1); opacity: 1; } }
.od-file__foot { margin-top: 0.6rem; font-family: var(--sh-font-mono); font-size: var(--sh-step--2); color: var(--sh-silver-2); }
.od-eq { display: grid; place-items: center; gap: 0.3rem; text-align: center; }
.od-eq__badge {
  display: grid; place-items: center; width: 4.2rem; height: 4.2rem; border-radius: 50%;
  background: var(--sh-lime); color: var(--sh-navy); box-shadow: var(--sh-glow-lime);
  animation: od-stamp 5s var(--sh-ease-snap) infinite;
}
.od-eq__badge svg { width: 2rem; height: 2rem; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.od-eq > span:last-child { font-family: var(--sh-font-mono); font-size: var(--sh-step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-lime); }
@keyframes od-stamp { 0%, 18% { transform: scale(0.84); } 26% { transform: scale(1.14); } 34%, 100% { transform: scale(1); } }
@media (max-width: 640px) { .od-match { grid-template-columns: 1fr; } .od-eq { grid-auto-flow: column; justify-content: center; align-items: center; gap: 0.8rem; } .od-eq__badge { width: 3.2rem; height: 3.2rem; } }

/* Three-command block */
.od-repro { display: grid; gap: var(--sh-space-s); }
@media (min-width: 900px) { .od-repro { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Pinned stack */
.od-pins { display: grid; gap: var(--sh-space-m); align-items: start; }
@media (min-width: 900px) { .od-pins { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); } }
.od-stack { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.od-stack li {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.25rem 1rem;
  padding: 0.75rem 1rem; border-radius: 12px; border: 1px solid var(--sh-glass-edge);
  background: linear-gradient(90deg, rgba(0, 77, 152, 0.7), rgba(16, 36, 92, 0.55));
  animation: od-rise 0.9s var(--sh-ease-out) both; animation-delay: calc(var(--i) * 0.09s);
}
.od-stack li:first-child { background: linear-gradient(90deg, rgba(196, 240, 0, 0.92), rgba(143, 179, 0, 0.85)); border-color: var(--sh-lime); }
.od-stack li:first-child span, .od-stack li:first-child b { color: var(--sh-navy); }
.od-stack li:nth-child(n+4) { background: linear-gradient(90deg, rgba(110, 76, 159, 0.62), rgba(16, 36, 92, 0.55)); }
.od-stack b { font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-1); text-transform: uppercase; color: var(--sh-white); letter-spacing: 0.02em; }
.od-stack span { font-family: var(--sh-font-mono); font-size: var(--sh-step--1); color: var(--sh-lime); overflow-wrap: anywhere; }
.od-pins__side { display: grid; gap: 0.6rem; }
.od-badge { display: flex; gap: 0.8rem; align-items: center; padding: 0.9rem 1rem; border-radius: var(--sh-radius-m); border: 1px solid rgba(196, 240, 0, 0.5); background: rgba(10, 31, 68, 0.6); color: var(--sh-white); font-size: var(--sh-step--1); line-height: 1.45; }
.od-badge svg { flex: none; width: 1.8rem; height: 1.8rem; fill: none; stroke: var(--sh-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-badge b { display: block; color: var(--sh-lime); font-family: var(--sh-font-mono); font-size: 0.85em; letter-spacing: 0.08em; text-transform: uppercase; }

/* ---------- Our machine: spec sheet -------------------------------------------------------- */
.od-spec { display: grid; gap: var(--sh-space-m); align-items: stretch; }
@media (min-width: 960px) { .od-spec { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.od-spec__die { display: grid; align-content: center; }
.od-spec__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.8rem; font-family: var(--sh-font-mono); font-size: var(--sh-step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-silver); }
.od-spec__head b { color: var(--sh-lime); }
.od-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.od-row {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: 0.25rem 1rem; align-items: center;
  padding: 0.85rem 1.1rem; border-radius: 14px; border: 1px solid var(--sh-glass-edge);
  background: linear-gradient(100deg, rgba(10, 31, 68, 0.78), rgba(16, 36, 92, 0.5));
  animation: od-rise 0.9s var(--sh-ease-out) both; animation-delay: calc(var(--i) * 0.12s);
}
.od-row::before { /* scan line */
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, rgba(196, 240, 0, 0) 30%, rgba(196, 240, 0, 0.16) 50%, rgba(196, 240, 0, 0) 70%);
  transform: translateX(-100%); animation: od-scan 7s ease-in-out infinite; animation-delay: calc(1.2s + var(--i) * 0.18s);
}
@keyframes od-scan { 0% { transform: translateX(-100%); } 22%, 100% { transform: translateX(100%); } }
.od-row > * { position: relative; z-index: 1; }
.od-row__k { font-family: var(--sh-font-mono); font-size: var(--sh-step--2); font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sh-lime); }
.od-row__v { font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-2); line-height: 1.05; text-transform: uppercase; color: var(--sh-white); overflow-wrap: anywhere; }
.od-row__v small { display: block; margin-top: 0.15rem; font-family: var(--sh-font-mono); font-weight: 400; font-size: var(--sh-step--2); letter-spacing: 0.04em; text-transform: none; color: var(--sh-silver); }
.od-row--hero { background: linear-gradient(100deg, rgba(0, 77, 152, 0.85), rgba(110, 76, 159, 0.7) 60%, rgba(165, 0, 68, 0.6)); border-color: rgba(196, 240, 0, 0.6); }
.od-row--hero .od-row__v { font-size: var(--sh-step-3); }
@media (max-width: 520px) { .od-row { grid-template-columns: 1fr; } }
.od-note { margin: 0.9rem 0 0; font-size: var(--sh-step--1); color: var(--sh-silver); }
.od-note code { font-family: var(--sh-font-mono); font-size: 0.9em; color: var(--sh-white); }

/* ---------- Hardware: article -------------------------------------------------------------- */
.od-article { display: grid; gap: var(--sh-space-m); }
@media (min-width: 960px) { .od-article { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; } }
.od-article__side { display: grid; gap: var(--sh-space-s); }
.od-quote { margin: 0; padding: 1.4rem 1.4rem 1.2rem; border-radius: var(--sh-radius-l); border: 1px solid rgba(196, 240, 0, 0.6); background: linear-gradient(150deg, rgba(165, 0, 68, 0.62), rgba(16, 36, 92, 0.7)); }
.od-quote__num { display: block; font-family: var(--sh-font-display); font-weight: 900; font-size: var(--sh-step-6); line-height: 0.85; color: var(--sh-lime); text-shadow: 0 0 30px rgba(196, 240, 0, 0.45); }
.od-quote__unit { font-family: var(--sh-font-mono); font-weight: 600; font-size: var(--sh-step-0); letter-spacing: 0.16em; color: var(--sh-white); }
.od-quote blockquote { margin: 0.8rem 0 0.6rem; font-size: var(--sh-step-0); line-height: 1.5; color: var(--sh-white); }
.od-quote figcaption { font-size: var(--sh-step--2); font-family: var(--sh-font-mono); color: var(--sh-silver); line-height: 1.5; }
.od-quote figcaption a { color: var(--sh-lime); }
.od-split__item { padding: 1rem 1.1rem; border-radius: var(--sh-radius-m); border: 1px solid var(--sh-glass-edge); background: rgba(10, 31, 68, 0.6); color: var(--sh-white); font-size: var(--sh-step--1); line-height: 1.5; }
.od-split__item b { display: inline-block; margin-bottom: 0.35rem; padding: 0.15rem 0.55rem; border-radius: 999px; font-family: var(--sh-font-mono); font-size: 0.8em; letter-spacing: 0.12em; text-transform: uppercase; background: var(--sh-lime); color: var(--sh-navy); }
.od-split__item p { margin: 0; }

/* SVG legend under the signature graphic, for small screens */
.od-legend { list-style: none; margin: 0.9rem 0 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.od-legend li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: var(--sh-step--1); line-height: 1.4; color: var(--sh-white); }
.od-legend li::before { content: ""; flex: none; width: 0.85rem; height: 0.85rem; margin-top: 0.2rem; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.od-legend b { font-family: var(--sh-font-display); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }

/* ---------- Section index ------------------------------------------------------------------- */
.od-index { display: grid; gap: var(--sh-space-m); align-items: center; }
@media (min-width: 820px) { .od-index { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); } }
.prose .od-index p { margin: 0 0 0.8em; }
.od-index__art { border-radius: var(--sh-radius-m); overflow: hidden; background: linear-gradient(150deg, #0F63C4, #004D98 30%, #4D44A6 60%, #A50044); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.25); }
.od-index__art svg { display: block; width: 100%; height: auto; }
.prose .od-index .od-chips { margin-top: 0.4rem; }
.prose .od-index .od-chips li { background: var(--sh-navy); }
.layout-section .card-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 16rem), 1fr)); }
.layout-section .card-grid .card { min-height: 15rem; padding-top: 5.2rem; }
.layout-section .card-grid .card:nth-child(1) { background: linear-gradient(155deg, rgba(0, 77, 152, 0.78), rgba(16, 36, 92, 0.6)); }
.layout-section .card-grid .card:nth-child(2) { background: linear-gradient(155deg, rgba(110, 76, 159, 0.78), rgba(16, 36, 92, 0.6)); }
.layout-section .card-grid .card:nth-child(3) { background: linear-gradient(155deg, rgba(165, 0, 68, 0.7), rgba(16, 36, 92, 0.6)); }
.layout-section .card-grid .card:nth-child(4) { background: linear-gradient(155deg, rgba(143, 179, 0, 0.55), rgba(16, 36, 92, 0.7)); }
.layout-section .card-grid .card__num { position: absolute; right: var(--sh-space-m); top: var(--sh-space-m); opacity: 0.9; }
.layout-section .card-grid .card::after { /* icon tile, then the corner glow on hover is replaced by it */
  content: ""; right: auto; left: var(--sh-space-m); top: var(--sh-space-m); width: 3.2rem; height: 3.2rem; aspect-ratio: auto;
  border-radius: 14px; opacity: 1; border: 1px solid rgba(196, 240, 0, 0.7);
  background: rgba(196, 240, 0, 0.12) var(--icon) center / 1.8rem no-repeat;
  box-shadow: 0 0 22px rgba(196, 240, 0, 0.2);
}
.layout-section .card-grid .card:nth-child(1) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4F000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3l7 3v5c0 4.5-3 8.3-7 10-4-1.7-7-5.5-7-10V6z'/%3E%3Crect x='9' y='10.5' width='6' height='5' rx='1'/%3E%3Cpath d='M10.3 10.5V9a1.7 1.7 0 0 1 3.4 0v1.5'/%3E%3C/svg%3E"); }
.layout-section .card-grid .card:nth-child(2) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4F000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 12a8 8 0 1 1-2.3-5.7'/%3E%3Cpath d='M20 4v4h-4'/%3E%3Cpath d='M8.5 12.5l2.3 2.3 4.7-5'/%3E%3C/svg%3E"); }
.layout-section .card-grid .card:nth-child(3) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4F000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='12' rx='1.5'/%3E%3Cpath d='M1.5 19.5h21'/%3E%3Cpath d='M7 8h4M7 11h7'/%3E%3C/svg%3E"); }
.layout-section .card-grid .card:nth-child(4) { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C4F000' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='2'/%3E%3Crect x='9.5' y='9.5' width='5' height='5' rx='.8'/%3E%3Cpath d='M9 2.5v3M15 2.5v3M9 18.5v3M15 18.5v3M2.5 9h3M2.5 15h3M18.5 9h3M18.5 15h3'/%3E%3C/svg%3E"); }

/* ---------- Machine & hardware: story rail, details, two-up cards -------------------------- */
.od-story { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.od-story a {
  position: relative; display: flex; flex-direction: column; gap: 0.2rem; height: 100%; padding: 0.8rem 1rem 0.9rem; overflow: hidden;
  border-radius: 14px; border: 1px solid var(--sh-glass-edge); background: rgba(10, 31, 68, 0.55); color: var(--sh-white);
  font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-1); line-height: 1.05; text-transform: uppercase; text-decoration: none;
  transition: border-color var(--sh-dur-fast), transform var(--sh-dur-base) var(--sh-ease-out);
}
.od-story a:hover { color: var(--sh-white); border-color: var(--sh-lime); transform: translateY(-3px); }
.od-story b { font-family: var(--sh-font-mono); font-size: var(--sh-step--2); letter-spacing: 0.14em; color: var(--sh-lime); }
.od-story a::after { /* progress bar that fills step by step */
  content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--sh-grad-tricolour);
  transform-origin: left; animation: od-story 7.5s var(--sh-ease-out) infinite; animation-delay: calc(var(--i, 0) * 1.5s);
}
.od-story li:nth-child(1) a { --i: 0; } .od-story li:nth-child(2) a { --i: 1; } .od-story li:nth-child(3) a { --i: 2; } .od-story li:nth-child(4) a { --i: 3; } .od-story li:nth-child(5) a { --i: 4; }
@keyframes od-story { 0% { transform: scaleX(0); } 14% { transform: scaleX(1); } 80% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0.25; } }
.od-details { margin-top: var(--sh-space-s); }
.od-details summary {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; list-style: none; padding: 0.45rem 0.9rem; border-radius: 999px;
  border: 1px solid var(--sh-glass-edge); background: rgba(10, 31, 68, 0.55); color: var(--sh-white);
  font-family: var(--sh-font-mono); font-size: var(--sh-step--2); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.od-details summary::-webkit-details-marker { display: none; }
.od-details summary::before { content: "+"; color: var(--sh-lime); font-weight: 800; }
.od-details[open] summary::before { content: "2"; }
.od-details[open] summary { margin-bottom: var(--sh-space-s); border-color: var(--sh-lime); }
.od-cards--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); align-content: start; }

/* ---------- Reproducibility: file buttons ---------------------------------------------------- */
.od-get { display: grid; gap: var(--sh-space-s); grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); }
.od-get__group { display: flex; flex-direction: column; gap: 0.7rem; padding: clamp(1rem, 2.5vw, 1.4rem); border-radius: var(--sh-radius-m); }
.od-get__group:nth-child(1) { background: linear-gradient(155deg, rgba(0, 77, 152, 0.75), rgba(16, 36, 92, 0.62)); }
.od-get__group:nth-child(2) { background: linear-gradient(155deg, rgba(110, 76, 159, 0.75), rgba(16, 36, 92, 0.62)); }
.od-get__group:nth-child(3) { background: linear-gradient(155deg, rgba(165, 0, 68, 0.68), rgba(16, 36, 92, 0.62)); }
.od-get__os { display: flex; align-items: center; gap: 0.6rem; margin: 0; font-family: var(--sh-font-display); font-weight: 800; font-size: var(--sh-step-2); line-height: 1; text-transform: uppercase; color: var(--sh-white); }
.od-get__os svg { width: 1.6rem; height: 1.6rem; fill: none; stroke: var(--sh-lime); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.od-get__note { margin: 0; font-size: var(--sh-step--1); line-height: 1.45; color: var(--sh-white); }
.od-get .actions { margin-top: auto; }
.od-get .button { padding: 0.7rem 1.1rem; font-size: var(--sh-step--2); letter-spacing: 0.04em; text-transform: none; font-family: var(--sh-font-mono); }
.od-get__cta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sh-space-s); margin-top: var(--sh-space-m); }
.od-get__cta p { margin: 0; color: var(--sh-white); font-size: var(--sh-step--1); }
.od-plans { margin: var(--sh-space-m) 0 0; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; font-size: var(--sh-step--1); color: var(--sh-white); }
.od-plans b { padding: 0.15rem 0.6rem; border-radius: 999px; border: 1px dashed var(--sh-lime); font-family: var(--sh-font-mono); font-size: 0.8em; letter-spacing: 0.12em; text-transform: uppercase; color: var(--sh-lime); }

/* ---------- Pause and reduced motion -------------------------------------------------------- */
/* Loops pause with the site's motion toggle; one-shot entrances always finish so content never stays hidden. */
.sh-motion-paused :is(.od-flow, .od-conveyor, .od-march, .od-spin, .od-blink, .od-float, .od-breathe, .od-wave, .od-ping, .od-sweep,
  .od-hash i, .od-eq__badge, .od-term .line, .od-term__caret, .od-index__art *),
.sh-motion-paused :is(.od-tok, .od-pipe, .od-node, .od-row)::before,
.sh-motion-paused :is(.od-tok, .od-pipe, .od-story a)::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  main *, main *::before, main *::after { animation: none !important; transition: none !important; }
}
