/* Home hero options, for review: ?hero=blueprint and ?hero=workbench */

/* ---------- A: blueprint that builds itself + next class ticket ---------- */
.hero-bp h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); }
.bp-sheet { padding-top: 30px; }
.bp-stool { display: block; width: 100%; height: auto; overflow: visible; }
.bp-stamp { opacity: 0; }
@keyframes bp-stamp { from { opacity: 0; transform: scale(2.2) rotate(-14deg); } to { opacity: 1; transform: scale(1) rotate(-6deg); } }
.bp-sheet img.bp-boo { position: absolute; right: -26px; bottom: 54px; width: 110px; height: auto; transform: rotate(10deg); cursor: pointer; opacity: 0; filter: drop-shadow(0 4px 6px rgba(30,32,28,.25)); }
.bp-sheet img.bp-boo:hover { transform: rotate(0) scale(1.06); transition: transform .25s; }
@keyframes bp-peek { from { opacity: 0; transform: translateX(-40px) rotate(-10deg); } to { opacity: 1; transform: rotate(10deg); } }

.ticket { display: grid; grid-template-columns: 76px 1fr auto; align-items: center; gap: 16px; max-width: 520px; margin-top: 26px; padding: 12px 16px 12px 12px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; box-shadow: 5px 5px 0 var(--ink); color: var(--ink); text-decoration: none; position: relative; transition: transform .2s, box-shadow .2s; }
.ticket:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.ticket::before, .ticket::after { content: ""; position: absolute; left: 84px; width: 14px; height: 14px; border-radius: 50%; background: var(--cream); border: 2px solid var(--ink); }
.ticket::before { top: -9px; } .ticket::after { bottom: -9px; }
.ticket .stub { display: grid; text-align: center; padding-right: 12px; border-right: 2px dashed var(--line); line-height: 1; }
.ticket .stub .m { font: 800 .8rem var(--body); text-transform: uppercase; color: var(--walnut); letter-spacing: .08em; }
.ticket .stub .d { font: 400 2.3rem var(--display); }
.ticket .stub .w { font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.ticket .info { display: grid; gap: 2px; min-width: 0; }
.ticket .kick { font: 400 .95rem var(--marker); color: var(--pine); }
.ticket strong { font-size: 1.05rem; line-height: 1.2; }
.ticket .meta { font-size: .85rem; color: var(--ink-2); }
.ticket .nails { display: flex; flex-wrap: wrap; gap: 3px; margin: 4px 0 2px; }
.ticket .nails i { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--ink); background: var(--paper); }
.ticket .nails i.on { background: #8d8f88; }
.ticket .go { font: 800 .85rem var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--pine); white-space: nowrap; }

/* ---------- B: Mr. Boo's workbench ---------- */
.hero-wb h1 { font-size: clamp(2.4rem, 5.4vw, 4.2rem); }
.wb { position: relative; }
.wb-bench { position: relative; aspect-ratio: 5 / 4; margin-top: 70px; border: 3px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 rgba(30,32,28,.85);
  background:
    repeating-linear-gradient(90deg, rgba(120,72,30,.10) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(0deg, transparent 0 23%, rgba(30,32,28,.28) 23% calc(23% + 2px), transparent calc(23% + 2px) 25%),
    repeating-linear-gradient(178deg, rgba(255,255,255,.07) 0 3px, transparent 3px 11px),
    linear-gradient(160deg, #D9A866, #C08A4C 55%, #B07D45); }
.wb-boo { position: absolute; left: 50%; top: -96px; width: 150px; height: auto; margin-left: -75px; z-index: 2; cursor: pointer; filter: drop-shadow(0 6px 8px rgba(30,32,28,.3)); animation: wb-boo 3.5s ease-in-out infinite; }
@keyframes wb-boo { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-5deg) translateY(-2px); } }
.wb-tool { position: absolute; padding: 0; border: 0; background: none; cursor: pointer; filter: drop-shadow(3px 4px 0 rgba(30,32,28,.35)); transition: filter .2s, scale .2s; animation: wb-drop .5s cubic-bezier(.3,1.5,.5,1) both; }
.wb-tool:nth-of-type(1) { animation-delay: .1s; } .wb-tool:nth-of-type(2) { animation-delay: .2s; } .wb-tool:nth-of-type(3) { animation-delay: .3s; } .wb-tool:nth-of-type(4) { animation-delay: .4s; }
.wb-tool:nth-of-type(5) { animation-delay: .5s; } .wb-tool:nth-of-type(6) { animation-delay: .6s; } .wb-tool:nth-of-type(7) { animation-delay: .7s; } .wb-tool:nth-of-type(8) { animation-delay: .8s; }
@keyframes wb-drop { from { opacity: 0; translate: 0 -30px; } to { opacity: 1; translate: 0 0; } }
.wb-tool svg { display: block; width: 100%; height: auto; overflow: visible; }
.wb-tool:hover, .wb-tool:focus-visible, .wb-tool.on { scale: 1.12; filter: drop-shadow(5px 8px 0 rgba(30,32,28,.4)) drop-shadow(0 0 0 #E4B53C); z-index: 3; }
.wb-tool:focus-visible { outline: 3px dashed var(--safety); outline-offset: 6px; border-radius: 6px; }
.wb-card { margin-top: 18px; padding: 12px 16px; min-height: 76px; background: var(--paper); border: 2px solid var(--ink); border-radius: 8px; transform: rotate(-.6deg); font-size: .98rem; }
.wb-card strong { font-family: var(--display); font-weight: 400; }

/* ---------- Review switcher (only shows with ?hero=) ---------- */
.hero-switch { position: fixed; left: 50%; bottom: 16px; z-index: 65; transform: translateX(-50%); display: flex; gap: 4px; padding: 5px; background: var(--ink); border-radius: 30px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.hero-switch a { padding: 7px 14px; border-radius: 22px; color: var(--cream); font: 700 .85rem var(--body); text-decoration: none; white-space: nowrap; }
.hero-switch a.on { background: var(--safety); color: var(--ink); }

@media (max-width: 900px) {
  .wb-bench { margin-top: 90px; }
  .bp-sheet img.bp-boo { right: -8px; width: 86px; }
}
@media (max-width: 520px) {
  .ticket { grid-template-columns: 64px 1fr; }
  .ticket .go { grid-column: 1 / -1; text-align: right; }
  .ticket::before, .ticket::after { left: 72px; }
  .hero-switch a { padding: 6px 10px; font-size: .78rem; }
}
@media (prefers-reduced-motion: reduce) {
  .bp-stool .part, .bp-stool .dim, .bp-stool .dim-labels, .bp-stamp, .bp-boo, .wb-boo, .wb-tool { animation: none !important; opacity: 1; stroke-dashoffset: 0; }
}

/* ---------- C: can you read a tape measure? ---------- */
.hero-tape h1 { font-size: clamp(2.2rem, 4.6vw, 3.8rem); margin-top: 18px; }
.tape-game { padding: 22px 22px 18px; background: var(--paper); border: 2px solid var(--ink); border-radius: 10px; box-shadow: 8px 8px 0 rgba(30,32,28,.85); transform: rotate(.8deg); }
.tape-ask { margin: 0 0 12px; font: 400 1.35rem var(--display); }
.tape-ask strong { color: var(--pine); font-weight: 400; }
.tape-wrap { overflow-x: auto; }
.tape-svg { display: block; width: 100%; min-width: 340px; height: auto; cursor: crosshair; filter: drop-shadow(3px 4px 0 rgba(30,32,28,.3)); }
.tape-result { display: flex; align-items: center; gap: 12px; min-height: 70px; margin-top: 12px; font-weight: 600; }
.tape-result img { width: 64px; height: 64px; flex: none; transition: transform .3s; }
.tape-result img.yay { animation: tape-yay .7s ease; }
.tape-result img.hmm { transform: rotate(-14deg); }
@keyframes tape-yay { 30% { transform: translateY(-14px) rotate(-8deg); } 60% { transform: translateY(0) scale(1.05,.95); } }
.tape-again { margin-top: 6px; padding: 0; border: 0; background: none; font: 700 .9rem var(--body); text-decoration: underline; cursor: pointer; color: var(--pine); }

/* ---------- D: drag to build ---------- */
.hero-slide h1 { font-size: clamp(2.3rem, 4.8vw, 4rem); margin-top: 18px; }
.slide-sheet { padding-top: 30px; }
.slide-ctl { display: block; margin: 8px 0 4px; }
.slide-steps { display: flex; justify-content: space-between; font: 400 .85rem var(--marker); color: var(--walnut); }
.build-range { width: 100%; margin: 6px 0 0; accent-color: var(--pine); height: 28px; cursor: grab; }
.build-range:active { cursor: grabbing; }

/* ---------- E: Mr. Boo asks who's building ---------- */
.boo-hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 34px; align-items: center; margin-top: 12px; }
.boo-hero-dog img { display: block; width: min(380px, 100%); height: auto; margin: 0 auto; cursor: pointer; filter: drop-shadow(0 10px 14px rgba(30,32,28,.25)); animation: boo-hero-breathe 3.8s ease-in-out infinite; transform-origin: 50% 100%; }
@keyframes boo-hero-breathe { 50% { transform: scale(1.012, .99) rotate(-1deg); } }
.boo-hero-talk { position: relative; padding: 26px 28px 22px; background: var(--paper); border: 2px solid var(--ink); border-radius: 22px 22px 22px 4px; box-shadow: 8px 8px 0 var(--pine); }
.boo-hero-talk::before { content: ""; position: absolute; left: -17px; bottom: 34px; width: 26px; height: 26px; background: var(--paper); border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); }
.boo-hero-hi { margin: 0; font: 400 1.2rem var(--marker); color: var(--walnut); }
.boo-hero-talk h1 { margin: 2px 0 16px; font-size: clamp(2.4rem, 5vw, 4rem); }
.boo-hero-picks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.boo-hero-picks a { display: grid; gap: 2px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: 10px; background: var(--cream); color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .15s, box-shadow .15s, background .15s; }
.boo-hero-picks a:hover, .boo-hero-picks a:focus-visible { transform: translate(-2px, -2px); box-shadow: 5px 5px 0 var(--ink); background: var(--tan-lt); }
.boo-hero-picks strong { font: 400 1.1rem var(--display); }
.boo-hero-picks span { font-size: .88rem; color: var(--ink-2); }

@media (max-width: 900px) {
  .boo-hero-grid { grid-template-columns: minmax(0,1fr); gap: 10px; }
  .boo-hero-dog img { width: 220px; }
  .boo-hero-talk::before { left: 50%; top: -15px; bottom: auto; margin-left: -13px; transform: rotate(135deg); }
}
@media (max-width: 520px) { .boo-hero-picks { grid-template-columns: 1fr; } .tape-game { transform: none; } }
@media (prefers-reduced-motion: reduce) { .boo-hero-dog img, .tape-result img.yay { animation: none; } }

/* ---------- The 8-step build (blueprint + slider heroes) ---------- */
.bp-stool .leg-l { --x: -150px; --y: 40px; } .bp-stool .leg-r { --x: 150px; --y: 60px; }
.bp-stool .brace { --x: 0px; --y: 120px; } .bp-stool .top { --x: 0px; --y: -150px; }
.bp-stool .part { opacity: 0; transform: translate(var(--x), var(--y)) rotate(-8deg); transition: transform .7s cubic-bezier(.3,1.25,.5,1), opacity .4s, filter .4s; }
.s3 .bp-stool .part { opacity: .6; transform: translate(calc(var(--x) * .55), calc(var(--y) * .55)) rotate(-4deg); }
.s4 .bp-stool .part { opacity: .85; filter: brightness(1.08) saturate(.9); }
.s5 .bp-stool .leg-l, .s5 .bp-stool .leg-r { opacity: 1; transform: none; filter: none; }
.s6 .bp-stool .brace, .s6 .bp-stool .top { opacity: 1; transform: none; filter: none; }
.s6 .bp-stool .top { transition-delay: .25s; }
.bp-stool .dim { stroke-dasharray: 220; stroke-dashoffset: 220; transition: stroke-dashoffset .8s ease; }
.s1 .bp-stool .dim { stroke-dashoffset: 0; }
.bp-stool .dim-labels { opacity: 0; transition: opacity .4s; } .s2 .bp-stool .dim-labels { opacity: 1; }
.s7 .bp-stool .dims, .s7 .bp-stool .dim-labels { opacity: .35; transition: opacity .4s; }
.bp-stool .sc { opacity: 0; transform-box: fill-box; transform-origin: center; transform: scale(0) rotate(-90deg); transition: opacity .2s, transform .35s cubic-bezier(.3,1.8,.5,1); transition-delay: calc(.7s + var(--d) * .1s); }
.s6 .bp-stool .sc { opacity: 1; transform: none; }
.bp-stool .square-check { opacity: 0; transition: opacity .3s; } .s7 .bp-stool .square-check { opacity: 1; }
.s7:not(.s8) .bp-stool .square-check { animation: sq-pop .5s cubic-bezier(.3,1.8,.5,1); }
@keyframes sq-pop { from { transform: translate(150px, 70px) scale(.2); } to { transform: translate(150px, 70px) scale(1); } }
.s8 .bp-stool { animation: stool-test .7s ease; }
@keyframes stool-test { 30% { transform: translateY(6px) scaleY(.97); } 60% { transform: translateY(-3px); } }
.bp-stamp, .slide-stamp { opacity: 0; transform: scale(1.8) rotate(-14deg); transition: opacity .2s, transform .35s cubic-bezier(.3,1.8,.5,1); }
.s8 .bp-stamp, .s8 .slide-stamp { opacity: 1; transform: scale(1) rotate(-6deg); }
.bp-sheet img.bp-boo { transition: opacity .5s .4s, transform .5s .4s; transform: translateX(-30px) rotate(-10deg); }
.s8 img.bp-boo { opacity: 1; transform: rotate(10deg); }
.build-steps { display: grid; grid-template-columns: repeat(8, minmax(0,1fr)); gap: 4px; margin: 10px 0 2px; padding: 0; list-style: none; cursor: pointer; }
.build-steps li { display: grid; justify-items: center; gap: 3px; font: 700 .68rem/1.1 var(--body); text-align: center; color: var(--ink-2); opacity: .55; transition: opacity .3s, color .3s; }
.build-steps li span { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--ink); border-radius: 50%; background: var(--paper); font: 400 .8rem var(--display); transition: background .3s, transform .3s; }
.build-steps li.done { opacity: .9; } .build-steps li.done span { background: var(--tan); }
.build-steps li.on { opacity: 1; color: var(--ink); } .build-steps li.on span { background: var(--pine); color: var(--cream); transform: scale(1.18); }
.build-caption { min-height: 2.6em; margin: 4px 0 6px; text-align: center; font: 400 1rem/1.3 var(--marker); color: var(--walnut); }
@media (max-width: 520px) { .build-steps { grid-template-columns: repeat(4, minmax(0,1fr)); row-gap: 8px; } }
@media (prefers-reduced-motion: reduce) { .bp-stool .part, .bp-stool .sc, .bp-stool .dim { transition: none; } .s8 .bp-stool { animation: none; } }
