/* Lab and R&D: graph paper, curves that draw in, stamps, a shelf of master samples */
.page--lab-and-rd main { background-color: #fbfcfe; background-image: linear-gradient(rgba(29, 43, 152, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(29, 43, 152, .05) 1px, transparent 1px); background-size: 28px 28px; }
.lb-hero { padding: 140px 0 clamp(50px, 7vw, 90px); }
.lb-hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(30px, 5vw, 80px); align-items: center; }
.lb-hero__copy { display: grid; gap: 22px; }
.scope { margin: 0; padding: 22px; border-radius: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.scope svg { width: 100%; height: auto; overflow: visible; }
.scope__grid path { fill: none; stroke: rgba(13, 20, 36, .08); stroke-width: 1; }
.scope__axis text { font: 400 11px var(--font); fill: var(--muted); }
.scope__curve { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: lb-draw 2.4s .3s var(--ease) forwards; }
.scope__curve--blue { stroke: #1d3fae; }
.scope__curve--green { stroke: #0f9a5c; animation-delay: .9s; }
@keyframes lb-draw { to { stroke-dashoffset: 0; } }
.scope__dot { opacity: 0; animation: lb-pop .5s 2.4s forwards; }
.scope__dot--blue { fill: #1d3fae; }
.scope__dot--green { fill: #0f9a5c; animation-delay: 3s; }
@keyframes lb-pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: none; } }
.scope__dot { transform-box: fill-box; transform-origin: center; }
.scope figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.scope figcaption span { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

.labs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.lab { position: relative; display: grid; gap: 14px; align-content: start; padding: 32px; border-radius: 24px; background: #fff; border: 1px solid var(--line); }
.lab::after { content: ""; position: absolute; left: 32px; right: 32px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--brand); transform: scaleX(.18); transform-origin: 0 50%; transition: transform .6s var(--ease); }
.lab:hover::after { transform: scaleX(1); }
.lab__no { font: 500 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--muted); letter-spacing: .14em; }
.lab h3 { font-size: 23px; }
.lab p { color: var(--muted); }
.lab__steps { list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 0; flex-wrap: wrap; }
.lab__steps li { position: relative; font-size: 13px; padding: 8px 14px; background: var(--bg-soft); border-radius: 999px; margin-right: 24px; }
.lab__steps li:not(:last-child)::after { content: ""; position: absolute; right: -19px; top: 50%; width: 14px; height: 1px; background: var(--line-2); }
.stamps { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 4px; }
.stamp { width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center; text-align: center; font-weight: 600; font-size: 15px; line-height: 1.1; letter-spacing: .04em; color: #1d3fae; border: 2px solid currentColor; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px currentColor; transform: rotate(-8deg) scale(var(--sc, 1)); opacity: var(--op, 1); transition: transform .5s cubic-bezier(.3, 1.6, .5, 1), opacity .3s; }
.stamp--g { color: #0f8a52; transform: rotate(6deg) scale(var(--sc, 1)); }
.stamp:nth-child(3) { transform: rotate(-3deg) scale(var(--sc, 1)); }
.lab--stamps:not(.is-in) .stamp { --sc: 1.6; --op: 0; }
.lab--stamps.is-in .stamp:nth-child(2) { transition-delay: .18s; }
.lab--stamps.is-in .stamp:nth-child(3) { transition-delay: .36s; }

.shelf-sec { padding: clamp(80px, 10vw, 140px) 0; background: #0f172b; color: #fff; }
.shelf-sec .eyebrow { color: rgba(255, 255, 255, .6); }
.shelf-sec .lede { color: rgba(255, 255, 255, .75); }
.shelf-sec__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(30px, 6vw, 90px); align-items: center; }
.shelf-sec__copy { display: grid; gap: 18px; }
.shelf { display: grid; gap: 0; }
.jars { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(10px, 2vw, 26px); align-items: end; padding: 0 clamp(8px, 2vw, 24px); }
.jar { position: relative; aspect-ratio: .72; border-radius: 10px 10px 14px 14px; background: linear-gradient(90deg, rgba(255, 255, 255, .14), rgba(255, 255, 255, .04) 40%, rgba(255, 255, 255, .12)); border: 1px solid rgba(255, 255, 255, .25); overflow: hidden; }
.jar::before { content: ""; position: absolute; left: 12%; right: 12%; top: -1px; height: 14%; border-radius: 6px 6px 0 0; background: #c9ced8; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .15); z-index: 2; }
.jar i { position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--fill, 0) * 72%); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 80%, #fff), var(--c) 40%); transition: height 1s var(--ease); transition-delay: calc(var(--d) * 90ms); }
.jar i::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; border-radius: 50%; background: color-mix(in srgb, var(--c) 60%, #fff); transform: translateY(-50%); }
.jar em { position: absolute; left: 8%; right: 8%; bottom: 18%; z-index: 2; padding: 4px 2px; border-radius: 3px; background: #f7f3e8; color: #333; font: 500 10px/1.1 var(--font); font-style: normal; text-align: center; letter-spacing: .02em; }
.jar--salt i { background: linear-gradient(180deg, #fff, #dfe3e8); }
.shelf__board { height: 14px; margin-bottom: 30px; border-radius: 3px; background: linear-gradient(180deg, #6b4c33, #4a3424); box-shadow: 0 14px 20px -10px rgba(0, 0, 0, .6); }
.shelf.is-full .jar { --fill: 1; }

.flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; position: relative; }
.flow::before { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--line-2); }
.flow::after { content: ""; position: absolute; left: 10%; right: 10%; top: 27px; height: 2px; background: var(--brand); transform: scaleX(var(--fp, 0)); transform-origin: 0 50%; transition: transform 2.2s var(--ease); }
.flow.is-run { --fp: 1; }
.flow li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 8px; text-align: center; padding: 0 8px; }
.flow span { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-2); font-weight: 500; transition: border-color .4s, background .4s, color .4s; }
.flow.is-run li span { border-color: transparent; background: var(--ink); color: #fff; }
.flow.is-run li:last-child span { background: var(--brand); }
.flow li:nth-child(2) span { transition-delay: .45s; } .flow li:nth-child(3) span { transition-delay: .9s; } .flow li:nth-child(4) span { transition-delay: 1.35s; } .flow li:nth-child(5) span { transition-delay: 1.8s; }
.flow b { font-weight: 500; font-size: 17px; }
.flow small { font-size: 13.5px; color: var(--muted); }

@media (max-width: 900px) {
  .lb-hero__grid, .labs, .shelf-sec__grid { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 22px; justify-items: start; }
  .flow::before, .flow::after { left: 27px; right: auto; top: 28px; bottom: 28px; width: 2px; height: auto; transform: scaleY(var(--fp, 0)); transform-origin: 50% 0; }
  .flow li { grid-template-columns: 56px 1fr; justify-items: start; text-align: left; column-gap: 16px; row-gap: 0; padding: 0; }
  .flow span { grid-row: span 2; }
}
@media (prefers-reduced-motion: reduce) {
  .scope__curve { animation: none; stroke-dashoffset: 0; }
  .scope__dot { animation: none; opacity: 1; }
  .jar i, .flow::after, .flow span, .stamp { transition: none; }
}
