kitbash Sign in Connect agent
Components

Hero with stage accordion

Mono eyebrow, a two-line headline whose last word scrambles to the next, a short line with a white button, and below it a five-stage accordion of numbered columns over a painted mat that opens one by one.

Part of the style

Matted Dark Console

7 parts that belong together, with their tokens, type and rules.

Preview

Code
<style>
/* Goes after the pack's base.css */
:root {
  --night: #12100e;
  --night-raised: #1b1814;
  --night-panel: #25201b;
  --night-deep: #020101;
  --line: #2d2721;
  --line-strong: #3d342c;
  --ink: #bbecfb;
  --ink-soft: #85b5c3;
  --ink-dim: #5d7a82;
  --white: #02222a;
  --on-white: #93908d;
  --mat: #4d4237;
  --mat-light: #9ecfdd;
  --scrim: rgba(0, 0, 0, 0.4);
  --signal: #3499b0;
  --signal-wash: rgba(52, 153, 176, 0.12);
  --coral: #3499b0;
  --flare: #04788d;
  --coral-wash: rgba(52, 153, 176, 0.1);
  --amber: #3499b0;
  --cobalt: #3499b0;
}
</style>

<section class="hero">
  <div class="hero__top">
    <div class="hero__lead">
      <p class="hero__eyebrow">Infrastructure change control</p>
      <h1 class="hero__title">Merge infrastructure on a Friday and still keep your <span class="hero__swap" aria-live="polite"><span class="hero__word">weekend</span><span class="hero__alts" hidden><span>uptime</span><span>budget</span><span>nerve</span><span>weekend</span></span></span></h1>
    </div>
    <div class="hero__side">
      <p class="hero__line">Every plan read, ranked and proven by Ferrow</p>
      <a class="hero__cta" href="#">Try it free <span class="hero__arrow" aria-hidden="true">→</span></a>
    </div>
  </div>

  <div class="hero__rail">
    <img class="hero__mat" src="assets/mat-shower.jpg" alt="A painted meadow after rain, with trees and a faint rainbow" width="1200" height="910" loading="eager">
    <div class="hero__stages">
      <article class="hero__stage is-open">
        <button class="hero__tab" type="button" aria-expanded="true"><span class="hero__num">01</span> <b>Plan</b><span class="hero__more"> every change set</span><span class="hero__timer" aria-hidden="true"></span></button>
        <div class="hero__body">
          <div class="hero__window">
            <div class="hero__comment">
              <span class="hero__avatar" aria-hidden="true"></span>
              <span class="hero__who">ferrow-bot</span><span class="hero__chip">bot</span><span class="hero__meta">commented 2 minutes ago</span>
            </div>
            <p class="hero__warn"><span class="hero__dot is-amber"></span> Potential drift <span class="hero__sep">|</span> Major</p>
            <p class="hero__note">The load balancer keeps the old target group after the swap. Health checks will fail for one region.</p>
            <pre class="hero__diff"><span class="is-meta">@@ -14,3 +14,4 @@ module "edge"</span>
<span class="is-del">-  target_group = var.legacy_pool</span>
<span class="is-add">+  target_group = aws_lb_target_group.blue.arn</span>
<span class="is-add">+  drain_seconds = 30</span></pre>
          </div>
        </div>
      </article>
      <article class="hero__stage">
        <button class="hero__tab" type="button" aria-expanded="false"><span class="hero__num">02</span> <b>Queue</b><span class="hero__more"> across all repos</span><span class="hero__timer" aria-hidden="true"></span></button>
        <div class="hero__body">
          <div class="hero__window hero__window--split">
            <div class="hero__ticket">
              <span class="hero__prio is-coral">P0</span>
              <p class="hero__ticket-title">Rotate the staging database password</p>
              <p class="hero__reason">Blocks three other plans waiting on the same secret.</p>
            </div>
            <div class="hero__ticket">
              <span class="hero__prio is-amber">P1</span>
              <p class="hero__ticket-title">Resize the build runners</p>
              <p class="hero__reason">Cost goes up 8%; safe to land after noon.</p>
            </div>
          </div>
        </div>
      </article>
      <article class="hero__stage">
        <button class="hero__tab" type="button" aria-expanded="false"><span class="hero__num">03</span> <b>Explain</b><span class="hero__more"> any plan</span><span class="hero__timer" aria-hidden="true"></span></button>
        <div class="hero__body">
          <div class="hero__window">
            <p class="hero__layer is-on">▤ Layers</p>
            <p class="hero__layer">Network</p>
            <p class="hero__layer">Identity</p>
            <p class="hero__layer">Storage</p>
            <p class="hero__layer">Compute</p>
          </div>
        </div>
      </article>
      <article class="hero__stage">
        <button class="hero__tab" type="button" aria-expanded="false"><span class="hero__num">04</span> <b>Guard</b><span class="hero__more"> the blast radius</span><span class="hero__timer" aria-hidden="true"></span></button>
        <div class="hero__body">
          <div class="hero__window">
            <p class="hero__mono">Live exposure</p>
            <p class="hero__big">3 open</p>
            <div class="hero__dots" aria-hidden="true"></div>
          </div>
        </div>
      </article>
      <article class="hero__stage">
        <button class="hero__tab" type="button" aria-expanded="false"><span class="hero__num">05</span> <b>Roll out</b><span class="hero__more"> region by region</span><span class="hero__timer" aria-hidden="true"></span></button>
        <div class="hero__body">
          <div class="hero__window">
            <p class="hero__mono">Rollout · edge-west</p>
            <p class="hero__check is-ok">Canary at 5% healthy</p>
            <p class="hero__check is-ok">Error budget unchanged</p>
            <p class="hero__check is-bad">Confirm the old pool drained</p>
          </div>
        </div>
      </article>
    </div>
    <div class="hero__strip" aria-hidden="true"></div>
  </div>
</section>

<style>
  .hero {
    padding: clamp(48px, 9vw, 120px) var(--edge) var(--section-space);
    background: linear-gradient(var(--night) 70%, var(--night-raised) 70%);
  }
  .hero__top {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: var(--gap);
    align-items: end;
    margin-bottom: clamp(40px, 7vw, 96px);
  }
  .hero__eyebrow {
    margin: 0 0 var(--space-l);
    color: var(--signal);
    font: 400 12px/1.5 var(--font-mono);
    letter-spacing: 0.02em;
    text-transform: uppercase;
  }
  .hero__title {
    margin: 0;
    color: var(--ink);
    font: 500 var(--display-m)/var(--leading-tight) var(--font-display);
    letter-spacing: -0.025em;
    max-width: 18em;
  }
  .hero__swap { display: inline-block; white-space: nowrap; }
  .hero__word {
    display: inline-block;
    color: var(--ink);
    transition: letter-spacing 500ms var(--ease), color 500ms var(--ease);
  }
  .hero__swap.is-scrambling .hero__word {
    letter-spacing: 0.32em;
    color: var(--signal);
    font-family: var(--font-mono);
    font-weight: 400;
  }
  .hero__swap.is-settled .hero__word { color: var(--signal); }
  .hero__side { display: grid; gap: var(--space-l); justify-items: start; padding-bottom: 6px; }
  .hero__line { margin: 0; color: var(--ink); font-size: var(--text-l); line-height: 1.35; letter-spacing: -0.01em; }
  .hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--radius-hair);
    background: var(--white);
    color: var(--on-white);
    font: 500 var(--text-m)/1 var(--font-body);
    text-decoration: none;
  }
  .hero__arrow { transition: transform var(--quick) var(--ease); }
  .hero__cta:hover .hero__arrow, .hero__cta:focus-visible .hero__arrow { transform: translateX(3px); }
  .hero__cta:focus-visible { outline: var(--rule) solid var(--signal); outline-offset: 3px; }

  .hero__rail {
    position: relative;
    overflow: hidden;
    border: var(--rule) solid var(--line);
    border-radius: var(--radius-hair);
    background: var(--mat);
  }
  .hero__mat {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.7) brightness(0.45);
  }
  .hero__stages { position: relative; display: flex; min-height: 340px; }
  .hero__stage {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: rgba(18, 16, 20, 0.82);
    border-left: var(--rule) solid var(--line);
    transition: flex-grow var(--slow) var(--ease), background-color var(--slow) var(--ease);
  }
  .hero__stage:first-child { border-left: 0; }
  .hero__stage.is-open { flex-grow: 5.5; background: rgba(18, 16, 20, 0.25); }
  .hero__tab {
    position: relative;
    display: flex;
    align-items: center;
    gap: 6px;
    min-height: 52px;
    padding: 0 var(--space-l);
    border: 0;
    border-bottom: var(--rule) solid var(--line);
    background: var(--night);
    color: var(--ink-dim);
    font: 400 var(--text-m)/1 var(--font-body);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: color var(--quick) var(--ease);
  }
  .hero__tab b { font-weight: 600; color: inherit; }
  .hero__tab:hover, .hero__tab:focus-visible { color: var(--ink-soft); }
  .hero__tab:focus-visible { outline: var(--rule) solid var(--signal); outline-offset: -2px; }
  .hero__num { font-family: var(--font-mono); font-size: var(--text-s); }
  .hero__more { color: var(--ink-soft); font-weight: 400; display: none; }
  .hero__stage.is-open .hero__tab { color: var(--ink); }
  .hero__stage.is-open .hero__more { display: inline; }
  .hero__timer {
    position: absolute;
    left: 0; top: 0;
    height: 1px;
    width: 100%;
    background: var(--signal);
    transform: scaleX(0);
    transform-origin: left;
  }
  .hero__stage.is-open .hero__timer { animation: hero-fill var(--dwell) linear forwards; }
  .hero__rail.is-paused .hero__timer { animation-play-state: paused; }
  @keyframes hero-fill { to { transform: scaleX(1); } }

  .hero__body {
    flex: 1;
    padding: 40px var(--space-l) 44px;
    overflow: hidden;
    opacity: 0.35;
    transition: opacity var(--slow) var(--ease);
  }
  .hero__stage.is-open .hero__body { opacity: 1; }
  .hero__window {
    min-width: 300px;
    max-width: 560px;
    padding: var(--space-m);
    border: var(--rule) solid var(--line-strong);
    border-radius: var(--radius-window);
    background: var(--night-raised);
    box-shadow: var(--window-shadow);
    font-size: var(--text-s);
    color: var(--ink-soft);
  }
  .hero__window--split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-s); min-width: 420px; }
  .hero__comment { display: flex; align-items: center; gap: var(--space-s); margin-bottom: var(--space-m); }
  .hero__avatar { width: 22px; height: 22px; border-radius: var(--radius-chip); background: var(--signal); box-shadow: inset 0 0 0 6px var(--night-raised); outline: 1.5px solid var(--signal); outline-offset: -1.5px; }
  .hero__who { color: var(--ink); font-weight: 500; }
  .hero__chip, .hero__prio {
    padding: 1px 6px;
    border: var(--rule) solid var(--line-strong);
    border-radius: var(--radius-chip);
    font: 400 var(--text-xs)/1.5 var(--font-mono);
    color: var(--ink-dim);
  }
  .hero__meta { color: var(--ink-dim); font-size: var(--text-xs); }
  .hero__warn { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--ink); font-weight: 500; }
  .hero__sep { color: var(--ink-dim); }
  .hero__dot { width: 7px; height: 7px; border-radius: var(--radius-round); }
  .hero__dot.is-amber { background: var(--amber); }
  .hero__note { margin: 0 0 var(--space-m); line-height: 1.5; }
  .hero__diff {
    margin: 0;
    padding: var(--space-s) 0;
    border-radius: var(--radius-chip);
    background: var(--night-deep);
    font: 400 var(--text-xs)/1.8 var(--font-mono);
    overflow: hidden;
    white-space: normal;
  }
  .hero__diff span { display: block; padding: 0 var(--space-s); white-space: pre; }
  .hero__diff .is-meta { color: var(--ink-dim); }
  .hero__diff .is-del { color: var(--coral); background: var(--coral-wash); }
  .hero__diff .is-add { color: var(--signal); background: var(--signal-wash); }
  .hero__ticket { padding: 12px; border: var(--rule) solid var(--line-strong); border-radius: var(--radius-window); background: var(--night); }
  .hero__prio.is-coral { color: var(--coral); border-color: var(--coral); }
  .hero__prio.is-amber { color: var(--amber); border-color: var(--amber); }
  .hero__ticket-title { margin: 10px 0 6px; color: var(--ink); }
  .hero__reason { margin: 0; padding-left: 8px; border-left: var(--rule) solid var(--amber); color: var(--amber); font-size: var(--text-xs); line-height: 1.5; }
  .hero__layer { margin: 0; padding: 8px 10px; border-radius: var(--radius-chip); color: var(--ink-dim); }
  .hero__layer.is-on { color: var(--ink); background: var(--night-panel); font-size: var(--text-m); }
  .hero__mono { margin: 0 0 6px; color: var(--ink-dim); font: 400 var(--text-xs)/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; }
  .hero__big { margin: 0 0 var(--space-s); color: var(--ink); font-size: var(--display-s); font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
  .hero__dots { height: 90px; background: radial-gradient(circle, var(--ink-dim) 1.2px, transparent 1.6px) 0 0 / 14px 14px; opacity: 0.6; }
  .hero__check { display: flex; align-items: center; gap: 8px; margin: 10px 0 0; white-space: nowrap; }
  .hero__check::before { content: ""; flex: none; width: 14px; height: 14px; border-radius: var(--radius-round); }
  .hero__check.is-ok::before { background: var(--signal); }
  .hero__check.is-bad::before { background: var(--coral); }
  .hero__strip {
    position: relative;
    height: var(--strip);
    background: linear-gradient(90deg,
      var(--signal) 0 3%, var(--line-strong) 3% 26%, var(--cobalt) 26% 40%, var(--ink-dim) 40% 58%,
      var(--flare) 58% 62%, var(--mat-light) 62% 80%, var(--line-strong) 80% 100%);
  }

  @media (max-width: 60rem) {
    .hero__top { grid-template-columns: 1fr; }
    .hero__stages { flex-direction: column; min-height: 0; }
    .hero__stage { border-left: 0; border-top: var(--rule) solid var(--line); }
    .hero__stage:first-child { border-top: 0; }
    .hero__stage:not(.is-open) .hero__body { display: none; }
    .hero__body { padding: var(--space-l) var(--space-m); }
    .hero__window, .hero__window--split { min-width: 0; }
    .hero__diff span { white-space: pre-wrap; word-break: break-all; }
  }
  @media (max-width: 30rem) {
    .hero__window--split { grid-template-columns: 1fr; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__stage.is-open .hero__timer { animation: none; transform: scaleX(1); }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const glyphs = '#%&*+=<>/\\[]{}01';

    document.querySelectorAll('.hero').forEach((root) => {
      // Rotating word: the alternatives are written in the markup, the script only cycles them.
      const swap = root.querySelector('.hero__swap');
      const word = swap.querySelector('.hero__word');
      const words = [...swap.querySelectorAll('.hero__alts span')].map((s) => s.textContent);
      let index = 0;
      let visible = true;
      new IntersectionObserver(([e]) => { visible = e.isIntersecting; }).observe(root);

      const scramble = (target) => {
        swap.classList.remove('is-settled');
        swap.classList.add('is-scrambling');
        const start = performance.now();
        const step = (now) => {
          const t = Math.min(1, (now - start) / 520);
          const fixed = Math.floor(t * target.length);
          word.textContent = target.split('').map((c, i) => (i < fixed ? c : glyphs[(Math.random() * glyphs.length) | 0])).join('');
          if (t < 1) requestAnimationFrame(step);
          else { swap.classList.remove('is-scrambling'); swap.classList.add('is-settled'); }
        };
        requestAnimationFrame(step);
      };
      if (!still.matches) {
        setInterval(() => {
          if (!visible || document.hidden) return;
          scramble(words[index]);
          index = (index + 1) % words.length;
        }, 2600);
      }

      // Stage accordion: opens on click, advances on its own after the dwell.
      const rail = root.querySelector('.hero__rail');
      const stages = [...root.querySelectorAll('.hero__stage')];
      const dwell = parseFloat(getComputedStyle(root).getPropertyValue('--dwell')) || 5200;
      let current = 0;
      let timer = 0;
      const open = (i) => {
        current = i;
        stages.forEach((s, n) => {
          s.classList.toggle('is-open', n === i);
          s.querySelector('.hero__tab').setAttribute('aria-expanded', String(n === i));
        });
        clearTimeout(timer);
        if (!still.matches) timer = setTimeout(() => visible ? open((current + 1) % stages.length) : open(current), dwell);
      };
      stages.forEach((s, n) => s.querySelector('.hero__tab').addEventListener('click', () => open(n)));
      rail.addEventListener('pointerenter', () => { rail.classList.add('is-paused'); clearTimeout(timer); });
      rail.addEventListener('pointerleave', () => { rail.classList.remove('is-paused'); open(current); });
      open(0);
    });
  })();
</script>

Similar components

Painted desktop

Painted desktop

Stage and inspector

Stage and inspector

Doodled wordmark with x-ray

Doodled wordmark with x-ray

Stamp sheet

Stamp sheet

Device hero

Device hero

Opening line

Opening line

Hero with editor window

Hero with editor window

Headline over app window

Headline over app window