/* ==========================================================================
   KASI KICKS — SOWETO SNEAKER WASH
   Design system derived from the Wash Bench & Drying Rail concept.
   ========================================================================== */

:root {
  /* Subject palette — derived from Soweto sneaker-wash materials */
  --cobalt: #1438B8;        /* Wash-bucket enamel cobalt — primary hero ground */
  --cobalt-bright: #1E4BE0; /* Upper-left studio wash light */
  --cobalt-deep: #0C2377;   /* Wet basin shadow */
  --concrete: #F3EFE6;      /* Sun-bleached Soweto stoep concrete */
  --concrete-line: #D8D0C1; /* Fine hairline divider on concrete */
  --clay: #C84824;          /* Highveld red clay — Scene 5 ground & stamp ink */
  --clay-deep: #9E3316;     /* Pressed clay active state */
  --manila: #ECC054;        /* Claim-tag cardstock */
  --manila-dark: #D5A332;   /* Tag shadow / edge */
  --tar: #141413;           /* Wet dark slate bench & primary dark ink */
  --tar-line: #2E2D2A;      /* Hairline rule on dark bench */
  --foam: #FAF8F3;          /* Soap foam white & paper claim slip */
  --muted-ink: #57524A;     /* Secondary copy on concrete (> 6.5:1) */
  --muted-light: #CCC6BB;   /* Secondary copy on tar (> 10:1) */

  /* Typefaces */
  --font-display: 'Big Shoulders Display', 'Arial Narrow', Impact, sans-serif;
  --font-body: 'DM Sans', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, SFMono-Regular, monospace;

  /* Intentional spacing scale */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.875rem;
  --s-4: 1.25rem;
  --s-5: 2rem;
  --s-6: 3.25rem;
  --s-7: 5rem;
  --s-8: 7.5rem;
  --gutter: clamp(1.25rem, 4vw, 3.5rem);
  --max-w: 1380px;

  /* Motion vocabulary (2 eases max) */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.175, 0.885, 0.32, 1.275);

  /* Unified directional studio shadow (upper-left 45deg key light) */
  --shoe-shadow-cobalt: drop-shadow(18px 26px 24px rgb(6 14 54 / 0.5));
  --shoe-shadow-concrete: drop-shadow(14px 20px 18px rgb(28 24 20 / 0.24));
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background-color: var(--tar);
  color: var(--tar);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  background-color: var(--concrete);
  color: var(--tar);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  timeline-scope: --hero-out;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--manila);
  outline-offset: 3px;
}

.scene-shelf :focus-visible,
.scene-soweto :focus-visible,
.claim-slip :focus-visible {
  outline-color: var(--cobalt);
}

.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;
}

.skip-link {
  position: fixed;
  top: -100px;
  left: var(--gutter);
  z-index: 200;
  background: var(--manila);
  color: var(--tar);
  padding: 0.75rem 1.25rem;
  font-weight: 700;
  text-decoration: none;
  transition: top 0.2s var(--ease-out);
}
.skip-link:focus {
  top: 1rem;
}

/* ==========================================================================
   WHOLE-PAGE SCROLL PROGRESS (native CSS scroll() timeline)
   ========================================================================== */
.scroll-progress {
  display: none;
  position: fixed;
  inset: 0 0 auto;
  height: 3px;
  background: var(--manila);
  transform-origin: 0 50%;
  z-index: 120;
  pointer-events: none;
}

@keyframes fill-bar {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .scroll-progress {
      display: block;
      animation: fill-bar linear both;
      animation-timeline: scroll(root block);
    }
  }
}

/* ==========================================================================
   ENTRY REVEALS (Reading rule: finishes at entry 26vh, well before mid-screen)
   ========================================================================== */
@keyframes rise {
  from { opacity: 0; transform: translateY(1.25rem); }
  to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: rise linear both;
      animation-timeline: view();
      animation-range: entry calc(var(--i, 0) * 2vh) entry calc(20vh + var(--i, 0) * 2vh);
    }
  }
}

/* Fallback when animation-timeline: view() is unsupported (e.g. Firefox stable) */
.io-reveal .reveal {
  opacity: 0;
  transform: translateY(1.25rem);
  transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 60ms);
}
.io-reveal .reveal.is-in {
  opacity: 1;
  transform: none;
}

/* ==========================================================================
   MINIMAL TOP BENCH HEADER
   ========================================================================== */
.bench-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 80;
  padding: 0.9rem var(--gutter);
  color: var(--foam);
  background-color: transparent;
  background-image: linear-gradient(to bottom, rgb(12 35 119 / 0.72), rgb(12 35 119 / 0));
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s var(--ease-out), border-color 0.2s var(--ease-out);
}

.bench-header.is-scrolled {
  background-color: rgb(20 20 19 / 0.94);
  background-image: none;
  backdrop-filter: blur(10px);
  border-bottom-color: rgb(250 248 243 / 0.12);
}

/* Native CSS scroll-driven header darkening BEFORE the light shelf ever touches the header */
@keyframes header-darken {
  from {
    background-color: transparent;
    border-bottom-color: transparent;
  }
  to {
    background-color: rgb(20 20 19 / 0.95);
    border-bottom-color: rgb(250 248 243 / 0.12);
  }
}

@supports (animation-timeline: view()) {
  .scene-wash {
    view-timeline: --hero-out block;
  }

  .bench-header {
    background-image: none;
    animation: header-darken linear both;
    animation-timeline: --hero-out;
    animation-range: exit 72% exit 88%;
  }
}

.bench-header__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}

.wordmark {
  display: inline-flex;
  align-items: baseline;
  gap: 0.6rem;
  text-decoration: none;
}

.wordmark__name {
  font-family: var(--font-display);
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 0.02em;
}

.wordmark__place {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  opacity: 0.8;
}

.bench-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.9rem, 2.2vw, 2rem);
}

.bench-nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  opacity: 0.88;
  padding-block: 0.4rem;
  position: relative;
  transition: opacity 0.2s var(--ease-out);
}

.bench-nav__link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.15rem;
  height: 1.5px;
  background: var(--manila);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}

.bench-nav__link:hover,
.bench-nav__link:focus-visible {
  opacity: 1;
}

.bench-nav__link:hover::after,
.bench-nav__link:focus-visible::after {
  transform: scaleX(1);
}

/* Manila mini-tag CTA in header */
.bench-nav__tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem 0.5rem 0.7rem;
  background: var(--manila);
  color: var(--tar);
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  border-radius: 2px;
  box-shadow: 0 2px 0 var(--manila-dark);
  transition: transform 0.2s var(--ease-spring), background-color 0.2s var(--ease-out);
}

.bench-nav__tag:hover {
  transform: translateY(-2px) rotate(-1deg);
  background: #f4ca62;
}

.bench-nav__tag:active {
  transform: translateY(1px);
}

.tag-hole {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cobalt-deep);
  border: 1.5px solid #966D19;
  flex-shrink: 0;
}

/* ==========================================================================
   SCENE 1 — THE WASH BENCH (Full-bleed Cobalt Signature, 100svh)
   ========================================================================== */
.scene-wash {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(110% 85% at 18% 12%, var(--cobalt-bright) 0%, var(--cobalt) 48%, var(--cobalt-deep) 100%);
  color: var(--foam);
  overflow: hidden;
  isolation: isolate;
}

.wash-sentinel {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  pointer-events: none;
}

.wash-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  touch-action: pan-y;
  cursor: crosshair;
}

.wash-canvas.is-brushing {
  cursor: none;
}

.wash-layout {
  position: relative;
  z-index: 3;
  flex: 1;
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding: clamp(4.35rem, 6.2vh, 5.1rem) var(--gutter) clamp(1rem, 2.2vh, 1.65rem);
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--s-1);
  pointer-events: none; /* Let pointer pass right to the full-bleed scrub canvas */
}

.wash-layout > * {
  min-width: 0;
}

.wash-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-5);
}

.wash-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.75rem, 8.2vw, 7.25rem);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-transform: uppercase;
  color: var(--foam);
}

.wash-headline__line {
  display: block;
}

.wash-headline__line--accent {
  color: var(--manila);
}

.wash-lead {
  max-width: 22rem;
  text-align: right;
  padding-top: 0.25rem;
}

.wash-lead__copy {
  margin: 0 0 0.55rem;
  font-size: clamp(0.95rem, 1.15vw, 1.0625rem);
  line-height: 1.45;
  color: rgb(250 248 243 / 0.92);
}

.wash-lead__meta {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--manila);
}

/* Central giant shoe slot — dominates the viewport cleanly above the fold */
.wash-stage {
  display: grid;
  place-items: center;
  min-height: clamp(220px, 38svh, 460px);
  position: relative;
}

.shoe-anchor {
  position: relative;
  width: min(86vw, 700px, 72svh);
  aspect-ratio: 1600 / 1040;
  display: grid;
  place-items: center;
  margin-block: -1.1rem;
}

.shoe-anchor__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: var(--shoe-shadow-cobalt);
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity 0.25s var(--ease-out);
}

.shoe-anchor__img.is-canvas-active {
  opacity: 0;
}

/* Object 1: Physical Manila Claim Tag knotted directly onto the real shoelace at (61%, 45%) */
.lace-tag {
  position: absolute;
  left: 61%;
  top: 45%;
  width: 0;
  height: 0;
  pointer-events: auto;
  text-decoration: none;
  transform-origin: 0 0;
  transform: rotate(-3deg);
  transition: transform 0.35s var(--ease-spring);
  z-index: 6;
}

.lace-tag:hover,
.lace-tag:focus-visible {
  transform: rotate(2deg);
}

.lace-tag.is-nudged {
  transform: rotate(5deg);
}

.lace-tag__twine {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 110px;
  height: 56px;
  pointer-events: none;
  z-index: 3;
}

.lace-tag__body {
  position: relative;
  left: 15px;
  top: 22px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 144px;
  padding: 1.55rem 0.95rem 0.85rem;
  background:
    linear-gradient(160deg, #F3CA62 0%, var(--manila) 55%, #E0B143 100%);
  color: var(--tar);
  clip-path: polygon(18% 0%, 82% 0%, 100% 11%, 100% 100%, 0% 100%, 0% 11%);
  box-shadow: 10px 18px 26px rgb(6 14 54 / 0.44);
  z-index: 2;
}

.lace-tag__eyelet {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--cobalt-deep);
  border: 2.5px solid #9D711A;
  box-shadow: inset 0 1px 2px rgb(0 0 0 / 0.45);
}

.lace-tag__serial {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #5C430E;
}

.lace-tag__price {
  font-family: var(--font-display);
  font-size: 3.35rem;
  font-weight: 900;
  line-height: 0.88;
  margin-top: 0.15rem;
  color: var(--tar);
}

.lace-tag__unit {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
  padding-bottom: 0.55rem;
  border-bottom: 1px dashed rgb(20 20 19 / 0.32);
  width: 100%;
}

.lace-tag__cta {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--clay-deep);
  margin-top: 0.5rem;
}

/* Bottom bench footer: Scrub HUD + opposing display line */
.wash-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
}

.scrub-hud {
  pointer-events: auto;
  max-width: 28rem;
  width: 100%;
}

.scrub-hud__status {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s-3);
  margin-bottom: 0.45rem;
}

.scrub-hud__prompt {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--foam);
}

.scrub-hud__pct {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  color: var(--manila);
}

.scrub-hud__controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.scrub-range {
  flex: 1 1 160px;
  min-width: 140px;
  appearance: none;
  height: 6px;
  border-radius: 999px;
  background: rgb(250 248 243 / 0.24);
  cursor: pointer;
}

.scrub-range::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--manila);
  border: 2.5px solid var(--tar);
  box-shadow: 0 2px 6px rgb(0 0 0 / 0.35);
  transition: transform 0.15s var(--ease-spring);
}

.scrub-range::-webkit-slider-thumb:hover {
  transform: scale(1.14);
}

.scrub-range::-moz-range-thumb {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--manila);
  border: 2.5px solid var(--tar);
}

.bench-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.5rem 0.95rem;
  min-height: 40px;
  border: 1.5px solid var(--foam);
  background: var(--foam);
  color: var(--cobalt-deep);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  border-radius: 2px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease-spring), background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.bench-btn:hover {
  transform: translateY(-1px);
  background: var(--manila);
  border-color: var(--manila);
  color: var(--tar);
}

.bench-btn:active {
  transform: translateY(1px);
}

.bench-btn--ghost {
  background: transparent;
  color: var(--foam);
  border-color: rgb(250 248 243 / 0.45);
}

.bench-btn--ghost:hover {
  background: rgb(250 248 243 / 0.14);
  border-color: var(--foam);
  color: var(--foam);
}

.bench-btn--dark {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--foam);
}

.bench-btn--dark:hover {
  background: var(--tar);
  border-color: var(--tar);
  color: var(--foam);
}

.bench-btn--outline {
  background: transparent;
  border-color: var(--tar);
  color: var(--tar);
}

.bench-btn--outline:hover {
  background: var(--tar);
  border-color: var(--tar);
  color: var(--foam);
}

.scrub-hud__honesty {
  margin: 0.5rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: rgb(250 248 243 / 0.72);
}

.wash-counter-headline {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6.2vw, 5.4rem);
  line-height: 0.84;
  letter-spacing: -0.015em;
  text-align: right;
  text-transform: uppercase;
  color: rgb(250 248 243 / 0.94);
}

.wash-counter-headline span {
  display: block;
}

/* ==========================================================================
   SCENE 2 — THE DRYING SHELF (Ventilated Steel Workshop Rack on Concrete)
   Real Soweto sneaker-care workflow: shoes rest flat on shoe trees atop a
   slatted airflow steel shelf, with Manila bay cards clipped to the lip.
   ========================================================================== */
.scene-shelf {
  position: relative;
  background: var(--concrete);
  color: var(--tar);
  padding-block: var(--s-7) var(--s-6);
}

.shelf-stage {
  width: 100%;
}

.shelf-header {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  margin-bottom: var(--s-5);
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-5);
  flex-wrap: wrap;
}

.shelf-kicker,
.section-kicker,
.bench-kicker,
.book-kicker {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.shelf-kicker,
.section-kicker {
  color: var(--clay);
}

.shelf-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.85rem, 6.2vw, 5.2rem);
  line-height: 0.9;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.shelf-header__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--s-3);
  max-width: 30rem;
}

.shelf-note {
  margin: 0;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--muted-ink);
  text-align: right;
}

.shelf-arrows {
  display: flex;
  gap: 0.5rem;
}

.shelf-arrow {
  width: 44px;
  height: 44px;
  border: 1.5px solid var(--tar);
  background: transparent;
  color: var(--tar);
  font-size: 1.15rem;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.shelf-arrow:hover {
  background: var(--tar);
  color: var(--foam);
}

/* Baseline: swipeable horizontal shelf (works everywhere — mobile, Firefox, JS off) */
.shelf-viewport {
  overflow-x: auto;
  overflow-y: visible;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  scrollbar-color: var(--tar) transparent;
  padding-bottom: var(--s-4);
}

.shelf-unit {
  --bay-wall-h: clamp(210px, 24vw, 248px);
  position: relative;
  width: max-content;
  min-width: 100%;
}

/* Continuous ventilated brushed-steel drying deck running under every sole */
.steel-deck {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--bay-wall-h) - 22px);
  z-index: 2;
  pointer-events: none;
}

.steel-deck__slats {
  height: 26px;
  background-color: #9C968C;
  background-image:
    linear-gradient(to bottom, rgb(255 255 255 / 0.26) 0%, rgb(255 255 255 / 0) 45%, rgb(20 20 19 / 0.16) 100%),
    repeating-linear-gradient(
      90deg,
      #C4BEB4 0px,
      #C4BEB4 20px,
      #6E6961 20px,
      #524E47 26px,
      #DCD7CE 26px,
      #DCD7CE 28px
    );
  border-top: 1px solid #7C776E;
}

.steel-deck__lip {
  height: 15px;
  background: linear-gradient(
    to bottom,
    #ECE8E1 0%,
    #B6B0A6 28%,
    #7B756C 74%,
    #3F3C36 100%
  );
  border-top: 1px solid rgb(255 255 255 / 0.65);
  border-bottom: 1px solid #2A2824;
}

.steel-deck__shadow {
  height: 20px;
  background: linear-gradient(to bottom, rgb(20 20 19 / 0.20), rgb(20 20 19 / 0));
}

.shelf-bays {
  list-style: none;
  margin: 0;
  padding: 0 var(--gutter) var(--s-3);
  display: flex;
  align-items: stretch;
  gap: clamp(1.5rem, 3.2vw, 2.75rem);
  width: max-content;
}

.shelf-bay {
  width: clamp(275px, 76vw, 345px);
  flex-shrink: 0;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Upper bay wall & grounded shoe resting solidly on the steel slats */
.bay-wall {
  height: var(--bay-wall-h);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-inline: 0.45rem;
  border-left: 1px solid rgb(20 20 19 / 0.11);
}

.bay-stencil {
  position: absolute;
  top: 0.35rem;
  left: 0.75rem;
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.03em;
  color: rgb(20 20 19 / 0.11);
  user-select: none;
  pointer-events: none;
}

.bay-stencil--open {
  color: rgb(200 72 36 / 0.26);
}

/* Shoe seated flush onto the steel shelf surface (14.1% compensates transparent bottom margin) */
.bay-shoe {
  margin: 0;
  width: 100%;
  aspect-ratio: 1600 / 1040;
  position: relative;
  z-index: 4;
  display: grid;
  place-items: end center;
}

.bay-shoe img {
  position: relative;
  top: 14.1%;
  width: 96%;
  height: auto;
  object-fit: contain;
  transition: top 0.35s var(--ease-spring);
}

.shelf-bay:hover .bay-shoe img {
  top: 11.6%;
}

/* Real dark contact shadow directly under the rubber outsole on the steel slats */
.bay-contact-shadow {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: -6px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgb(16 14 12 / 0.56) 0%,
    rgb(16 14 12 / 0.24) 52%,
    transparent 76%
  );
  z-index: -1;
  transition: transform 0.35s var(--ease-spring), opacity 0.35s var(--ease-out);
}

.shelf-bay:hover .bay-contact-shadow {
  transform: scaleX(0.95);
  opacity: 0.75;
}

/* Bay 05 Open Shelf Slot grounded cleanly ON TOP of the slatted steel deck */
.open-bay-slot {
  position: relative;
  z-index: 4;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 26px;
}

.open-bay-mat {
  width: 88%;
  padding: 0.9rem 1rem;
  border: 1.5px dashed var(--clay);
  background: rgb(200 72 36 / 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.2rem;
}

.open-bay-mat__code {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--clay-deep);
}

.open-bay-mat__sub {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.05em;
  color: var(--muted-ink);
}

/* Lower bay apron: physical steel clip clamping the Manila bay card right onto the shelf lip */
.bay-apron {
  position: relative;
  padding-top: 28px;
  z-index: 5;
  flex: 1;
  display: flex;
}

.shelf-clip {
  position: absolute;
  top: 4px;
  left: 50%;
  transform: translateX(-50%);
  width: 44px;
  height: 32px;
  z-index: 7;
  pointer-events: none;
}

/* Matte dark-steel jaw hooked cleanly OVER the front shelf lip and clamping the card */
.shelf-clip__jaw {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #3C3A36 0%, #1F1E1C 44%, #2E2C28 100%);
  border-top: 3px solid #6F6A62;
  border-radius: 2px 2px 4px 4px;
  box-shadow: 0 4px 8px rgb(20 20 19 / 0.34);
}

.shelf-clip__pin {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #E8E3D9, #777166);
}

.shelf-clip--clay .shelf-clip__jaw {
  background: linear-gradient(to bottom, var(--clay) 0%, var(--clay-deep) 100%);
  border-top-color: #E36C49;
}

.bay-card {
  position: relative;
  width: 100%;
  padding: 1.35rem 1.2rem 1.15rem;
  background: linear-gradient(170deg, #F3CE6B 0%, var(--manila) 72%, #E2B447 100%);
  color: var(--tar);
  border-radius: 0 0 2px 2px;
  box-shadow: 0 12px 24px rgb(20 20 19 / 0.11);
  display: flex;
  flex-direction: column;
}

.bay-card--blank {
  background: var(--foam);
  border-bottom: 3px solid var(--clay);
}

.bay-card__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 0.45rem;
  border-bottom: 1px dashed rgb(20 20 19 / 0.28);
  margin-bottom: 0.65rem;
}

.bay-card__num {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bay-card__price {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--cobalt-deep);
}

.bay-card__name {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
}

.bay-card__detail {
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: #36322B;
  flex: 1;
}

.bay-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.bay-card__time {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #554116;
}

.tag-pick-btn {
  padding: 0.48rem 0.85rem;
  min-height: 40px;
  border: 1.5px solid var(--tar);
  background: transparent;
  color: var(--tar);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
}

.tag-pick-btn:hover {
  background: var(--tar);
  color: var(--foam);
}

.tag-pick-btn.is-picked {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--foam);
  transform: rotate(-1.5deg);
}

.tag-pick-btn--solid {
  background: var(--clay);
  border-color: var(--clay);
  color: var(--foam);
}

.tag-pick-btn--solid:hover {
  background: var(--tar);
  border-color: var(--tar);
}

/* Native CSS Sticky Scrubbed Horizontal Shelf (Desktop >= 900px where supported) */
@keyframes shelf-slide {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% + 100vw)); }
}

@media (prefers-reduced-motion: no-preference) and (min-width: 900px) {
  @supports (animation-timeline: view()) {
    .scene-shelf {
      height: 280vh;
      padding-block: 0;
      view-timeline: --shelf block;
    }

    .shelf-stage {
      position: sticky;
      top: 0;
      height: 100vh;
      display: flex;
      flex-direction: column;
      justify-content: center;
      overflow: clip;
      padding-top: 3.5rem;
    }

    .shelf-viewport {
      overflow: visible;
      scroll-snap-type: none;
    }

    .shelf-unit {
      animation: shelf-slide linear both;
      animation-timeline: --shelf;
      animation-range: contain 0% contain 100%;
    }

    .shelf-arrows {
      display: none;
    }
  }
}

/* ==========================================================================
   SCENE 3 — THE CRAFT BENCH (Full-bleed Wet Slate Dark Scene)
   ========================================================================== */
.scene-bench {
  background: var(--tar);
  color: var(--foam);
  padding-block: var(--s-7) var(--s-7);
}

.bench-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 5.5rem);
  align-items: start;
  padding-right: var(--gutter);
}

/* Tool photo bleeds flush to left viewport edge — ZERO card frame */
.bench-media {
  position: relative;
}

.bench-media__img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  mask-image: linear-gradient(to right, #000 84%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, #000 84%, transparent 100%);
}

.bench-media__caption {
  margin: var(--s-3) var(--gutter) 0 var(--gutter);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--muted-light);
}

.bench-kicker {
  color: var(--manila);
}

.bench-title {
  margin: 0 0 var(--s-5);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6.4vw, 5.4rem);
  line-height: 0.88;
  text-transform: uppercase;
  color: var(--foam);
}

/* Proportional four-step bench ledger */
.bench-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--tar-line);
}

.bench-step {
  padding-block: var(--s-4);
  border-bottom: 1px solid var(--tar-line);
}

.bench-step--heavy,
.bench-step--longest {
  padding-block: var(--s-5);
}

.bench-step__head {
  display: flex;
  align-items: baseline;
  gap: 0.9rem;
  margin-bottom: 0.45rem;
}

.bench-step__num {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--clay);
}

.bench-step__name {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.65rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  line-height: 1;
}

.bench-step--heavy .bench-step__name,
.bench-step--longest .bench-step__name {
  font-size: clamp(1.95rem, 3vw, 2.65rem);
}

.bench-step__dur {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--manila);
}

.bench-step__copy {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--muted-light);
  max-width: 46ch;
}

/* Proportional duration rule encoding actual bench time */
.bench-step__bar {
  display: block;
  height: 3px;
  width: var(--span, 30%);
  background: var(--manila);
}

.bench-step--longest .bench-step__bar {
  background: var(--clay);
  height: 4px;
}

/* Scale Break: Monumental R80 Flat-Price Band */
.price-monolith {
  max-width: var(--max-w);
  margin: var(--s-7) auto 0;
  padding: var(--s-6) var(--gutter) 0;
  border-top: 1px solid var(--tar-line);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(1.5rem, 5vw, 5rem);
  align-items: end;
}

.price-monolith__figure {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(6.5rem, 17vw, 15rem);
  line-height: 0.78;
  letter-spacing: -0.025em;
  color: var(--manila);
}

.price-monolith__lead {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(2.1rem, 4.2vw, 3.6rem);
  line-height: 0.94;
  text-transform: uppercase;
  color: var(--foam);
}

.price-monolith__fine {
  margin: 0;
  max-width: 54ch;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--muted-light);
}

/* ==========================================================================
   SCENE 4 — THE SOWETO RUN & HONEST BENCH STANDARDS
   ========================================================================== */
.scene-soweto {
  background: var(--concrete);
  color: var(--tar);
  padding-block: var(--s-7) var(--s-7);
}

.soweto-grid {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.95fr);
  gap: clamp(2.5rem, 5.5vw, 5.5rem);
  align-items: start;
}

.soweto-title {
  margin: 0 0 var(--s-3);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.9rem, 6vw, 5.1rem);
  line-height: 0.89;
  text-transform: uppercase;
}

.soweto-intro {
  margin: 0 0 var(--s-4);
  font-size: 1.0625rem;
  color: var(--muted-ink);
  max-width: 46ch;
}

/* Interactive Dispatch Route Stamps */
.route-board {
  list-style: none;
  margin: 0 0 var(--s-5);
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.route-stamp {
  padding: 0.58rem 1rem;
  min-height: 44px;
  border: 1.5px solid var(--tar);
  background: transparent;
  color: var(--tar);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.18s var(--ease-out), color 0.18s var(--ease-out), transform 0.2s var(--ease-spring);
}

.route-stamp:hover {
  background: var(--tar);
  color: var(--foam);
}

.route-stamp.is-selected {
  background: var(--cobalt);
  border-color: var(--cobalt);
  color: var(--foam);
  transform: rotate(-1.5deg);
}

/* Clean Typographic Dispatch Ledger */
.run-facts {
  margin: 0;
  border-top: 1.5px solid var(--tar);
}

.run-facts__row {
  display: grid;
  grid-template-columns: 8.5rem minmax(0, 1fr);
  gap: var(--s-3);
  padding-block: 0.95rem;
  border-bottom: 1px solid var(--concrete-line);
  align-items: baseline;
}

.run-facts__row dt {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted-ink);
}

.run-facts__row dd {
  margin: 0;
  font-size: 1rem;
  font-weight: 500;
}

/* Pinned Bench Sheet (Honest studio illustration + service promises, zero fake reviews) */
.bench-sheet {
  position: relative;
  background: var(--foam);
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-top: 3px solid var(--tar);
  box-shadow: 0 18px 38px rgb(20 20 19 / 0.09);
}

.brass-tack {
  position: absolute;
  top: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #F6D884, #9E741E);
  box-shadow: 0 2px 3px rgb(20 20 19 / 0.35);
}
.brass-tack--l { left: 14px; }
.brass-tack--r { right: 14px; }

.bench-sheet__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.35rem 0 0.85rem;
  border-bottom: 1px dashed var(--concrete-line);
  margin-bottom: var(--s-4);
}

.bench-sheet__code,
.bench-sheet__tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.bench-sheet__tag {
  color: var(--clay);
}

.before-after-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-3);
}

.ba-shot {
  margin: 0;
}

.ba-shot img {
  width: 100%;
  aspect-ratio: 1600 / 1040;
  object-fit: contain;
  background: var(--concrete);
  padding: 0.65rem;
}

.ba-shot figcaption {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  line-height: 1.35;
  color: var(--muted-ink);
}

.ba-shot figcaption span {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--tar);
  margin-bottom: 0.15rem;
}

.bench-sheet__honesty {
  margin: var(--s-3) 0 var(--s-4);
  font-size: 0.875rem;
  color: var(--muted-ink);
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--concrete-line);
}

.bench-promises {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.9rem;
}

.bench-promises li {
  display: grid;
  gap: 0.15rem;
}

.bench-promises strong {
  font-size: 1rem;
  color: var(--tar);
}

.bench-promises span {
  font-size: 0.9375rem;
  color: var(--muted-ink);
  line-height: 1.45;
}

/* ==========================================================================
   SCENE 5 — TEAR-OFF COLLECTION SLIP (Full-bleed Highveld Red Clay Ground)
   ========================================================================== */
.scene-book {
  background: var(--clay);
  color: var(--foam);
  padding-block: var(--s-7) var(--s-8);
}

.book-shell {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.book-kicker {
  color: var(--manila);
}

.book-title {
  margin: 0 0 var(--s-4);
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.1rem, 6.2vw, 5.2rem);
  line-height: 0.89;
  text-transform: uppercase;
  color: var(--foam);
}

.book-sub {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.55;
  color: rgb(250 248 243 / 0.92);
  max-width: 36ch;
}

/* Object 2: Physical Two-Part Perforated Paper Claim Slip */
.claim-slip {
  color: var(--tar);
  filter: drop-shadow(0 24px 36px rgb(48 12 4 / 0.34));
  position: relative;
}

.slip-top {
  position: relative;
  background: var(--foam);
  padding: clamp(1.5rem, 3.2vw, 2.5rem);
  /* Subtle serrated top receipt edge */
  background-image:
    radial-gradient(circle at 10px 0, var(--clay) 6px, transparent 6.5px);
  background-size: 20px 10px;
  background-repeat: repeat-x;
  padding-top: clamp(2.1rem, 3.8vw, 2.9rem);
}

/* Ink stamp revealed when slip is dispatched — sits right above the perforation tear line */
.slip-dispatched-stamp {
  position: absolute;
  bottom: 1.45rem;
  right: 1.75rem;
  z-index: 4;
  padding: 0.48rem 0.9rem;
  border: 3px solid var(--cobalt);
  background: rgb(250 248 243 / 0.92);
  color: var(--cobalt);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-align: center;
  line-height: 1.2;
  opacity: 0;
  transform: rotate(-10deg) scale(1.35);
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-spring);
}

.slip-dispatched-stamp span {
  font-size: 0.75rem;
}

.claim-slip.is-torn .slip-dispatched-stamp {
  opacity: 0.92;
  transform: rotate(-8deg) scale(1);
}

.slip-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--s-3);
  padding-bottom: var(--s-4);
  border-bottom: 2px solid var(--tar);
  margin-bottom: var(--s-4);
}

.slip-head__brand {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  line-height: 0.95;
  letter-spacing: 0.02em;
}

.slip-head__sub {
  margin: 0.2rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
}

.slip-head__serial {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
  flex-shrink: 0;
}

.slip-head__label {
  display: block;
  font-size: 0.75rem;
  color: var(--muted-ink);
  letter-spacing: 0.08em;
}

.slip-head__serial strong {
  font-size: 1.125rem;
  color: var(--clay-deep);
}

/* Synced rail tags summary */
.slip-rail-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 0.95rem;
  margin-bottom: var(--s-4);
  background: #F4E7C1;
  border-left: 3px solid var(--tar);
  font-size: 0.9375rem;
}

.slip-rail-summary__label {
  font-weight: 700;
}

.slip-rail-summary__clear {
  margin-left: auto;
  background: none;
  border: none;
  text-decoration: underline;
  font-size: 0.875rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--clay-deep);
}

.slip-group {
  border: 0;
  padding: 0;
  margin: 0 0 var(--s-4);
}

.slip-label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 0.55rem;
  color: var(--tar);
}

.slip-opt {
  font-weight: 400;
  color: var(--muted-ink);
}

.slip-req {
  color: var(--clay);
}

/* Pair stepper & quick buttons */
.pair-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 0.85rem;
}

.pair-stepper {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--tar);
}

.stepper-btn {
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  font-size: 1.35rem;
  font-weight: 700;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.stepper-btn:hover {
  background: var(--tar);
  color: var(--foam);
}

.stepper-val {
  min-width: 3rem;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 700;
}

.pair-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.preset-btn {
  padding: 0.5rem 0.8rem;
  min-height: 44px;
  border: 1.5px solid var(--concrete-line);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), color 0.15s var(--ease-out);
}

.preset-btn:hover {
  border-color: var(--tar);
}

.preset-btn.is-active {
  background: var(--tar);
  border-color: var(--tar);
  color: var(--foam);
}

/* Monospace till-receipt running total line */
.till-line {
  display: flex;
  align-items: baseline;
  gap: 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  padding-top: 0.65rem;
  border-top: 1px dashed var(--concrete-line);
}

.till-line__dots {
  flex: 1;
  border-bottom: 1.5px dotted #AFA798;
}

.till-line strong {
  font-size: 1.25rem;
  color: var(--cobalt-deep);
}

/* Ink-stamped material checkboxes */
.ink-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.ink-check {
  position: relative;
  cursor: pointer;
}

.ink-check input {
  position: absolute;
  opacity: 0;
  inset: 0;
  cursor: pointer;
}

.ink-check span {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  min-height: 44px;
  border: 1.5px solid var(--concrete-line);
  font-size: 0.9375rem;
  font-weight: 500;
  transition: border-color 0.15s var(--ease-out), background-color 0.15s var(--ease-out), transform 0.2s var(--ease-spring);
}

.ink-check span::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--tar);
  display: inline-block;
  flex-shrink: 0;
  transition: background-color 0.15s var(--ease-out);
}

.ink-check input:checked + span {
  border-color: var(--tar);
  background: #F4E9CC;
  font-weight: 700;
}

.ink-check input:checked + span::before {
  background: var(--tar);
  box-shadow: inset 0 0 0 2.5px #F4E9CC;
}

.ink-check input:focus-visible + span {
  outline: 3px solid var(--cobalt);
  outline-offset: 2px;
}

.slip-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-4);
}

.slip-select,
.slip-input {
  width: 100%;
  min-height: 46px;
  padding: 0.6rem 0.75rem;
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid var(--tar);
  border-radius: 0;
  font-size: 1rem;
  color: var(--tar);
  transition: border-color 0.18s var(--ease-out), background-color 0.18s var(--ease-out);
}

.slip-select:focus,
.slip-input:focus {
  background: #F4E9CC;
  border-bottom-color: var(--cobalt);
}

.slip-input::placeholder {
  color: #7D766B;
}

.slip-inline-error {
  margin: 0.45rem 0 0;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--clay-deep);
}

/* Perforation divider with physical side notches */
.slip-perforation {
  position: relative;
  height: 28px;
  background: var(--foam);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-inline: 1.75rem;
  overflow: hidden;
}

.perf-rule {
  flex: 1;
  border-top: 2px dashed #ACA393;
}

.perf-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: var(--muted-ink);
  white-space: nowrap;
}

.perf-notch {
  position: absolute;
  top: 50%;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--clay);
  transform: translateY(-50%);
}
.perf-notch--l { left: -12px; }
.perf-notch--r { right: -12px; }

/* Lower Tear-Off Stub */
.slip-stub {
  background: #F2ECDE;
  padding: clamp(1.35rem, 2.8vw, 2rem) clamp(1.5rem, 3.2vw, 2.5rem);
  transform-origin: 12% 0%;
  transition: transform 0.6s var(--ease-spring), opacity 0.45s var(--ease-out);
}

.claim-slip.is-torn .slip-stub {
  transform: translateY(22px) rotate(2.6deg);
  opacity: 0.55;
  pointer-events: none;
}

.stub-preview {
  margin-bottom: var(--s-4);
}

.stub-preview__label {
  margin: 0 0 0.4rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--muted-ink);
}

.stub-preview__text {
  margin: 0;
  padding: 0.85rem 1rem;
  background: var(--foam);
  border-left: 3px solid var(--cobalt);
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--tar);
}

.stub-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.wa-submit-btn {
  flex: 1 1 240px;
  min-height: 54px;
  padding: 0.85rem 1.4rem;
  border: 0;
  background: var(--cobalt);
  color: var(--foam);
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), transform 0.2s var(--ease-spring);
}

.wa-submit-btn:hover {
  background: var(--cobalt-deep);
  transform: translateY(-2px);
}

.wa-submit-btn:active {
  transform: translateY(1px);
}

.wa-submit-arrow {
  font-size: 1.25rem;
  transition: transform 0.2s var(--ease-spring);
}

.wa-submit-btn:hover .wa-submit-arrow {
  transform: translateX(4px);
}

.copy-slip-btn {
  min-height: 54px;
  padding: 0.85rem 1.2rem;
  border: 1.5px solid var(--tar);
  background: transparent;
  color: var(--tar);
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.copy-slip-btn:hover {
  background: var(--tar);
  color: var(--foam);
}

.copy-slip-btn.is-copied {
  background: var(--tar);
  color: var(--manila);
}

.stub-footnote {
  margin: 0.85rem 0 0;
  font-size: 0.875rem;
  color: var(--muted-ink);
}

.slip-after-tear {
  margin-top: 1.75rem;
  padding: 1.25rem 1.5rem;
  background: var(--foam);
  border-left: 4px solid var(--cobalt);
}

.slip-after-tear__msg {
  margin: 0 0 0.9rem;
  font-size: 0.9375rem;
  color: var(--tar);
}

.slip-after-tear__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ==========================================================================
   COMPACT FOOTER
   ========================================================================== */
.bench-footer {
  background: var(--tar);
  color: var(--foam);
  padding: var(--s-5) var(--gutter);
  border-top: 1px solid var(--tar-line);
}

.bench-footer__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-4);
}

.bench-footer__brand,
.bench-footer__right {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
}

.bench-footer__logo {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.bench-footer__loc,
.bench-footer__phone {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--muted-light);
}

.bench-footer__top {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--manila);
  text-decoration: none;
}
.bench-footer__top:hover {
  text-decoration: underline;
}

/* ==========================================================================
   RESPONSIVE — ONE-HAND MOBILE INTENT (<= 900px and <= 600px)
   ========================================================================== */
@media (max-width: 960px) {
  .bench-grid {
    grid-template-columns: 1fr;
    padding-right: 0;
  }

  .bench-media__img {
    mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
  }

  .bench-ledger {
    padding-inline: var(--gutter);
  }

  .price-monolith {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }

  .soweto-grid,
  .book-shell {
    grid-template-columns: 1fr;
  }

  .shelf-header__right {
    align-items: flex-start;
  }

  .shelf-note {
    text-align: left;
  }
}

@media (max-width: 700px) {
  .bench-header {
    padding: 0.75rem var(--gutter);
  }

  .wordmark__name {
    font-size: 1.55rem;
    white-space: nowrap;
  }

  .wordmark__place {
    display: none;
  }

  .bench-nav {
    gap: 0.75rem;
  }

  .bench-nav__link {
    display: none;
  }

  .bench-nav__tag {
    white-space: nowrap;
    padding: 0.45rem 0.75rem 0.45rem 0.6rem;
    font-size: 0.75rem;
  }

  .wash-layout {
    padding: 4.85rem var(--gutter) 1.35rem;
    gap: var(--s-3);
  }

  .wash-top {
    flex-direction: column;
    gap: var(--s-2);
  }

  .wash-headline {
    font-size: clamp(3.35rem, 15vw, 4.5rem);
  }

  .wash-lead {
    text-align: left;
    max-width: 32ch;
    padding-top: 0;
  }

  .wash-stage {
    min-height: 210px;
  }

  .shoe-anchor {
    width: 100%;
    max-width: 100%;
    margin-block: 0.25rem;
  }

  .lace-tag {
    left: 60%;
    top: 44.5%;
    transform: rotate(-3deg) scale(0.72);
    transform-origin: 0 0;
  }

  .lace-tag:hover,
  .lace-tag:focus-visible {
    transform: rotate(2deg) scale(0.72);
  }

  .lace-tag.is-nudged {
    transform: rotate(5deg) scale(0.72);
  }

  .shelf-unit {
    --bay-wall-h: 188px;
  }

  .wash-footer {
    flex-direction: column;
    align-items: stretch;
    gap: var(--s-3);
  }

  .scrub-hud {
    max-width: 100%;
  }

  .scrub-range {
    flex: 1 0 100%;
  }

  .scrub-hud__controls .bench-btn {
    flex: 1 1 0;
  }

  .wash-counter-headline {
    display: none;
  }

  .slip-two-col {
    grid-template-columns: 1fr;
  }

  .before-after-pair {
    grid-template-columns: 1fr;
  }

  .run-facts__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
  }
}

/* ==========================================================================
   REDUCED MOTION — COLLAPSE EVERYTHING CLEANLY
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
