/* ==========================================================================
   OpenPerps · ENGINE — release schedule
   A vertical rail with one node per release. The rail fills as you read, so
   the page itself behaves like the progress it is describing.
   ========================================================================== */

.rm-hero { min-height: 72svh; display: grid; align-content: center; padding-block: 128px 56px; position: relative; z-index: 1; }
.rm-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(7,8,10,0.96) 0%, rgba(7,8,10,0.86) 36%, rgba(7,8,10,0.4) 60%, rgba(7,8,10,0) 82%),
              linear-gradient(0deg, var(--void) 0%, rgba(7,8,10,0) 46%); }
.rm-hero h1 { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; letter-spacing: -0.02em; line-height: 0.85;
  font-size: clamp(46px, 8vw, 142px); margin-top: 20px; }
.rm-hero .sub { margin-top: 22px; font-size: clamp(16.5px, 1.25vw, 20px); line-height: 1.6; color: var(--text-2); max-width: 56ch; }
.rm-hero .meta { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 26px; }

/* the rail */
.rail { position: relative; padding-left: 86px; }
.rail-line { position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: var(--line); border-radius: 2px; }
.rail-line i { position: absolute; inset: 0; background: linear-gradient(180deg, var(--long), var(--short) 62%, var(--pending));
  transform: scaleY(var(--p, 0)); transform-origin: top; border-radius: 2px; }

.rel { position: relative; padding-block: clamp(26px, 3.4vw, 46px); border-top: 1px solid var(--line); }
.rel:first-child { border-top: 0; }
.rel::before { /* node */
  content: ""; position: absolute; left: -62px; top: clamp(32px, 3.8vw, 54px); width: 14px; height: 14px; border-radius: 50%;
  background: var(--void); border: 2px solid var(--line-2); transition: all 0.45s var(--ease); z-index: 1;
}
.rel.on::before { border-color: var(--short); box-shadow: 0 0 0 5px rgba(255,72,176,0.14); background: var(--short); }
.rel-grid { display: grid; grid-template-columns: minmax(0, 290px) minmax(0, 1fr); gap: clamp(18px, 3vw, 54px); align-items: start; }
.rel-win { font-family: var(--f-data); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-3); }
.rel-code { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(44px, 5.6vw, 84px);
  line-height: 0.82; margin: 10px 0 10px; color: var(--text-3); transition: color 0.5s var(--ease); }
.rel.on .rel-code { color: var(--text); }
.rel:nth-child(1).on .rel-code { color: var(--long-2); }
.rel:last-child.on .rel-code { color: var(--short); }
.rel-name { font-family: var(--f-display); font-weight: 900; text-transform: uppercase; font-size: clamp(19px, 1.8vw, 26px); line-height: 0.98; }
.rel-dates { margin-top: 10px; font-family: var(--f-data); font-size: 12px; color: var(--text-3); }
.rel-body p { color: var(--text-2); line-height: 1.62; margin-bottom: 14px; }
.rel-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; }
.rel-list li { position: relative; padding: 11px 0 11px 26px; border-top: 1px solid var(--line); color: var(--text-2); line-height: 1.55; }
.rel-list li:first-child { border-top: 0; padding-top: 0; }
.rel-list li::before { content: ""; position: absolute; left: 3px; top: 19px; width: 8px; height: 8px; border-radius: 2px; background: var(--line-2); }
.rel-list li:first-child::before { top: 8px; }
.rel.on .rel-list li::before { background: var(--long); }
.rel-gate { display: grid; gap: 8px; border: 1px solid var(--line); border-left: 3px solid var(--pending); border-radius: 0 var(--r-sm) var(--r-sm) 0;
  background: var(--surf); padding: 13px 16px; }
.rel-gate .h { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--pending); }
.rel-gate p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.5; }
.rel-tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 14px; }

@media (max-width: 860px) {
  .rail { padding-left: 42px; }
  .rail-line { left: 9px; }
  .rel::before { left: -40px; top: 30px; }
  .rel-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
}

/* standing rule */
.rule-note { border: 1px solid var(--short); border-radius: var(--r);
  background: color-mix(in srgb, var(--short) 9%, var(--surf)); padding: clamp(20px, 2.4vw, 32px); }
.rule-note .h { font-family: var(--f-data); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--short-2); margin-bottom: 12px; }
.rule-note p { font-size: clamp(17px, 1.7vw, 24px); line-height: 1.42; color: var(--text); max-width: 54ch; }
