/* Pass 8: no scroll bar; the page's own progress rail and Skip (js/rail.js). The page still scrolls.
   Small and quiet: 7 diamonds of 2.5 px on desktop (5 of 2 px on phones) over 20 vh, centred vertically, the
   diamonds' centre 28 px in from the right edge on desktop widths and 20 px on phones (Sage: padding from the edge), Skip in 9 px caps centred under the column. Lit diamonds 0.55, ahead 0.18, the
   current one 0.9 with a 1 px halo; everything 0.2 brighter while scrolling, back after 800 ms idle. Nothing shows on
   the first screen; all of it goes once the letter has settled. */
html { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; width: 0; height: 0; }

/* One fixed container, 30 px wide, whose centre is the column's x: right 13 px puts the diamonds 28 px in (5 px, 20 px
   on phones). Skip (the 9 px word is 28 px wide) is centred on the same x, so it ends 14 px (6 px) from the edge. */
.railbox { position: fixed; right: 13px; top: 40vh; width: 30px; height: calc(20vh + 40px); z-index: 15; pointer-events: none; }
.rail {
  position: absolute; left: 0; right: 0; top: 0; height: 20vh;
  pointer-events: none;
  opacity: 0; transition: opacity 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail.is-on { opacity: 1; }
.rail.is-done, .rail.is-on.is-done, .rail.is-on.is-moving.is-done { opacity: 0; }
.rail-dia {
  position: absolute; left: 50%; width: 2.5px; height: 2.5px; margin: -1.25px 0 0 -1.25px;
  background: #d8a075; opacity: 0.18; transform: rotate(45deg);
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail-dia.is-lit { opacity: 0.55; }
.rail.is-moving .rail-dia { opacity: 0.38; }
.rail.is-moving .rail-dia.is-lit { opacity: 0.75; }
.rail-mark {
  position: absolute; left: 50%; top: 0; width: 3.5px; height: 3.5px; margin: -1.75px 0 0 -1.75px;
  background: #f0c89a; opacity: 0.9; box-shadow: 0 0 0 1px rgba(216, 160, 117, 0.3);
  will-change: transform;
  transition: opacity 300ms cubic-bezier(0.22, 1, 0.36, 1);
}
.rail.is-moving .rail-mark { opacity: 1; }

.skip {
  position: absolute; left: 0; right: 0; top: calc(20vh + 6px);
  display: flex; align-items: center; justify-content: center; /* centred even when the word is wider than the box */
  width: 100%; height: 28px; padding: 0; margin: 0; pointer-events: auto;
  background: none; border: 0; border-radius: 0; white-space: nowrap;
  font-family: 'Schibsted Grotesk', 'Helvetica Neue', Arial, sans-serif; font-weight: 600; font-size: 9px; line-height: 1;
  letter-spacing: 0.18em; text-indent: 0.18em; text-transform: uppercase;
  color: rgba(216, 160, 117, 0.5); cursor: pointer;
  transition: color 250ms cubic-bezier(0.22, 1, 0.36, 1), opacity 400ms cubic-bezier(0.22, 1, 0.36, 1);
}
/* The tap target is 44 x 44 px around the word, reaching left into the page (the word sits near the edge). */
.skip::before { content: ''; position: absolute; top: -8px; bottom: -8px; right: 0; width: 44px; }
.skip:hover { color: rgba(216, 160, 117, 0.9); }
.skip:focus-visible { outline: 1px solid rgba(216, 160, 117, 0.8); outline-offset: 2px; }
.skip { opacity: 0; visibility: hidden; } /* until rail.js shows it, past 1 percent */
.skip:not(.is-gone) { opacity: 1; visibility: visible; }
.skip.is-gone { opacity: 0; pointer-events: none; visibility: hidden; transition: opacity 400ms, visibility 0s 400ms; }
.rail[hidden], .skip[hidden] { display: none; }

@media (max-width: 640px) {
  .railbox { width: 30px; right: 5px; } /* the diamonds 20 px in; Skip centred on them, 6 px clear of the edge */
  .rail-dia { width: 2px; height: 2px; margin: -1px 0 0 -1px; }
  .rail-mark { width: 3px; height: 3px; margin: -1.5px 0 0 -1.5px; }
}
/* The end fade (rail.js sets the box's opacity on the scroll): at 0 nothing in it takes pointer events or focus. */
.railbox.is-faded, .railbox.is-faded .skip { pointer-events: none; }
.railbox.is-faded .skip { visibility: hidden; } /* out of the tab order too; already at opacity 0, so nothing flashes */
.is-reduced .railbox { display: none; }
