:root {
  --cream: #FFF2C7;
  --red: #E23D28;
  --teal: #1AA6A6;
  --ink: #17120C;
  --brass: #C99A2E;
  --purple: #5C3B82;
  --pink: #FF86A8;
  --apricot: #F6A15A;
  --mouse-x: 50%;
  --mouse-y: 40%;
  --scroll: 0;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Newsreader", serif;
  overflow-x: hidden;
}

.market-day {
  position: relative;
  min-height: 500vh;
  background:
    radial-gradient(circle at var(--mouse-x) var(--mouse-y), rgba(26,166,166,.18), transparent 19rem),
    radial-gradient(circle at 12% 14%, rgba(255,134,168,.24), transparent 18rem),
    linear-gradient(90deg, rgba(23,18,12,.045) 1px, transparent 1px),
    repeating-linear-gradient(0deg, transparent 0 41px, rgba(23,18,12,.13) 42px 43px),
    var(--cream);
  background-size: auto, auto, 9.5vw 100%, auto, auto;
}

.ledger-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .65;
  background-image:
    radial-gradient(var(--ink) .75px, transparent .9px),
    linear-gradient(113deg, transparent 0 48%, rgba(226,61,40,.1) 49% 50%, transparent 51%);
  background-size: 29px 29px, 100% 100%;
  mix-blend-mode: multiply;
}

.valuation-scene {
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 7vw 21vw 12vw 28vw 19vw 13vw;
  grid-template-rows: 12vh 18vh 20vh 22vh 18vh 10vh;
  padding: 4vh 5vw;
  isolation: isolate;
}

.clerk-stamp {
  grid-column: 1 / 3;
  grid-row: 1;
  align-self: start;
  width: max-content;
  transform: rotate(-3deg);
  border: 2px solid var(--red);
  color: var(--red);
  border-radius: 4px;
  padding: .42rem .72rem .34rem;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(.72rem, 1vw, .98rem);
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(255,242,199,.88);
  box-shadow: 5px 5px 0 rgba(226,61,40,.12);
}

.tag-string {
  position: absolute;
  top: -2vh;
  left: 49%;
  width: 20vw;
  height: 34vh;
  transform: translateX(-50%);
  overflow: visible;
}

.tag-string path,
.scale-svg path,
.scale-svg ellipse {
  fill: none;
  stroke: var(--ink);
  stroke-width: 5;
  stroke-linecap: round;
}

.hanging-tag {
  position: relative;
  background: var(--cream);
  border: 3px solid var(--ink);
  box-shadow: 1.1rem 1.1rem 0 var(--purple), 1.7rem 1.7rem 0 rgba(23,18,12,.14);
  clip-path: polygon(12% 0, 100% 0, 100% 88%, 89% 100%, 0 100%, 0 14%);
}

.giant-tag {
  grid-column: 2 / 5;
  grid-row: 2 / 6;
  padding: clamp(2rem, 5vw, 5rem);
  transform-origin: 50% -18vh;
  animation: tagSway 5.8s ease-in-out infinite;
}

.tag-hole {
  position: absolute;
  top: 1.6rem;
  left: 50%;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: inset 0 0 0 .35rem var(--cream);
}

.brand-lockup,
.final-brand {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  letter-spacing: -.08em;
  line-height: .82;
  font-size: clamp(4.6rem, 14vw, 14rem);
  display: flex;
  align-items: center;
  color: var(--ink);
}

.brand-lockup i,
.final-brand i {
  display: inline-block;
  width: .17em;
  height: .17em;
  margin: .2em .08em 0 .1em;
  border-radius: 50%;
  background: var(--brass);
  box-shadow: inset -.18rem -.18rem 0 rgba(23,18,12,.24), 0 .15rem 0 var(--ink);
}

.mouth-shadow {
  width: clamp(8rem, 23vw, 22rem);
  height: clamp(.8rem, 1.4vw, 1.35rem);
  margin: 1.2rem 0 1.8rem 2vw;
  border-radius: 50%;
  background: var(--ink);
  transform: rotate(-1deg) scaleX(.92);
  box-shadow: 1.2rem .75rem 0 rgba(92,59,130,.45);
}

.old-number {
  display: inline-block;
  margin-top: .6rem;
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 5rem);
  color: rgba(23,18,12,.38);
  transform: rotate(4deg);
}

.red-slash {
  position: absolute;
  left: 14%;
  top: 61%;
  width: 0;
  height: .75rem;
  background: var(--red);
  border-radius: 4rem;
  transform: rotate(-10deg);
  transition: width 1.4s cubic-bezier(.18,.8,.2,1);
}

.red-slash.drawn { width: 44%; }

.tag-whisper,
.spoken-price,
.receipt-copy,
.sunset-receipt p,
.hidden-cost-note p {
  font-size: clamp(1.2rem, 2.1vw, 2rem);
  line-height: 1.18;
}

.tag-whisper { max-width: 42rem; margin-top: 2rem; }

.counter-glass {
  position: absolute;
  border: 2px solid rgba(26,166,166,.55);
  background: linear-gradient(110deg, rgba(26,166,166,.1), rgba(255,255,255,.32) 45%, rgba(26,166,166,.16));
  box-shadow: inset 0 0 2rem rgba(26,166,166,.25), 0 1rem 0 rgba(23,18,12,.08);
  pointer-events: none;
}

.hero-glass {
  right: 4vw;
  bottom: 9vh;
  width: 46vw;
  height: 18vh;
  transform: skewX(-12deg) translateX(calc((var(--mouse-x) - 50%) * .035));
}

.hero-line {
  grid-column: 4 / 7;
  grid-row: 4 / 5;
  align-self: end;
  color: var(--purple);
  max-width: 43rem;
  transform: rotate(-1deg);
}

.daybook-button {
  grid-column: 5 / 7;
  grid-row: 5;
  justify-self: start;
  align-self: center;
  border: 0;
  border-radius: 999px 999px 999px 1rem;
  padding: 1rem 1.3rem;
  background: var(--red);
  color: var(--cream);
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  font-size: 1rem;
  box-shadow: .45rem .45rem 0 var(--ink);
  cursor: pointer;
}

.floating-stickers { position: fixed; inset: 0; z-index: 4; pointer-events: none; }

.price-sticker {
  position: absolute;
  display: inline-block;
  padding: .45rem .62rem;
  background: var(--pink);
  color: var(--ink);
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  border: 2px solid var(--ink);
  box-shadow: .25rem .25rem 0 rgba(23,18,12,.2);
  transform: translate(var(--quiver-x, 0), var(--quiver-y, 0)) rotate(var(--r, -4deg));
}

.sticker-one { top: 21vh; left: 7vw; --r: 7deg; }
.sticker-two { top: 54vh; right: 6vw; --r: -5deg; background: var(--cream); }
.sticker-three { bottom: 16vh; left: 12vw; --r: 3deg; background: var(--teal); }
.sticker-four { top: 9vh; right: 18vw; --r: 12deg; background: var(--brass); }

.haggle-scene { background: linear-gradient(180deg, transparent, rgba(26,166,166,.12)); }

.speech-paddle {
  grid-column: 2 / 4;
  grid-row: 2 / 5;
  width: min(26rem, 35vw);
  height: min(26rem, 35vw);
  border-radius: 52% 52% 52% 12%;
  border: 4px solid var(--ink);
  background: var(--teal);
  box-shadow: 1rem 1rem 0 var(--brass);
  display: grid;
  place-content: center;
  text-align: center;
  transform: rotate(-9deg);
}

.speech-paddle::after {
  content: "";
  position: absolute;
  width: 3.8rem;
  height: 16rem;
  background: var(--ink);
  bottom: -13rem;
  left: 46%;
  border-radius: 0 0 2rem 2rem;
}

.speech-paddle span { font-family: "Syne", sans-serif; font-weight: 800; font-size: clamp(3rem, 8vw, 8rem); }
.speech-paddle small { font-family: "Gabarito", sans-serif; font-weight: 700; text-transform: uppercase; }

.haggle-ledger {
  grid-column: 3 / 7;
  grid-row: 2 / 4;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 2rem;
}

.price-character {
  font-family: "Syne", sans-serif;
  font-weight: 800;
  font-size: clamp(5rem, 13vw, 13rem);
  text-shadow: .55rem .55rem 0 rgba(92,59,130,.38);
}

.answer-price { color: var(--red); transform: rotate(7deg); }
.ask-price { color: var(--ink); transform: rotate(-5deg); }

.gab-gap {
  position: relative;
  min-width: clamp(8rem, 15vw, 16rem);
  min-height: 3.5rem;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  padding: .7rem 1rem;
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  text-align: center;
  box-shadow: .75rem .75rem 0 var(--purple);
}

.conversation-shards {
  grid-column: 4 / 7;
  grid-row: 4 / 6;
  display: grid;
  gap: .8rem;
  align-content: start;
}

.conversation-shards p {
  margin: 0;
  width: fit-content;
  max-width: 36rem;
  padding: .8rem 1rem;
  background: rgba(255,242,199,.9);
  border-left: .55rem solid var(--red);
  font-size: clamp(1.25rem, 2vw, 2rem);
  transform: rotate(var(--tilt, -1deg));
}
.conversation-shards p:nth-child(2) { --tilt: 2deg; margin-left: 3vw; border-color: var(--teal); }
.conversation-shards p:nth-child(3) { --tilt: -3deg; margin-left: 7vw; border-color: var(--brass); }

.tally-scratches {
  grid-column: 2 / 3;
  grid-row: 6;
  color: var(--red);
  font-family: "Gabarito", sans-serif;
  font-size: 3rem;
  transform: rotate(8deg);
}

.scale-scene { background: radial-gradient(circle at 35% 57%, rgba(92,59,130,.2), transparent 28rem); }

.scale-rig { grid-column: 1 / 5; grid-row: 2 / 6; position: relative; }
.scale-svg { width: 100%; height: 100%; overflow: visible; }
.scale-arm { stroke: var(--purple); transform-origin: 380px 118px; transition: transform .5s ease; }
.scale-scene.in-view .scale-arm { transform: rotate(5deg); }
.scale-pan { fill: rgba(26,166,166,.28); stroke: var(--teal); }
.scale-base { fill: var(--brass); stroke: var(--ink); }

.brass-weight {
  position: absolute;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50% 50% 42% 42%;
  display: grid;
  place-items: center;
  background: var(--brass);
  border: 3px solid var(--ink);
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  box-shadow: .5rem .5rem 0 rgba(92,59,130,.45);
}
.weight-one { left: 14%; top: 56%; }
.weight-two { left: 22%; top: 50%; transform: scale(.72); }
.weight-three { left: 68%; top: 48%; transform: scale(.86); background: var(--purple); color: var(--cream); }

.hidden-cost-note { grid-column: 4 / 7; grid-row: 2 / 5; align-self: center; background: rgba(255,242,199,.82); padding: 2rem; border: 3px solid var(--ink); box-shadow: 1rem 1rem 0 var(--purple); }
.hidden-cost-note h2 { font-family: "Syne", sans-serif; font-size: clamp(2.5rem, 6vw, 7rem); line-height: .9; margin: 0 0 1rem; }

.receipt-scene { background: linear-gradient(180deg, rgba(255,242,199,0), rgba(201,154,46,.15)); }
.receipt-roll { grid-column: 2 / 5; grid-row: 1 / 7; overflow: hidden; align-self: stretch; }
.receipt-ribbon {
  width: min(39rem, 70vw);
  min-height: 88vh;
  margin: 6vh auto;
  padding: 4rem 2rem;
  background: repeating-linear-gradient(0deg, var(--cream) 0 34px, rgba(23,18,12,.11) 35px 36px);
  border: 3px solid var(--ink);
  box-shadow: 1rem 1rem 0 rgba(226,61,40,.24);
  transform: translateY(var(--unroll, 14vh)) rotate(-2deg);
  transition: transform 1s cubic-bezier(.16,.9,.2,1);
}
.receipt-scene.in-view .receipt-ribbon { --unroll: 0; }

.receipt-line {
  display: grid;
  grid-template-columns: 6rem 1fr auto;
  gap: .7rem;
  padding: 1rem 0;
  font-family: "Gabarito", sans-serif;
  font-size: clamp(1rem, 1.6vw, 1.5rem);
  border-bottom: 2px dashed rgba(23,18,12,.35);
}
.receipt-line span { color: var(--red); font-weight: 900; }
.receipt-line em { font-style: normal; color: var(--purple); font-weight: 900; }
.receipt-line.crossed { text-decoration: line-through .25rem var(--red); }
.barcode-mouth { margin-top: 3rem; display: flex; align-items: end; gap: .35rem; }
.barcode-mouth i { width: .65rem; height: var(--h, 5rem); background: var(--ink); border-radius: 2rem; }
.barcode-mouth i:nth-child(2) { --h: 3rem; } .barcode-mouth i:nth-child(3) { --h: 6rem; } .barcode-mouth i:nth-child(4) { --h: 2rem; } .barcode-mouth i:nth-child(5) { --h: 4.6rem; }
.barcode-mouth strong { margin-left: 1rem; padding: .8rem 1rem; border-radius: 50%; background: var(--ink); color: var(--cream); font-family: "Gabarito", sans-serif; }

.peeling-sticker {
  grid-column: 5 / 7;
  grid-row: 2 / 3;
  align-self: center;
  justify-self: start;
  padding: 1rem;
  background: var(--pink);
  border: 3px solid var(--ink);
  font-family: "Gabarito", sans-serif;
  font-weight: 900;
  transform-origin: 100% 0;
  transform: rotate(8deg);
  cursor: pointer;
}
.peeling-sticker.peel { transform: rotate(8deg) skew(-14deg) translateY(-.6rem); box-shadow: -.7rem .7rem 0 rgba(23,18,12,.2); }
.receipt-copy { grid-column: 5 / 7; grid-row: 3 / 6; color: var(--purple); align-self: center; }

.finale-scene {
  overflow: hidden;
  background:
    radial-gradient(circle at 82% 12%, var(--pink), transparent 24rem),
    linear-gradient(135deg, var(--apricot), var(--pink) 52%, var(--cream));
}
.sunset-receipt {
  grid-column: 1 / 7;
  grid-row: 2 / 6;
  align-self: center;
  min-height: 62vh;
  padding: clamp(2rem, 5vw, 5rem);
  background: rgba(255,242,199,.88);
  border: 4px solid var(--ink);
  box-shadow: 1.2rem 1.2rem 0 var(--red);
  clip-path: polygon(0 0, 96% 0, 100% 8%, 96% 16%, 100% 24%, 96% 32%, 100% 40%, 96% 48%, 100% 56%, 96% 64%, 100% 72%, 96% 80%, 100% 88%, 96% 100%, 0 100%);
  transform: translateX(var(--receipt-x, -16vw));
  transition: transform 1.2s cubic-bezier(.16,.86,.2,1);
}
.finale-scene.in-view .sunset-receipt { --receipt-x: 0; }
.sunset-receipt h1 { margin: 0 0 1rem; font-family: "Syne", sans-serif; font-size: clamp(3rem, 8vw, 9rem); line-height: .86; max-width: 74rem; }
.final-brand { font-size: clamp(3.6rem, 11vw, 12rem); color: var(--red); text-shadow: .45rem .45rem 0 var(--ink); }
.evidence-tags { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.3rem; }
.evidence-tags span { padding: .55rem .8rem; background: var(--brass); border: 2px solid var(--ink); font-family: "Gabarito", sans-serif; font-weight: 900; transform: rotate(var(--r, -4deg)); }
.evidence-tags span:nth-child(2) { --r: 6deg; background: var(--teal); } .evidence-tags span:nth-child(3) { --r: -9deg; background: var(--purple); color: var(--cream); } .evidence-tags span:nth-child(4) { --r: 3deg; background: var(--pink); }
.final-gap { grid-column: 5 / 7; grid-row: 5 / 6; justify-self: center; align-self: end; transform: rotate(-6deg); }

.valuation-scene:not(.in-view) .conversation-shards p,
.valuation-scene:not(.in-view) .brass-weight,
.valuation-scene:not(.in-view) .evidence-tags span { opacity: .35; }

@keyframes tagSway {
  0%, 100% { transform: rotate(-2.2deg); }
  50% { transform: rotate(2.6deg); }
}

@media (max-width: 780px) {
  .valuation-scene { grid-template-columns: 1fr; grid-template-rows: auto; padding: 2rem 1rem; gap: 1.5rem; }
  .valuation-scene > * { grid-column: 1 !important; grid-row: auto !important; }
  .giant-tag { min-height: 58vh; }
  .hero-line, .receipt-copy { max-width: none; }
  .tag-string { left: 55%; width: 48vw; }
  .speech-paddle { width: 70vw; height: 70vw; }
  .haggle-ledger { flex-direction: column; align-items: flex-start; }
  .hidden-cost-note { padding: 1rem; }
  .receipt-ribbon { width: 92vw; margin: 0; }
  .price-sticker { display: none; }
}
