/* Implement page hero. See implement-hero.js. Everything is sized in em from the hero's width, so it scales cleanly. */
.sp-hero-art.has-ih { container-type: inline-size; }
.ih { --ease: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.34, 1.5, .64, 1); position: absolute; inset: 0; color: var(--ink); font-size: clamp(8.5px, 2.25cqw, 13.5px); line-height: 1.3; }
.ih-logo { flex: none; display: grid; place-items: center; width: 2.7em; height: 2.7em; border-radius: .75em; background: #fff; box-shadow: 0 0 0 1px #e4e6e2, 0 .3em .8em -.3em rgba(30, 34, 32, .18); }
.ih-logo svg { width: 64%; height: 64%; }
.ih-doc { display: inline-block; width: .9em; height: 1.1em; border-radius: .15em; background: linear-gradient(#fff, #fff) 22% 30% / 56% 1px no-repeat, linear-gradient(#fff, #fff) 22% 52% / 56% 1px no-repeat, linear-gradient(#fff, #fff) 22% 74% / 40% 1px no-repeat, var(--ink); }
.motion-paused .ih *, .motion-paused .ih *::before, .motion-paused .ih *::after { transition: none !important; animation: none !important; }
@keyframes ih-spin { to { transform: rotate(360deg); } }
@keyframes ih-flow { to { background-position: 0 1.2em; } }
@keyframes ih-ping { 0% { transform: scale(.7); opacity: .5; } 100% { transform: scale(1.9); opacity: 0; } }

/* The automation builder */
.ih-window { position: absolute; inset: 2% 0; display: flex; flex-direction: column; overflow: hidden; border-radius: 1.3em; background: #fbfbfa; box-shadow: 0 2.6em 5em -2em rgba(30, 34, 32, .35), 0 0 0 1px rgba(30, 34, 32, .06); }
.ih-bar { display: flex; align-items: center; gap: .9em; padding: .95em 1.2em; border-bottom: 1px solid #e8e9e6; background: #fff; }
.ih-dots { display: flex; gap: .35em; }
.ih-dots i { width: .62em; height: .62em; border-radius: 50%; background: #dcdedb; }
.ih-bar strong { font-weight: 500; }
.ih-runs { margin-left: auto; color: #6b6e6c; font-size: .9em; }
.ih-runs b { color: var(--ink); font-weight: 500; font-variant-numeric: tabular-nums; }
.ih-toggle { display: inline-flex; align-items: center; gap: .5em; padding: .3em .7em .3em .35em; border-radius: 2em; background: #eceeeb; color: #8b8e8c; font-size: .85em; transition: background .4s, color .4s; }
.ih-toggle i { position: relative; width: 1.9em; height: 1.1em; border-radius: 1em; background: #cfd2ce; transition: background .4s; }
.ih-toggle i::after { content: ""; position: absolute; left: .15em; top: .15em; width: .8em; height: .8em; border-radius: 50%; background: #fff; transition: transform .4s var(--spring); }
.ih.is-live .ih-toggle { background: var(--ink); color: #fff; }
.ih.is-live .ih-toggle i { background: #4a4d4f; }
.ih.is-live .ih-toggle i::after { transform: translateX(.8em); }
.ih-board { position: relative; flex: 1; display: flex; align-items: center; padding: 1em 1.2em; background: radial-gradient(circle, #d9dbd7 1px, transparent 1.3px) 0 0 / 1.35em 1.35em; }
.ih-steps { display: grid; gap: 1.05em; width: 66%; margin: 0 4% 0 auto; padding: 0; list-style: none; }
.ih-steps li { position: relative; display: flex; align-items: center; gap: .85em; padding: .62em .8em; border-radius: .95em; background: #fff; box-shadow: 0 .7em 1.5em -1em rgba(30, 34, 32, .35), 0 0 0 1px #e8e9e6; opacity: 0; transform: translateY(-.8em) scale(.96); transition: opacity .35s, transform .55s var(--spring), box-shadow .3s; }
.ih-steps li.is-placed { opacity: 1; transform: none; }
.ih-steps li:not(:last-child)::after { content: ""; position: absolute; left: 2.15em; top: 100%; width: 2px; height: 1.05em; background: repeating-linear-gradient(#c4c7c3 0 .3em, transparent .3em .6em); }
.ih-steps li.is-done:not(:last-child)::after { background: repeating-linear-gradient(var(--ink) 0 .3em, transparent .3em .6em); animation: ih-flow .6s linear infinite; }
.ih-text { min-width: 0; }
.ih-text small { display: block; color: #8b8e8c; font-size: .78em; }
.ih-text strong { display: block; overflow: hidden; font-weight: 500; white-space: nowrap; text-overflow: ellipsis; }
.ih-time { margin-left: auto; color: #8b8e8c; font-size: .78em; white-space: nowrap; }
.ih-state { flex: none; display: grid; place-items: center; width: 1.6em; height: 1.6em; border-radius: 50%; box-sizing: border-box; border: 1.5px solid #dcdedb; transition: background .25s, border-color .25s; }
.ih-steps li.is-running { box-shadow: 0 .9em 1.8em -1em rgba(30, 34, 32, .45), 0 0 0 1.5px var(--ink); }
.ih-steps li.is-running .ih-state { border-color: #dcdedb; border-top-color: var(--ink); animation: ih-spin .6s linear infinite; }
.ih-steps li.is-done .ih-state { border-color: var(--ink); background: var(--ink); }
.ih-steps li.is-done .ih-state::after { content: ""; width: .32em; height: .62em; margin-top: -.15em; border-right: 1.6px solid #fff; border-bottom: 1.6px solid #fff; transform: rotate(45deg); }
.ih-steps li.is-flag .ih-time { padding: .2em .6em; border-radius: 2em; background: var(--ink); color: #fff; }
.ih-steps li.is-flag .ih-state { border-color: var(--ink); background: #fff; }
.ih-steps li.is-flag .ih-state::after { content: "!"; font-size: .85em; font-weight: 700; }
.ih-steps li.is-skip { opacity: .4; }
.ih-steps li.is-skip .ih-time::after { content: "Skipped"; }
.ih-packet { position: absolute; left: 3%; top: 0; display: flex; align-items: center; gap: .45em; margin-top: -1.05em; padding: .45em .7em .45em .5em; border-radius: 2em; background: var(--ink); color: #fff; font-size: .82em; white-space: nowrap; opacity: 0; transform: translate(0, 0); transition: transform .45s var(--ease), opacity .3s; }
.ih-packet .ih-doc { background-color: #fff; background-image: linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)), linear-gradient(var(--ink), var(--ink)); }
.ih-packet b { font-weight: 500; }
.ih-packet.is-on { opacity: 1; }
.ih-cursor { position: absolute; left: 0; top: 0; width: 1.6em; height: 1.6em; margin: -.3em 0 0 -.2em; opacity: 0; transition: transform .5s var(--ease), opacity .3s; filter: drop-shadow(0 .2em .3em rgba(0, 0, 0, .25)); }
.ih-cursor.is-on { opacity: 1; }
