/* ==========================================================================
   Request slip ("Can't find it? We'll track it down.") for hero-b.html only.
   Loaded after theme.css and hero-b.css. Scoped to .section--request-slip.
   ========================================================================== */

.section--request-slip {
  --slip-ink: #141112;
  --slip-paper: #f6f0e1;
  --slip-rule: rgb(40 80 150 / 0.13);
  --stamp-red: #d10411;
  position: relative;
  isolation: isolate;
  overflow-x: clip;             /* rotated slip never causes sideways scroll */
  background: var(--slip-ink);
  color: #fff;
}
.section--request-slip :focus-visible { outline-color: #fff; }
.section--request-slip .slip :focus-visible { outline-color: var(--c-focus); }

/* Dark halftone + grain (same approach as the hero-b band, light dots on dark) */
.section--request-slip::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(circle, rgb(255 255 255 / 0.07) 0 1.2px, transparent 1.7px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse 60% 90% at 78% 50%, #000 15%, transparent 80%);
          mask-image: radial-gradient(ellipse 60% 90% at 78% 50%, #000 15%, transparent 80%);
}
.section--request-slip::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.12; mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .5 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.rslip { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-7); align-items: center; }

/* ---------- Copy ---------- */
.rslip__title {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.6rem); line-height: 1.1; max-width: 20ch;
}
.rslip__hl { position: relative; display: inline-block; white-space: nowrap; }
.rslip__scribble {
  position: absolute; left: -3%; bottom: -0.2em;
  width: 106%; height: 0.36em; overflow: visible;
  fill: none; stroke: var(--c-red); stroke-width: 6; stroke-linecap: round; stroke-linejoin: round;
}
.rslip__scribble path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.rslip.js-draw .rslip__scribble path { stroke-dashoffset: 1; transition: stroke-dashoffset 1100ms cubic-bezier(0.6, 0.05, 0.3, 1) 200ms; }
.rslip.js-draw.is-inview .rslip__scribble path { stroke-dashoffset: 0; }

.rslip__lead { margin-top: var(--sp-5); font-size: var(--fs-md); max-width: 42ch; color: #ecebe8; }

.rslip__steps { list-style: none; margin: var(--sp-6) 0 0; padding: 0; display: grid; gap: var(--sp-4); }
.rslip__steps li {
  display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); align-items: baseline;
  font-size: var(--fs-md); font-weight: 600; line-height: 1.35;
}
.rslip__num {
  font-family: var(--f-marker); font-size: 2.1rem; line-height: 1; color: var(--c-red);
  transform: rotate(-6deg); display: inline-block;
}
.rslip__aside {
  margin-top: var(--sp-5); font-family: var(--f-mono); font-size: var(--fs-xs); color: #c9c6c0;
}

/* ---------- Side: note + slip ---------- */
.rslip__side { position: relative; display: grid; justify-items: center; }
.rslip__note {
  justify-self: start;
  display: inline-flex; align-items: flex-end; gap: var(--sp-2);
  margin: 0 0 var(--sp-2) var(--sp-4);
  font-family: var(--f-marker); font-size: 1.25rem; color: #fff;
  transform: rotate(-4deg);
}
.rslip__note svg { width: 52px; height: 32px; color: var(--c-red); transform: scale(-1, -1) translateY(-14px); flex-shrink: 0; }

.slip-wrap {
  width: 100%; max-width: 500px;
  transform: rotate(-1deg);
  filter: drop-shadow(0 2px 0 rgb(0 0 0 / 0.25)) drop-shadow(0 22px 30px rgb(0 0 0 / 0.45));
}
.slip {
  position: relative;
  padding: 36px 20px 24px 34px;
  color: var(--slip-ink);
  background:
    linear-gradient(90deg, transparent 22px, rgb(209 4 17 / 0.35) 22px 23.5px, transparent 23.5px), /* margin line */
    repeating-linear-gradient(180deg, transparent 0 31px, var(--slip-rule) 31px 32px) 0 96px / 100% calc(100% - 96px) no-repeat,
    linear-gradient(175deg, #faf5e9, var(--slip-paper) 60%, #efe6d2);
  /* perforated top edge */
  -webkit-mask: radial-gradient(circle at 50% 0, transparent 5px, #000 5.6px) 0 0 / 15px 100% repeat-x;
          mask: radial-gradient(circle at 50% 0, transparent 5px, #000 5.6px) 0 0 / 15px 100% repeat-x;
}
.slip::before { /* tear-off line under the perforations */
  content: ""; position: absolute; left: 10px; right: 10px; top: 14px;
  border-top: 1.5px dashed rgb(20 17 18 / 0.25);
}

.slip__head {
  font-family: var(--f-mono); font-size: var(--fs-2xs); letter-spacing: 0.08em; text-transform: uppercase;
  color: #5c564b; padding-right: 92px;
}
.slip__title {
  margin-top: 6px; padding-right: 92px; padding-bottom: 8px;
  font-family: var(--f-ui); font-weight: 800; font-stretch: 125%;
  font-size: 1.35rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.1;
  border-bottom: 3px double var(--slip-ink);
}

/* Stamp */
.slip__stamp {
  --rot: 12deg;
  position: absolute; z-index: 2; top: 26px; right: 14px;
  width: 92px; height: 92px;
  display: grid; place-items: center; text-align: center;
  padding: 14px;
  border: 3.5px solid var(--stamp-red); border-radius: 50%;
  box-shadow: inset 0 0 0 4px var(--slip-paper), inset 0 0 0 6px var(--stamp-red);
  color: var(--stamp-red);
  font-family: var(--f-ui); font-weight: 900; font-stretch: 80%;
  font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; line-height: 1.05;
  opacity: 0.82; mix-blend-mode: multiply;
  transform: rotate(var(--rot));
  /* ink texture: speckled alpha from SVG noise */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='s'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='2' seed='7'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.4 1.75'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23s)'/%3E%3C/svg%3E");
}
.slip__stamp.is-sent { --rot: -9deg; font-size: 0.86rem; }
.slip__stamp.is-pressed { animation: stamp-press 200ms cubic-bezier(0.3, 0, 0.2, 1) both; }
@keyframes stamp-press {
  from { transform: rotate(var(--rot)) scale(1.3); opacity: 0.3; }
  to { transform: rotate(var(--rot)) scale(1); opacity: 0.82; }
}

/* Form on the slip */
.slip__form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin-top: var(--sp-4); }
.slip__field { display: grid; gap: 2px; align-content: start; }
.slip__field label {
  font-family: var(--f-mono); font-size: var(--fs-2xs); font-weight: 500;
  letter-spacing: 0.1em; text-transform: uppercase; color: #4a453c;
}
.slip__req { color: var(--stamp-red); }
.slip__field input,
.slip__field select {
  width: 100%; min-height: 44px; padding: 4px 2px 2px;
  background: transparent; color: var(--slip-ink);
  border: 0; border-bottom: 2px solid var(--slip-ink); border-radius: 0;
}
.slip__field input { font-family: var(--f-marker); font-size: 1.15rem; letter-spacing: 0.02em; }
.slip__field input::placeholder { color: #8b8476; opacity: 1; }
.slip__field select {
  font-family: var(--f-ui); font-size: var(--fs-base); font-weight: 600;
  appearance: none; -webkit-appearance: none; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23141112' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 4px center / 18px no-repeat;
}
.slip__field input:focus, .slip__field select:focus { outline: none; border-bottom-color: var(--stamp-red); background-color: rgb(255 255 255 / 0.5); }
.slip__field input:focus-visible, .slip__field select:focus-visible { outline: 3px solid var(--c-focus); outline-offset: 2px; }
.slip__field input[aria-invalid="true"] { border-bottom-color: var(--stamp-red); }
.slip__err { font-size: var(--fs-xs); font-weight: 700; color: #b0030e; margin-top: 2px; }
.slip__send { margin-top: 6px; }
.slip__fine { font-family: var(--f-mono); font-size: var(--fs-2xs); color: #5c564b; }

.slip__done { margin-top: var(--sp-6); padding-bottom: var(--sp-4); }
.slip__done:focus { outline: none; }
.slip__thanks { font-family: var(--f-marker); font-size: 1.5rem; line-height: 1.35; overflow-wrap: anywhere; }
.slip__thanks span { color: var(--stamp-red); }
.slip__again {
  margin-top: var(--sp-4); padding: 8px 0; background: none; border: 0; cursor: pointer;
  font-weight: 700; text-decoration: underline; text-underline-offset: 3px; color: var(--slip-ink);
}
.slip__again:hover { color: var(--stamp-red); }

/* ---------- Breakpoints ---------- */
@media (min-width: 600px) {
  .slip::before { left: 12px; right: 12px; }
  .slip {
    padding: 40px 30px 28px 44px;
    background:
      linear-gradient(90deg, transparent 28px, rgb(209 4 17 / 0.35) 28px 29.5px, transparent 29.5px),
      repeating-linear-gradient(180deg, transparent 0 31px, var(--slip-rule) 31px 32px) 0 104px / 100% calc(100% - 104px) no-repeat,
      linear-gradient(175deg, #faf5e9, var(--slip-paper) 60%, #efe6d2);
  }
  .slip__form { grid-template-columns: 1fr 1fr; gap: 16px 22px; }
  .slip__send, .slip__fine { grid-column: 1 / -1; }
  .slip__stamp { width: 112px; height: 112px; font-size: 0.95rem; top: 24px; right: 20px; }
  .slip__head, .slip__title { padding-right: 116px; }
  .slip__title { font-size: 1.6rem; }
}
@media (min-width: 1024px) {
  .rslip { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--sp-8); }
  .slip-wrap { transform: rotate(-2deg); }
  .rslip__note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .rslip.js-draw .rslip__scribble path { stroke-dashoffset: 0; transition: none; }
  .slip__stamp.is-pressed { animation: none; }
}

.slip__form[hidden] { display: none; }
