/* ==========================================================================
   NNP RAISINS — NEWS POST, SIAL SHANGHAI 2026: THE SCROLL (2026-10-02, v1)
   Loaded by news/sial-shanghai-2026/ only, after site.css.

   A Chinese hanging scroll. The top rod hangs from a cord; the paper feeds
   out from the lower roller, which rides the foot of the screen
   (position: sticky; bottom: 0) until the paper ends. Everything the post
   says is ON the paper; the photographs are prints mounted on it.

   Materials: a violet silk mount with a faint lattice (the site's violet,
   so the object is NNP's, not a souvenir); cream paper with a fibre grain;
   dark lacquered wood for the rod and the roller; a red seal.

   ⚠ THE BASE STATE IS THE READABLE DOCUMENT (GOTCHAS). No script: the
     scroll hangs fully unrolled. `.sc-live` (added by post-scroll.js) adds
     the unroll on load, the sway, the reveals and the seal's press.
   ⚠ LIGHT: nothing pinned; the unroll is one clip-path tween on load; the
     sway is one CSS keyframe on a wrapper the script never touches; the
     pointer lean is a rotation on a different wrapper (GOTCHAS: no CSS
     transition/animation on a property GSAP tweens).
   ⚠ Nothing depends on :hover — his PC reports hover:none.
   ========================================================================== */

/* ------------------------------------------------------------ page ---- */
.sc-dark-page, .sc-dark-page body { background: #0b0812; }
.sc-dark-page body { padding-top: 0; }
.sc { --sc-paper: #f3eee1; --sc-paper-dp: #e9e2d1; --sc-ink: #16141c; --sc-ink-2: #6a6383;
      --sc-silk: #3b1f61; --sc-silk-dp: #2a1447; --sc-silk-lt: #5a3a87;
      --sc-wood: #4a311f; --sc-wood-dp: #1c110a; --sc-lacquer: #1a0f0a;
      --sc-seal: #b8302c; --sc-w: min(900px, 100vw - 2 * var(--gut, 20px));
      position: relative; color: var(--chalk); overflow-x: clip;
      background:
        radial-gradient(70% 50% at 50% 0%, rgba(88,36,142,.28) 0%, rgba(11,8,18,0) 70%),
        linear-gradient(180deg, #0b0812 0%, #0f0a1a 50%, #0b0812 100%); }

/* ------------------------------------------------------- masthead ---- */
.sc-dark-page .masthead:not(.is-stuck) { background: transparent; border-bottom-color: transparent; }
.sc-dark-page .masthead.is-stuck { background: rgba(10,6,20,.92); border-bottom-color: rgba(242,237,248,.12); }
.sc-dark-page .masthead .brand { color: #fff; }
.sc-dark-page .masthead .navtoggle { color: #fff; border-color: rgba(255,255,255,.35); }
@media (min-width: 1001px) {
  .sc-dark-page .masthead .mainnav a:not(.btn) { color: var(--chalk-dim); }
  .sc-dark-page .masthead .mainnav a:not(.btn):hover,
  .sc-dark-page .masthead .mainnav a:not(.btn)[aria-current="page"] { color: #fff; }
  .sc-dark-page .masthead .btn-primary { background: var(--chalk); color: var(--violet-dp); }
  .sc-dark-page .masthead .btn-primary::before { background: #fff; }
  .sc-dark-page .masthead :focus-visible { outline-color: #fff; }
}

/* ------------------------------------------------------------- type ---- */
.sc-kick { font-family: var(--mono); font-size: 11.5px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-silk-lt); margin: 0 0 18px; }
.sc-kick--light { color: var(--violet-lt); }
.sc-h1 { font-family: var(--display); font-weight: 800; color: var(--sc-ink); font-size: clamp(46px, 7.8vw, 96px); line-height: .88; letter-spacing: -.05em; margin: 0; text-wrap: nowrap; }
.sc-ln { display: block; overflow: hidden; padding-bottom: .05em; margin-bottom: -.05em; }
.sc-ln > span { display: inline-block; }
.sc-accent > span { color: var(--sc-silk); }
.sc-h2 { font-family: var(--display); font-weight: 800; color: #fff; font-size: clamp(48px, 7.4vw, 132px); line-height: .9; letter-spacing: -.055em; margin: 0; text-wrap: balance; }
.sc-h2 .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.sc-h2 .w > span { display: inline-block; }

/* ========================================================== THE SCROLL */
.sc-hang { position: relative; padding: calc(var(--mast-h, 90px) + 8px) 0 clamp(90px, 12vh, 150px); perspective: 1800px; }
.sc-tilt { transform-style: preserve-3d; }
.sc-scroll { position: relative; width: var(--sc-w); margin: 0 auto; transform-origin: 50% 0; }
.sc-live .sc-scroll { animation: sc-sway 11s ease-in-out infinite alternate; }
@keyframes sc-sway { from { transform: rotate(-.35deg); } to { transform: rotate(.35deg); } }

/* the cord and the top rod */
/* the cord: a dark silk base, a twisted highlight dashed along it, a thin
   light edge; brass hook and rings; a knot under the loop */
.sc-cord { display: block; width: 100%; height: 72px; margin: 0; overflow: visible; }
.sc-strand { fill: none; stroke-linecap: round; }
.sc-strand--base { stroke: #241632; stroke-width: 5.5; }
.sc-strand--twist { stroke: #7d5fa6; stroke-width: 3.2; stroke-dasharray: 7 6; opacity: .75; }
.sc-strand--light { stroke: rgba(226,200,255,.55); stroke-width: 1; stroke-dasharray: 7 6; stroke-dashoffset: 3; }
.sc-loop { fill: none; stroke: #2a1a38; stroke-width: 4; }
.sc-knot { fill: #3a2650; stroke: #1a1024; stroke-width: 1; }
.sc-hook { fill: #b99a5c; stroke: #5a4420; stroke-width: 1.2; }
.sc-ring { position: absolute; top: -7px; width: 12px; height: 12px; border-radius: 50%; border: 2.5px solid #a98a4e; box-sizing: border-box;
  background: radial-gradient(circle at 40% 35%, rgba(255,240,200,.5), rgba(0,0,0,0) 60%); box-shadow: 0 2px 4px rgba(0,0,0,.6); }
.sc-ring--l { left: 12.4%; } .sc-ring--r { right: 12.4%; }
.sc-rod { position: relative; height: 16px; width: calc(100% + 64px); margin: 0 0 0 -32px; border-radius: 8px;
  background: linear-gradient(180deg, #6a4a35 0%, #3d281a 40%, #1e130b 75%, #3a2616 100%);
  box-shadow: 0 10px 24px -8px rgba(0,0,0,.9), 0 1px 0 rgba(255,255,255,.12) inset; }
.sc-knob { position: absolute; top: 50%; width: 30px; height: 30px; border-radius: 50%; transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #5a3b28 0%, var(--sc-lacquer) 60%, #000 100%);
  box-shadow: 0 6px 14px -4px rgba(0,0,0,.9), 0 0 0 1px rgba(255,255,255,.06) inset; }
.sc-knob--l { left: -14px; } .sc-knob--r { right: -14px; }

/* the paper: a violet silk mount around a cream sheet */
.sc-paper { position: relative; margin-top: -3px; clip-path: inset(0 0 var(--sc-hide, 0%) 0); }
.sc-mount { position: relative; padding: clamp(64px, 9vw, 110px) clamp(26px, 4vw, 44px) clamp(44px, 6vw, 70px);
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,.035) 0 1.5px, rgba(255,255,255,0) 1.5px 12px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.035) 0 1.5px, rgba(255,255,255,0) 1.5px 12px),
    linear-gradient(90deg, var(--sc-silk-dp) 0%, var(--sc-silk) 18%, var(--sc-silk-lt) 50%, var(--sc-silk) 82%, var(--sc-silk-dp) 100%);
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.06) inset; }
.sc-mount::before, .sc-mount::after { content: ''; position: absolute; left: clamp(26px, 4vw, 44px); right: clamp(26px, 4vw, 44px); height: 1px; background: rgba(226,183,255,.35); }
.sc-mount::before { top: calc(clamp(64px, 9vw, 110px) * .5); }
.sc-mount::after { bottom: calc(clamp(44px, 6vw, 70px) * .5); }
/* the title strip on the mount */
.sc-strip { position: absolute; z-index: 2; top: 0; right: clamp(40px, 6vw, 72px); margin: 0; padding: 16px 7px 20px; writing-mode: vertical-rl; text-orientation: mixed;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .22em; text-transform: uppercase; color: var(--sc-ink);
  background: linear-gradient(180deg, #fbf8ef, #ece6d6); box-shadow: 0 8px 18px -8px rgba(0,0,0,.6); }
.sc-strip::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 10px; background: linear-gradient(180deg, rgba(0,0,0,0), rgba(0,0,0,.12)); }

.sc-sheet { position: relative; padding: clamp(30px, 5vw, 66px) clamp(22px, 4.6vw, 60px) clamp(34px, 5vw, 60px); color: var(--sc-ink);
  background: linear-gradient(180deg, #f8f4ea 0%, var(--sc-paper) 30%, var(--sc-paper) 70%, var(--sc-paper-dp) 100%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset, 0 2px 0 rgba(255,255,255,.6) inset; }
.sc-sheet::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .13; background: url("../img/grain-256.png") repeat; background-size: 160px 160px; }
.sc-sheet > * { position: relative; }

.sc-head { padding: 0 0 clamp(28px, 4vw, 44px); border-bottom: 1px solid rgba(22,20,28,.14); }
.sc-body { padding-top: clamp(26px, 4vw, 40px); }
.sc-p { position: relative; margin: 0 0 clamp(26px, 4vw, 40px); padding-left: 52px; max-width: 58ch; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.55; color: #26222e; }
.sc-n { position: absolute; left: 0; top: .55em; font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; color: var(--sc-silk-lt); }
.sc-n::after { content: ''; position: absolute; left: 0; top: 1.9em; width: 24px; height: 1px; background: var(--sc-silk-lt); opacity: .6; }

/* the prints: a photograph on a mat, pinned a little askew */
.sc-print { position: relative; margin: 0 0 clamp(30px, 4.6vw, 48px); }
.sc-print--a { width: min(72%, 440px); margin-left: auto; transform: rotate(1.4deg); }
.sc-print--b { width: min(64%, 380px); margin-left: 52px; transform: rotate(-1.8deg); }
.sc-print-in { padding: 10px 10px 0; background: linear-gradient(165deg, #fffdf7, #f1ece0); box-shadow: 0 30px 60px -24px rgba(0,0,0,.6), 0 0 0 1px rgba(0,0,0,.06); }
.sc-print-in img { display: block; width: 100%; height: auto; }
.sc-print figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 14px; padding: 12px 10px 12px; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--sc-ink-2); }
.sc-print figcaption span:first-child { color: var(--sc-ink); }
.sc-print figcaption span:last-child { margin-left: auto; text-align: right; }
.sc-print--b figcaption { flex-direction: row; }

.sc-facts { margin: clamp(10px, 2vw, 20px) 0 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; border-top: 1px solid rgba(22,20,28,.14); padding-top: 18px; }
.sc-facts dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--sc-silk-lt); margin: 0 0 8px; }
.sc-facts dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(17px, 1.45vw, 22px); line-height: 1.12; letter-spacing: -.03em; color: var(--sc-ink); }

/* the signature line and the seal */
.sc-sign { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: clamp(30px, 5vw, 56px); }
.sc-sign-line { margin: 0; font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--sc-ink-2); }
.sc-seal { position: relative; display: grid; place-items: center; width: clamp(74px, 8vw, 96px); aspect-ratio: 1; color: #fff; background: var(--sc-seal); border-radius: 3px; transform: rotate(5deg);
  box-shadow: 0 0 0 2px var(--sc-seal), 0 0 0 4px rgba(184,48,44,0), 0 12px 24px -12px rgba(120,20,20,.5); }
.sc-seal::before { content: ''; position: absolute; inset: 5px; border: 1.5px solid rgba(255,255,255,.75); border-radius: 1px; }
.sc-seal svg { position: relative; width: 70%; height: auto; }
.sc-seal-ink { position: absolute; inset: 0; opacity: .12; background: url("../img/grain-256.png") repeat; background-size: 90px 90px; }

/* the lower roller */
.sc-roller-wrap { position: sticky; bottom: 0; z-index: 5; margin-top: -26px; pointer-events: none; }
.sc-curl { position: absolute; left: 0; right: 0; bottom: 18px; height: 90px; background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(20,10,5,.18) 55%, rgba(20,10,5,.5) 100%); }
.sc-roller { position: relative; height: 40px; width: calc(100% + 76px); margin-left: -38px; border-radius: 20px; overflow: hidden;
  background: linear-gradient(180deg, #7a5740 0%, #4a311f 30%, #22150c 68%, #3b2616 100%);
  box-shadow: 0 -2px 0 rgba(255,255,255,.08) inset, 0 18px 40px -14px rgba(0,0,0,.95), 0 2px 6px rgba(0,0,0,.6); }
.sc-wood { position: absolute; top: 0; bottom: 0; left: -80px; right: -80px; opacity: .55;
  background: repeating-linear-gradient(90deg, rgba(255,230,200,.06) 0 3px, rgba(0,0,0,0) 3px 11px, rgba(0,0,0,.14) 11px 13px, rgba(0,0,0,0) 13px 29px); }
.sc-roller .sc-knob { width: 50px; height: 50px; }
.sc-roller .sc-knob--l { left: -8px; } .sc-roller .sc-knob--r { right: -8px; }
.sc-roller-wrap .sc-roller { overflow: visible; }
.sc-roller-wrap .sc-roller::before { content: ''; position: absolute; inset: 0; border-radius: 20px; overflow: hidden; }

.sc-hint { display: none; }
.sc-live .sc-hint { display: block; position: fixed; left: 50%; bottom: 14px; z-index: 6; margin: 0; transform: translateX(-50%); white-space: nowrap; opacity: 0;
  font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: rgba(242,237,248,.7); }
.sc-live .sc-hint i { display: inline-block; width: 1px; height: 18px; margin-right: 12px; vertical-align: middle; background: rgba(242,237,248,.5); }

/* ------------------------------------------------------ the next show ---- */
.sc-next { position: relative; padding: clamp(60px, 9vh, 120px) 0 clamp(100px, 15vh, 180px); }
.sc-next-grid { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: center; gap: clamp(28px, 5vw, 96px); }
.sc-addr { margin: clamp(26px, 3.4vw, 44px) 0 0; max-width: 460px; display: grid; }
.sc-addr > div { display: grid; gap: 4px; padding: 12px 0 11px; border-top: 1px solid rgba(242,237,248,.14); }
.sc-addr > div:last-child { border-bottom: 1px solid rgba(242,237,248,.14); }
.sc-addr dt { font-family: var(--mono); font-weight: 500; font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--violet-lt); }
.sc-addr dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: clamp(18px, 1.6vw, 24px); line-height: 1.12; letter-spacing: -.03em; color: #fff; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: clamp(26px, 3.4vw, 40px); }
.sc-btn-ghost { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.35); }
.sc-btn-ghost:hover, .sc-btn-ghost:focus-visible { border-color: #fff; color: #fff; }
.sc-tilt-room { perspective: 1400px; }
.sc-poster { position: relative; margin: 0; border-radius: 8px; overflow: hidden; clip-path: inset(0 round 8px); transform-style: preserve-3d;
  box-shadow: 0 60px 120px -40px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.1) inset; }
.sc-poster img { display: block; width: 100%; height: auto; }
.sc-poster-sheen { position: absolute; inset: 0; pointer-events: none; opacity: .9;
  background: linear-gradient(115deg, rgba(255,255,255,0) 35%, rgba(255,255,255,.22) 48%, rgba(255,255,255,0) 58%); }

/* ------------------------------------------------------------ phone ---- */
@media (max-width: 900px) {
  .sc { --sc-w: calc(100vw - 2 * var(--gut, 20px) - 24px); }
  .sc-hang { padding-top: calc(var(--mast-h, 74px) + 4px); }
  .sc-live .sc-scroll { animation: none; }
  .sc-rod { width: calc(100% + 40px); margin-left: -20px; }
  .sc-cord { height: 54px; }
  .sc-knob { width: 24px; height: 24px; } .sc-knob--l { left: -10px; } .sc-knob--r { right: -10px; }
  .sc-roller { width: calc(100% + 48px); margin-left: -24px; height: 32px; }
  .sc-roller .sc-knob { width: 40px; height: 40px; } .sc-roller .sc-knob--l { left: -6px; } .sc-roller .sc-knob--r { right: -6px; }
  .sc-strip { right: 18px; font-size: 9px; padding: 12px 6px 16px; }
  .sc-h1 { font-size: clamp(38px, 11vw, 54px); text-wrap: wrap; }
  .sc-ln > span { white-space: normal; }
  .sc-p { padding-left: 40px; font-size: 16px; }
  .sc-print--a { width: 86%; margin-left: auto; }
  .sc-print--b { width: 78%; margin-left: 20px; }
  .sc-facts { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .sc-sign { flex-direction: column; align-items: flex-start; gap: 18px; }
  .sc-next-grid { grid-template-columns: minmax(0, 1fr); }
  .sc-tilt-room { order: -1; }
}
