/* How to install: the animated guide and the timelapse player (install.html and each kit page; their tokens: --line, --ink,
   --ink-soft, --accent, --ease, --mono) */
.guide { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); grid-template-areas: "stage side" "bar bar";
         gap: clamp(16px, 2.4vw, 30px) clamp(18px, 3.4vw, 48px); align-items: center; }
.guide__stage { grid-area: stage; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); padding: clamp(6px, 1.4vw, 16px);
                background: radial-gradient(120% 90% at 50% 38%, #1f1a17, #0c0a09 78%); }
.guide__svg { display: block; width: 100%; height: auto; max-height: 74vh; }
.guide__side { grid-area: side; }
.guide__count { margin: 0; font-family: var(--mono); font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.guide__title { margin: 10px 0 0; font-weight: 850; font-stretch: 118%; text-transform: uppercase; letter-spacing: -.005em; line-height: 1;
                font-size: clamp(1.25rem, 2vw, 1.6rem); }
.guide__text { margin: 12px 0 0; color: var(--ink-soft); line-height: 1.6; font-size: clamp(1rem, 1.2vw, 1.1rem); min-height: 5em; }
.guide__photo { position: relative; margin-top: 18px; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); background: #1a1410; }
.guide__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .6s ease; }
.guide__photo img.is-on { opacity: 1; }
.guide__bar { grid-area: bar; display: flex; align-items: center; gap: 10px; }
.guide__play { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line); background: rgba(10, 8, 7, .6); color: var(--ink);
               display: grid; place-items: center; cursor: pointer; transition: border-color .25s, background .25s; }
.guide__play:hover { border-color: rgba(234, 122, 30, .6); }
.guide__play svg { width: 18px; height: 18px; }
.guide__play .i-play, .guide__play.is-paused .i-pause { display: none; }
.guide__play.is-paused .i-play { display: block; margin-left: 2px; }
.guide__chips { flex: 1; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.guide__chip { position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; cursor: pointer;
               padding: 10px 12px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(10, 8, 7, .55); color: var(--ink);
               font-size: .85rem; font-weight: 600; line-height: 1.2; transition: border-color .25s, background .25s; }
.guide__chip:hover { border-color: rgba(234, 122, 30, .45); }
.guide__chip b { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem;
                 background: rgba(255, 255, 255, .08); transition: background .25s, color .25s; }
.guide__chip[aria-current="step"] { border-color: rgba(234, 122, 30, .7); background: rgba(234, 122, 30, .1); }
.guide__chip[aria-current="step"] b { background: var(--accent); color: #140a04; }
.guide__fill { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }
.guide__play:focus-visible, .guide__chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (max-width: 860px) {
  .guide { grid-template-columns: 1fr; grid-template-areas: "stage" "bar" "side"; }
  .guide__svg { max-height: none; }
  .guide__text { min-height: 6.4em; }
}
@media (max-width: 560px) {
  .guide__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide__chip { font-size: .8rem; padding: 9px 10px 11px; gap: 8px; }
}

.video { position: relative; aspect-ratio: 4 / 3; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); background: #000;
         box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.video__poster { position: absolute; inset: 0; width: 100%; height: 100%; padding: 0; border: 0; cursor: pointer; background: none; display: block; }
.video__poster img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease), filter .4s; filter: brightness(.86); }
.video__poster:hover img { transform: scale(1.02); filter: brightness(.95); }
.video__poster:focus-visible { outline: 2px solid var(--accent); outline-offset: -4px; }
.video__play { position: absolute; left: 50%; top: 50%; width: 78px; height: 78px; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-items: center;
               background: var(--accent); color: #140a04; box-shadow: 0 12px 34px rgba(234, 122, 30, .45); transition: transform .35s var(--ease); }
.video__poster:hover .video__play { transform: translate(-50%, -50%) scale(1.06); }
.video__play svg { width: 30px; height: 30px; margin-left: 4px; }
.video__label { position: absolute; left: 14px; bottom: 14px; font-size: .82rem; font-weight: 600; color: #fff; padding: 8px 14px; border-radius: 999px;
                background: rgba(12, 10, 9, .72); backdrop-filter: blur(8px); }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
