/* 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: #765a22; }
.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); }
}


/* ==========================================================================
   v4 — warmer paper, quieter textures, clean space behind the hero copy,
   one system for buttons and cards, a subtler depth column
   ========================================================================== */

/* one button system: same height steps, padding, border and states everywhere */
.btn { border-radius: var(--radius); border: 1px solid transparent; transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease); }
.btn:active { transform: translateY(1px); }
.btn-big { min-height: 56px; padding: 0 28px; font-size: var(--s-body); font-family: var(--text); font-weight: 600; }
.btn-ghost { background: transparent; color: inherit; border-color: currentColor; }
@media (hover: hover) { .btn-ghost:hover { background: rgba(36, 35, 31, 0.06); } }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--s-small); }
.copy { border-radius: var(--radius); }
.copy:active { transform: translateY(1px); }

/* numbers and commands in the monospace; text stays in Barlow */
.live-clock, .rail-live-time, .slip-range, .sheet-group li .amt, .live-answers li b, #paid-num, .term code { font-family: var(--code); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.live-clock { font-size: 1.375rem; min-width: 4.5ch; text-align: right; }
#paid-num { letter-spacing: -0.04em; }

/* hero: shorter description, the engraving dissolves into the paper before it reaches the text */
.hero-line { font-size: clamp(1.0625rem, 0.9rem + 0.45vw, 1.3125rem); line-height: 1.45; max-width: 44ch; }
.hero-video {
  -webkit-mask-image: linear-gradient(to right, transparent 0%, #000 34%); /* soft edge toward the text, a mask not a colour. taste-skill-ignore */
          mask-image: linear-gradient(to right, transparent 0%, #000 34%); /* taste-skill-ignore */
}
.live-card { background: var(--basalt); }

/* textures: half as loud, and each depth has its own finds */
.intro::before { background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2748%27%20height%3D%2744%27%3E%3Cpath%20d%3D%27M8%204%20q4%208%201%2016%20M8%2012%20l6%204%20M30%2026%20q-3%206%200%2012%20M30%2032%20l-5%203%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%27.07%27%20stroke-width%3D%271%27/%3E%3Ccircle%20cx%3D%2722%27%20cy%3D%278%27%20r%3D%27.9%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.08%27/%3E%3Ccircle%20cx%3D%2740%27%20cy%3D%2718%27%20r%3D%27.7%27%20fill%3D%27%23000%27%20fill-opacity%3D%27.07%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%2748%27%20height%3D%2752%27%3E%3Cpath%20d%3D%27M-4%2030%20C%2014%2022%2C%2030%2034%2C%2052%2024%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%27.10%27%20stroke-width%3D%273%27/%3E%3Cpath%20d%3D%27M-4%2044%20C%2018%2040%2C%2034%2048%2C%2052%2042%27%20fill%3D%27none%27%20stroke%3D%27%23000%27%20stroke-opacity%3D%27.06%27%20stroke-width%3D%271.5%27/%3E%3C/svg%3E"); }
.steps { background: #4a3b31; }
.steps-cut { background: #4a3b31; }
.steps::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background-image: url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A//www.w3.org/2000/svg%27%20width%3D%2748%27%20height%3D%2752%27%3E%3Cpath%20d%3D%27M-4%2018%20C%2012%2010%2C%2028%2026%2C%2052%2014%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.06%27%20stroke-width%3D%271%27/%3E%3Cpath%20d%3D%27M-4%2040%20C%2020%2034%2C%2030%2046%2C%2052%2038%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.04%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%2748%27%20height%3D%2752%27%3E%3Cpath%20d%3D%27M-4%2018%20C%2012%2010%2C%2028%2026%2C%2052%2014%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.06%27%20stroke-width%3D%271%27/%3E%3Cpath%20d%3D%27M-4%2040%20C%2020%2034%2C%2030%2046%2C%2052%2038%27%20fill%3D%27none%27%20stroke%3D%27%23fff%27%20stroke-opacity%3D%27.04%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%27M14%2040%20l5%20-10%20l5%2010%20z%20M74%2066%20l4%20-8%20l4%208%20z%20M100%2022%20l3%20-7%20l3%207%20z%27%20fill%3D%27none%27%20stroke%3D%27%23f2b544%27%20stroke-opacity%3D%27.08%27%20stroke-width%3D%271%27/%3E%3C/svg%3E"); }
/* cards and data sit on flat surfaces */
.slip, .sheet, .term, .live-card, .rig-term, .card-tab, .card-body { background-image: none; }

/* ragged seams: fewer teeth, shallower */
.intro::after, .depths::after, .rig::after, .figure::after, .log::after { top: -9px; height: 10px; clip-path: polygon(0 100%, 0.00% 100%, 6.25% 30%, 12.50% 55%, 18.75% 30%, 25.00% 30%, 31.25% 55%, 37.50% 55%, 43.75% 0%, 50.00% 0%, 56.25% 55%, 62.50% 30%, 68.75% 55%, 75.00% 55%, 81.25% 0%, 87.50% 0%, 93.75% 30%, 100.00% 100%, 100% 100%); }

/* secondary text a touch stronger on the dark strata */
.rig-text p, .figure-cap, .sheet-group li .sub, .live-label, .live-foot, .live-round { color: var(--basalt-soft); }
.sheet-group li .sub { color: var(--paper-soft); }

/* the payout figure with its cart and room to breathe */
.figure { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: end; gap: clamp(24px, 4vw, 64px); }
.figure-text { display: flex; flex-direction: column; min-height: 70svh; }
.figure-cart { margin: 0; align-self: end; background: var(--slate); max-width: 420px; justify-self: end; }
.figure-cart img { aspect-ratio: 4 / 3; object-fit: cover; object-position: 46% 92%; filter: grayscale(1) contrast(1.45) brightness(1.14) invert(1); mix-blend-mode: screen; opacity: 0.8; }
.figure { background: var(--slate); }

/* the finale: arriving at the bottom of the shaft */
.finale { background: var(--basalt); color: var(--basalt-ink); display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding-block: clamp(80px, 9vw, 140px); }
.finale-pic { margin: 0; background: var(--basalt); }
.finale-pic img { aspect-ratio: 1 / 1; object-fit: cover; object-position: 50% 96%; filter: grayscale(1) contrast(1.45) brightness(1.14) invert(1); mix-blend-mode: screen; opacity: 0.85; }
.finale h2 { font-size: var(--s-head); }
.finale p { margin-top: 20px; max-width: 40ch; color: var(--basalt-soft); font-size: var(--s-lead); line-height: 1.3; }
.finale .btn { margin-top: 32px; }
.rules { padding-bottom: clamp(64px, 7vw, 110px); }

/* depth column: narrower, quieter, only the cage stays bright */
@media (min-width: 1100px) {
  :root { --rail: 64px; }
  .rail { background: #1c1f1f; }
  .rail-live { padding: 14px 6px 12px; }
  .rail-live-name { font-size: 0.75rem; font-weight: 500; }
  .rail-live-time { font-size: 1.125rem; }
  .rail-band { padding: 10px 0 0 16px; font-size: 0.75rem; font-weight: 500; }
  .rail-band[data-band="1"] { background: #8d7f5f; color: #1c1f1f; }
  .rail-band[data-band="2"] { background: #6c4c37; color: #efe2d2; }
  .rail-band[data-band="3"] { background: #33221b; color: #d9c3b8; }
  .rail-band.is-live span { background: transparent; color: inherit; text-decoration: underline; text-decoration-color: var(--lamp); text-decoration-thickness: 2px; text-underline-offset: 3px; padding: 0; }
  .rail-cage { width: 26px; margin-left: -13px; left: 64%; transition: transform 320ms var(--ease); }
  .rail-cage i { width: 26px; height: 20px; border-top-width: 3px; }
  .rail-cage b { font-size: 0.6875rem; font-weight: 500; background: transparent; color: var(--lamp); }
  .rail-cage::before { width: 1px; margin-left: 0; background: rgba(239, 236, 230, 0.35); }
}
@media (prefers-reduced-motion: reduce) { .rail-cage { transition: none; } }

/* phone: headline, button, a close crop of the headframe, then the round card */
@media (max-width: 900px) {
  .hero-video { aspect-ratio: 1 / 1; object-position: 74% 30%; -webkit-mask-image: none; mask-image: none; }
  .hero-row .btn { width: 100%; }
  .figure, .finale { grid-template-columns: minmax(0, 1fr); }
  .figure-text { min-height: 0; }
  .figure-cart { justify-self: start; max-width: 100%; }
  .finale-pic { max-width: 320px; }
}


/* ==========================================================================
   v5 — the first screen as a calm mine instrument panel
   left: headline, two lines, one action · right: one headframe, its cage, a gauge plate
   the edge of the sand stratum shows at the bottom of the screen
   ========================================================================== */
.bar-link { margin-left: 8px; padding: 12px 0; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; transition: color 160ms var(--ease); }
@media (hover: hover) { .bar-link:hover { color: var(--paper-soft); } }

.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: clamp(24px, 4vw, 72px);
  min-height: calc(100svh - 76px - 44px); padding-block: 8px 24px; background: var(--paper); overflow: visible;
}
.hero-text { max-width: 600px; }
.hero h1 { font-size: clamp(3.5rem, 1rem + 5.6vw, 7.5rem); line-height: 0.9; }
.hero-line { margin-top: 22px; font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.3125rem); line-height: 1.45; max-width: 40ch; color: var(--paper-soft); }
.hero-row { margin-top: 32px; }

.hero-rig { position: relative; display: flex; justify-content: center; align-items: center; height: 100%; }
.hero-frame { position: relative; margin: 0; height: min(78svh, 760px); aspect-ratio: 1006 / 1500; background: var(--paper); }
.hero-frame img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.35) brightness(1.1); }
.gauge-cage { position: absolute; left: 50.6%; top: 0; width: 8.4%; transform: translate(-50%, 0); will-change: transform; }
.gauge-cage svg { display: block; width: 100%; height: auto; }

.gauge {
  position: absolute; left: 0; bottom: 8%; width: 210px;
  background: var(--step-2); color: var(--paper-ink); padding: 14px 16px 12px; border-radius: var(--radius);
}
.gauge-title { display: flex; align-items: center; gap: 8px; font-size: var(--s-small); font-weight: 600; color: var(--paper-soft); }
.gauge-dot { width: 8px; height: 8px; background: var(--lamp); flex: none; }
.gauge dl { margin: 10px 0 0; display: grid; gap: 6px; }
.gauge dl div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.gauge dt { font-size: var(--s-small); color: var(--paper-soft); }
.gauge dd { margin: 0; font-family: var(--code); font-variant-numeric: tabular-nums; font-size: 0.9375rem; font-weight: 600; }
#gauge-clock { color: var(--paper-ink); min-width: 4.5ch; text-align: right; }
#gauge-depth[data-level="2"] { color: #7a4f33; }
#gauge-depth[data-level="3"] { color: var(--bad); }

/* the panorama now lives in the surface stratum, as a wide band */
.pano { margin: 56px 0 0; background: var(--sand); }
.pano-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; mix-blend-mode: multiply; filter: grayscale(1) contrast(1.35) brightness(1.12); }

/* the live card moved under the rig screen's text */
.rig-text .live-card { grid-column: auto; margin-top: 28px; }
.rig-text #demo-round { margin-top: 12px; color: var(--basalt-ink); }
@media (hover: hover) { .rig-text #demo-round:hover { background: rgba(239, 236, 230, 0.08); } }
.rig { align-items: start; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 32px; }
  .hero-rig { height: auto; justify-content: flex-start; }
  .hero-frame { height: 62svh; margin: 0 auto; }
  .gauge { position: relative; left: auto; bottom: auto; width: 100%; margin-top: 16px; }
  .hero-rig { flex-direction: column; }
}

/* v5 phone: a shorter headframe so the gauge plate sits close under it */
@media (max-width: 900px) {
  .hero-frame { height: min(48svh, 420px); }
  .hero { padding-bottom: 40px; }
}

/* v5 inspector fixes: numbers in Barlow with tabular figures (monospace stays for real code),
   room between ledger groups, and the depth column wide enough to keep its margin */
.live-clock, .rail-live-time, .slip-range, .sheet-group li .amt, .live-answers li b, #paid-num, .gauge dd,
.sheet-end .ms-num { font-family: var(--text); font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0; }
.gauge dd { font-size: 1rem; }
.sheet-group + .sheet-group { margin-top: 80px; }
@media (min-width: 1100px) {
  :root { --rail: 80px; }
  .rail-live { padding: 14px 16px 12px; }
  .rail-band { padding-left: 16px; }
}

/* ==========================================================================
   v6 — the first screen as an engineering plate (the user's mockup)
   heavy condensed headline, Caslon text, one drawn headframe with a working cage,
   a status strip under the actions, three steps across the bottom
   ========================================================================== */
:root { --text: "Libre Caslon Text", Georgia, "Times New Roman", serif; --ink-rule: #24231f; --amber-deep: #c98a1e; }
body { font-size: 1.0625rem; }

.bar { border-bottom: 1.5px solid var(--ink-rule); }
.brand span { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.75rem; letter-spacing: 0.01em; }
.bar nav { padding-left: clamp(16px, 2.4vw, 40px); margin-left: clamp(12px, 2vw, 32px); border-left: 1.5px solid var(--ink-rule); gap: clamp(20px, 3.2vw, 64px); }
.bar nav a { font-family: var(--text); font-size: 1.1875rem; font-weight: 400; }
.bar-btn { margin-left: auto; display: inline-flex; align-items: center; min-height: 44px; padding: 0 20px; border: 1.5px solid var(--ink-rule); border-radius: 8px; font-family: var(--text); font-size: 1.0625rem; transition: background-color 160ms var(--ease); }
@media (hover: hover) { .bar-btn:hover { background: rgba(36, 35, 31, 0.06); } }
.bar-btn:active { transform: translateY(1px); }

.hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); grid-template-rows: 1fr auto;
  column-gap: clamp(24px, 3vw, 56px); align-items: center;
  min-height: calc(100svh - 76px); padding-block: clamp(24px, 3vw, 48px) 0;
}
.hero-text { max-width: 780px; }
.hero h1 {
  font-family: var(--display); font-weight: 800; letter-spacing: -0.02em;
  font-size: clamp(3.75rem, 0.5rem + 8.4vw, 10rem); line-height: 0.86;
}
.hero-line { margin-top: clamp(20px, 2.2vw, 36px); max-width: 30ch; font-family: var(--text); font-size: clamp(1.25rem, 0.9rem + 1vw, 1.9rem); line-height: 1.3; color: var(--paper-ink); }
.hero-row { margin-top: clamp(28px, 3vw, 48px); display: flex; flex-wrap: wrap; align-items: center; gap: 20px clamp(24px, 3vw, 40px); }
.hero .btn-big { min-height: clamp(56px, 4.6vw, 74px); padding: 0 clamp(24px, 2.4vw, 38px); border-radius: 8px; font-family: var(--text); font-weight: 700; font-size: clamp(1.125rem, 0.8rem + 0.9vw, 1.75rem); }
.hero-watch { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; font-family: var(--text); font-size: clamp(1.0625rem, 0.85rem + 0.6vw, 1.5rem); }
.hero-watch svg { flex: none; width: clamp(30px, 2.4vw, 38px); height: auto; transition: transform 160ms var(--ease); }
@media (hover: hover) { .hero-watch:hover svg { transform: scale(1.06); } }

.hero-strip {
  margin-top: clamp(24px, 2.6vw, 40px); display: inline-flex; flex-wrap: wrap; align-items: center;
  border: 1.5px solid var(--ink-rule); border-radius: 6px; padding: 8px 6px; /* the plate's reading window. taste-skill-ignore */
  font-family: var(--text); font-size: clamp(1rem, 0.85rem + 0.4vw, 1.25rem);
}
.hero-strip > span { padding: 4px clamp(14px, 1.8vw, 28px); }
.hero-strip > span + span { border-left: 1.5px solid var(--ink-rule); } /* taste-skill-ignore */
.strip-tag { display: inline-flex; align-items: center; gap: 8px; margin: 0 8px 0 4px; padding: 4px 14px !important; background: var(--lamp); border-radius: 3px; font-family: var(--display); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.95em; }
.strip-tag + span { border-left: 0 !important; }
.hero-strip .gauge-dot { width: 7px; height: 7px; background: var(--paper-ink); border-radius: 50%; }
.hero-strip b { font-family: var(--text); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; margin-left: 6px; }
#gauge-depth[data-level="2"] { color: #7a4f33; }
#gauge-depth[data-level="3"] { color: #a8442a; }

.hero-plate { position: relative; margin: 0; width: 100%; max-height: calc(100svh - 230px); aspect-ratio: 1400 / 1468; justify-self: center; background: var(--paper); }
.hero-plate > img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.plate-cage { position: absolute; top: 0; left: 51.4%; width: 10.57%; transform: translate(-50%, 0); will-change: transform; }
.plate-cage > img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; }
.plate-rope { position: absolute; bottom: 100%; width: 1.5px; height: 900px; margin-bottom: -6px; background: #2a2620; transform-origin: 50% 100%; transform: scaleY(0); }
.plate-rope:nth-child(1) { left: 37.8%; }
.plate-rope:nth-child(2) { left: 60.8%; }
.plate-note { position: absolute; right: calc(100% + 18px); top: 42%; display: grid; gap: 2px; white-space: nowrap; text-align: left; font-family: var(--text); font-size: 0.9375rem; line-height: 1.2; color: var(--paper-ink); }
.plate-note em { font-style: italic; font-size: 1.0625rem; }
.plate-note::after { content: ""; position: absolute; left: calc(100% + 6px); top: 50%; width: 52px; height: 1.5px; background: currentColor; }
.plate-note::before { content: ""; position: absolute; left: calc(100% + 52px); top: calc(50% - 4px); border: 5px solid transparent; border-left: 8px solid currentColor; border-right: 0; }

.hero-steps {
  grid-column: 1 / -1; list-style: none; margin: clamp(16px, 2vw, 28px) 0 0; padding: clamp(20px, 2.4vw, 36px) 0 clamp(28px, 3vw, 44px);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1.5px solid var(--ink-rule);
}
.hero-steps li + li { border-left: 1.5px solid var(--ink-rule); } /* taste-skill-ignore */
.hero-steps a { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 4px clamp(16px, 3vw, 48px); color: inherit; text-decoration: none; }
.hero-steps li:first-child a { padding-left: 0; }
.step-n { font-family: var(--text); font-size: clamp(3rem, 1.5rem + 3vw, 5.25rem); line-height: 0.9; color: var(--amber-deep); font-variant-numeric: lining-nums; }
.hero-steps b { display: block; font-family: var(--text); font-weight: 700; font-size: clamp(1.25rem, 0.9rem + 1vw, 2.25rem); line-height: 1.1; margin-bottom: 6px; }
.hero-steps a > span:last-child { font-size: clamp(0.9375rem, 0.85rem + 0.3vw, 1.1875rem); line-height: 1.35; }
@media (hover: hover) { .hero-steps a:hover b { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } }

/* the depth column waits until the reader leaves the first screen */
@media (min-width: 1100px) {
  .rail { transition: transform 320ms var(--ease); }
  html:not(.past-hero) .rail { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }

@media (max-width: 900px) {
  .bar nav { display: none; }
  .brand span { font-size: 1.5rem; }
  .hero { display: flex; flex-direction: column; align-items: stretch; min-height: 0; padding-top: 28px; }
  .hero h1 { font-size: clamp(3.5rem, 1rem + 12vw, 6rem); }
  .hero-row .btn { width: 100%; }
  .hero-strip { display: grid; grid-template-columns: auto 1fr; width: 100%; row-gap: 6px; }
  .hero-strip > span + span { border-left: 0; }
  .hero-plate { max-height: none; width: min(100%, 460px); margin-top: 28px; }
  .plate-note { font-size: 0.8125rem; right: calc(100% + 10px); }
  .plate-note em { font-size: 0.875rem; }
  .plate-note::after { width: 28px; }
  .plate-note::before { left: calc(100% + 28px); }
  .hero-steps { grid-template-columns: minmax(0, 1fr); }
  .hero-steps li + li { border-left: 0; border-top: 1.5px solid var(--ink-rule); }
  .hero-steps a, .hero-steps li:first-child a { padding: 16px 0; }
}
.hero-watch { text-decoration: none; color: inherit; }
@media (hover: hover) { .hero-watch:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; } }
/* the cage moves with a transform, which isolates its children: blend the whole cage group with the plate */
.plate-cage { mix-blend-mode: multiply; will-change: auto; }
.plate-cage > img { mix-blend-mode: normal; }
.plate-note { right: calc(100% + 68px); }
@media (max-width: 900px) { .plate-note { right: calc(100% + 40px); } }
/* phone: the payout number wraps its unit instead of running into the screen edge */
@media (max-width: 600px) { .figure-num { display: flex; flex-wrap: wrap; align-items: flex-start; font-size: clamp(4.5rem, 1rem + 18vw, 7rem); } }

/* ==========================================================================
   v6.1 — unslop pass after the serif switch
   ========================================================================== */
/* details: the wallet button is a button, not a link */
.bar-btn, .bar-btn:hover { text-decoration: none; color: inherit; }

/* type: Caslon reads smaller than Barlow, so running text on the landing steps up */
.intro-more, .rig-text p, .figure-cap, .sheet-note, .card-body p, .foot p:not(.foot-big) { font-size: 1.0625rem; line-height: 1.5; }
.intro-text { font-weight: 400; }

/* the payout figure: a display number again, sized to stay clear of the cart */
#paid-num, .figure-num { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums lining-nums; }
.figure-num { font-size: clamp(5rem, 1rem + 11vw, 13rem); white-space: nowrap; }
.figure-text { min-width: 0; }

/* colour: the rules are one stack of paper cards; only the open one steps up */
.card:nth-child(n) { --c: var(--step-2); --ci: var(--paper-ink); }
.card.is-open { --c: var(--paper); }
.card + .card .card-tab { border-top: 1px solid rgba(36, 35, 31, 0.14); } /* the seam between stacked rule cards. taste-skill-ignore */
.card-tab span { color: #7a5d25; }

/* layout: the finale reads as a short statement, not a paragraph */
.finale p { font-size: clamp(1.1875rem, 1rem + 0.5vw, 1.5rem); max-width: 34ch; }

/* colour: one ink for the footer headline, the amber stays on its links' hover */
.foot-big a { color: inherit; text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 8px; text-decoration-color: var(--lamp); }
@media (min-width: 901px) {
  .hero-strip { flex-wrap: nowrap; white-space: nowrap; }
  .hero-strip > span { padding-inline: clamp(12px, 1.3vw, 28px); }
}
/* the three hoist ropes continue the drawn ones exactly: same columns, same weight, same ink */
.plate-rope { width: 2.1%; min-width: 1px; background: #3a342c; margin-bottom: -4px; }
.plate-rope:nth-child(1) { left: 39.1%; }
.plate-rope:nth-child(2) { left: 49.6%; }
.plate-rope:nth-child(3) { left: 60.4%; }
/* the hoist ropes are a strip cut from the drawing itself, repeated down to the cage ring,
   so the line, its weight and its soft edges are the drawn ones. 46px strip on a 148px cage. */
.plate-ropes {
  position: absolute; bottom: 100%; left: 34.05%; width: 31.08%; height: 900px;
  margin-bottom: -10.8%; /* runs 16px of the sprite down past the ring top, as the drawn ropes did */
  background: url("/assets/rope-strip.png?v=1") repeat-y center top / 100% auto;
  transform-origin: 50% 100%; transform: scaleY(0);
}

/* v7 — the plate is one generated drawing that moves on its own: the cage rises to the landing and goes back down */
.hero-plate { aspect-ratio: 1 / 1; }
.plate-video { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; background: transparent; }
.plate-leaders { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.plate-leaders path { fill: none; stroke: var(--paper-ink); stroke-width: 1.2; vector-effect: non-scaling-stroke; }
.plate-label { position: absolute; display: grid; gap: 1px; transform: translateY(-50%); white-space: nowrap; font-family: var(--text); font-size: 0.9375rem; line-height: 1.2; color: var(--paper-ink); }
.plate-label em { font-style: italic; font-size: 1.0625rem; }
.plate-label.is-left { text-align: right; }
@media (max-width: 900px) {
  .plate-label { font-size: 0.75rem; }
  .plate-label em { font-size: 0.8125rem; }
}
/* phone: only the part names, so the labels stay inside the screen */
@media (max-width: 900px) {
  .plate-label { font-size: 0; }
  .plate-label em { font-size: 0.875rem; }
}
/* phone: a narrower plate leaves room for the side labels inside the page margin */
@media (max-width: 900px) { .hero-plate { width: min(80%, 440px); margin-inline: auto; } }

/* v7 — trust and clarity after the reviews */
.hero-terms { margin-top: 18px; max-width: 46ch; font-size: 1rem; line-height: 1.45; color: var(--paper-soft); }
.touches { margin-top: 48px; max-width: 640px; padding: 24px 28px; background: rgba(0, 0, 0, 0.18); }
.touches h3 { font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.touches ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.touches li { line-height: 1.5; font-size: 1.0625rem; }
.touches a { color: inherit; text-underline-offset: 4px; }
/* secondary text on the dark strata, one step brighter and never under 16px */
.rig-text p, .figure-cap, .live-foot, .live-label, .finale p { color: #ddd6ca; }
.rig-text p, .figure-cap { font-size: 1.0625rem; }
/* the first screen fits a 900px-tall laptop: headline sized by height too, steps on one line each */
@media (min-width: 901px) {
  .hero { padding-top: clamp(16px, 2.4vh, 40px); }
  .hero h1 { font-size: min(clamp(3.75rem, 0.5rem + 8.4vw, 10rem), 14.5vh); }
  .hero-line { margin-top: clamp(12px, 2vh, 32px); }
  .hero-row { margin-top: clamp(18px, 2.8vh, 44px); }
  .hero-terms { margin-top: 12px; }
  .hero-strip { margin-top: clamp(14px, 2.2vh, 36px); }
  .hero-plate { max-height: calc(100svh - 300px); }
  .hero-steps { margin-top: clamp(12px, 1.8vh, 28px); padding: clamp(14px, 2vh, 28px) 0 clamp(16px, 2.4vh, 36px); }
  .hero-steps b { font-size: clamp(1.25rem, 0.8rem + 0.8vw, 1.875rem); white-space: nowrap; }
  .step-n { font-size: clamp(2.75rem, 1.5rem + 2.4vw, 4.5rem); }
}
