/* Paper & Press — the printing process (stepped) and the raking-light viewer. Shared by B and the flagship. */
.press { --n: 7; position: relative; height: calc(var(--n) * 100svh); background: #120d0a; color: #efe5d4; }
.press-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.press-stick canvas { display: block; width: 100%; height: 100%; }
.press-panels { position: absolute; inset: 0; pointer-events: none; }
.press-panel { height: 100svh; }

.press-intro { position: absolute; left: 0; right: 0; top: calc(var(--switcher-h) + 7vh); text-align: center; pointer-events: none; padding: 0 20px; transition: opacity .8s ease, transform .8s ease; }
.press-intro.off { opacity: 0; transform: translateY(-14px); }
.press-intro h1, .press-intro h2.big { font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6vw, 80px); line-height: 1; margin: 0; letter-spacing: -.01em; }
.press-intro .by { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 28px); color: #d8b48f; margin-top: 10px; }
.press-intro .hint { margin-top: 18px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: #a8957f; }

.press-cap { position: absolute; left: clamp(16px, 5vw, 64px); bottom: clamp(84px, 12vh, 120px); max-width: min(430px, calc(100vw - 32px)); pointer-events: none;
  opacity: 0; transform: translateY(14px); transition: opacity .7s ease .15s, transform .7s ease .15s; text-shadow: 0 2px 18px rgba(0,0,0,.75); }
.press-cap.on { opacity: 1; transform: none; }
.press-cap .k { font-family: var(--display); font-size: 54px; line-height: 1; color: #c9895c; }
.press-cap h2 { font-family: var(--display); font-weight: 500; font-size: clamp(24px, 3vw, 34px); margin: 4px 0 8px; line-height: 1.1; }
.press-cap p { margin: 0; color: #d6c8b5; font-size: 16.5px; }
@media (max-width: 760px) { .press-cap { bottom: 96px; } .press-cap .k { font-size: 40px; } .press-cap p { font-size: 15.5px; } }

.press-dots { position: absolute; right: clamp(8px, 2.4vw, 34px); top: 50%; transform: translateY(-50%); display: grid; gap: 2px; }
.press-dots button { width: 30px; height: 30px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; padding: 0; }
.press-dots button i { display: block; width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.25); transition: background .3s, transform .3s; }
.press-dots button[aria-current="step"] i { background: #d8a173; transform: scale(1.6); }
.press-dots button:hover i { background: rgba(255,255,255,.6); }
.press-next { position: absolute; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); border: 1px solid rgba(255,255,255,.35); background: rgba(18,13,10,.4);
  color: #efe5d4; border-radius: 99px; padding: 10px 20px; font-size: 14px; letter-spacing: .06em; cursor: pointer; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); transition: opacity .4s; }
.press-next:hover { background: rgba(255,255,255,.1); }
.press-next[hidden] { display: block; opacity: 0; pointer-events: none; }

/* ---------- Viewer ---------- */
.pviewer { position: relative; min-height: 100svh; padding: clamp(40px, 8vh, 80px) 0 40px;
  background: radial-gradient(90% 60% at 50% 35%, #2a1f18, #120d0a 70%); color: #efe5d4; }
.pviewer header { text-align: center; padding: 0 20px; }
.pviewer header h2 { font-family: var(--display); font-weight: 500; font-size: clamp(30px, 4.4vw, 54px); margin: 0; }
.pviewer header p { margin: 6px auto 0; color: #b9a893; max-width: 560px; font-size: 16px; }
.pviewer .wrap3d { position: relative; height: min(58vh, 48vw + 120px); min-height: 280px; cursor: crosshair; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.pviewer .wrap3d canvas { display: block; width: 100%; height: 100%; }
.pviewer .sun { position: absolute; width: 26px; height: 26px; margin: -13px 0 0 -13px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, #fff6e2 0 30%, rgba(255,226,170,.55) 45%, transparent 70%); box-shadow: 0 0 30px 10px rgba(255,214,150,.25); transition: opacity .4s; }
.pviewer .controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 4px 0 14px; padding: 0 16px; }
.pviewer .seg { display: inline-flex; border: 1px solid rgba(255,255,255,.3); border-radius: 99px; padding: 3px; }
.pviewer .seg button, .pviewer .ctl { border: 0; background: none; color: #efe5d4; padding: 8px 15px; border-radius: 99px; cursor: pointer; font-size: 14px; }
.pviewer .seg button[aria-pressed="true"] { background: #efe5d4; color: #120d0a; }
.pviewer .ctl { border: 1px solid rgba(255,255,255,.3); }
.pviewer .ctl:hover, .pviewer .seg button:not([aria-pressed="true"]):hover { background: rgba(255,255,255,.08); }
.pviewer .meta { text-align: center; padding: 0 20px; }
.pviewer .meta .t { font-family: var(--display); font-size: 28px; }
.pviewer .meta .s { font-size: 14px; color: #a8957f; }
.pviewer .meta .d { font-size: 16px; color: #cdbfac; max-width: 620px; margin: 6px auto 0; }
.pviewer .strip { display: flex; gap: 10px; overflow-x: auto; padding: 22px clamp(16px, 4vw, 48px) 10px; scrollbar-width: thin; scrollbar-color: #4a3a2e transparent; }
.pviewer .strip button { flex: none; width: 150px; border: 0; padding: 0; background: none; cursor: pointer; opacity: .55; transition: opacity .3s, transform .3s; }
.pviewer .strip button:hover { opacity: .85; }
.pviewer .strip button[aria-pressed="true"] { opacity: 1; transform: translateY(-4px); }
.pviewer .strip img { width: 100%; aspect-ratio: 4/1; object-fit: cover; box-shadow: 0 6px 18px -8px #000; }
.pviewer .strip span { display: block; font-size: 12px; color: #a8957f; margin-top: 6px; text-align: left; line-height: 1.25; }
.press-fallback { padding: 40vh 20px; text-align: center; color: #cdbfac; }

/* ---------- Thread to Ink: one screen that plays by itself ---------- */
.thread { position: relative; height: 100vh; height: 100svh; min-height: 520px; background: #0d0a08; color: #efe5d4; }
.thread-stick { position: relative; height: 100%; overflow: hidden; }
.thread-stick canvas { display: block; width: 100%; height: 100%; touch-action: pan-y; cursor: grab; transition: opacity .38s ease; -webkit-user-select: none; user-select: none; }
.thread-stick canvas.scrubbing { cursor: grabbing; }
.thread-stick canvas.over-print { cursor: pointer; }
.thread-line { position: absolute; left: 0; right: 0; text-align: center; padding: 0 22px; pointer-events: none; opacity: 0; transform: translateY(12px);
  transition: opacity .9s ease .2s, transform .9s ease .2s; text-shadow: 0 2px 24px rgba(0,0,0,.8); }
.thread-line.on { opacity: 1; transform: none; }
.thread-line.top { top: calc(var(--switcher-h) + 7vh); }
.thread-line.bottom { bottom: 10vh; }
.thread-line .s { font-family: var(--display); font-style: italic; font-size: clamp(22px, 3vw, 36px); line-height: 1.25; max-width: 30ch; margin: 0 auto; color: #eadbc4; }
.thread-line h1 { font-family: var(--display); font-weight: 500; font-size: clamp(40px, 6.4vw, 88px); line-height: .98; margin: 0; letter-spacing: -.01em; }
.thread-line .by { font-family: var(--display); font-style: italic; font-size: clamp(20px, 2.4vw, 30px); color: #d4a77c; margin-top: 12px; }
.thread-line .k { font-variant: all-small-caps; letter-spacing: .18em; font-size: 15px; color: #b99c7f; margin-bottom: 14px; }
.thread-cue { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 6px 14px;
  color: #d4a77c; text-decoration: none; font-variant: all-small-caps; letter-spacing: .22em; font-size: 15px; white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .8s ease .4s; text-shadow: 0 2px 14px rgba(0,0,0,.8); }
.thread-cue.on { opacity: 1; pointer-events: auto; }
.thread-line .hint { margin-top: 16px; font-variant: all-small-caps; letter-spacing: .16em; font-size: 14px; color: #a99178; }
.thread-ctl { position: absolute; left: max(16px, env(safe-area-inset-left)); bottom: max(18px, env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; z-index: 2; }
.thread-pp { width: 36px; height: 36px; border-radius: 50%; border: 1px solid rgba(239,229,212,.35); background: rgba(18,13,10,.45); color: #efe5d4; cursor: pointer; display: grid; place-items: center; padding: 0; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.thread-pp:hover { border-color: #efe5d4; }
.thread-pp .ico-pause { width: 8px; height: 10px; border-left: 2.5px solid currentColor; border-right: 2.5px solid currentColor; }
.thread-pp .ico-play { width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 9px solid currentColor; margin-left: 3px; }
.thread-pp .ico-replay { font-size: 18px; line-height: 1; margin-top: -2px; }
.thread-prog { position: relative; width: clamp(64px, 14vw, 160px); height: 24px; cursor: pointer; touch-action: none; }
.thread-prog i { position: absolute; left: 0; right: 0; top: 11px; height: 2px; border-radius: 1px; background: rgba(239,229,212,.18); }
.thread-prog i::after { content: ''; position: absolute; inset: 0; background: #d8a173; transform-origin: left; transform: scaleX(var(--p, 0)); }
.thread-prog:focus-visible { outline: 1px solid #d8a173; outline-offset: 4px; border-radius: 2px; }
@media (max-width: 640px) { .thread-line.bottom { bottom: 12vh; } .thread-line .hint { font-size: 13px; } }
.thread-cue i { display: block; width: 1px; height: 42px; background: linear-gradient(#d4a77c, transparent); transform-origin: top; animation: tcue 2.4s ease-in-out infinite; }
@keyframes tcue { 0%,100% { transform: scaleY(.35); opacity: .35 } 50% { transform: scaleY(1); opacity: 1 } }
@media (prefers-reduced-motion: reduce) { .thread-cue i { animation: none; } }

/* ---------- Autoplaying process (no scroll-jacking) ---------- */
.press.press-auto { height: 100vh; height: 100svh; min-height: 520px; }
.press-auto .press-stick { position: relative; }
.press-auto canvas { transition: opacity .38s ease; }
.press-auto .press-cap { bottom: calc(clamp(84px, 12vh, 120px) + 10px); }
.press-bar { position: absolute; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 6px;
  padding: 5px; border-radius: 99px; background: rgba(18,13,10,.55); border: 1px solid rgba(255,255,255,.16); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); max-width: calc(100vw - 24px); }
.press-pp { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #efe5d4; color: #120d0a; cursor: pointer; display: grid; place-items: center; }
.press-pp .ico-pause { width: 10px; height: 12px; border-left: 3px solid currentColor; border-right: 3px solid currentColor; }
.press-pp .ico-play { width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid currentColor; margin-left: 3px; }
.press-steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.press-steps button { position: relative; overflow: hidden; display: flex; align-items: baseline; gap: 6px; border: 0; background: none; color: #cdbfac; cursor: pointer;
  padding: 10px 13px; border-radius: 99px; font: inherit; font-size: 14px; white-space: nowrap; transition: background .3s, color .3s; }
.press-steps button b { font-family: var(--display); font-weight: 600; font-size: 16px; color: #c9895c; }
.press-steps button:hover { background: rgba(255,255,255,.07); color: #fff; }
.press-steps button[aria-current] { background: rgba(255,255,255,.1); color: #fff; }
.press-steps button.done { color: #efe5d4; }
.press-steps button i { position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 1px; background: rgba(255,255,255,.12); }
.press-steps button i::after { content: ''; position: absolute; inset: 0; background: #d8a173; transform-origin: left; transform: scaleX(var(--p, 0)); }
@media (max-width: 640px) {
  .press-steps button { padding: 10px 9px; }
  .press-steps button span { display: none; }
  .press-steps button[aria-current] span { display: inline; }
  .press-auto .press-cap { bottom: 92px; }
}
