Skip to content
ai-native.marketingSubscribe

Corbel & Flue

A chimney sweep's site that opens under a layer of soot your pointer wipes away to reveal a duotone brick chimney, then turns from black to cream and back as you scroll.

Local services · 16 Nov 2026

corbel-&-flue.html

About this concept

Corbel & Flue is a one-page site for a local chimney sweep. Soot covers the hero until a broom and then your pointer wipe it clear. Ticket-shaped buttons roll their labels up, the page shifts from soot to cream to ember as you scroll, and a plain price table sits before the booking form. It suits sweeps, plumbers, roofers, and other trades.

Remix it with your agent

Paste this into Claude, ChatGPT, Cursor, or any coding agent together with the HTML file.

Here is a single-file HTML page called Corbel & Flue, a site for a chimney sweep. Keep the canvas of soot over the hero that a scripted broom sweeps most of clear on load and that the pointer (or a finger) wipes the rest of, the ring that shows the brush size, the duotone ember photo treatment with multiply blending and grain, the ticket-shaped buttons with a notched edge, a dashed stub, and a label that rolls up on hover, the page background that changes between soot, cream, and ember as each section crosses the middle of the screen, the service marquee, and the parallax area band. Turn it into a site for [your trade or local business]: rename it to [name], rewrite the headline and intro for [what you do and where], replace the five services with [your services and how long each takes], update the visit steps to [how a job really goes], change the price table to [your prices and times], set the area to [the places you cover], and change the form fields to [what you need to know before a visit]. Replace the Pexels photos with [your own photography] and keep the credits for any that stay. Keep the soot, cream, and ember palette unless I give you brand colours. Respect prefers-reduced-motion, and keep every section readable without JavaScript. One HTML file only.

The code

Show 429 lines of HTML (25 KB, one file, no build step)
<!doctype html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Corbel &amp; Flue - chimney sweeps in Sheffield</title>
<meta name="description" content="Corbel &amp; Flue sweeps chimneys, runs camera surveys, and fits stoves across Sheffield and the Peak District. Fixed prices, a certificate the same day, and two sweeps who answer their own phone.">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Alfa+Slab+One&family=Work+Sans:wght@400;500;600;700;800&display=swap" rel="stylesheet">
<style>
:root{
  --soot:#151210;--cream:#f4ecdf;--ember:#ff5a1f;--brick:#a1432b;--ash:#cfc6b8;
  --slab:'Alfa Slab One','Rockwell','Georgia',serif;
  --sans:'Work Sans','Helvetica Neue',Arial,sans-serif;
  --pad:clamp(1.25rem,4vw,3.5rem);
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%}
body{
  --bg:var(--soot);--fg:var(--cream);
  background:var(--bg);color:var(--fg);font-family:var(--sans);font-size:1.0625rem;line-height:1.6;
  transition:background-color .7s ease,color .7s ease;overflow-x:hidden;
}
body[data-tone="light"]{--bg:var(--cream);--fg:var(--soot)}
body[data-tone="ember"]{--bg:var(--ember);--fg:var(--soot)}
img{max-width:100%;display:block}
a{color:inherit}
h1,h2,h3{font-family:var(--slab);font-weight:400;line-height:.98;letter-spacing:.005em}
h2{font-size:clamp(2.2rem,6.2vw,5.4rem);max-width:15ch;text-wrap:balance}
h3{font-size:clamp(1.5rem,2.6vw,2.2rem)}
p{max-width:58ch}
section{position:relative}
html:not(.js) [data-tone="dark"]{background:var(--soot);color:var(--cream)}
html:not(.js) [data-tone="light"]{background:var(--cream);color:var(--soot)}
html:not(.js) [data-tone="ember"]{background:var(--ember);color:var(--soot)}
.wrap{padding-left:var(--pad);padding-right:var(--pad);max-width:96rem;margin:0 auto}
.sub{font-size:clamp(1.05rem,1.5vw,1.3rem);max-width:44ch}

/* ticket button: notched sides, dashed stub, label rolls up */
.btn{
  --h:3.4rem;position:relative;display:inline-flex;align-items:stretch;height:var(--h);
  background:var(--ember);color:var(--soot);border:0;cursor:pointer;text-decoration:none;
  font:700 .9rem/1 var(--sans);letter-spacing:.09em;text-transform:uppercase;
  -webkit-mask:radial-gradient(circle .55rem at 0 50%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle .55rem at 100% 50%,#0000 97%,#000) right/51% 100% no-repeat;
  mask:radial-gradient(circle .55rem at 0 50%,#0000 97%,#000) left/51% 100% no-repeat,radial-gradient(circle .55rem at 100% 50%,#0000 97%,#000) right/51% 100% no-repeat;
  transition:background-color .3s,color .3s;
}
.btn .face{display:flex;align-items:center;padding:0 1.6rem 0 1.8rem}
.btn .roll{display:block;height:1.25em;overflow:hidden}
.btn .roll span{display:block;height:1.25em;line-height:1.25em;white-space:nowrap;transition:transform .5s cubic-bezier(.7,0,.2,1)}
.btn:hover .roll span,.btn:focus-visible .roll span{transform:translateY(-100%)}
.btn .stub{display:grid;place-items:center;width:3.3rem;border-left:2px dashed rgba(21,18,16,.45)}
.btn .stub svg{width:1.1rem;height:1.1rem;transition:transform .5s cubic-bezier(.7,0,.2,1)}
.btn:hover .stub svg{transform:translateX(.2rem)}
.btn:hover{background:var(--cream)}
.btn.ink{background:var(--soot);color:var(--cream)}
.btn.ink .stub{border-left-color:rgba(244,236,223,.45)}
.btn.ink:hover{background:var(--cream);color:var(--soot)}
.btn.ink:hover .stub{border-left-color:rgba(21,18,16,.45)}
.btn:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid var(--cream);outline-offset:3px}
body[data-tone="light"] .btn:focus-visible{outline-color:var(--soot)}

/* nav */
.nav{position:absolute;top:0;left:0;right:0;z-index:6;display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:1.1rem var(--pad)}
.brand{font-family:var(--slab);font-size:1.45rem;text-decoration:none;line-height:1}
.brand i{font-style:normal;color:var(--ember)}
.nav ul{display:flex;gap:2rem;list-style:none}
.nav ul a{text-decoration:none;font-weight:600;font-size:.95rem;position:relative}
.nav ul a::after{content:"";position:absolute;left:0;right:0;bottom:-.25rem;height:2px;background:var(--ember);transform:scaleX(0);transform-origin:left;transition:transform .35s}
.nav ul a:hover::after{transform:scaleX(1)}
@media(max-width:820px){.nav ul{display:none}}

/* hero */
.hero{min-height:100svh;display:flex;flex-direction:column;justify-content:flex-end;overflow:hidden;isolation:isolate;background:var(--soot);color:var(--cream)}
.duo{position:relative;background:var(--ember);overflow:hidden}
.duo img{width:100%;height:100%;object-fit:cover;filter:grayscale(1) contrast(1.3) brightness(.95);mix-blend-mode:multiply}
.duo::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(21,18,16,.1) 0%,rgba(21,18,16,.35) 45%,rgba(21,18,16,.88) 100%);pointer-events:none}
.hero .duo{position:absolute;inset:0;z-index:0}
.grain{position:absolute;inset:0;z-index:2;pointer-events:none;opacity:.22;mix-blend-mode:overlay;
  background-image:url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>")}
canvas.soot{position:absolute;inset:0;width:100%;height:100%;z-index:1;pointer-events:none}
.hero-body{position:relative;z-index:3;padding:7rem var(--pad) clamp(1.5rem,4vh,3rem);max-width:96rem;width:100%;margin:0 auto}
.hero h1{font-size:clamp(4rem,min(21vw,30svh),23rem);line-height:.88;letter-spacing:-.005em;margin-bottom:1.4rem}
.hero h1 span{display:block}
.hero h1 span:last-child{padding-left:.12em}
.hero h1 em{font-style:normal;color:var(--ember)}
.hero .sub{margin-bottom:1.8rem;color:var(--cream)}
.hero-actions{display:flex;flex-wrap:wrap;align-items:center;gap:1.4rem 2rem}
.link{font-weight:700;letter-spacing:.06em;text-transform:uppercase;font-size:.85rem;text-decoration:none;border-bottom:2px solid currentColor;padding-bottom:.2rem}
.link:hover{color:var(--ember)}
.hint{margin-top:2rem;font-size:.9rem;opacity:.75;max-width:none}
.brush{position:fixed;left:0;top:0;width:76px;height:76px;margin:-38px 0 0 -38px;border:1.5px solid var(--cream);border-radius:50%;z-index:7;pointer-events:none;opacity:0;mix-blend-mode:difference;transition:opacity .25s,transform .12s linear}
.brush.on{opacity:.9}
@keyframes rise{from{opacity:0;transform:translateY(34px)}to{opacity:1;transform:none}}
.hero h1 span,.hero .sub,.hero-actions,.hint{animation:rise .9s cubic-bezier(.2,.7,.2,1) both}
.hero h1 span:nth-child(2){animation-delay:.12s}
.hero .sub{animation-delay:.3s}.hero-actions{animation-delay:.42s}.hint{animation-delay:.55s}

/* marquee */
.marquee{overflow:hidden;border-top:2px solid var(--ember);border-bottom:2px solid var(--ember);padding:1rem 0;background:var(--soot);color:var(--cream)}
.marquee .track{display:flex;width:max-content;animation:slide 38s linear infinite}
.marquee span{font-family:var(--slab);font-size:clamp(1.6rem,3.4vw,3rem);padding-right:1.6rem;white-space:nowrap;line-height:1.1}
.marquee span b{color:var(--ember);font-weight:400;padding-left:1.6rem}
@keyframes slide{to{transform:translateX(-50%)}}

/* services */
.pad{padding-top:clamp(4.5rem,11vw,9rem);padding-bottom:clamp(4.5rem,11vw,9rem)}
.services h2{margin-bottom:1.6rem}
.services .lead{font-size:clamp(1.1rem,1.6vw,1.35rem);margin-bottom:3.5rem}
.rows{border-top:2px solid currentColor;list-style:none}
.rows li{display:grid;grid-template-columns:minmax(0,1fr);gap:.4rem 3rem;padding:1.6rem 0;border-bottom:1px solid color-mix(in srgb,currentColor 30%,transparent);transition:padding-left .35s,color .35s}
.rows li:hover{padding-left:1rem;color:var(--brick)}
.rows h3{font-size:clamp(1.6rem,3.2vw,2.8rem)}
.rows p{font-size:1.05rem}
@media(min-width:900px){.rows li{grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:baseline}}

/* visit */
.visit{display:grid;gap:3rem}
.visit .pics{position:relative;display:grid;gap:1rem;grid-template-columns:1fr 1fr;align-items:start}
.visit .pics .duo{aspect-ratio:3/4}
.visit .pics .duo:nth-child(2){margin-top:3rem}
.visit h2{margin-bottom:1.4rem}
.steps{list-style:none;margin-top:2.6rem;display:grid;gap:2rem}
.steps li{border-left:4px solid var(--ember);padding-left:1.4rem}
.steps h3{margin-bottom:.5rem}
@media(min-width:960px){
  .visit{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:5rem}
  .visit .pics{position:sticky;top:5rem;align-self:start}
}

/* prices */
.prices h2{margin-bottom:1.2rem}
.prices .lead{margin-bottom:2.6rem;font-size:1.15rem}
table{width:100%;border-collapse:collapse;font-size:clamp(1rem,1.5vw,1.25rem)}
th{font-weight:700;text-align:left;font-size:.8rem;letter-spacing:.09em;text-transform:uppercase;padding:.8rem .6rem;border-bottom:2px solid currentColor}
td{padding:1.15rem .6rem;border-bottom:1px solid color-mix(in srgb,currentColor 30%,transparent);vertical-align:baseline}
td:first-child{font-family:var(--slab);font-size:clamp(1.15rem,2vw,1.7rem);line-height:1.1}
th:last-child,td:last-child{text-align:right;white-space:nowrap;font-weight:700}
tbody tr{transition:background-color .3s}
tbody tr:hover{background:color-mix(in srgb,var(--ember) 22%,transparent)}

/* area band */
.area{min-height:min(80svh,46rem);display:flex;align-items:flex-end;overflow:hidden;isolation:isolate;color:var(--cream);background:var(--soot)}
.area .duo{position:absolute;inset:-8% 0;z-index:0;will-change:transform}
.area .wrap{position:relative;z-index:3;padding-top:6rem;padding-bottom:clamp(2.5rem,6vw,5rem);width:100%}
.area h2{max-width:13ch}
.area p{margin-top:1.4rem;font-size:1.15rem}

/* booking */
.book{display:grid;gap:3rem}
.book h2{margin-bottom:1.2rem}
form{display:grid;gap:1.6rem}
label{display:grid;gap:.35rem;font-weight:700;font-size:.8rem;letter-spacing:.09em;text-transform:uppercase}
input,select{font:500 1.1rem var(--sans);color:var(--soot);background:transparent;border:0;border-bottom:2px solid var(--soot);padding:.6rem 0;border-radius:0;width:100%;appearance:none;-webkit-appearance:none}
select{background-image:linear-gradient(45deg,transparent 50%,var(--soot) 50%),linear-gradient(135deg,var(--soot) 50%,transparent 50%);background-position:calc(100% - 14px) 55%,calc(100% - 8px) 55%;background-size:6px 6px;background-repeat:no-repeat}
.two{display:grid;gap:1.6rem}
@media(min-width:620px){.two{grid-template-columns:1fr 1fr}}
@media(min-width:960px){.book{grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:6rem}}
.contact{margin-top:2.2rem;font-weight:600}
.contact a{font-family:var(--slab);font-size:clamp(1.6rem,3vw,2.4rem);text-decoration:none;display:block;line-height:1.15}
.ok{display:none;font-weight:700}
form.sent .ok{display:block}

/* footer */
footer{padding:3.5rem var(--pad) 3rem;max-width:96rem;margin:0 auto;display:grid;gap:1.4rem;font-size:.95rem}
footer .brand{font-size:1.8rem}
footer p{max-width:70ch;opacity:.85}
footer a{text-underline-offset:.2em}

/* reveals */
html.js .rv{opacity:0;transform:translateY(28px);transition:opacity .8s ease,transform .8s cubic-bezier(.2,.7,.2,1)}
html.js .rv.in{opacity:1;transform:none}

@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition-duration:.01ms!important}
  html.js .rv{opacity:1;transform:none}
  canvas.soot,.brush{display:none}
  .marquee .track{transform:none}
}
</style>
</head>
<body data-tone="dark">

<header class="nav">
  <a class="brand" href="#top" aria-label="Corbel and Flue, home">Corbel <i>&amp;</i> Flue</a>
  <ul>
    <li><a href="#services">Services</a></li>
    <li><a href="#visit">The visit</a></li>
    <li><a href="#prices">Prices</a></li>
    <li><a href="#area">Areas</a></li>
  </ul>
  <a class="btn" href="#book"><span class="face"><span class="roll"><span>Book a sweep</span><span aria-hidden="true">Book a sweep</span></span></span><span class="stub"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M3 10h13M11 4l6 6-6 6"/></svg></span></a>
</header>

<main id="top">
<section class="hero" data-tone="dark">
  <div class="duo"><img src="https://images.pexels.com/photos/11210095/pexels-photo-11210095.jpeg?auto=compress&cs=tinysrgb&w=1920" width="1920" height="1280" alt="Brick chimney stacks on a slate roof with smoke rising"></div>
  <div class="grain"></div>
  <div class="hero-body">
    <h1><span>Swept</span><span>clean<em>.</em></span></h1>
    <p class="sub">Chimney sweeping, camera surveys, and stove fitting across Sheffield and the Peak District, from two sweeps who answer their own phone.</p>
    <div class="hero-actions">
      <a class="btn" href="#book"><span class="face"><span class="roll"><span>Book a sweep</span><span aria-hidden="true">Book a sweep</span></span></span><span class="stub"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M3 10h13M11 4l6 6-6 6"/></svg></span></a>
      <a class="link" href="#prices">See the prices</a>
    </div>
    <p class="hint">Sweep this page with your pointer, or a finger, to clear the soot.</p>
  </div>
</section>

<div class="marquee" aria-hidden="true">
  <div class="track">
    <span>Open fires<b>/</b></span><span>Wood burners<b>/</b></span><span>Multi-fuel stoves<b>/</b></span><span>Range cookers<b>/</b></span><span>Pellet stoves<b>/</b></span><span>Flue liners<b>/</b></span><span>Camera surveys<b>/</b></span>
    <span>Open fires<b>/</b></span><span>Wood burners<b>/</b></span><span>Multi-fuel stoves<b>/</b></span><span>Range cookers<b>/</b></span><span>Pellet stoves<b>/</b></span><span>Flue liners<b>/</b></span><span>Camera surveys<b>/</b></span>
  </div>
</div>

<section class="services pad" id="services" data-tone="light">
  <div class="wrap">
    <h2 class="rv">Every flue gets the same care, whatever it burns.</h2>
    <p class="lead rv">We sweep open fires, wood burners, multi-fuel stoves, range cookers, and pellet stoves, and we put a camera up any flue we have not seen before.</p>
    <ul class="rows">
      <li class="rv"><h3>Open fires</h3><p>Rods, brush, and a sealed vacuum at the opening so the room stays clean. Forty minutes, and the hearth looks better than we found it.</p></li>
      <li class="rv"><h3>Wood burners and multi-fuel stoves</h3><p>We lift out the baffle, clean behind it, check the rope seal on the door, and put it all back where it lives.</p></li>
      <li class="rv"><h3>Range cookers and oil flues</h3><p>Longer flues take a longer brush. We check the flue pipe for pinholes before we leave.</p></li>
      <li class="rv"><h3>Pellet stoves</h3><p>Burn pot, heat exchanger, and the exhaust run, cleaned to the maker's schedule.</p></li>
      <li class="rv"><h3>Camera surveys</h3><p>A camera goes up the flue and you watch it on a tablet, so a crack or a bird's nest is something you see for yourself.</p></li>
    </ul>
  </div>
</section>

<section class="pad" id="visit" data-tone="dark">
  <div class="wrap visit">
    <div class="pics rv">
      <div class="duo"><img loading="lazy" src="https://images.pexels.com/photos/28681433/pexels-photo-28681433.jpeg?auto=compress&cs=tinysrgb&w=900" width="900" height="1200" alt="Gloved hands of a worker covered in dirt"></div>
      <div class="duo"><img loading="lazy" src="https://images.pexels.com/photos/6319179/pexels-photo-6319179.jpeg?auto=compress&cs=tinysrgb&w=900" width="900" height="600" alt="A fire burning in a fireplace against a brick wall"></div>
    </div>
    <div>
      <h2 class="rv">The visit, start to finish.</h2>
      <p class="sub rv">Most sweeps take about an hour, and the certificate is in your inbox before we reach the next house.</p>
      <ol class="steps">
        <li class="rv"><h3>Sheets down</h3><p>We cover the hearth and the floor, then run a sealed vacuum at the opening so soot has nowhere to go but the bag.</p></li>
        <li class="rv"><h3>Rods up</h3><p>Brush and rods go up from below, and the cowl gets checked from the roof ladder or with the camera.</p></li>
        <li class="rv"><h3>Smoke test</h3><p>A smoke pellet in the grate shows the flue drawing. If smoke comes back into the room, you hear it from us before we pack up.</p></li>
        <li class="rv"><h3>Certificate</h3><p>You get the date, the appliance, and what we found, by email the same day.</p></li>
      </ol>
    </div>
  </div>
</section>

<section class="prices pad" id="prices" data-tone="light">
  <div class="wrap">
    <h2 class="rv">Prices before we arrive.</h2>
    <p class="lead rv">Fixed prices, paid after the job, with no call-out charge inside the S postcodes.</p>
    <table class="rv">
      <thead><tr><th scope="col">Job</th><th scope="col">Takes</th><th scope="col">From</th></tr></thead>
      <tbody>
        <tr><td>Open fire sweep</td><td>40 min</td><td>&pound;58</td></tr>
        <tr><td>Wood burner or multi-fuel stove</td><td>55 min</td><td>&pound;64</td></tr>
        <tr><td>Range cooker or oil flue</td><td>70 min</td><td>&pound;72</td></tr>
        <tr><td>Pellet stove clean</td><td>75 min</td><td>&pound;85</td></tr>
        <tr><td>Camera survey with report</td><td>45 min</td><td>&pound;95</td></tr>
        <tr><td>Stove fitting</td><td>Quote</td><td>Free survey</td></tr>
      </tbody>
    </table>
  </div>
</section>

<section class="area" id="area" data-tone="dark">
  <div class="duo" data-par><img loading="lazy" src="https://images.pexels.com/photos/12167830/pexels-photo-12167830.jpeg?auto=compress&cs=tinysrgb&w=1920" width="1920" height="1280" alt="Chimneys with triangular covers on a tiled roof under an overcast sky"></div>
  <div class="grain"></div>
  <div class="wrap">
    <h2 class="rv">Two vans, one county's worth of roofs.</h2>
    <p class="rv">We cover S1 to S36, the Hope Valley, and as far as Bakewell. If your postcode is in doubt, ask, and we will tell you straight.</p>
  </div>
</section>

<section class="book pad" id="book" data-tone="ember">
  <div class="wrap book">
    <div>
      <h2 class="rv">Pick a day. We bring the brushes.</h2>
      <p class="sub rv">We reply the same day, usually within the hour, with a time slot and a fixed price.</p>
      <div class="contact rv">
        <a href="tel:01144960127">0114 496 0127</a>
        <span>Monday to Saturday, 7.30am to 6pm</span>
      </div>
    </div>
    <form class="rv" id="f" onsubmit="return false">
      <div class="two">
        <label>Your name<input type="text" name="name" autocomplete="name" placeholder="Sam Hallam"></label>
        <label>Postcode<input type="text" name="postcode" autocomplete="postal-code" placeholder="S10 1AB"></label>
      </div>
      <div class="two">
        <label>What do you burn
          <select name="fuel"><option>Wood burner</option><option>Open fire</option><option>Multi-fuel stove</option><option>Range or oil</option><option>Pellet stove</option><option>Not sure</option></select>
        </label>
        <label>Best day
          <select name="day"><option>Any weekday</option><option>Monday</option><option>Tuesday</option><option>Wednesday</option><option>Thursday</option><option>Friday</option><option>Saturday</option></select>
        </label>
      </div>
      <div><button class="btn ink" type="submit"><span class="face"><span class="roll"><span>Request a slot</span><span aria-hidden="true">Request a slot</span></span></span><span class="stub"><svg viewBox="0 0 20 20" fill="none" stroke="currentColor" stroke-width="2.4"><path d="M3 10h13M11 4l6 6-6 6"/></svg></span></button></div>
      <p class="ok" role="status">Thank you. We will be in touch today with a slot and a price.</p>
    </form>
  </div>
</section>
</main>

<footer data-tone="dark">
  <a class="brand" href="#top">Corbel <i>&amp;</i> Flue</a>
  <p>Chimney sweeps and stove fitters, Sheffield. A concept site and free template from theainativemarketer.com; every name, price, and number on it is a placeholder.</p>
  <p>Photography from <a href="https://www.pexels.com">Pexels</a>: <a href="https://www.pexels.com/@mikepercy123">Mike Percy</a>, <a href="https://www.pexels.com/@nishantaneja">Nishant Aneja</a>, <a href="https://www.pexels.com/@introspectivedsgn">Erik Mclean</a>, and <a href="https://www.pexels.com/@ganajp">Petr Ganaj</a>.</p>
</footer>

<div class="brush" aria-hidden="true"></div>

<script>
(function(){
  var root=document.documentElement;root.classList.add('js');
  var rm=matchMedia('(prefers-reduced-motion: reduce)').matches;
  var body=document.body;

  /* page tone follows the section under the middle of the screen */
  var tones=[].slice.call(document.querySelectorAll('[data-tone]')).filter(function(e){return e!==body});
  function tone(){
    var mid=innerHeight*.45,t='dark';
    for(var i=0;i<tones.length;i++){var r=tones[i].getBoundingClientRect();if(r.top<=mid&&r.bottom>mid){t=tones[i].getAttribute('data-tone');break}}
    if(body.getAttribute('data-tone')!==t)body.setAttribute('data-tone',t);
  }
  addEventListener('scroll',tone,{passive:true});addEventListener('resize',tone);tone();

  /* reveals */
  var rv=[].slice.call(document.querySelectorAll('.rv'));
  if('IntersectionObserver' in window&&!rm){
    var io=new IntersectionObserver(function(es){es.forEach(function(e){if(e.isIntersecting){e.target.classList.add('in');io.unobserve(e.target)}})},{threshold:.12,rootMargin:'0px 0px -6% 0px'});
    rv.forEach(function(e){io.observe(e)});
  }else rv.forEach(function(e){e.classList.add('in')});

  /* parallax on the area photo */
  var par=document.querySelector('[data-par]'),area=document.querySelector('.area');
  if(par&&!rm){
    var tick=false;
    var move=function(){tick=false;var r=area.getBoundingClientRect();if(r.bottom<0||r.top>innerHeight)return;var p=(r.top+r.height/2-innerHeight/2)/innerHeight;par.style.transform='translate3d(0,'+(p*-9).toFixed(2)+'%,0)'};
    addEventListener('scroll',function(){if(!tick){tick=true;requestAnimationFrame(move)}},{passive:true});move();
  }

  /* form */
  var f=document.getElementById('f');
  if(f)f.addEventListener('submit',function(e){e.preventDefault();f.classList.add('sent')});

  /* the soot */
  var hero=document.querySelector('.hero');
  if(!hero||rm)return;
  var cv=document.createElement('canvas');cv.className='soot';cv.setAttribute('aria-hidden','true');
  hero.insertBefore(cv,hero.querySelector('.grain'));
  var ctx=cv.getContext('2d'),W=0,H=0,dpr=1,introRaf=0,introDone=false;

  function paint(){
    ctx.globalCompositeOperation='source-over';
    ctx.fillStyle='#151210';ctx.fillRect(0,0,W,H);
    var n=Math.min(9000,Math.floor(W*H/700));
    for(var i=0;i<n;i++){
      ctx.fillStyle='rgba('+(48+Math.random()*30|0)+','+(40+Math.random()*24|0)+','+(34+Math.random()*20|0)+','+(Math.random()*.55).toFixed(2)+')';
      ctx.fillRect(Math.random()*W,Math.random()*H,Math.random()*3+1,Math.random()*3+1);
    }
  }
  function wipe(x,y,r){
    ctx.globalCompositeOperation='destination-out';
    var g=ctx.createRadialGradient(x,y,r*.25,x,y,r);
    g.addColorStop(0,'rgba(0,0,0,1)');g.addColorStop(1,'rgba(0,0,0,0)');
    ctx.fillStyle=g;ctx.beginPath();ctx.arc(x,y,r,0,6.2832);ctx.fill();
  }
  function line(x0,y0,x1,y1,r){
    var d=Math.hypot(x1-x0,y1-y0),n=Math.max(1,Math.ceil(d/(r*.3)));
    for(var i=0;i<=n;i++)wipe(x0+(x1-x0)*i/n,y0+(y1-y0)*i/n,r);
  }

  /* the first sweep: a broom crosses the hero in passes */
  function plan(){
    var r=Math.min(Math.max(W,H)*.12,190),rows=Math.max(2,Math.ceil(H/(r*1.7)));
    var top=r*.8,span=H-r*1.6;
    return{r:r,rows:rows,at:function(u){
      var k=Math.min(rows-1,Math.floor(u*rows)),f=u*rows-k;if(u>=1){k=rows-1;f=1}
      var e=f<.5?2*f*f:1-Math.pow(-2*f+2,2)/2,a=k%2===0?r*.2:W-r*.2,b=k%2===0?W-r*.2:r*.2;
      var y=top+(rows>1?span*k/(rows-1):0)+Math.sin(f*6.2832)*r*.22;
      return[a+(b-a)*e,y];
    }};
  }
  function intro(instant){
    var p=plan(),T=Math.min(2300,p.rows*620),t0=performance.now(),last=null;
    function step(now){
      var u=instant?1:Math.min(1,(now-t0)/T),pt=p.at(u);
      if(instant){var prev=p.at(0),n=240;for(var i=1;i<=n;i++){var q=p.at(i/n);line(prev[0],prev[1],q[0],q[1],p.r);prev=q}introDone=true;return}
      if(last)line(last[0],last[1],pt[0],pt[1],p.r);else wipe(pt[0],pt[1],p.r);
      last=pt;
      if(u<1)introRaf=requestAnimationFrame(step);else introDone=true;
    }
    if(instant)step();else introRaf=requestAnimationFrame(step);
  }

  function size(first){
    var r=hero.getBoundingClientRect(),w=Math.round(r.width),h=Math.round(r.height);
    if(!first&&Math.abs(w-W)<2&&Math.abs(h-H)<120)return;
    cancelAnimationFrame(introRaf);
    W=w;H=h;dpr=Math.min(devicePixelRatio||1,1.5);
    cv.width=Math.round(W*dpr);cv.height=Math.round(H*dpr);ctx.setTransform(dpr,0,0,dpr,0,0);
    paint();intro(!first);
  }
  size(true);
  var rt;addEventListener('resize',function(){clearTimeout(rt);rt=setTimeout(function(){size(false)},200)});

  /* pointer: the brush */
  var ring=document.querySelector('.brush'),lx=null,ly=null,fine=matchMedia('(pointer:fine)').matches;
  function br(){return W<700?46:70}
  function local(e){var r=cv.getBoundingClientRect();return[e.clientX-r.left,e.clientY-r.top]}
  hero.addEventListener('pointermove',function(e){
    var p=local(e);
    if(p[1]<0||p[1]>H){lx=null;return}
    if(introDone||true){if(lx!==null)line(lx,ly,p[0],p[1],br());else wipe(p[0],p[1],br())}
    lx=p[0];ly=p[1];
    if(fine&&ring){ring.style.width=ring.style.height=br()*2+'px';ring.style.margin=-br()+'px 0 0 '+(-br())+'px';ring.style.transform='translate('+e.clientX+'px,'+e.clientY+'px)';ring.classList.add('on')}
  });
  hero.addEventListener('pointerleave',function(){lx=null;if(ring)ring.classList.remove('on')});
  hero.addEventListener('pointerdown',function(e){var p=local(e);wipe(p[0],p[1],br()*1.6)});
})();
</script>
</body>
</html>

Brand kit

The identity behind this design, ready to use: logo lockups, colour roles with contrast scores, the type scale, buttons and fields, photo treatment, motion rules, design tokens, and five ready-sized social templates.

Colour roles

  • Ink#151210
  • Paper#f4ecdf
  • Accent#ff5a1f
  • Support 1#a1432b
  • Support 2#cfc6b8

Type

Display
Alfa Slab One
Body
Work Sans

Social templates