/* Ink lives on shared sections, not inside individual cutout boxes. */
.site-cutout { display: none; }
.cast-flow { display: none; }
html[data-site-mode="rebel"] .site-cutout {
  --print-contrast: 1.16;
  --print-saturation: .78;
  display: block;
  position: relative;
  isolation: isolate;
  z-index: 2;
  margin: 0;
  pointer-events: none;
  user-select: none;
}
html[data-site-mode="rebel"] .cutout-print {
  display: block;
  position: relative;
  z-index: 1;
  filter: url('#screenprint') contrast(var(--print-contrast)) saturate(var(--print-saturation)) drop-shadow(2px 2px #efebdc) drop-shadow(-2px -1px #efebdc) drop-shadow(4px 3px #161412);
}
html[data-site-mode="rebel"] .site-cutout img { display: block; width: 100%; height: auto; max-width: 100%; }

html[data-site-mode="rebel"] :is(.manifesto-section,.ride-smart,.gifts-section,.cast-faq-masthead,.cast-vibe-masthead,.participation-steps>li:nth-child(4),.two-stories-band,.cast-join-masthead) {
  position: relative;
  isolation: isolate;
}
html[data-site-mode="rebel"] .cast-flow {
  display: block;
  position: absolute;
  inset: var(--flow-inset,-24px -24px -28px);
  z-index: 0;
  pointer-events: none;
}
html[data-site-mode="rebel"] .cast-flow::before,
html[data-site-mode="rebel"] .cast-flow::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  filter: url('#screenprint');
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}
html[data-site-mode="rebel"] .cast-flow::before {
  background: radial-gradient(circle,#ef372b 1.3px,transparent 1.75px) 0 0/5px 5px,
    linear-gradient(117deg,transparent 0 34%,#ef372b 34% 41%,transparent 41% 68%,#ef372b 68% 73%,transparent 73%);
  -webkit-mask-image: var(--flow-red);
  mask-image: var(--flow-red);
}
html[data-site-mode="rebel"] .cast-flow::after {
  background: radial-gradient(circle,#c8ff30 1.1px,transparent 1.65px) 2px 1px/6px 6px,
    linear-gradient(124deg,transparent 0 50%,#c8ff30 50% 56%,transparent 56%);
  -webkit-mask-image: var(--flow-lime);
  mask-image: var(--flow-lime);
}
/* Preserve the original text and controls above the decorative shared ink. */
html[data-site-mode="rebel"] :is(.manifesto-heading,.manifesto-copy>p,.manifesto-preface,.manifesto-rebellion,.ride-smart>h3,.ride-smart>p,.cast-vibe-copy,.cast-join-copy,.cast-faq-masthead>.section-title,.two-stories-band>h3,.two-stories-band>.history-paths,.participation-steps>li:nth-child(4)>:not(.cast-flow,.site-cutout)) {
  position: relative;
  z-index: 2;
}
html[data-site-mode="rebel"] .gifts-section>.cast-flow { z-index: 1; }
html[data-site-mode="rebel"] :is(.gift-panel,.spectator-card) { position: relative; }
html[data-site-mode="rebel"] :is(.gift-panel,.spectator-card)>:not(.site-cutout) { position: relative; z-index: 2; }
html[data-site-mode="rebel"] .two-stories-band>.cast-flow { transform: none; }

html[data-site-mode="rebel"] .manifesto-section {
  --flow-inset: 110px 39% -16px -24px;
  --flow-red: radial-gradient(ellipse 46% 39% at 42% 48%,#000 20%,#000a 47%,transparent 90%),radial-gradient(ellipse 35% 20% at 75% 66%,#0009 8%,transparent 95%);
  --flow-lime: radial-gradient(ellipse 46% 18% at 47% 64%,#000 13%,transparent 94%),radial-gradient(ellipse 18% 34% at 17% 45%,#000b 8%,transparent 95%);
}
html[data-site-mode="rebel"] .participation-steps>li:nth-child(4) {
  --flow-inset: -12px -18px -12px 44%;
  --flow-red: radial-gradient(ellipse 48% 31% at 64% 64%,#000b 15%,transparent 97%);
  --flow-lime: radial-gradient(ellipse 40% 17% at 55% 75%,#000c 12%,transparent 94%);
}
html[data-site-mode="rebel"] .ride-smart {
  --flow-inset: -19px -18px -15px 36%;
  --flow-red: radial-gradient(ellipse 45% 36% at 66% 57%,#000a 12%,transparent 95%);
  --flow-lime: radial-gradient(ellipse 48% 28% at 59% 42%,#000b 12%,transparent 96%);
}
html[data-site-mode="rebel"] .gifts-section {
  --flow-inset: -34px -24px 25%;
  --flow-red: radial-gradient(ellipse 34% 20% at 51% 31%,#000 12%,#000a 45%,transparent 100%),radial-gradient(ellipse 23% 46% at 78% 48%,#000 22%,transparent 96%),radial-gradient(ellipse 17% 41% at 40% 45%,#000 14%,transparent 96%);
  --flow-lime: radial-gradient(ellipse 38% 13% at 59% 39%,#000 10%,transparent 100%),radial-gradient(ellipse 17% 45% at 89% 49%,#000 12%,transparent 94%);
}
html[data-site-mode="rebel"] .cast-faq-masthead {
  --flow-inset: -30px -24px -6px 26%;
  --flow-red: radial-gradient(ellipse 42% 43% at 73% 50%,#000 15%,transparent 96%),radial-gradient(ellipse 29% 16% at 33% 71%,#0009 10%,transparent 100%);
  --flow-lime: radial-gradient(ellipse 40% 18% at 58% 65%,#000c 12%,transparent 96%);
}
html[data-site-mode="rebel"] .cast-vibe-masthead {
  --flow-inset: -26px -24px -36px 12%;
  --flow-red: radial-gradient(ellipse 39% 44% at 76% 48%,#000 22%,transparent 97%),radial-gradient(ellipse 34% 16% at 38% 79%,#000a 10%,transparent 99%);
  --flow-lime: radial-gradient(ellipse 48% 17% at 56% 71%,#000 12%,transparent 100%);
}
html[data-site-mode="rebel"] .two-stories-band {
  --flow-inset: 46% -20px -26px 32%;
  --flow-red: radial-gradient(ellipse 39% 31% at 73% 72%,#000b 12%,transparent 97%);
  --flow-lime: radial-gradient(ellipse 46% 22% at 61% 79%,#000 12%,transparent 98%);
}
html[data-site-mode="rebel"] .cast-join-masthead {
  --flow-inset: -30px -24px -24px 8%;
  --flow-red: radial-gradient(ellipse 36% 43% at 76% 47%,#000 20%,transparent 96%),radial-gradient(ellipse 42% 14% at 41% 81%,#000a 13%,transparent 99%);
  --flow-lime: radial-gradient(ellipse 45% 18% at 58% 68%,#000 12%,transparent 100%);
}

@media (max-width: 900px) {
  html[data-site-mode="rebel"] .manifesto-section {
    --flow-inset: 120px -16px 24% 0;
    --flow-red: radial-gradient(ellipse 42% 33% at 69% 32%,#000 12%,transparent 98%),radial-gradient(ellipse 37% 11% at 43% 55%,#0009 10%,transparent 98%);
    --flow-lime: radial-gradient(ellipse 37% 14% at 56% 44%,#000 12%,transparent 98%);
  }
  html[data-site-mode="rebel"] .participation-steps>li:nth-child(4) { --flow-inset: 10% -16px -12px 8%; }
  html[data-site-mode="rebel"] .ride-smart { --flow-inset: -16px -12px -12px 15%; }
  html[data-site-mode="rebel"] .gifts-section {
    --flow-inset: -26px -16px 15% 0;
    --flow-red: radial-gradient(ellipse 34% 18% at 81% 12%,#000 15%,transparent 95%),radial-gradient(ellipse 17% 32% at 95% 37%,#0009 6%,transparent 98%),radial-gradient(ellipse 49% 24% at 54% 68%,#000 22%,transparent 98%);
    --flow-lime: radial-gradient(ellipse 10% 24% at 100% 34%,#000b 10%,transparent 98%),radial-gradient(ellipse 45% 12% at 53% 58%,#000 10%,transparent 99%);
  }
  html[data-site-mode="rebel"] .cast-faq-masthead { --flow-inset: -20px -16px -6px 0; --flow-lime: radial-gradient(ellipse 30% 16% at 81% 61%,#000 10%,transparent 98%); }
  html[data-site-mode="rebel"] .cast-vibe-masthead {
    --flow-inset: 27% -16px -24px -16px;
    --flow-red: radial-gradient(ellipse 47% 36% at 56% 62%,#000 20%,transparent 96%),radial-gradient(ellipse 36% 17% at 38% 33%,#0009 10%,transparent 98%);
    --flow-lime: radial-gradient(ellipse 52% 17% at 52% 59%,#000 10%,transparent 98%);
  }
  html[data-site-mode="rebel"] .two-stories-band { --flow-inset: 59% -12px -18px 0; }
  html[data-site-mode="rebel"] .cast-join-masthead {
    --flow-inset: 15% -16px -24px -16px;
    --flow-red: radial-gradient(ellipse 49% 35% at 55% 63%,#000 20%,transparent 97%);
    --flow-lime: radial-gradient(ellipse 51% 19% at 53% 69%,#000 12%,transparent 99%);
  }
}

html[data-site-mode="rebel"] .cast-pointer { width: 92%; margin: 12px 0 -10px; transform: scaleX(-1) rotate(3deg); }
html[data-site-mode="rebel"] .cast-pointer img { width: auto; max-height: 350px; margin: auto; }

html[data-site-mode="rebel"] .ride-smart { display: flow-root; }
html[data-site-mode="rebel"] .cast-doodle { --halftone-opacity: .12; --print-saturation: .9; float: right; width: 150px; margin: -14px 0 -12px 24px; transform: rotate(5deg); }
html[data-site-mode="rebel"] :is(.cast-doodle,.cast-questioner) .cutout-print { filter: url('#cutout-alpha') url('#screenprint') contrast(1.12) saturate(.85) drop-shadow(2px 2px #efebdc) drop-shadow(-2px -1px #efebdc); }

html[data-site-mode="rebel"] .gift-panel { display: flow-root; }
html[data-site-mode="rebel"] .cast-wave { --halftone-opacity: .16; --print-contrast: 1.1; --print-saturation: .95; float: right; width: 44%; margin: -26px -12px 12px 14px; transform: rotate(5deg); }
html[data-site-mode="rebel"] .spectator-card { display: flex; flex-direction: column; justify-content: flex-end; }
html[data-site-mode="rebel"] .cast-dinner { --halftone-opacity: .34; --print-contrast: 1.22; --print-saturation: .7; width: calc(100% + 48px); max-width: none; margin: -48px -24px 18px; transform: rotate(-2deg); }
html[data-site-mode="rebel"] .cast-dinner img { width: auto; max-height: 390px; margin-inline: auto; }

html[data-site-mode="rebel"] .cast-faq-masthead { display: grid; grid-template-columns: minmax(0,1fr) 250px; gap: 24px; align-items: end; min-height: 220px; margin-bottom: 12px; }
html[data-site-mode="rebel"] .cast-faq-masthead .section-title { margin-bottom: 12px; }
html[data-site-mode="rebel"] .cast-questioner { height: 220px; overflow: hidden; transform: scaleX(-1) rotate(-3deg); clip-path: polygon(0 0,100% 0,100% 96%,92% 100%,80% 96%,68% 100%,53% 96%,42% 100%,28% 96%,17% 100%,0 96%); }

html[data-site-mode="rebel"] .cast-vibe-masthead { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.95fr); gap: 36px; align-items: center; margin-bottom: 32px; }
html[data-site-mode="rebel"] .cast-crew { --halftone-opacity: .3; --print-contrast: 1.22; transform: rotate(-3deg); }

html[data-site-mode="rebel"] .participation-steps>li { position: relative; }
html[data-site-mode="rebel"] .participation-steps>li:nth-child(4) { padding-right: 165px; min-height: 205px; }
html[data-site-mode="rebel"] .cast-beer { --halftone-opacity: .15; --print-contrast: 1.12; --print-saturation: .95; position: absolute; width: 140px; right: 6px; bottom: 12px; transform: rotate(6deg); }

html[data-site-mode="rebel"] .history-path-panel { position: relative; }
html[data-site-mode="rebel"] .history-path-panel:nth-child(2) .story-feature-copy { padding-bottom: 118px; }
html[data-site-mode="rebel"] .cast-watercolor { --halftone-opacity: .14; --print-contrast: 1.1; --print-saturation: .9; position: absolute; width: 145px; right: 8px; bottom: -16px; z-index: 2; transform: rotate(5deg); }

html[data-site-mode="rebel"] .cast-join-masthead { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1.08fr); gap: 36px; align-items: center; margin-bottom: 26px; }
html[data-site-mode="rebel"] .cast-bouquets { --halftone-opacity: .3; --print-contrast: 1.22; --print-saturation: .65; transform: rotate(3deg); }

@media (min-width: 901px) {
  html[data-site-mode="rebel"] .hero-title .rebel-title>span:first-child { font-size: .88em; }
}

@media (max-width: 900px) {
  /* Crop the rotated, full-bleed candy eruption at the paper's phone edges. */
  html[data-site-mode="rebel"] .uprising-section { overflow-x: clip; }
  html[data-site-mode="rebel"] .cast-pointer { width: 76%; max-width: 330px; margin: 4px 0 -6px auto; transform: rotate(-4deg); }
  html[data-site-mode="rebel"] .cast-pointer img { max-height: 285px; }
  html[data-site-mode="rebel"] .cast-doodle { width: 108px; margin: -6px -2px 2px 12px; }
  html[data-site-mode="rebel"] .cast-wave { width: 43%; margin: -22px -7px 10px 12px; }
  html[data-site-mode="rebel"] .cast-dinner { width: calc(100% + 40px); margin: -34px -20px 18px; }
  html[data-site-mode="rebel"] .cast-faq-masthead { grid-template-columns: minmax(0,1fr) 140px; gap: 8px; min-height: 145px; margin-bottom: 8px; }
  html[data-site-mode="rebel"] .cast-faq-masthead .section-title { font-size: clamp(31px,9.5vw,54px); line-height: 1.08; overflow-wrap: normal; }
  html[data-site-mode="rebel"] .cast-questioner { height: 145px; }
  html[data-site-mode="rebel"] .cast-vibe-masthead { grid-template-columns: minmax(0,1fr); gap: 10px; margin-bottom: 25px; }
  html[data-site-mode="rebel"] .cast-crew { width: 100%; margin: 0 0 8px; }
  html[data-site-mode="rebel"] .participation-steps>li:nth-child(4) { padding-right: 0; }
  html[data-site-mode="rebel"] .cast-beer { position: static; width: 145px; grid-column: 2; justify-self: end; margin: -4px 4px 2px 0; }
  html[data-site-mode="rebel"] .history-path-panel:nth-child(2) .story-feature-copy { padding-bottom: 105px; }
  html[data-site-mode="rebel"] .cast-watercolor { width: 125px; }
  html[data-site-mode="rebel"] .cast-join-masthead { grid-template-columns: minmax(0,1fr); gap: 18px; }
  html[data-site-mode="rebel"] .cast-bouquets { width: 100%; margin: 0 0 5px; }
}

@media (max-width: 370px) {
  html[data-site-mode="rebel"] .cast-faq-masthead { grid-template-columns: minmax(0,1fr) 120px; }
  html[data-site-mode="rebel"] .cast-questioner { height: 135px; }
}
