kitbash Sign in Connect agent

Swinging Lanyard Badges

Playful · 7 parts · app landing · product · lanyard

A pale grey Apple-quiet page where gradient name badges hang from coral straps and sway, framed by light, tightly tracked headlines and black pill buttons. Suits app launches, event passes and membership cards that want one tactile object at the centre.

Get pack Remix

Whole page

Parts

Glass top bar

A translucent bar with an app tile, the app name and a black pill download button.

Code React For Figma
<header class="nav">
  <div class="nav__bar">
    <a class="nav__brand" href="#" aria-label="Lumo home">
      <svg class="nav__tile" viewBox="0 0 32 32" aria-hidden="true">
        <rect width="32" height="32" rx="8" fill="var(--strap)"/>
        <path d="M11 4 V13 a5 5 0 0 0 10 0 V4" fill="none" stroke="var(--surface)" stroke-width="2.6" stroke-linecap="round"/>
        <rect x="12.5" y="17" width="7" height="3" rx="1.2" fill="var(--surface)"/>
        <rect x="9" y="20.5" width="14" height="8" rx="2.4" fill="var(--surface)" opacity="0.9"/>
      </svg>
      <span class="nav__name">Lumo</span>
    </a>
    <nav class="nav__links" aria-label="Sections">
      <a class="nav__link" href="#">Passes</a>
      <a class="nav__link" href="#">Live pass</a>
      <a class="nav__link" href="#">Questions</a>
    </nav>
    <a class="nav__pill" href="#">Download</a>
  </div>
</header>

<style>
  .nav {
    position: sticky;
    top: 0;
    z-index: 20;
    padding: var(--space-s) var(--edge);
    background: var(--glass);
    -webkit-backdrop-filter: saturate(1.6) blur(18px);
    backdrop-filter: saturate(1.6) blur(18px);
  }
  .nav__bar {
    display: flex;
    align-items: center;
    gap: var(--space-l);
    max-width: var(--page);
    margin: 0 auto;
  }
  .nav__brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 44px;
    color: var(--ink);
    font-size: var(--text-m);
    font-weight: var(--weight-medium);
    text-decoration: none;
  }
  .nav__tile {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 2px 4px rgba(17, 17, 19, 0.18));
  }
  .nav__links {
    display: flex;
    gap: var(--space-xs);
    margin-left: auto;
  }
  .nav__link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    border-radius: var(--pill);
    color: var(--ink-soft);
    font-size: var(--text-s);
    text-decoration: none;
    transition: color var(--quick) var(--ease), background-color var(--quick) var(--ease);
  }
  .nav__link:hover {
    color: var(--ink);
    background: var(--line-soft);
  }
  .nav__pill {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 20px;
    border-radius: var(--pill);
    background: var(--ink);
    color: var(--on-night);
    font-size: var(--text-m);
    font-weight: var(--weight-medium);
    text-decoration: none;
    transition: transform var(--quick) var(--ease), opacity var(--quick) var(--ease);
  }
  .nav__pill:hover { opacity: 0.85; }
  .nav__pill:active { transform: scale(0.96); }
  .nav__brand:focus-visible,
  .nav__link:focus-visible,
  .nav__pill:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: var(--pill);
  }

  @media (max-width: 40rem) {
    .nav__links { display: none; }
    .nav__pill { margin-left: auto; }
  }
</style>

Swinging badge hero

A light centred headline surrounded by gradient badges and a QR tag hanging on straps that sway, with a phone peeking from the bottom edge.

Code React For Figma
<section class="hero">
  <div class="hero__float" aria-hidden="true">
    <div class="hero__hang" style="--x: 5%; --y: 40px; --w: 1; --rot: -7deg; --dur: 5.2s; --delay: -1.1s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--blue"><span class="hero__strip"><b class="hero__who">Theo Lindqvist</b><i class="hero__role">Lighting</i></span></div>
    </div>
    <div class="hero__hang" style="--x: 17%; --y: 0px; --w: 0.62; --rot: 5deg; --dur: 4.4s; --delay: -2.4s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--green"></div>
    </div>
    <div class="hero__hang hero__hang--far" style="--x: 13%; --y: 300px; --w: 0.85; --rot: 9deg; --dur: 6.1s; --delay: -0.4s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--violet"><span class="hero__strip"><b class="hero__who">Jun Park</b><i class="hero__role">Crew</i></span></div>
    </div>
    <div class="hero__hang hero__hang--far" style="--x: -2%; --y: 420px; --w: 0.8; --rot: -4deg; --dur: 5.6s; --delay: -3s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--photo"><img class="hero__photo" src="assets/coastal-island.jpg" alt="" width="800" height="450"></div>
    </div>
    <div class="hero__hang" style="--x: 83%; --y: 24px; --w: 1.05; --rot: 8deg; --dur: 4.8s; --delay: -0.7s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--pink"><span class="hero__strip"><b class="hero__who">Ruth Amari</b><i class="hero__role">Artist</i></span></div>
    </div>
    <div class="hero__hang hero__hang--far" style="--x: 72%; --y: 6px; --w: 0.5; --rot: -6deg; --dur: 4.1s; --delay: -1.8s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--blank"></div>
    </div>
    <div class="hero__hang" style="--x: 77%; --y: 330px; --w: 0.72; --rot: -5deg; --dur: 5.9s; --delay: -2.2s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--qr">
        <svg class="hero__qr" viewBox="0 0 21 21" shape-rendering="crispEdges">
          <path fill="currentColor" d="M0 0h7v7H0zM1 1v5h5V1zM2 2h3v3H2zM14 0h7v7h-7zM15 1v5h5V1zM16 2h3v3h-3zM0 14h7v7H0zM1 15v5h5v-5zM2 16h3v3H2zM8 0h1v2H8zM10 1h2v1h-2zM9 3h2v2H9zM12 4h1v3h-1zM8 6h2v2H8zM0 8h2v1H0zM3 8h3v1H3zM7 9h3v1H7zM11 8h2v2h-2zM14 8h1v2h-1zM16 8h3v1h-3zM20 9h1v3h-1zM1 10h2v2H1zM4 11h3v1H4zM9 11h2v3H9zM12 11h3v1h-3zM16 10h2v3h-2zM8 13h1v1H8zM12 13h2v2h-2zM15 14h3v1h-3zM19 13h1v2h-1zM8 15h3v1H8zM10 17h2v2h-2zM8 19h1v2H8zM13 16h2v3h-2zM16 16h1v1h-1zM18 16h3v2h-3zM16 18h2v3h-2zM19 19h2v2h-2zM12 20h3v1h-3z"/>
        </svg>
        <span class="hero__qr-label">lumo.pass/ruth</span>
      </div>
    </div>
    <div class="hero__hang hero__hang--far" style="--x: 92%; --y: 460px; --w: 0.7; --rot: 6deg; --dur: 6.4s; --delay: -4s;">
      <span class="hero__strap"></span><span class="hero__clip"></span>
      <div class="hero__card hero__card--peach"></div>
    </div>
  </div>

  <div class="hero__copy">
    <p class="hero__eyebrow">Festival pass app for iPhone</p>
    <h1 class="hero__title">Carry your pass.</h1>
    <p class="hero__lead">Lumo turns your phone into the pass on your lanyard, with your name, your role and the doors it opens, the right way up for whoever checks it.</p>
    <a class="hero__get" href="#">
      <svg class="hero__get-icon" viewBox="0 0 16 24" aria-hidden="true"><rect x="1.5" y="1.5" width="13" height="21" rx="3.5" fill="none" stroke="currentColor" stroke-width="1.6"/><rect x="5.5" y="3.6" width="5" height="1.6" rx="0.8" fill="currentColor"/></svg>
      <span class="hero__get-text"><small class="hero__get-small">Free for iPhone</small>Get Lumo</span>
    </a>
  </div>

  <div class="hero__phone" aria-hidden="true">
    <div class="hero__screen">
      <span class="hero__time">9:41</span>
      <span class="hero__island"></span>
      <span class="hero__chip">Swing</span>
    </div>
  </div>
</section>

<style>
  .hero {
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
    min-height: clamp(640px, 54vw, 780px);
    padding: var(--space-xl) var(--edge) 170px;
    background: var(--ground);
    isolation: isolate;
  }
  .hero__float {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
  }
  .hero__hang {
    --card: clamp(72px, 10.5vw, 150px);
    position: absolute;
    top: var(--y);
    left: var(--x);
    display: grid;
    justify-items: center;
    width: calc(var(--card) * var(--w));
    transform-origin: 50% 0;
    rotate: var(--rot);
    animation: hero-sway var(--dur) ease-in-out var(--delay) infinite alternate;
    pointer-events: auto;
  }
  @keyframes hero-sway {
    from { transform: rotate(-3deg); }
    to { transform: rotate(3deg); }
  }
  .hero__strap {
    width: 26%;
    height: calc(46px * var(--w));
    background: linear-gradient(to bottom, transparent, var(--strap) 45%);
    border-inline: 1px solid rgba(0, 0, 0, 0.06);
  }
  .hero__clip {
    width: 34%;
    height: 7px;
    margin-bottom: -3px;
    border-radius: 3px;
    background: var(--strap-dark);
    position: relative;
    z-index: 1;
  }
  .hero__card {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 7;
    overflow: hidden;
    border-radius: calc(var(--radius-card) * 0.55 * var(--w));
    box-shadow: var(--shadow-card);
    transition: transform var(--slow) var(--ease);
  }
  .hero__card::before {
    content: "";
    position: absolute;
    top: 6%;
    left: 50%;
    width: 22%;
    height: 3.5%;
    translate: -50% 0;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.7);
    z-index: 1;
  }
  .hero__hang:hover .hero__card { transform: rotate(-4deg) scale(1.04); }
  .hero__card--blue {
    background:
      radial-gradient(circle at 25% 30%, var(--mesh-cyan), transparent 42%),
      radial-gradient(ellipse at 75% 55%, var(--mesh-violet), transparent 55%),
      radial-gradient(circle at 30% 85%, var(--mesh-cyan), transparent 40%),
      var(--mesh-blue);
  }
  .hero__card--green {
    background:
      radial-gradient(circle at 30% 30%, var(--mesh-green), transparent 50%),
      radial-gradient(circle at 75% 75%, var(--mesh-teal), transparent 55%),
      var(--mesh-green);
  }
  .hero__card--violet {
    background:
      radial-gradient(circle at 70% 25%, var(--mesh-pink), transparent 40%),
      radial-gradient(ellipse at 25% 60%, var(--mesh-blue), transparent 55%),
      var(--mesh-violet);
  }
  .hero__card--pink {
    background:
      radial-gradient(circle at 30% 25%, var(--mesh-peach), transparent 42%),
      radial-gradient(ellipse at 70% 55%, var(--mesh-pink), transparent 55%),
      radial-gradient(circle at 25% 75%, var(--mesh-violet), transparent 35%),
      var(--mesh-rose);
  }
  .hero__card--peach {
    background:
      radial-gradient(circle at 40% 35%, var(--mesh-peach), transparent 55%),
      radial-gradient(circle at 70% 80%, var(--mesh-pink), transparent 50%),
      var(--mesh-rose);
  }
  .hero__card--blank,
  .hero__card--qr { background: var(--surface); }
  .hero__card--blank::before,
  .hero__card--qr::before { background: var(--ground); }
  .hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
  }
  .hero__strip {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    padding: 8% 9% 10%;
    background: var(--frost);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    color: var(--ink);
    line-height: 1.15;
  }
  .hero__who {
    font-size: clamp(10px, 1.1vw, 15px);
    font-weight: var(--weight-medium);
    letter-spacing: -0.01em;
  }
  .hero__role {
    font-size: clamp(7px, 0.7vw, 10px);
    font-style: normal;
    color: var(--ink-soft);
  }
  .hero__card--qr {
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 8%;
    padding: 14%;
    color: var(--ink);
  }
  .hero__qr { width: 100%; }
  .hero__qr-label {
    font-size: clamp(6px, 0.6vw, 9px);
    color: var(--ink-soft);
  }

  .hero__copy {
    position: relative;
    display: grid;
    justify-items: center;
    max-width: 36rem;
    text-align: center;
  }
  .hero__eyebrow {
    margin: 0 0 var(--space-m);
    color: var(--ink-soft);
    font-size: var(--text-s);
  }
  .hero__title {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display-xl);
    font-weight: var(--weight-light);
    line-height: 1.05;
    letter-spacing: var(--track-display);
    text-wrap: balance;
  }
  .hero__lead {
    max-width: var(--measure);
    margin: var(--space-l) 0 var(--space-xl);
    color: var(--ink-soft);
    font-size: var(--text);
    line-height: 1.62;
    text-wrap: balance;
  }
  .hero__get {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 52px;
    padding: 6px 20px 6px 16px;
    border: var(--line) solid var(--ink-faint);
    border-radius: calc(var(--radius-s) * 1.5);
    background: var(--ink);
    color: var(--on-night);
    font-size: var(--text-l);
    font-weight: var(--weight-medium);
    line-height: 1.05;
    text-decoration: none;
    transition: transform var(--quick) var(--ease), opacity var(--quick) var(--ease);
  }
  .hero__get:hover { opacity: 0.86; }
  .hero__get:active { transform: scale(0.97); }
  .hero__get:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }
  .hero__get-icon { width: 16px; height: 24px; }
  .hero__get-text { display: grid; text-align: left; }
  .hero__get-small {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
  }

  .hero__phone {
    position: absolute;
    bottom: -150px;
    left: 50%;
    translate: -50% 0;
    width: clamp(150px, 15vw, 200px);
    aspect-ratio: 9 / 19;
    padding: 6px;
    border-radius: 36px;
    background: var(--night-raised);
    box-shadow: var(--shadow-card), inset 0 0 0 2px var(--frame-edge);
  }
  .hero__screen {
    position: relative;
    height: 100%;
    border-radius: 30px;
    background:
      radial-gradient(circle at 30% 70%, var(--mesh-peach), transparent 45%),
      radial-gradient(ellipse at 70% 40%, var(--mesh-pink), transparent 60%),
      var(--mesh-rose);
  }
  .hero__time {
    position: absolute;
    top: 14px;
    left: 20px;
    font-size: 11px;
    font-weight: 600;
  }
  .hero__island {
    position: absolute;
    top: 10px;
    left: 50%;
    width: 34%;
    height: 18px;
    translate: -50% 0;
    border-radius: var(--pill);
    background: var(--night);
  }
  .hero__chip {
    position: absolute;
    top: 48px;
    right: 12px;
    padding: 3px 9px;
    border-radius: var(--pill);
    background: var(--night);
    color: var(--on-night);
    font-size: 9px;
  }

  @media (max-width: 40rem) {
    .hero { padding-top: 120px; }
    .hero__hang { --card: 86px; }
    .hero__hang--far { display: none; }
    .hero__hang[style*="--x: 5%"] { left: -30px; top: 520px; }
    .hero__hang[style*="--x: 17%"] { left: 40px; top: 0; }
    .hero__hang[style*="--x: 83%"] { left: auto; right: -30px; top: 10px; }
    .hero__hang[style*="--x: 77%"] { left: auto; right: -14px; top: 470px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .hero__hang { animation: none; }
  }
</style>

Hanging phone

A phone on a coral strap swings in a black room following the pointer, showing a name badge on its screen.

Code React For Figma
<section class="lanyard">
  <div class="lanyard__stage">
    <div class="lanyard__hang">
      <span class="lanyard__strap" aria-hidden="true"></span>
      <span class="lanyard__ring" aria-hidden="true"></span>
      <div class="lanyard__phone" role="img" aria-label="A phone hanging from a strap, showing a festival pass">
        <div class="lanyard__screen">
          <span class="lanyard__island"></span>
          <div class="lanyard__badge">
            <span class="lanyard__slot"></span>
            <span class="lanyard__art"></span>
            <span class="lanyard__strip">
              <span class="lanyard__name">Ines Okafor</span>
              <span class="lanyard__role">Stage Manager · Access all areas</span>
            </span>
          </div>
        </div>
      </div>
    </div>
  </div>
  <div class="lanyard__copy">
    <h2 class="lanyard__title">It hangs the right way up.</h2>
    <p class="lanyard__text">Clip your phone to any lanyard. The pass turns itself to face whoever is checking it, and swings back when you walk on.</p>
    <button class="lanyard__kick" type="button">Give it a swing</button>
  </div>
</section>

<style>
  .lanyard {
    position: relative;
    overflow: hidden;
    display: grid;
    justify-items: center;
    padding: 0 var(--edge) var(--section-space);
    background: var(--night);
    color: var(--on-night);
  }
  .lanyard__stage {
    display: grid;
    justify-items: center;
    width: 100%;
  }
  .lanyard__hang {
    display: grid;
    justify-items: center;
    transform-origin: 50% 0;
    will-change: transform;
  }
  .lanyard__strap {
    width: 34px;
    height: clamp(70px, 9vw, 120px);
    background:
      linear-gradient(90deg, var(--strap-dark), var(--strap) 22%, var(--strap) 78%, var(--strap-dark));
  }
  .lanyard__ring {
    width: 46px;
    height: 12px;
    margin-bottom: -4px;
    border-radius: 6px;
    background: linear-gradient(var(--ink-faint), var(--ink-soft));
    position: relative;
    z-index: 1;
  }
  .lanyard__phone {
    width: clamp(200px, 21vw, 240px);
    aspect-ratio: 9 / 18.5;
    padding: 9px;
    border-radius: var(--radius-phone);
    background: var(--night-raised);
    box-shadow: inset 0 0 0 2px var(--frame-edge), 0 40px 80px -30px rgba(212, 114, 106, 0.35);
  }
  .lanyard__screen {
    position: relative;
    display: grid;
    place-items: center;
    height: 100%;
    border-radius: calc(var(--radius-phone) - 9px);
    background: var(--night);
    overflow: hidden;
  }
  .lanyard__island {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 30%;
    height: 22px;
    translate: -50% 0;
    border-radius: var(--pill);
    background: var(--night-raised);
  }
  .lanyard__badge {
    position: relative;
    width: 78%;
    aspect-ratio: 5 / 7;
    border-radius: 18px;
    overflow: hidden;
    background: var(--mesh-rose);
  }
  .lanyard__slot {
    position: absolute;
    top: 6%;
    left: 50%;
    z-index: 1;
    width: 24%;
    height: 3%;
    translate: -50% 0;
    border-radius: var(--pill);
    background: var(--night);
  }
  .lanyard__art {
    position: absolute;
    inset: 0;
    background:
      radial-gradient(circle at 28% 28%, var(--mesh-peach), transparent 40%),
      radial-gradient(ellipse at 72% 48%, var(--mesh-pink), transparent 52%),
      radial-gradient(circle at 40% 62%, var(--mesh-violet), transparent 22%),
      var(--mesh-rose);
  }
  .lanyard__strip {
    position: absolute;
    inset: auto 0 0;
    display: grid;
    gap: 2px;
    padding: 12px 12px 14px;
    background: var(--frost);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    color: var(--ink);
  }
  .lanyard__name {
    font-size: 17px;
    font-weight: var(--weight-medium);
    letter-spacing: -0.015em;
    line-height: 1.1;
  }
  .lanyard__role {
    color: var(--ink-soft);
    font-size: 9px;
  }
  .lanyard__copy {
    display: grid;
    justify-items: center;
    max-width: 34rem;
    margin-top: var(--space-xl);
    text-align: center;
  }
  .lanyard__title {
    margin: 0;
    font-size: var(--display-l);
    font-weight: var(--weight-light);
    line-height: 1.1;
    letter-spacing: var(--track-display);
    text-wrap: balance;
  }
  .lanyard__text {
    max-width: var(--measure);
    margin: var(--space-m) 0 var(--space-l);
    color: var(--on-night-soft);
    font-size: var(--text);
    line-height: 1.6;
    text-wrap: balance;
  }
  .lanyard__kick {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--pill);
    background: var(--on-night);
    color: var(--ink);
    font: var(--weight-medium) var(--text-m) var(--font-body);
    cursor: pointer;
    transition: transform var(--quick) var(--ease), opacity var(--quick) var(--ease);
  }
  .lanyard__kick:hover { opacity: 0.86; }
  .lanyard__kick:active { transform: scale(0.96); }
  .lanyard__kick:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

  @media (min-width: 60rem) {
    .lanyard {
      grid-template-columns: 1fr 1fr;
      align-items: end;
      column-gap: var(--space-xl);
      max-width: none;
    }
    .lanyard__stage { justify-items: end; padding-right: 6vw; }
    .lanyard__copy { justify-items: start; text-align: left; margin: 0; padding-bottom: var(--space-xl); }
    .lanyard__title, .lanyard__text { text-wrap: pretty; }
  }
</style>

<script>
(() => {
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  function setup(root) {
    const hang = root.querySelector('.lanyard__hang');
    const kick = root.querySelector('.lanyard__kick');
    let angle = 0;
    let speed = 0;
    let pull = null;
    let frame = 0;

    const tick = (now) => {
      const idle = Math.sin(now / 1000 * 1.1) * 2.5;
      const target = pull === null ? idle : pull;
      speed = (speed + (target - angle) * 0.06) * 0.9;
      angle += speed;
      hang.style.transform = `rotate(${angle.toFixed(2)}deg)`;
      frame = requestAnimationFrame(tick);
    };

    root.addEventListener('pointermove', (event) => {
      const box = root.getBoundingClientRect();
      const x = (event.clientX - box.left) / box.width - 0.5;
      pull = Math.max(-14, Math.min(14, -x * 28));
    });
    root.addEventListener('pointerleave', () => { pull = null; });
    kick.addEventListener('click', () => {
      if (still.matches) return;
      speed += angle > 0 ? -5 : 5;
    });

    new IntersectionObserver(([entry]) => {
      cancelAnimationFrame(frame);
      if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
      else if (still.matches) hang.style.transform = 'none';
    }).observe(root);
  }

  document.querySelectorAll('.lanyard').forEach(setup);
})();
</script>

Badge carousel

Three badge cards in a 3D row on a pink wash; the pager pill and side cards switch the one in front.

Code React For Figma
<section class="occasions">
  <div class="occasions__head">
    <h2 class="occasions__title">A pass for every night.</h2>
    <p class="occasions__text">Main stage, backstage, the after-party. Swipe between your passes and tap the code to let the door scan it.</p>
  </div>

  <div class="occasions__rail" data-active="1">
    <article class="occasions__card occasions__card--blue" data-index="0" aria-label="Pass 1 of 3">
      <span class="occasions__art"><img class="occasions__avatar" src="assets/portrait-artist.jpg" alt="Painted portrait used as the pass photo" width="634" height="800"></span>
      <div class="occasions__body">
        <h3 class="occasions__name">Theo Lindqvist</h3>
        <p class="occasions__role">Lighting · Crew</p>
        <div class="occasions__tools"><button class="occasions__code" type="button" aria-label="Show code"><span class="occasions__qr"></span></button><button class="occasions__edit" type="button">Edit</button></div>
      </div>
    </article>
    <article class="occasions__card occasions__card--pink" data-index="1" aria-label="Pass 2 of 3">
      <span class="occasions__art"><img class="occasions__avatar" src="assets/portrait-halfdoor.jpg" alt="Painted portrait used as the pass photo" width="668" height="800"></span>
      <div class="occasions__body">
        <h3 class="occasions__name">Ruth Amari</h3>
        <p class="occasions__role">Artist · Saturday headline</p>
        <div class="occasions__tools"><button class="occasions__code" type="button" aria-label="Show code"><span class="occasions__qr"></span></button><button class="occasions__edit" type="button">Edit</button></div>
      </div>
    </article>
    <article class="occasions__card occasions__card--photo" data-index="2" aria-label="Pass 3 of 3">
      <span class="occasions__art"><img class="occasions__scene" src="assets/aerial-beach.jpg" alt="Shoreline seen from above" width="800" height="450"></span>
      <div class="occasions__body">
        <h3 class="occasions__name">Beach Camp</h3>
        <p class="occasions__role">Guest · Sunday</p>
        <div class="occasions__tools"><button class="occasions__code" type="button" aria-label="Show code"><span class="occasions__qr"></span></button><button class="occasions__edit" type="button">Edit</button></div>
      </div>
    </article>
  </div>

  <div class="occasions__pager" role="group" aria-label="Choose a pass">
    <button class="occasions__dot" type="button" data-go="0" aria-label="Pass 1"></button>
    <button class="occasions__dot" type="button" data-go="1" aria-label="Pass 2"></button>
    <button class="occasions__dot" type="button" data-go="2" aria-label="Pass 3"></button>
    <button class="occasions__add" type="button" aria-label="Add a pass">+</button>
  </div>
</section>

<style>
  .occasions {
    overflow: hidden;
    display: grid;
    justify-items: center;
    padding: calc(var(--space-xl) * 1.5) var(--edge);
    background: linear-gradient(170deg, var(--sky) 0%, var(--blush) 34%, var(--peach) 78%, var(--ground) 100%);
    text-align: center;
  }
  .occasions__head { max-width: 34rem; }
  .occasions__title {
    margin: 0;
    font-size: var(--display-l);
    font-weight: var(--weight-light);
    line-height: 1.1;
    letter-spacing: var(--track-display);
    text-wrap: balance;
  }
  .occasions__text {
    margin: var(--space-m) auto 0;
    max-width: var(--measure);
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: 1.6;
    text-wrap: balance;
  }
  .occasions__rail {
    position: relative;
    width: 100%;
    max-width: var(--page);
    height: clamp(300px, 30vw, 380px);
    margin-top: var(--space-xl);
    perspective: 1200px;
  }
  .occasions__card {
    --shift: 0;
    position: absolute;
    top: 0;
    left: 50%;
    display: grid;
    grid-template-rows: 1fr auto;
    width: clamp(220px, 28vw, 300px);
    height: 100%;
    overflow: hidden;
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    text-align: left;
    transform: translateX(calc(-50% + var(--shift) * 108%)) rotateY(calc(var(--shift) * -24deg)) scale(calc(1 - var(--depth, 0) * 0.1));
    opacity: calc(1 - var(--depth, 0) * 0.35);
    transition: transform var(--slow) var(--ease), opacity var(--slow) var(--ease), filter var(--slow) var(--ease);
    cursor: pointer;
  }
  .occasions__card.is-active { cursor: default; z-index: 1; }
  .occasions__card:not(.is-active) { filter: saturate(0.8); }
  .occasions__card--blue {
    background:
      radial-gradient(circle at 20% 20%, var(--mesh-cyan), transparent 45%),
      radial-gradient(ellipse at 80% 40%, var(--mesh-violet), transparent 55%),
      var(--mesh-blue);
  }
  .occasions__card--pink {
    background:
      radial-gradient(circle at 25% 20%, var(--mesh-peach), transparent 40%),
      radial-gradient(ellipse at 75% 35%, var(--mesh-pink), transparent 50%),
      var(--mesh-rose);
  }
  .occasions__card--photo { background: var(--mesh-teal); }
  .occasions__art {
    position: relative;
    display: grid;
    place-items: center;
    overflow: hidden;
  }
  .occasions__art::before {
    content: "";
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 1;
    width: 22%;
    height: 7px;
    translate: -50% 0;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.75);
  }
  .occasions__avatar {
    width: 44%;
    height: auto;
    aspect-ratio: 1;
    border-radius: 50%;
    border: 3px solid var(--surface);
    object-fit: cover;
    object-position: 50% 22%;
    box-shadow: var(--shadow-soft);
  }
  .occasions__scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
  .occasions__body {
    position: relative;
    padding: 18px 18px 16px;
    background: var(--frost);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }
  .occasions__name {
    margin: 0;
    font-size: clamp(22px, 2.2vw, 28px);
    font-weight: var(--weight-light);
    line-height: 1.1;
    letter-spacing: var(--track-display);
  }
  .occasions__role {
    margin: 4px 0 0;
    color: var(--ink-soft);
    font-size: var(--text-s);
  }
  .occasions__tools {
    display: flex;
    justify-content: flex-end;
    gap: 6px;
    margin-top: 10px;
  }
  .occasions__code,
  .occasions__edit {
    min-width: 50px;
    min-height: 50px;
    border: 0;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.7);
    color: var(--ink);
    font: var(--weight-medium) var(--text-m) var(--font-body);
    cursor: pointer;
    transition: background-color var(--quick) var(--ease);
  }
  .occasions__edit { padding: 0 18px; }
  .occasions__code:hover,
  .occasions__edit:hover { background: var(--surface); }
  .occasions__qr {
    display: block;
    width: 16px;
    height: 16px;
    margin: auto;
    background:
      linear-gradient(var(--ink) 0 0) 0 0 / 6px 6px no-repeat,
      linear-gradient(var(--ink) 0 0) 100% 0 / 6px 6px no-repeat,
      linear-gradient(var(--ink) 0 0) 0 100% / 6px 6px no-repeat,
      linear-gradient(var(--ink) 0 0) 100% 100% / 3px 3px no-repeat,
      linear-gradient(var(--ink) 0 0) 60% 60% / 3px 3px no-repeat;
  }
  .occasions__pager {
    display: inline-flex;
    align-items: center;
    margin-top: var(--space-l);
    padding: 0 6px;
    border-radius: var(--pill);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: var(--shadow-soft);
  }
  .occasions__dot,
  .occasions__add {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    background: none;
    cursor: pointer;
  }
  .occasions__dot::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    translate: -50% -50%;
    border-radius: var(--pill);
    background: var(--ink-faint);
    transition: width var(--slow) var(--ease), background-color var(--slow) var(--ease);
  }
  .occasions__dot.is-active::after {
    width: 22px;
    background: var(--ink);
  }
  .occasions__add {
    color: var(--ink-soft);
    font: 400 18px/1 var(--font-body);
  }
  .occasions__dot:focus-visible,
  .occasions__add:focus-visible,
  .occasions__code:focus-visible,
  .occasions__edit:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 1px;
    border-radius: var(--pill);
  }
  @media (max-width: 40rem) {
    .occasions__card { transform: translateX(calc(-50% + var(--shift) * 96%)) rotateY(calc(var(--shift) * -18deg)) scale(calc(1 - var(--depth, 0) * 0.12)); }
  }
</style>

<script>
(() => {
  function setup(root) {
    const rail = root.querySelector('.occasions__rail');
    const cards = [...root.querySelectorAll('.occasions__card')];
    const dots = [...root.querySelectorAll('.occasions__dot')];

    const show = (active) => {
      cards.forEach((card, index) => {
        const shift = index - active;
        card.style.setProperty('--shift', shift);
        card.style.setProperty('--depth', Math.abs(shift));
        card.classList.toggle('is-active', shift === 0);
        card.setAttribute('aria-hidden', String(shift !== 0));
      });
      dots.forEach((dot, index) => {
        dot.classList.toggle('is-active', index === active);
        dot.setAttribute('aria-current', String(index === active));
      });
      rail.dataset.active = active;
    };

    cards.forEach((card, index) => card.addEventListener('click', () => show(index)));
    dots.forEach((dot) => dot.addEventListener('click', () => show(Number(dot.dataset.go))));

    let startX = null;
    rail.addEventListener('pointerdown', (event) => { startX = event.clientX; });
    rail.addEventListener('pointerup', (event) => {
      if (startX === null) return;
      const moved = event.clientX - startX;
      const now = Number(rail.dataset.active);
      if (Math.abs(moved) > 40) show(Math.max(0, Math.min(cards.length - 1, now + (moved < 0 ? 1 : -1))));
      startX = null;
    });

    show(Number(rail.dataset.active) || 0);
  }

  document.querySelectorAll('.occasions').forEach(setup);
})();
</script>

Live pass offer

A black section with a light headline and a badge-shaped form card over an animated aurora canvas.

Code React For Figma
<section class="promo">
  <div class="promo__copy">
    <p class="promo__eyebrow">Live passes</p>
    <h2 class="promo__title">Night Swim. <span class="promo__soft">On us.</span></h2>
    <p class="promo__text">A pass that moves: northern lights drift behind your photo all night long. Leave your email and the first thousand get the code free.</p>
    <p class="promo__fine">One code per email, while they last. Your address is only used to send it. <a class="promo__link" href="#">Privacy</a></p>
  </div>

  <form class="promo__card" action="#" onsubmit="return false">
    <canvas class="promo__canvas" role="img" aria-label="Aurora curtains and stars moving slowly behind the pass"></canvas>
    <span class="promo__slot" aria-hidden="true"></span>
    <img class="promo__photo" src="assets/aerial-beach.jpg" alt="Shoreline seen from above, framed in a circle" width="800" height="450">
    <label class="promo__label">
      <span class="promo__hint">Email for your code</span>
      <input class="promo__field" type="email" name="email" placeholder="Your email" autocomplete="email" required>
    </label>
    <span class="promo__pass">Night Swim · Live pass</span>
    <button class="promo__send" type="submit">Send my code</button>
  </form>
</section>

<style>
  .promo {
    display: grid;
    justify-items: center;
    gap: var(--space-xl);
    padding: calc(var(--space-xl) * 1.5) var(--edge);
    background: var(--night);
    color: var(--on-night);
    text-align: center;
  }
  .promo__copy { max-width: 30rem; }
  .promo__eyebrow {
    margin: 0 0 var(--space-m);
    color: var(--on-night-soft);
    font-size: var(--text-s);
  }
  .promo__title {
    margin: 0;
    font-size: var(--display-l);
    font-weight: var(--weight-light);
    line-height: 1.05;
    letter-spacing: var(--track-display);
  }
  .promo__soft { color: var(--on-night-soft); white-space: nowrap; }
  .promo__text {
    margin: var(--space-l) 0 0;
    color: var(--on-night-soft);
    font-size: var(--text-m);
    line-height: 1.6;
  }
  .promo__fine {
    margin: var(--space-l) 0 0;
    color: var(--on-night-soft);
    font-size: var(--text-xs);
    line-height: 1.7;
  }
  .promo__link {
    display: inline-block;
    padding: 12px 2px;
    margin: -12px 0;
    color: var(--on-night);
    text-underline-offset: 3px;
  }
  .promo__link:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }

  .promo__card {
    position: relative;
    display: grid;
    justify-items: center;
    align-content: end;
    gap: 10px;
    width: min(100%, 300px);
    aspect-ratio: 5 / 8;
    padding: 18px 18px 22px;
    overflow: hidden;
    border: var(--line) solid var(--line-night);
    border-radius: var(--radius-card);
    background: var(--night-raised);
    isolation: isolate;
  }
  .promo__canvas {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    color: var(--aurora-green);
    border-color: var(--aurora-pink);
    outline: 0 none var(--on-night);
  }
  .promo__slot {
    position: absolute;
    top: 12px;
    left: 50%;
    width: 22%;
    height: 7px;
    translate: -50% 0;
    border-radius: var(--pill);
    background: var(--night);
  }
  .promo__photo {
    width: 58%;
    height: auto;
    aspect-ratio: 1;
    margin-bottom: auto;
    align-self: start;
    border: 3px solid var(--on-night);
    border-radius: 50%;
    object-fit: cover;
    position: absolute;
    top: 13%;
  }
  .promo__label {
    display: grid;
    width: 100%;
  }
  .promo__hint {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .promo__field {
    width: 100%;
    min-height: 44px;
    border: 0;
    border-bottom: var(--line) solid var(--on-night-soft);
    background: transparent;
    color: var(--on-night);
    font: var(--weight-medium) var(--text-l) var(--font-body);
    letter-spacing: -0.01em;
    text-align: center;
    transition: border-color var(--quick) var(--ease);
  }
  .promo__field::placeholder { color: var(--on-night-soft); }
  .promo__field:focus {
    outline: none;
    border-bottom-color: var(--on-night);
  }
  .promo__pass {
    color: var(--on-night-soft);
    font-size: var(--text-s);
  }
  .promo__send {
    min-height: 44px;
    padding: 0 20px;
    border: 0;
    border-radius: var(--pill);
    background: var(--on-night);
    color: var(--ink);
    font: var(--weight-medium) var(--text-m) var(--font-body);
    cursor: pointer;
    transition: transform var(--quick) var(--ease), opacity var(--quick) var(--ease);
  }
  .promo__send:hover { opacity: 0.86; }
  .promo__send:active { transform: scale(0.96); }
  .promo__send:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

  @media (min-width: 52rem) {
    .promo {
      grid-template-columns: minmax(0, 30rem) auto;
      justify-content: center;
      align-items: center;
      column-gap: clamp(48px, 8vw, 120px);
      text-align: left;
    }
  }
</style>

<script>
(() => {
  const still = matchMedia('(prefers-reduced-motion: reduce)');

  function stars(count) {
    let seed = 7;
    const next = () => (seed = (seed * 16807) % 2147483647) / 2147483647;
    return Array.from({ length: count }, () => ({ x: next(), y: next(), r: 0.6 + next() * 1.1, p: next() * 6.28 }));
  }

  function curtain(context, width, height, seconds, colour, base, offset) {
    const step = 3;
    for (let x = -step; x < width + step; x += step) {
      const u = x / width;
      const top = height * (base + 0.08 * Math.sin(u * 5 + seconds * 0.5 + offset) + 0.04 * Math.sin(u * 11 - seconds * 0.8));
      const glow = context.createLinearGradient(0, top - height * 0.06, 0, top + height * 0.42);
      glow.addColorStop(0, 'transparent');
      glow.addColorStop(0.18, colour);
      glow.addColorStop(1, 'transparent');
      context.globalAlpha = 0.25 + 0.2 * Math.sin(u * 9 + seconds + offset) ** 2;
      context.fillStyle = glow;
      context.fillRect(x, top - height * 0.06, step + 1, height * 0.48);
    }
    context.globalAlpha = 1;
  }

  function paint(context, width, height, seconds, dots) {
    const style = getComputedStyle(context.canvas);
    context.clearRect(0, 0, width, height);
    context.globalCompositeOperation = 'lighter';
    curtain(context, width, height, seconds, style.color, 0.1, 0);
    curtain(context, width, height, seconds * 0.8, style.borderTopColor, 0.48, 2.1);
    context.globalCompositeOperation = 'source-over';
    context.fillStyle = style.outlineColor;
    for (const star of dots) {
      context.globalAlpha = 0.35 + 0.5 * Math.abs(Math.sin(seconds * 1.4 + star.p));
      context.beginPath();
      context.arc(star.x * width, star.y * height, star.r, 0, 6.29);
      context.fill();
    }
    context.globalAlpha = 1;
  }

  function run(canvas) {
    const context = canvas.getContext('2d');
    const dots = stars(70);
    let frame = 0;
    const fit = () => {
      const density = Math.min(2, devicePixelRatio || 1);
      canvas.width = canvas.clientWidth * density;
      canvas.height = canvas.clientHeight * density;
      context.setTransform(density, 0, 0, density, 0, 0);
      paint(context, canvas.clientWidth, canvas.clientHeight, performance.now() / 1000, dots);
    };
    const tick = (now) => {
      paint(context, canvas.clientWidth, canvas.clientHeight, now / 1000, dots);
      frame = requestAnimationFrame(tick);
    };
    new ResizeObserver(fit).observe(canvas);
    new IntersectionObserver(([entry]) => {
      cancelAnimationFrame(frame);
      if (entry.isIntersecting && !still.matches) frame = requestAnimationFrame(tick);
    }).observe(canvas);
  }

  document.querySelectorAll('.promo__canvas').forEach(run);
})();
</script>

Good-to-know list

White rounded rows of questions that open in place with a turning plus.

Code React For Figma
<section class="faq">
  <div class="faq__head">
    <h2 class="faq__title">Good to know.</h2>
    <p class="faq__text">How the pass knows it is on a lanyard, what the door sees, and where your details live.</p>
  </div>
  <div class="faq__list">
    <details class="faq__item" open>
      <summary class="faq__question">What does Lumo actually do?<span class="faq__plus" aria-hidden="true"></span></summary>
      <div class="faq__answer"><p class="faq__para">It shows one pass at a time, full screen, with your photo, name, role and a code the door can scan. Keep a pass for each night and swipe between them.</p></div>
    </details>
    <details class="faq__item">
      <summary class="faq__question">How does it know it is hanging?<span class="faq__plus" aria-hidden="true"></span></summary>
      <div class="faq__answer"><p class="faq__para">When the phone hangs upside down from its strap, the pass flips so it reads the right way up for whoever is in front of you.</p></div>
    </details>
    <details class="faq__item">
      <summary class="faq__question">Does it need a signal at the gate?<span class="faq__plus" aria-hidden="true"></span></summary>
      <div class="faq__answer"><p class="faq__para">No. Passes and their codes are kept on the phone, so a crowded field with no reception is fine.</p></div>
    </details>
    <details class="faq__item">
      <summary class="faq__question">Where are my details stored?<span class="faq__plus" aria-hidden="true"></span></summary>
      <div class="faq__answer"><p class="faq__para">Only on your phone and in your own backup. There is no account to make and nothing to sign in to.</p></div>
    </details>
  </div>
</section>

<style>
  .faq {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-xl);
    max-width: var(--page);
    margin: 0 auto;
    padding: var(--section-space) var(--edge);
  }
  .faq__title {
    margin: 0;
    font-size: var(--display-l);
    font-weight: var(--weight-light);
    line-height: 1.1;
    letter-spacing: var(--track-display);
  }
  .faq__text {
    max-width: 22rem;
    margin: var(--space-m) 0 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: 1.6;
  }
  .faq__list {
    display: grid;
    gap: 10px;
  }
  .faq__item {
    border-radius: var(--radius-card);
    background: var(--surface);
    transition: box-shadow var(--slow) var(--ease);
  }
  .faq__item[open] { box-shadow: var(--shadow-soft); }
  .faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-m);
    min-height: 64px;
    padding: 0 22px 0 24px;
    font-size: var(--text);
    font-weight: var(--weight-medium);
    line-height: 1.3;
    list-style: none;
    cursor: pointer;
  }
  .faq__question::-webkit-details-marker { display: none; }
  .faq__question:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 2px;
    border-radius: var(--radius-card);
  }
  .faq__plus {
    position: relative;
    flex: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--ground);
    transition: rotate var(--slow) var(--ease), background-color var(--quick) var(--ease);
  }
  .faq__plus::before,
  .faq__plus::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 12px;
    height: 1.5px;
    translate: -50% -50%;
    background: var(--ink);
  }
  .faq__plus::after { rotate: 90deg; }
  .faq__item[open] .faq__plus { rotate: 45deg; background: var(--ink); }
  .faq__item[open] .faq__plus::before,
  .faq__item[open] .faq__plus::after { background: var(--on-night); }
  .faq__question:hover .faq__plus { background: var(--line-soft); }
  .faq__item[open] .faq__question:hover .faq__plus { background: var(--ink); }
  .faq__answer {
    padding: 0 24px 22px;
    animation: faq-open var(--slow) var(--ease);
  }
  .faq__para {
    max-width: 34rem;
    margin: 0;
    color: var(--ink-soft);
    font-size: var(--text-m);
    line-height: 1.6;
  }
  @keyframes faq-open {
    from { opacity: 0; translate: 0 -6px; }
    to { opacity: 1; translate: 0 0; }
  }
  @media (min-width: 52rem) {
    .faq { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.4fr); }
  }
</style>

Style

  • --ground #f4f4f4
  • --surface #ffffff
  • --ink #111113
  • --ink-soft #6c6c72
  • --ink-faint #a1a1a6
  • --night #000000
  • --night-raised #141417
  • --frame-edge #2e2e34
  • --on-night #ffffff
  • --on-night-soft rgba(255, 255, 255, 0.6)
  • --sky #c4d3ea
  • --blush #f6dbe6
  • --peach #f7eadf
  • --glass rgba(244, 244, 244, 0.72)
  • --frost rgba(255, 255, 255, 0.55)
  • --line-soft rgba(17, 17, 19, 0.1)
  • --line-night rgba(255, 255, 255, 0.16)
  • --strap #d4726a
  • --strap-dark #a9504a
  • --link #007aff
  • --mesh-pink #f2559b
  • --mesh-peach #ffbf87
  • --mesh-rose #f7c6d9
  • --mesh-blue #2f6bf2
  • --mesh-violet #7a3cf0
  • --mesh-cyan #45c4e8
  • --mesh-green #6ccf8b
  • --mesh-teal #2e8f86
  • --aurora-green #2bff9a
  • --aurora-pink #ff3fd0

Type

  • Inter for headlines, stands in for the system face (SF Pro Display) set at weight 300 with tight negative tracking
  • Inter for running text and UI, stands in for the system face (SF Pro Text) at 400 and 500 in soft grey

Motion

  • Hero badges sway on their straps in an idle loop, each 4 to 6.5 s, ease-in-out, a few degrees around the top of the strap; hover swings one harder.
  • The hanging phone follows the pointer with a spring (stiffness 0.06, damping 0.9) and drifts in a slow sine when left alone; a button gives it a kick.
  • Carousel cards slide and tilt in 3D over 300 ms cubic-bezier(0.4, 0, 0.2, 1); the active pager dot stretches into a bar.
  • The live pass draws aurora curtains and twinkling stars on a canvas that runs only while on screen.
  • Buttons and rows change colour in 150 ms; accordion answers open over 300 ms.

Rules

  • Pale grey #f4f4f4 page with sections that flood to pure black or pale sky blue for one idea each.
  • Headlines are large, light (300) and tightly tracked, centred, often a full sentence ending in a full stop.
  • Running text is soft grey, 18 px, centred in a narrow measure under the headline.
  • Every object is a badge: a rounded card with fluid gradient art on top and a frosted name strip at the bottom, hung from a coral strap.
  • Buttons are black or white pills; secondary actions are small frosted round chips.
  • Badges float at small tilts with soft long shadows; nothing else carries a shadow or a rule.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap");

:root {
  /* Colour roles */
  --ground: #f4f4f4; /* page background, pale grey */
  --surface: #ffffff; /* cards, fields, QR tags */
  --ink: #111113; /* main text and black pills */
  --ink-soft: #6c6c72; /* running text and captions */
  --ink-faint: #a1a1a6; /* fine print, pager dots */
  --night: #000000; /* dark sections */
  --night-raised: #141417; /* phone frames and dark cards */
  --frame-edge: #2e2e34; /* metal rim of a phone frame */
  --on-night: #ffffff; /* text on dark */
  --on-night-soft: rgba(255, 255, 255, 0.6); /* second-level text on dark */
  --sky: #c4d3ea; /* pale blue section ground */
  --blush: #f6dbe6; /* pale pink wash behind the card carousel */
  --peach: #f7eadf; /* pale peach wash at the far end of the carousel */
  --glass: rgba(244, 244, 244, 0.72); /* translucent top bar */
  --frost: rgba(255, 255, 255, 0.55); /* frosted name strip on a badge */
  --line-soft: rgba(17, 17, 19, 0.1); /* hairline rules on light */
  --line-night: rgba(255, 255, 255, 0.16); /* hairline rules on dark */
  --strap: #d4726a; /* coral lanyard strap */
  --strap-dark: #a9504a; /* strap shadow edge and clip */
  --link: #007aff; /* focus rings and inline links */

  /* Badge artwork: soft fluid gradients, mixed in the parts */
  --mesh-pink: #f2559b; /* hot pink blob */
  --mesh-peach: #ffbf87; /* peach blob */
  --mesh-rose: #f7c6d9; /* pale rose field */
  --mesh-blue: #2f6bf2; /* cobalt blob */
  --mesh-violet: #7a3cf0; /* violet blob */
  --mesh-cyan: #45c4e8; /* cyan blob */
  --mesh-green: #6ccf8b; /* mint blob */
  --mesh-teal: #2e8f86; /* sea teal */
  --aurora-green: #2bff9a; /* aurora curtain on the live pass canvas */
  --aurora-pink: #ff3fd0; /* second aurora curtain */

  /* Type */
  --font-display: "Inter", -apple-system, system-ui, sans-serif; /* headlines, set light with tight tracking */
  --font-body: "Inter", -apple-system, system-ui, sans-serif; /* running text and UI */
  --display-xl: clamp(44px, 6.4vw, 88px); /* hero headline */
  --display-l: clamp(34px, 4.4vw, 60px); /* section headlines */
  --display-m: clamp(26px, 2.8vw, 40px); /* badge names, card titles */
  --text-l: 20px; /* lead paragraphs */
  --text: 18px; /* running text */
  --text-m: 16px; /* buttons and list rows */
  --text-s: 14px; /* captions and eyebrows */
  --text-xs: 12px; /* fine print, role lines on badges */
  --weight-light: 300; /* headlines */
  --weight-medium: 500; /* buttons and names */
  --track-display: -0.025em; /* headline tracking */

  /* Space */
  --edge: clamp(20px, 4vw, 48px); /* side padding of a section */
  --section-space: clamp(72px, 9vw, 128px); /* air above and below a section */
  --gap: 16px; /* between cards */
  --space-xs: 4px; /* hairline gaps */
  --space-s: 8px; /* inside chips */
  --space-m: 16px; /* between lines of a stack */
  --space-l: 24px; /* between blocks */
  --space-xl: 40px; /* between headline and content */
  --measure: 30rem; /* width of a centred paragraph */
  --page: 61rem; /* width of the centred content column */

  /* Shape */
  --radius-s: 8px; /* small tiles, fields */
  --radius-card: 24px; /* badges and cards */
  --radius-phone: 52px; /* phone frames */
  --pill: 999px; /* buttons and pager */
  --line: 1px; /* hairline rules and frames */
  --shadow-card: 0 28px 60px -24px rgba(17, 17, 19, 0.38), 0 2px 6px rgba(17, 17, 19, 0.08); /* soft lift under floating badges */
  --shadow-soft: 0 10px 30px -12px rgba(17, 17, 19, 0.25); /* buttons and small chips */

  /* Motion */
  --ease: cubic-bezier(0.4, 0, 0.2, 1); /* every transition */
  --quick: 150ms; /* hover and press */
  --slow: 300ms; /* carousel slides, accordion */
  --fade: 500ms; /* reveals and colour changes */
  --swing: 5s; /* one idle swing of a hanging badge */
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 var(--text)/1.6 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg, canvas { display: block; max-width: 100%; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

For your agent

Use the kitbash MCP server at https://kitbash.me/mcp. Call get_pack("swinging-lanyard-badges"), then get_component for the parts you need, and build my site in that style: keep its tokens and rules, replace the placeholder copy with mine.
How to connect