/* ============================================================
   Buy Nothing — Keep the Receipt.
   Design tokens + base styles
   ============================================================ */

/* ---- Tokens (verbatim from Global Constraints) ---- */
:root {
  --paper: #fbf6e6;
  --paper-deep: #f2ead4;
  --ink: #191712;
  --ink-soft: #5d5744;
  --ink-faint: rgba(25, 23, 18, 0.42);
  --rule: rgba(120, 165, 205, 0.34);
  --margin-red: #d9584d;
  --marker: rgba(255, 228, 94, 0.6);
  --marker-2: rgba(184, 236, 208, 0.6);
  --sticky-pink: #ffc9dc;
  --sticky-blue: #c2e5f7;
  --sticky-yellow: #ffeaa0;
  --tape: rgba(246, 228, 150, 0.62);
  --hand: "Caveat", "Bradley Hand", "Comic Sans MS", cursive;
  --neat: "Patrick Hand", "Comic Sans MS", "Chalkboard SE", cursive;
  --type: "Special Elite", "Courier New", monospace;
  --space-header: 8px;
  --space-footer: 26px;
  --page: 1140px;
  --gutter: clamp(20px, 5vw, 40px);
  --rule-height: 34px;
  --ink-line: 2.5px solid var(--ink);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ---- Notebook paper sheet (whole site) ---- */
/* One continuous scanned-sketchbook page. Flat warm-white base; every
   texture detail lives on a fixed layer that never scrolls, so the whole
   site reads as a single sheet of paper. Everything here is intentionally
   too faint to notice at first glance. */
html {
  background-color: #fbf8ef;
}

body {
  background: transparent;
  color: var(--ink);
  font-family: var(--type);
  line-height: 1.5;
}

html,
body {
  overflow-x: hidden;
}

/* The sheet itself — the real scanned-paper asset at its natural look,
   covered across the viewport, with barely-there ruling printed on top.
   Stays below the content (z-index -1) and never moves while scrolling. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, rgba(122, 133, 155, 0.05) 0, rgba(122, 133, 155, 0.05) 1px, transparent 1px, transparent var(--rule-height)),
    repeating-linear-gradient(0deg, rgba(122, 133, 155, 0.03) 0, rgba(122, 133, 155, 0.03) 1px, transparent 1px, transparent calc(var(--rule-height) + 0.8px)),
    url("assets/paper-texture.jpg");
  background-repeat: repeat, repeat, no-repeat;
  background-size: auto, auto, cover;
}

/* Red margin line (kept from the design) + a whisper of page-edge depth. */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(180deg, rgba(217, 88, 77, 0.09), rgba(217, 88, 77, 0.09));
  background-repeat: no-repeat;
  background-size: 1px 100%;
  background-position: calc(max(36px, 4vw)) 0;
  box-shadow: inset 0 0 180px rgba(113, 96, 60, 0.035);
}

/* ---- Section ---- */
.section {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 80px var(--gutter);
}

/* ---- Section label (handwritten, red) ---- */
.section-label {
  font-family: var(--hand);
  color: var(--margin-red);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin-bottom: 0.5em;
}

/* ---- Marker highlight ---- */
.marked {
  padding: 0 0.16em;
  border-radius: 0.3em 0.5em 0.3em 0.4em;
  background-image: linear-gradient(
    104deg,
    transparent 2%,
    var(--marker) 6%,
    var(--marker) 94%,
    transparent 98%
  );
  mix-blend-mode: multiply;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Proof strip ---- */
.proof {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 10px 26px;
  width: min(100%, var(--page));
  margin: 0 auto;
  padding: 20px 16px;
  border-top: var(--ink-line);
  border-bottom: var(--ink-line);
  background: var(--paper-deep);
  text-align: center;
}

.proof-count {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.5rem;
}

.proof-count strong {
  font-size: 2.1rem;
  padding: 0 0.12em;
  border-radius: 0.3em 0.5em 0.3em 0.4em;
  background-image: linear-gradient(
    104deg,
    transparent 2%,
    var(--marker-2) 6%,
    var(--marker-2) 94%,
    transparent 98%
  );
  mix-blend-mode: multiply;
}

.proof-next strong {
  font-size: 2.1rem;
  padding: 0 0.12em;
  border-radius: 0.3em 0.5em 0.3em 0.4em;
  background-image: linear-gradient(
    104deg,
    transparent 2%,
    var(--marker) 6%,
    var(--marker) 94%,
    transparent 98%
  );
  mix-blend-mode: multiply;
}

.proof-next,
.proof-first {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.5rem;
}

.proof-first[hidden] {
  display: none;
}

/* ---- Comic strip / panels ---- */
.comic-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 3vw, 34px);
  margin-top: 26px;
}

.panel {
  position: relative;
  padding: 22px;
  border: var(--ink-line);
  background: var(--paper-deep);
  box-shadow: 4px 6px 0 rgba(25, 23, 18, 0.13);
}

.comic-strip .panel:nth-child(1) {
  background: var(--sticky-pink);
  transform: rotate(-1.4deg);
}

.comic-strip .panel:nth-child(2) {
  background: var(--sticky-blue);
  transform: rotate(0.7deg);
}

.comic-strip .panel:nth-child(3) {
  background: var(--sticky-yellow);
  transform: rotate(-0.6deg);
}

.panel h3 {
  margin: 8px 0 4px;
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1.04;
}

.panel p {
  margin: 0;
  color: var(--ink-soft);
}

.face {
  display: block;
  font-family: var(--hand);
  font-size: 3.4rem;
  font-weight: 700;
  line-height: 1;
}

.punchline {
  margin: 46px 0 0;
  font-family: var(--hand);
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 700;
  line-height: 1.12;
  text-align: center;
}

/* ---- Sticky note ---- */
.sticky-note {
  position: absolute;
  z-index: 6;
  width: 176px;
  padding: 20px 18px;
  font-family: var(--hand);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  background: var(--sticky-yellow);
  box-shadow: 3px 5px 0 rgba(25, 23, 18, 0.15);
}

.sticky-note::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 132px;
  height: 34px;
  background: var(--tape);
  border-left: 1px dashed rgba(25, 23, 18, 0.18);
  border-right: 1px dashed rgba(25, 23, 18, 0.18);
  box-shadow: 0 1px 3px rgba(25, 23, 18, 0.14);
  transform: translateX(-50%) rotate(-2.6deg);
}

.sticky-pink {
  background: var(--sticky-pink);
}

.sticky-blue {
  background: var(--sticky-blue);
}

.note-why {
  right: clamp(-4px, 2vw, 40px);
  bottom: -34px;
  transform: rotate(6deg);
}

/* ---- Charity banner ---- */
.nop-charity-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  position: relative;
  gap: 8px clamp(20px, 4vw, 48px);
  margin-top: 48px;
  padding: 22px 26px;
  border: 2.5px solid var(--ink);
  background: var(--paper-deep);
  box-shadow: 4px 5px 0 rgba(25, 23, 18, 0.12);
}

.nop-charity-banner::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 132px;
  height: 34px;
  background: var(--tape);
  border-left: 1px dashed rgba(25, 23, 18, 0.18);
  border-right: 1px dashed rgba(25, 23, 18, 0.18);
  box-shadow: 0 1px 3px rgba(25, 23, 18, 0.14);
  transform: translateX(-50%) rotate(-2.2deg);
}

.nop-charity-line {
  flex: 1 1 100%;
  margin: 0 0 4px;
  font-family: var(--hand);
  font-size: clamp(1.5rem, 3.4vw, 2.1rem);
  line-height: 1.12;
}

.nop-charity-line a {
  color: inherit;
  text-decoration-color: #b8912f;
  text-decoration-thickness: 3px;
}

.nop-charity-line a:hover {
  color: #8a6a18;
}

.nop-charity-sub {
  flex: 1 1 380px;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.nop-charity-total {
  flex: 0 0 auto;
  margin: 0;
  text-align: right;
}

.nop-charity-total strong {
  display: block;
  font-family: var(--hand);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  line-height: 1;
  background-image: linear-gradient(
    100deg,
    #8a6a18 0%, #b8912f 18%, #e8c86a 34%,
    #f6e9c2 44%, #e8c86a 54%, #b8912f 70%, #8a6a18 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nop-charity-total span {
  display: block;
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

@media (max-width: 640px) {
  .comic-strip {
    grid-template-columns: 1fr;
  }

  .comic-strip .panel {
    transform: none;
  }

  .note-why {
    position: static;
    width: auto;
    max-width: 260px;
    margin: 30px auto 0;
    transform: rotate(-2deg);
  }

  .nop-charity-total {
    flex: 1 1 100%;
    text-align: left;
  }
}

/* ---- Headings ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--hand);
  font-weight: 700;
  line-height: 1.05;
}

/* ---- Scribble underline ---- */
.scribble {
  text-decoration: underline;
  text-decoration-color: var(--margin-red);
  text-decoration-style: wavy;
  text-underline-offset: 4px;
}

/* ---- Buttons ---- */
.btn {
  font-family: var(--hand);
  font-size: 1.15rem;
  font-weight: 600;
  background: var(--paper-deep);
  color: var(--ink);
  border: var(--ink-line);
  border-radius: 4px;
  padding: 0.55em 1.2em;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
}

.btn:hover {
  transform: rotate(1deg);
}

.btn:active {
  transform: rotate(0deg) scale(0.97);
}

.btn-big {
  font-size: 1.4rem;
  padding: 0.65em 1.6em;
}

.btn-small {
  font-size: 0.95rem;
  padding: 0.35em 0.9em;
}

.btn-gift {
  background: var(--sticky-yellow);
}

/* ---- Certificate card ---- */
.cert {
  background: #fff;
  border: var(--ink-line);
  padding: 18px 22px;
  box-shadow: 3px 4px 0 var(--ink-faint);
  font-family: var(--type);
  font-size: 0.95rem;
}

/* ---- Topbar ---- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 24px;
  padding: var(--space-header) var(--gutter);
  border-bottom: var(--ink-line);
  background: transparent;
}

.topbar .logo-link {
  display: flex;
  align-items: center;
}

.topbar .logo-link img,
.topbar .logo-link svg {
  display: block;
  height: 38px;
  width: auto;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: 1.5em;
}


.topbar nav a {
  font-family: var(--neat);
  color: var(--ink);
  text-decoration: none;
  font-size: 1.05rem;
}

.topbar nav a:hover {
  color: var(--margin-red);
}

.topbar #btn-primary {
  font-family: var(--hand);
  font-size: 1rem;
  font-weight: 600;
  background: var(--margin-red);
  color: #fff;
  border: var(--ink-line);
  border-radius: 4px;
  padding: 0.4em 1em;
  cursor: pointer;
  transform: rotate(-1deg);
  transition: transform 0.2s ease;
}

.topbar #btn-primary:hover {
  transform: rotate(1deg);
}

/* ---- Footer ---- */
footer {
  border-top: var(--ink-line);
  padding: var(--space-footer) var(--gutter);
  text-align: center;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

footer a {
  color: var(--ink-soft);
  text-decoration: none;
  margin: 0 0.6em;
}

footer a:hover {
  color: var(--margin-red);
}

/* ---- Hero section ---- */
.hero {
  min-height: 60vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(90px, 12vh, 160px) var(--gutter) var(--space-footer);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-family: var(--hand);
  font-size: clamp(44px, 9vw, 96px);
  letter-spacing: -0.02em;
}

.hero-text {
  max-width: 780px;
}

.eyebrow {
  font-family: var(--neat);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.6em;
}

.lede {
  font-family: var(--neat);
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  color: var(--ink);
  max-width: 540px;
  margin: 1.1em auto 1.5em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.9em 1.4em;
  margin-bottom: 1.2em;
}

.scribble-link {
  font-family: var(--neat);
  font-size: 1rem;
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--margin-red);
  text-decoration-style: wavy;
  text-underline-offset: 4px;
  white-space: nowrap;
}

.scribble-link:hover {
  color: var(--margin-red);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em 1.6em;
  list-style: none;
  font-family: var(--neat);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.trust-row li::before {
  content: "✓ ";
  color: var(--ink-faint);
}

.hero-art {
  position: relative;
  width: 100%;
  margin-top: clamp(2.5rem, 5vh, 4rem);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.cert-slot {
  position: relative;
}

/* ---- Certificate preview card ---- */
.cert {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  box-shadow: 6px 6px 0 rgba(25, 23, 18, 0.08);
  transform: rotate(-0.5deg);
}

.cert-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 10px;
  font-family: var(--neat);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.cert-body {
  display: flex;
  gap: 12px;
  margin-bottom: 10px;
}

.cert-kicker {
  font-family: var(--neat);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.cert-name {
  font-family: var(--hand);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.1;
}

.cert-role {
  font-family: var(--neat);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 8px;
}

.cert-gift-from {
  font-family: var(--neat);
  font-size: 0.85rem;
  color: var(--margin-red);
  margin-bottom: 6px;
}

.cert-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.2em;
  font-size: 0.84rem;
  margin: 6px 0 0;
}

.cert-meta div {
  display: flex;
  gap: 0.4em;
}

.cert-meta dt {
  color: var(--ink-faint);
}

.cert-meta dd {
  font-family: var(--neat);
}

.cert-statement {
  font-size: 0.84rem;
  color: var(--ink);
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 8px 0;
}

.cert-stamp {
  position: absolute;
  right: 18px;
  bottom: 40px;
  font-family: var(--hand);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--margin-red);
  border: 2px solid var(--margin-red);
  border-radius: 6px;
  padding: 2px 8px;
  transform: rotate(-6deg);
  opacity: 0.85;
}

.cert-mrz {
  margin-top: 10px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.12em;
  white-space: pre;
  opacity: 0.85;
}

.caption {
  font-family: var(--neat);
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin-top: 1.1em;
  text-align: center;
}

/* ---- Hero stickers ---- */
.sticker {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-family: var(--hand);
  font-weight: 700;
  border: var(--ink-line);
  box-shadow: 2px 2px 0 rgba(25, 23, 18, 0.12);
}

.sticker-round {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--sticky-blue);
  font-size: 1.15rem;
}

.sticker-round small {
  font-size: 0.7em;
}

.sticker-oval {
  padding: 0.3em 1em;
  border-radius: 999px;
  background: var(--sticky-yellow);
  font-size: 1.05rem;
  transform: rotate(2deg);
  white-space: nowrap;
}

.sticker-hero-1 {
  top: 42px;
  left: -28px;
  z-index: 2;
}

.sticker-hero-2 {
  bottom: 48px;
  right: -34px;
}

@media (max-width: 640px) {
  .sticker-hero-2 {
    right: 0;
  }
}

.hero-foot {
  margin-top: clamp(2rem, 5vh, 3rem);
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--ink-soft);
}

/* ---- Product detail ---- */
h2 {
  font-size: clamp(2.4rem, 6vw, 4.1rem);
  margin-bottom: 0.35em;
}

#product-detail .lede {
  max-width: 46ch;
  margin: 0 0 26px;
  color: var(--ink-soft);
}

.two-columns {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(30px, 5vw, 66px);
  align-items: start;
  margin-top: 20px;
}

.two-columns > * {
  min-width: 0;
}

.box-joke {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 32px;
  padding: 20px 24px;
  border: 2px dashed var(--ink);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
}

.box-joke h3 {
  margin: 0 0 2px;
}

.box-joke p {
  margin: 0;
  color: var(--ink-soft);
}

.stickman {
  margin: 0;
  font-family: var(--type);
  font-size: 1rem;
  line-height: 1.15;
  white-space: pre;
}

.spec-sheet {
  position: relative;
  padding: 28px 26px 22px;
  border: var(--ink-line);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
  background: var(--paper);
  transform: rotate(-0.9deg);
  box-shadow: 5px 7px 0 rgba(25, 23, 18, 0.13);
}

.spec-title {
  margin: 0 0 12px;
  font-family: var(--type);
  font-size: 0.76rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--margin-red);
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table th,
.spec-table td {
  padding: 5px 0;
  border-bottom: 1px dotted rgba(25, 23, 18, 0.35);
  line-height: 1.4;
}

.spec-table th {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: left;
  white-space: nowrap;
}

.spec-table td {
  font-family: var(--hand);
  font-size: 1.4rem;
  text-align: right;
}

.spec-sheet small {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.sticker-star {
  width: 104px;
  height: 104px;
  padding: 0;
  background: var(--margin-red);
  color: #fff8ec;
  font-size: 1.05rem;
  clip-path: polygon(
    50% 0%, 61% 18%, 82% 12%, 80% 33%, 100% 43%, 84% 57%,
    95% 76%, 74% 78%, 68% 98%, 50% 87%, 32% 98%, 26% 78%,
    5% 76%, 16% 57%, 0% 43%, 20% 33%, 18% 12%, 39% 18%
  );
}

.sticker-spec {
  top: -40px;
  right: -34px;
  transform: rotate(14deg);
  width: 118px;
  height: 118px;
  font-size: 0.9rem;
}

@media (max-width: 980px) {
  .two-columns {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Wall of nothing
   ============================================================ */

.wall-lede {
  max-width: 52ch;
  margin: 1.1em 0 1.5em;
}

/* ---- Counter ---- */
.nop-counter {
  display: flex;
  flex-wrap: wrap;
  gap: 18px clamp(24px, 5vw, 64px);
  margin: 0 0 18px;
  padding: 22px 26px;
  border: 2.5px dashed var(--ink);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
  background: rgba(25, 23, 18, 0.03);
}

.nop-counter-figure {
  flex: 1 1 190px;
  min-width: 0;
}

.nop-counter-figure strong {
  display: block;
  font-family: var(--hand);
  font-size: clamp(2rem, 5vw, 2.9rem);
  font-weight: 700;
  line-height: 1;
  word-break: break-word;
}

.nop-counter-figure span {
  display: block;
  margin-top: 2px;
  font-family: var(--type);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.nop-counter-figure.is-charity strong {
  background-image: linear-gradient(
    100deg,
    #8a6a18 0%, #b8912f 18%, #e8c86a 34%,
    #f6e9c2 44%, #e8c86a 54%, #b8912f 70%, #8a6a18 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nop-counter-figure.is-charity span a {
  color: inherit;
  text-decoration-color: #b8912f;
}

.nop-counter-note {
  max-width: 68ch;
  margin: 0 0 30px;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* ---- Wall grid ---- */
.wall-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.wall-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wall-card:nth-child(4n + 1) { transform: rotate(-1.3deg); }
.wall-card:nth-child(4n + 2) { transform: rotate(0.9deg); }
.wall-card:nth-child(4n + 3) { transform: rotate(-0.5deg); }
.wall-card:nth-child(4n + 4) { transform: rotate(1.5deg); }

.wall-card .cert {
  width: 100%;
  max-width: none;
  margin: 0;
  box-shadow: 4px 6px 0 rgba(25, 23, 18, 0.14);
}

.wall-card .cert-serial {
  padding: 0.3em 0.6em;
  background: var(--ink);
  color: var(--paper);
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.wall-note {
  margin: 0;
  padding: 0 6px;
  font-family: var(--hand);
  font-size: 1.28rem;
  line-height: 1.15;
  color: var(--ink-soft);
}

.wall-note::before { content: "\201C"; }
.wall-note::after { content: "\201D"; }

.wall-note.is-wish {
  padding: 10px 14px;
  border-radius: 12px 3px 14px 4px / 4px 12px 3px 14px;
  background: var(--sticky-pink);
  color: var(--ink);
  transform: rotate(-0.8deg);
}

.wall-empty {
  margin: 30px 0 0;
  font-family: var(--hand);
  font-size: 1.6rem;
  text-align: center;
  color: var(--ink-faint);
}

.wall-empty[hidden] {
  display: none;
}

.wall-more-row {
  margin-top: 34px;
  text-align: center;
}

.btn-ghost {
  background: var(--paper);
  padding: 12px 24px;
  font-size: 1.25rem;
}

.wall-see-all {
  margin: 26px 0 0;
  text-align: center;
}

.wall-cta {
  margin-top: 44px;
  padding: 26px 30px;
  border: 2.5px dashed var(--ink);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
  background: var(--paper-deep);
  text-align: center;
}

.wall-cta p {
  margin: 0 0 18px;
  font-family: var(--hand);
  font-size: clamp(1.4rem, 3vw, 1.8rem);
  line-height: 1.15;
}

/* ---- Wall certificate internals ---- */
.cert-issuer {
  display: block;
  line-height: 1.25;
}

.cert-issuer-line {
  display: block;
}

.cert-avatar {
  flex: 0 0 auto;
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
  border: 2px solid var(--ink);
  background: #fff;
  overflow: hidden;
}

.cert-avatar svg {
  width: 100%;
  height: 100%;
  display: block;
}

.cert-charity {
  margin: 0 0 8px;
  font-family: var(--neat);
  font-size: 0.8rem;
  line-height: 1.25;
  color: #8a6a18;
}

.cert-thumb {
  flex: 0 0 auto;
  width: 72px;
  height: 54px;
  position: relative;
  border-radius: 3px;
  overflow: hidden;
  background:
    radial-gradient(120% 160% at 20% 15%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 45%),
    linear-gradient(135deg, #6b4428, #2e1d12 60%, #110b06);
}

.cert-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid rgba(251, 246, 230, 0.92);
  transform: translate(-42%, -50%);
}

.cert-tools {
  margin: 0 0 8px;
  font-family: var(--neat);
  font-size: 0.8rem;
  line-height: 1.25;
  color: var(--ink-soft);
}

.cert-credit {
  font-family: var(--neat);
  font-size: 0.85rem;
  color: var(--margin-red);
  margin-bottom: 6px;
}

.cert-credit b {
  font-family: var(--hand);
  font-size: 1.35em;
  font-weight: 700;
}

.cert-gift-flag {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: -22px;
  width: 110px;
  padding: 4px 0;
  background: var(--margin-red);
  color: #fff8ec;
  font-family: var(--type);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(-45deg);
  pointer-events: none;
}

.cert.is-gift {
  overflow: hidden;
}

.cert.is-gift .cert-head {
  padding-left: 46px;
}

.cert-gift-from b {
  font-family: var(--hand);
  font-size: 1.35em;
  font-weight: 700;
}

@media (max-width: 640px) {
  .nop-counter {
    padding: 18px;
  }

  .nop-counter-figure {
    flex: 1 1 100%;
  }

  .wall-card {
    transform: none;
  }

  .wall-cta {
    flex-direction: column;
    align-items: center;
  }
}

/* ============================================================
   Gifts
   ============================================================ */

.gift-teaser {
  text-align: center;
}

.gift-teaser .lede {
  max-width: 54ch;
  margin-left: auto;
  margin-right: auto;
}

.note-gift {
  right: clamp(-4px, 3vw, 60px);
  bottom: 26px;
  transform: rotate(-7deg);
}

.gift-form {
  max-width: 460px;
  margin: 56px auto 0;
  padding: 26px 30px 24px;
  border: var(--ink-line);
  background: var(--paper-deep);
  box-shadow: 4px 6px 0 rgba(25, 23, 18, 0.13);
  text-align: left;
}

.gift-form-title {
  margin: 0 0 6px;
  font-family: var(--hand);
  font-size: 1.5rem;
}

.gift-form label {
  display: block;
  margin: 14px 0 4px;
  font-family: var(--neat);
  font-size: 1rem;
  color: var(--ink-soft);
}

.gift-form input,
.gift-form textarea {
  width: 100%;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.15rem;
  line-height: 1.25;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  outline: none;
}

.gift-form textarea {
  resize: vertical;
}

.gift-form input:focus,
.gift-form textarea:focus {
  border-color: var(--margin-red);
  box-shadow: 0 0 0 3px rgba(217, 88, 77, 0.2);
}

.gift-form .btn {
  margin-top: 18px;
}

.booking-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.gift-preview {
  margin: 12px 0 0;
  font-family: var(--neat);
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.gift-from-preview {
  font-family: var(--hand);
  font-size: 1.3em;
  font-weight: 700;
  color: var(--margin-red);
}

@media (max-width: 640px) {
  .note-gift {
    position: static;
    width: auto;
    max-width: 240px;
    margin: 32px auto 0;
  }

  .gift-form {
    padding: 20px 20px 18px;
  }
}

/* ============================================================
   Pricing
   ============================================================ */

.prices {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 30px;
  align-items: stretch;
}

.tier-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 26px;
  background: var(--paper-deep);
  border: var(--ink-line);
  border-radius: 4px;
  box-shadow: 4px 6px 0 rgba(25, 23, 18, 0.13);
  font-family: var(--type);
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.tier-option:nth-child(1) {
  transform: rotate(-1.2deg);
}

.tier-option:nth-child(3) {
  transform: rotate(1.1deg);
}

.tier-option:hover {
  background: var(--marker);
  transform: rotate(0deg) translateY(-4px);
}

.tier-option.is-popular {
  border-width: 3.5px;
}

.tier-option.is-selected {
  border-color: var(--ink);
  transform: scale(1.03);
  box-shadow: 5px 7px 0 rgba(25, 23, 18, 0.16);
}

.tier-option.is-selected .price-tag {
  padding: 0 0.1em;
  border-radius: 0.3em 0.5em 0.3em 0.4em;
  background-image: linear-gradient(
    104deg,
    transparent 2%,
    var(--marker) 6%,
    var(--marker) 94%,
    transparent 98%
  );
  mix-blend-mode: multiply;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.price-name {
  font-family: var(--type);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--margin-red);
}

.price-tag {
  font-family: var(--neat);
  font-size: 40px;
  font-weight: 700;
  line-height: 1;
}

.tier-option small {
  font-size: 0.98rem;
  color: var(--ink-soft);
}

.price-title {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px dotted rgba(25, 23, 18, 0.4);
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.2;
  color: var(--margin-red);
}

.price-title b {
  display: block;
  font-size: 1.35em;
  color: var(--ink);
}

.ribbon {
  position: absolute;
  top: -16px;
  right: -14px;
  padding: 4px 14px;
  border: 2.5px solid var(--ink);
  border-radius: 40px 14px 34px 12px / 12px 32px 14px 38px;
  background: var(--marker);
  font-family: var(--hand);
  font-size: 1.15rem;
  font-style: normal;
  font-weight: 700;
  transform: rotate(8deg);
}

.tier-card {
  cursor: default;
}

.price-perks {
  margin: 4px 0 0;
  padding: 0 0 0 1.2em;
  display: grid;
  gap: 6px;
  font-size: 0.92rem;
}

.price-perks li::marker {
  color: var(--margin-red);
}

.btn-start {
  margin-top: 14px;
  align-self: flex-start;
}

.diy {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 14px 16px;
  max-width: 480px;
  margin: 34px auto 0;
  padding: 22px 26px;
  border: 2px dashed var(--ink);
  border-radius: 18px 220px 16px 240px / 240px 16px 220px 18px;
}

.diy > label {
  flex: 1 1 100%;
  text-align: center;
  font-family: var(--neat);
  font-size: 1.4rem;
}

.diy-input-row {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.diy-dollar {
  font-family: var(--hand);
  font-size: 1.5rem;
}

#diy-price {
  width: 120px;
  padding: 6px 10px;
  border: 2.5px solid var(--ink);
  border-radius: 4px;
  background: var(--paper);
  font-family: var(--hand);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--ink);
  outline: none;
}

#diy-price:focus {
  border-color: var(--margin-red);
  box-shadow: 0 0 0 3px rgba(217, 88, 77, 0.2);
}

.custom-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
  text-align: center;
}

.diy-note {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: min(300px, 88vw);
  margin: 34px auto 6px;
  padding: 24px 22px 20px;
  font-family: var(--hand);
  text-align: center;
  background: var(--sticky-yellow);
  box-shadow: 3px 5px 0 rgba(25, 23, 18, 0.15);
  transform: rotate(-1.6deg);
}

.diy-note[hidden] { display: none; }

.diy-note::before {
  content: "";
  position: absolute;
  top: -16px;
  left: 50%;
  width: 132px;
  height: 34px;
  background: var(--tape);
  border-left: 1px dashed rgba(25, 23, 18, 0.18);
  border-right: 1px dashed rgba(25, 23, 18, 0.18);
  box-shadow: 0 1px 3px rgba(25, 23, 18, 0.14);
  transform: translateX(-50%) rotate(-2.6deg);
}

.diy-note-price {
  font-size: 2.4rem;
  font-weight: 700;
  line-height: 1;
}

.diy-note p {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.25;
}

.diy-note textarea {
  width: 100%;
  padding: 8px 10px;
  border: 2px dashed var(--ink);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.45);
  font-family: var(--hand);
  font-size: 1.05rem;
  line-height: 1.4;
  color: var(--ink);
  resize: vertical;
  outline: none;
}

.diy-note textarea:focus {
  border-color: var(--margin-red);
}

.diy-note textarea::placeholder {
  color: var(--ink-faint);
}

.diy-note-err {
  color: var(--margin-red);
  font-size: 0.98rem;
  line-height: 1.2;
}

.diy-note-thanks {
  color: var(--ink-soft);
  font-size: 1.1rem;
}

@media (prefers-reduced-motion: no-preference) {
  .diy-note:not([hidden]) {
    animation: diy-note-pop 0.32s ease;
  }

  @keyframes diy-note-pop {
    from {
      transform: rotate(0.5deg) translateY(8px) scale(0.93);
      opacity: 0;
    }
    to {
      transform: rotate(-1.6deg) translateY(0) scale(1);
      opacity: 1;
    }
  }
}

.free-note {
  margin-top: 24px;
  font-family: var(--hand);
  font-size: 1.3rem;
  text-align: center;
}

/* ---- Utility ---- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   FAQ accordion
   ============================================================ */

.faq-list {
  max-width: 720px;
  margin: 30px auto 0;
}

.faq-item {
  border-bottom: 1px solid var(--rule);
}

.faq-item:first-child {
  border-top: 1px solid var(--rule);
}

.faq-q {
  display: block;
  width: 100%;
  padding: 16px 8px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--ink);
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: left;
  cursor: pointer;
  transition: color 0.2s ease;
}

.faq-q:hover {
  color: var(--margin-red);
}

.faq-q:focus-visible {
  outline: 2px dashed var(--margin-red);
  outline-offset: 2px;
}

.faq-a {
  display: none;
  padding: 0 8px 18px;
}

.faq-a p {
  margin: 0;
  max-width: 60ch;
  font-family: var(--neat);
  font-size: 1.05rem;
  line-height: 1.5;
  color: var(--ink-soft);
}

.faq-item.is-open .faq-q {
  border-radius: 0.3em 0.5em 0.3em 0.4em;
  background-image: linear-gradient(
    104deg,
    transparent 2%,
    var(--marker) 6%,
    var(--marker) 94%,
    transparent 98%
  );
  mix-blend-mode: multiply;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.faq-item.is-open .faq-a {
  display: block;
}

/* ============================================================
   Final CTA
   ============================================================ */

.final-cta {
  text-align: center;
}

.final-cta .stickman {
  margin: 0 auto 20px;
  font-size: clamp(1.4rem, 3.2vw, 2.2rem);
  line-height: 1.15;
  letter-spacing: 0.05em;
}

.final-cta h2 {
  margin-bottom: 0.3em;
}

.final-cta > p:not(.final-sub) {
  max-width: 46ch;
  margin: 0 auto;
  font-family: var(--neat);
  font-size: 1.05rem;
  color: var(--ink-soft);
}

.final-cta .btn {
  margin-top: 30px;
}

.final-sub {
  margin-top: 22px;
  font-family: var(--neat);
  font-size: 0.9rem;
  color: var(--ink-faint);
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-family: var(--neat);
}

.site-footer > span,
.pay-tagline {
  max-width: 60ch;
}

.site-email a {
  margin: 0;
  font-family: var(--type);
  font-size: 0.9rem;
}

.footer-legal {
  font-family: var(--type);
  font-size: 0.82rem;
}

.site-credit a {
  margin: 0;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

.pay-tagline {
  margin: 4px 0 0;
  font-family: var(--hand);
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
  color: var(--margin-red);
}

/* ---- Contact card ---- */
.contact-card {
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px var(--gutter);
  border-top: var(--ink-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px 40px;
}

.contact-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.4em;
}

.contact-nav a {
  font-family: var(--hand);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--ink);
  text-decoration: none;
}

.contact-nav a:hover {
  color: var(--margin-red);
}

.contact-details {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2em 1.6em;
  align-items: center;
}

.contact-details a,
.contact-details span {
  font-family: var(--neat);
  font-size: 1rem;
  color: var(--ink-soft);
  text-decoration: none;
}

.contact-details a:hover {
  color: var(--margin-red);
}

.contact-tagline {
  font-family: var(--hand);
  font-size: 1.15rem;
  color: var(--ink-soft);
}

.contact-instagram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  border-radius: 50%;
  color: var(--ink);
  transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.contact-instagram:hover {
  color: var(--margin-red);
  border-color: var(--margin-red);
  transform: rotate(-8deg) scale(1.05);
}

@media (max-width: 640px) {
  .contact-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .contact-nav,
  .contact-details {
    justify-content: center;
  }
}

.nop-legal-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed var(--rule);
}

.nop-legal-links a,
.nop-legal-link-button {
  margin: 0;
  padding: 0;
  background: none;
  border: 0;
  font-family: var(--neat);
  font-size: 0.85rem;
  color: var(--ink-soft);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.nop-legal-links a:hover,
.nop-legal-link-button:hover {
  color: var(--margin-red);
}

/* ---- DIY error ---- */
.diy-error {
  flex: 1 1 100%;
  margin: 0;
  min-height: 1.4em;
  font-family: var(--neat);
  font-size: 0.95rem;
  color: var(--margin-red);
  text-align: center;
}

/* === legal pages === */
.topbar-legal {
  justify-content: flex-start;
  gap: var(--gutter);
  padding: 20px var(--gutter);
}
.topbar-legal .logo-link { flex: 0 0 auto; }
.topbar-legal .logo-link img,
.topbar-legal .logo-link svg {
  height: 40px;
  width: auto;
}
.topbar-legal nav a {
  font-family: var(--hand);
  color: var(--ink-soft);
  text-decoration: none;
}
.topbar-legal nav a:hover { color: var(--ink); text-decoration: underline wavy var(--margin-red); }

.legal { max-width: var(--page); margin: 0 auto; padding: var(--gutter) var(--gutter) 80px; }
.legal-inner { max-width: 760px; }
.legal h1 {
  font-family: var(--hand);
  font-weight: 700;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.1;
  margin-bottom: 1.5rem;
  color: var(--ink);
}
.legal p { margin-bottom: 1.25rem; line-height: 1.65; color: var(--ink); }
.legal-back {
  display: inline-block;
  margin-top: 2rem;
  font-family: var(--hand);
  color: var(--ink-soft);
  text-decoration: underline wavy var(--margin-red);
  text-decoration-thickness: 2px;
}
.legal-back:hover { color: var(--ink); }

.site-footer-legal {
  text-align: center;
  padding: 40px var(--gutter);
  color: var(--ink-soft);
  font-size: 0.85rem;
  line-height: 1.6;
}
.site-footer-legal p { margin: 0.25rem 0; }
.site-footer-legal a { color: var(--ink-soft); text-decoration: underline; }
.site-footer-legal a:hover { color: var(--ink); }
.site-footer-legal .sr-only { /* already defined in main styles; repeat for safety if local scope */ }

/* ---- Hero reel frame ---- */
.reel-frame {
  position: relative;
  max-width: 420px;
  width: 100%;
  margin: 0 auto;
  padding: 14px 18px 18px;
  text-align: left;
  background: var(--paper);
  border: 1px solid rgba(25, 23, 18, 0.12);
  box-shadow: 6px 6px 0 rgba(25, 23, 18, 0.08);
  transform: rotate(-0.5deg);
}

.reel-frame::before {
  content: "";
  position: absolute;
  top: -14px;
  left: 50%;
  width: 120px;
  height: 30px;
  background: var(--tape);
  border-left: 1px dashed rgba(25, 23, 18, 0.16);
  border-right: 1px dashed rgba(25, 23, 18, 0.16);
  box-shadow: 0 1px 3px rgba(25, 23, 18, 0.14);
  transform: translateX(-50%) rotate(-2deg);
}

.reel-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1em;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 6px;
  margin-bottom: 12px;
  font-family: var(--neat);
  font-size: 0.82rem;
  color: var(--ink-soft);
  letter-spacing: 0.03em;
}

.reel-poster {
  position: relative;
  aspect-ratio: 21 / 9;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(120% 160% at 18% 12%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #6b4428 0%, #2e1d12 55%, #110b06 100%);
}

.reel-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.reel-play {
  position: relative;
  z-index: 1;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

.reel-play svg { width: 22px; height: 22px; margin-left: 3px; }

.reel-play:hover { transform: scale(1.06); }

.reel-poster-note {
  position: absolute;
  right: 10px;
  bottom: 8px;
  margin: 0;
  font-family: var(--hand);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: 0.04em;
  z-index: 1;
}

.reel-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2em 1.4em;
  font-size: 0.84rem;
  margin: 12px 0 0;
}

.reel-meta div { display: flex; gap: 0.4em; }
.reel-meta dt { color: var(--ink-faint); }
.reel-meta dd { font-family: var(--neat); }

.reel-statement {
  font-size: 0.84rem;
  color: var(--ink);
  border-top: 1px dashed var(--rule);
  border-bottom: 1px dashed var(--rule);
  padding: 8px 0;
  margin-top: 10px;
}

/* ---- Reel section ---- */
.reel-section {
  text-align: center;
}

.torn-edge {
  position: absolute;
  top: -12px;
  left: 0;
  width: 100%;
  height: 48px;
  pointer-events: none;
  user-select: none;
}

@media (max-width: 1439px) {
  #reel .pencil-slate {
    top: 48px;
    width: 108px;
  }
}

.torn-edge svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: var(--paper-deep);
  filter: drop-shadow(0 4px 3px rgba(25, 23, 18, 0.2));
}

.reel-player {
  position: relative;
  max-width: 900px;
  width: 100%;
  margin: clamp(1.5rem, 3vh, 2.5rem) auto 0;
  aspect-ratio: 16 / 9;
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(25, 23, 18, 0.15);
  box-shadow: 8px 8px 0 rgba(25, 23, 18, 0.08);
  background:
    radial-gradient(120% 160% at 18% 12%, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0) 42%),
    linear-gradient(135deg, #6b4428 0%, #2e1d12 55%, #110b06 100%);
}

.reel-player video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}

.reel-player::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px);
  pointer-events: none;
}

.reel-player.is-playing::after {
  display: none;
}

.reel-bigplay {
  position: absolute;
  z-index: 2;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 3px 14px rgba(0, 0, 0, 0.45);
}

.reel-bigplay svg {
  width: 30px;
  height: 30px;
  margin-left: 4px;
}

.reel-bigplay:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.reel-bigplay[hidden],
.reel-missing[hidden] {
  display: none;
}

.reel-missing {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  margin: 0;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(17, 11, 6, 0.82);
  color: rgba(251, 246, 230, 0.95);
  font-family: var(--neat);
  font-size: 0.82rem;
  white-space: nowrap;
}

.reel-caption {
  margin-top: 1.4em;
}

/* ---- Sticky notes kept in flow (short captions/callouts) ---- */
.hero-foot.sticky-note,
.reel-caption.sticky-note {
  position: relative;
  width: auto;
  display: inline-block;
}

.hero-foot.sticky-note {
  max-width: 300px;
  transform: rotate(-1.5deg);
}

.reel-caption.sticky-note {
  max-width: 360px;
  transform: rotate(1.2deg);
}

/* ---- Rare hand-drawn pen circle accent ---- */
.pen-here {
  position: relative;
  display: inline-block;
}

.pen-oval {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 165%;
  transform: translate(-50%, -50%) rotate(-2deg);
  color: var(--margin-red);
  overflow: visible;
  pointer-events: none;
}

/* ============================================================
   Scroll-triggered single reveals (driven by script.js)
   One-shot per element, triggered the first time it enters the
   viewport. Only opacity / transform / background-size / stroke
   animate — never layout. Hidden states & motion are gated behind
   html.js (no-JS fallback shows everything) and inside
   prefers-reduced-motion: no-preference (reduced motion shows the
   final state immediately).
   ============================================================ */

html.js .pen-oval ellipse {
  transition: stroke-dashoffset 0.6s cubic-bezier(0.23, 1, 0.32, 1) 0.22s,
              opacity 0.4s ease 0.22s;
}

@media (prefers-reduced-motion: no-preference) {

  /* ---- initial, pre-reveal states ---- */
  html.js .marked,
  html.js .sticker-hero-1,
  html.js .sticker-hero-2,
  html.js .sticker-spec,
  html.js .cert-stamp,
  html.js .sticky-note,
  html.js .wall-card .cert-slot,
  html.js .comic-strip .panel,
  html.js .pen-oval ellipse:last-child {
    opacity: 0;
  }

  html.js .marked {
    background-size: 0% 100%;
  }

  /* ---- keyframes ---- */
  @keyframes io-rise {
    from { opacity: 0; transform: translateY(16px) rotate(var(--io-rot, 0deg)); }
    to   { opacity: 1; transform: translateY(0)    rotate(var(--io-rot, 0deg)); }
  }

  @keyframes io-stick {
    from { opacity: 0; transform: translateY(12px) rotate(-12deg); }
    to   { opacity: 1; transform: translateY(0)     rotate(var(--io-rot, 0deg)); }
  }

  @keyframes io-stamp {
    from { opacity: 0; transform: scale(0.94) rotate(var(--io-rot, 0deg)); }
    65%  { opacity: 1; transform: scale(1.035) rotate(var(--io-rot, 0deg)); }
    to   { opacity: var(--io-op, 1); transform: scale(1) rotate(var(--io-rot, 0deg)); }
  }

  /* ---- resting rotations, as custom props (kept in sync with the
         base transform rules so reveal state == rested state) ---- */
  html.js .sticker-hero-1      { --io-rot: 0deg; }
  html.js .sticker-hero-2      { --io-rot: 2deg; }
  html.js .sticker-spec        { --io-rot: 14deg; }
  html.js .cert-stamp          { --io-rot: -6deg; --io-op: 0.85; }
  html.js .hero-foot.sticky-note   { --io-rot: -1.5deg; }
  html.js .reel-caption.sticky-note { --io-rot: 1.2deg; }
  html.js .note-why            { --io-rot: 6deg; }
  html.js .note-gift           { --io-rot: -7deg; }
  html.js .comic-strip .panel:nth-child(1) { --io-rot: -1.4deg; }
  html.js .comic-strip .panel:nth-child(2) { --io-rot: 0.7deg; }
  html.js .comic-strip .panel:nth-child(3) { --io-rot: -0.6deg; }

  /* ---- revealed states ---- */
  html.js .marked.in-view {
    opacity: 1;
    background-size: 100% 100%;
    transition: background-size 0.6s cubic-bezier(0.23, 1, 0.32, 1),
                opacity 0.3s ease;
  }

  html.js .sticker.in-view,
  html.js .cert-stamp.in-view {
    animation: io-stamp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
  }

  html.js .sticky-note.in-view {
    animation: io-stick 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
  }

  html.js .wall-card .cert-slot.in-view,
  html.js .comic-strip .panel.in-view {
    animation: io-rise 0.6s cubic-bezier(0.23, 1, 0.32, 1) both;
  }

  html.js .pen-here.in-view .pen-oval ellipse:last-child { opacity: 0.5; }

  /* ---- staggering ---- */
  html.js .comic-strip .panel:nth-child(1).in-view { animation-delay: 0ms; }
  html.js .comic-strip .panel:nth-child(2).in-view { animation-delay: 150ms; }
  html.js .comic-strip .panel:nth-child(3).in-view { animation-delay: 300ms; }

  html.js .wall-card:nth-child(1) .cert-slot.in-view { animation-delay: 0ms; }
  html.js .wall-card:nth-child(2) .cert-slot.in-view { animation-delay: 100ms; }
  html.js .wall-card:nth-child(3) .cert-slot.in-view { animation-delay: 200ms; }
  html.js .wall-card:nth-child(4) .cert-slot.in-view { animation-delay: 300ms; }

  html.js .wall-card:nth-child(1) .cert-stamp.in-view { animation-delay: 120ms; }
  html.js .wall-card:nth-child(2) .cert-stamp.in-view { animation-delay: 220ms; }
  html.js .wall-card:nth-child(3) .cert-stamp.in-view { animation-delay: 320ms; }
  html.js .wall-card:nth-child(4) .cert-stamp.in-view { animation-delay: 420ms; }

  html.js .sticker-hero-1.in-view { animation-delay: 420ms; }
  html.js .sticker-hero-2.in-view { animation-delay: 540ms; }
  html.js .sticker-spec.in-view   { animation-delay: 260ms; }

  html.js .torn-edge {
    clip-path: inset(-8px 100% -12px 0);
  }

  html.js .torn-edge.in-view {
    clip-path: inset(-8px 0 -12px 0);
    transition: clip-path 800ms linear;
  }

  html.js .hero-foot.in-view    { animation-delay: 480ms; }
  html.js .reel-caption.in-view { animation-delay: 200ms; }
  html.js .note-why.in-view     { animation-delay: 260ms; }
  html.js .note-gift.in-view    { animation-delay: 220ms; }
}

/* ---- Logo: ink tian with inked flame tongues ---- */
.topbar .logo-flames .logo-flame,
.topbar-legal .logo-flames .logo-flame {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  mix-blend-mode: multiply;
  animation: logo-flame-flicker 1.9s cubic-bezier(0.77, 0, 0.175, 1) infinite;
}
.topbar .logo-flames .logo-flame:nth-child(1),
.topbar-legal .logo-flames .logo-flame:nth-child(1) {
  animation-duration: 1.8s;
  animation-delay: -0.35s;
}
.topbar .logo-flames .logo-flame:nth-child(2),
.topbar-legal .logo-flames .logo-flame:nth-child(2) {
  animation-duration: 2.2s;
  animation-delay: -0.9s;
}
.topbar .logo-flames .logo-flame:nth-child(3),
.topbar-legal .logo-flames .logo-flame:nth-child(3) {
  animation-duration: 2s;
  animation-delay: -0.55s;
}
@keyframes logo-flame-flicker {
  0%, 100% { transform: rotate(-2.5deg) scaleX(1) scaleY(1);    opacity: 0.55; }
  25%      { transform: rotate(1.8deg)  scaleX(0.96) scaleY(1.08); opacity: 0.9; }
  50%      { transform: rotate(-0.6deg) scaleX(1.04) scaleY(0.95); opacity: 0.68; }
  75%      { transform: rotate(2.2deg)  scaleX(0.97) scaleY(1.05); opacity: 0.85; }
}

@media (prefers-reduced-motion: reduce) {
  .topbar .logo-flames .logo-flame,
  .topbar-legal .logo-flames .logo-flame {
    animation: none;
    opacity: 0.6;
  }
}

/* ============================================================
   Timeline rail — the editing-timeline signature move.
   Fixed film-strip on the right edge; scroll scrubs the red
   playhead and lights the sprocket frames. Pure position
   feedback driven by a --progress custom property set in
   script.js (transform only). Hidden without JS.
   ============================================================ */

html:not(.js) .timeline-rail {
  display: none;
}

.timeline-rail {
  position: fixed;
  right: 24px;
  bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  width: min(360px, calc(100vw - 32px));
  pointer-events: none;
}

body:has(.timeline-rail) {
  padding-bottom: calc(190px + env(safe-area-inset-bottom));
}

.rail-strip {
  position: relative;
  width: 100%;
  height: 146px;
  background: var(--paper);
  border: 2px solid var(--ink);
  border-radius: 7px;
  box-shadow: 2px 3px 0 rgba(25, 23, 18, 0.14);
  overflow: hidden;
}

.rail-frames {
  position: absolute;
  inset: 5px 8px auto;
  height: 10px;
  display: grid;
  grid-template-columns: repeat(22, 1fr);
  gap: 3px;
}

.rail-frames i {
  border: 1.5px solid var(--ink-faint);
  border-radius: 2.5px;
  transition: background-color 0.25s ease, border-color 0.25s ease;
}
.rail-frames i:nth-child(odd)  { transform: rotate(2deg); }
.rail-frames i:nth-child(even) { transform: rotate(-1.5deg); }
.rail-frames i.lit {
  background: var(--marker);
  border-color: var(--ink);
}

.rail-playhead {
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 6px;
  width: 2px;
  background: var(--margin-red);
  transform: translateX(0);
}
.rail-playhead::before {
  content: "";
  position: absolute;
  top: 0;
  left: -3px;
  width: 8px;
  height: 6px;
  background: var(--margin-red);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.rail-tracks {
  position: absolute;
  inset: 23px 8px 8px;
  display: grid;
  grid-template-rows: repeat(5, 1fr);
  gap: 3px;
}
.rail-track { border-bottom: 1px dashed var(--ink-faint); }
.rail-clip {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 100%;
  padding: 0 5px;
  border: 1px solid var(--ink-soft);
  border-radius: 2px 4px 2px 3px;
  color: var(--ink);
  font-family: var(--neat);
  font-size: 12px;
  line-height: 1;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(5px) scale(0.97);
  transition: opacity 200ms cubic-bezier(0.23, 1, 0.32, 1), transform 200ms cubic-bezier(0.23, 1, 0.32, 1);
}
.rail-clip.is-added { opacity: 1; transform: translateY(0) scale(1); }
.clip-footage { width: 92%; background: var(--sticky-blue); }
.clip-sfx { margin-left: 12%; width: 42%; background: var(--marker-2); }
.clip-adjustment { margin-left: 44%; width: 44%; background: #dacbe7; }
.clip-music { margin-left: 4%; width: 78%; background: #c9dbc0; }
.clip-captions { margin-left: 57%; width: 39%; background: var(--sticky-yellow); }
.rail-clip svg { width: 100%; min-width: 0; height: 10px; fill: none; stroke: currentColor; stroke-width: 0.8; }

.rail-timecode {
  font-family: var(--type);
  font-size: 0.62rem;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1.5px solid var(--ink);
  border-radius: 4px;
  padding: 2px 6px;
  transform: rotate(1.2deg);
  white-space: nowrap;
}
.rail-tc-sep, .rail-tc-total { opacity: 0.55; }

body:has(input:focus, textarea:focus) .timeline-rail { visibility: hidden; }

@media (max-width: 640px) {
  .timeline-rail {
    right: 50%;
    transform: translateX(50%);
  }
  .rail-strip { height: 132px; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-clip { transition: none; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rail-frames i { transition: none; }
}

@media print {
  .timeline-rail { display: none; }
}

/* ---- section labels as timeline clips: sprocket strip sweeps lit ---- */
.section-label::after {
  content: "";
  display: block;
  margin-top: 7px;
  width: 138px;
  max-width: 60vw;
  height: 12px;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background-image:
    repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 13.8px),
    linear-gradient(90deg, var(--marker), var(--marker));
  background-repeat: no-repeat;
  background-size: 100% 100%, 100% 100%;
  mix-blend-mode: multiply;
}

@media (prefers-reduced-motion: no-preference) {
  html.js .section-label::after {
    background-size: 100% 100%, 0% 100%;
  }
  html.js .section-label.in-view::after {
    background-size: 100% 100%, 100% 100%;
    transition: background-size 0.7s cubic-bezier(0.23, 1, 0.32, 1) 0.15s;
  }
}

.pencil-art {
  position: absolute;
  left: -132px;
  width: 126px;
  height: auto;
  color: #4a4234;
  opacity: 0.72;
  mix-blend-mode: multiply;
  pointer-events: none;
  user-select: none;
  overflow: visible;
}

.pencil-line {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 7.3 0.5 3.1 0.4 12.2 0.7;
}

.pencil-echo {
  fill: none;
  stroke: currentColor;
  stroke-width: 0.75;
  stroke-linecap: round;
  stroke-dasharray: 2.3 1.1 5.2 0.7;
  opacity: 0.6;
}

.pencil-slate { top: 112px; transform: rotate(-5deg); }
.pencil-audio { top: 160px; transform: rotate(7deg); }
.pencil-edit { top: 160px; transform: rotate(-8deg); }
.pencil-scissors { top: 210px; transform: rotate(4deg); }
.pencil-coffee { top: 96px; transform: rotate(-6deg); }
.pencil-player { top: 260px; transform: rotate(8deg); }
.pencil-bubble { top: 150px; transform: rotate(-4deg); }
.pencil-render { top: 200px; transform: rotate(5deg); }

@media (min-width: 1600px) {
  .pencil-art { left: -178px; width: 164px; }
}

@media (max-width: 1439px) {
  .pencil-audio, .pencil-edit, .pencil-scissors, .pencil-player, .pencil-bubble, .pencil-render { display: none; }
  .pencil-coffee {
    left: auto;
    right: var(--gutter);
    top: 16px;
    width: 110px;
    opacity: 0.62;
  }
  #reel { padding-top: 170px; }
  .pencil-slate {
    left: auto;
    right: var(--gutter);
    top: 16px;
    width: 126px;
    opacity: 0.64;
  }
  #why { padding-top: 190px; }
}

@media print {
  .pencil-art { display: none; }
}

/* ---- Creation fresco: sepia interlude, blends into the paper ---- */
.creation {
  position: relative;
  max-width: var(--page);
  margin: 0 auto;
  padding: 0 var(--gutter) 30px;
}
.creation-frame {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
}
.creation-frame img {
  display: block;
  width: 100%;
  height: auto;
  mix-blend-mode: multiply;
  opacity: 0.88;
}
.creation-frame figcaption {
  position: relative;
  z-index: 1;
  margin-top: -25px;
  padding-bottom: 8px;
  text-align: center;
  font-size: 1rem;
  color: var(--ink-soft);
}
@media (max-width: 640px) {
  .creation { padding: 0 0 20px; }
  .creation-frame figcaption { margin-top: -10px; font-size: 0.85rem; padding: 0 18px; }
}
@media (prefers-reduced-motion: no-preference) {
  .creation.is-drawing img {
    animation: graphite-reveal 1.4s linear both;
  }
  @keyframes graphite-reveal {
    from { clip-path: inset(0 100% 0 0); opacity: 0.35; }
    to { clip-path: inset(0); opacity: 0.88; }
  }
}
