:root {
  color-scheme: dark;
  background: #101010;
  --brand-red: #ea292a;
}
* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; margin: 0; overflow: hidden; }
body { font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.reader {
  position: fixed;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
}
.reader::-webkit-scrollbar { display: none; }
.reader.is-dragging { scroll-snap-type: none; }
.module {
  width: 100%;
  min-height: 100%;
  display: flex;
  justify-content: center;
  align-items: stretch;
  background: #101010;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.artwork {
  width: min(100%, 720px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: var(--brand-red);
}
.artwork img { display: block; width: 100%; height: auto; flex: 0 0 auto; }
.hero-artwork { background: #ea2a2a; }
.hero-canvas {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 2652;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ea2a2a;
}
.hero-canvas .hero-element {
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  visibility: hidden;
  will-change: transform, opacity;
}
.hero-canvas.motion-ready .hero-element { visibility: visible; }
.hero-copy { top: 0; }
.hero-photo { top: 62.78280543%; }
.mentor-module { height: 100%; overflow: hidden; }
.mentor-artwork { align-items: center; background: #ea2a2a; }
.mentor-canvas {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  flex: 0 0 auto;
  overflow: hidden;
  background: #ea2a2a;
}
.mentor-gap { flex: 0 0 auto; width: 100%; }
.mentor-gap-red { background: #ea2a2a; }
.mentor-gap-panel { background: url('assets/mentor-panel-line.png') center / 100% 100% no-repeat; }
.mentor-canvas .mentor-piece { display: block; width: 100%; height: auto; flex: 0 0 auto; }
.mentor-segment { position: relative; width: 100%; flex: 0 0 auto; overflow: hidden; }
.mentor-canvas .mentor-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  visibility: hidden;
  will-change: transform, opacity;
}
.mentor-canvas .mentor-layer.motion-ready { visibility: visible; }
.module3-canvas, .module45-canvas { position: relative; width: 100%; flex: 0 0 auto; }
.module3-clip, .module45-clip {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 5.25%;
  width: 89.5%;
  overflow: hidden;
  pointer-events: none;
}
.module3-clip .module3-motion, .module45-clip .module45-motion {
  position: absolute;
  height: auto;
  visibility: hidden;
}
.module3-clip .module3-motion.motion-ready, .module45-clip .module45-motion.motion-ready { visibility: visible; }
.module45-motion[data-calm="true"] { --animate-duration: .65s; }
.scrollbar {
  position: fixed;
  z-index: 10;
  top: max(14px, env(safe-area-inset-top, 0px));
  bottom: max(14px, env(safe-area-inset-bottom, 0px));
  right: 0;
  width: 25px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .2s ease, visibility 0s linear .2s;
}
.scrollbar.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: opacity .14s ease;
}
.scrollbar:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.scrollbar-track {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 7px;
  width: 4px;
  border-radius: 9px;
  background: rgba(0, 0, 0, .28);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .12);
  pointer-events: none;
}
.scrollbar-thumb {
  position: absolute;
  left: 0;
  top: 0;
  width: 4px;
  height: 38px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .7);
  will-change: transform;
}
.scroll-hint {
  position: fixed;
  z-index: 8;
  left: 50%;
  bottom: 12px;
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .50);
  box-shadow: 0 1px 8px rgba(0, 0, 0, .12);
  transform: translateX(-50%);
  pointer-events: none;
  opacity: 1;
  transition: opacity .25s ease;
}
.scroll-hint.is-hidden { opacity: 0; }
.scroll-hint img { width: 23px; height: 23px; animation: arrow-pulse 2s ease-in-out infinite; }
@keyframes arrow-pulse {
  0%, 100% { opacity: .48; transform: translateY(-2px); }
  50% { opacity: 1; transform: translateY(2px); }
}
@media (prefers-reduced-motion: reduce) {
  .scroll-hint img { animation: none; }
}
