/* MINDSHAFT landing — the borehole log. Each section is a stratum; the ground darkens as you descend. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--paper-ink);
  font-family: var(--text);
  font-size: var(--s-body);
  line-height: 1.5;
  font-feature-settings: "tnum" 1;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 600; letter-spacing: -0.01em; line-height: 0.92; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--lamp); outline-offset: 3px; }
code { font-family: var(--code); }

/* ---------- frame: equal margins, the depth column on wide screens ---------- */

.page { padding-inline: calc(var(--rail) + var(--margin)) calc(var(--rail) + var(--margin)); }
main > section, .foot { margin-inline: calc(-1 * (var(--rail) + var(--margin))); padding-inline: calc(var(--rail) + var(--margin)); }

/* ---------- top bar ---------- */

.bar { display: flex; align-items: center; gap: clamp(16px, 3vw, 40px); min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.02em; }
.bar nav { display: flex; gap: clamp(14px, 2.4vw, 32px); margin-left: auto; }
.bar nav a { text-decoration: none; font-weight: 500; padding: 12px 0; }
.bar nav a:hover { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px;
  background: var(--lamp); color: var(--lamp-ink); border: 0; border-radius: var(--radius);
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease), background-color 160ms var(--ease);
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) { .btn:hover { background: var(--lamp-hover); } }
.btn-big { min-height: 60px; padding: 0 34px; font-size: var(--s-lead); font-family: var(--display); font-weight: 600; }

.copy {
  min-height: 44px; padding: 0 16px; border: 0; border-radius: var(--radius); cursor: pointer;
  background: rgba(0, 0, 0, 0.18); font-weight: 600;
  transition: transform 140ms var(--ease), background-color 140ms var(--ease);
}
.copy:active { transform: scale(0.96); }
@media (hover: hover) { .copy:hover { background: rgba(0, 0, 0, 0.28); } }

/* ---------- hero: one object on the counter ---------- */

.hero {
  position: relative; overflow: hidden; isolation: isolate; background: var(--paper);
  min-height: calc(100svh - 76px);
  display: grid; grid-template-columns: minmax(0, 540px) 1fr; align-content: center; row-gap: 32px;
  padding-block: 32px 40px;
}
/* The animated engraving sits whole in the right part of the screen; its paper is multiplied away. */
.hero-video {
  position: absolute; z-index: -1; top: 0; bottom: 0; right: calc(-1 * (var(--rail) + var(--margin)));
  width: 68%; height: 100%; object-fit: cover; object-position: 100% 50%;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.4) brightness(1.12);
  pointer-events: none;
}
.hero-text { grid-column: 1; }
.hero h1 { font-size: clamp(3.5rem, 1rem + 5.4vw, 7rem); line-height: 0.9; }
.hero-line { margin-top: 20px; font-size: var(--s-lead); line-height: 1.25; max-width: 30ch; }
.hero-row { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.hero-link { font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; padding: 12px 0; transition: color 160ms var(--ease); }
@media (hover: hover) { .hero-link:hover { color: var(--paper-soft); } }

/* The product rising from the bottom edge: the last real dig and the round clock. */
.live-card {
  grid-column: 1; width: 100%;
  background: var(--basalt); color: var(--basalt-ink); padding: 18px 22px 18px;
}
.live-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live-head b { font-weight: 600; }
.live-dot { width: 10px; height: 10px; background: var(--lamp); }
.live-round { color: var(--basalt-soft); }
.live-clock { margin-left: auto; font-family: var(--display); font-weight: 600; font-size: var(--s-lead); line-height: 1; color: var(--lamp); }
.live-label { margin-top: 18px; color: var(--basalt-soft); font-size: var(--s-small); }
.live-q { margin-top: 4px; font-weight: 600; line-height: 1.35; min-height: 2.7em; }
.live-q code { font-size: 0.85em; }
.live-answers { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.live-answers li { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 12px; background: var(--step-1); }
.live-answers li span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-answers li b { font-weight: 600; white-space: nowrap; }
.live-answers li b.is-right { color: var(--ok-on-dark); }
.live-answers li b.is-wrong { color: var(--bad-on-dark); }
.live-answers li.is-new { animation: arrive 360ms var(--ease); }
.live-foot { margin-top: 14px; color: var(--basalt-soft); font-size: var(--s-small); }

/* ---------- surface: the heavy paragraph ---------- */

.intro { background: var(--sand); color: var(--sand-ink); padding-block: clamp(80px, 10vw, 150px); min-height: 90svh; display: flex; flex-direction: column; justify-content: center; }
.intro-head { font-size: var(--s-head); }
.intro-text { position: relative; margin-top: 40px; font-size: var(--s-lead); font-weight: 600; line-height: 1.22; max-width: 30ch; }
.intro-more { margin-top: 22px; max-width: 46ch; font-weight: 500; }
.intro-text .chip {
  float: right; width: clamp(240px, 34vw, 520px); margin: -60px calc(-1 * clamp(0px, 30vw, 520px)) 20px 32px;
  mix-blend-mode: multiply; filter: grayscale(1) contrast(1.45) brightness(1.14); transform: rotate(3deg);
}
@media (min-width: 1100px) { .intro-text { max-width: none; padding-right: clamp(300px, 40vw, 600px); } .intro-text .chip { position: absolute; right: 0; top: -40px; float: none; margin: 0; } }

/* ---------- seam: three depths, index + slip ---------- */

.depths {
  background: var(--copper); color: var(--copper-ink);
  display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px);
  padding-block: clamp(80px, 10vw, 150px);
}
.depths h2 { font-size: var(--s-head); }
.depths-note { margin-top: 14px; max-width: 34ch; }
.depths-tabs { margin-top: 28px; display: flex; flex-direction: column; align-items: flex-start; }
.depths-tabs button {
  border: 0; background: none; padding: 4px 0; cursor: pointer; text-align: left;
  font-family: var(--display); font-weight: 600; font-size: var(--s-head); line-height: 1.05;
  color: var(--copper-soft); opacity: 0.55; transition: opacity 160ms var(--ease);
}
.depths-tabs button[aria-selected="true"] { color: var(--copper-ink); opacity: 1; }
@media (hover: hover) { .depths-tabs button:hover { opacity: 0.85; } }

.slip {
  width: min(560px, 100%); background: var(--paper); color: var(--paper-ink); padding: 32px 36px 40px;
  transition: opacity 200ms var(--ease);
}
.slip.is-swapping { opacity: 0; }
.slip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; }
.slip-name { font-family: var(--display); font-weight: 600; font-size: var(--s-head); line-height: 0.9; }
.slip-range { font-family: var(--display); font-weight: 600; font-size: var(--s-lead); }
.slip[data-level="1"] .slip-name { color: #8a6a2c; }
.slip[data-level="2"] .slip-name { color: #8f4a22; }
.slip[data-level="3"] .slip-name { color: var(--bad); }
.slip-kind { color: var(--paper-soft); }
.slip-q { margin-top: 26px; font-size: var(--s-lead); line-height: 1.25; font-weight: 600; }
.slip-q code { font-size: 0.8em; background: var(--step-2); padding: 2px 6px; word-break: break-word; }
.slip-opts { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: opt; }
.slip-opts li { counter-increment: opt; display: flex; gap: 14px; align-items: center; padding: 12px 14px; background: var(--step-2); }
.slip-opts li::before { content: counter(opt, upper-alpha); font-family: var(--display); font-weight: 600; width: 1ch; }
.slip-opts li.is-right { background: var(--paper-ink); color: var(--paper); }
.slip-stat { margin-top: 22px; color: var(--paper-soft); }
.slip-stat b { color: var(--paper-ink); }

/* ---------- run a rig: four fields, the same terminal further along ---------- */


/* ---------- core: one figure owns the screen ---------- */

.figure { background: var(--slate); color: var(--slate-ink); min-height: 90svh; display: flex; flex-direction: column; padding-block: clamp(80px, 9vw, 130px); }
.figure h2 { font-size: var(--s-lead); font-weight: 600; }
.figure-num { margin-top: auto; padding-top: 12vh; font-family: var(--display); font-weight: 600; font-size: clamp(5.5rem, 2rem + 16vw, 20rem); line-height: 0.8; letter-spacing: -0.03em; }
.figure-num sup { font-size: 0.24em; vertical-align: top; position: relative; top: 0.08em; margin-left: 0.12em; letter-spacing: 0.04em; color: var(--lamp); }
.figure-cap { margin-top: 26px; max-width: 34ch; color: var(--slate-soft); }

/* ---------- core: the assay log sheet ---------- */

.sheet {
  clip-path: polygon(0.0% 0%, 2.5% 0.9%, 5.0% 0%, 7.5% 0.9%, 10.0% 0%, 12.5% 0.9%, 15.0% 0%, 17.5% 0.9%, 20.0% 0%, 22.5% 0.9%, 25.0% 0%, 27.5% 0.9%, 30.0% 0%, 32.5% 0.9%, 35.0% 0%, 37.5% 0.9%, 40.0% 0%, 42.5% 0.9%, 45.0% 0%, 47.5% 0.9%, 50.0% 0%, 52.5% 0.9%, 55.0% 0%, 57.5% 0.9%, 60.0% 0%, 62.5% 0.9%, 65.0% 0%, 67.5% 0.9%, 70.0% 0%, 72.5% 0.9%, 75.0% 0%, 77.5% 0.9%, 80.0% 0%, 82.5% 0.9%, 85.0% 0%, 87.5% 0.9%, 90.0% 0%, 92.5% 0.9%, 95.0% 0%, 97.5% 0.9%, 100.0% 0%, 100.0% 100%, 97.5% 99.1%, 95.0% 100%, 92.5% 99.1%, 90.0% 100%, 87.5% 99.1%, 85.0% 100%, 82.5% 99.1%, 80.0% 100%, 77.5% 99.1%, 75.0% 100%, 72.5% 99.1%, 70.0% 100%, 67.5% 99.1%, 65.0% 100%, 62.5% 99.1%, 60.0% 100%, 57.5% 99.1%, 55.0% 100%, 52.5% 99.1%, 50.0% 100%, 47.5% 99.1%, 45.0% 100%, 42.5% 99.1%, 40.0% 100%, 37.5% 99.1%, 35.0% 100%, 32.5% 99.1%, 30.0% 100%, 27.5% 99.1%, 25.0% 100%, 22.5% 99.1%, 20.0% 100%, 17.5% 99.1%, 15.0% 100%, 12.5% 99.1%, 10.0% 100%, 7.5% 99.1%, 5.0% 100%, 2.5% 99.1%, 0.0% 100%);
  background: var(--paper); color: var(--paper-ink); padding: clamp(28px, 4vw, 64px);
}
.sheet h2 { font-size: var(--s-head); text-align: center; }
.sheet-note { margin-top: 10px; text-align: center; color: var(--paper-soft); }
.sheet-group { margin-top: 48px; }
.sheet-group h3 { font-size: var(--s-lead); text-align: center; }
.sheet-group ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 14px; }
.sheet-group li { display: grid; grid-template-columns: 1fr auto; gap: 2px 18px; }
.sheet-group li .what { font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.sheet-group li .amt { font-weight: 600; text-align: right; white-space: nowrap; }
.sheet-group li .sub { grid-column: 1 / -1; font-size: var(--s-small); color: var(--paper-soft); overflow-wrap: anywhere; }
.sheet-group li .amt.is-wrong { color: var(--bad); }
.sheet-group li .amt.is-right { color: var(--ok); }
.sheet-group li.empty { display: block; text-align: center; color: var(--paper-soft); }
.sheet-group li.is-new { animation: arrive 420ms var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(-8px); } }
.sheet-end { margin-top: 48px; text-align: center; font-weight: 600; }
.d { display: inline-block; padding: 0 6px; margin-right: 6px; font-size: var(--s-small); font-weight: 600; color: var(--paper-ink); }
.d[data-level="1"] { background: var(--d1); }
.d[data-level="2"] { background: var(--d2); color: #fff; }
.d[data-level="3"] { background: var(--d3); color: #fff; }

/* ---------- rules: tabbed index cards ---------- */

.rules { background: var(--basalt); color: var(--basalt-ink); padding-block: 0 clamp(80px, 10vw, 150px); }
.rules h2 { font-size: var(--s-head); }
.cards { margin-top: 40px; max-width: 980px; }
.card { position: relative; margin-top: -8px; }
.card:nth-child(3n + 1) { --c: var(--sand); --ci: var(--sand-ink); }
.card:nth-child(3n + 2) { --c: #b8703f; --ci: #fff6ec; }
.card:nth-child(3n + 3) { --c: var(--step-2); --ci: var(--paper-ink); }
.card-tab {
  display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; align-items: baseline; width: 100%; text-align: left;
  border: 0; cursor: pointer; background: var(--c); color: var(--ci); padding: 16px 22px; min-height: 64px;
  transition: filter 160ms var(--ease);
}
.card-tab span { font-family: var(--display); font-weight: 600; font-size: var(--s-body); min-width: 7ch; }
.card-tab b { font-weight: 600; font-size: var(--s-body); }
@media (hover: hover) { .card:not(.is-open) .card-tab:hover { filter: brightness(0.94); } }
.card-body { background: var(--c); color: var(--ci); padding: 0 22px 26px calc(22px + 7ch + 20px); }
.card-body p { max-width: 54ch; }

/* ---------- footer ---------- */

.foot { background: var(--basalt); color: var(--basalt-ink); padding-block: 40px 0; overflow: hidden; }
.foot-big { font-family: var(--display); font-weight: 600; font-size: var(--s-head); line-height: 0.95; }
.foot-big a { display: inline-block; margin-right: 0.4em; color: var(--lamp); text-decoration: none; }
.foot-big a:hover { text-decoration: underline; text-decoration-thickness: 4px; text-underline-offset: 8px; }
.foot-ca { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; background: var(--step-1); padding: 16px 20px; }
.foot-ca span { font-weight: 600; }
.foot-ca code { font-size: var(--s-small); overflow-wrap: anywhere; min-width: 0; }
.foot-ca .copy { background: rgba(255, 255, 255, 0.12); }
.foot-links { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 8px 28px; }
.foot-links a { padding: 10px 0; font-weight: 500; }
.foot-note { margin-top: 12px; max-width: 70ch; color: var(--basalt-soft); font-size: var(--s-small); }
.foot-name {
  margin: 40px 0 -0.16em; font-family: var(--display); font-weight: 600; text-transform: uppercase;
  font-size: clamp(4rem, 1rem + 15.5vw, 17rem); line-height: 0.8; letter-spacing: -0.02em; color: var(--copper);
  white-space: nowrap;
}

/* ---------- the depth column (wide screens) ---------- */

.rail { display: none; }
@media (min-width: 1100px) {
  :root { --rail: 88px; }
  .rail { display: flex; flex-direction: column; position: fixed; z-index: 5; inset: 0 auto 0 0; width: var(--rail); background: var(--basalt); color: var(--basalt-ink); }
  .rail-live { padding: 18px 10px 14px; text-align: center; background: var(--lamp); color: var(--lamp-ink); }
  .rail-live-name { display: block; font-weight: 600; font-size: var(--s-small); line-height: 1.1; }
  .rail-live-time { display: block; margin-top: 4px; font-family: var(--display); font-weight: 600; font-size: var(--s-lead); line-height: 1; }
  .rail-log { position: relative; flex: 1; display: flex; flex-direction: column; }
}

/* ---------- entrances: heading, text, picture, staggered; never hidden without script ---------- */

.js [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 420ms var(--ease), transform 420ms var(--ease); }
.js [data-reveal].in { opacity: 1; transform: none; }
.js [data-reveal]:nth-child(2) { transition-delay: 50ms; }
.js [data-reveal]:nth-child(3) { transition-delay: 100ms; }
.js [data-reveal]:nth-child(4) { transition-delay: 150ms; }
@media (prefers-reduced-motion: reduce) {
  .js [data-reveal] { transform: none; transition: opacity 200ms linear; }
  .sheet-group li.is-new { animation: none; }
  * { transition-duration: 0ms !important; }
}

/* ---------- phone ---------- */

@media (max-width: 560px) {
  .intro-text .chip { float: none; width: 78%; margin: 0 0 24px auto; transform: rotate(2deg); }
}
@media (max-width: 1099px) {
  .intro, .figure { min-height: 0; }
  .figure-num { padding-top: 64px; }
}
@media (max-width: 900px) {
  .bar nav { display: none; }
  .bar .btn { margin-left: auto; }
  .hero { min-height: 0; padding-top: 32px; }
  .hero-row .btn { width: 100%; }
  .hero { display: flex; flex-direction: column; }
  .hero-video { position: relative; inset: auto; order: 2; width: calc(100% + 2 * var(--margin)); max-width: none; height: auto; margin: 8px calc(-1 * var(--margin)) 0; aspect-ratio: 4 / 3; object-fit: cover; object-position: 78% 50%; }
  .live-card { order: 3; margin-top: 0; }
  .depths, .log { grid-template-columns: 1fr; }
  .depths-tabs { flex-direction: row; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .depths-tabs button { scroll-snap-align: start; font-size: 2.25rem; }
  .card-body { padding-left: 22px; }
  .card-tab { grid-template-columns: 1fr; }
}

/* ---------- what your rig sees: the CLI mining screen, live ---------- */

.rig { background: var(--step-1); color: var(--basalt-ink); display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: center; padding-block: clamp(80px, 9vw, 140px); }
.rig h2 { font-size: var(--s-head); }
.rig-text p { margin-top: 20px; max-width: 36ch; color: var(--slate-soft); }
.rig-term { background: #101113; min-width: 0; }
.rig-title { padding: 12px 18px; background: #18191b; color: var(--basalt-soft); font-size: var(--s-small); }
.rig-body { display: flex; gap: 20px; padding: 20px 18px 24px; overflow: hidden; }
.rig-body pre { margin: 0; font-family: var(--code); font-size: clamp(12px, 0.55rem + 0.55vw, 17px); line-height: 1.2; white-space: pre; color: #c9c5bc; }
.rig-body pre .tag { background: var(--lamp); color: var(--lamp-ink) !important; }
@media (max-width: 900px) {
  .rig { grid-template-columns: 1fr; }
  .rig-text p { max-width: 60ch; }
  .rig-body [data-scene] { display: none; }
  .rig-body pre { font-size: 12px; }
}

/* ---------- the continuous cross-section: rock texture per stratum, ragged seams between strata ---------- */

main > section { position: relative; }
.intro, .depths, .rig, .figure, .log, .rules { isolation: isolate; }
.intro::before, .depths::before, .rig::before, .figure::before, .log::before, .rules::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
}
.intro::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2724%27%20height%3D%2724%27%3E%3Ccircle%20cx%3D%273%27%20cy%3D%274%27%20r%3D%271%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.18%27/%3E%3Ccircle%20cx%3D%2715%27%20cy%3D%2710%27%20r%3D%27.8%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.14%27/%3E%3Ccircle%20cx%3D%279%27%20cy%3D%2719%27%20r%3D%271.1%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.16%27/%3E%3Ccircle%20cx%3D%2721%27%20cy%3D%2721%27%20r%3D%27.7%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.12%27/%3E%3C/svg%3E"); }
.depths::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2724%27%20height%3D%2724%27%3E%3Cpath%20d%3D%27M-2%2026%20L26%20-2%20M-2%2014%20L14%20-2%20M10%2026%20L26%2010%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%27.16%27%20stroke-width%3D%271%27/%3E%3C/svg%3E"); }
.rig::before, .figure::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2724%27%20height%3D%2724%27%3E%3Cpath%20d%3D%27M-2%2026%20L26%20-2%20M10%2026%20L26%2010%20M-2%2014%20L14%20-2%20M-2%20-2%20L26%2026%20M-2%2010%20L14%2026%20M10%20-2%20L26%2014%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.05%27%20stroke-width%3D%271%27/%3E%3C/svg%3E"); }
.log::before, .rules::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%27120%27%20height%3D%2790%27%3E%3Cpath%20d%3D%27M10%2040%20l8%20-14%20l8%2014%20z%20M60%2070%20l6%20-10%20l6%2010%20z%20M96%2030%20l5%20-9%20l5%209%20z%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.07%27%20stroke-width%3D%271%27/%3E%3C/svg%3E"); }
/* ragged top edge: each stratum bites into the one above it */
.intro::after, .depths::after, .rig::after, .figure::after, .log::after {
  content: ""; position: absolute; left: 0; right: 0; top: -17px; height: 18px; z-index: 1; pointer-events: none;
  background: inherit; clip-path: polygon(0 100%, 0.00% 100%, 2.08% 20%, 4.17% 45%, 6.25% 0%, 8.33% 70%, 10.42% 70%, 12.50% 20%, 14.58% 0%, 16.67% 0%, 18.75% 0%, 20.83% 70%, 22.92% 100%, 25.00% 45%, 27.08% 0%, 29.17% 20%, 31.25% 100%, 33.33% 100%, 35.42% 45%, 37.50% 45%, 39.58% 20%, 41.67% 0%, 43.75% 45%, 45.83% 20%, 47.92% 0%, 50.00% 45%, 52.08% 45%, 54.17% 20%, 56.25% 20%, 58.33% 45%, 60.42% 45%, 62.50% 45%, 64.58% 0%, 66.67% 100%, 68.75% 45%, 70.83% 70%, 72.92% 100%, 75.00% 20%, 77.08% 20%, 79.17% 20%, 81.25% 70%, 83.33% 45%, 85.42% 0%, 87.50% 100%, 89.58% 45%, 91.67% 0%, 93.75% 45%, 95.83% 100%, 97.92% 45%, 100.00% 100%, 100% 100%);
}
.figure { background: var(--slate); }

/* sparks at the cage when you cross into a new depth */
.spark { position: absolute; left: 50%; top: 0; width: 6px; height: 6px; background: var(--lamp); pointer-events: none; animation: spark 700ms var(--ease) forwards; }
@keyframes spark { from { opacity: 1; transform: translate(-50%, 0) scale(1); } to { opacity: 0; transform: translate(calc(-50% + var(--dx)), var(--dy)) scale(0.6); } }
@media (prefers-reduced-motion: reduce) { .spark { display: none; } }

/* ---------- three depths: index left, the slip fills the right column ---------- */
.depths { align-items: center; }
.depths-stage { min-width: 0; }
.slip { width: 100%; max-width: 640px; }

/* ---------- run a rig: one scene, the shaft on the left, four commands down its side ---------- */
.steps { background: #5e3d2a; color: var(--copper-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 72px); align-items: start; padding-block: clamp(80px, 9vw, 140px); }
.steps-cut { margin: 0; position: sticky; top: 32px; background: #5e3d2a; }
.steps-cut img { max-height: calc(100svh - 64px); width: auto; margin-inline: auto; filter: grayscale(1) contrast(1.45) brightness(1.14) invert(1); mix-blend-mode: screen; opacity: 0.85; }
.steps h2 { font-size: var(--s-head); max-width: 14ch; }
.steps-rows { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; }
.steps-rows .step { min-width: 0; }
.step p { font-size: var(--s-lead); line-height: 1.25; font-weight: 600; max-width: 34ch; }
.term { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--basalt); color: var(--basalt-ink); padding: 10px 10px 10px 18px; }
.term code { font-size: var(--s-body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.term code span { color: var(--lamp); margin-right: 8px; }
.term .copy { flex: none; background: var(--step-1); color: var(--basalt-ink); }
@media (hover: hover) { .term .copy:hover { background: #33353a; } }

/* ---------- assay log: one printed sheet with its own woodcut vignette ---------- */
.log { background: var(--basalt); color: var(--basalt-ink); padding-block: clamp(80px, 10vw, 150px); }
.log .sheet { max-width: 780px; margin-inline: auto; }
.sheet-vignette { width: 100%; height: clamp(160px, 22vw, 280px); object-fit: cover; object-position: 50% 40%; margin-bottom: 28px; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.45) brightness(1.14); }
.sheet-group li.pending { display: block; height: 26px; border-bottom: 2px dotted var(--step-2); }

/* ---------- depth column: names stand up the left edge, the cage rides the right ---------- */
@media (min-width: 1100px) {
  .rail-band { flex: 1; display: flex; align-items: flex-start; justify-content: flex-start; padding: 12px 0 0 18px; font-size: var(--s-small); font-weight: 600; }
  .rail-band span { writing-mode: vertical-rl; transform: rotate(180deg); }
  .rail-band[data-band="1"] { flex: 0.5; background: var(--d1); color: var(--sand-ink); }
  .rail-band[data-band="2"] { flex: 0.3; background: var(--d2); color: #fff; }
  .rail-band[data-band="3"] { flex: 0.2; background: #3a1d15; color: #f4d2c8; }
  .rail-band.is-live span { background: var(--basalt); color: var(--lamp); padding: 6px 0; }
  .rail-cage { position: absolute; left: 60%; top: 0; width: 34px; margin-left: -17px; will-change: transform; text-align: center; }
  .rail-cage i { display: block; width: 34px; height: 26px; background: var(--basalt); border-top: 4px solid var(--lamp); }
  .rail-cage b { display: block; margin-top: 4px; font-size: var(--s-small); font-weight: 600; white-space: nowrap; background: var(--basalt); color: var(--basalt-ink); }
  .rail-cage::before { content: ""; position: absolute; bottom: 100%; left: 50%; width: 2px; height: 100svh; margin-left: -1px; background: var(--basalt); }
  .spark { left: 60%; }
}

@media (max-width: 900px) {
  .depths-stage { padding: 0; margin: 0; }
  .slip { padding: 24px 20px 28px; }
  .steps { grid-template-columns: minmax(0, 1fr); }
  .steps-cut { position: static; }
  .steps-cut img { max-height: 46svh; }
  .term code { font-size: var(--s-small); }
}
