/* ==========================================================
   NEW EARTH Goods — BIO PRIME
   Conceito: a página é a peça. A abertura é o tecido, o CTA é
   a etiqueta tecida, cada cena é um painel costurado por cima.
   ========================================================== */

:root {
  /* Paleta do brandbook */
  --hope: #20322F;        /* fundo das cenas */
  --night: #121312;       /* preto do papel da página de paleta do brandbook */
  --night-deep: #0C0D0C;  /* laterais no desktop */
  --purity: #FEF3DC;      /* texto sobre Hope, fundo da cena final */
  --sacrifice: #560000;   /* só ação */
  --pastures: #A6B999;    /* apoio sobre Hope */
  --pastures-ink: #C4D3B9; /* texto de apoio sobre Hope com traço de pincel atrás */
  --mystery: #94625F;     /* cena da costura */
  --earth: #231D15;       /* terra da colina da abertura, sob o texto */

  --f-display: "Young Serif", Georgia, "Times New Roman", serif;
  --f-ui: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: 20px;
  --col: 560px;
  --radius: 3px;

  /* Motion */
  --motion-instant: 80ms;
  --motion-fast: 140ms;
  --motion-standard: 220ms;
  --motion-emphasis: 320ms;
  --motion-scene: 450ms;
  --ease-enter: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-exit: cubic-bezier(0.7, 0, 0.84, 0);
  --ease-standard: cubic-bezier(0.65, 0, 0.35, 1);
  --ease-emphasis: cubic-bezier(0.22, 1, 0.36, 1);
  --shift-sm: 8px;
  --shift-md: 16px;
  --press-scale: 0.98;

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --focus: var(--pastures);
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --shift-sm: 0px;
    --shift-md: 0px;
    --press-scale: 1;
    --motion-scene: 200ms;
    --motion-emphasis: 180ms;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0 auto;
  max-width: var(--col);
  min-height: 100vh;
  background: var(--night);
  color: var(--purity);
  font-family: var(--f-ui);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

img { display: block; max-width: 100%; height: auto; }
h1, h2, h3, p, ul, ol, figure, blockquote { margin: 0; }
ul[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 50;
  padding: 12px 16px;
  background: var(--purity);
  color: var(--hope);
  font-weight: 600;
  border-radius: var(--radius);
}
.skip:focus { top: calc(12px + var(--safe-top)); }

/* ==========================================================
   CENA 1 · Abertura (fica parada; o painel sobe por cima)
   ========================================================== */
.hero {
  position: sticky;
  top: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  height: 94vh;
  height: 94svh;
  background: var(--earth);
  overflow: hidden;
}

.hero-media {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}
/* cinemagraph: entra por cima da foto só depois do primeiro quadro */
.hero-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity var(--motion-scene) var(--ease-standard);
}
.hero-canvas.is-live { opacity: 1; }

/* Vidro fumê sobre a cena animada (da skill cinematic-video-hero,
   tingido com a terra da foto). Só em controles que flutuam na cena. */
.glass {
  position: absolute;
  z-index: 1;
  background: rgb(35 29 21 / 0.42);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 1px rgb(254 243 220 / 0.14);
  color: var(--purity);
  overflow: hidden;
}
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.4px;
  background: linear-gradient(180deg,
    rgb(254 243 220 / 0.4) 0%, rgb(254 243 220 / 0.12) 22%,
    rgb(254 243 220 / 0) 45%, rgb(254 243 220 / 0) 60%,
    rgb(254 243 220 / 0.12) 80%, rgb(254 243 220 / 0.32) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.hero-motion {
  top: calc(22px + var(--safe-top));
  right: var(--gutter);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.hero-motion[hidden] { display: none; }
.hero-motion:active { transform: scale(0.94); }

.hero-chip {
  top: calc(22px + var(--safe-top));
  right: calc(var(--gutter) + 58px);
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform var(--motion-fast) var(--ease-standard);
}
.hero-chip:active { transform: scale(var(--press-scale)); }
/* sem animação (sem JS, reduced motion) o botão de pausa não existe */
.hero-chip:has(+ .hero-motion[hidden]) { right: var(--gutter); }
/* o tecido da foto continua no fundo do texto */
.hero-media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 46%;
  background: linear-gradient(to bottom, rgb(35 29 21 / 0), rgb(35 29 21 / 0.55) 55%, var(--earth));
  pointer-events: none;
}

.hero-seal {
  position: absolute;
  z-index: 1;
  top: calc(16px + var(--safe-top));
  left: var(--gutter);
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgb(254 243 220 / 0.85);
}

.hero-copy {
  position: relative;
  z-index: 1;
  padding: 4px var(--gutter) 44px;
  margin-top: -72px;
}
.hero-title {
  text-shadow: 0 1px 16px rgb(35 29 21 / 0.55);
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(36px, 11vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.01em;
}
.hero-goods { display: block; }
.hero-line {
  margin-top: 14px;
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.3;
}
.hero-sub {
  margin-top: 6px;
  font-size: 16px;
  line-height: 1.45;
  color: rgb(254 243 220 / 0.82);
  max-width: 34ch;
}
/* telas baixas: menos texto sobre a cena, para o cubo respirar */
@media (max-height: 640px) {
  .hero-copy { margin-top: -28px; padding-bottom: 36px; }
}

/* entrada curta: nome → frase → apoio; a foto já nasce visível */
@keyframes rise-in {
  from { opacity: 0; transform: translateY(var(--shift-sm)); }
}
.hero-title,
.hero-line,
.hero-sub {
  animation: rise-in var(--motion-scene) var(--ease-enter) both;
}
.hero-line { animation-delay: 60ms; }
.hero-sub { animation-delay: 110ms; }

/* a luz cai enquanto o painel cobre a abertura */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: #0E1715;
  opacity: 0;
  pointer-events: none;
}
@keyframes hero-dim { to { opacity: 0.6; } }
@supports (animation-timeline: scroll()) {
  @media (prefers-reduced-motion: no-preference) {
    .hero::after {
      animation: hero-dim linear both;
      animation-timeline: scroll(root);
      animation-range: 0 90vh;
    }
  }
}

/* sem espaço para foto + texto, a abertura volta ao fluxo normal */
.hero--flow {
  position: relative;
  height: auto;
}
.hero--flow .hero-media { aspect-ratio: 1000 / 1247; flex: none; }
.hero--flow::after { display: none; }

@media (prefers-reduced-motion: reduce) {
  .hero { position: relative; }
}

/* ==========================================================
   Painel costurado por cima (todas as cenas seguintes)
   ========================================================== */
.panel {
  position: relative;
  z-index: 1;
  background: var(--night);
  box-shadow: 0 -18px 32px rgb(8 14 13 / 0.45);
}
/* pesponto da barra */
.panel::before {
  content: "";
  position: absolute;
  inset: 10px 14px auto;
  border-top: 1.5px dashed rgb(166 185 153 / 0.6);
  pointer-events: none;
}

.scene {
  position: relative;
  padding: 72px var(--gutter);
  scroll-margin-top: 12px;
}

.scene-head { margin-bottom: 36px; }
.scene-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(32px, 9.4vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.scene-lead {
  margin-top: 12px;
  color: var(--pastures-ink);
  font-size: 16px;
  max-width: 36ch;
}

/* ---------- Revelações ---------- */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(var(--shift-md));
  transition:
    opacity var(--motion-scene) var(--ease-enter),
    transform var(--motion-scene) var(--ease-enter);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* título por linha, em máscara */
[data-lines] .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.08em;
  margin-bottom: -0.08em;
}
[data-lines] .line > span { display: inline-block; }
.js [data-lines] .line > span {
  transform: translateY(105%);
  transition: transform var(--motion-scene) var(--ease-enter);
}
.js [data-lines] .line:nth-child(2) > span { transition-delay: 70ms; }
.js [data-lines] .line:nth-child(3) > span { transition-delay: 140ms; }
.js [data-lines] .line:nth-child(4) > span { transition-delay: 210ms; }
.js [data-lines].is-in .line > span { transform: none; }

@media (prefers-reduced-motion: reduce) {
  .js [data-lines] .line > span {
    transform: none;
    opacity: 0;
    transition: opacity var(--motion-scene) var(--ease-standard);
  }
  .js [data-lines].is-in .line > span { opacity: 1; }
}

/* ==========================================================
   CENA 2 · Manifesto
   ========================================================== */
.manifesto { padding-top: 84px; }
.manifesto-title {
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(30px, 8.6vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.manifesto-body {
  margin-top: 28px;
  display: grid;
  gap: 14px;
  max-width: 38ch;
  color: rgb(254 243 220 / 0.86);
}

/* ==========================================================
   CENA 3 · Coleção
   ========================================================== */
.colecao { padding-top: 24px; }
.pecas { display: grid; gap: 64px; }

.peca-frame {
  position: relative;
  aspect-ratio: 720 / 570;
  background: #141414;
  overflow: hidden;
}
/* recorte editorial: a foto sangra alternando o lado */
.peca:nth-child(odd) .peca-frame {
  margin: 0 28px 0 calc(var(--gutter) * -1);
  border-radius: 0 var(--radius) var(--radius) 0;
}
.peca:nth-child(even) .peca-frame {
  margin: 0 calc(var(--gutter) * -1) 0 28px;
  border-radius: var(--radius) 0 0 var(--radius);
}

.peca-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity var(--motion-standard) var(--ease-standard);
}
.peca-frame[data-side="frente"] .peca-img[data-face="costas"],
.peca-frame[data-side="costas"] .peca-img[data-face="frente"] {
  opacity: 0;
}

.peca-info {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 12px;
  margin-top: 18px;
}
.peca:nth-child(even) .peca-info { padding-left: 28px; }
.peca-nome {
  flex: 1 0 100%;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: 26px;
  line-height: 1.1;
}
.peca-meta {
  flex: 1 0 100%;
  margin-top: -6px;
  color: var(--pastures-ink);
  font-size: 15px;
}

.peca-lado {
  display: inline-flex;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgb(166 185 153 / 0.45);
  border-radius: var(--radius);
}
.lado-btn {
  min-height: 48px;
  min-width: 78px;
  padding: 0 12px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--pastures-ink);
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color var(--motion-fast) var(--ease-standard),
    color var(--motion-fast) var(--ease-standard);
}
.lado-btn[aria-pressed="true"] {
  background: var(--pastures);
  color: var(--hope);
}
.lado-btn:active { transform: scale(var(--press-scale)); }

html:not(.js) .peca-lado { display: none; }

/* ==========================================================
   CENA 4 · Feito para lembrar
   ========================================================== */
.origem {
  background: var(--mystery);
  padding-top: 0;
  --focus: var(--purity);
}
.origem-media {
  margin: 0 calc(var(--gutter) * -1);
  aspect-ratio: 4 / 5;
  overflow: hidden;
}
.origem-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 55%;
}

@keyframes push-in { from { transform: scale(1.08); } to { transform: scale(1); } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .origem-media img {
      animation: push-in linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 55%;
    }
  }
}

.origem-copy { padding-top: 40px; }
.origem-copy > p { margin-top: 18px; max-width: 38ch; }
.verso {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 2px solid rgb(254 243 220 / 0.6);
}
.verso p {
  font-family: var(--f-display);
  font-size: 20px;
  line-height: 1.4;
}
.verso cite {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-size: 15px;
  font-weight: 500;
}

/* ==========================================================
   CENA 5 · Arquivo (assinatura)
   Fotos espalhadas que crescem ao entrar e encolhem ao sair,
   amarradas ao scroll nativo via CSS scroll-driven.
   ========================================================== */
.arq-grid { display: flow-root; }
.arq {
  display: block;
  width: 60%;
  margin: 26px 0 0;
  padding: 6px 6px 0;
  text-decoration: none;
  position: relative;
  background-color: var(--purity);
  border-radius: 2px;
  /* contato, meio e difusa: a cópia descola do papel preto */
  box-shadow:
    0 1px 2px rgb(0 0 0 / 0.5),
    0 10px 18px -8px rgb(0 0 0 / 0.65),
    0 28px 48px -18px rgb(0 0 0 / 0.75);
  -webkit-tap-highlight-color: transparent;
  transition:
    translate var(--motion-fast) var(--ease-standard),
    box-shadow var(--motion-fast) var(--ease-standard);
}
.arq:first-child { margin-top: 0; }
.arq--r { margin-left: auto; transform-origin: left bottom; rotate: 1.1deg; }
.arq--l { margin-right: auto; transform-origin: right bottom; rotate: -1.3deg; }
.arq--wide { width: 72%; }
.arq--tall { width: 56%; }
.arq--full { width: 100%; margin-top: 36px; transform-origin: center bottom; rotate: -0.5deg; }
.arq img {
  width: 100%;
  border-radius: 1px;
  background: #1c1d1c;
  /* filete fino entre foto e margem de papel */
  outline: 1px solid rgb(18 19 18 / 0.18);
  outline-offset: -1px;
}
.arq-cap {
  display: block;
  padding: 9px 4px 11px;
  color: rgb(32 50 47 / 0.88);
  font-size: 14px;
  line-height: 1.3;
}
a.arq:active {
  translate: 0 2px;
  box-shadow:
    0 1px 1px rgb(0 0 0 / 0.5),
    0 6px 12px -6px rgb(0 0 0 / 0.6),
    0 16px 30px -14px rgb(0 0 0 / 0.7);
}
a.arq:focus-visible { outline: 3px solid var(--purity); outline-offset: 4px; }

@keyframes arq-scale {
  entry 0%   { scale: 0.55; opacity: 0; }
  entry 80%  { scale: 1; opacity: 1; }
  exit 25%   { scale: 1; opacity: 1; }
  exit 100%  { scale: 0.55; opacity: 0; }
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .arq {
      animation: arq-scale linear both;
      animation-timeline: view();
      animation-range: entry 0% exit 100%;
    }
  }
}
/* navegador sem scroll-driven: revelação única */
@supports not (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .js .arq {
      opacity: 0;
      transform: scale(0.92);
      transition:
        opacity var(--motion-scene) var(--ease-enter),
        transform var(--motion-scene) var(--ease-enter);
    }
    .js .arq.is-in { opacity: 1; transform: none; }
  }
}

/* ==========================================================
   CENA 6 · let's go home + pré-venda
   ========================================================== */
.casa {
  color: var(--hope);
  padding-top: 88px;
  --focus: var(--hope);
}
.casa-title {
  position: relative;
  font-family: var(--f-display);
  font-weight: 400;
  font-size: clamp(52px, 17vw, 84px);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.casa-sharp { position: relative; display: block; }
/* o rastro borrado do brandbook, estático */
.casa-ghost {
  position: absolute;
  inset: 0;
  color: transparent;
  text-shadow:
    6px 0 3px rgb(32 50 47 / 0.22),
    16px 0 7px rgb(32 50 47 / 0.14),
    30px 0 12px rgb(32 50 47 / 0.08);
  user-select: none;
}
.casa-line {
  margin-top: 22px;
  max-width: 32ch;
  font-size: 17px;
  color: rgb(32 50 47 / 0.82);
}

/* ---------- Contagem da pré-venda (fecha a cena) ---------- */
.countdown {
  margin-top: 44px;
  padding-top: 28px;
  border-top: 1.5px dashed rgb(32 50 47 / 0.35);
}
.countdown-label {
  font-size: 16px;
  font-weight: 500;
}
.countdown-label time { white-space: nowrap; }
.countdown-units {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 14px;
}
.countdown-units[hidden] { display: none; }
.cd-unit {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 4px 0;
}
.cd-unit + .cd-unit { border-left: 1px solid rgb(32 50 47 / 0.18); }
/* Young Serif só tem algarismos de texto (3, 9 descem); no contador
   os números precisam de largura e altura fixas */
.cd-num {
  font-family: var(--f-ui);
  font-weight: 500;
  font-size: clamp(32px, 10vw, 42px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: lining-nums tabular-nums;
  min-width: 2ch;
  text-align: center;
}
.cd-name {
  font-size: 13px;
  color: rgb(32 50 47 / 0.78);
}

/* ---------- Rodapé ---------- */
.rodape {
  position: relative;
  color: rgb(32 50 47 / 0.8);
  padding: 8px var(--gutter) calc(32px + var(--safe-bottom));
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  --focus: var(--hope);
}
/* ---------- Crédito com o selo base2digital ----------
   O selo é o mesmo em toda página; quem muda são as variáveis:
   --seal-ink (texto, anéis e o "B"), --seal-accent (o "2" e os
   separadores), --seal-ring (traço do anel interno) e --seal-font. */
.credito {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  min-height: 44px;
  margin: 18px auto 0;              /* bloco centralizado no rodapé */
  text-align: left;                 /* o texto fica alinhado ao selo */
  color: var(--hope);
  font-size: 13px;
  line-height: 1.35;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.credito-txt strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.selo-b2 {
  --seal-ink: currentColor;
  --seal-accent: #D90000;           /* vermelho original da marca */
  --seal-ring: 0;                   /* anel liso por padrão */
  --seal-font: inherit;
  flex: none;
  width: 72px;
  height: 72px;
  overflow: visible;
  transition: rotate var(--motion-emphasis, 320ms) var(--ease-emphasis, ease-out);
}
.selo-borda,
.selo-anel { fill: none; stroke: var(--seal-ink); }
.selo-borda { stroke-width: 1; }
.selo-anel { stroke-width: 0.7; stroke-dasharray: var(--seal-ring); opacity: 0.75; }
.selo-texto {
  fill: var(--seal-ink);
  font-family: var(--seal-font);
  font-size: 6.3px;
  font-weight: 600;
  letter-spacing: 0.8px;
}
.selo-b { fill: var(--seal-ink); }
.selo-acento { fill: var(--seal-accent); }

/* nesta página: verde Hope + vermelho Sacrifice, anel pespontado
   como a etiqueta tecida, fonte de interface da marca */
.rodape .selo-b2 {
  --seal-accent: var(--sacrifice);
  --seal-ring: 1.6 1.3;
  --seal-font: var(--f-ui);
}
.credito:active .selo-b2 { rotate: -10deg; }

/* o anel de texto gira devagar e o selo flutua; a marca B2 fica parada.
   Giro e flutuação usam propriedades separadas (transform no anel,
   translate no selo), então o toque (rotate) continua funcionando. */
.selo-giro {
  transform-box: view-box;
  transform-origin: 50px 50px;
}
@keyframes selo-gira { to { transform: rotate(360deg); } }
@keyframes selo-flutua {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -3px; }
}
@media (prefers-reduced-motion: no-preference) {
  .selo-giro { animation: selo-gira 24s linear infinite; }
  .selo-b2 { animation: selo-flutua 4.8s ease-in-out infinite; }
  /* fora da tela ou com a aba oculta, para */
  .selo-b2.is-still,
  .selo-b2.is-still .selo-giro,
  .is-page-hidden .selo-b2,
  .is-page-hidden .selo-giro { animation-play-state: paused; }
}
@media (prefers-reduced-motion: reduce) {
  .credito:active .selo-b2 { rotate: none; }
}

/* ==========================================================
   Fundo artístico (do brandbook)
   Papel: fibras da página "lets go home", em cinza, misturadas à cor
   de cada cena. Traço: o laço de pincel da sacola e da página do
   logotipo, como máscara que cada cena pinta com a sua cor.
   ========================================================== */
.origem,
.fim,
.arq {
  background-image: url("assets/bg-papel.jpg");
  background-size: 256px auto;
  background-blend-mode: soft-light;
}
/* cenas escuras: o próprio papel preto do brandbook, com grão */
.panel {
  background-image: url("assets/bg-papel-preto.jpg");
  background-size: 384px auto;
}

.panel::after,
.origem::after,
.fim::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  -webkit-mask: url("assets/bg-traco.webp") repeat-y;
  mask: url("assets/bg-traco.webp") repeat-y;
}
/* cenas escuras: laço Pastures sobre o papel preto, como a sacola */
.panel::after {
  background: rgb(166 185 153 / 0.22);
  -webkit-mask-size: 150% auto;
  mask-size: 150% auto;
  -webkit-mask-position: 30% 0;
  mask-position: 30% 0;
}
/* cena da costura: vermelho Sacrifice sobre Mystery, como no PDF */
.origem,
.fim { isolation: isolate; position: relative; }
.origem::after {
  background: rgb(86 0 0 / 0.5);
  -webkit-mask-size: 150% auto;
  mask-size: 150% auto;
  -webkit-mask-position: 35% -140px;
  mask-position: 35% -140px;
}
/* cena final: Pastures sobre Purity, como a página "lets go home" */
.fim { background-color: var(--purity); }
.fim::after {
  background: rgb(166 185 153 / 0.45);
  -webkit-mask-size: 160% auto;
  mask-size: 160% auto;
  -webkit-mask-position: 70% -300px;
  mask-position: 70% -300px;
}

/* ---------- Páginas vistas no desktop ---------- */
@media (min-width: 561px) {
  body { box-shadow: 0 0 0 1px rgb(166 185 153 / 0.12); }
  .peca:nth-child(odd) .peca-frame { margin-left: 0; border-radius: var(--radius); }
  .peca:nth-child(even) .peca-frame { margin-right: 0; border-radius: var(--radius); }
  .origem-media { margin: 0 calc(var(--gutter) * -1); }
}
