kitbash Sign in Connect agent
Components

Stacked confession

A three-line stacked serif headline ending in an italic moss phrase, an italic subline, and a scroll rail with a sliding thumb; lines rise in on load.

Part of the style

Night Moss Essay

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

Preview

Code
<style>
/* Goes after the pack's base.css */
@import url("https://fonts.googleapis.com/css2?family=Hanken+Grotesk:wght@400;500&display=swap");
:root {
  --font-display: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
  --font-label: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;
}
</style>

<section class="hero">
  <div class="hero__inner">
    <h1 class="hero__title">
      <span class="hero__line">I bake</span>
      <span class="hero__line">before</span>
      <span class="hero__line hero__line--accent">dawn.</span>
    </h1>
    <p class="hero__sub">This is what comes out of the oven while the town sleeps.</p>
  </div>
  <div class="hero__rail" aria-hidden="true"><span class="hero__thumb"></span></div>
</section>

<style>
  .hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: clamp(34rem, 58vw, 52rem);
    padding: var(--space-xl) var(--inset) calc(var(--space-xl) + 3rem);
    background: var(--night);
  }
  .hero__title {
    margin: 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 400;
    font-size: var(--display-xl);
    line-height: 1.02;
    letter-spacing: -0.02em;
  }
  .hero__line {
    display: block;
    opacity: 0;
    transform: translateY(28px);
    animation: hero-rise var(--hero-fade) var(--ease-out) forwards;
  }
  .hero__line:nth-child(2) { animation-delay: 120ms; }
  .hero__line:nth-child(3) { animation-delay: 240ms; }
  .hero__line--accent {
    color: var(--moss);
    font-style: italic;
  }
  .hero__sub {
    margin: var(--space-l) 0 0;
    max-width: 30rem;
    color: var(--ink-faint);
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.125rem, 1.6vw, 1.375rem);
    line-height: 1.5;
    opacity: 0;
    animation: hero-fade var(--hero-fade) var(--ease-out) 600ms forwards;
  }
  .hero__rail {
    position: absolute;
    left: var(--inset);
    bottom: var(--space-l);
    width: var(--rule);
    height: 3.5rem;
    background: var(--line);
    overflow: hidden;
  }
  .hero__thumb {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 40%;
    background: var(--moss-deep);
    animation: hero-thumb 2.4s var(--ease-out) infinite;
  }
  @keyframes hero-rise {
    to { opacity: 1; transform: none; }
  }
  @keyframes hero-fade {
    to { opacity: 1; }
  }
  @keyframes hero-thumb {
    0% { transform: translateY(-100%); opacity: 0; }
    30% { opacity: 1; }
    100% { transform: translateY(260%); opacity: 0; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__line, .hero__sub { opacity: 1; transform: none; animation: none; }
    .hero__thumb { animation: none; transform: none; }
  }
</style>

Similar components

Blue light hero

Blue light hero

Statement with picture trail

Statement with picture trail

Swash masthead

Swash masthead

Picture-letter headline

Picture-letter headline

Masthead

Masthead

Corner frame hero

Corner frame hero

Sketch statement

Sketch statement

Statement and rising panel

Statement and rising panel