/* ==========================================================================
   Motion lab (/test) — candidate animations and micro-interactions.
   Only test.html loads this file; nothing here affects the live pages.
   Everything switches off for visitors who prefer reduced motion.
   ========================================================================== */

.lab-intro { max-width: 620px; }
.lab-note {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 24px;
  padding: 8px 14px; border-radius: 999px; background: var(--gold-soft);
  font-size: 13px; font-weight: 600; color: var(--gold-text);
}
.lab-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.lab-card { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.lab-card.wide { grid-column: 1 / -1; }
.lab-head { display: flex; align-items: baseline; gap: 12px; }
.lab-num { font-size: 13px; font-weight: 600; color: var(--gold-text); }
.lab-card h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.lab-card .lab-desc { font-size: 14px; color: var(--muted); line-height: 1.6; }
.lab-card .lab-where { font-size: 12px; color: var(--muted); }
.lab-card .lab-where b { color: var(--ink-soft); font-weight: 600; }
.lab-stage {
  border-radius: var(--radius-sm); background: var(--cream); border: 1px dashed var(--line);
  min-height: 180px; display: flex; align-items: center; justify-content: center; gap: 14px;
  flex-wrap: wrap; padding: 24px; position: relative; overflow: hidden;
}
@media (max-width: 860px) { .lab-grid { grid-template-columns: 1fr; } }

/* 01 · Scroll progress bar ---------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100;
  background: var(--gold); transform-origin: 0 50%; transform: scaleX(0);
}

/* 02 · Headline words rise in -------------------------------------------- */
.split-words .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .08em; margin-bottom: -.08em; }
.split-words .w > span { display: inline-block; transform: translateY(105%); transition: transform .8s var(--ease-out); transition-delay: calc(var(--i) * 60ms); }
.split-words.in .w > span { transform: none; }
.lab-headline { font-size: clamp(30px, 4vw, 44px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; text-align: center; }

/* 03 · Magnetic buttons ---------------------------------------------------- */
[data-magnetic] { transition: transform .35s cubic-bezier(.2, .7, .2, 1), background-color .2s, color .2s; will-change: transform; }

/* 04 · Click ripple -------------------------------------------------------- */
[data-ripple] { position: relative; overflow: hidden; }
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  width: 16px; height: 16px; margin: -8px 0 0 -8px;
  background: rgba(255, 255, 255, .45); transform: scale(0); animation: ripple .6s ease-out forwards;
}
.btn-ghost .ripple { background: rgba(186, 118, 33, .25); }
@keyframes ripple { to { transform: scale(22); opacity: 0; } }

/* 05 · 3D tilt card with light glare ---------------------------------------- */
.tilt-card {
  width: 240px; height: 150px; border-radius: 14px; background: var(--ink); color: var(--cream);
  padding: 22px; display: flex; flex-direction: column; justify-content: space-between;
  transform: perspective(700px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .4s var(--ease-out); position: relative; overflow: hidden;
}
.tilt-card::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(220px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .22), transparent 60%);
}
.tilt-card:hover::after { opacity: 1; }
.tilt-card strong { font-size: 20px; }
.tilt-card span { font-size: 12px; color: var(--muted-2); }

/* 06 · Spotlight cards ------------------------------------------------------ */
.spot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.spot-card {
  position: relative; border-radius: 12px; padding: 20px 16px; background: var(--white);
  border: 1px solid var(--line); font-size: 14px; font-weight: 600; overflow: hidden;
}
.spot-card::before {
  content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s;
  background: radial-gradient(180px circle at var(--x, 50%) var(--y, 50%), rgba(186, 118, 33, .16), transparent 70%);
}
.spot-card:hover::before { opacity: 1; }
.spot-card span { position: relative; display: block; font-weight: 400; font-size: 12px; color: var(--muted); margin-top: 4px; }

/* 07 · Image wipe reveal + parallax ----------------------------------------- */
.wipe { width: 100%; border-radius: 12px; overflow: hidden; aspect-ratio: 16 / 7; clip-path: inset(0 100% 0 0 round 12px); transition: clip-path 1.2s var(--ease-out); }
.wipe.in { clip-path: inset(0 0 0 0 round 12px); }
.wipe img { width: 100%; height: 120%; object-fit: cover; object-position: 50% 20%; transform: translateY(var(--py, 0)); will-change: transform; }

/* 08 · Services marquee ----------------------------------------------------- */
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 40px; animation: marquee 22s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; display: inline-flex; align-items: center; gap: 40px; }
.marquee-track span::after { content: "✦"; color: var(--gold); font-size: 20px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* 09 · Link underline draw ---------------------------------------------------- */
.draw-link { position: relative; font-size: 18px; font-weight: 500; }
.draw-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--gold);
  transform: scaleX(0); transform-origin: right; transition: transform .45s var(--ease-out);
}
.draw-link:hover::after, .draw-link:focus-visible::after { transform: scaleX(1); transform-origin: left; }

/* 10 · Copy email + toast ------------------------------------------------------ */
.copy-chip {
  display: inline-flex; align-items: center; gap: 10px; height: 44px; padding: 0 18px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--white); cursor: pointer; font-size: 15px; transition: border-color .2s, transform .2s;
}
.copy-chip:hover { border-color: var(--gold); }
.copy-chip:active { transform: scale(.97); }
.copy-chip svg { width: 16px; height: 16px; color: var(--gold); }
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: grid; gap: 8px; pointer-events: none; }
.toast {
  background: var(--ink); color: var(--cream); padding: 12px 18px; border-radius: 12px; font-size: 14px;
  display: flex; align-items: center; gap: 10px; box-shadow: 0 12px 30px -12px rgba(0, 0, 0, .4);
  animation: toast-in .35s var(--ease-out), toast-out .3s ease-in 2.2s forwards;
}
.toast::before { content: "✓"; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); color: var(--on-gold); font-size: 12px; }
@keyframes toast-in { from { transform: translateY(16px) scale(.96); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }

/* 11 · Smooth accordion ------------------------------------------------------- */
.acc { width: 100%; border-top: 1px solid var(--line); }
.acc-item { border-bottom: 1px solid var(--line); }
.acc-btn {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 16px 2px; background: none; border: 0; cursor: pointer; font-size: 16px; font-weight: 500; text-align: left;
}
.acc-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--gold-soft); position: relative; flex: none; transition: transform .35s var(--ease-out), background-color .2s; }
.acc-icon::before, .acc-icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; background: var(--gold-text); transform: translate(-50%, -50%); }
.acc-icon::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .35s var(--ease-out); }
.acc-item.open .acc-icon { transform: rotate(180deg); background: var(--gold); }
.acc-item.open .acc-icon::before, .acc-item.open .acc-icon::after { background: var(--white); }
.acc-item.open .acc-icon::after { transform: translate(-50%, -50%) rotate(0); }
.acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .4s var(--ease-out); }
.acc-item.open .acc-panel { grid-template-rows: 1fr; }
.acc-panel > div { overflow: hidden; }
.acc-panel p { padding: 0 2px 16px; font-size: 14px; color: var(--muted); line-height: 1.65; }

/* 12 · Floating label + success tick ------------------------------------------ */
.float-field { position: relative; width: min(340px, 100%); }
.float-field input {
  width: 100%; height: 54px; padding: 20px 44px 6px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--white); font-size: 15px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.float-field label { position: absolute; left: 15px; top: 17px; font-size: 15px; color: var(--muted); pointer-events: none; transition: transform .2s var(--ease-out), font-size .2s, color .2s; transform-origin: left top; }
.float-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(186, 118, 33, .12); }
.float-field input:focus + label, .float-field input:not(:placeholder-shown) + label { transform: translateY(-10px); font-size: 11.5px; color: var(--gold-text); }
.float-field .tick { position: absolute; right: 14px; top: 17px; width: 20px; height: 20px; color: #3f8f5a; }
.float-field .tick path { stroke-dasharray: 24; stroke-dashoffset: 24; transition: stroke-dashoffset .4s var(--ease-out) .05s; }
.float-field input:valid:not(:placeholder-shown) ~ .tick path { stroke-dashoffset: 0; }

/* 13 · Loading shimmer --------------------------------------------------------- */
.shimmer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; width: 100%; }
.sk-card { border-radius: 12px; background: var(--white); border: 1px solid var(--line); padding: 12px; }
.sk { border-radius: 8px; background: linear-gradient(90deg, #f1e9de 0%, #faf5ee 40%, #f1e9de 80%); background-size: 300% 100%; animation: shimmer 1.4s ease-in-out infinite; }
.sk.img { aspect-ratio: 4 / 3; }
.sk.line { height: 10px; margin-top: 10px; }
.sk.line.short { width: 60%; }
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -50% 0; } }
.sk-card.loaded .sk { animation: none; background: var(--sand); }
.sk-card .sk-text { display: none; font-size: 13px; font-weight: 600; margin-top: 10px; }
.sk-card.loaded .sk.line { display: none; }
.sk-card.loaded .sk-text { display: block; animation: rise .45s var(--ease-out); }

/* 14 · Waffle grid (brand easter egg) ----------------------------------------- */
.waffle {
  display: grid; grid-template-columns: repeat(8, 30px); gap: 6px; padding: 14px;
  border-radius: 18px; background: #e9c48f; transform: rotate(-3deg);
}
.waffle i { width: 30px; height: 30px; border-radius: 6px; background: #c98b3f; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .12); transition: background-color .6s ease, transform .3s var(--ease-out); }
.waffle i.syrup { background: var(--gold); transform: scale(.9); transition-duration: .05s; }

/* 15 · Back-to-top ---------------------------------------------------------- */
.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%;
  border: 0; cursor: pointer; background: var(--ink); color: var(--cream);
  display: grid; place-items: center; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .45);
  opacity: 0; transform: translateY(14px) scale(.9); pointer-events: none;
  transition: opacity .3s, transform .35s var(--ease-out), background-color .2s;
}
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--gold); }
.to-top svg { width: 18px; height: 18px; transition: transform .3s var(--ease-out); }
.to-top:hover svg { transform: translateY(-2px); }

/* 16 · Cursor follower (desktop only) --------------------------------------- */
.cursor-dot {
  position: fixed; left: 0; top: 0; z-index: 130; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--gold); pointer-events: none; mix-blend-mode: multiply;
  transition: width .25s var(--ease-out), height .25s var(--ease-out), margin .25s var(--ease-out), opacity .2s;
}
.cursor-dot.big { width: 44px; height: 44px; margin: -22px 0 0 -22px; opacity: .35; }
.cursor-zone { cursor: none; }
.cursor-zone a, .cursor-zone button { cursor: none; }

/* Status badges and groups ---------------------------------------------------- */
.lab-head { flex-wrap: wrap; }
.lab-badge { margin-left: auto; align-self: center; font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.lab-badge.ok { background: #e3f1e7; color: #2f6e44; }
.lab-badge.new { background: var(--gold-soft); color: var(--gold-text); }
.lab-badge.no { background: var(--sand); color: var(--muted); }
.lab-section { padding-top: 0; }
.lab-group { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 20px; }
.lab-group-note { margin: -12px 0 20px; font-size: 14px; }
#not-chosen .lab-card { opacity: .75; }
.lab-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.lab-jump a { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); transition: border-color .2s; }
.lab-jump a:hover { border-color: var(--gold); }

/* 17 · Text scramble ---------------------------------------------------------- */
.scramble { font-size: 30px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; cursor: default; }
.scramble.small { font-size: 14px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }

/* 18 · Image preview on hover -------------------------------------------------- */
.hover-list { list-style: none; width: 100%; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.hover-list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--line); cursor: default; transition: color .25s; }
.hover-list li span { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; }
.hover-list li em { font-style: normal; font-size: 13px; color: var(--muted); }
.hover-list:hover li { color: var(--muted-2); }
.hover-list:hover li:hover { color: var(--ink); }
.hover-float {
  position: fixed; left: 0; top: 0; z-index: 110; width: 200px; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden;
  pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.85) rotate(-4deg);
  transition: opacity .25s, transform .35s var(--ease-out); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.hover-float.show { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(-2deg); }
.hover-float img { width: 100%; height: 100%; object-fit: cover; }

/* 20 · Stacking cards ---------------------------------------------------------- */
.lab-stage:has(.stack-scroll) { padding: 0; align-items: stretch; }
.stack-scroll { width: 100%; height: 300px; overflow-y: auto; padding: 16px; scroll-behavior: smooth; outline-offset: -3px; }
.stack-card {
  position: sticky; top: calc(var(--i) * 14px); height: 190px; margin-bottom: 70px; border-radius: 14px; padding: 20px;
  background: var(--white); border: 1px solid var(--line); box-shadow: 0 -8px 24px -16px rgba(0, 0, 0, .25);
  display: flex; flex-direction: column; gap: 6px;
}
.stack-card:nth-child(2) { background: var(--gold-soft); }
.stack-card:nth-child(3) { background: #e9c48f; }
.stack-card:nth-child(4) { background: var(--ink); color: var(--cream); }
.stack-card span { font-size: 12px; font-weight: 600; color: var(--gold-text); }
.stack-card:nth-child(4) span { color: #e9c48f; }
.stack-card strong { font-size: 22px; }
.stack-card p { font-size: 14px; opacity: .8; }
.stack-end { text-align: center; padding: 30px 0 60px; font-size: 14px; color: var(--muted); }

/* 19 · Swipe / drag carousel ---------------------------------------------------- */
.lab-stage:has(.snap-row) { padding: 24px 0; }
.snap-row {
  display: flex; gap: 14px; width: 100%; overflow-x: auto; padding: 4px 24px 10px; scroll-snap-type: x mandatory; scroll-padding: 0 24px;
  scrollbar-width: none; cursor: grab; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.snap-row::-webkit-scrollbar { display: none; }
.snap-row.dragging { cursor: grabbing; scroll-snap-type: none; }
.snap-item { flex: 0 0 min(220px, 62%); scroll-snap-align: start; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); transition: transform .3s var(--ease-out); }
.snap-item:hover { transform: translateY(-4px); }
.snap-item img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; }

/* 21 · Rolling numbers (odometer) ----------------------------------------------- */
.odo-row { display: flex; gap: 36px; flex-wrap: wrap; justify-content: center; width: 100%; }
.odo-stat { text-align: center; }
.odo-stat > span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.odo { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: inline-flex; }
.odo .col { display: inline-block; height: 1em; overflow: hidden; }
.odo .col > span { display: flex; flex-direction: column; transform: translateY(0); transition: transform 1.6s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 120ms); }
.odo .col > span > b { font-weight: inherit; height: 1em; line-height: 1; }

/* 23 · Glowing rotating border -------------------------------------------------- */
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
.glow-card {
  --angle: 0deg; position: relative; width: 250px; padding: 22px; border-radius: 16px; display: flex; flex-direction: column; gap: 6px;
  border: 2px solid transparent;
  background: linear-gradient(var(--white), var(--white)) padding-box,
              conic-gradient(from var(--angle), var(--line) 0deg, var(--line) 250deg, var(--gold) 310deg, #f3cf95 330deg, var(--line) 360deg) border-box;
  animation: glow-spin 4s linear infinite;
}
.glow-card strong { font-size: 20px; }
.glow-card > span:last-child { font-size: 13px; color: var(--muted); }
.glow-tag { align-self: flex-start; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--gold-button); color: var(--on-gold); }
@keyframes glow-spin { to { --angle: 360deg; } }

/* 24 · Button fill sweep ------------------------------------------------------- */
.fill-btn { position: relative; overflow: hidden; isolation: isolate; transition: color .35s var(--ease-out), border-color .35s; }
.fill-btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; background: var(--gold);
  border-radius: 40% 40% 0 0 / 30% 30% 0 0; transform: translateY(105%); transition: transform .5s var(--ease-out), border-radius .5s var(--ease-out);
}
.fill-btn.side::before { border-radius: 0; transform: translateX(-101%); }
.fill-btn:hover, .fill-btn:focus-visible { color: var(--on-gold); border-color: var(--gold); background: transparent; }
.fill-btn:hover::before, .fill-btn:focus-visible::before { transform: none; border-radius: 0; }
.fill-btn > span { display: inline-flex; align-items: center; gap: 8px; }

/* 22 · List rows that slide ----------------------------------------------------- */
.row-list { width: 100%; border-top: 1px solid var(--line); }
.row-link { display: grid; grid-template-columns: 40px 1fr auto 28px; align-items: center; gap: 12px; padding: 16px 4px; border-bottom: 1px solid var(--line); color: var(--muted); transition: color .3s, padding .4s var(--ease-out), background-color .3s; }
.row-t { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.row-n, .row-k { font-size: 13px; }
.row-a { display: grid; place-items: center; opacity: 0; transform: translateX(-10px); transition: opacity .3s, transform .4s var(--ease-out); color: var(--gold); }
.row-a svg { width: 18px; height: 18px; }
.row-link:hover, .row-link:focus-visible { color: var(--ink); padding-left: 16px; background: var(--white); }
.row-link:hover .row-a, .row-link:focus-visible .row-a { opacity: 1; transform: none; }
@media (max-width: 560px) { .row-link { grid-template-columns: 28px 1fr 24px; } .row-k { display: none; } }

/* 26 · Line drawing -------------------------------------------------------------- */
.draw-svg { width: 130px; height: 130px; color: var(--gold); }
.draw-svg > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.draw-svg rect { fill: transparent; transition: stroke-dashoffset 1.2s ease-in-out, fill .6s ease 2.2s; }
.draw-svg path:nth-of-type(1) { transition: stroke-dashoffset 1s ease-in-out .9s; }
.draw-svg path:nth-of-type(2) { transition: stroke-dashoffset 1s ease-in-out 1.4s; }
.draw-svg.in > * { stroke-dashoffset: 0; }
.draw-svg.in rect { fill: rgba(186, 118, 33, .16); }

/* 25 · Before / after slider ---------------------------------------------------- */
.lab-stage:has(.ba) { padding: 0; }
.ba { position: relative; width: 100%; aspect-ratio: 16 / 7; --pos: 50%; overflow: hidden; }
.ba img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba-before img { filter: grayscale(1) contrast(1.05); }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--white); pointer-events: none; }
.ba-line::after {
  content: "\2194"; position: absolute; top: 50%; left: 50%; width: 38px; height: 38px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--white); color: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 18px -6px rgba(0, 0, 0, .4);
}
.ba-tag { position: absolute; top: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(28, 22, 15, .7); color: var(--cream); pointer-events: none; }
.ba-tag.l { left: 12px; } .ba-tag.r { right: 12px; }
.ba input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba input:focus-visible ~ .ba-line::after, .ba:has(input:focus-visible) .ba-line::after { outline: 3px solid var(--gold); }

/* 28 · Highlighter pen ----------------------------------------------------------- */
.hl-text { font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.35; text-align: center; max-width: 440px; }
.hl {
  color: inherit; padding: 0 .1em; border-radius: 4px;
  background: linear-gradient(100deg, rgba(233, 196, 143, .9), rgba(233, 196, 143, .75)) no-repeat 0 85% / 0% 55%;
  transition: background-size 1s var(--ease-out);
}
.hl:nth-of-type(2) { transition-delay: .5s; }
.hl-text.in .hl { background-size: 100% 55%; }

/* 27 · Tabs with a sliding pill -------------------------------------------------- */
.tabs-demo { width: 100%; max-width: 380px; }
.tabs { position: relative; display: flex; padding: 4px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); }
.tab { position: relative; z-index: 1; flex: 1; height: 38px; border: 0; background: none; border-radius: 999px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); transition: color .3s; }
.tab[aria-selected="true"] { color: var(--on-gold); }
.tab-pill { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease-out), width .45s var(--ease-out); }
.tab-panel { padding: 16px 6px 0; font-size: 14px; color: var(--muted); line-height: 1.6; min-height: 64px; }
.tab-panel:not([hidden]) { animation: rise .45s var(--ease-out); }

/* 29 · Syrup burst ---------------------------------------------------------------- */
.burst-dot { position: fixed; z-index: 120; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50% 50% 50% 0; pointer-events: none; }

/* 30 · Sticky CTA on phones ------------------------------------------------------ */
.phone { position: relative; width: 210px; height: 360px; border-radius: 30px; border: 8px solid var(--ink); background: var(--white); overflow: hidden; }
.phone-screen { height: 100%; overflow-y: auto; padding: 14px 12px 70px; scrollbar-width: none; }
.phone-screen::-webkit-scrollbar { display: none; }
.ph-hero { height: 130px; border-radius: 10px; background: var(--ink); color: var(--cream); display: grid; place-items: center; font-weight: 600; margin-bottom: 12px; }
.ph-line { height: 8px; border-radius: 4px; background: var(--sand); margin-bottom: 8px; }
.ph-line.short { width: 60%; }
.ph-block { height: 70px; border-radius: 10px; background: var(--gold-soft); margin: 4px 0 14px; }
.phone-cta {
  position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 8px 8px 8px 12px; border-radius: 16px; background: var(--white); box-shadow: 0 -6px 24px -10px rgba(0, 0, 0, .3);
  font-size: 12px; font-weight: 600; transform: translateY(120%); transition: transform .45s var(--ease-out);
}
.phone-cta .btn { height: 32px; padding: 0 12px; font-size: 12px; }
.phone.cta-on .phone-cta { transform: none; }

.lab-grid.dense { grid-auto-flow: dense; }

/* 21A–D · Rolling-number variations -------------------------------------------- */
.odo-v { font-size: 44px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; display: inline-flex; align-items: flex-end; min-height: 1em; }
/* A · slot machine */
.odo-v .reel { display: inline-block; height: 1em; overflow: hidden; }
.odo-v .reel > span { display: flex; flex-direction: column; transition: transform 1.9s cubic-bezier(.25, 1.25, .45, 1), filter .9s ease; transition-delay: calc(var(--d) * 180ms); }
.odo-v .reel > span > b { font-weight: inherit; height: 1em; line-height: 1; }
.odo-v.spinning .reel > span { filter: blur(1.4px); }
/* B · flip tiles */
.odo-v .tile {
  position: relative; display: inline-grid; place-items: center; width: .72em; height: 1.08em; margin: 0 1.5px; border-radius: 6px;
  background: var(--ink); color: var(--cream); font-size: .82em; transform-origin: 50% 50%; box-shadow: 0 4px 10px -6px rgba(0, 0, 0, .5);
}
.odo-v .tile::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .55); }
.odo-v .sym { color: var(--gold); font-size: .8em; margin-left: 3px; }
/* C · syrup fill */
.odo-v.fill {
  color: transparent; -webkit-text-stroke: 1.5px var(--gold); font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #d99a45, var(--gold)) no-repeat 0 100% / 100% var(--level, 0%);
  -webkit-background-clip: text; background-clip: text; transition: background-size 1.8s var(--ease-out);
}
/* D · ruler dial */
[data-odo-variant="ruler"] { gap: 14px; }
.odo-v.ruler { position: relative; width: 112px; height: 70px; overflow: hidden; display: block; font-size: 15px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); mask-image: linear-gradient(90deg, transparent, #000 30%, #000 70%, transparent); }
.odo-v.ruler::before { content: ""; position: absolute; left: 50%; top: 0; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid var(--gold); z-index: 1; }
.ruler-strip { position: absolute; left: 0; top: 14px; display: flex; transition: transform 2s cubic-bezier(.3, .9, .25, 1); }
.ruler-strip > span { flex: 0 0 40px; white-space: nowrap; text-align: center; color: var(--muted); font-weight: 600; padding-top: 22px; position: relative; transition: color .4s, font-size .4s; }
.ruler-strip > span::before { content: ""; position: absolute; left: 50%; top: 0; width: 1.5px; height: 14px; background: currentColor; }
.ruler-strip > span::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 7px; background: repeating-linear-gradient(90deg, transparent 0 10px, var(--line) 10px 11px); }
.ruler-strip > span.hit { color: var(--ink); font-size: 26px; padding-top: 16px; }

/* 31 · Syrup drip edge -------------------------------------------------------- */
.lab-stage:has(.drip-zone) { padding: 0; }
.drip-zone { position: relative; width: 100%; min-height: 200px; display: grid; place-items: end center; padding-bottom: 28px; }
.drip-zone p { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.drip-band { position: absolute; left: 0; right: 0; top: 0; height: 26px; background: linear-gradient(180deg, #a5661a, var(--gold)); }
.drip, .drop { position: absolute; top: 20px; left: var(--x); background: var(--gold); }
.drip { width: var(--w); height: 0; margin-left: calc(var(--w) / -2); border-radius: 0 0 999px 999px; transition: height 1.6s cubic-bezier(.45, 0, .2, 1) var(--d); }
.drip::after { content: ""; position: absolute; left: 22%; top: 6px; width: 22%; height: 40%; border-radius: 99px; background: rgba(255, 255, 255, .28); }
.drip-zone.in .drip { height: var(--h); }
.drop { width: 9px; height: 11px; margin-left: -4.5px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; opacity: 0; top: calc(20px + var(--h) - 8px); }
.drip-zone.in .drop { animation: drop-fall 3.4s ease-in calc(2s + var(--late, 0s)) infinite; }
@keyframes drop-fall { 0% { opacity: 0; transform: translateY(0) scale(.4); } 12% { opacity: 1; transform: translateY(4px) scale(1); } 45% { opacity: 1; transform: translateY(110px); } 46%, 100% { opacity: 0; transform: translateY(110px); } }

/* 32 · Waffle tile reveal --------------------------------------------------------- */
.tile-reveal { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; width: min(100%, 640px); aspect-ratio: 16 / 8; transition: gap .7s var(--ease-out) 1.5s; }
.tile-reveal i {
  border-radius: 10px; background-image: var(--img); background-size: 600% 400%;
  background-position: calc(var(--c) * 20%) calc(var(--r) * 33.333%);
  transform: scale(0) rotate(-25deg); opacity: 0;
  transition: transform .6s cubic-bezier(.3, 1.4, .5, 1), opacity .3s, border-radius .7s var(--ease-out) 1.5s;
  transition-delay: calc((var(--c) + var(--r)) * 70ms), calc((var(--c) + var(--r)) * 70ms), 1.5s;
  box-shadow: inset 0 3px 0 rgba(0, 0, 0, .18);
}
.tile-reveal.in i { transform: none; opacity: 1; }
.tile-reveal.in { gap: 0; }
.tile-reveal.in i { border-radius: 0; box-shadow: none; }
.tile-reveal.in i:nth-child(1) { border-top-left-radius: 10px; }
.tile-reveal.in i:nth-child(6) { border-top-right-radius: 10px; }
.tile-reveal.in i:nth-child(19) { border-bottom-left-radius: 10px; }
.tile-reveal.in i:nth-child(24) { border-bottom-right-radius: 10px; }

/* 33 · Waffle iron ------------------------------------------------------------- */
.lab-stage:has(.iron) { flex-direction: column; }
.iron { position: relative; width: 200px; height: 150px; perspective: 600px; }
.iron-plate {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; padding: 10px; border-radius: 18px; background: var(--ink);
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px;
}
.iron-plate i { border-radius: 4px; background: #f3e3c4; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .1); transition: background-color .5s ease; }
.iron.cooked .iron-plate i { background: #c98b3f; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .2); transition-delay: calc(var(--n, 0) * 30ms); }
.iron-lid {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px; border-radius: 18px; background: linear-gradient(180deg, #3a2f24, var(--ink));
  transform-origin: 50% 0; transform: rotateX(82deg); transition: transform .55s cubic-bezier(.5, 0, .3, 1); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .5);
}
.iron-lid span { position: absolute; left: 50%; bottom: 14px; width: 60px; height: 10px; margin-left: -30px; border-radius: 6px; background: var(--gold); }
.iron.closed .iron-lid { transform: rotateX(0); }
.steam { position: absolute; bottom: 110px; width: 26px; height: 26px; border-radius: 50%; background: rgba(255, 255, 255, .95); filter: blur(6px); opacity: 0; }
.steam.s1 { left: 40px; } .steam.s2 { left: 90px; } .steam.s3 { left: 140px; }
.iron.closed .steam { animation: steam 1.3s ease-out infinite; }
.iron.closed .steam.s2 { animation-delay: .35s; } .iron.closed .steam.s3 { animation-delay: .7s; }
@keyframes steam { 0% { opacity: 0; transform: translateY(0) scale(.6); } 30% { opacity: .9; } 100% { opacity: 0; transform: translateY(-50px) scale(1.4); } }
.iron-msg { position: absolute; left: 50%; top: 100%; transform: translate(-50%, 8px) scale(.9); width: max-content; font-size: 13px; font-weight: 600; color: var(--gold-text); opacity: 0; transition: opacity .3s, transform .4s cubic-bezier(.3, 1.5, .5, 1); }
.iron.cooked .iron-msg { opacity: 1; transform: translate(-50%, 12px); }
.lab-stage:has(.iron) .btn { margin-top: 26px; }

/* 34 · Butter melt --------------------------------------------------------------- */
.butter-waffle { position: relative; width: 170px; height: 170px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 26px; }
.bw-grid {
  position: absolute; inset: 0; border-radius: 26px; background-color: #c98b3f;
  background-image: linear-gradient(90deg, transparent 0 12%, #e9c48f 12% 20%, transparent 20% 37%, #e9c48f 37% 45%, transparent 45% 62%, #e9c48f 62% 70%, transparent 70% 87%, #e9c48f 87% 95%, transparent 95%),
                    linear-gradient(0deg, transparent 0 12%, #e9c48f 12% 20%, transparent 20% 37%, #e9c48f 37% 45%, transparent 45% 62%, #e9c48f 62% 70%, transparent 70% 87%, #e9c48f 87% 95%, transparent 95%);
  box-shadow: inset 0 -6px 0 rgba(0, 0, 0, .12), 0 14px 26px -16px rgba(0, 0, 0, .5);
}
.bw-melt { position: absolute; left: 50%; top: 50%; width: 150px; height: 130px; margin: -65px 0 0 -75px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 160, .85), rgba(255, 230, 150, .55) 55%, transparent); transform: scale(0); transition: transform 1.4s var(--ease-out) .2s; }
.bw-pat { position: absolute; left: 50%; top: 50%; width: 52px; height: 40px; margin: -24px 0 0 -26px; border-radius: 7px; background: linear-gradient(160deg, #fff6c8, #f4dc82);
  box-shadow: 0 6px 0 #d9bd5f, 0 10px 14px -6px rgba(0, 0, 0, .4); transition: transform 1.2s var(--ease-out), border-radius 1.2s, opacity 1.2s ease .3s, box-shadow 1s; }
.butter-waffle:hover .bw-pat, .butter-waffle:focus-visible .bw-pat, .butter-waffle.melted .bw-pat { transform: scale(1.5, .35) translateY(18px); border-radius: 50%; opacity: .15; box-shadow: none; }
.butter-waffle:hover .bw-melt, .butter-waffle:focus-visible .bw-melt, .butter-waffle.melted .bw-melt { transform: scale(1); }

/* 35 · Syrup progress -------------------------------------------------------------- */
.syrup-form { display: flex; gap: 18px; align-items: center; width: 100%; }
.sf-fields { flex: 1; display: grid; gap: 10px; }
.float-field.small input { height: 48px; padding-top: 18px; font-size: 14px; }
.float-field.small label { top: 14px; font-size: 14px; }
.sf-side { display: grid; justify-items: center; gap: 8px; }
.sf-waffle { display: grid; grid-template-columns: repeat(4, 18px); gap: 4px; padding: 8px; border-radius: 12px; background: #e9c48f; }
.sf-waffle i { height: 18px; border-radius: 4px; background: #f3e3c4; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); transition: background-color .4s ease; transition-delay: calc(var(--k) * 90ms); }
.sf-waffle i.full { background: var(--gold); box-shadow: inset 0 2px 0 rgba(0, 0, 0, .18), inset 0 -3px 4px rgba(255, 255, 255, .25); }
.sf-count { font-size: 12px; font-weight: 600; color: var(--gold-text); }
@media (max-width: 480px) { .syrup-form { flex-direction: column-reverse; } }

/* 36 · Batter rise ---------------------------------------------------------------- */
.batter { font-size: clamp(34px, 6vw, 56px); font-weight: 400; letter-spacing: -0.03em; line-height: 1.1; text-align: center; cursor: default; user-select: none; }
.batter span { display: inline-block; transition: font-weight .25s ease, transform .3s var(--ease-out), color .3s; }
.batter span.sp { width: .25em; }

/* 37 · Waffle pop-up toaster --------------------------------------------------------- */
.toaster { position: relative; width: 210px; height: 200px; }
.tw {
  position: absolute; bottom: 60px; width: 64px; height: 84px; border-radius: 10px; background-color: #c98b3f;
  background-image: repeating-linear-gradient(90deg, transparent 0 11px, #e9c48f 11px 15px), repeating-linear-gradient(0deg, transparent 0 11px, #e9c48f 11px 15px);
  transform: translateY(32px); transition: transform .5s ease-in; box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15);
}
.tw1 { left: 34px; } .tw2 { left: 112px; }
.toaster.down .tw { transform: translateY(80px); }
.toaster.pop .tw { animation: pop-up .8s cubic-bezier(.3, 1.6, .5, 1) forwards; }
.toaster.pop .tw2 { animation-delay: .06s; }
@keyframes pop-up { 0% { transform: translateY(80px); } 100% { transform: translateY(-6px) rotate(var(--rot, -3deg)); } }
.tw2 { --rot: 4deg; }
.t-body { position: absolute; left: 10px; right: 10px; bottom: 0; height: 110px; border-radius: 30px 30px 18px 18px; background: linear-gradient(180deg, #3a2f24, var(--ink)); }
.t-slot { position: absolute; top: 8px; width: 72px; height: 8px; border-radius: 6px; background: #0d0a07; }
.t-slot:nth-child(1) { left: 20px; } .t-slot:nth-child(2) { right: 20px; }
.t-dial { position: absolute; left: 50%; bottom: 24px; width: 26px; height: 26px; margin-left: -13px; border-radius: 50%; border: 3px solid var(--gold); }
.t-lever { position: absolute; right: -4px; top: 104px; width: 22px; height: 12px; border: 0; border-radius: 4px; background: var(--gold); cursor: pointer; transition: transform .3s ease; }
.t-lever::after { content: ""; position: absolute; inset: -10px; }
.toaster.down .t-lever { transform: translateY(54px); }
.t-ding { position: absolute; right: -8px; top: 30px; font-size: 16px; font-weight: 700; color: var(--gold-text); opacity: 0; transform: rotate(12deg); }
.toaster.pop .t-ding { animation: ding .9s ease-out forwards; }
@keyframes ding { 0% { opacity: 0; transform: rotate(12deg) scale(.5); } 30% { opacity: 1; transform: rotate(12deg) scale(1.15); } 100% { opacity: 1; transform: rotate(12deg) scale(1); } }

/* 38 · Waffle Designs stamp ---------------------------------------------------------- */
.lab-stage:has(.stamp-card) { flex-direction: column; }
.stamp-card { position: relative; width: min(280px, 100%); padding: 18px; border-radius: 12px; background: var(--white); border: 1px solid var(--line); }
.stamp-line { font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.stamp { position: absolute; right: -10px; bottom: -22px; width: 110px; height: 110px; color: var(--gold); opacity: 0; transform: scale(2.4) rotate(-30deg); pointer-events: none; }
.stamp-card.stamped .stamp { animation: stamp .45s cubic-bezier(.5, 0, .75, 0) forwards; }
.stamp-card.stamped { animation: thump .35s ease-out .42s; }
@keyframes stamp { to { opacity: .92; transform: scale(1) rotate(-14deg); } }
@keyframes thump { 0%, 100% { transform: none; } 25% { transform: translate(-2px, 2px) rotate(-.6deg); } 60% { transform: translate(2px, -1px) rotate(.4deg); } }

/* 39 · Syrup drop (gooey) button --------------------------------------------------------- */
.goo-btn { position: relative; display: inline-flex; align-items: center; height: 54px; padding: 0 30px 0 26px; color: var(--on-gold); font-weight: 600; font-size: 15px; isolation: isolate; }
.goo-layer { position: absolute; inset: -20px -90px -20px -20px; filter: url(#goo); z-index: -1; pointer-events: none; }
.goo-pill { position: absolute; left: 20px; top: 20px; bottom: 20px; right: 90px; border-radius: 999px; background: var(--gold); }
.goo-ball { position: absolute; top: 22px; right: 96px; width: 50px; height: 50px; border-radius: 50%; background: var(--gold); transition: transform .7s cubic-bezier(.3, 1.4, .5, 1); }
.goo-icon { position: absolute; right: -62px; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; opacity: 0; transform: scale(.4); transition: opacity .3s .15s, transform .5s cubic-bezier(.3, 1.4, .5, 1) .1s; }
.goo-icon svg { width: 18px; height: 18px; }
.goo-btn:hover .goo-ball, .goo-btn:focus-visible .goo-ball { transform: translateX(66px); }
.goo-btn:hover .goo-icon, .goo-btn:focus-visible .goo-icon { opacity: 1; transform: none; }

/* 40 · Peel-off waffle sticker ------------------------------------------------------------
   Sized by --s; .sm / .round / .dark variants. The shadow is a plain layer (no CSS filter),
   which Safari repaints reliably while the corner peels. */
@property --peel { syntax: "<length>"; initial-value: 0px; inherits: true; }
.sticker {
  --s: 150px; --r: 22px; --peel: 0px; --peel-on: calc(var(--s) * .41);
  position: relative; width: var(--s); height: var(--s); border: 0; padding: 0; background: none; cursor: pointer;
  transform: rotate(var(--tilt, -6deg)); transition: --peel .5s var(--ease-out);
}
.sticker:hover, .sticker:focus-visible, .sticker.peeled { --peel: var(--peel-on); }
.sticker::before {
  content: ""; position: absolute; inset: 3px; border-radius: var(--r); box-shadow: 0 7px 12px -5px rgba(0, 0, 0, .3);
  clip-path: polygon(-30% -30%, 130% -30%, 130% calc(100% - var(--peel) * 1.1), calc(100% - var(--peel) * 1.1) 130%, -30% 130%);
}
.sticker-face {
  position: absolute; inset: 0; border-radius: var(--r); display: grid; place-content: center; text-align: center; color: var(--on-gold);
  font-size: calc(var(--s) * .2); font-weight: 800; letter-spacing: -0.02em; line-height: 1; border: max(3px, calc(var(--s) * .027)) solid #fff;
  background-color: var(--gold);
  background-image: repeating-linear-gradient(90deg, transparent 0 calc(var(--s) * .147), rgba(255, 255, 255, .14) calc(var(--s) * .147) calc(var(--s) * .173)),
                    repeating-linear-gradient(0deg, transparent 0 calc(var(--s) * .147), rgba(255, 255, 255, .14) calc(var(--s) * .147) calc(var(--s) * .173));
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--peel)), calc(100% - var(--peel)) 100%, 0 100%);
}
.sticker-face small { font-size: max(8px, calc(var(--s) * .073)); font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-top: calc(var(--s) * .04); opacity: .9; }
.sticker-fold {
  position: absolute; right: 0; bottom: 0; width: var(--peel); height: var(--peel);
  background: linear-gradient(315deg, #ffffff 0%, #f4ede2 45%, #d9cbb8 100%);
  clip-path: polygon(0 0, 100% 0, 0 100%); border-top-left-radius: var(--r);
}
.sticker.sm { --s: 84px; --r: 14px; }
.sticker.xs { --s: 64px; --r: 11px; }
.sticker.round { --r: 50%; }
.sticker.round .sticker-face { background-image: none; }
.sticker.dark .sticker-face { background-color: var(--ink); color: #f3cf95; }
.sticker.cream .sticker-face { background-color: #f6e9d6; color: var(--gold-text); border-color: var(--gold); background-image: none; }
.sticker .sticker-face.long { font-size: calc(var(--s) * .15); }

/* 40A–40F · Sticker ideas: small mock-ups of real parts of the site --------------------- */
.mock { position: relative; width: min(240px, 100%); background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; text-align: left; }
.mock img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; }
.mock .m-k { display: block; font-size: 11px; color: var(--muted); margin-top: 10px; }
.mock .m-t { display: block; font-size: 15px; font-weight: 600; margin-top: 2px; }
.mock .m-p { display: block; font-size: 14px; font-weight: 600; color: var(--gold-text); margin-top: 10px; }
.mock .sticker { position: absolute; top: -18px; right: -14px; z-index: 2; }
.mock.session { padding: 18px; }
.mock.upcoming img { filter: grayscale(.4); opacity: .75; }
.mock-hero { position: relative; width: 100%; border-radius: 14px; background: var(--ink); color: var(--cream); padding: 28px 24px; }
.mock-hero .m-k { color: #e9c48f; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }
.mock-hero .m-t { display: block; font-size: 28px; font-weight: 600; letter-spacing: -0.02em; margin-top: 6px; max-width: 60%; }
.mock-hero .sticker { position: absolute; right: 26px; top: 50%; margin-top: calc(var(--s) / -2); }
.mock-footer { position: relative; width: 100%; border-radius: 14px; background: var(--ink); color: var(--muted-2); padding: 26px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 13px; }
.mock-footer b { color: var(--cream); font-size: 22px; letter-spacing: -0.02em; }

/* Round 4 ======================================================================= */
.lab-badge.maybe { background: #e8eef6; color: #3d5a80; }
.lab-grid.single { grid-template-columns: 1fr; }

/* 21E · Syrup slot (smooth version): one eased round of the reels, and a syrup fill
   made from two opposite transforms so it stays on the GPU and in step with the reels */
.odo-v.slotfill { position: relative; }
.slotfill .sf-layer { display: inline-flex; align-items: flex-end; }
.slotfill .sf-back { color: transparent; -webkit-text-stroke: 1.5px var(--gold); }
.slotfill .sf-mask { position: absolute; inset: 0 -.25em; overflow: hidden; transform: translateY(100%); }
.slotfill .sf-front { position: absolute; inset: 0 .25em; color: var(--gold); transform: translateY(-100%); }
/* Crop the reels top and bottom only, so wide glyphs (0, +, %) keep their sides; and loosen the spacing a touch */
.odo-v.slotfill { letter-spacing: 0; }
.slotfill .reel { overflow: visible; clip-path: inset(0 -.25em); }
.slotfill .sf-mask, .slotfill .sf-front { transition: transform 2.4s cubic-bezier(.33, 0, .2, 1) .1s; will-change: transform; }
.slotfill.full .sf-mask, .slotfill.full .sf-front { transform: none; }
.slotfill .reel > span { width: 100%; align-items: center; transition: transform 2.4s cubic-bezier(.22, 1, .36, 1); transition-delay: calc(var(--d) * 140ms); will-change: transform; }
[data-odo-variant="slotfill"] .odo-v { font-size: 56px; }

/* 31A / 31C / 31D · gooey syrup drips (shared) --------------------------------------- */
.lab-stage:has(.goo-drips) { padding: 0; }
.goo-drips { position: relative; width: 100%; min-height: 220px; display: grid; place-items: end center; padding-bottom: 28px; }
.goo-drips p { position: relative; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.gd-layer, .dc-layer { position: absolute; left: 0; right: 0; top: -12px; bottom: 0; filter: url(#syrup-goo); pointer-events: none; }
.gd-band { position: absolute; left: -30px; right: -30px; top: 0; height: 36px; background: var(--gold); }
.gd {
  position: absolute; top: 26px; left: var(--x); width: var(--w); height: 0; margin-left: calc(var(--w) / -2);
  border-radius: 0 0 999px 999px; background: var(--gold); transform-origin: 50% 0;
  transition: height 2s cubic-bezier(.45, 0, .2, 1) calc(var(--d) * .4);
}
.goo-drips.in .gd { height: var(--h); animation: gd-swell 4.5s ease-in-out var(--d) infinite alternate; }
.gd::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; width: calc(var(--w) * .9); height: calc(var(--w) * .9);
  border-radius: 50%; background: var(--gold); transform: translate(-50%, 0) scale(0); opacity: 0;
}
.goo-drips.in:not(.scroll-drips) .gd::after { animation: gd-drop 5s cubic-bezier(.5, 0, .9, .6) calc(2.2s + var(--d) * 1.7) infinite; }
@keyframes gd-swell { to { transform: scaleY(1.14); } }
@keyframes gd-drop {
  0% { opacity: 1; transform: translate(-50%, 0) scale(.5); }
  35% { opacity: 1; transform: translate(-50%, 6px) scale(1); }
  55% { opacity: 1; transform: translate(-50%, 34px) scale(.95, 1.1); }
  80% { opacity: 1; transform: translate(-50%, 180px) scale(.8); }
  81%, 100% { opacity: 0; transform: translate(-50%, 180px) scale(0); }
}

/* 31B · Dripping wordmark ------------------------------------------------------------- */
.drip-word { position: relative; padding: 10px 0 70px; }
.dw-layer { position: relative; display: inline-block; filter: url(#syrup-goo-soft); padding: 0 6px; }
.dw-text { display: block; font-size: clamp(40px, 8vw, 80px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; color: var(--gold); padding-bottom: 10px; }
.dw-layer::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9px; border-radius: 9px; background: var(--gold); }
.wd { position: absolute; top: calc(100% - 4px); left: var(--x); width: var(--w); height: 0; margin-left: calc(var(--w) / -2); border-radius: 0 0 99px 99px; background: var(--gold); transform-origin: 50% 0; transition: height 2.2s cubic-bezier(.45, 0, .2, 1) calc(var(--d) * .5); }
.drip-word.in .wd { height: var(--h); animation: gd-swell 5s ease-in-out var(--d) infinite alternate; }
.wd::after { content: ""; position: absolute; left: 50%; bottom: 0; width: calc(var(--w) * 1.1); height: calc(var(--w) * 1.1); border-radius: 50%; background: var(--gold); transform: translate(-50%, 0) scale(0); opacity: 0; }
.drip-word.in .wd::after { animation: gd-drop 6s cubic-bezier(.5, 0, .9, .6) calc(2.5s + var(--d) * 2) infinite; }

/* 31C · Drips follow your scroll: drawn on a canvas (see motion-lab.js), so it renders
   the same in every browser and leaves no trails behind as drips shrink */
.lab-stage:has(.scroll-drips) { padding: 0; }
.scroll-drips { position: relative; width: 100%; height: 340px; display: grid; place-items: center; }
.scroll-drips canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.sd-hint { position: relative; color: var(--muted); font-size: 14px; font-weight: 500; margin-top: 40px; }

/* 31D · Card drip on hover ------------------------------------------------------------- */
.drip-card { position: relative; width: 200px; border: 0; padding: 0; border-radius: 14px; overflow: hidden; cursor: pointer; background: var(--white); box-shadow: 0 14px 30px -18px rgba(0, 0, 0, .45); }
.drip-card img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.drip-card .gd-band { height: 22px; }
.drip-card .gd { top: 14px; transition: height 1.1s cubic-bezier(.45, 0, .2, 1) var(--d); }
.drip-card:hover .gd, .drip-card:focus-visible .gd, .drip-card.dripped .gd { height: var(--h); }
.dc-label { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; font-size: 14px; font-weight: 600; color: var(--on-gold); text-align: left; background: linear-gradient(transparent, rgba(28, 22, 15, .75)); }

/* 39A · Drip-off button ---------------------------------------------------------------- */
.dripoff-btn { position: relative; display: inline-flex; align-items: center; height: 54px; padding: 0 28px; color: var(--on-gold); font-weight: 600; font-size: 15px; isolation: isolate; }
.do-layer { position: absolute; left: -20px; right: -20px; top: -20px; height: 200px; filter: url(#syrup-goo); z-index: -1; pointer-events: none; }
.do-pill { position: absolute; left: 20px; right: 20px; top: 20px; height: 54px; border-radius: 999px; background: var(--gold-button); }
.do-drop { position: absolute; left: 50%; top: 56px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: var(--gold-button); transform: scale(0); }
.dripoff-btn:hover .do-drop, .dripoff-btn:focus-visible .do-drop, .dripoff-btn.dripping .do-drop { animation: do-drip 2.6s cubic-bezier(.5, 0, .8, .5) infinite; }
@keyframes do-drip {
  0% { transform: translateY(0) scale(.3); }
  40% { transform: translateY(16px) scale(1); }
  62% { transform: translateY(30px) scale(.95, 1.15); }
  85% { transform: translateY(110px) scale(.75); }
  86%, 100% { transform: translateY(110px) scale(0); }
}
.do-text { position: relative; }

/* 39B · Syrup wave fill ---------------------------------------------------------------- */
.wave-btn { position: relative; overflow: hidden; isolation: isolate; transition: color .45s, border-color .45s; }
.wave-btn::before {
  content: ""; position: absolute; left: 50%; top: calc(100% + 110px); width: 320px; height: 320px; margin-left: -160px; border-radius: 42%;
  background: var(--gold); z-index: -1; transition: top 1s var(--ease-out); animation: wave-spin 4s linear infinite paused;
}
.wave-btn:hover::before, .wave-btn:focus-visible::before { top: -26px; animation-play-state: running; }
.wave-btn:hover, .wave-btn:focus-visible { color: var(--on-gold); border-color: var(--gold); background: transparent; }
.wave-btn > span { display: inline-flex; align-items: center; gap: 8px; }
@keyframes wave-spin { to { transform: rotate(360deg); } }

/* 39C · Drop merges in ------------------------------------------------------------------ */
.merge-btn { position: relative; display: inline-flex; align-items: center; height: 54px; padding: 0 70px 0 26px; margin-right: 76px; color: var(--on-gold); font-weight: 600; font-size: 15px; isolation: isolate; }
.mg-layer { position: absolute; left: -20px; top: -20px; bottom: -20px; right: -100px; filter: url(#syrup-goo); z-index: -1; pointer-events: none; }
.mg-pill { position: absolute; left: 20px; top: 20px; bottom: 20px; right: 100px; border-radius: 999px; background: var(--ink); }
.mg-ball { position: absolute; top: 22px; right: 26px; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); transition: transform .8s cubic-bezier(.3, 1.3, .5, 1); }
.mg-icon { position: absolute; right: -70px; top: 50%; width: 50px; height: 50px; margin-top: -25px; display: grid; place-items: center; transition: transform .8s cubic-bezier(.3, 1.3, .5, 1), color .3s; }
.mg-icon svg { width: 18px; height: 18px; }
.merge-btn:hover .mg-ball, .merge-btn:focus-visible .mg-ball, .merge-btn:hover .mg-icon, .merge-btn:focus-visible .mg-icon { transform: translateX(-66px); }
.merge-btn:hover .mg-icon, .merge-btn:focus-visible .mg-icon { color: #e9c48f; }

/* Respect visitors who prefer less motion --------------------------------------- */
/* ===================================================================================
   Round 6 · studies 41–50 (no SVG filters, so they render the same in Safari)
   =================================================================================== */

/* 41 · Syrup toggle */
.toggle-row { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 500; }
.syrup-toggle {
  --kw: 30px; position: relative; flex: none; width: 74px; height: 40px; padding: 0; border: 0; border-radius: 999px; cursor: pointer;
  background: var(--sand); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; isolation: isolate;
}
.syrup-toggle::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; background: var(--gold-button);
  transform: scaleX(0); transform-origin: 0 50%; transition: transform .5s var(--ease-out);
}
.syrup-toggle[aria-checked="true"]::before { transform: scaleX(1); }
.st-knob {
  position: absolute; top: 5px; left: 5px; width: var(--kw); height: 30px; border-radius: 999px; background: #fff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: left .5s cubic-bezier(.45, 1.45, .45, 1), width .22s ease;
}
.syrup-toggle[aria-checked="true"] .st-knob { left: calc(100% - 5px - var(--kw)); }
.syrup-toggle.stretch { --kw: 46px; }
.syrup-toggle:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* 42 · Waffle loader */
.loader-demo { display: grid; justify-items: center; gap: 14px; }
.waffle-loader { display: grid; grid-template-columns: repeat(3, 22px); gap: 5px; padding: 8px; border-radius: 12px; background: #e9c48f; }
.waffle-loader i { width: 22px; height: 22px; border-radius: 5px; background: #f3e3c4; box-shadow: inset 0 2px 0 rgba(0, 0, 0, .08); animation: wl 1.6s ease-in-out infinite; animation-delay: calc(var(--k) * 110ms); }
@keyframes wl { 0%, 100% { background: #f3e3c4; transform: none; } 35% { background: var(--gold); transform: scale(.88); } 55% { background: #c98634; } }
.loader-demo p { font-size: 14px; color: var(--muted); }

/* 43 · Rotating badge */
.spin-badge { position: relative; display: grid; place-items: center; width: 150px; height: 150px; color: var(--ink); }
.spin-badge svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.spin-badge .core { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--gold-button); color: #fff; transition: transform .35s var(--ease-out); }
.spin-badge .core svg { width: 22px; height: 22px; }
.spin-badge:hover .core, .spin-badge:focus-visible .core { transform: scale(1.08) rotate(45deg); }

/* 44 · Scroll-speed skew */
.skew-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; width: 100%; }
.skew-row img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; transform-origin: 50% 50%; will-change: transform; }

/* 45 · Card deck shuffle */
.deck { position: relative; width: 170px; height: 210px; padding: 0; border: 0; background: none; cursor: pointer; }
.deck .dk { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; background: var(--white); box-shadow: 0 10px 24px -14px rgba(28, 22, 15, .5); transition: transform .45s var(--ease-out); }
.deck .dk img { width: 100%; height: 100%; object-fit: cover; }
.deck:focus-visible { outline: 3px solid var(--gold); outline-offset: 10px; border-radius: 14px; }
.deck-hint { font-size: 13px; color: var(--muted); }

/* 46 · Warm glow that follows the cursor */
.lab-stage:has(.glow-panel) { padding: 0; }
.glow-panel { position: relative; width: 100%; min-height: 240px; overflow: hidden; background: #16120d; display: grid; place-items: center; cursor: default; }
.glow-panel .blob { position: absolute; left: 0; top: 0; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; filter: blur(34px); pointer-events: none; will-change: transform; }
.glow-panel .b1 { background: radial-gradient(circle, rgba(232, 160, 70, .95), transparent 65%); }
.glow-panel .b2 { width: 200px; height: 200px; margin: -100px 0 0 -100px; background: radial-gradient(circle, rgba(186, 118, 33, .9), transparent 65%); }
.glow-panel .b3 { width: 160px; height: 160px; margin: -80px 0 0 -80px; background: radial-gradient(circle, rgba(243, 207, 149, .8), transparent 65%); }
.glow-panel p { position: relative; color: #f4ece1; font-size: clamp(22px, 3vw, 30px); font-weight: 600; letter-spacing: -0.02em; text-align: center; padding: 0 24px; }

/* 47 · Text that fills as you scroll */
.fill-text { font-size: clamp(26px, 3.6vw, 40px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.2; max-width: 760px; }
.fill-text .fw { color: #968671; transition: color .35s ease; }   /* unread words: 3.3:1, passes for large text */
[data-mode="dark"] .fill-text .fw { color: #7a6b59; }
.fill-text .fw.on { color: var(--ink); }
.fill-text .fw.on.gold { color: var(--gold); }

/* 48 · Syrup curtain page transition */
.lab-stage:has(.curtain-demo) { padding: 0; }
.curtain-demo { position: relative; width: 100%; height: 260px; overflow: hidden; background: var(--white); }
.cd-page { position: absolute; inset: 0; display: grid; align-content: center; padding: 28px; gap: 6px; }
.cd-page small { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.cd-page strong { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.03em; }
.cd-page .btn { justify-self: start; margin-top: 10px; }
.cd-page[hidden] { display: none; }
.curtain { position: absolute; left: 0; right: 0; top: 0; height: calc(100% + 60px); z-index: 5; transform: translateY(-120%); pointer-events: none; }
.curtain .cb { position: absolute; inset: 0 0 60px; background: var(--gold-button); }
.curtain svg { position: absolute; left: 0; bottom: 0; width: 100%; height: 61px; color: var(--gold-button); }

/* 49 · Waffle-pixel reveal */
.pixel-reveal { position: relative; width: min(100%, 420px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; padding: 0; border: 0; cursor: pointer; background: none; }
.pixel-reveal img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.pixel-cover { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(10, 1fr); grid-template-rows: repeat(6, 1fr); gap: 3px; padding: 3px; background: #e9c48f; }
.pixel-cover i { border-radius: 4px; background: #c98b3f; box-shadow: inset 0 3px 0 rgba(0, 0, 0, .14); transition: transform .45s var(--ease-out), opacity .35s ease; transition-delay: var(--t, 0ms); }
.pixel-reveal.open .pixel-cover { background: transparent; transition: background-color .3s ease .5s; }
.pixel-reveal.open .pixel-cover i { transform: scale(0); opacity: 0; }
.pixel-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); font-size: 12px; font-weight: 600; color: #fff; background: rgba(28, 22, 15, .65); padding: 4px 10px; border-radius: 999px; transition: opacity .3s; }
.pixel-reveal.open .pixel-hint { opacity: 0; }

/* 50 · Syrup like */
.like-btn { display: inline-flex; align-items: center; gap: 10px; height: 52px; padding: 0 22px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; transition: border-color .25s, transform .15s; }
.like-btn:hover { border-color: var(--gold); }
.like-btn:active { transform: scale(.97); }
.like-heart { position: relative; width: 26px; height: 24px; }
.like-heart svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.like-heart .outline { color: var(--gold); }
.like-heart .filled { color: var(--gold); clip-path: inset(100% 0 0 0); transition: clip-path .6s cubic-bezier(.3, .7, .3, 1); }
.like-btn[aria-pressed="true"] .like-heart .filled { clip-path: inset(0 0 0 0); }
.like-btn[aria-pressed="true"] .like-heart { animation: like-pop .5s var(--ease-out) .35s; }
@keyframes like-pop { 40% { transform: scale(1.25); } }
.like-drop { position: fixed; z-index: 140; width: 8px; height: 10px; margin: -5px 0 0 -4px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: var(--gold); pointer-events: none; }

/* Motion lab case study (/motion-lab) */
.cs-hero { position: relative; padding: 0 0 56px; overflow: hidden; min-height: calc(100vh - 85px); min-height: calc(100svh - 85px); }
/* The syrup canvas runs from the top of the hero to the bottom of the screen, so drops fall
   all the way down and pool along the bottom edge. The text sits on top of it. */
.cs-hero .scroll-drips { position: absolute; top: 0; left: 0; right: 0; z-index: 0; height: calc(100vh - 85px); height: calc(100svh - 85px); pointer-events: none; }
.cs-hero > .container { position: relative; z-index: 1; padding-top: 220px; }
@media (max-width: 980px) {
  .cs-hero { min-height: calc(100svh - 69px); }
  .cs-hero .scroll-drips { height: calc(100vh - 69px); height: calc(100svh - 69px); }
}
.cs-hero .sd-hint { display: none; }
.cs-title { font-size: clamp(56px, 10vw, 128px); font-weight: 600; letter-spacing: -0.055em; line-height: .95; margin-top: 8px; }
.cs-lead { max-width: 640px; margin-top: 24px; font-size: 19px; line-height: 1.6; color: var(--ink-soft); }
.cs-meta { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.cs-meta dt { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text); }
.cs-meta dd { margin: 6px 0 0; font-size: 16px; font-weight: 500; }
.cs-section { padding: 88px 0; border-top: 1px solid var(--line); }
.cs-two { display: grid; grid-template-columns: 1fr 1.3fr; gap: 56px; align-items: start; }
.cs-two p { font-size: 18px; line-height: 1.7; color: var(--ink-soft); }
.cs-two p + p { margin-top: 16px; }
.principles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.principle { padding: 24px; }
.principle .pn { font-size: 13px; color: var(--gold-text); font-weight: 600; }
.principle h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin: 10px 0 8px; }
.principle p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.process { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: step; }
.process li { position: relative; padding: 0 24px 0 0; }
.process li::before { counter-increment: step; content: "0" counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--gold-soft); color: var(--gold-text); font-weight: 700; font-size: 14px; margin-bottom: 16px; position: relative; z-index: 1; }
.process li::after { content: ""; position: absolute; left: 40px; right: 0; top: 20px; height: 2px; background: var(--line); }
.process li:last-child::after { display: none; }
.process h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.process p { font-size: 14px; line-height: 1.6; color: var(--muted); }
.signature { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 40px; }
.sig-card { display: flex; flex-direction: column; color: inherit; transition: border-color .25s, transform .3s var(--ease-out); }
.sig-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.sig-card .sig-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.sig-card .sig-img img { width: 100%; height: 100%; object-fit: cover; }
.sig-card .sig-body { padding: 18px 20px 20px; }
.sig-card .sig-body span { font-size: 12px; color: var(--gold-text); font-weight: 600; }
.sig-card h3 { font-size: 18px; font-weight: 600; margin-top: 4px; }
.in-use { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; margin-top: 36px; border-top: 1px solid var(--line); }
.in-use a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 2px; border-bottom: 1px solid var(--line); color: inherit; transition: color .2s, padding .35s var(--ease-out); }
.in-use a:hover { color: var(--gold-text); padding-left: 8px; }
.in-use a strong { font-size: 15px; font-weight: 600; }
.in-use a span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.cs-cta { text-align: center; padding: 96px 0; border-top: 1px solid var(--line); }
.cs-cta h2 { font-size: clamp(32px, 5vw, 56px); font-weight: 600; letter-spacing: -0.04em; line-height: 1.05; }
.cs-cta p { color: var(--muted); margin: 14px auto 28px; max-width: 460px; }
@media (max-width: 980px) {
  .cs-meta, .principles, .signature { grid-template-columns: repeat(2, 1fr); }
  .process { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .process li:nth-child(2)::after { display: none; }
  .in-use { grid-template-columns: 1fr 1fr; }
  .cs-two { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 560px) {
  .cs-meta, .principles, .signature, .process, .in-use { grid-template-columns: 1fr; }
  .process li::after { display: none; }
  .skew-row { grid-template-columns: repeat(2, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .syrup-toggle::before, .st-knob, .deck .dk, .fill-text .fw, .pixel-cover i, .like-heart .filled { transition: none !important; }
  .waffle-loader i { animation: none; }
  .waffle-loader i:nth-child(odd) { background: var(--gold); }
  .like-btn[aria-pressed="true"] .like-heart { animation: none; }
  .glow-panel .blob { display: none; }
  .glow-panel { background: radial-gradient(circle at 40% 40%, rgba(232, 160, 70, .55), #16120d 70%); }
  .split-words .w > span { transform: none; }
  .wipe { clip-path: none; }
  .marquee-track { animation: none; }
  .sk { animation: none; }
  .cursor-dot { display: none; }
  .cursor-zone, .cursor-zone a, .cursor-zone button { cursor: auto; }
  .hover-float { display: none; }
  .stack-scroll { scroll-behavior: auto; }
  .odo .col > span, .row-link, .row-a, .fill-btn::before, .phone-cta, .tab-pill, .hl { transition: none; }
  .glow-card { animation: none; }
  .draw-svg > *, .draw-svg rect { stroke-dashoffset: 0; transition: none; }
  .hl { background-size: 100% 55%; }
  .tab-panel:not([hidden]) { animation: none; }
  .odo-v .reel > span, .odo-v.fill, .ruler-strip, .drip, .tile-reveal, .tile-reveal i, .iron-lid, .bw-pat, .bw-melt, .sf-waffle i, .batter span, .tw, .t-lever, .goo-ball, .goo-icon, .sticker { transition: none; }
  .drip-zone .drip { height: var(--h); }
  .drip-zone.in .drop, .iron.closed .steam, .toaster.pop .tw, .toaster.pop .t-ding, .stamp-card.stamped { animation: none; }
  .toaster.pop .tw { transform: translateY(-6px); }
  .toaster.pop .t-ding { opacity: 1; }
  .tile-reveal i { transform: none; opacity: 1; }
  .stamp-card.stamped .stamp { animation: none; opacity: .92; transform: rotate(-14deg); }
  .slotfill .sf-mask, .slotfill .sf-front, .slotfill .reel > span, .gd, .wd, .mg-ball, .mg-icon, .wave-btn::before { transition: none; }
  .gd, .wd, .gd::after, .wd::after, .do-drop, .wave-btn::before { animation: none !important; }
  .goo-drips .gd, .drip-word .wd { height: var(--h); }
}

/* Public motion lab (/motion-lab): hide the internal review notes -------------------- */
.lab-public .lab-badge, .lab-public .lab-where { display: none; }
.lab-public .lab-head { flex-wrap: nowrap; }

/* Motion lab: "Start a project" toast that slides up once you scroll past the first screen */
.lab-toast {
  position: fixed; left: 0; right: 0; margin-inline: auto; width: max-content; bottom: 20px; z-index: 89; max-width: calc(100vw - 150px);
  display: flex; align-items: center; gap: 14px; padding: 10px 10px 10px 18px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .35);
  opacity: 0; transform: translateY(24px) scale(.96); pointer-events: none;
  transition: opacity .35s, transform .5s cubic-bezier(.34, 1.56, .64, 1);
}
.lab-toast[hidden] { display: none; }
.lab-toast.show { opacity: 1; transform: none; pointer-events: auto; }
.lab-toast p { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.lab-toast .gold { color: var(--gold-text); }
.lab-toast .btn { flex: none; }
.lab-toast-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(213, 150, 64, .55); }
.lab-toast.show .lab-toast-dot { animation: lab-toast-pulse 2.4s ease-out .4s 3; }
@keyframes lab-toast-pulse { 0% { box-shadow: 0 0 0 0 rgba(213, 150, 64, .55); } 70%, 100% { box-shadow: 0 0 0 10px rgba(213, 150, 64, 0); } }
.lab-toast-close {
  flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; display: grid; place-items: center;
  background: transparent; color: var(--muted); cursor: pointer; transition: background-color .2s, color .2s;
}
.lab-toast-close:hover { background: var(--sand); color: var(--ink); }
.lab-toast-close svg { width: 16px; height: 16px; }
@media (max-width: 720px) {
  .lab-toast { left: 12px; right: 74px; bottom: 16px; width: auto; margin: 0; max-width: none; border-radius: 18px; flex-wrap: wrap; gap: 8px 10px; padding: 12px 8px 12px 16px; }
  .lab-toast p { white-space: normal; font-size: 14px; flex: 1 1 calc(100% - 60px); }
  .lab-toast-dot { display: none; }
  .lab-toast .btn { order: 3; }
  .lab-toast-close { position: absolute; top: 6px; right: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  .lab-toast { transform: none; transition: opacity .2s; }
  .lab-toast.show .lab-toast-dot { animation: none; }
}
