/* Dover Dumpster: the 3D showroom (home hero + pinned scroll story). Phones first. */

.showroom { position: relative; background: #0B0C0D; color: #F4F5F6; overflow: clip; }
.sr-track { position: relative; }
.sr-stage { position: relative; min-height: calc(100svh - var(--head-h)); display: grid; }
.sr-bg { position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 46% at 50% 42%, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0) 70%),
    radial-gradient(90% 40% at 50% 100%, rgba(255, 90, 31, .16), rgba(255, 90, 31, 0) 70%),
    linear-gradient(180deg, #141618 0%, #0B0C0D 62%, #08090A 100%); }
.sr-bg::before { /* the spotlight cone */
  content: ""; position: absolute; left: 50%; top: -10%; width: 150vmin; height: 110%; transform: translateX(-50%);
  background: conic-gradient(from 180deg at 50% 0%, transparent 0 158deg, rgba(255, 255, 255, .07) 172deg, rgba(255, 255, 255, .1) 180deg, rgba(255, 255, 255, .07) 188deg, transparent 202deg);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.sr-bg::after { /* showroom floor line, hi-vis glow */
  content: ""; position: absolute; left: 0; right: 0; bottom: 16%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 90, 31, .7) 30%, rgba(255, 196, 160, .9) 50%, rgba(255, 90, 31, .7) 70%, transparent);
  box-shadow: 0 0 24px 2px rgba(255, 90, 31, .35);
}

/* ---- the 3D dumpster ---- */
.sr-model { position: relative; height: 340px; }
.dz3d { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 32%; --ry: 30deg; --rx: -11deg; --zs: .74; --sx: .84; --sy: .8; --door: 0deg; --orange: 0; --my: 0px; --mx: 0px; }
.dz3d .rig { position: absolute; left: 50%; top: 50%; will-change: transform; transform-style: preserve-3d; transform: translate(var(--mx), var(--my)) scale(var(--zs)) rotateX(var(--rx)) rotateY(var(--ry)); }
.dz3d .model { transform-style: preserve-3d; transform: scale3d(var(--sx), var(--sy), 1); }
.dz3d .f { position: absolute; left: 0; top: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; overflow: hidden; }
.dz3d .f > i { position: absolute; inset: 0; pointer-events: none; }
.dz3d .side-l, .dz3d .in-r { clip-path: polygon(66px 100%, 0 calc(100% - 66px), 0 0, 100% 0, 100% 100%); }
.dz3d .side-r, .dz3d .in-l { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 66px), calc(100% - 66px) 100%, 0 100%); }
.dz3d .side { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .16); }
.dz3d .front::after { content: ""; position: absolute; left: 50%; top: 16%; width: 34px; height: 46px; margin-left: -17px; border: 5px solid #6B7178; border-radius: 8px 8px 18px 18px; box-shadow: 0 2px 0 rgba(0, 0, 0, .5); }
.dz3d .co { opacity: var(--orange); }
.dz3d .shade { background: #000; opacity: var(--sh, .25); }
.dz3d .door-hinge, .dz3d .door-swing { position: absolute; left: 0; top: 0; transform-style: preserve-3d; }
.dz3d .door-swing { transform: rotateY(var(--door)); }

/* paint: black fleet + orange fleet (Tucker's two colors) */
.dz3d .side .cb, .dz3d .front .cb, .dz3d .door .cb, .dz3d .slant .cb { background: linear-gradient(180deg, #3E434A 0%, #272B30 45%, #1D2024 100%); }
.dz3d .side .co, .dz3d .front .co, .dz3d .door .co, .dz3d .slant .co { background: linear-gradient(180deg, #FF6A2E 0%, #F2561D 45%, #D9461A 100%); }
.dz3d .rim .cb { background: linear-gradient(180deg, #6A7077, #33373C); }
.dz3d .rim .co { background: linear-gradient(180deg, #FF7B45, #E04E1A); }
.dz3d .in .cb, .dz3d .back-in .cb { background: linear-gradient(180deg, #1C1E21, #111214); }
.dz3d .in .co, .dz3d .back-in .co { background: linear-gradient(180deg, #B8421A, #7E2B10); }
.dz3d .rail .cb, .dz3d .rail .co { background: linear-gradient(180deg, #2A2C30, #0E0F10); }
.dz3d .roller { border-radius: 50%; }
.dz3d .roller .cb, .dz3d .roller .co { background: radial-gradient(circle, #5A5F65 0 30%, #1A1C1E 34% 100%); border-radius: 50%; }
.dz3d .ribs { position: absolute; inset: 6px 0 0; background: repeating-linear-gradient(90deg, transparent 0 44px, rgba(255, 255, 255, .24) 44px 46px, rgba(0, 0, 0, .25) 46px 54px, rgba(0, 0, 0, .55) 54px 56px); }
.dz3d .side .ribs { inset: 26px 0 30px; }
.dz3d .side .ribs::before { /* top band + bottom band, like the real ones */
  content: ""; position: absolute; left: 0; right: 0; top: -20px; height: 14px; background: linear-gradient(180deg, rgba(255, 255, 255, .1), rgba(0, 0, 0, .22)); }
.dz3d .side .ribs::after { content: ""; position: absolute; left: 0; right: 0; bottom: -24px; height: 18px; background: linear-gradient(180deg, rgba(0, 0, 0, .3), rgba(255, 255, 255, .06)); }
.dz3d .floor-ribs { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 30px, rgba(0, 0, 0, .35) 30px 34px); }
.dz3d .skin { position: absolute; inset: 0; }
.dz3d .skin-orange { opacity: var(--orange); }
.dz3d .skin-black { opacity: calc(1 - var(--orange)); }
.dz3d .decal-logo { position: absolute; left: 50%; top: 50%; width: 112px; height: auto; transform: translate(-50%, -54%); opacity: .94; }
.dz3d .stencil { position: absolute; left: 0; right: 0; top: 34px; text-align: center; white-space: pre; color: #120A06; font-family: var(--display); font-stretch: 70%; font-weight: 900; font-size: 25px; line-height: 1.15; letter-spacing: .02em; }
.dz3d .stencil::before { content: "DOVER DUMPSTER\A RENT ME\A 8133250829"; }
.dz3d .door-bars { position: absolute; inset: 10px; border: 3px solid rgba(0, 0, 0, .35); border-radius: 3px; background: linear-gradient(90deg, transparent 48%, rgba(0, 0, 0, .3) 48% 52%, transparent 52%); }
.dz3d .latch { position: absolute; right: 10px; width: 16px; height: 8px; border-radius: 2px; background: #6B7178; box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .4); }
.dz3d .latch.l1 { top: 34%; } .dz3d .latch.l2 { top: 62%; }
.dz3d .floor { position: absolute; left: 0; top: 0; border-radius: 50%; pointer-events: none;
  background:
    radial-gradient(closest-side, rgba(0, 0, 0, .62), rgba(0, 0, 0, .32) 45%, rgba(0, 0, 0, 0) 72%),
    radial-gradient(closest-side, transparent 86%, rgba(255, 90, 31, .45) 88%, rgba(255, 90, 31, 0) 92%); }

/* ---- the words around it ---- */
.sr-copy { position: relative; z-index: 2; }
.sr-ch { padding: 0 var(--pad); }
.sr-ch .kick { display: inline-flex; align-items: center; gap: 10px; font-family: var(--mono); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #FF8A5C; }
.sr-ch .kick::before { content: ""; width: 22px; height: 3px; border-radius: 2px; background: var(--hv); }
.sr-ch h1, .sr-ch h2 { font-family: var(--display); font-weight: 900; font-stretch: 125%; letter-spacing: -.035em; line-height: .92; text-wrap: balance; }
.sr-ch h1 { font-size: clamp(2.1rem, 9.2vw, 4.6rem); font-stretch: 112%; margin-top: 12px; }
.sr-ch h2 { font-size: clamp(2.3rem, 11vw, 4.4rem); }
.chrome { background: linear-gradient(180deg, #FFFFFF 0%, #E7EAED 38%, #A9B1B9 52%, #F4F6F8 64%, #C6CCD2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-ch .hv-word { color: var(--hv); }
.sr-ch p { color: #C7CCD1; font-size: clamp(1.05rem, 4.2vw, 1.3rem); max-width: 30ch; margin: 12px 0 0; text-wrap: pretty; }
.sr-prices { display: flex; gap: 10px; margin-top: 18px; }
.sr-price { flex: 1 1 0; max-width: 200px; padding: 10px 14px 12px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); text-decoration: none; color: #fff; }
.sr-price small { display: block; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .1em; color: #C7CCD1; }
.sr-price b { display: block; font-family: var(--display); font-stretch: 112%; font-weight: 900; font-size: clamp(1.7rem, 7.4vw, 2.3rem); letter-spacing: -.03em; line-height: 1.05; }
.sr-ch .btn-row { margin-top: 18px; max-width: 520px; }
.sr-ch .btn-row .btn { flex: 1 1 0; white-space: nowrap; padding: 12px 12px; gap: 8px; }
.sr-ch .btn-glass { background: rgba(14, 15, 16, .92); }
.sr-toggle.see { align-items: center; }
.see-l { padding: 0 8px 0 10px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--silver); }
@media (max-width: 759px) { .showroom.live .sr-ch[data-ch="6"] .btn-row { display: none; } .showroom.live .sr-ch[data-ch="6"] h2 { font-size: clamp(2rem, 9vw, 2.6rem); } .sr-toggles { gap: 8px; } .sr-toggle button { min-width: 0; padding: 0 12px; font-size: 13px; } .showroom.live .sr-dots { display: none; } .sr-dims .d-h { right: 16px; top: 40%; } }
.sr-big { font-family: var(--display); font-weight: 900; font-stretch: 120%; font-size: clamp(3.4rem, 17vw, 8rem); line-height: .9; letter-spacing: -.04em; color: var(--hv); }
.sr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.sr-chip { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sr-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--hv); }
.sr-toggle { display: inline-flex; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); margin-top: 16px; }
.sr-toggle button { min-width: 92px; min-height: 46px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #C7CCD1; font: inherit; font-family: var(--mono); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.sr-toggle button[aria-pressed="true"] { background: var(--hv); color: #0E0F10; }
.sr-toggles { display: flex; flex-wrap: wrap; gap: 10px; }
.sr-dims { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.sr-dims span { position: absolute; padding: 5px 9px; border-radius: 8px; background: #0E0F10; border: 1px solid var(--hv); color: #fff; font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.sr-dims .d-l::before { content: "12 FT LONG"; } .sr-dims .d-w::before { content: "7 FT WIDE"; } .sr-dims .d-h::before { content: "6 FT TALL"; }
.sr-dims .d-l { left: 50%; bottom: 12%; transform: translateX(-50%); }
.sr-dims .d-w { left: 4%; top: 64%; }
.sr-dims .d-h { right: 4%; top: 46%; }
.sr-hint { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 3; display: grid; justify-items: center; gap: 6px; font-family: var(--mono); font-size: 12px; font-weight: 700; letter-spacing: .14em; color: #9AA1A8; }
.sr-hint i { width: 2px; height: 26px; background: linear-gradient(180deg, var(--hv), transparent); animation: hint 1.6s var(--ease) infinite; transform-origin: 50% 0; }
@keyframes hint { 0% { transform: scaleY(0); opacity: 1; } 70% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }
.sr-dots { display: none; }

/* static version (no JS / reduced motion): chapters stack like a normal section */
.showroom:not(.live) .sr-stage { padding: 26px 0 40px; }
.showroom:not(.live) .sr-copy { display: grid; gap: 40px; }
.showroom:not(.live) .sr-ch[data-ch="0"] { order: -2; }
.showroom:not(.live) .sr-model { order: -1; }
.showroom:not(.live) .sr-dims, .showroom:not(.live) .sr-hint { display: none; }

/* live: the stage holds still while the scroll drives the model and the words */
.showroom.live .sr-track { height: calc(var(--len, 7) * 100svh); }
.showroom.live .sr-stage { position: sticky; top: var(--head-h); height: calc(100svh - var(--head-h)); min-height: 0; }
.showroom.live .sr-model { position: absolute; left: 0; right: 0; top: 0; bottom: 0; height: auto; }
.showroom.live .sr-copy { position: absolute; inset: 0; pointer-events: none; }
.showroom.live .sr-ch { position: absolute; left: 0; right: 0; opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .2s ease, transform .2s ease, visibility 0s linear .2s; }
.showroom.live .sr-ch.on { opacity: 1; visibility: visible; transform: none; pointer-events: auto; transition: opacity .45s var(--ease) .18s, transform .5s var(--ease) .18s, visibility 0s linear 0s; }
.showroom.live .sr-ch.top { top: 18px; }
.showroom.live .sr-ch.bottom { bottom: calc(var(--bar-h) + 18px + env(safe-area-inset-bottom)); }
.showroom.live .sr-ch[data-ch="0"] { top: 16px; }
.showroom.live .sr-dims span { opacity: 0; transform: scale(.9); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.showroom.live .sr-dims.on span { opacity: 1; transform: none; }
.showroom.live .sr-dims .d-l { transform: translateX(-50%) scale(.9); }
.showroom.live .sr-dims.on .d-l { transform: translateX(-50%); }
.showroom.live .sr-dots { display: flex; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); flex-direction: column; gap: 8px; z-index: 3; }
.sr-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: background-color .3s, transform .3s; }
.sr-dots i.on { background: var(--hv); transform: scale(1.4); }

@media (min-width: 760px) {
  .dz3d { --zs: 1; }
  .sr-model { height: 440px; }
  .showroom.live .sr-ch.top { top: 40px; }
  .showroom.live .sr-ch.bottom { bottom: 48px; }
}
@media (min-width: 1100px) {
  .dz3d { --zs: 1.3; }
  .sr-bg::after { bottom: 7%; }
  .sr-hint { bottom: 8px; }
  .showroom.live .sr-ch, .showroom.live .sr-ch.top, .showroom.live .sr-ch[data-ch="0"] { top: 50%; bottom: auto; max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); transform: translateY(-46%); }
  .showroom.live .sr-ch.on { transform: translateY(-50%); }
  .showroom.live .sr-ch .inner { max-width: 560px; }
  .sr-ch h2 { font-size: clamp(3rem, 4.6vw, 4.6rem); }
  .showroom.live .sr-ch[data-ch="0"] .inner { max-width: 560px; }
  .sr-dims .d-l { left: 70%; bottom: 16%; }
  .sr-dims .d-w { left: 46%; top: 58%; }
  .sr-dims .d-h { right: 6%; top: 34%; }
}
@media (prefers-reduced-motion: reduce) {
  .sr-hint i { animation: none; }
}
@media (max-width: 759px) { .showroom.live .sr-stage .sr-dots { display: none; } }
