kitbash Sign in Connect agent

Cutting Mat Desk

Playful · 6 parts · product · landing · wordmark

One small object photographed on a green cutting mat on a wooden desk, under a giant cream wordmark, then lifted onto a dark walnut page with rounded glass cards and construction-line drawings. Suits a single-product launch that wants to feel crafted, a little tongue in cheek and very considered.

Get pack Remix

Whole page

Parts

Construction intro

An olive field where a ring is drawn as a vector path with anchors and handles, filled, then handed over to the wordmark.

Code React For Figma
<section class="intro" aria-label="Loading">
  <div class="intro__stage">
    <svg class="intro__drawing" viewBox="0 0 400 400" aria-hidden="true">
      <path class="intro__fill" fill-rule="evenodd" d="M200 70 C271.8 70 330 128.2 330 200 C330 271.8 271.8 330 200 330 C128.2 330 70 271.8 70 200 C70 128.2 128.2 70 200 70 Z M200 140 C233.1 140 260 166.9 260 200 C260 233.1 233.1 260 200 260 C166.9 260 140 233.1 140 200 C140 166.9 166.9 140 200 140 Z" />
      <path class="intro__path" pathLength="1" d="M200 70 C271.8 70 330 128.2 330 200 C330 271.8 271.8 330 200 330 C128.2 330 70 271.8 70 200 C70 128.2 128.2 70 200 70 Z" />
      <path class="intro__path intro__path--inner" pathLength="1" d="M200 140 C233.1 140 260 166.9 260 200 C260 233.1 233.1 260 200 260 C166.9 260 140 233.1 140 200 C140 166.9 166.9 140 200 140 Z" />
      <g class="intro__handles">
        <path d="M128.2 70 H271.8 M330 128.2 V271.8 M271.8 330 H128.2 M70 271.8 V128.2" />
        <path d="M166.9 140 H233.1 M260 166.9 V233.1 M233.1 260 H166.9 M140 233.1 V166.9" />
      </g>
      <g class="intro__anchors">
        <rect x="195" y="65" width="10" height="10" /><rect x="325" y="195" width="10" height="10" />
        <rect x="195" y="325" width="10" height="10" /><rect x="65" y="195" width="10" height="10" />
        <rect x="195" y="135" width="10" height="10" /><rect x="255" y="195" width="10" height="10" />
        <rect x="195" y="255" width="10" height="10" /><rect x="135" y="195" width="10" height="10" />
        <circle cx="128.2" cy="70" r="4" /><circle cx="271.8" cy="70" r="4" /><circle cx="330" cy="128.2" r="4" /><circle cx="330" cy="271.8" r="4" />
        <circle cx="271.8" cy="330" r="4" /><circle cx="128.2" cy="330" r="4" /><circle cx="70" cy="271.8" r="4" /><circle cx="70" cy="128.2" r="4" />
      </g>
    </svg>
    <p class="intro__brand">Norrow</p>
  </div>
  <div class="intro__meta">
    <span class="intro__label">Plotting a bearing</span>
    <span class="intro__bar"><span class="intro__bar-fill"></span></span>
    <span class="intro__label">N 51° 30′</span>
  </div>
</section>

<style>
  .intro {
    --intro-loop: 7s;
    position: relative;
    display: grid;
    place-items: center;
    min-height: clamp(460px, 56vw, 760px);
    padding: var(--space-xl) var(--edge) calc(var(--space-xl) + var(--space-l));
    overflow: hidden;
    background: var(--mat);
    color: var(--cream);
  }
  .intro__stage {
    position: relative;
    display: grid;
    place-items: center;
    width: min(400px, 78vw);
  }
  .intro__drawing {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .intro__fill {
    fill: var(--cream-line);
    transform-origin: 200px 200px;
    animation: intro-fill var(--intro-loop) var(--ease) -2.6s infinite;
  }
  .intro__path {
    fill: none;
    stroke: var(--signal);
    stroke-width: var(--dash);
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
    animation: intro-draw var(--intro-loop) var(--ease) -2.6s infinite;
  }
  .intro__path--inner {
    animation-name: intro-draw-inner;
  }
  .intro__handles path {
    fill: none;
    stroke: var(--signal);
    stroke-width: var(--rule);
    stroke-dasharray: 3 4;
  }
  .intro__anchors rect {
    fill: var(--mat);
    stroke: var(--signal);
    stroke-width: var(--dash);
  }
  .intro__anchors circle {
    fill: var(--signal);
  }
  .intro__handles,
  .intro__anchors {
    animation: intro-points var(--intro-loop) var(--ease) -2.6s infinite;
  }
  .intro__brand {
    margin: var(--space-m) 0 0;
    font-family: var(--font-display);
    font-size: var(--text-xl);
    font-weight: 800;
    letter-spacing: 0.02em;
    text-align: center;
    text-transform: uppercase;
    animation: intro-brand var(--intro-loop) var(--ease) -2.6s infinite;
  }
  .intro__meta {
    position: absolute;
    inset: auto var(--edge) var(--space-l);
    display: flex;
    align-items: center;
    gap: var(--space-m);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .intro__bar {
    flex: 1;
    height: var(--rule);
    background: var(--cream-line);
  }
  .intro__bar-fill {
    display: block;
    height: 100%;
    background: var(--cream);
    transform-origin: 0 50%;
    animation: intro-bar var(--intro-loop) linear -2.6s infinite;
  }
  .intro:not(.is-running) * {
    animation-play-state: paused;
  }

  @keyframes intro-draw {
    0% { stroke-dashoffset: 1; opacity: 1; }
    30%, 82% { stroke-dashoffset: 0; opacity: 1; }
    94%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }
  @keyframes intro-draw-inner {
    0%, 10% { stroke-dashoffset: 1; opacity: 1; }
    38%, 82% { stroke-dashoffset: 0; opacity: 1; }
    94%, 100% { stroke-dashoffset: 0; opacity: 0; }
  }
  @keyframes intro-points {
    0%, 8% { opacity: 0; }
    20%, 62% { opacity: 1; }
    74%, 100% { opacity: 0; }
  }
  @keyframes intro-fill {
    0%, 40% { opacity: 0; transform: rotate(-90deg) scale(0.92); }
    58%, 84% { opacity: 1; transform: rotate(0deg) scale(1); }
    96%, 100% { opacity: 0; transform: rotate(0deg) scale(1.06); }
  }
  @keyframes intro-brand {
    0%, 56% { opacity: 0; transform: translateY(12px); }
    66%, 86% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: none; }
  }
  @keyframes intro-bar {
    0% { transform: scaleX(0); }
    70%, 100% { transform: scaleX(1); }
  }
</style>

<script>
  (() => {
    const watch = new IntersectionObserver((entries) => {
      for (const entry of entries) entry.target.classList.toggle('is-running', entry.isIntersecting);
    });
    document.querySelectorAll('.intro').forEach((root) => watch.observe(root));
  })();
</script>

Mat-top hero

A drawn cutting mat on a wooden desk with a cut-out object, a giant wordmark, a glass caption card, a side tab and a dashed pill menu.

Code React For Figma
<section class="hero">
  <div class="hero__desk" aria-hidden="true">
    <div class="hero__mat">
      <div class="hero__ruler hero__ruler--side"></div>
      <div class="hero__ruler hero__ruler--foot"></div>
    </div>
    <svg class="hero__pencil" viewBox="0 0 400 24">
      <path class="hero__pencil-body" d="M60 2 H392 a4 4 0 0 1 4 4 V18 a4 4 0 0 1 -4 4 H60 Z" />
      <path class="hero__pencil-wood" d="M60 2 L12 12 L60 22 Z" />
      <path class="hero__pencil-lead" d="M24 9.5 L12 12 L24 14.5 Z" />
      <path class="hero__pencil-band" d="M354 2 H372 V22 H354 Z" />
    </svg>
  </div>

  <header class="hero__bar">
    <span class="hero__dot" aria-hidden="true"></span>
    <nav class="hero__nav" aria-label="Main">
      <a class="hero__link is-active" href="#">Intro</a>
      <a class="hero__link" href="#">Features</a>
      <a class="hero__link" href="#">Product</a>
      <a class="hero__link" href="#">Contact</a>
    </nav>
    <button class="hero__menu" type="button" aria-expanded="false">Menu</button>
  </header>
  <a class="hero__tab" href="#">Norrow-1 Model</a>

  <div class="hero__head">
    <p class="hero__tagline">Points north. Rarely argues.</p>
    <h1 class="hero__wordmark">Norrow</h1>
  </div>

  <div class="hero__object">
    <img class="hero__photo" src="assets/compass-equinoctial.jpg" alt="A brass pocket compass with an engraved octagonal dial" width="1200" height="1181" />
  </div>

  <p class="hero__lede">Built to hold a heading through fog, pockets and second thoughts. Norrow makes getting lost feel optional.</p>

  <aside class="hero__card">
    <p class="hero__card-title">Made by two people in a small brass workshop.</p>
    <p class="hero__card-note">The world's most overthought pocket compass.</p>
  </aside>

  <a class="hero__scroll" href="#"><span class="hero__scroll-ring" aria-hidden="true"></span>Scroll to continue</a>
</section>

<style>
  .hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    gap: var(--space-m) var(--gap);
    min-height: clamp(640px, 62.5vw, 900px);
    padding: var(--space-m) calc(var(--edge) + 44px) var(--space-l) var(--edge);
    overflow: hidden;
    isolation: isolate;
    color: var(--cream);
  }

  /* The desk, the mat and the pencil: drawn, fixed style. */
  .hero__desk {
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
      repeating-linear-gradient(94deg, transparent 0 26px, color-mix(in srgb, var(--desk-deep) 22%, transparent) 26px 28px, transparent 28px 61px),
      radial-gradient(120% 90% at 30% 20%, var(--desk), var(--desk-deep));
  }
  .hero__mat {
    position: absolute;
    left: 25%;
    top: -6%;
    width: 86%;
    height: 94%;
    border-radius: 18px;
    transform: rotate(-3deg);
    background:
      repeating-linear-gradient(90deg, var(--cream-line) 0 var(--rule), transparent var(--rule) var(--mat-cell)),
      repeating-linear-gradient(0deg, var(--cream-line) 0 var(--rule), transparent var(--rule) var(--mat-cell)),
      radial-gradient(90% 80% at 40% 40%, var(--mat), var(--mat-deep));
    background-position: 48px 0, 0 calc(100% - 48px), 0 0;
    box-shadow: var(--shadow-object);
  }
  .hero__ruler {
    position: absolute;
    display: flex;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--cream-soft);
  }
  .hero__ruler--side {
    left: 10px;
    top: 0;
    bottom: 48px;
    flex-direction: column-reverse;
    justify-content: space-between;
  }
  .hero__ruler--foot {
    left: 48px;
    right: 0;
    bottom: 14px;
    justify-content: space-between;
  }
  .hero__pencil {
    position: absolute;
    left: -4%;
    bottom: 16%;
    width: clamp(180px, 26vw, 380px);
    transform: rotate(-32deg);
    filter: drop-shadow(10px 14px 8px var(--shade));
  }
  .hero__pencil-body { fill: var(--mat-deep); }
  .hero__pencil-wood { fill: var(--paper); }
  .hero__pencil-lead { fill: var(--night); }
  .hero__pencil-band { fill: var(--signal); }

  /* Top bar */
  .hero__bar {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
  }
  .hero__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--cream);
  }
  .hero__nav {
    display: flex;
    gap: var(--space-m);
  }
  .hero__link,
  .hero__menu,
  .hero__scroll {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: inherit;
    font: 500 var(--text-xs)/1.1 var(--font-display);
    text-transform: uppercase;
    text-decoration: none;
  }
  .hero__link {
    justify-content: center;
    min-width: 44px;
    padding-inline: 2px;
    background: linear-gradient(90deg, currentColor 50%, transparent 50%) 0 calc(50% + 10px) / 4px var(--rule) repeat-x;
    background-size: 4px 0;
    transition: background-size var(--quick) var(--ease-plain);
  }
  .hero__link.is-active,
  .hero__link:hover,
  .hero__link:focus-visible {
    background-size: 4px var(--rule);
  }
  .hero__menu {
    display: none;
    gap: var(--space-xs);
    padding: 0 var(--space-m);
    border: var(--dash) dashed var(--cream);
    border-radius: var(--radius-pill);
    background: transparent;
    cursor: pointer;
  }
  .hero__menu::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
  }
  .hero__menu.is-open::before {
    background: var(--signal);
  }
  .hero__tab {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    align-items: center;
    gap: var(--space-s);
    width: 44px;
    padding: var(--space-m) 0;
    writing-mode: vertical-rl;
    background: var(--cream);
    color: var(--night);
    font: 500 var(--text-xs)/44px var(--font-display);
    text-transform: uppercase;
    text-decoration: none;
    transition: padding-block var(--time) var(--ease-plain);
  }
  .hero__tab::before {
    content: "";
    width: 6px;
    height: 6px;
    margin-inline: auto;
    border-radius: 50%;
    background: currentColor;
  }
  .hero__tab:hover,
  .hero__tab:focus-visible {
    padding-block: var(--space-m) var(--space-xl);
  }

  /* Wordmark and copy */
  .hero__head {
    grid-column: 1 / -1;
    position: relative;
    z-index: 2;
  }
  .hero__tagline {
    margin: 0 0 0.2em 0.35em;
    padding-left: 30%;
    font-size: var(--text-m);
    font-weight: 500;
    line-height: 1.1;
    text-transform: uppercase;
  }
  .hero__wordmark {
    margin: 0;
    font-family: var(--font-display);
    font-size: var(--display);
    font-weight: 800;
    line-height: 0.8;
    letter-spacing: -0.01em;
    text-transform: uppercase;
  }

  .hero__object {
    --lean-x: 0px;
    --lean-y: 0px;
    position: absolute;
    left: 50%;
    top: 54%;
    width: clamp(220px, 27vw, 400px);
    aspect-ratio: 1;
    margin: calc(clamp(220px, 27vw, 400px) / -2) 0 0 calc(clamp(220px, 27vw, 400px) / -2);
    border-radius: 50%;
    overflow: hidden;
    box-shadow: calc(var(--lean-x) * -1.4) calc(30px - var(--lean-y) * 1.4) 44px -8px var(--shade);
    transform: translate(var(--lean-x), var(--lean-y));
    transition: transform var(--time) var(--ease-plain), box-shadow var(--time) var(--ease-plain);
    animation: hero-float 6s ease-in-out infinite;
  }
  .hero__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 47% 36%;
    transform: scale(1.62);
    transform-origin: 47% 34%;
  }
  @keyframes hero-float {
    50% { translate: 0 -6px; rotate: 2deg; }
  }

  .hero__lede {
    grid-column: 2;
    grid-row: 3;
    align-self: center;
    justify-self: end;
    position: relative;
    z-index: 2;
    max-width: 20ch;
    margin: 0;
    font-size: clamp(var(--text-m), 2vw, 28.5px);
    font-weight: 500;
    line-height: 1.26;
    text-shadow: 0 2px 18px var(--mat-deep);
  }

  .hero__card {
    grid-column: 1;
    grid-row: 4;
    position: relative;
    z-index: 2;
    display: grid;
    gap: var(--space-xl);
    width: min(270px, 100%);
    padding: var(--space-m);
    border: var(--rule) solid var(--cream-line);
    background: var(--cream-veil);
    backdrop-filter: blur(14px);
  }
  .hero__card-title {
    margin: 0;
    font-size: var(--text-l);
    font-weight: 500;
    line-height: 1.12;
    text-transform: uppercase;
  }
  .hero__card-note {
    margin: 0;
    padding-top: var(--space-m);
    border-top: var(--rule) dotted var(--cream);
    font-size: var(--text-s);
    font-weight: 500;
    line-height: 1.4;
    text-align: right;
  }

  .hero__scroll {
    grid-column: 2;
    grid-row: 4;
    align-self: end;
    gap: var(--space-s);
    position: relative;
    z-index: 2;
  }
  .hero__scroll-ring {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border: var(--rule) dashed currentColor;
    border-radius: 50%;
  }
  .hero__scroll-ring::after {
    content: "";
    width: 5px;
    height: 5px;
    margin-top: -3px;
    border: solid currentColor;
    border-width: 0 var(--rule) var(--rule) 0;
    transform: rotate(45deg);
  }

  @media (max-width: 720px) {
    .hero {
      grid-template-columns: minmax(0, 1fr);
      grid-template-rows: auto auto auto 1fr auto;
      min-height: 820px;
      padding-right: var(--edge);
    }
    .hero__nav,
    .hero__tab { display: none; }
    .hero__menu { display: inline-flex; }
    .hero__nav.is-open {
      position: absolute;
      top: 70px;
      right: var(--edge);
      z-index: 5;
      display: grid;
      gap: 0;
      min-width: 180px;
      padding: var(--space-s) var(--space-m);
      border-radius: var(--radius-s);
      background: var(--cream);
      color: var(--night);
    }
    .hero__tagline { padding-left: 0; margin-left: 0.1em; }
    .hero__wordmark { font-size: clamp(64px, 19vw, 140px); }
    .hero__mat { left: -10%; top: 30%; width: 120%; height: 80%; }
    .hero__lede { grid-column: 1; grid-row: 3; justify-self: start; max-width: 22ch; }
    .hero__object { top: 55%; width: 200px; margin: -100px 0 0 -100px; }
    .hero__card { grid-row: 5; width: min(240px, 70%); gap: var(--space-m); }
    .hero__card-title { font-size: var(--text-m); }
    .hero__scroll { display: none; }
    .hero__pencil { bottom: auto; top: 46%; left: auto; right: -30%; }
  }

  @media (prefers-reduced-motion: reduce) {
    .hero__object { animation: none; transform: none; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    document.querySelectorAll('.hero').forEach((root) => {
      for (const ruler of root.querySelectorAll('.hero__ruler')) {
        const count = ruler.classList.contains('hero__ruler--side') ? 16 : 24;
        for (let mark = 0; mark <= count; mark += 1) {
          const label = document.createElement('span');
          label.textContent = mark * 10;
          ruler.append(label);
        }
      }
      const object = root.querySelector('.hero__object');
      root.addEventListener('pointermove', (event) => {
        if (still.matches) return;
        const box = root.getBoundingClientRect();
        const x = (event.clientX - box.left) / box.width - 0.5;
        const y = (event.clientY - box.top) / box.height - 0.5;
        object.style.setProperty('--lean-x', `${(x * 24).toFixed(1)}px`);
        object.style.setProperty('--lean-y', `${(y * 18).toFixed(1)}px`);
      });
      root.addEventListener('pointerleave', () => {
        object.style.setProperty('--lean-x', '0px');
        object.style.setProperty('--lean-y', '0px');
      });
      const menu = root.querySelector('.hero__menu');
      const nav = root.querySelector('.hero__nav');
      menu.addEventListener('click', () => {
        const open = !nav.classList.contains('is-open');
        nav.classList.toggle('is-open', open);
        menu.classList.toggle('is-open', open);
        menu.setAttribute('aria-expanded', String(open));
      });
    });
  })();
</script>

Tilting statement

Dark walnut band with caps on the left, a round object tilting with scroll in the middle and words lighting up on the right.

Code React For Figma
<section class="statement">
  <h2 class="statement__caps statement__words">More than<br />a compass.</h2>
  <div class="statement__object">
    <img class="statement__photo" src="assets/compass-field.jpg" alt="A field compass with a white dial set in an open wooden case" width="800" height="533" />
  </div>
  <p class="statement__copy statement__words">Norrow is not just a needle in a box. It is four winters of tuning, a jewelled pivot and a dial you can read by candle.</p>
  <p class="statement__foot">Hand-finished <em class="statement__note">in brass and walnut</em></p>
</section>

<style>
  .statement {
    --tilt-x: 0deg;
    --tilt-y: 0deg;
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: var(--gap);
    min-height: clamp(560px, 50vw, 760px);
    padding: var(--section-space) var(--edge);
    background: var(--page);
    color: var(--cream);
    perspective: 1200px;
  }
  .statement__caps {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.04;
    text-transform: uppercase;
    justify-self: end;
  }
  .statement__copy {
    max-width: 17ch;
    margin: 0;
    font-size: var(--text-m);
    font-weight: 500;
    line-height: 1.33;
  }
  .statement__word {
    color: var(--cream-soft);
    transition: color var(--slow) var(--ease-plain);
    transition-delay: calc(var(--order) * 60ms);
  }
  .statement.is-seen .statement__word {
    color: var(--cream);
  }
  .statement__object {
    justify-self: center;
    width: min(100%, 420px);
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    box-shadow: 0 40px 60px -20px var(--shade), inset 0 0 0 var(--rule) var(--cream-line);
    transform: rotateX(var(--tilt-x)) rotateY(var(--tilt-y));
    transition: transform 120ms linear;
  }
  .statement__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 42% 50%;
    transform: translate(8%, -17%) scale(2.9);
    transform-origin: 42% 67%;
  }
  .statement__foot {
    position: absolute;
    right: var(--edge);
    bottom: var(--space-l);
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    color: var(--cream-soft);
  }
  .statement__note {
    font-family: var(--font-note);
    font-size: var(--text-s);
    text-transform: none;
  }

  @media (max-width: 720px) {
    .statement {
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
      text-align: center;
      gap: var(--space-l);
    }
    .statement__caps { justify-self: center; }
    .statement__object { width: min(80vw, 320px); }
    .statement__copy { max-width: 26ch; }
    .statement__foot { position: static; }
  }

  @media (prefers-reduced-motion: reduce) {
    .statement__word { color: var(--cream); transition: none; }
    .statement__object { transform: none; }
  }
</style>

<script>
  (() => {
    const still = matchMedia('(prefers-reduced-motion: reduce)');
    const seen = new IntersectionObserver((entries) => {
      for (const entry of entries) {
        if (!entry.isIntersecting) continue;
        entry.target.classList.add('is-seen');
        seen.unobserve(entry.target);
      }
    }, { threshold: 0.15 });

    document.querySelectorAll('.statement').forEach((root) => {
      let order = 0;
      for (const block of root.querySelectorAll('.statement__words')) {
        const walker = document.createTreeWalker(block, NodeFilter.SHOW_TEXT);
        const texts = [];
        while (walker.nextNode()) texts.push(walker.currentNode);
        for (const text of texts) {
          const parts = text.textContent.split(/(\s+)/);
          const bits = document.createDocumentFragment();
          for (const part of parts) {
            if (!part.trim()) { bits.append(part); continue; }
            const word = document.createElement('span');
            word.className = 'statement__word';
            word.style.setProperty('--order', order++);
            word.textContent = part;
            bits.append(word);
          }
          text.replaceWith(bits);
        }
      }
      seen.observe(root);

      const object = root.querySelector('.statement__object');
      let frame = 0;
      const tilt = () => {
        frame = 0;
        if (still.matches) return;
        const box = root.getBoundingClientRect();
        const view = innerHeight || 720;
        const progress = Math.min(1, Math.max(0, (view - box.top) / (view + box.height)));
        root.style.setProperty('--tilt-x', `${((progress - 0.5) * 50).toFixed(2)}deg`);
        root.style.setProperty('--tilt-y', `${((0.5 - progress) * 30).toFixed(2)}deg`);
      };
      const ask = () => { if (!frame) frame = requestAnimationFrame(tilt); };
      new IntersectionObserver(([entry]) => {
        if (entry.isIntersecting) { addEventListener('scroll', ask, { passive: true }); ask(); }
        else removeEventListener('scroll', ask);
      }).observe(object);
    });
  })();
</script>

Glass feature cards

Three rounded translucent cards with monotone photos that warm to colour on hover, mono index labels and short copy.

Code React For Figma
<section class="features">
  <header class="features__head">
    <p class="features__kicker">Features</p>
    <h2 class="features__title">Three reasons it never sulks.</h2>
  </header>
  <div class="features__grid">
    <article class="features__card" tabindex="0">
      <span class="features__index">01 / Hold</span>
      <div class="features__frame">
        <img class="features__photo" style="object-position: 50% 12%" src="assets/compass-watch.jpg" alt="A silver pocket watch with a compass dial and a long chain" width="679" height="800" />
      </div>
      <h3 class="features__name">Settles in two seconds</h3>
      <p class="features__text">A damped needle that stops swinging before you stop walking.</p>
    </article>
    <article class="features__card" tabindex="0">
      <span class="features__index">02 / Read</span>
      <div class="features__frame">
        <img class="features__photo" src="assets/sextant-set.jpg" alt="A brass sextant, telescope and boxed compass on soft leather" width="800" height="574" />
      </div>
      <h3 class="features__name">A dial for bad light</h3>
      <p class="features__text">Deep-cut numerals that catch any glow, from dusk to a phone screen.</p>
    </article>
    <article class="features__card" tabindex="0">
      <span class="features__index">03 / Keep</span>
      <div class="features__frame">
        <img class="features__photo" style="object-position: 50% 18%" src="assets/compass-equinoctial.jpg" alt="An engraved brass compass dial seen from above" width="1200" height="1181" />
      </div>
      <h3 class="features__name">Outlives its owner</h3>
      <p class="features__text">Solid brass, one screw, no battery. Hand it on, not in.</p>
    </article>
  </div>
</section>

<style>
  .features {
    padding: var(--section-space) var(--edge);
    background: var(--page);
    color: var(--cream);
  }
  .features__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: var(--space-s) var(--gap);
    margin-bottom: var(--space-l);
  }
  .features__kicker,
  .features__index {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--cream-soft);
  }
  .features__kicker::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: var(--space-s);
    border-radius: 50%;
    background: var(--signal);
    vertical-align: 2px;
  }
  .features__title {
    margin: 0;
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.05;
    text-transform: uppercase;
  }
  .features__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--gap);
  }
  .features__card {
    display: grid;
    grid-template-rows: auto auto auto 1fr;
    gap: var(--space-s);
    padding: var(--space-s) var(--space-s) var(--space-l);
    border: var(--rule) solid transparent;
    border-radius: var(--radius-card);
    background: var(--cream-veil);
    transition: border-color var(--border-time) var(--ease-plain);
    outline: none;
  }
  .features__card:hover,
  .features__card:focus-visible {
    border-color: var(--cream-line);
  }
  .features__index {
    padding: var(--space-s) var(--space-m) 0;
  }
  .features__frame {
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-frame);
    overflow: hidden;
    background: var(--paper);
  }
  .features__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    mix-blend-mode: multiply;
    filter: grayscale(1) contrast(1.15);
    transform: scale(1.02);
    transition: filter var(--slow) var(--ease-plain), transform var(--time) var(--ease-plain);
  }
  .features__card:hover .features__photo,
  .features__card:focus-visible .features__photo {
    filter: grayscale(0) contrast(1);
    transform: scale(1.06);
  }
  .features__name {
    margin: var(--space-s) var(--space-m) 0;
    font-size: var(--text-l);
    font-weight: 500;
    line-height: 1.2;
  }
  .features__text {
    margin: 0 var(--space-m);
    max-width: 30ch;
    font-size: var(--text-s);
    line-height: 1.6;
    color: var(--cream-soft);
  }

  @media (max-width: 860px) {
    .features__grid { grid-template-columns: minmax(0, 1fr); }
    .features__card { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1fr); grid-template-rows: auto auto 1fr; padding: var(--space-s); }
    .features__frame { grid-row: 1 / -1; aspect-ratio: 1; }
    .features__index { padding: var(--space-s) 0 0; }
    .features__name, .features__text { margin-inline: 0; }
  }
  @media (max-width: 480px) {
    .features__card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; padding-bottom: var(--space-m); }
    .features__frame { grid-row: auto; aspect-ratio: 4 / 3; }
    .features__index, .features__name, .features__text { padding-inline: var(--space-s); }
  }
</style>

Measured spec sheet

A light rounded panel with a construction drawing of the object and a monospace spec table; each row lights its dimension.

Code React For Figma
<section class="specs">
  <div class="specs__panel">
    <figure class="specs__figure">
      <svg class="specs__drawing" viewBox="0 0 420 420" role="img" aria-label="Measured drawing of the compass from above and from the side">
        <g class="specs__grid">
          <path d="M0 60 H420 M0 120 H420 M0 180 H420 M0 240 H420 M0 300 H420 M0 360 H420 M60 0 V420 M120 0 V420 M180 0 V420 M240 0 V420 M300 0 V420 M360 0 V420" />
        </g>
        <g class="specs__body">
          <circle cx="210" cy="170" r="120" />
          <circle cx="210" cy="170" r="96" />
          <path d="M210 90 L222 170 L210 250 L198 170 Z" />
          <rect x="90" y="340" width="240" height="40" rx="10" />
          <path d="M108 340 V326 H312 V340" />
        </g>
        <g class="specs__dim" data-dim="diameter">
          <path d="M90 30 H330 M90 22 V38 M330 22 V38" />
          <text x="210" y="20">Ø 52</text>
        </g>
        <g class="specs__dim" data-dim="depth">
          <path d="M370 326 V380 M362 326 H378 M362 380 H378" />
          <text x="384" y="357">14</text>
        </g>
        <g class="specs__dim" data-dim="dial">
          <path d="M114 170 H306" />
          <rect x="109" y="165" width="10" height="10" /><rect x="301" y="165" width="10" height="10" />
          <text x="210" y="196">Ø 42</text>
        </g>
        <g class="specs__dim" data-dim="needle">
          <path d="M210 90 V250" />
          <circle cx="210" cy="170" r="5" />
          <text x="226" y="112">38</text>
        </g>
      </svg>
      <figcaption class="specs__caption">Fig. 1 — Norrow-1, top and side, in millimetres</figcaption>
    </figure>

    <div class="specs__sheet">
      <p class="specs__kicker">Product / Norrow-1</p>
      <h2 class="specs__title">Measured twice, cut once.</h2>
      <table class="specs__table">
        <tbody>
          <tr class="specs__row is-lit" data-dim="diameter" tabindex="0"><th scope="row">Case diameter</th><td>52.0 mm</td></tr>
          <tr class="specs__row" data-dim="depth" tabindex="0"><th scope="row">Depth, lid shut</th><td>14.0 mm</td></tr>
          <tr class="specs__row" data-dim="dial" tabindex="0"><th scope="row">Dial</th><td>42.0 mm</td></tr>
          <tr class="specs__row" data-dim="needle" tabindex="0"><th scope="row">Needle, on sapphire</th><td>38.0 mm</td></tr>
          <tr class="specs__row" tabindex="0"><th scope="row">Settling time</th><td>2.0 s</td></tr>
          <tr class="specs__row" tabindex="0"><th scope="row">Weight</th><td>61 g</td></tr>
        </tbody>
      </table>
    </div>
  </div>
</section>

<style>
  .specs {
    padding: var(--section-space) var(--edge);
    background: var(--page);
  }
  .specs__panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: var(--space-l) var(--space-xl);
    align-items: center;
    padding: clamp(var(--space-m), 4vw, var(--space-xl));
    border-radius: var(--radius-card);
    background: var(--paper);
    color: var(--night);
  }
  .specs__figure {
    margin: 0;
  }
  .specs__drawing {
    width: 100%;
    height: auto;
    overflow: visible;
  }
  .specs__grid path {
    fill: none;
    stroke: var(--night);
    stroke-opacity: 0.08;
    stroke-width: var(--rule);
  }
  .specs__body circle,
  .specs__body rect,
  .specs__body path {
    fill: none;
    stroke: var(--night);
    stroke-width: var(--dash);
  }
  .specs__body circle + circle {
    stroke-dasharray: 4 5;
  }
  .specs__dim path,
  .specs__dim rect,
  .specs__dim circle {
    fill: var(--paper);
    stroke: var(--night);
    stroke-opacity: 0.45;
    stroke-width: var(--rule);
    transition: stroke var(--quick) var(--ease-plain), stroke-opacity var(--quick) var(--ease-plain);
  }
  .specs__dim text {
    fill: var(--night);
    fill-opacity: 0.55;
    font-family: var(--font-mono);
    font-size: 13px;
    text-anchor: middle;
    transition: fill var(--quick) var(--ease-plain), fill-opacity var(--quick) var(--ease-plain);
  }
  .specs__dim.is-lit path,
  .specs__dim.is-lit rect,
  .specs__dim.is-lit circle {
    stroke: var(--signal);
    stroke-opacity: 1;
    stroke-width: var(--dash);
  }
  .specs__dim.is-lit text {
    fill: var(--signal);
    fill-opacity: 1;
  }
  .specs__caption,
  .specs__kicker {
    margin: var(--space-s) 0 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.6;
  }
  .specs__kicker { margin: 0 0 var(--space-s); }
  .specs__title {
    margin: 0 0 var(--space-l);
    font-size: var(--text-xl);
    font-weight: 500;
    line-height: 1.05;
    text-transform: uppercase;
  }
  .specs__table {
    width: 100%;
    border-collapse: collapse;
    font-family: var(--font-mono);
    font-size: var(--text-s);
  }
  .specs__row {
    border-top: var(--rule) dotted var(--night);
    cursor: default;
    outline: none;
    transition: background-color var(--quick) var(--ease-plain);
  }
  .specs__row:last-child {
    border-bottom: var(--rule) dotted var(--night);
  }
  .specs__row th,
  .specs__row td {
    height: 44px;
    padding: 0 var(--space-s);
    font-weight: 400;
    text-align: left;
  }
  .specs__row td {
    text-align: right;
    white-space: nowrap;
  }
  .specs__row.is-lit {
    background: var(--night);
    color: var(--paper);
  }
  .specs__row.is-lit td {
    color: var(--signal);
  }

  @media (max-width: 760px) {
    .specs__panel { grid-template-columns: minmax(0, 1fr); }
    .specs__figure { max-width: 360px; justify-self: center; }
  }
</style>

<script>
  (() => {
    document.querySelectorAll('.specs').forEach((root) => {
      const rows = [...root.querySelectorAll('.specs__row')];
      const light = (row) => {
        rows.forEach((other) => other.classList.toggle('is-lit', other === row));
        const dim = row.dataset.dim;
        root.querySelectorAll('.specs__dim').forEach((group) => group.classList.toggle('is-lit', group.dataset.dim === dim));
      };
      rows.forEach((row) => {
        row.addEventListener('pointerenter', () => light(row));
        row.addEventListener('focus', () => light(row));
      });
      light(rows[0]);
    });
  })();
</script>

Mat-grid sign-up

A green gridded band with a caps ask, a dashed pill field and a pulsing button with a loading state.

Code React For Figma
<section class="signup">
  <div class="signup__inner">
    <p class="signup__kicker">Batch 04 / 300 pieces</p>
    <h2 class="signup__title">Take the first bearing.</h2>
    <p class="signup__text">One letter when the next batch leaves the bench. Nothing else, we promise on the needle.</p>
    <form class="signup__form" action="#" novalidate>
      <label class="signup__label" for="signup-email">Email address</label>
      <input class="signup__field" id="signup-email" type="email" name="email" placeholder="you@harbour.town" autocomplete="email" required />
      <button class="signup__button" type="submit"><span class="signup__button-text">Notify me</span><span class="signup__dots" aria-hidden="true"><i></i><i></i><i></i></span></button>
    </form>
    <p class="signup__done" role="status" hidden>You are on the list. Keep heading north.</p>
  </div>
  <p class="signup__fine">© 2027 Norrow Instruments · Bench 2, Quay Street</p>
</section>

<style>
  .signup {
    position: relative;
    display: grid;
    align-content: center;
    min-height: clamp(520px, 46vw, 680px);
    padding: var(--section-space) var(--edge) var(--space-xl);
    background:
      repeating-linear-gradient(90deg, var(--cream-line) 0 var(--rule), transparent var(--rule) var(--mat-cell)),
      repeating-linear-gradient(0deg, var(--cream-line) 0 var(--rule), transparent var(--rule) var(--mat-cell)),
      radial-gradient(80% 90% at 50% 40%, var(--mat), var(--mat-deep));
    color: var(--cream);
  }
  .signup__inner {
    display: grid;
    justify-items: center;
    gap: var(--space-m);
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
  }
  .signup__kicker,
  .signup__fine {
    margin: 0;
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .signup__title {
    margin: 0;
    font-size: clamp(40px, 7.4vw, 104px);
    font-weight: 800;
    line-height: 0.88;
    text-transform: uppercase;
    text-wrap: balance;
  }
  .signup__text {
    max-width: 34ch;
    margin: 0;
    font-weight: 300;
  }
  .signup__form {
    display: flex;
    gap: var(--space-s);
    width: min(520px, 100%);
    margin-top: var(--space-s);
  }
  .signup__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .signup__field {
    flex: 1;
    min-width: 0;
    min-height: 52px;
    padding: 0 var(--space-m);
    border: var(--dash) dashed var(--cream);
    border-radius: var(--radius-pill);
    background: var(--cream-veil);
    color: var(--cream);
    font: 400 var(--text-m) var(--font-body);
    outline: none;
    transition: border-color var(--border-time) var(--ease-plain);
  }
  .signup__field::placeholder { color: var(--cream-soft); }
  .signup__field:focus { border-color: var(--signal); border-style: solid; }
  .signup__button {
    position: relative;
    display: inline-grid;
    place-items: center;
    min-width: 148px;
    min-height: 52px;
    padding: 0 var(--space-l);
    border: 0;
    border-radius: var(--radius-pill);
    background: var(--cream);
    color: var(--night);
    font: 500 var(--text-xs) var(--font-display);
    text-transform: uppercase;
    cursor: pointer;
    animation: signup-pulse 2s var(--ease-plain) infinite;
    transition: transform var(--time) var(--ease-plain);
  }
  .signup__button:hover,
  .signup__button:focus-visible { transform: scale(1.04); }
  .signup__button-text::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: var(--space-s);
    border-radius: 50%;
    background: var(--signal);
    vertical-align: 1px;
  }
  .signup__dots {
    position: absolute;
    display: none;
    gap: 5px;
  }
  .signup__dots i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--signal);
    animation: signup-loading 0.9s var(--ease-plain) infinite;
  }
  .signup__dots i:nth-child(2) { animation-delay: 0.15s; }
  .signup__dots i:nth-child(3) { animation-delay: 0.3s; }
  .signup__button.is-loading .signup__button-text { visibility: hidden; }
  .signup__button.is-loading .signup__dots { display: flex; }
  .signup__field.is-wrong { border-color: var(--signal); }
  .signup__done {
    margin: var(--space-s) 0 0;
    padding: var(--space-s) var(--space-m);
    border: var(--dash) dashed var(--cream);
    border-radius: var(--radius-pill);
    font-weight: 500;
  }
  .signup__fine {
    margin-top: var(--space-xl);
    text-align: center;
    color: var(--cream-soft);
  }

  @keyframes signup-pulse {
    0% { box-shadow: 0 0 0 0 var(--signal-glow); }
    70%, 100% { box-shadow: 0 0 0 16px transparent; }
  }
  @keyframes signup-loading {
    0%, 100% { opacity: 0.25; transform: translateY(0); }
    50% { opacity: 1; transform: translateY(-4px); }
  }

  @media (max-width: 520px) {
    .signup__form { flex-direction: column; }
  }
  @media (prefers-reduced-motion: reduce) {
    .signup__button { animation: none; }
  }
</style>

<script>
  (() => {
    document.querySelectorAll('.signup').forEach((root) => {
      const form = root.querySelector('.signup__form');
      const field = root.querySelector('.signup__field');
      const button = root.querySelector('.signup__button');
      const done = root.querySelector('.signup__done');
      form.addEventListener('submit', (event) => {
        event.preventDefault();
        const fine = field.validity.valid && field.value.trim();
        field.classList.toggle('is-wrong', !fine);
        if (!fine) { field.focus(); return; }
        button.classList.add('is-loading');
        setTimeout(() => {
          button.classList.remove('is-loading');
          form.hidden = true;
          done.hidden = false;
        }, 1400);
      });
    });
  })();
</script>

Style

  • --page #201914
  • --night #100904
  • --umber #382416
  • --desk #7a5434
  • --desk-deep #3d2a1b
  • --cream #ffedd7
  • --cream-soft #ffedd580
  • --cream-veil #ffedd11c
  • --cream-line #ffedd74d
  • --paper #f6e0c6
  • --mat #445231
  • --mat-deep #36421f
  • --signal #dc5000
  • --signal-glow #dc500033
  • --shade #0c0a0aeb

Type

  • Outfit for wordmark, headlines and running text, stands in for the site's geometric display grotesk (a variable Halyard-like face) set heavy for the wordmark and light for copy
  • DM Mono for labels, numbers and spec rows, stands in for the site's small monospace for data and captions
  • Literata for rare italic aside, stands in for the site's occasional book serif

Motion

  • The intro draws a ring as a vector construction: dashed paths, orange anchor squares and handles, then a cream sweep fills it and the field fades, over about 4.2 s with ease-out, looping while on screen.
  • The hero object floats on the mat and leans toward the pointer with a 300 ms ease transform; its drop shadow slides the other way.
  • The statement object tilts in 3D as its section scrolls through the screen, while its words light from half cream to full cream one after another, 60 ms apart.
  • Cards lift their photo from a warm monotone to full colour with a 500 ms filter transition and brighten their border in 250 ms.
  • Spec rows light the matching dimension on the drawing in orange with a 180 ms fade.
  • The sign-up button pulses an orange halo every 2 s and shows three loading dots before its thank-you.

Rules

  • One real object is the hero: a cut-out photograph on a drawn green cutting mat with a ruler edge, on a wooden desk.
  • The brand is set huge in heavy geometric caps, cream, top left, overlapping the scene.
  • Small text is caps at 12 px with medium weight; running text is light and generous at 18 px.
  • Dark sections are walnut brown, never black, and all text on them is warm cream with half-cream for the second level.
  • Cards and panels have 36 px corners; frames inside them 22.5 px; buttons and the menu are pills with a dashed border.
  • Construction graphics (dashed outlines, square anchors, handles) in signal orange are the decoration, borrowed from vector drawing tools.
  • Numbers and specs are set in a monospace and read like measurements on the mat.
base.css
/* Fonts: free Google Fonts that stand in for the site's faces. */
@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;800&family=DM+Mono:wght@400;500&family=Literata:ital,opsz,wght@1,7..72,400&display=swap");

:root {
  /* Colours */
  --page: #201914; /* page background, dark walnut brown */
  --night: #100904; /* deepest brown, ink on light panels */
  --umber: #382416; /* raised brown panels and photo grounds */
  --desk: #7a5434; /* wooden desk top, light side */
  --desk-deep: #3d2a1b; /* wooden desk top, shaded side */
  --cream: #ffedd7; /* main text and the big wordmark */
  --cream-soft: #ffedd580; /* second-level text, unlit words */
  --cream-veil: #ffedd11c; /* glass cards and card grounds on dark */
  --cream-line: #ffedd74d; /* hairlines and mat grid on dark or green */
  --paper: #f6e0c6; /* light spec panel */
  --mat: #445231; /* olive cutting-mat green, intro field */
  --mat-deep: #36421f; /* shaded edge of the mat */
  --signal: #dc5000; /* construction points, active dots, the one hot accent */
  --signal-glow: #dc500033; /* soft halo around the signal colour */
  --shade: #0c0a0aeb; /* drop shadow under objects on the mat */

  /* Type */
  --font-display: "Outfit", "Helvetica Neue", sans-serif; /* wordmark, caps headlines, running text */
  --font-body: "Outfit", "Helvetica Neue", sans-serif; /* running text */
  --font-mono: "DM Mono", ui-monospace, monospace; /* labels, numbers, ruler marks, spec rows */
  --font-note: "Literata", Georgia, serif; /* rare italic aside */
  --text-xs: 12px; /* caps labels and nav */
  --text-s: 13.5px; /* small copy and mono rows */
  --text-m: 18px; /* running text */
  --text-l: 22.5px; /* card titles, caps statements */
  --text-xl: clamp(26px, 3.2vw, 40px); /* section caps headlines */
  --display: clamp(72px, 15vw, 220px); /* the giant wordmark */

  /* Space */
  --edge: clamp(20px, 3.4vw, 48px); /* side padding of a section */
  --gap: clamp(12px, 1.6vw, 24px); /* between cards and columns */
  --section-space: clamp(64px, 9vw, 140px); /* air above and below a section */
  --space-xs: 6px; /* tight inner gap */
  --space-s: 12px; /* small gap */
  --space-m: 20px; /* medium gap */
  --space-l: 32px; /* large gap */
  --space-xl: 56px; /* extra large gap */
  --mat-cell: 34px; /* one square of the cutting-mat grid */

  /* Shape */
  --radius-card: 36px; /* cards and big panels */
  --radius-frame: 22.5px; /* photo frames inside cards */
  --radius-s: 12px; /* small boxes, fields, glass captions */
  --radius-pill: 999px; /* dashed menu pill and buttons */
  --rule: 1px; /* hairlines and grid lines */
  --dash: 1.5px; /* dashed pill borders and construction lines */
  --shadow-object: 0 28px 40px -12px var(--shade); /* an object resting on the mat */

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1); /* default easing */
  --ease-plain: ease; /* hovers, borders and fades */
  --quick: 180ms; /* opacity on press and hover */
  --time: 300ms; /* transforms and filters on hover */
  --slow: 500ms; /* photo filter shifts */
  --border-time: 250ms; /* border colour on hover */
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--cream); font: 400 var(--text-m)/1.33 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("cutting-mat-desk"), 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