/* Panelz landing. Loads after scrollcraft.css and site.css. */

:root {
  --sc-canvas: #f3f5f4;
  --sc-surface: #ffffff;
  --sc-ink: #16141c;
  --sc-ink-soft: #3d3a46;
  --sc-accent: #d4126f;
  --sc-accent-ink: #ffffff;
  --sc-font-display: "Bowlby One", "Arial Black", sans-serif;
  --sc-font-text: "Schibsted Grotesk", system-ui, sans-serif;
}
body.landing { background: var(--board); color: var(--ink); font: 400 17px/1.6 var(--f-body); letter-spacing: 0; }
.landing ::selection { background: var(--yellow); color: var(--ink); }
.landing :focus-visible { outline: 3px solid var(--blueline-ink); outline-offset: 3px; border-radius: 3px; }
/* on the night-sky cover the blue ring disappears; use the cover's yellow */
.mast--cover :focus-visible { outline-color: var(--yellow); outline-offset: 4px; }

/* =====================================================================
   ART ROLES. Every shape in the comic symbols carries a role class; the
   stage classes below set what each role looks like.
   ===================================================================== */
@property --let { syntax: "<number>"; inherits: true; initial-value: 1; }

.art-defs { position: absolute; width: 0; height: 0; overflow: hidden; }

.stage-letter, .stage-color, .pu {
  --sky: #1d2c55; --fogsky: #8b9cc0; --fog: #e3ebf5; --sea: #163d66; --sea2: #2c6d99;
  --moon: #ffe98a; --light: #ffd51e; --glow: #ffd51e; --tower: #f3f5f4; --accent: #d4126f;
  --ink: #16141c; --eye: #ffd51e; --star: #fff6c8; --dawn1: #ffd51e; --dawn2: #f39ac3; --sun: #fff3b0;
  --wave: #8fcbea; --speed: rgba(255, 255, 255, .75); --beam-o: .5; --cap: #ffd51e;
  --line: #16141c; --lw: 3; --fo: 1; --ht: 1; --guide: 0; --let: 1;
}
.stage-color { --let: 0; }
.stage-ink {
  --sky: #16141c; --fogsky: #fff; --fog: #fff; --sea: #16141c; --sea2: #fff;
  --moon: #fff; --light: #fff; --glow: transparent; --tower: #fff; --accent: #16141c;
  --ink: #16141c; --eye: #fff; --star: #fff; --dawn1: #fff; --dawn2: #fff; --sun: #fff;
  --wave: #fff; --speed: #fff; --beam-o: 1; --cap: #fff; --sil-line: #fff;
  --line: #16141c; --lw: 3; --fo: 1; --ht: 0; --guide: 0; --let: 0;
}
.stage-pencil {
  --sky: #fff; --fogsky: #fff; --fog: #fff; --sea: #fff; --sea2: #fff; --moon: #fff; --light: #fff;
  --glow: transparent; --tower: #fff; --accent: #fff; --ink: #fff; --eye: #fff; --star: #fff;
  --dawn1: #fff; --dawn2: #fff; --sun: #fff; --cap: #fff;
  --wave: #5aa6d6; --speed: #8fcbea; --beam-o: 0;
  --line: #4b9bcf; --lw: 1.7; --fo: 1; --ht: 0; --guide: 1; --let: 0;
}

.f-sky { fill: var(--sky); } .f-fogsky { fill: var(--fogsky); } .f-sea { fill: var(--sea); } .f-sea2 { fill: var(--sea2); }
.f-moon { fill: var(--moon); } .f-light { fill: var(--light); } .f-tower { fill: var(--tower); }
.f-accent { fill: var(--accent); } .f-ink { fill: var(--ink); } .f-eye { fill: var(--eye); } .f-star { fill: var(--star); }
.f-dawn1 { fill: var(--dawn1); } .f-dawn2 { fill: var(--dawn2); } .f-sun { fill: var(--sun); }
.f-fog { fill: var(--fog); fill-opacity: .8; } .f-fog--front { fill-opacity: .62; }
.f-glow { fill: var(--glow); fill-opacity: .26; }
.f-beam { fill: var(--light); fill-opacity: var(--beam-o); }
.f-beam--hot { fill-opacity: calc(var(--beam-o) * 1.2); }
.o { stroke: var(--line); stroke-width: var(--lw); stroke-linejoin: round; stroke-linecap: round; }
.f-ink.o { stroke: var(--sil-line, var(--line)); }
.wv { fill: none; stroke: var(--wave); stroke-width: 3; stroke-linecap: round; }
.wake { fill: none; stroke: var(--wave); stroke-width: 3; stroke-linecap: round; }
.sp { stroke: var(--speed); stroke-width: 3; stroke-linecap: round; }
.ht { opacity: var(--ht); }
.g { fill: none; stroke: #8fcbea; stroke-width: 1.3; stroke-dasharray: 7 6; opacity: var(--guide); }
.bd { fill: none; stroke: var(--line); stroke-width: calc(var(--lw) * 1.7); }
.let { opacity: var(--let); }
.bal { fill: #fff; stroke: #16141c; stroke-width: 3; stroke-linejoin: round; }
.cap { fill: var(--cap); stroke: #16141c; stroke-width: 3; }
.lt { font-family: var(--f-letter); font-weight: 700; fill: #16141c; letter-spacing: .01em; }
.sfx { font-family: var(--f-mast); fill: #ffd51e; stroke: #16141c; stroke-width: 6; paint-order: stroke; stroke-linejoin: round; }

/* =====================================================================
   1 · COVER
   ===================================================================== */
.mast--cover {
  position: absolute; top: 0; left: 0; right: 0; z-index: 30;
  padding: calc(var(--cover-inset) + 14px) calc(var(--cover-inset) + 16px) 0;
}
:root { --cover-inset: clamp(8px, 1.1vw, 16px); }
.cornerbox {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--board); color: var(--ink); text-decoration: none;
  border: 3px solid var(--ink); border-radius: 6px;
  padding: 6px 12px 6px 6px;
  box-shadow: 4px 4px 0 var(--ink);
}
.cornerbox svg { width: 34px; height: 34px; }
.cornerbox__txt { display: flex; flex-direction: column; line-height: 1.05; }
.cornerbox__txt b { font: 400 17px/1 var(--f-mast); letter-spacing: .02em; }
.cornerbox__txt span { font: 700 11px/1.2 var(--f-script); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); margin-top: 3px; }
.mast--cover .mast__nav a { color: var(--board); }
.mast--cover .mast__nav a.mast__cta {
  color: #fff; background: var(--magenta);
  border: 2.5px solid var(--ink); border-radius: 8px;
  padding: 11px 14px; box-shadow: 3px 3px 0 var(--ink);
  text-decoration: none;
}
.mast--cover .mast__nav a.mast__cta:hover { background: var(--magenta-deep); }

.cover-stage { background: var(--board); }
.act-cover:not(.sc-act--pinned) .cover-stage { height: 100vh; height: 100svh; position: relative; }
.cover {
  position: absolute; inset: var(--cover-inset);
  border: 3px solid var(--ink); border-radius: 6px;
  overflow: hidden; isolation: isolate;
  background: #1a2850;
}
.cover__sky {
  position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(180deg, #121c3b 0%, #1f3263 55%, #2c4a84 100%);
}
.cover__sky::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 2px 2px, rgba(8, 12, 32, .55) 1.7px, transparent 2.1px) 0 0 / 10px 10px;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
          mask-image: linear-gradient(180deg, #000 0%, transparent 70%);
}
.cover__moon {
  position: absolute; z-index: 1;
  width: clamp(90px, 13vmin, 170px); aspect-ratio: 1;
  right: 4%; top: 17%;
  border-radius: 50%;
  background:
    radial-gradient(circle at 2px 2px, rgba(196, 150, 20, .55) 1.5px, transparent 1.9px) 0 0 / 8px 8px,
    #ffe98a;
  border: 3px solid var(--ink);
  -webkit-mask-image: none;
}
.cover__title { margin: 0; font-weight: 400; }
.cover__blurb-h { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.masthead {
  position: absolute; z-index: 2;
  left: 3.2%; top: clamp(78px, 11vh, 120px);
  font: 400 min(17.6vw, 34vh)/.84 var(--f-mast);
  letter-spacing: -.01em;
  color: var(--yellow);
  -webkit-text-stroke: .05em var(--ink);
  paint-order: stroke fill;
  text-shadow: .045em .055em 0 var(--magenta), .075em .09em 0 var(--ink);
  transform-origin: left bottom;
  white-space: nowrap;
  user-select: none;
}
.cover__tower {
  position: absolute; z-index: 3;
  right: 13%; bottom: -1%;
  height: 96%; width: auto; aspect-ratio: 400 / 1000;
  transform-origin: 50% 100%;
}
.cover__beam { z-index: 1; }
.beam { transform-box: view-box; transform-origin: 200px 252px; transform: rotate(3deg); }
.cover__sea {
  position: absolute; z-index: 4; left: 0; right: 0; bottom: -2%;
  width: 100%; height: 22%;
}
.cover__blurb {
  position: absolute; z-index: 6;
  left: 3.2%; bottom: clamp(18px, 5vh, 56px);
  width: min(560px, 46%);
  background: var(--board);
  border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 7px 7px 0 var(--ink);
  padding: clamp(16px, 2vw, 26px) clamp(18px, 2.2vw, 30px);
}
.cover__idea {
  margin: 0 0 10px;
  font: 400 14px/1.45 var(--f-script); color: var(--blueline-ink);
}
.cover__idea span { font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.cover__head {
  margin: 0;
  font: 400 clamp(26px, 2.9vw, 44px)/1.02 var(--f-mast);
  letter-spacing: -.005em;
}
.cover__sub { margin: 12px 0 0; font-size: clamp(15px, 1.2vw, 18px); line-height: 1.5; color: var(--ink-2); }

/* load entrance: the masthead stamps in, the sea rises */
.js .cover [data-plane="mast"] { animation: stamp .7s var(--ease-out) both .1s; }
.js .cover [data-plane="sea"] { animation: rise .9s var(--ease-out) both; }
.js .cover__blurb { animation: rise .8s var(--ease-out) both .25s; }
@keyframes stamp { from { opacity: 0; scale: 1.08; } to { opacity: 1; scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 40px; } to { opacity: 1; translate: 0 0; } }

/* =====================================================================
   shared section type
   ===================================================================== */
.h-lg {
  font: 400 clamp(38px, 5.2vw, 72px)/.98 var(--f-mast);
  letter-spacing: -.01em; margin: 0;
}
.lede { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.55; color: var(--ink-2); margin: 20px 0 0; max-width: 46ch; }
.body { color: var(--ink-2); margin: 14px 0 0; max-width: 52ch; }

/* what is Panelz: a plain definition after the cover */
.act-about { padding: clamp(88px, 12vw, 168px) var(--edge) 0; }
.about-box { max-width: 1240px; margin: 0 auto; }
.about-box .lede { max-width: 54ch; }

/* =====================================================================
   2 · SCRIPT
   ===================================================================== */
.act-script { padding: clamp(88px, 12vw, 168px) var(--edge) clamp(56px, 7vw, 96px); }
.script-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 6vw, 96px); align-items: center;
}
.script-sheet {
  margin: 0; position: relative;
  background: #fff;
  border: 1.5px solid #c9d1ce;
  box-shadow: 10px 12px 0 -1px var(--board), 10px 12px 0 0 #c9d1ce, 20px 24px 0 -1px var(--board), 20px 24px 0 0 #dde3e1;
  rotate: .8deg;
  padding: 0;
  font: 400 15.5px/1.55 var(--f-script);
}
.script-sheet__top {
  display: flex; justify-content: space-between;
  padding: 12px 22px; border-bottom: 1.5px solid #c9d1ce;
  font-weight: 700; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.script-sheet__body {
  padding: clamp(20px, 3vw, 34px) clamp(22px, 3.4vw, 44px) clamp(24px, 3vw, 36px) clamp(44px, 5vw, 64px);
  background: linear-gradient(90deg, transparent calc(clamp(44px, 5vw, 64px) - 16px), #f2b8d2 calc(clamp(44px, 5vw, 64px) - 16px), #f2b8d2 calc(clamp(44px, 5vw, 64px) - 14.5px), transparent calc(clamp(44px, 5vw, 64px) - 14.5px));
}
.script-sheet p { margin: 0; color: var(--ink); }
.sl-page { font-weight: 700; text-transform: uppercase; text-decoration: underline; text-underline-offset: 4px; margin-bottom: 14px !important; }
.sl-panel { font-weight: 700; text-transform: uppercase; margin-top: 14px !important; }
.sl-desc { color: var(--ink-2) !important; }
.sl-line { padding-left: 2.2em; }
.sl-line b { text-transform: uppercase; }

/* =====================================================================
   3 · FOUR JOBS
   ===================================================================== */
.act-jobs { padding: clamp(56px, 7vw, 96px) var(--edge) clamp(88px, 11vw, 150px); }
.jobs-grid {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(32px, 5vw, 80px); align-items: center;
}
.jobs-list { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 4px; max-width: 460px; }
.jobs-list button {
  width: 100%; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: 92px 1fr; gap: 12px; align-items: baseline;
  background: none; border: 0; border-left: 4px solid transparent;
  padding: 10px 12px; border-radius: 0 6px 6px 0;
  color: var(--ink-3);
  transition: background-color .2s, color .2s, border-color .2s;
}
.jobs-list b { font: 700 13px/1.2 var(--f-script); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.jobs-list span { font-size: 16px; line-height: 1.4; }
.jobs-list button:hover { background: var(--board-2); color: var(--ink-2); }
.jobs-list button[aria-pressed="true"] { border-left-color: var(--magenta); color: var(--ink); background: #fff; }
.jobs-list button[aria-pressed="true"] b { color: var(--magenta-deep); }

.jobs-stage { min-width: 0; }
.jobs-panel {
  position: relative; aspect-ratio: 600 / 540; width: 100%;
  touch-action: pan-y; cursor: ew-resize;
  box-shadow: 8px 8px 0 var(--ink);
  background: #fff;
  user-select: none; -webkit-user-select: none;
}
.jobs-panel .stage { position: absolute; inset: 0; width: 100%; height: 100%; }
.jobs-panel [data-wipe] { clip-path: inset(0 100% 0 0); }
.jobs-edge {
  position: absolute; top: -10px; bottom: -10px; left: 0; width: 0; z-index: 3;
  border-left: 3px solid var(--magenta);
  opacity: 0; transition: opacity .2s;
  pointer-events: none;
}
.jobs-edge::after {
  content: ""; position: absolute; top: 50%; left: -16px; width: 26px; height: 26px; translate: 0 -50%;
  background: var(--magenta); border: 3px solid var(--ink); border-radius: 50%;
}
.jobs-edge.is-on { opacity: 1; }
.jobs-control { margin-top: 26px; }
.jobs-control input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 0; cursor: pointer;
}
.jobs-control input[type="range"]::-webkit-slider-runnable-track { height: 8px; background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; }
.jobs-control input[type="range"]::-moz-range-track { height: 8px; background: #fff; border: 2.5px solid var(--ink); border-radius: 99px; }
.jobs-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 30px; height: 30px; margin-top: -13px;
  background: var(--magenta); border: 3px solid var(--ink); border-radius: 50%; box-shadow: 2px 2px 0 var(--ink);
}
.jobs-control input[type="range"]::-moz-range-thumb { width: 26px; height: 26px; background: var(--magenta); border: 3px solid var(--ink); border-radius: 50%; }
.jobs-control input[type="range"]:focus-visible { outline: 3px solid var(--blueline-ink); outline-offset: 4px; }
.jobs-ticks {
  display: flex; justify-content: space-between; margin-top: 6px;
  font: 700 12px/1 var(--f-script); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
}

/* =====================================================================
   4 · READ-THROUGH (peak)
   ===================================================================== */
.read-stage { background: var(--board); }
.read-cam { position: absolute; inset: 0; overflow: hidden; }
.read-page {
  position: absolute; left: 0; top: 0;
  transform-origin: 0 0;
  will-change: transform;
  box-shadow: calc(var(--frame, 3px) * 3.3) calc(var(--frame, 3px) * 3.3) 0 var(--ink);
  outline: var(--frame, 3px) solid var(--ink);
  background: #fff;
}
.page-svg { width: 100%; height: 100%; }
.pu { transition: opacity .45s var(--ease-out), --let .35s var(--ease-out); }

.read-script {
  position: absolute; z-index: 4;
  left: var(--edge); bottom: clamp(16px, 4vh, 36px);
  max-width: min(460px, calc(100% - 2 * var(--edge)));
  margin: 0;
  background: #fff; border: 2.5px solid var(--ink); border-radius: 6px;
  box-shadow: 5px 5px 0 var(--ink);
  padding: 12px 16px;
  font: 400 15px/1.5 var(--f-script); color: var(--ink);
  opacity: 0;
}
.read-script b { text-transform: uppercase; }
.read-end {
  position: absolute; z-index: 4;
  right: var(--edge); top: 50%;
  width: min(460px, 36vw);
  translate: 0 -50%;
  opacity: 0;
}
.read-end .lede { max-width: none; }
.read-stage.is-static { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.read-stage.is-static .read-end { opacity: 1; }

/* =====================================================================
   5 · NEXT ISSUE
   ===================================================================== */
.act-next { padding: clamp(96px, 12vw, 168px) var(--edge) 0; }
.next-box {
  position: relative; max-width: 900px; margin: 0 auto;
  background: #fff; border: 3px solid var(--ink); border-radius: 6px;
  box-shadow: 10px 10px 0 var(--ink);
  padding: clamp(44px, 5vw, 64px) clamp(24px, 5vw, 64px) clamp(30px, 4vw, 48px);
}
.next-box__tag {
  position: absolute; left: clamp(16px, 3vw, 36px); top: -22px; margin: 0;
  background: var(--yellow); border: 3px solid var(--ink);
  padding: 7px 14px 6px;
  font: 400 18px/1 var(--f-mast); letter-spacing: .02em; text-transform: uppercase;
  rotate: -2.5deg;
}
.next-box__title { margin: 0; font: 400 clamp(32px, 4.4vw, 58px)/1 var(--f-mast); letter-spacing: -.01em; }
.next-box__text { margin: 16px 0 0; font-size: clamp(18px, 1.5vw, 20px); color: var(--ink-2); max-width: 52ch; }
.next-box__actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 16px 20px; align-items: center; }
.soon-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px 8px 12px; min-height: 52px;
  border: 2px dashed var(--ink-3); border-radius: 10px;
  color: var(--ink-2);
}
.soon-badge svg { width: 26px; height: 26px; }
.soon-badge span { display: flex; flex-direction: column; font: 700 19px/1.05 var(--f-body); }
.soon-badge small { font: 500 11.5px/1.2 var(--f-body); letter-spacing: .02em; }

/* =====================================================================
   responsive
   ===================================================================== */
@media (max-width: 1100px) {
  .cover__blurb { width: min(520px, 54%); }
}
@media (max-width: 860px) {
  .mast--cover .mast__nav a:not(.mast__cta) { display: none; }
  .mast--cover .mast__nav a.mast__cta { padding: 11px 12px; font-size: 11.5px; letter-spacing: .04em; white-space: nowrap; }
  .masthead { font-size: 21.5vw; top: 96px; left: 4%; }
  .cover__tower { right: -4%; height: 70%; bottom: 13%; }
  .cover__moon { right: 6%; top: 30%; width: 70px; }
  .cover__sea { height: 26%; }
  .cover__blurb { left: 12px; right: 12px; bottom: 12px; width: auto; box-shadow: 5px 5px 0 var(--ink); }
  .cover__idea { font-size: 13px; }
  .script-grid, .jobs-grid { grid-template-columns: 1fr; }
  .script-sheet { rotate: 0deg; margin-right: 14px; }
  .read-end { left: var(--edge); right: var(--edge); width: auto; top: auto; bottom: clamp(18px, 4vh, 40px); translate: 0 0; }
  .read-end .h-lg { font-size: clamp(30px, 8.4vw, 40px); }
  .read-end .lede { font-size: 16px; margin-top: 10px; }
  .read-end .body { display: none; }
}
@media (max-width: 520px) {
  .cornerbox__txt span { display: none; }
  .cornerbox { padding: 4px 10px 4px 4px; }
  .cornerbox svg { width: 30px; height: 30px; }
  .masthead { top: 84px; }
  .cover__head { font-size: 25px; }
  .cover__sub { font-size: 15px; margin-top: 8px; }
  .jobs-list button { grid-template-columns: 80px 1fr; padding: 9px 10px; }
  .jobs-list span { font-size: 15px; }
  .script-sheet { font-size: 14px; }
  .next-box__actions .btn { width: 100%; }
}
@media (max-height: 640px) and (min-width: 861px) {
  .cover__sub { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .js .cover [data-plane], .js .cover__blurb { animation: none; }
  .pu { transition: none; }
}
