• Updated 5 Dec, 01:22 UTC
  • Next run 5 Dec, 05:17 UTCNext 5 Dec 05:17
  • Last 7 days: 7 new models · 66 runs7 d: 7 models · 66 runs
Landing page for a cargo bike workshop

Qwen4 35B A3BAlibaba

Network offOpen alone (new tab)

Run details

Model
qwen/qwen4-35b-a3b
Route
OpenRouter API
Served by
Venice
Effort
high (OpenRouter default)
Limits
60 min · 65,536 output tokens (model max)
Date
4 Dec 2026
Time
62 s
Size
45 kB
Tokens
111 in, 20,083 out (4,876 thinking)
List price
$0.007 at today's price ($0.06 in / $0.36 out per M)
Paid
$0.006

Raw: output · meta.json

Prompt

Build the landing page for Lumen Cycles, a Copenhagen workshop that builds custom cargo bikes to order. Make it look like a real brand you would trust with 4,000 euros.

It must be one complete, self-contained HTML file: inline all CSS and JavaScript, and make no network requests of any kind (no CDNs, web fonts or remote images). Reply with the file in a single ```html code block.

Source

45 kB 906 lines Raw

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Lumen Cycles — Custom cargo bikes, built in Copenhagen</title>
<meta name="description" content="Lumen Cycles is a workshop in Nørrebro, Copenhagen, building custom cargo bikes to order. Hand-welded frames, Danish components, 5-year warranty.">
<style>
/* ============ RESET / TOKENS ============ */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
:root{
  --paper:#f7f3ea;
  --paper-2:#efe9db;
  --card:#fdfbf6;
  --ink:#1b1c17;
  --ink-soft:#3c3d35;
  --muted:#6f6e62;
  --line:rgba(27,28,23,.14);
  --green:#24422f;
  --green-deep:#182e21;
  --terra:#c06a3a;
  --gold:#c8a24b;
  /* bike art colors (driven by configurator too) */
  --bike-frame:#1d1d1b;
  --bike-box:#e3d3b3;
  --radius:14px;
  --serif:Georgia,"Times New Roman","Iowan Old Style",serif;
  --sans:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  --mono:"SF Mono",ui-monospace,"Cascadia Mono",Menlo,Consolas,monospace;
}
html{scroll-behavior:smooth}
@media (prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation:none!important;transition:none!important}
}
body{
  font-family:var(--sans);
  background:var(--paper);
  color:var(--ink);
  line-height:1.6;
  -webkit-font-smoothing:antialiased;
  font-size:17px;
}
::selection{background:var(--green);color:var(--paper)}
img,svg{display:block;max-width:100%}
a{color:inherit}
button{font:inherit;cursor:pointer}
:focus-visible{outline:2px solid var(--terra);outline-offset:3px;border-radius:4px}

.wrap{max-width:1140px;margin:0 auto;padding:0 24px}
.eyebrow{
  font-family:var(--mono);font-size:.72rem;letter-spacing:.22em;
  text-transform:uppercase;color:var(--green);display:flex;align-items:center;gap:12px;
}
.eyebrow::before{content:"";width:28px;height:1px;background:var(--terra)}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.08;letter-spacing:-.01em}
h2{font-size:clamp(1.9rem,3.6vw,2.8rem);margin:.5em 0 .4em}
.lede{color:var(--ink-soft);font-size:1.08rem;max-width:56ch}
section{padding:96px 0}
.rule{border:0;border-top:1px solid var(--line)}

/* ============ BUTTONS ============ */
.btn{
  display:inline-flex;align-items:center;gap:10px;
  padding:15px 26px;border-radius:999px;border:1px solid var(--ink);
  background:var(--ink);color:var(--paper);text-decoration:none;
  font-size:.95rem;font-weight:600;letter-spacing:.01em;
  transition:transform .18s ease, background .18s ease, color .18s ease;
}
.btn:hover{background:var(--green-deep);border-color:var(--green-deep);transform:translateY(-2px)}
.btn.ghost{background:transparent;color:var(--ink)}
.btn.ghost:hover{background:var(--ink);color:var(--paper)}
.btn .arr{transition:transform .18s ease}
.btn:hover .arr{transform:translateX(4px)}

/* ============ HEADER ============ */
header{
  position:fixed;inset:0 0 auto 0;z-index:60;
  background:rgba(247,243,234,.86);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);
  border-bottom:1px solid var(--line);
}
.nav{display:flex;align-items:center;justify-content:space-between;height:68px}
.logo{display:flex;align-items:center;gap:11px;text-decoration:none;font-family:var(--serif);font-size:1.15rem;letter-spacing:.04em}
.logo svg{width:34px;height:22px}
.logo b{font-weight:400}
.logo small{font-family:var(--mono);font-size:.55rem;letter-spacing:.28em;color:var(--muted);display:block;margin-top:-3px}
.navlinks{display:flex;align-items:center;gap:30px;list-style:none}
.navlinks a{text-decoration:none;font-size:.92rem;color:var(--ink-soft);transition:color .15s}
.navlinks a:hover{color:var(--ink)}
.nav .btn{padding:10px 20px;font-size:.85rem}
.burger{display:none;background:none;border:1px solid var(--line);border-radius:8px;padding:9px 11px;line-height:0}
.burger span{display:block;width:20px;height:2px;background:var(--ink);margin:4px 0}

/* ============ HERO ============ */
.hero{padding:150px 0 72px;position:relative;overflow:hidden}
.hero::after{ /* subtle grain-free vignette */
  content:"";position:absolute;inset:auto -20% -60% -20%;height:70%;
  background:radial-gradient(ellipse at 50% 0%, rgba(36,66,47,.07), transparent 65%);
  pointer-events:none;
}
.hero-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:56px;align-items:center}
.badge{
  display:inline-flex;align-items:center;gap:9px;
  border:1px solid var(--line);background:var(--card);border-radius:999px;
  padding:7px 16px;font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;
  text-transform:uppercase;color:var(--ink-soft);margin-bottom:26px;
}
.badge .dot{width:7px;height:7px;border-radius:50%;background:var(--terra);animation:pulse 2.2s infinite}
@keyframes pulse{0%,100%{opacity:1}50%{opacity:.35}}
.hero h1{font-size:clamp(2.7rem,5.6vw,4.4rem);margin-bottom:22px}
.hero h1 em{font-style:italic;color:var(--green)}
.hero p.lede{margin-bottom:34px}
.hero-ctas{display:flex;gap:14px;flex-wrap:wrap;margin-bottom:44px}
.hero-stats{display:flex;gap:38px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:26px}
.stat b{display:block;font-family:var(--serif);font-size:1.55rem;font-weight:400}
.stat span{font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.hero-art{position:relative}
.hero-art .framebox{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:34px 30px 22px;box-shadow:0 24px 60px -30px rgba(27,28,23,.25);
}
.hero-art figcaption{
  display:flex;justify-content:space-between;border-top:1px dashed var(--line);
  margin-top:14px;padding-top:12px;font-family:var(--mono);font-size:.66rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.hero-tag{
  position:absolute;right:-14px;top:-18px;background:var(--green);color:var(--paper);
  font-family:var(--mono);font-size:.64rem;letter-spacing:.18em;text-transform:uppercase;
  padding:9px 14px;border-radius:8px;transform:rotate(3deg);box-shadow:0 10px 24px -10px rgba(24,46,33,.5);
}

/* ============ PRESS STRIP ============ */
.press{border-top:1px solid var(--line);border-bottom:1px solid var(--line);padding:22px 0;background:var(--paper-2)}
.press .wrap{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.press span{font-family:var(--mono);font-size:.66rem;letter-spacing:.24em;text-transform:uppercase;color:var(--muted)}
.press strong{font-family:var(--serif);font-weight:400;font-size:.95rem;letter-spacing:.06em;color:var(--ink-soft)}

/* ============ MODELS ============ */
.models-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:48px}
.model{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 28px;display:flex;flex-direction:column;
  transition:transform .2s ease, box-shadow .2s ease;
}
.model:hover{transform:translateY(-5px);box-shadow:0 26px 50px -30px rgba(27,28,23,.3)}
.model .num{font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;color:var(--terra)}
.model h3{font-size:1.5rem;margin:10px 0 8px}
.model p{font-size:.93rem;color:var(--ink-soft);flex:1}
.model ul{list-style:none;margin:20px 0;border-top:1px solid var(--line)}
.model li{display:flex;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line);font-size:.85rem}
.model li span:first-child{color:var(--muted)}
.model .price{display:flex;align-items:baseline;justify-content:space-between}
.model .price b{font-family:var(--serif);font-size:1.35rem;font-weight:400}
.model .price a{font-size:.85rem;color:var(--green);font-weight:600;text-decoration:none}
.model .price a:hover{text-decoration:underline}
.model.featured{background:var(--green-deep);color:var(--paper);border-color:var(--green-deep)}
.model.featured p{color:rgba(247,243,234,.8)}
.model.featured li{border-color:rgba(247,243,234,.16)}
.model.featured li span:first-child{color:rgba(247,243,234,.55)}
.model.featured .tag{align-self:flex-start;background:var(--terra);color:var(--paper);font-family:var(--mono);font-size:.6rem;letter-spacing:.2em;text-transform:uppercase;padding:5px 10px;border-radius:6px;margin-bottom:12px}

/* ============ CRAFT / PROCESS ============ */
.craft{background:var(--paper-2);border-top:1px solid var(--line);border-bottom:1px solid var(--line)}
.steps{display:grid;grid-template-columns:repeat(4,1fr);gap:22px;margin-top:48px}
.step{border-top:2px solid var(--ink);padding-top:18px}
.step .n{font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;color:var(--terra)}
.step h3{font-size:1.2rem;margin:10px 0 8px}
.step p{font-size:.9rem;color:var(--ink-soft)}
.craft-quote{
  margin-top:64px;display:grid;grid-template-columns:auto 1fr;gap:24px;align-items:center;
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:30px 34px;
}
.craft-quote p{font-family:var(--serif);font-style:italic;font-size:1.25rem;line-height:1.45}
.craft-quote .who{font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);white-space:nowrap}

/* ============ CONFIGURATOR ============ */
.config-grid{display:grid;grid-template-columns:1fr 1.05fr;gap:52px;margin-top:44px;align-items:start}
.config-stage{position:sticky;top:92px}
.config-stage .framebox{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:30px 26px 16px;box-shadow:0 24px 60px -34px rgba(27,28,23,.28);
}
.config-stage figcaption{
  display:flex;justify-content:space-between;border-top:1px dashed var(--line);
  margin-top:10px;padding-top:12px;font-family:var(--mono);font-size:.64rem;
  letter-spacing:.14em;text-transform:uppercase;color:var(--muted);
}
.optgroup{margin-bottom:26px}
.optgroup>h4{font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:12px;font-weight:500}
.swatches{display:flex;gap:12px;flex-wrap:wrap}
.swatch{
  width:42px;height:42px;border-radius:50%;border:2px solid var(--line);
  padding:0;position:relative;transition:transform .15s ease;
}
.swatch:hover{transform:scale(1.08)}
.swatch[aria-pressed="true"]{border-color:var(--ink);box-shadow:0 0 0 3px var(--card),0 0 0 5px var(--ink)}
.pills{display:flex;gap:10px;flex-wrap:wrap}
.pill{
  border:1px solid var(--line);background:var(--card);border-radius:999px;
  padding:9px 18px;font-size:.86rem;color:var(--ink-soft);
  transition:all .15s ease;
}
.pill:hover{border-color:var(--ink)}
.pill[aria-pressed="true"]{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.pill small{opacity:.6;font-size:.78em}
.summary{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);
  padding:24px 26px;margin-top:8px;
}
.summary h4{font-family:var(--mono);font-size:.68rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:14px;font-weight:500}
.summary dl{font-size:.9rem}
.summary .row{display:flex;justify-content:space-between;padding:7px 0;border-bottom:1px dashed var(--line)}
.summary .row span:first-child{color:var(--muted)}
.summary .total{display:flex;justify-content:space-between;align-items:baseline;padding-top:14px}
.summary .total b{font-family:var(--serif);font-size:1.9rem;font-weight:400}
.summary .total span{font-family:var(--mono);font-size:.64rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.summary .note{font-size:.76rem;color:var(--muted);margin:10px 0 16px}
.summary .btn{width:100%;justify-content:center}

/* ============ TESTIMONIALS ============ */
.quotes{display:grid;grid-template-columns:repeat(3,1fr);gap:22px;margin-top:48px}
.quote{
  background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:28px;
  display:flex;flex-direction:column;gap:18px;
}
.quote .stars{color:var(--gold);letter-spacing:3px;font-size:.9rem}
.quote p{font-family:var(--serif);font-size:1.06rem;line-height:1.5;flex:1}
.quote .who{display:flex;align-items:center;gap:12px}
.quote .who i{
  width:38px;height:38px;border-radius:50%;background:var(--green);color:var(--paper);
  display:grid;place-items:center;font-style:normal;font-family:var(--serif);font-size:.95rem;flex:none;
}
.quote .who b{display:block;font-size:.88rem;font-weight:600}
.quote .who span{font-size:.78rem;color:var(--muted)}

/* ============ CONTACT ============ */
.contact{background:var(--green-deep);color:var(--paper);border-top:1px solid var(--green-deep)}
.contact .eyebrow{color:var(--gold)}
.contact h2{color:var(--paper)}
.contact .lede{color:rgba(247,243,234,.75)}
.contact-grid{display:grid;grid-template-columns:.9fr 1.1fr;gap:64px;margin-top:44px}
.info dl{margin-top:26px}
.info .row{padding:16px 0;border-bottom:1px solid rgba(247,243,234,.15)}
.info dt{font-family:var(--mono);font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:var(--gold);margin-bottom:4px}
.info dd{font-size:.95rem;color:rgba(247,243,234,.9)}
.info dd a{color:inherit}
form .cols{display:grid;grid-template-columns:1fr 1fr;gap:16px}
form label{display:block;font-family:var(--mono);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:rgba(247,243,234,.6);margin:0 0 7px 2px}
.field{margin-bottom:18px}
input,select,textarea{
  width:100%;background:rgba(247,243,234,.07);border:1px solid rgba(247,243,234,.22);
  border-radius:10px;padding:13px 15px;color:var(--paper);font:inherit;font-size:.95rem;
  transition:border-color .15s;
}
input::placeholder,textarea::placeholder{color:rgba(247,243,234,.4)}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--gold)}
select{appearance:none;background-image:linear-gradient(45deg,transparent 50%,rgba(247,243,234,.6) 50%),linear-gradient(135deg,rgba(247,243,234,.6) 50%,transparent 50%);background-position:calc(100% - 20px) 50%,calc(100% - 14px) 50%;background-size:6px 6px;background-repeat:no-repeat}
select option{color:var(--ink)}
textarea{resize:vertical;min-height:110px}
.err{border-color:#e07b5a!important}
.form-msg{display:none;background:rgba(200,162,75,.14);border:1px solid var(--gold);border-radius:10px;padding:16px 18px;font-size:.92rem;margin-top:16px}
.form-msg.show{display:block}
.contact .btn{background:var(--gold);border-color:var(--gold);color:var(--green-deep)}
.contact .btn:hover{background:var(--paper);border-color:var(--paper)}

/* ============ FAQ ============ */
.faq-list{margin-top:40px;max-width:820px}
details{border-bottom:1px solid var(--line)}
details:first-of-type{border-top:1px solid var(--line)}
summary{
  list-style:none;cursor:pointer;display:flex;justify-content:space-between;align-items:center;
  padding:20px 4px;font-family:var(--serif);font-size:1.12rem;
}
summary::-webkit-details-marker{display:none}
summary::after{content:"+";font-family:var(--mono);color:var(--terra);font-size:1.2rem;transition:transform .2s}
details[open] summary::after{transform:rotate(45deg)}
details p{padding:0 4px 22px;color:var(--ink-soft);font-size:.95rem;max-width:64ch}

/* ============ FOOTER ============ */
footer{border-top:1px solid var(--line);padding:52px 0 34px;background:var(--paper-2)}
.foot-grid{display:flex;justify-content:space-between;gap:40px;flex-wrap:wrap;margin-bottom:36px}
.foot-grid .logo{margin-bottom:10px}
.foot-grid p{font-size:.86rem;color:var(--muted);max-width:34ch}
.foot-col h5{font-family:var(--mono);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--muted);margin-bottom:12px;font-weight:500}
.foot-col a{display:block;text-decoration:none;font-size:.9rem;color:var(--ink-soft);padding:4px 0}
.foot-col a:hover{color:var(--ink)}
.legal{border-top:1px solid var(--line);padding-top:22px;display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;font-size:.76rem;color:var(--muted)}

/* ============ REVEAL ============ */
.reveal{opacity:0;transform:translateY(22px);transition:opacity .7s ease,transform .7s ease}
.reveal.in{opacity:1;transform:none}

/* ============ RESPONSIVE ============ */
@media (max-width:980px){
  .hero-grid,.config-grid,.contact-grid{grid-template-columns:1fr}
  .config-stage{position:static}
  .models-grid,.steps,.quotes{grid-template-columns:1fr 1fr}
  .steps{grid-template-columns:1fr 1fr}
}
@media (max-width:720px){
  section{padding:68px 0}
  .hero{padding:120px 0 56px}
  .models-grid,.quotes{grid-template-columns:1fr}
  form .cols{grid-template-columns:1fr}
  .navlinks{
    display:none;position:absolute;top:68px;left:0;right:0;flex-direction:column;
    background:var(--paper);border-bottom:1px solid var(--line);padding:22px 24px;gap:18px;
  }
  .navlinks.open{display:flex}
  .burger{display:block}
  .craft-quote{grid-template-columns:1fr}
  .hero-stats{gap:24px}
}
</style>
</head>
<body>

<!-- ============ SHARED BIKE ARTWORK (drawn once, reused via <use>) ============ -->
<svg width="0" height="0" style="position:absolute" aria-hidden="true">
  <defs>
    <symbol id="bike-art" viewBox="0 0 680 360">
      <!-- ground -->
      <line x1="46" y1="322" x2="648" y2="322" stroke="rgba(27,28,23,.18)" stroke-width="2" stroke-dasharray="2 8" stroke-linecap="round"/>
      <!-- rear wheel -->
      <circle cx="572" cy="262" r="60" fill="none" style="stroke:var(--bike-frame)" stroke-width="6"/>
      <circle cx="572" cy="262" r="48" fill="none" stroke="rgba(27,28,23,.25)" stroke-width="1.4"/>
      <circle cx="572" cy="262" r="6" style="fill:var(--bike-frame)"/>
      <g style="stroke:var(--bike-frame)" stroke-width="1.4" opacity=".45">
        <line x1="572" y1="214" x2="572" y2="310"/><line x1="524" y1="262" x2="620" y2="262"/>
        <line x1="538" y1="228" x2="606" y2="296"/><line x1="606" y1="228" x2="538" y2="296"/>
      </g>
      <!-- front wheel -->
      <circle cx="120" cy="270" r="52" fill="none" style="stroke:var(--bike-frame)" stroke-width="6"/>
      <circle cx="120" cy="270" r="41" fill="none" stroke="rgba(27,28,23,.25)" stroke-width="1.4"/>
      <circle cx="120" cy="270" r="5.5" style="fill:var(--bike-frame)"/>
      <g style="stroke:var(--bike-frame)" stroke-width="1.4" opacity=".45">
        <line x1="120" y1="229" x2="120" y2="311"/><line x1="79" y1="270" x2="161" y2="270"/>
        <line x1="91" y1="241" x2="149" y2="299"/><line x1="149" y1="241" x2="91" y2="299"/>
      </g>
      <!-- fork + steering -->
      <line x1="120" y1="270" x2="184" y2="142" style="stroke:var(--bike-frame)" stroke-width="6" stroke-linecap="round"/>
      <line x1="184" y1="142" x2="158" y2="114" stroke="#22231f" stroke-width="5" stroke-linecap="round"/>
      <line x1="158" y1="114" x2="198" y2="98" stroke="#22231f" stroke-width="5" stroke-linecap="round"/>
      <!-- head light -->
      <circle cx="176" cy="168" r="6" style="fill:var(--bike-frame)"/>
      <!-- cargo box -->
      <rect x="175" y="150" width="270" height="100" rx="12" style="fill:var(--bike-box);stroke:var(--bike-frame)" stroke-width="5"/>
      <g style="stroke:var(--bike-frame)" stroke-width="1.6" opacity=".3">
        <line x1="243" y1="156" x2="243" y2="244"/><line x1="310" y1="156" x2="310" y2="244"/><line x1="377" y1="156" x2="377" y2="244"/>
      </g>
      <text x="310" y="212" text-anchor="middle" style="fill:var(--bike-frame);opacity:.5;font-family:Georgia,serif;letter-spacing:5px;font-size:17px">LUMEN</text>
      <!-- rider frame -->
      <line x1="445" y1="240" x2="516" y2="292" style="stroke:var(--bike-frame)" stroke-width="5.5" stroke-linecap="round"/>
      <line x1="572" y1="262" x2="516" y2="292" style="stroke:var(--bike-frame)" stroke-width="5" stroke-linecap="round"/>
      <line x1="572" y1="262" x2="497" y2="186" style="stroke:var(--bike-frame)" stroke-width="4.5" stroke-linecap="round"/>
      <line x1="516" y1="292" x2="492" y2="178" style="stroke:var(--bike-frame)" stroke-width="5.5" stroke-linecap="round"/>
      <!-- saddle -->
      <line x1="470" y1="172" x2="514" y2="170" stroke="#22231f" stroke-width="9" stroke-linecap="round"/>
      <!-- handlebar riser -->
      <line x1="452" y1="152" x2="470" y2="104" style="stroke:var(--bike-frame)" stroke-width="5" stroke-linecap="round"/>
      <line x1="470" y1="104" x2="508" y2="92" stroke="#22231f" stroke-width="5" stroke-linecap="round"/>
      <!-- crank + pedal -->
      <circle cx="516" cy="292" r="16" fill="none" stroke="#22231f" stroke-width="4"/>
      <line x1="516" y1="292" x2="540" y2="311" stroke="#22231f" stroke-width="4.5" stroke-linecap="round"/>
      <line x1="534" y1="311" x2="550" y2="311" stroke="#22231f" stroke-width="5" stroke-linecap="round"/>
    </symbol>
  </defs>
</svg>

<!-- ============ HEADER ============ -->
<header>
  <div class="wrap nav">
    <a class="logo" href="#top" aria-label="Lumen Cycles home">
      <svg viewBox="0 0 40 26" aria-hidden="true">
        <circle cx="8" cy="18" r="6.5" fill="none" stroke="#1b1c17" stroke-width="2"/>
        <rect x="14" y="6" width="14" height="10" rx="2" fill="none" stroke="#24422f" stroke-width="2"/>
        <circle cx="33" cy="18" r="6.5" fill="none" stroke="#1b1c17" stroke-width="2"/>
      </svg>
      <span><b>Lumen Cycles</b><small>KØBENHAVN · EST. 2013</small></span>
    </a>
    <ul class="navlinks" id="navlinks">
      <li><a href="#models">Models</a></li>
      <li><a href="#craft">The workshop</a></li>
      <li><a href="#build">Build yours</a></li>
      <li><a href="#stories">Stories</a></li>
      <li><a href="#faq">FAQ</a></li>
      <li><a class="btn" href="#contact">Book a consultation</a></li>
    </ul>
    <button class="burger" id="burger" aria-label="Toggle menu" aria-expanded="false" aria-controls="navlinks">
      <span></span><span></span><span></span>
    </button>
  </div>
</header>

<main id="top">

<!-- ============ HERO ============ -->
<section class="hero">
  <div class="wrap hero-grid">
    <div>
      <span class="badge"><span class="dot"></span> Now booking builds for autumn delivery — 6 slots left</span>
      <h1>The last mile,<br>built to <em>outlast</em><br>the first one.</h1>
      <p class="lede">Lumen Cycles builds custom cargo bikes to order in our workshop on Nørrebrogade. Hand-welded frames, Danish components, and a fit tuned to how you actually use your bike — school run, trades, or both.</p>
      <div class="hero-ctas">
        <a class="btn" href="#build">Build yours <span class="arr">→</span></a>
        <a class="btn ghost" href="#contact">Visit the workshop</a>
      </div>
      <div class="hero-stats">
        <div class="stat"><b>1,400+</b><span>Bikes delivered</span></div>
        <div class="stat"><b>5 years</b><span>Frame warranty</span></div>
        <div class="stat"><b>8–10 wks</b><span>Build lead time</span></div>
        <div class="stat"><b>96%</b><span>EU-made parts</span></div>
      </div>
    </div>
    <div class="hero-art reveal">
      <span class="hero-tag">Hand-welded in Nørrebro</span>
      <figure class="framebox">
        <svg viewBox="0 0 680 360" role="img" aria-label="Line drawing of a Lumen longjohn cargo bike">
          <use href="#bike-art"></use>
        </svg>
        <figcaption><span>Lumen One · Skovgrøn / natural ply</span><span>Ref. LC-01</span></figcaption>
      </figure>
    </div>
  </div>
</section>

<!-- ============ PRESS STRIP ============ -->
<div class="press" aria-label="Press">
  <div class="wrap">
    <span>As seen in</span>
    <strong>CYKEL &amp; BY</strong>
    <strong>NØRREBRO POST</strong>
    <strong>SKANDINAVIA DESIGN</strong>
    <strong>MOBILITET NU</strong>
    <strong>STADSBYGNING</strong>
  </div>
</div>

<!-- ============ MODELS ============ -->
<section id="models">
  <div class="wrap">
    <p class="eyebrow reveal">The range</p>
    <h2 class="reveal">Three platforms. One workshop.</h2>
    <p class="lede reveal">Every bike starts from one of three proven frames — then gets welded, painted and fitted to you. No showroom models, no compromise build sheets.</p>

    <div class="models-grid">
      <article class="model reveal">
        <span class="num">LC-02 / LINE</span>
        <h3>Lumen Line</h3>
        <p>A longtail for the fast errands — one child, two crates, one grocery run that used to need a car.</p>
        <ul>
          <li><span>Payload</span><span>180 kg</span></li>
          <li><span>Weight</span><span>24.5 kg</span></li>
          <li><span>Gears</span><span>Enviolo hub</span></li>
          <li><span>Lead time</span><span>6–8 weeks</span></li>
        </ul>
        <div class="price"><b>from €2,850</b><a href="#build">Configure →</a></div>
      </article>

      <article class="model featured reveal">
        <span class="tag">Most ordered</span>
        <span class="num">LC-01 / ONE</span>
        <h3>Lumen One</h3>
        <p>The city longjohn. Low deck, tight turning, room for two kids and a full week of groceries.</p>
        <ul>
          <li><span>Payload</span><span>200 kg</span></li>
          <li><span>Weight</span><span>31 kg</span></li>
          <li><span>Gears</span><span>14-speed + hub</span></li>
          <li><span>Lead time</span><span>8–10 weeks</span></li>
        </ul>
        <div class="price"><b>from €3,400</b><a href="#build">Configure →</a></div>
      </article>

      <article class="model reveal">
        <span class="num">LC-03 / HAUL</span>
        <h3>Lumen Haul</h3>
        <p>Reinforced for trades: flatbed, tie-downs, and a frame we weld to 1.5× load spec. Used by carpenters, bakers and one very happy florist.</p>
        <ul>
          <li><span>Payload</span><span>260 kg</span></li>
          <li><span>Deck</span><span>Flatbed 90 cm</span></li>
          <li><span>Gears</span><span>Internal 8 + reduction</span></li>
          <li><span>Lead time</span><span>10–12 weeks</span></li>
        </ul>
        <div class="price"><b>from €4,150</b><a href="#build">Configure →</a></div>
      </article>
    </div>
  </div>
</section>

<!-- ============ CRAFT / PROCESS ============ -->
<section class="craft" id="craft">
  <div class="wrap">
    <p class="eyebrow reveal">The workshop</p>
    <h2 class="reveal">Slow made, on purpose.</h2>
    <p class="lede reveal">We are eleven people, four welding benches and one rule: no bike leaves Nørrebro until it has been ridden — and adjusted — by the person who ordered it.</p>

    <div class="steps">
      <div class="step reveal"><span class="n">01</span><h3>Conversation</h3><p>Forty-five minutes in the workshop or a video call. You ride, we measure, we sketch. Your build sheet is agreed before a single tube is cut.</p></div>
      <div class="step reveal"><span class="n">02</span><h3>Build</h3><p>Frame welded, mitred and painted in-house. Wheels laced and trued to ±0.5&nbsp;mm. You get photographs at the paint stage — the good part.</p></div>
      <div class="step reveal"><span class="n">03</span><h3>Fitting &amp; handover</h3><p>Saddle height, bar sweep, seat positions, gear mapping. Two full hours, no rush. We hand over a service book and a wrench you can keep.</p></div>
      <div class="step reveal"><span class="n">04</span><h3>For the long run</h3><p>Free adjustments for life, service at cost of parts, and a buy-back offer when your kids outgrow the box. Frames guaranteed five years.</p></div>
    </div>

    <div class="craft-quote reveal">
      <p>“A cargo bike is the most-used object in your house after the sofa. We build it like furniture, and we service it like a car.”</p>
      <span class="who">Mikkel Ravn<br>Founder &amp; framebuilder</span>
    </div>
  </div>
</section>

<!-- ============ CONFIGURATOR ============ -->
<section id="build">
  <div class="wrap">
    <p class="eyebrow reveal">Build yours</p>
    <h2 class="reveal">Start with the Lumen One.</h2>
    <p class="lede reveal">A first sketch of your bike. Choose below and the drawing updates — we'll turn it into a firm quote and build sheet at your consultation.</p>

    <div class="config-grid">
      <div>
        <div class="optgroup reveal">
          <h4>Frame paint — choose one</h4>
          <div class="swatches" id="frameSwatches" role="group" aria-label="Frame paint"></div>
        </div>
        <div class="optgroup reveal">
          <h4>Cargo box finish</h4>
          <div class="swatches" id="boxSwatches" role="group" aria-label="Box finish"></div>
        </div>
        <div class="optgroup reveal">
          <h4>Drive</h4>
          <div class="pills" id="motorPills" role="group" aria-label="Drive"></div>
        </div>
        <div class="optgroup reveal">
          <h4>Seating</h4>
          <div class="pills" id="seatPills" role="group" aria-label="Seating"></div>
        </div>
        <div class="optgroup reveal">
          <h4>Extras</h4>
          <div class="pills" id="extraPills" role="group" aria-label="Extras"></div>
        </div>

        <div class="summary reveal" aria-live="polite">
          <h4>Your build, so far</h4>
          <dl id="summaryRows"></dl>
          <div class="total"><span>Estimated total</span><b id="totalOut">€3,400</b></div>
          <p class="note" id="rangeNote">Final price confirmed at consultation. Includes assembly, fitting and 5-year frame warranty.</p>
          <button class="btn" id="reserveBtn" type="button">Reserve a build slot — €150 <span class="arr">→</span></button>
        </div>
      </div>

      <div class="config-stage reveal">
        <figure class="framebox">
          <svg viewBox="0 0 680 360" role="img" aria-label="Live preview of your configured cargo bike">
            <use href="#bike-art"></use>
          </svg>
          <figcaption><span>Live preview — Lumen One</span><span id="stageRef">LC-01</span></figcaption>
        </figure>
      </div>
    </div>
  </div>
</section>

<!-- ============ TESTIMONIALS ============ -->
<section id="stories" style="padding-top:0">
  <div class="wrap">
    <p class="eyebrow reveal">Owners</p>
    <h2 class="reveal">1,400 deliveries and counting.</h2>

    <div class="quotes">
      <article class="quote reveal">
        <span class="stars" aria-label="5 out of 5 stars">★★★★★</span>
        <p>“Two kids, one dog and the weeklyMARKET. Three years in, not one warranty claim — and the workshop still waves us in for a free tune-up.”</p>
        <div class="who"><i>C</i><div><b>Charlotte B.</b><span>Østerbro · Lumen One since 2022</span></div></div>
      </article>
      <article class="quote reveal">
        <span class="stars" aria-label="5 out of 5 stars">★★★★★</span>
        <p>“Mikkel welded our flatbed to carry 200 kg of bakery goods a day. It has replaced a diesel van and paid for itself in seven months.”</p>
        <div class="who"><i>M</i><div><b>Mats &amp; Freja</b><span>Valby · Lumen Haul</span></div></div>
      </article>
      <article class="quote reveal">
        <span class="stars" aria-label="5 out of 5 stars">★★★★★</span>
        <p>“I expected a sales pitch. I got a two-hour fitting, a sketch of my bike, and photographs while it was being painted. Worth every euro.”</p>
        <div class="who"><i>J</i><div><b>Jonas H.</b><span>Nørrebro · Lumen Line</span></div></div>
      </article>
    </div>
  </div>
</section>

<!-- ============ CONTACT ============ -->
<section class="contact" id="contact">
  <div class="wrap">
    <p class="eyebrow reveal">Visit us</p>
    <h2 class="reveal">The kettle is always on.</h2>
    <p class="lede reveal">Book a consultation, a test ride, or just come by the workshop on a Friday. We'll talk cargo, kids and Copenhagen hills.</p>

    <div class="contact-grid">
      <div class="info reveal">
        <dl>
          <div class="row"><dt>Workshop</dt><dd>Nørrebrogade 118, 2200 København N</dd></div>
          <div class="row"><dt>Hours</dt><dd>Mon–Fri 10–18 · Sat 10–14<br>Closed Sundays &amp; public holidays</dd></div>
          <div class="row"><dt>Phone</dt><dd><a href="tel:+4535550118">+45 35 55 01 18</a></dd></div>
          <div class="row"><dt>Email</dt><dd><a href="mailto:hej@lumencycles.dk">hej@lumencycles.dk</a></dd></div>
          <div class="row"><dt>Test rides</dt><dd>Fridays 15–18, no appointment needed</dd></div>
        </dl>
      </div>

      <form id="contactForm" novalidate class="reveal">
        <div class="cols">
          <div class="field"><label for="fName">Name</label><input id="fName" name="name" type="text" placeholder="Anna Holm" required></div>
          <div class="field"><label for="fEmail">Email</label><input id="fEmail" name="email" type="email" placeholder="anna@example.dk" required></div>
        </div>
        <div class="field">
          <label for="fTopic">I'm interested in</label>
          <select id="fTopic" name="topic">
            <option>A consultation for a custom build</option>
            <option>A test ride</option>
            <option>Service or repair for my Lumen</option>
            <option>Something else</option>
          </select>
        </div>
        <div class="field"><label for="fMsg">Tell us about your bike</label><textarea id="fMsg" name="message" placeholder="Two kids (4 and 7), a hilly neighborhood, and a bike shelf that's just the right size…"></textarea></div>
        <button class="btn" type="submit">Send message <span class="arr">→</span></button>
        <div class="form-msg" id="formMsg" role="status">Tak for din besked — thanks! We reply within one working day, usually much sooner. If it's urgent, call the workshop.</div>
      </form>
    </div>
  </div>
</section>

<!-- ============ FAQ ============ -->
<section id="faq">
  <div class="wrap">
    <p class="eyebrow reveal">Good questions</p>
    <h2 class="reveal">Before you write to us.</h2>

    <div class="faq-list reveal">
      <details>
        <summary>How long is the wait for a custom build?</summary>
        <p>Eight to ten weeks for a Lumen One, six to eight for a Line, ten to twelve for a Haul. Your €150 build-slot deposit locks your place in the welding schedule and is deducted from the final price. The deposit is refundable up to the day your frame goes on the bench.</p>
      </details>
      <details>
        <summary>Can I test ride before committing?</summary>
        <p>Yes — we keep demo bikes of all three platforms at the workshop, and test rides run every Friday afternoon, 15–18. Bring your family and whatever you usually carry; we'll set the demo up the way your build would be.</p>
      </details>
      <details>
        <summary>What does the warranty actually cover?</summary>
        <p>Five years on the frame and fork — including welds — against any manufacturing defect. Drivetrain and electronic components carry their manufacturers' warranties (typically two years), which we handle for you. Adjustments, safety checks and fitting changes are free for the life of the bike.</p>
      </details>
      <details>
        <summary>Where do the components come from?</summary>
        <p>Frames, boxes, wheels and paint are made by us in Copenhagen. We fit Bosch or Shimanogroup? no — we fit Bosch and Shimano drivetrains, Schwalbe tyres and premium German and Danish components. 96% of the bike by value is EU-made, and we publish every supplier on your build sheet.</p>
      </details>
      <details>
        <summary>Do you deliver outside Copenhagen?</summary>
        <p>We deliver and fit anywhere in Denmark, and ship complete bikes across the EU and UK in a crate we build ourselves. Within Greater Copenhagen, delivery is included; elsewhere it's quoted at cost.</p>
      </details>
      <details>
        <summary>What happens when the kids grow up?</summary>
        <p>Seats and canopies swap out, and the box keeps working as a cargo box. If you ever want out, we make a standing buy-back offer on frames in good condition, which we refurbish and re-sell with a workshop warranty.</p>
      </details>
    </div>
  </div>
</section>

</main>

<!-- ============ FOOTER ============ -->
<footer>
  <div class="wrap">
    <div class="foot-grid">
      <div>
        <a class="logo" href="#top" aria-label="Lumen Cycles home">
          <svg viewBox="0 0 40 26" aria-hidden="true">
            <circle cx="8" cy="18" r="6.5" fill="none" stroke="#1b1c17" stroke-width="2"/>
            <rect x="14" y="6" width="14" height="10" rx="2" fill="none" stroke="#24422f" stroke-width="2"/>
            <circle cx="33" cy="18" r="6.5" fill="none" stroke="#1b1c17" stroke-width="2"/>
          </svg>
          <span><b>Lumen Cycles</b><small>KØBENHAVN · EST. 2013</small></span>
        </a>
        <p>Custom cargo bikes, hand-built to order on Nørrebrogade. Eleven people, one bench at a time.</p>
      </div>
      <div class="foot-col">
        <h5>Explore</h5>
        <a href="#models">Models</a>
        <a href="#craft">The workshop</a>
        <a href="#build">Build yours</a>
        <a href="#faq">FAQ</a>
      </div>
      <div class="foot-col">
        <h5>Workshop</h5>
        <a href="tel:+4535550118">+45 35 55 01 18</a>
        <a href="mailto:hej@lumencycles.dk">hej@lumencycles.dk</a>
        <a href="#contact">Nørrebrogade 118, 2200 København N</a>
      </div>
      <div class="foot-col">
        <h5>Fine print</h5>
        <a href="#faq">Warranty terms</a>
        <a href="#faq">Returns &amp; buy-back</a>
        <a href="#faq">Delivery areas</a>
      </div>
    </div>
    <div class="legal">
      <span>© 2025 Lumen Cycles ApS · CVR 35 22 01 18 · Nørrebrogade 118, København</span>
      <span>Prices incl. 25% VAT · Built to order, made in Denmark</span>
    </div>
  </div>
</footer>

<script>
(function(){
  "use strict";

  /* ---------- Mobile nav ---------- */
  var burger = document.getElementById('burger');
  var navlinks = document.getElementById('navlinks');
  burger.addEventListener('click', function(){
    var open = navlinks.classList.toggle('open');
    burger.setAttribute('aria-expanded', open);
  });
  navlinks.addEventListener('click', function(e){
    if(e.target.tagName === 'A'){ navlinks.classList.remove('open'); burger.setAttribute('aria-expanded','false'); }
  });

  /* ---------- Scroll reveal ---------- */
  var revealEls = document.querySelectorAll('.reveal');
  if('IntersectionObserver' in window){
    var io = new IntersectionObserver(function(entries){
      entries.forEach(function(en){
        if(en.isIntersecting){ en.target.classList.add('in'); io.unobserve(en.target); }
      });
    },{threshold:.12, rootMargin:'0px 0px -40px 0px'});
    revealEls.forEach(function(el){ io.observe(el); });
  } else {
    revealEls.forEach(function(el){ el.classList.add('in'); });
  }

  /* ---------- Configurator ---------- */
  var BASE = 3400;
  var state = { frame:'ink', box:'ply', motor:'none', seats:'bench', extras:[] };

  var FRAMES = [
    {id:'ink',  label:'Sort Ink',      color:'#1d1d1b', price:0},
    {id:'pine', label:'Skovgrøn',      color:'#2c4a38', price:180},
    {id:'falu', label:'Falurød',       color:'#8e3b2e', price:180},
    {id:'sand', label:'Sandsort',      color:'#a98f66', price:180},
    {id:'chalk',label:'Kridt Hvid',    color:'#d8d2c2', price:220}
  ];
  var BOXES = [
    {id:'ply',    label:'Natural ply',  color:'#e3d3b3', price:0},
    {id:'smoked', label:'Smoked oak',   color:'#5a4632', price:140},
    {id:'falu',   label:'Falurød stain',color:'#9c4a38', price:140},
    {id:'black',  label:'Svorted ask',  color:'#33302a', price:160}
  ];
  var MOTORS = [
    {id:'none',    label:'Pure pedal',            price:0},
    {id:'bosch',   label:'Bosch Performance Cargo', price:950},
    {id:'bosch750',label:'Bosch + 750Wh range ext.',price:1350}
  ];
  var SEATS = [
    {id:'bench',    label:'Kids bench (2)',   price:0},
    {id:'cockpit',  label:'Front cockpit',    price:220},
    {id:'rear',     label:'Adult rear bench', price:160}
  ];
  var EXTRAS = [
    {id:'cover',  label:'Weather cover',        price:120},
    {id:'strap',  label:'Cargo strap kit',      price:45},
    {id:'lock',   label:'Abus frame-lock set',  price:90},
    {id:'pump',   label:'Floor-pump & tools',   price:60}
  ];

  var fmt = function(n){ return '€' + n.toLocaleString('de-DE'); };
  var root = document.documentElement;

  function renderSwatches(containerId, items, key){
    var c = document.getElementById(containerId);
    c.innerHTML = '';
    items.forEach(function(it){
      var b = document.createElement('button');
      b.type = 'button';
      b.className = 'swatch';
      b.style.background = it.color;
      b.title = it.label + (it.price ? ' (+' + fmt(it.price) + ')' : ' (included)');
      b.setAttribute('aria-label', it.label + (it.price ? ', plus ' + fmt(it.price) : ', included'));
      b.setAttribute('aria-pressed', state[key] === it.id);
      b.addEventListener('click', function(){
        state[key] = it.id;
        renderAll();
      });
      c.appendChild(b);
    });
  }

  function renderPills(containerId, items, key, multi){
    var c = document.getElementById(containerId);
    c.innerHTML = '';
    items.forEach(function(it){
      var b = document.createElement('button');
      b.type = 'button';
      b.className = 'pill';
      b.innerHTML = it.label + (it.price ? ' <small>+' + fmt(it.price) + '</small>' : ' <small>included</small>');
      var active = multi ? state[key].indexOf(it.id) > -1 : state[key] === it.id;
      b.setAttribute('aria-pressed', active);
      b.addEventListener('click', function(){
        if(multi){
          var i = state[key].indexOf(it.id);
          if(i > -1){ state[key].splice(i,1); } else { state[key].push(it.id); }
        } else {
          state[key] = it.id;
        }
        renderAll();
      });
      c.appendChild(b);
    });
  }

  function find(list,id){ for(var i=0;i<list.length;i++){ if(list[i].id===id) return list[i]; } return list[0]; }

  function summaryLine(dl, label, value){
    var row = document.createElement('div');
    row.className = 'row';
    row.innerHTML = '<span>'+label+'</span><span>'+value+'</span>';
    dl.appendChild(row);
  }

  function renderAll(){
    renderSwatches('frameSwatches', FRAMES, 'frame');
    renderSwatches('boxSwatches', BOXES, 'box');
    renderPills('motorPills', MOTORS, 'motor', false);
    renderPills('seatPills', SEATS, 'seats', false);
    renderPills('extraPills', EXTRAS, 'extras', true);

    var frame = find(FRAMES, state.frame);
    var box   = find(BOXES, state.box);
    var motor = find(MOTORS, state.motor);
    var seat  = find(SEATS, state.seats);

    /* live artwork */
    root.style.setProperty('--bike-frame', frame.color === '#d8d2c2' ? '#4a4a44' : frame.color);
    root.style.setProperty('--bike-box', box.color);

    /* total */
    var total = BASE + frame.price + box.price + motor.price + seat.price;
    state.extras.forEach(function(id){ total += find(EXTRAS,id).price; });

    /* summary */
    var dl = document.getElementById('summaryRows');
    dl.innerHTML = '';
    summaryLine(dl, 'Base — Lumen One', fmt(BASE));
    summaryLine(dl, 'Frame: ' + frame.label, frame.price ? '+' + fmt(frame.price) : 'included');
    summaryLine(dl, 'Box: ' + box.label, box.price ? '+' + fmt(box.price) : 'included');
    summaryLine(dl, 'Drive: ' + motor.label, motor.price ? '+' + fmt(motor.price) : 'included');
    summaryLine(dl, 'Seating: ' + seat.label, seat.price ? '+' + fmt(seat.price) : 'included');
    state.extras.forEach(function(id){
      var ex = find(EXTRAS,id);
      summaryLine(dl, ex.label, '+' + fmt(ex.price));
    });
    document.getElementById('totalOut').textContent = fmt(total);

    /* contextual notes */
    var note = document.getElementById('rangeNote');
    note.textContent = (state.motor === 'none'
      ? 'Pure pedal build — light and simple. '
      : 'Assisted range: up to ' + (state.motor === 'bosch750' ? '120' : '80') + ' km per charge. ')
      + 'Final price confirmed at consultation. Includes assembly, fitting and 5-year frame warranty.';
  }

  renderAll();

  /* ---------- Reserve slot → prefill contact ---------- */
  document.getElementById('reserveBtn').addEventListener('click', function(){
    var frame = find(FRAMES, state.frame), box = find(BOXES, state.box),
        motor = find(MOTORS, state.motor), seat = find(SEATS, state.seats);
    var extras = state.extras.map(function(id){ return find(EXTRAS,id).label; }).join(', ') || 'none';
    var t = document.getElementById('totalOut').textContent;
    document.getElementById('fMsg').value =
      'I’d like to reserve a build slot.\n' +
      'My sketch: Lumen One — frame ' + frame.label + ', box ' + box.label +
      ', drive ' + motor.label + ', seating ' + seat.label +
      ', extras: ' + extras + '. Estimated total ' + t + '.';
    document.getElementById('fTopic').selectedIndex = 0;
    document.getElementById('contact').scrollIntoView({behavior:'smooth'});
    setTimeout(function(){ document.getElementById('fName').focus({preventScroll:true}); }, 650);
  });

  /* ---------- Contact form ---------- */
  var form = document.getElementById('contactForm');
  form.addEventListener('submit', function(e){
    e.preventDefault();
    var ok = true;
    ['fName','fEmail'].forEach(function(id){
      var el = document.getElementById(id);
      var valid = el.value.trim().length > 1 && (id !== 'fEmail' || /\S+@\S+\.\S+/.test(el.value));
      el.classList.toggle('err', !valid);
      if(!valid) ok = false;
    });
    if(!ok) return;
    document.getElementById('formMsg').classList.add('show');
    form.querySelector('button[type=submit]').textContent = 'Message sent ✓';
  });
  ['fName','fEmail'].forEach(function(id){
    document.getElementById(id).addEventListener('input', function(){ this.classList.remove('err'); });
  });
})();
</script>
</body>
</html>

Compare

Other runs