/* Watch v2 "The Timeline" — pinned four-state scrollytelling with scale-shift rail */

.masthead .orientation {
  font-size: 0.6rem;
  letter-spacing: 0.13em;
  color: var(--ink-faint);
}
@media (max-width: 1100px) { .masthead .orientation { display: none; } }

.story { position: relative; }

.stage-pin {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  width: 100%;
  overflow: hidden;
  z-index: 0;
}
.stage-pin img,
.stage-pin canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#stage-canvas { opacity: 0; transition: opacity 700ms ease; }
.story.is-live #stage-canvas { opacity: 1; }
.story.is-live #stage-fallback { opacity: 0; transition: opacity 700ms ease; }

.stage-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(var(--line-faint) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, var(--line-faint) 1px, transparent 1px) 0 0 / 44px 44px,
    radial-gradient(ellipse 90% 75% at 50% 45%, transparent 55%, var(--bg) 100%);
}

/* the persistent time — appears at absorption, proves the function survived */
.time-glyph {
  position: absolute;
  left: 50%;
  top: 44%;
  transform: translate(-50%, -50%);
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.08em;
  color: var(--amber-bright);
  text-shadow: 0 0 26px rgba(242, 163, 60, 0.5);
  opacity: 0;
  transition: opacity 900ms ease;
  z-index: 2;
  pointer-events: none;
}
.time-glyph.is-on { opacity: 1; }

.hud {
  position: absolute;
  top: 84px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--amber);
  text-shadow: 0 1px 12px rgba(10, 11, 8, 0.95), 0 0 3px rgba(10, 11, 8, 0.9);
  z-index: 2;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* scale-shift rail */
.rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  opacity: 0;
  transition: opacity 400ms ease;
}
.story.is-live .rail { opacity: 1; }
.rail.rail-done { opacity: 0 !important; pointer-events: none; }
.rail-track {
  position: relative;
  width: 2px;
  height: 46vh;
  background: var(--line);
}
.rail-fill {
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: var(--amber);
  transform: scaleY(0);
  transform-origin: top;
  will-change: transform;
}
.rail-seg {
  position: absolute;
  right: 10px;
  transform: translateY(-4px);
  text-align: right;
  font-family: var(--mono);
  white-space: nowrap;
}
.rail-seg span {
  display: block;
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--ink-dim);
}
.rail-seg em {
  display: block;
  font-style: normal;
  font-size: 0.5rem;
  letter-spacing: 0.14em;
  color: var(--ink-faint);
}

/* chapters & cards (shared bones with v1) */
.chapter {
  position: relative;
  height: 100vh;
  height: 100svh;
  display: flex;
  align-items: center;
  z-index: 1;
  pointer-events: none;
}
.chapter:first-of-type { margin-top: -100vh; }

.card {
  pointer-events: auto;
  max-width: 34rem;
  padding: 2rem 2.2rem;
  background: radial-gradient(95% 100% at 50% 50%, color-mix(in srgb, var(--bg) 86%, transparent) 0%, color-mix(in srgb, var(--bg) 50%, transparent) 52%, transparent 82%);
  border: none;
}
.card h2, .card .card-body, .card h1 { text-shadow: 0 2px 26px rgba(10, 11, 8, 0.9); }
.card-right { margin-left: auto; margin-right: clamp(1.5rem, 8vw, 8rem); }
.card-left { margin-left: clamp(1.5rem, 8vw, 8rem); }
.card-center {
  margin: 0 auto;
  text-align: center;
  max-width: 50rem;
}
.card h1 { font-size: clamp(3rem, 6.8vw, 6rem); margin-bottom: 1.4rem; line-height: 1.02; }
.card h2 {
  font-family: var(--serif);
  font-weight: 380;
  font-size: clamp(2.2rem, 4.2vw, 3.6rem);
  line-height: 1.08;
  margin: 0.6rem 0 1rem;
}
.card-body { color: var(--ink-dim); font-size: 1.1rem; }
.phase-tag { font-size: 0.8rem; letter-spacing: 0.16em; color: var(--amber); }
.scroll-cue {
  margin-top: 2.2rem;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  color: var(--ink-dim);
  text-shadow: 0 1px 14px rgba(10, 11, 8, 0.95), 0 0 4px rgba(10, 11, 8, 0.9);
}
.quartz-line {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-faint);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
  color: var(--ink-faint);
  transition: color 500ms ease;
}
.quartz-line.is-on { color: var(--amber); }

/* pivot: full-bleed cinematic band */
.pivot {
  position: relative;
  overflow: hidden;
  padding: clamp(6rem, 16vh, 10rem) var(--pad);
  text-align: center;
  border-top: 1px solid var(--line-faint);
}
.pivot-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
  filter: saturate(0.85);
}
.pivot-inner { position: relative; }
.pivot-line {
  font-family: var(--serif);
  font-weight: 320;
  font-size: clamp(2.6rem, 5.8vw, 5rem);
  margin-bottom: 1.4rem;
}
.pivot-line em { color: var(--amber-bright); }
.pivot-body { color: var(--ink-dim); max-width: 42rem; margin: 0 auto; }

/* crossing */
.crossing {
  border-top: 1px solid var(--line-faint);
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
  max-width: 1440px;
  margin: 0 auto;
}
.section-eyebrow { font-size: 0.72rem; letter-spacing: 0.18em; color: var(--amber); margin-bottom: 2.2rem; display: block; }
.ladder-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}
.ladder-list li { border-left: 1px solid var(--line-faint); padding: 0.4rem 1.6rem 0.6rem; }
.step-no { font-size: 0.68rem; color: var(--amber); letter-spacing: 0.12em; }
.ladder-list h3 {
  font-family: var(--serif);
  font-weight: 420;
  font-size: 1.45rem;
  margin: 0.5rem 0 0.7rem;
}
.ladder-list p { color: var(--ink-dim); font-size: 0.93rem; }

@media (max-width: 900px) {
  .card-right, .card-left { margin: 0 auto; }
  .rail { display: none; }
}

/* ---------- home additions: nav, skip link, bands ---------- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--amber);
  color: #191305;
  padding: 0.6rem 1rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}
.skip-link:focus { left: 0; }



.fde-band {
  border-top: 1px solid var(--line-faint);
  background: var(--bg-raised);
}
.fde-band-inner {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(3.5rem, 9vh, 6rem) var(--pad);
}
.fde-text {
  font-family: var(--serif);
  font-weight: 350;
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1.8rem;
}
.crossing-more { display: inline-block; margin-top: 2rem; }
.contact-email {
  margin-top: 1.2rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-dim);
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .masthead .orientation { display: none; }
}
@media (max-width: 480px) {
  .card { padding: 1.3rem 1.2rem; }
  .card-center { padding: 1.3rem 0.8rem; }
}
/* lite mode (mobile): image-driven story, no WebGL */
.story.is-lite #stage-fallback { transition: opacity 400ms ease, filter 600ms ease; }
.story.is-lite.era-absorbed #stage-fallback { filter: brightness(0.22) saturate(0.6); }
.story.is-lite .rail { display: none; }

/* hero entrance: one orchestrated reveal on load */
@keyframes rise {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: none; }
}
.card-center .eyebrow { animation: rise 700ms 150ms ease both; }
.card-center .card-body { animation: rise 700ms 540ms ease both; }
.card-center .scroll-cue { animation: rise 700ms 760ms ease both, cue-drift 2.4s 1.6s ease-in-out infinite; }
@keyframes cue-drift {
  0%, 100% { transform: none; }
  50% { transform: translateY(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .card-center .eyebrow, .card-center h1, .card-center .card-body, .card-center .scroll-cue { animation: none; }
}

.crossing .ladder-list li { position: relative; }
.crossing .ladder-list h3 { font-size: 1.7rem; }
