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

MiMo v2.6 FlashXiaomi

Network offOpen alone (new tab)

Run details

Model
xiaomi/mimo-v2.6-flash
Route
OpenRouter API
Served by
Relace
Effort
model default
Limits
60 min · 131,072 output tokens (model max)
Date
24 Oct 2026
Time
8 min 49 s
Size
72 kB
Tokens
95 in, 45,961 out (16,283 thinking)
List price
$0.013 at today's price ($0.14 in / $0.28 out per M)
Paid
$0.013

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

72 kB 1,348 lines Raw

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Lumen Cycles — Custom cargo bikes, built in Copenhagen</title>
<meta name="description" content="Lumen Cycles welds, paints and assembles custom cargo bikes to order in our Nørrebro workshop. Long-johns and trikes from €3,980, delivered across Scandinavia.">
<meta name="theme-color" content="#F4F0E7">
<style>
/* ============ base ============ */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
:root{
  --paper:#F4F0E7;
  --paper-2:#EAE4D7;
  --paper-3:#DFD8C8;
  --ink:#1B1A17;
  --ink-2:#2A2823;
  --muted:#6E6A5F;
  --line:rgba(27,26,23,.15);
  --line-strong:rgba(27,26,23,.28);
  --accent:#C8501C;
  --accent-lt:#E8703A;
  --wood:#E3CFA6;
  --sans:"Helvetica Neue",Helvetica,Arial,"Segoe UI",Roboto,sans-serif;
  --mono:ui-monospace,SFMono-Regular,"SF Mono",Menlo,Consolas,"Liberation Mono",monospace;
  --serif:Iowan Old Style,Palatino,"Palatino Linotype",Georgia,serif;
  --hdr:72px;
  --max:1240px;
  --ease:cubic-bezier(.16,1,.3,1);
}
html{scroll-behavior:smooth}
body{
  margin:0;background:var(--paper);color:var(--ink);
  font-family:var(--sans);font-size:17px;line-height:1.6;
  -webkit-font-smoothing:antialiased;overflow-x:hidden;
}
img,svg{display:block;max-width:100%}
a{color:inherit;text-decoration:none}
h1,h2,h3,h4{margin:0;font-weight:700;letter-spacing:-.035em;line-height:1.02}
p{margin:0}
ul{margin:0;padding:0;list-style:none}
button,input,select,textarea{font:inherit;color:inherit}
::selection{background:var(--ink);color:var(--paper)}
:focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.wrap{width:min(100% - 2.5rem,var(--max));margin-inline:auto}
section{position:relative}
[id]{scroll-margin-top:calc(var(--hdr) + 18px)}

/* ============ type helpers ============ */
.eyebrow{
  font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;text-transform:uppercase;
  color:var(--accent);display:flex;align-items:center;gap:.7rem;margin-bottom:1.4rem;
}
.eyebrow::before{content:"";width:26px;height:1px;background:currentColor;flex:none}
.h-xl{font-size:clamp(2.9rem,7.4vw,5.6rem)}
.h-lg{font-size:clamp(2.2rem,4.6vw,3.5rem)}
.h-md{font-size:clamp(1.55rem,2.4vw,2rem);letter-spacing:-.03em}
.lead{font-size:clamp(1.02rem,1.35vw,1.2rem);color:#403D36;max-width:56ch}
.mono{font-family:var(--mono);font-size:.74rem;letter-spacing:.16em;text-transform:uppercase}
.muted{color:var(--muted)}
.rule{height:1px;background:var(--line);border:0;margin:0}
.sec{padding:clamp(4.5rem,9vw,8rem) 0}
.sec-head{display:grid;grid-template-columns:1fr;gap:1.4rem;margin-bottom:3.2rem}
@media(min-width:900px){
  .sec-head{grid-template-columns:1.15fr .85fr;gap:3rem;align-items:end}
}

/* ============ buttons / links ============ */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:.6rem;
  padding:.95rem 1.7rem;border-radius:100px;border:1px solid var(--ink);
  background:var(--ink);color:var(--paper);font-size:.94rem;font-weight:600;
  letter-spacing:-.01em;cursor:pointer;position:relative;overflow:hidden;
  transition:background .35s var(--ease),color .35s var(--ease),transform .35s var(--ease);
}
.btn:hover{background:var(--accent);border-color:var(--accent);transform:translateY(-2px)}
.btn--ghost{background:transparent;color:var(--ink)}
.btn--ghost:hover{background:var(--ink);color:var(--paper);border-color:var(--ink)}
.btn--light{background:var(--paper);color:var(--ink);border-color:var(--paper)}
.btn--light:hover{background:var(--accent);border-color:var(--accent);color:#fff}
.btn .arw{transition:transform .35s var(--ease)}
.btn:hover .arw{transform:translateX(4px)}
.link{
  display:inline-flex;align-items:center;gap:.5rem;font-size:.9rem;font-weight:600;
  padding-bottom:3px;border-bottom:1px solid var(--line-strong);cursor:pointer;
  background:none;border-left:0;border-right:0;border-top:0;transition:.3s
}
.link:hover{border-color:var(--accent);color:var(--accent);gap:.85rem}

/* ============ progress + header ============ */
#progress{position:fixed;top:0;left:0;height:3px;width:0;background:var(--accent);z-index:120;transition:width .1s linear}
.site-header{
  position:fixed;top:0;left:0;right:0;z-index:100;height:var(--hdr);
  display:flex;align-items:center;
  background:rgba(244,240,231,0);border-bottom:1px solid transparent;
  transition:background .4s var(--ease),border-color .4s var(--ease),backdrop-filter .4s;
}
.site-header.is-stuck,body.nav-open .site-header{background:rgba(244,240,231,.93);border-bottom-color:var(--line);backdrop-filter:blur(9px)}
.hd{display:flex;align-items:center;justify-content:space-between;gap:2rem;width:min(100% - 2.5rem,var(--max));margin-inline:auto}
.brand{display:flex;align-items:center;gap:.7rem;letter-spacing:-.04em}
.brand svg{width:30px;height:30px;flex:none}
.brand b{font-size:1.06rem;font-weight:700;letter-spacing:-.045em}
.brand span{font-family:var(--mono);font-size:.58rem;letter-spacing:.22em;text-transform:uppercase;color:var(--muted);display:block;margin-top:2px}
.nav{display:flex;align-items:center;gap:2rem}
.nav a{font-size:.9rem;position:relative;padding:.3rem 0}
.nav a::after{content:"";position:absolute;left:0;bottom:0;height:1px;width:0;background:var(--accent);transition:width .35s var(--ease)}
.nav a:hover::after{width:100%}
.hd-cta{display:flex;align-items:center;gap:1rem}
.nav-toggle{display:none;width:44px;height:44px;border:1px solid var(--line-strong);background:transparent;border-radius:50%;cursor:pointer;align-items:center;justify-content:center;flex-direction:column;gap:5px}
.nav-toggle i{display:block;width:16px;height:1.5px;background:var(--ink);transition:.35s var(--ease)}
body.nav-open .nav-toggle i:nth-child(1){transform:translateY(3.2px) rotate(45deg)}
body.nav-open .nav-toggle i:nth-child(2){transform:translateY(-3.2px) rotate(-45deg)}
@media(max-width:940px){
  .nav-toggle{display:flex}
  .nav{
    position:absolute;top:var(--hdr);left:0;right:0;flex-direction:column;align-items:flex-start;
    gap:.4rem;background:var(--paper);border-bottom:1px solid var(--line);
    padding:1rem 1.25rem 1.6rem;transform:translateY(-140%);transition:transform .45s var(--ease);
  }
  .nav a{font-size:1.15rem;font-weight:600;padding:.55rem 0;width:100%}
  body.nav-open .nav{transform:none}
  .hd-cta .btn{display:none}
}

/* ============ hero ============ */
.hero{padding-top:calc(var(--hdr) + clamp(3rem,7vw,5.5rem));padding-bottom:2rem;overflow:hidden}
.hero::before{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:linear-gradient(90deg,rgba(27,26,23,.055) 1px,transparent 1px);
  background-size:calc(100% / 6) 100%;
  -webkit-mask-image:linear-gradient(#000 0,transparent 78%);mask-image:linear-gradient(#000 0,transparent 78%);
}
.hero-grid{display:grid;gap:2.5rem;position:relative}
@media(min-width:960px){.hero-grid{grid-template-columns:1.35fr .65fr;gap:3.5rem;align-items:end}}
.hero h1{margin-bottom:1.5rem}
.hero h1 em{font-style:normal;color:var(--accent)}
.hero-actions{display:flex;flex-wrap:wrap;gap:.8rem;margin-top:2.1rem}
.hero-note{font-family:var(--mono);font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:1.6rem}
.hero-card{border:1px solid var(--line-strong);background:rgba(255,255,255,.4);padding:1.6rem}
.hero-card h3{font-size:1.15rem;margin-bottom:.15rem}
.hero-card .hc-price{font-family:var(--mono);font-size:1.65rem;letter-spacing:-.03em;margin:.9rem 0 1.1rem}
.hero-card ul li{display:flex;justify-content:space-between;gap:1rem;padding:.55rem 0;border-top:1px solid var(--line);font-size:.86rem}
.hero-card ul li span{color:var(--muted)}
.hero-card ul li b{font-weight:600}
.hero-card .link{margin-top:1.2rem}

.bike-stage{margin-top:clamp(2rem,5vw,3.5rem);position:relative}
.bike-stage svg{width:100%;height:auto;color:var(--ink);will-change:transform}
.dim{font-family:var(--mono);font-size:19px;letter-spacing:2.6px;fill:var(--muted);text-transform:uppercase}
.dimline{stroke:var(--accent);stroke-width:1.6}
.dimtick{stroke:var(--accent);stroke-width:1.6}

/* stats */
.stats{display:grid;grid-template-columns:repeat(2,1fr);gap:1px;background:var(--line);border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-top:3rem}
@media(min-width:760px){.stats{grid-template-columns:repeat(4,1fr)}}
.stat{background:var(--paper);padding:1.6rem 1.3rem}
.stat b{display:block;font-size:clamp(1.9rem,3.2vw,2.6rem);letter-spacing:-.05em;line-height:1;margin-bottom:.5rem}
.stat span{font-family:var(--mono);font-size:.66rem;letter-spacing:.17em;text-transform:uppercase;color:var(--muted)}

/* ============ marquee ============ */
.marquee{background:var(--ink);color:var(--paper);overflow:hidden;padding:.95rem 0;border-block:1px solid var(--ink)}
.mq-track{display:flex;width:max-content;animation:mq 44s linear infinite}
.mq-group{display:flex;align-items:center}
.mq-group span{font-family:var(--mono);font-size:.72rem;letter-spacing:.2em;text-transform:uppercase;padding-inline:1.6rem;white-space:nowrap;display:flex;align-items:center;gap:1.6rem}
.mq-group span::after{content:"";width:5px;height:5px;background:var(--accent);border-radius:50%;flex:none}
@keyframes mq{to{transform:translateX(-50%)}}
.marquee:hover .mq-track{animation-play-state:paused}

/* ============ models ============ */
.models{display:grid;gap:1.4rem}
@media(min-width:860px){.models{grid-template-columns:repeat(3,1fr)}}
.model{
  border:1px solid var(--line);background:linear-gradient(180deg,#FBF9F4,rgba(255,255,255,.25));
  padding:1.5rem 1.4rem 1.7rem;display:flex;flex-direction:column;
  transition:transform .5s var(--ease),box-shadow .5s var(--ease),border-color .5s var(--ease);
}
.model:hover{transform:translateY(-7px);border-color:var(--line-strong);box-shadow:0 26px 48px -30px rgba(27,26,23,.5)}
.model__tag{font-family:var(--mono);font-size:.62rem;letter-spacing:.2em;text-transform:uppercase;color:var(--accent);margin-bottom:.7rem}
.model__art{background:var(--paper-2);border:1px solid var(--line);padding:.4rem;color:var(--ink);overflow:hidden}
.model__art svg{width:100%;height:auto;transition:transform .7s var(--ease)}
.model:hover .model__art svg{transform:scale(1.035)}
.model__head{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:1.3rem}
.model__head h3{font-size:1.35rem}
.model__price{font-family:var(--mono);font-size:.86rem;white-space:nowrap}
.model p.desc{font-size:.92rem;color:#4B483F;margin-top:.7rem}
.spec{margin-top:1.2rem;border-top:1px solid var(--line)}
.spec li{display:flex;justify-content:space-between;gap:.8rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.83rem}
.spec li span{color:var(--muted)}
.spec li b{font-weight:600}
.model .link{margin-top:1.4rem;align-self:flex-start}

/* ============ process (dark) ============ */
.dark{background:var(--ink);color:var(--paper)}
.dark .lead{color:#B7B1A3}
.dark .rule{background:rgba(244,240,231,.16)}
.dark .eyebrow{color:var(--accent-lt)}
.steps{display:grid;gap:0;border-top:1px solid rgba(244,240,231,.18)}
@media(min-width:900px){.steps{grid-template-columns:repeat(4,1fr)}}
.step{padding:2rem 0 2.4rem;border-bottom:1px solid rgba(244,240,231,.18);position:relative}
@media(min-width:900px){
  .step{padding:2.4rem 2rem 0 0;border-bottom:0;border-right:1px solid rgba(244,240,231,.18)}
  .step:last-child{border-right:0}
  .step:not(:first-child){padding-left:2rem}
}
.step .num{font-family:var(--mono);font-size:.7rem;letter-spacing:.2em;color:var(--accent-lt);margin-bottom:1.6rem;display:block}
.step h3{font-size:1.4rem;margin-bottom:.7rem}
.step p{font-size:.92rem;color:#B7B1A3}
.step .dur{display:inline-block;margin-top:1.1rem;font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:#7E7969;border:1px solid rgba(244,240,231,.24);padding:.32rem .7rem;border-radius:100px}

/* ============ configurator ============ */
.cfg{display:grid;gap:2.4rem}
@media(min-width:1000px){.cfg{grid-template-columns:1.25fr .75fr;gap:3.2rem;align-items:start}}
fieldset{border:0;margin:0;padding:0;border-top:1px solid var(--line);padding-top:1.3rem;margin-bottom:1.7rem}
fieldset legend{display:flex;align-items:baseline;gap:.8rem;font-size:1.02rem;font-weight:700;letter-spacing:-.02em;padding:0}
fieldset legend .n{font-family:var(--mono);font-size:.66rem;letter-spacing:.18em;color:var(--accent);font-weight:400}
.opts{display:grid;gap:.55rem;margin-top:1.1rem}
@media(min-width:640px){.opts--2{grid-template-columns:1fr 1fr}}
.opt{position:relative;display:block;cursor:pointer}
.opt input{position:absolute;opacity:0;width:1px;height:1px}
.opt__b{
  display:flex;align-items:center;justify-content:space-between;gap:1rem;
  border:1px solid var(--line);background:rgba(255,255,255,.45);border-radius:8px;
  padding:.8rem .95rem;transition:.3s var(--ease);
}
.opt:hover .opt__b{border-color:var(--ink)}
.opt input:checked+.opt__b{background:var(--ink);border-color:var(--ink);color:var(--paper)}
.opt input:focus-visible+.opt__b{outline:2px solid var(--accent);outline-offset:2px}
.opt__b strong{display:block;font-size:.92rem;font-weight:600;letter-spacing:-.01em}
.opt__b em{display:block;font-style:normal;font-size:.76rem;color:var(--muted);margin-top:.15rem}
.opt input:checked+.opt__b em{color:#A9A497}
.delta{font-family:var(--mono);font-size:.76rem;white-space:nowrap;letter-spacing:.04em}
.swatches{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.1rem}
.sw{position:relative;cursor:pointer}
.sw input{position:absolute;opacity:0;width:1px;height:1px}
.sw__b{display:flex;align-items:center;gap:.6rem;border:1px solid var(--line);border-radius:100px;padding:.5rem .95rem .5rem .55rem;font-size:.85rem;transition:.3s}
.sw i{width:22px;height:22px;border-radius:50%;border:1px solid rgba(0,0,0,.18);display:block}
.sw input:checked+.sw__b{border-color:var(--ink);background:var(--ink);color:var(--paper)}
.sw input:focus-visible+.sw__b{outline:2px solid var(--accent);outline-offset:2px}

.summary{
  border:1px solid var(--ink);background:#FBF9F4;padding:1.5rem;
  position:sticky;top:calc(var(--hdr) + 20px);
}
.summary__art{background:var(--paper-2);border-bottom:1px solid var(--line);margin:-1.5rem -1.5rem 1.3rem;padding:.6rem;color:var(--ink)}
.summary h3{font-size:1.3rem}
.sum-list{margin-top:1.1rem;border-top:1px solid var(--line)}
.sum-list li{display:flex;justify-content:space-between;gap:.9rem;padding:.5rem 0;border-bottom:1px solid var(--line);font-size:.83rem}
.sum-list li span{color:var(--muted)}
.sum-list li b{font-family:var(--mono);font-size:.79rem;font-weight:500;white-space:nowrap}
.sum-total{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;margin-top:1.3rem}
.sum-total span{font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted)}
.sum-total b{font-size:clamp(1.9rem,3vw,2.4rem);letter-spacing:-.05em;font-variant-numeric:tabular-nums}
.sum-sub{display:flex;justify-content:space-between;font-size:.83rem;color:var(--muted);padding-top:.6rem;border-top:1px solid var(--line)}
.sum-note{font-family:var(--mono);font-size:.65rem;letter-spacing:.13em;text-transform:uppercase;color:var(--muted);margin-top:1.1rem;line-height:1.7}
.summary .btn{width:100%;margin-top:1.1rem}

/* ============ details grid ============ */
.details{background:var(--paper-2)}
.dgrid{display:grid;gap:1px;background:var(--line);border:1px solid var(--line)}
@media(min-width:640px){.dgrid{grid-template-columns:1fr 1fr}}
@media(min-width:1000px){.dgrid{grid-template-columns:repeat(3,1fr)}}
.dcell{background:var(--paper-2);padding:2rem 1.7rem;transition:background .4s}
.dcell:hover{background:#F1ECE1}
.dcell svg{width:52px;height:52px;color:var(--accent);margin-bottom:1.4rem}
.dcell h3{font-size:1.05rem;margin-bottom:.5rem}
.dcell p{font-size:.88rem;color:#4B483F}
.dcell .mono{margin-top:1rem;color:var(--muted);display:block;font-size:.64rem}

/* ============ quotes ============ */
.quotes{display:grid;gap:1.4rem}
@media(min-width:880px){.quotes{grid-template-columns:repeat(3,1fr)}}
.quote{border-top:2px solid var(--ink);padding-top:1.4rem;display:flex;flex-direction:column}
.quote blockquote{font-family:var(--serif);font-size:1.16rem;line-height:1.5;letter-spacing:-.01em;margin:0 0 1.4rem}
.who{display:flex;align-items:center;gap:.8rem;margin-top:auto}
.who i{width:38px;height:38px;border-radius:50%;background:var(--ink);color:var(--paper);display:grid;place-items:center;font-style:normal;font-family:var(--mono);font-size:.72rem;letter-spacing:.05em;flex:none}
.who b{display:block;font-size:.87rem}
.who span{display:block;font-family:var(--mono);font-size:.63rem;letter-spacing:.14em;text-transform:uppercase;color:var(--muted);margin-top:2px}

/* ============ workshop ============ */
.shop{display:grid;gap:2.4rem}
@media(min-width:960px){.shop{grid-template-columns:.95fr 1.05fr;gap:3.4rem;align-items:center}}
.map\boxed{border:1px solid var(--line-strong);background:var(--paper-2);position:relative;overflow:hidden}
.mapbox svg{width:100%;height:auto}
.map-badge{position:absolute;left:16px;bottom:16px;background:var(--paper);border:1px solid var(--line-strong);padding:.6rem .9rem;font-family:var(--mono);font-size:.64rem;letter-spacing:.16em;text-transform:uppercase}
.info li{display:grid;grid-template-columns:120px 1fr;gap:1rem;padding:1rem 0;border-top:1px solid var(--line);font-size:.92rem}
.info li:last-child{border-bottom:1px solid var(--line)}
.info li span{font-family:var(--mono);font-size:.66rem;letter-spacing:.16em;text-transform:uppercase;color:var(--muted);padding-top:.25rem}
.info li b{font-weight:600}
.info li em{font-style:normal;color:var(--muted);display:block;font-size:.85rem;font-weight:400;margin-top:.2rem}

/* ============ faq ============ */
.faq details{border-top:1px solid var(--line)}
.faq details:last-child{border-bottom:1px solid var(--line)}
.faq summary{
  list-style:none;cursor:pointer;padding:1.4rem 3rem 1.4rem 0;position:relative;
  font-size:1.06rem;font-weight:600;letter-spacing:-.02em;transition:color .3s
}
.faq summary::-webkit-details-marker{display:none}
.faq summary:hover{color:var(--accent)}
.faq summary::after,.faq summary::before{content:"";position:absolute;right:6px;top:50%;background:currentColor;transition:.35s var(--ease)}
.faq summary::before{width:15px;height:1.5px;transform:translateY(-50%)}
.faq summary::after{width:1.5px;height:15px;transform:translate(6.75px,-50%)}
.faq details[open] summary::after{transform:translate(6.75px,-50%) rotate(90deg);opacity:0}
.faq details[open] summary{color:var(--accent)}
.faq .ans{padding:0 3rem 1.6rem 0;font-size:.95rem;color:#4B483F;max-width:70ch}

/* ============ booking ============ */
.book-grid{display:grid;gap:2.6rem}
@media(min-width:960px){.book-grid{grid-template-columns:.85fr 1.15fr;gap:4rem}}
.field{position:relative;margin-bottom:1.2rem}
.field label{display:block;font-family:var(--mono);font-size:.64rem;letter-spacing:.17em;text-transform:uppercase;color:#8E887A;margin-bottom:.5rem}
.field input,.field select,.field textarea{
  width:100%;background:transparent;border:0;border-bottom:1px solid rgba(244,240,231,.3);
  padding:.65rem 0;font-size:1rem;color:var(--paper);border-radius:0;transition:border-color .3s
}
.field select option{background:#1B1A17;color:#F4F0E7}
.field input:focus,.field select:focus,.field textarea:focus{outline:0;border-color:var(--accent-lt)}
.field textarea{resize:vertical;min-height:88px}
.frow{display:grid;gap:1.2rem}
@media(min-width:620px){.frow{grid-template-columns:1fr 1fr}}
.err{color:#F0A183;font-size:.78rem;margin-top:.4rem;min-height:1em;font-family:var(--mono);letter-spacing:.06em}
.form-note{font-size:.8rem;color:#8E887A;margin-top:1.2rem;max-width:52ch}
.ok{
  border:1px solid var(--accent-lt);background:rgba(232,112,58,.1);padding:1.5rem;margin-top:1.4rem;display:none
}
.ok.show{display:block;animation:fadeUp .6s var(--ease) both}
.ok b{display:block;font-size:1.15rem;margin-bottom:.4rem}
.ok p{font-size:.9rem;color:#C9C3B5}
@keyframes fadeUp{from{opacity:0;transform:translateY(14px)}to{opacity:1;transform:none}}

/* ============ footer ============ */
footer{background:var(--ink);color:var(--paper);padding:4.5rem 0 2rem;border-top:1px solid rgba(244,240,231,.14)}
.fgrid{display:grid;gap:2.6rem}
@media(min-width:800px){.fgrid{grid-template-columns:1.4fr 1fr 1fr 1.3fr;gap:2rem}}
footer h4{font-family:var(--mono);font-size:.64rem;letter-spacing:.2em;text-transform:uppercase;color:#8E887A;font-weight:400;margin-bottom:1.2rem}
footer ul li{padding:.34rem 0;font-size:.9rem}
footer ul a:hover{color:var(--accent-lt)}
.fbrand p{font-size:.9rem;color:#A9A497;margin-top:1.1rem;max-width:34ch}
.fnews{display:flex;gap:.5rem;margin-top:.6rem;border-bottom:1px solid rgba(244,240,231,.3);padding-bottom:.5rem}
.fnews input{flex:1;background:transparent;border:0;font-size:.92rem;color:var(--paper);padding:.3rem 0}
.fnews input:focus{outline:0}
.fnews button{background:transparent;border:0;color:var(--accent-lt);cursor:pointer;font-family:var(--mono);font-size:.68rem;letter-spacing:.16em;text-transform:uppercase}
.fmsg{font-family:var(--mono);font-size:.64rem;letter-spacing:.13em;text-transform:uppercase;color:var(--accent-lt);margin-top:.7rem;min-height:1em}
.fbot{display:flex;flex-wrap:wrap;justify-content:space-between;gap:1rem;margin-top:3.5rem;padding-top:1.5rem;border-top:1px solid rgba(244,240,231,.16);font-family:var(--mono);font-size:.63rem;letter-spacing:.15em;text-transform:uppercase;color:#8E887A}

/* ============ reveal / motion ============ */
.reveal{opacity:0;transform:translateY(26px);transition:opacity .9s var(--ease),transform .9s var(--ease);transition-delay:var(--d,0s)}
.reveal.is-in{opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  *,*::before,*::after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
  .reveal{opacity:1;transform:none}
}
</style>
</head>
<body>

<div id="progress" aria-hidden="true"></div>

<!-- ===== SVG sprite ===== -->
<svg width="0" height="0" style="position:absolute;overflow:hidden" aria-hidden="true" focusable="false">
  <defs>
    <linearGradient id="woodg" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#E7D5B0"/><stop offset="1" stop-color="#D3BC93"/>
    </linearGradient>
    <linearGradient id="woodg2" x1="0" y1="0" x2="0" y2="1">
      <stop offset="0" stop-color="#DCC9A3"/><stop offset="1" stop-color="#C9B085"/>
    </linearGradient>
  </defs>

  <!-- BASE BIKE (frame, wheels, drivetrain) -->
  <symbol id="sym-base" viewBox="0 0 1040 440">
    <ellipse cx="525" cy="398" rx="430" ry="12" fill="currentColor" opacity=".08"/>
    <!-- rear wheel -->
    <g>
      <circle cx="850" cy="324" r="66" fill="none" stroke="currentColor" stroke-width="8"/>
      <circle cx="850" cy="324" r="54" fill="none" stroke="currentColor" stroke-width="3" opacity=".55"/>
      <g stroke="currentColor" stroke-width="1.5" opacity=".5">
        <line x1="850" y1="258" x2="850" y2="390"/>
        <line x1="850" y1="258" x2="850" y2="390" transform="rotate(30 850 324)"/>
        <line x1="850" y1="258" x2="850" y2="390" transform="rotate(60 850 324)"/>
        <line x1="850" y1="258" x2="850" y2="390" transform="rotate(90 850 324)"/>
        <line x1="850" y1="258" x2="850" y2="390" transform="rotate(120 850 324)"/>
        <line x1="850" y1="258" x2="850" y2="390" transform="rotate(150 850 324)"/>
      </g>
      <circle cx="850" cy="324" r="9" fill="currentColor"/>
    </g>
    <!-- front wheel -->
    <g>
      <circle cx="190" cy="338" r="52" fill="none" stroke="currentColor" stroke-width="8"/>
      <circle cx="190" cy="338" r="41" fill="none" stroke="currentColor" stroke-width="3" opacity=".55"/>
      <g stroke="currentColor" stroke-width="1.5" opacity=".5">
        <line x1="190" y1="286" x2="190" y2="390"/>
        <line x1="190" y1="286" x2="190" y2="390" transform="rotate(30 190 338)"/>
        <line x1="190" y1="286" x2="190" y2="390" transform="rotate(60 190 338)"/>
        <line x1="190" y1="286" x2="190" y2="390" transform="rotate(90 190 338)"/>
        <line x1="190" y1="286" x2="190" y2="390" transform="rotate(120 190 338)"/>
        <line x1="190" y1="286" x2="190" y2="390" transform="rotate(150 190 338)"/>
      </g>
      <circle cx="190" cy="338" r="7" fill="currentColor"/>
    </g>
    <!-- mudguard + reflector -->
    <path d="M776 316 A74 74 0 0 1 924 316" fill="none" stroke="currentColor" stroke-width="5" stroke-linecap="round"/>
    <rect x="918" y="300" width="9" height="24" fill="#C8501C"/>
    <!-- chain -->
    <g stroke="#7A756A" stroke-width="3">
      <line x1="668" y1="288" x2="850" y2="309"/>
      <line x1="668" y1="356" x2="850" y2="339"/>
    </g>
    <!-- frame -->
    <g stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round">
      <path d="M214 322 L668 322" stroke-width="11"/>
      <path d="M214 300 L592 300" stroke-width="5"/>
      <path d="M592 300 L592 322" stroke-width="6"/>
      <path d="M204 240 L214 302" stroke-width="11"/>
      <path d="M214 302 L190 338" stroke-width="7"/>
      <path d="M592 300 L578 146" stroke-width="7"/>
      <path d="M516 146 L636 146" stroke-width="7"/>
      <path d="M668 322 L724 166" stroke-width="9"/>
      <path d="M668 322 L850 324" stroke-width="7"/>
      <path d="M724 166 L850 324" stroke-width="6"/>
    </g>
    <g stroke="#C8501C" fill="none" stroke-linecap="round">
      <path d="M516 146 L536 146" stroke-width="14"/>
      <path d="M616 146 L636 146" stroke-width="14"/>
    </g>
    <!-- drivetrain -->
    <g fill="none" stroke="currentColor">
      <circle cx="668" cy="322" r="34" stroke-width="4"/>
      <circle cx="668" cy="322" r="8" fill="currentColor" stroke="none"/>
      <circle cx="850" cy="324" r="15" stroke-width="4"/>
    </g>
    <g stroke="currentColor" stroke-width="7" stroke-linecap="round">
      <path d="M668 322 L704 362"/>
      <path d="M668 322 L632 282"/>
    </g>
    <g stroke="currentColor" stroke-width="9" stroke-linecap="round">
      <path d="M696 368 L716 358"/>
      <path d="M624 276 L644 288"/>
    </g>
    <!-- saddle -->
    <path d="M698 156 q34 -17 64 -6 q-11 17 -40 15 q-16 1 -24 -9 z" fill="currentColor"/>
    <path d="M724 166 L724 152" stroke="currentColor" stroke-width="7"/>
    <!-- headlight -->
    <circle cx="232" cy="256" r="12" fill="#F4F0E7" stroke="currentColor" stroke-width="4"/>
    <path d="M244 256 L258 252 M244 256 L258 260" stroke="currentColor" stroke-width="2.5" opacity=".55"/>
  </symbol>

  <!-- L1 : plain oak box -->
  <symbol id="sym-l1" viewBox="0 0 1040 440">
    <use href="#sym-base" width="1040" height="440"/>
    <path d="M245 176 L570 168 L572 292 L247 294 Z" fill="url(#woodg)" stroke="currentColor" stroke-width="5" stroke-linejoin="round"/>
    <path d="M245 176 L570 168" stroke="currentColor" stroke-width="8" stroke-linecap="round"/>
    <g stroke="currentColor" stroke-width="3" opacity=".22">
      <path d="M247 235 L572 231"/><path d="M247 264 L572 261"/>
    </g>
    <text x="300" y="222" font-family="ui-monospace,Menlo,monospace" font-size="34" letter-spacing="9" fill="currentColor" opacity=".45">LUMEN</text>
  </symbol>

  <!-- L2 : family box with canopy + bench -->
  <symbol id="sym-l2" viewBox="0 0 1040 440">
    <use href="#sym-base" width="1040" height="440"/>
    <path d="M245 152 L570 144 L572 292 L247 294 Z" fill="url(#woodg)" stroke="currentColor" stroke-width="5" stroke-linejoin="round"/>
    <path d="M245 152 L570 144" stroke="currentColor" stroke-width="8" stroke-linecap="round"/>
    <g stroke="currentColor" stroke-width="6" fill="none" stroke-linecap="round">
      <path d="M262 152 Q404 52 556 143"/>
      <path d="M330 148 Q430 92 520 141" opacity=".45" stroke-width="4"/>
    </g>
    <path d="M262 152 Q404 52 556 143 Z" fill="#F4F0E7" opacity=".33"/>
    <g stroke="currentColor" stroke-width="3" opacity=".3">
      <path d="M247 236 L572 232"/><path d="M247 266 L572 263"/>
    </g>
    <path d="M247 236 L572 232" stroke="currentColor" stroke-width="9" opacity=".8"/>
    <g fill="#C8501C"><circle cx="330" cy="196" r="7"/><circle cx="470" cy="193" r="7"/></g>
  </symbol>

  <!-- T3 : trike, wide two-seat box + second front wheel -->
  <symbol id="sym-t3" viewBox="0 0 1040 440">
    <g opacity=".4">
      <circle cx="244" cy="344" r="46" fill="none" stroke="currentColor" stroke-width="7"/>
      <circle cx="244" cy="344" r="36" fill="none" stroke="currentColor" stroke-width="2.5"/>
      <g stroke="currentColor" stroke-width="1.4" opacity=".7">
        <line x1="244" y1="298" x2="244" y2="390"/>
        <line x1="244" y1="298" x2="244" y2="390" transform="rotate(45 244 344)"/>
        <line x1="244" y1="298" x2="244" y2="390" transform="rotate(90 244 344)"/>
        <line x1="244" y1="298" x2="244" y2="390" transform="rotate(135 244 344)"/>
      </g>
      <circle cx="244" cy="344" r="7" fill="currentColor"/>
    </g>
    <use href="#sym-base" width="1040" height="440"/>
    <path d="M245 166 L596 158 L598 296 L247 298 Z" fill="url(#woodg2)" stroke="currentColor" stroke-width="5" stroke-linejoin="round"/>
    <path d="M245 166 L596 158" stroke="currentColor" stroke-width="8" stroke-linecap="round"/>
    <path d="M247 240 L598 236" stroke="currentColor" stroke-width="10" opacity=".85"/>
    <g stroke="currentColor" stroke-width="3" opacity=".2"><path d="M247 270 L598 267"/></g>
    <g fill="#C8501C"><circle cx="330" cy="208" r="7"/><circle cx="480" cy="205" r="7"/></g>
  </symbol>
</svg>

<!-- ===== header ===== -->
<header class="site-header" id="header">
  <div class="hd">
    <a class="brand" href="#top" aria-label="Lumen Cycles, home">
      <svg viewBox="0 0 40 40" fill="none" aria-hidden="true">
        <circle cx="20" cy="20" r="17" stroke="#1B1A17" stroke-width="2.4"/>
        <path d="M20 6.5a13.5 13.5 0 0 0 0 27" stroke="#C8501C" stroke-width="3.4" stroke-linecap="round"/>
        <circle cx="20" cy="20" r="3.2" fill="#1B1A17"/>
      </svg>
      <span><b>Lumen Cycles</b><span>Est. 2014 · København</span></span>
    </a>
    <nav class="nav" id="nav" aria-label="Main">
      <a href="#bikes">The bikes</a>
      <a href="#process">How it's made</a>
      <a href="#configure">Configure</a>
      <a href="#workshop">Workshop</a>
      <a href="#faq">FAQ</a>
    </nav>
    <div class="hd-cta">
      <a class="btn" href="#book">Book a build slot <span class="arw">→</span></a>
      <button class="nav-toggle" id="navToggle" aria-label="Toggle menu" aria-expanded="false"><i></i><i></i></button>
    </div>
  </div>
</header>

<main id="top">

<!-- ===== hero ===== -->
<section class="hero">
  <div class="wrap">
    <div class="hero-grid">
      <div>
        <p class="eyebrow reveal">Custom cargo bikes · Nørrebro, København</p>
        <h1 class="h-xl reveal" style="--d:.08s">Built around<br>what you <em>carry.</em></h1>
        <p class="lead reveal" style="--d:.16s">Every Lumen is welded, painted and assembled to order in our nine-person workshop off Jægersborggade. Choose the frame, the box and the drive — six weeks later it's waiting outside your door.</p>
        <div class="hero-actions reveal" style="--d:.24s">
          <a class="btn" href="#configure">Configure your build <span class="arw">→</span></a>
          <a class="btn btn--ghost" href="#workshop">Visit the workshop</a>
        </div>
        <p class="hero-note reveal" style="--d:.3s">From €3,980 · 6-week build time · Delivered across DK, SE &amp; DE</p>
      </div>

      <aside class="hero-card reveal" style="--d:.2s">
        <p class="mono muted" style="margin-bottom:.7rem">Most ordered</p>
        <h3>Lumen L1 Long-John</h3>
        <p class="muted" style="font-size:.88rem">The daily workhorse. One rider, 200&nbsp;kg of payload, a box that swallows a week of groceries and two children.</p>
        <p class="hc-price">from €3,980</p>
        <ul>
          <li><span>Box volume</span><b>240 L</b></li>
          <li><span>Rated payload</span><b>200 kg</b></li>
          <li><span>Bike weight</span><b>34 kg</b></li>
          <li><span>Frame warranty</span><b>5 years</b></li>
        </ul>
        <a class="link" href="#bikes">See all three frames <span>→</span></a>
      </aside>
    </div>

    <!-- engineering drawing -->
    <div class="bike-stage reveal" style="--d:.18s">
      <svg id="heroBike" viewBox="0 0 1040 470" role="img" aria-label="Technical side elevation of the Lumen L1 long-john cargo bike with dimensions">
        <use href="#sym-l1" width="1040" height="440"/>
        <g>
          <line class="dimline" x1="190" y1="432" x2="440" y2="432"/>
          <line class="dimline" x1="600" y1="432" x2="850" y2="432"/>
          <line class="dimtick" x1="190" y1="420" x2="190" y2="444"/>
          <line class="dimtick" x1="850" y1="420" x2="850" y2="444"/>
          <text class="dim" x="520" y="439" text-anchor="middle">1,980 mm wheelbase</text>
        </g>
        <g>
          <line class="dimline" x1="245" y1="116" x2="360" y2="116"/>
          <line class="dimline" x1="470" y1="116" x2="570" y2="116"/>
          <line class="dimtick" x1="245" y1="104" x2="245" y2="128"/>
          <line class="dimtick" x1="570" y1="104" x2="570" y2="128"/>
          <text class="dim" x="415" y="123" text-anchor="middle">240 L oak box</text>
        </g>
        <g>
          <line class="dimline" x1="962" y1="258" x2="962" y2="310" opacity="0"/>
        </g>
      </svg>
    </div>

    <div class="stats">
      <div class="stat reveal"><b><span data-count="380">0</span>+</b><span>Bikes built since 2014</span></div>
      <div class="stat reveal" style="--d:.08s"><b><span data-count="200">0</span> kg</b><span>Rated payload, L1 frame</span></div>
      <div class="stat reveal" style="--d:.16s"><b><span data-count="5">0</span> yrs</b><span>Weld warranty on frames</span></div>
      <div class="stat reveal" style="--d:.24s"><b><span data-count="6">0</span> wks</b><span>Average build to handover</span></div>
    </div>
  </div>
</section>

<!-- ===== marquee ===== -->
<div class="marquee" aria-hidden="true">
  <div class="mq-track">
    <div class="mq-group">
      <span>Handbuilt in Nørrebro</span><span>Columbus &amp; Reynolds steel</span><span>FSC oak boxes</span>
      <span>Gates belt drive standard</span><span>Hand-built 36-hole wheels</span><span>Delivered across DK, SE &amp; DE</span>
      <span>Service for life</span>
    </div>
    <div class="mq-group">
      <span>Handbuilt in Nørrebro</span><span>Columbus &amp; Reynolds steel</span><span>FSC oak boxes</span>
      <span>Gates belt drive standard</span><span>Hand-built 36-hole wheels</span><span>Delivered across DK, SE &amp; DE</span>
      <span>Service for life</span>
    </div>
  </div>
</div>

<!-- ===== models ===== -->
<section class="sec" id="bikes">
  <div class="div wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">01 — The range</p>
        <h2 class="h-lg reveal" style="--d:.06s">Three frames.<br>One philosophy.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">Steel that outlives the trend, a box cut from a single stack of FSC oak, and geometry refined over 380 builds. Nothing on these bikes is glued, and nothing is there for looks.</p>
    </div>

    <div class="models">
      <article class="model reveal">
        <p class="model__tag">Long-john · Single rider</p>
        <div class="model__art"><svg viewBox="0 0 1040 440" aria-hidden="true"><use href="#sym-l1" width="1040" height="440"/></svg></div>
        <div class="model__head"><h3>Lumen L1</h3><span class="model__price">from €3,980</span></div>
        <p class="desc">The one we build most. Low step-through, tight 1,980 mm wheelbase, and a box that parks itself in a bike shed.</p>
        <ul class="spec">
          <li><span>Box volume</span><b>240 L</b></li>
          <li><span>Payload</span><b>200 kg</b></li>
          <li><span>Weight</span><b>34 kg</b></li>
          <li><span>Best for</span><b>Groceries, one child</b></li>
        </ul>
        <button class="link" data-model="l1">Configure the L1 <span>→</span></button>
      </article>

      <article class="model reveal" style="--d:.1s">
        <p class="model__tag">Long-john · Canopy &amp; bench</p>
        <div class="model__art"><svg viewBox="0 0 1040 440" aria-hidden="true"><use href="#sym-l2" width="1040" height="440"/></svg></div>
        <div class="model__head"><h3>Lumen L2</h3><span class="model__price">from €4,450</span></div>
        <p class="desc">Two children on a bench, harnesses, a canopy that folds flat. Built for the school run in February rain.</p>
        <ul class="spec">
          <li><span>Box volume</span><b>300 L</b></li>
          <li><span>Payload</span><b>220 kg</b></li>
          <li><span>Weight</span><b>38 kg</b></li>
          <li><span>Best for</span><b>Two children, all year</b></li>
        </ul>
        <button class="link" data-model="l2">Configure the L2 <span>→</span></button>
      </article>

      <article class="model reveal" style="--d:.2s">
        <p class="model__tag">Tricycle · Stable at rest</p>
        <div class="model__art"><svg viewBox="0 0 1040 440" aria-hidden="true"><use href="#sym-t3" width="1040" height="440"/></svg></div>
        <div class="model__head"><h3>Lumen T3</h3><span class="model__price">from €5,200</span></div>
        <p class="desc">Tilting front end, three wheels, no balancing act. For heavy loads, deliveries and riders who want to stop without unloading.</p>
        <ul class="spec">
          <li><span>Box volume</span><b>400 L</b></li>
          <li><span>Payload</span><b>250 kg</b></li>
          <li><span>Weight</span><b>46 kg</b></li>
          <li><span>Best for</span><b>Trade, deliveries</b></li>
        </ul>
        <button class="link" data-model="t3">Configure the T3 <span>→</span></button>
      </article>
    </div>
  </div>
</section>

<!-- ===== process ===== -->
<section class="sec dark" id="process">
  <div class="wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">02 — The build</p>
        <h2 class="h-lg reveal" style="--d:.06s">How a Lumen<br>actually gets made.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">No factories, no stock bikes painted to look custom. Four stages, one named builder, and a photo of your frame on the jig the day it's welded.</p>
    </div>

    <div class="steps">
      <div class="step reveal">
        <span class="num">Step 01</span>
        <h3>Conversation</h3>
        <p>We ask what you carry, where you park it and how tall you are. Honest advice included — sometimes a €1,200 bike is the right answer.</p>
        <span class="dur">45 minutes</span>
      </div>
      <div class="step reveal" style="--d:.1s">
        <span class="num">Step 02</span>
        <h3>Drawing</h3>
        <p>Your build gets a CAD drawing and a 1:1 paper template taped to the workshop floor so you can walk around it before we cut steel.</p>
        <span class="dur">3–5 days</span>
      </div>
      <div class="step reveal" style="--d:.2s">
        <span class="num">Step 03</span>
        <h3>Fabrication</h3>
        <p>Columbus Spirit and Reynolds 853 tubing, TIG welded in-house, mitred by hand. Powder coat in one of six colours, hand-lined if you want it.</p>
        <span class="dur">4 weeks</span>
      </div>
      <div class="step reveal" style="--d:.3s">
        <span class="num">Step 04</span>
        <h3>Fit &amp; handover</h3>
        <p>Saddle, bar and box set to you, 20 km of test riding by us, then a fit session at handover. First service is free at six weeks.</p>
        <span class="dur">90 minutes</span>
      </div>
    </div>
  </div>
</section>

<!-- ===== configurator ===== -->
<section class="sec" id="configure">
  <div class="wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">03 — Configurator</p>
        <h2 class="h-lg reveal" style="--d:.06s">Price your build.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">A live, honest estimate — the same numbers we quote over the phone. Nothing here is a starting price that doubles at checkout.</p>
    </div>

    <form class="cfg" id="configForm" novalidate>
      <div>
        <fieldset>
          <legend><span class="n">01</span> Frame</legend>
          <div class="opts">
            <label class="opt">
              <input type="radio" name="model" value="l1" data-base="3980" data-label="Lumen L1 Long-John" data-sym="#sym-l1" checked>
              <span class="opt__b"><span><strong>Lumen L1 Long-John</strong><em>240 L box · 200 kg payload · 34 kg</em></span><span class="delta">€3,980</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="model" value="l2" data-base="4450" data-label="Lumen L2 Family" data-sym="#sym-l2">
              <span class="opt__b"><span><strong>Lumen L2 Family</strong><em>Bench, harnesses &amp; canopy · 300 L</em></span><span class="delta">€4,450</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="model" value="t3" data-base="5200" data-label="Lumen T3 Trike" data-sym="#sym-t3">
              <span class="opt__b"><span><strong>Lumen T3 Trike</strong><em>Three wheels · 400 L · 250 kg</em></span><span class="delta">€5,200</span></span>
            </label>
          </div>
        </fieldset>

        <fieldset>
          <legend><span class="n">02</span> Drivetrain</legend>
          <div class="opts opts--2">
            <label class="opt">
              <input type="radio" name="drive" value="belt" data-add="0" data-label="Gates belt + Alfine 11" checked>
              <span class="opt__b"><span><strong>Gates CDX belt</strong><em>Shimano Alfine 11 · oil-free</em></span><span class="delta">included</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="drive" value="derailleur" data-add="-180" data-label="10-speed derailleur">
              <span class="opt__b"><span><strong>10-speed derailleur</strong><em>Lighter, cheaper to service</em></span><span class="delta">−€180</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="drive" value="rohloff" data-add="890" data-label="Rohloff Speedhub 14">
              <span class="opt__b"><span><strong>Rohloff Speedhub 14</strong><em>Sealed, 14 gears, all weather</em></span><span class="delta">+€890</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="power" value="assist" data-add="1150" data-label="Bosch Cargo Line assist">
              <span class="opt__b"><span><strong>+ Bosch Cargo Line assist</strong><em>85 Nm, 500 Wh, 120 km range</em></span><span class="delta">+€1,150</span></span>
            </label>
          </div>
        </fieldset>

        <fieldset>
          <legend><span class="n">03</span> Box</legend>
          <div class="opts opts--2">
            <label class="opt">
              <input type="radio" name="box" value="oak" data-add="0" data-label="FSC oak, marine lacquer" checked>
              <span class="opt__b"><span><strong>FSC oak</strong><em>Marine lacquer, rounded rails</em></span><span class="delta">included</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="box" value="ash" data-add="320" data-label="Thermo-treated ash">
              <span class="opt__b"><span><strong>Thermo ash</strong><em>Darkened, near-zero upkeep</em></span><span class="delta">+€320</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="box" value="alu" data-add="240" data-label="Aluminium &amp; plywood">
              <span class="opt__b"><span><strong>Aluminium &amp; plywood</strong><em>For commercial use, washable</em></span><span class="delta">+€240</span></span>
            </label>
            <label class="opt">
              <input type="radio" name="box" value="liner" data-add="160" data-label="Removable canvas liner">
              <span class="opt__b"><span><strong>Canvas liner</strong><em>Removable, machine washable</em></span><span class="delta">+€160</span></span>
            </label>
          </div>
        </fieldset>

        <fieldset>
          <legend><span class="n">04</span> Paint</legend>
          <div class="swatches">
            <label class="sw"><input type="radio" name="paint" value="signal" data-add="0" data-label="Signal orange" checked>
              <span class="sw__b"><i style="background:#C8501C"></i>Signal orange</span></label>
            <label class="sw"><input type="radio" name="paint" value="fog" data-add="0" data-label="Fog grey">
              <span class="sw__b"><i style="background:#9AA0A2"></i>Fog grey</span></label>
            <label class="sw"><input type="radio" name="paint" value="moss" data-add="0" data-label="Moss green">
              <span class="sw__b"><i style="background:#4E5A43"></i>Moss green</span></label>
            <label class="sw"><input type="radio" name="paint" value="ink" data-add="0" data-label="Ink black">
              <span class="sw__b"><i style="background:#1B1A17"></i>Ink black</span></label>
            <label class="sw"><input type="radio" name="paint" value="hand" data-add="260" data-label="Hand-lined coachwork">
              <span class="sw__b"><i style="background:linear-gradient(135deg,#C8501C 50%,#F4F0E7 50%)"></i>Hand-lined (+€260)</span></label>
          </div>
        </fieldset>

        <fieldset>
          <legend><span class="n">05</span> Additions</legend>
          <div class="opts opts--2">
            <label class="opt">
              <input type="checkbox" name="extra" value="rain" data-add="140" data-label="Rain cover">
              <span class="opt__b"><span><strong>Rain cover</strong><em>Clear window, folds into box</em></span><span class="delta">+€140</span></span>
            </label>
            <label class="opt">
              <input type="checkbox" name="extra" value="lock" data-add="90" data-label="Frame &amp; box locks">
              <span class="opt__b"><span><strong>Frame &amp; box locks</strong><em>Two Abus, keyed alike</em></span><span class="delta">+€90</span></span>
            </label>
            <label class="opt">
              <input type="checkbox" name="extra" value="seat" data-add="180" data-label="Child seat &amp; harness">
              <span class="opt__b"><span><strong>Child seat &amp; harness</strong><em>3-point, grows with the child</em></span><span class="delta">+€180</span></span>
            </label>
            <label class="opt">
              <input type="checkbox" name="extra" value="stand" data-add="120" data-label="Double kickstand">
              <span class="opt__b"><span><strong>Double kickstand</strong><em>Parks flat while loading</em></span><span class="delta">+€120</span></span>
            </label>
          </div>
        </fieldset>
      </div>

      <aside class="summary reveal">
        <div class="summary__art">
          <svg viewBox="0 0 1040 440" aria-hidden="true"><use id="sumBike" href="#sym-l1" width="1040" height="440"/></svg>
        </div>
        <h3 id="sumName">Lumen L1 Long-John</h3>
        <ul class="sum-list" id="sumList"></ul>
        <div class="sum-total"><span>Total build price</span><b id="sumTotal">€3,980</b></div>
        <div class="sum-sub"><span>Deposit to reserve (20%)</span><span id="sumDeposit">€796</span></div>
        <p class="sum-note">Build slot · March 2025<br>6 weeks · Delivered across DK, SE &amp; DE</p>
        <a class="btn" href="#book">Reserve this build <span class="arw">→</span></a>
      </aside>
    </form>
  </div>
</section>

<!-- ===== details ===== -->
<section class="sec details">
  <div class="wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">04 — The money</p>
        <h2 class="h-lg reveal" style="--d:.06s">What €4,000<br>actually buys.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">Roughly 62 hours of skilled labour, a frame that will outlast three sets of components, and parts we can still get in ten years. Here is where it goes.</p>
    </div>

    <div class="dgrid">
      <div class="dcell reveal">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <path d="M6 44 L26 20 L46 44"/><path d="M6 44 L46 44"/>
          <path d="M26 20 L26 6" stroke-dasharray="3 4"/>
          <circle cx="26" cy="20" r="3.4"/><path d="M14 33 h24" stroke-dasharray="2 3"/>
        </svg>
        <h3>Frame &amp; welds</h3>
        <p>Columbus Spirit down tube, Reynolds 853 rear end, mitred and TIG welded on our own jigs. Then shot-blasted and powder-coated at 200 °C.</p>
        <span class="mono">≈ 28% of build cost</span>
      </div>
      <div class="dcell reveal" style="--d:.06s">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <rect x="6" y="12" width="40" height="30"/><path d="M6 19 h40"/>
          <path d="M13 26 q10 -5 20 0 q10 5 13 1"/><path d="M13 34 q10 -5 20 0 q6 3 10 2"/>
        </svg>
        <h3>The oak box</h3>
        <p>Cut from one FSC stack so the grain matches, doweled and screwed — never stapled. Sealed with three coats of marine lacquer, replaceable floor panel.</p>
        <span class="mono">≈ 14% of build cost</span>
      </div>
      <div class="dcell reveal" style="--d:.12s">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <circle cx="15" cy="26" r="11"/><circle cx="37" cy="34" r="7"/>
          <path d="M15 15 h18 a7 7 0 0 1 0 14 h-18"/>
          <path d="M15 37 h10"/>
        </svg>
        <h3>Belt &amp; hubs</h3>
        <p>Gates Carbon CDX belt rated for 30,000 km, sealed Alfine or Rohloff hub, hand-built 36-hole wheels with brass nipples. No chain, no grease.</p>
        <span class="mono">≈ 21% of build cost</span>
      </div>
      <div class="dcell reveal" style="--d:.18s">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <path d="M26 6 c8 11 13 17 13 23 a13 13 0 0 1 -26 0 c0 -6 5 -12 13 -23 z"/>
          <path d="M19 32 q7 5 14 0"/>
        </svg>
        <h3>Paint &amp; lining</h3>
        <p>Six stock powders, plus hand-laid pinstriping by Mette, who has done every gold line that has left this building since 2014.</p>
        <span class="mono">≈ 9% of build cost</span>
      </div>
      <div class="dcell reveal" style="--d:.24s">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <circle cx="26" cy="26" r="19"/><circle cx="26" cy="26" r="4"/>
          <g opacity=".6"><path d="M26 7 v38"/><path d="M7 26 h38"/><path d="M12.6 12.6 l26.8 26.8"/><path d="M39.4 12.6 l-26.8 26.8"/></g>
        </svg>
        <h3>Wheels &amp; brakes</h3>
        <p>Hand-built, tension-matched to ±5%, with 180 mm four-piston hydraulic discs front and rear. Stopping 250 kg on wet cobblestones is not a place to save money.</p>
        <span class="mono">≈ 13% of build cost</span>
      </div>
      <div class="dcell reveal" style="--d:.3s">
        <svg viewBox="0 0 52 52" fill="none" stroke="currentColor" stroke-width="1.6" aria-hidden="true">
          <path d="M10 44 v-8 q0 -14 14 -14 h6"/><path d="M30 22 l8 -8 l6 6 l-8 8 z"/>
          <path d="M8 44 h36"/><path d="M14 44 v-6"/><circle cx="24" cy="18" r="5"/>
        </svg>
        <h3>Fit &amp; aftercare</h3>
        <p>A 90-minute fit session, the first service free at six weeks, and workshop access for as long as you own the bike. Loaner bike while yours is in.</p>
        <span class="mono">≈ 15% of build cost</span>
      </div>
    </div>
  </div>
</section>

<!-- ===== quotes ===== -->
<section class="sec">
  <div class="wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">05 — Owners</p>
        <h2 class="h-lg reveal" style="--d:.06s">380 bikes later.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">We ask every owner the same question a year after handover: what would you change? The most common answer is nothing.</p>
    </div>

    <div class="quotes">
      <figure class="quote reveal">
        <blockquote>“Two children, a double buggy and a weekly shop — it does all of it and still fits in the bike room. Four winters in, the belt has never needed adjusting.”</blockquote>
        <figcaption class="who"><i>AM</i><span><b>Anna Møller</b><span>L1 · Valby · built 2021</span></span></figcaption>
      </figure>
      <figure class="quote reveal" style="--d:.1s">
        <blockquote>“I run a bakery and the T3 carries 180 kg of dough across the city twice a day. It has paid for itself twice. The workshop still answers the phone on a Sunday.”</blockquote>
        <figcaption class="who"><i>JR</i><span><b>Jonas Ravn</b><span>T3 · Islands Brygge · built 2022</span></span></figcaption>
      </figure>
      <figure class="quote reveal" style="--d:.2s">
        <blockquote>“They talked me down from the electric assist because my route is flat. A company that talks you out of €1,150 earns the next €1,150.”</blockquote>
        <figcaption class="who"><i>SL</i><span><b>Sofie Linde</b><span>L2 · Nørrebro · built 2023</span></span></figcaption>
      </figure>
    </div>
  </div>
</section>

<!-- ===== workshop ===== -->
<section class="sec details" id="workshop">
  <div class="wrap">
    <div class="shop">
      <div class="reveal">
        <p class="eyebrow">06 — Visit</p>
        <h2 class="h-lg" style="margin-bottom:1.4rem">Jægersborggade 42.</h2>
        <p class="lead" style="margin-bottom:2rem">The door is the one with the orange wheel painted on it. Coffee is on, the jig is usually loaded, and you're welcome to sit on a bike while we talk about yours.</p>
        <ul class="info">
          <li><span>Address</span><span><b>Jægersborggade 42, 2200 København N</b><em>6 min walk from Nørrebro metro</em></span></li>
          <li><span>Workshop</span><span><b>Tue–Fri 10:00–17:30</b><em>Sat 10:00–14:00 · Sun &amp; Mon closed</em></span></li>
          <li><span>Build slots</span><span><b>Currently booking March 2025</b><em>Two slots remaining this quarter</em></span></li>
          <li><span>Contact</span><span><b>hej@lumencycles.dk · +45 35 42 18 90</b><em>Service without appointment, Tue &amp; Thu</em></span></li>
        </ul>
        <a class="btn btn--ghost" href="#book" style="margin-top:1.8rem">Book a 45-minute consult <span class="arw">→</span></a>
      </div>

      <div class="mapbox reveal" style="--d:.12s">
        <svg viewBox="0 0 640 440" role="img" aria-label="Simplified map of Nørrebro showing the Lumen Cycles workshop on Jægersborggade">
          <rect width="640" height="440" fill="#EAE4D7"/>
          <!-- park / cemetery -->
          <g opacity=".85">
            <rect x="352" y="46" width="230" height="188" rx="6" fill="#CDD2BC" transform="rotate(-8 467 140)"/>
            <path d="M368 190 L560 96" stroke="#B9C0A6" stroke-width="6"/>
            <path d="M384 66 L584 176" stroke="#B9C0A6" stroke-width="6"/>
          </g>
          <!-- blocks -->
          <g fill="#E1DACB">
            <rect x="42" y="42" width="120" height="86" rx="3"/><rect x="176" y="42" width="128" height="86" rx="3"/>
            <rect x="42" y="150" width="120" height="118" rx="3"/><rect x="176" y="150" width="88" height="118" rx="3"/>
            <rect x="42" y="292" width="146" height="110" rx="3"/><rect x="212" y="292" width="150" height="110" rx="3"/>
            <rect x="404" y="292" width="194" height="110" rx="3"/><rect x="404" y="264" width="194" height="16" rx="3"/>
            <rect x="300" y="150" width="66" height="118" rx="3"/>
          </g>
          <!-- streets -->
          <g stroke="#F4F0E7" stroke-width="14" stroke-linecap="square">
            <path d="M0 141 H640"/><path d="M0 281 H640"/><path d="M167 0 V440"/><path d="M393 0 V440"/><path d="M0 414 H640"/>
          </g>
          <g stroke="#F4F0E7" stroke-width="9">
            <path d="M294 141 V281"/><path d="M167 270 H393" opacity=".9"/>
          </g>
          <!-- Nørrebrogade -->
          <path d="M-10 430 L330 -10" stroke="#F4F0E7" stroke-width="20"/>
          <path d="M-10 430 L330 -10" stroke="#D8D0BF" stroke-width="1.5" stroke-dasharray="8 8"/>
          <!-- metro -->
          <path d="M640 402 L360 402 L300 344" stroke="#C8501C" stroke-width="3" stroke-dasharray="10 7" fill="none"/>
          <circle cx="300" cy="344" r="7" fill="#C8501C"/>
          <!-- labels -->
          <g font-family="ui-monospace,Menlo,monospace" font-size="11" letter-spacing="2" fill="#6E6A5F">
            <text x="34" y="134">NØRREBROGADE</text>
            <text x="176" y="274">SANKT HANS GADE</text>
            <text x="176" y="34" >ASSISTENS KIRKEGÅRD</text>
            <text x="316" y="368" fill="#C8501C">NØRREBRO ST.</text>
          </g>
          <g font-family="ui-monospace,Menlo,monospace" font-size="11" letter-spacing="2.4" fill="#1B1A17">
            <text transform="translate(286 108) rotate(90)">JÆGERSBORGGADE</text>
          </g>
          <!-- marker -->
          <g>
            <circle cx="281" cy="196" r="26" fill="none" stroke="#C8501C" stroke-width="1.6" opacity=".55"/>
            <circle cx="281" cy="196" r="15" fill="#1B1A17"/>
            <circle cx="281" cy="196" r="5" fill="#C8501C"/>
            <path d="M281 222 L281 258" stroke="#1B1A17" stroke-width="1.4"/>
            <rect x="212" y="258" width="138" height="26" fill="#1B1A17"/>
            <text x="281" y="275" text-anchor="middle" font-family="ui-monospace,Menlo,monospace" font-size="11" letter-spacing="2.6" fill="#F4F0E7">LUMEN CYCLES</text>
          </g>
        </svg>
        <div class="map-badge">55.6902° N · 12.5494° E</div>
      </div>
    </div>
  </div>
</section>

<!-- ===== faq ===== -->
<section class="sec" id="faq">
  <div class="wrap">
    <div class="sec-head">
      <div>
        <p class="eyebrow reveal">07 — Questions</p>
        <h2 class="h-lg reveal" style="--d:.06s">Before you commit<br>four thousand euros.</h2>
      </div>
      <p class="lead reveal" style="--d:.12s">If it isn't here, call the workshop. Someone who builds the bikes will answer, not a call centre.</p>
    </div>

    <div class="faq reveal">
      <details open>
        <summary>How does the deposit work?</summary>
        <div class="ans">20% reserves a build slot and covers material purchasing. It is fully refundable until we cut steel — normally within the first week. The balance is due at handover, and we accept card, bank transfer or instalments over three months at no cost.</div>
      </details>
      <details>
        <summary>What exactly does the warranty cover?</summary>
        <div class="ans">Five years on all welds and the frame structure, two years on components and paint, and lifetime support on anything we built. If a weld fails in year four we repair or replace the frame — no labour charge. Normal wear (belts, brake pads, tyres) isn't covered, but we'll fit them at cost.</div>
      </details>
      <details>
        <summary>Can I test ride one before ordering?</summary>
        <div class="ans">Yes, and you should. We keep an L1 and an L2 in the workshop for test rides along Assistens Kirkegård — bring a child if you're carrying one. We'll also lend you a bike for a full day if you want to try a school run first.</div>
      </details>
      <details>
        <summary>Will it fit in my bike shed or basement?</summary>
        <div class="ans">The L1 is 2,410 mm long, 780 mm wide at the bars and 1,180 mm tall. Send us a photo of your parking space and we'll draw your bike to scale against it before you pay anything. Fold-flat canopies and narrower bar options are available for tight doors.</div>
      </details>
      <details>
        <summary>Do you build electric-assist cargo bikes?</summary>
        <div class="ans">We do — Bosch Cargo Line mid-drive with a 500 Wh battery, integrated into the frame rather than clamped on. It adds €1,150 and roughly 3.5 kg. Copenhagen is flat enough that most of our customers don't need it, so we'll ask about your route first.</div>
      </details>
      <details>
        <summary>How far do you deliver, and what does it cost?</summary>
        <div class="ans">Free delivery and a fit session anywhere in Denmark, Malmö and Gothenburg. Rest of Sweden and northern Germany €190 by courier, built and tuned before it leaves. We also ship to the UK and the Netherlands — ask us for a quote, crating is €120.</div>
      </details>
    </div>
  </div>
</section>

<!-- ===== booking ===== -->
<section class="sec dark" id="book">
  <div class="wrap">
    <div class="book-grid">
      <div class="reveal">
        <p class="eyebrow">08 — Reserve</p>
        <h2 class="h-lg" style="margin-bottom:1.3rem">Book a build slot.</h2>
        <p class="lead">Tell us roughly what you need. We reply within one working day with a drawing, a firm price and the next available slot — no deposit until you've seen it.</p>
        <ul class="info" style="margin-top:2.4rem">
          <li style="border-color:rgba(244,240,231,.2)"><span style="color:#8E887A">Next slot</span><span><b>March 2025</b><em style="color:#8E887A">Two places remaining</em></span></li>
          <li style="border-color:rgba(244,240,231,.2)"><span style="color:#8E887A">Build time</span><span><b>Six weeks, average</b></span></li>
          <li style="border-color:rgba(244,240,231,.2);border-bottom:1px solid rgba(244,240,231,.2)"><span style="color:#8E887A">Deposit</span><span><b>20%, fully refundable</b></span></li>
        </ul>
      </div>

      <div class="reveal" style="--d:.1s">
        <form id="bookForm" novalidate>
          <div class="frow">
            <div class="field">
              <label for="bname">Your name</label>
              <input id="bname" name="name" type="text" autocomplete="name" placeholder="Freja Andersen">
              <div class="err" data-for="bname"></div>
            </div>
            <div class="field">
              <label for="bmail">Email</label>
              <input id="bmail" name="email" type="email" autocomplete="email" placeholder="you@example.dk">
              <div class="err" data-for="bmail"></div>
            </div>
          </div>
          <div class="frow">
            <div class="field">
              <label for="bframe">Frame of interest</label>
              <select id="bframe" name="frame">
                <option>Lumen L1 Long-John — from €3,980</option>
                <option>Lumen L2 Family — from €4,450</option>
                <option>Lumen T3 Trike — from €5,200</option>
                <option>Not sure yet — advise me</option>
              </select>
            </div>
            <div class="field">
              <label for="bcity">Where you'd park it</label>
              <input id="bcity" name="city" type="text" placeholder="Frederiksberg, ground floor shed">
            </div>
          </div>
          <div class="field">
            <label for="bmsg">What do you carry?</label>
            <textarea id="bmsg" name="message" placeholder="Two children to Sankt Hans Gade school, plus a weekly shop, up a small step at home."></textarea>
          </div>
          <button class="btn btn--light" type="submit">Request my build slot <span class="arw">→</span></button>
          <p class="form-note">We use your details to answer you and nothing else. No newsletter unless you tick a box — and we'd rather you didn't.</p>
          <div class="ok" id="bookOk" role="status">
            <b>Thank you — request received.</b>
            <p>We've logged your details against the March build slot. Mette or Kasper will reply from hej@lumencycles.dk within one working day, usually the same afternoon.</p>
          </div>
        </form>
      </div>
    </div>
  </div>
</section>

</main>

<!-- ===== footer ===== -->
<footer>
  <div class="wrap">
    <div class="fgrid">
      <div class="fbrand">
        <a class="brand" href="#top" style="color:#F4F0E7">
          <svg viewBox="0 0 40 40" fill="none" aria-hidden="true">
            <circle cx="20" cy="20" r="17" stroke="#F4F0E7" stroke-width="2.4"/>
            <path d="M20 6.5a13.5 13.5 0 0 0 0 27" stroke="#E8703A" stroke-width="3.4" stroke-linecap="round"/>
            <circle cx="20" cy="20" r="3.2" fill="#F4F0E7"/>
          </svg>
          <span style="color:#F4F0E7"><b>Lumen Cycles</b><span style="color:#8E887A">Est. 2014 · København</span></span>
        </a>
        <p>Custom cargo bikes, welded and assembled to order on Jægersborggade since 2014.</p>
      </div>
      <div>
        <h4>Bikes</h4>
        <ul>
          <li><a href="#bikes">Lumen L1 Long-John</a></li>
          <li><a href="#bikes">Lumen L2 Family</a></li>
          <li><a href="#bikes">Lumen T3 Trike</a></li>
          <li><a href="#configure">Configurator</a></li>
          <li><a href="#process">The build process</a></li>
        </ul>
      </div>
      <div>
        <h4>Workshop</h4>
        <ul>
          <li><a href="#workshop">Jægersborggade 42</a></li>
          <li><a href="#workshop">Opening hours</a></li>
          <li><a href="#faq">Warranty &amp; service</a></li>
          <li><a href="#faq">Delivery</a></li>
          <li><a href="#book">Book a consult</a></li>
        </ul>
      </div>
      <div>
        <h4>Build letter</h4>
        <p style="font-size:.88rem;color:#A9A497">Six emails a year: what's on the jig, what we've learned, and when slots open.</p>
        <form class="fnews" id="newsForm" novalidate>
          <label for="nmail" class="sr" style="position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)">Email</label>
          <input id="nmail" type="email" placeholder="you@example.dk">
          <button type="submit">Join</button>
        </form>
        <div class="fmsg" id="newsMsg"></div>
      </div>
    </div>
    <div class="fbot">
      <span>© <span id="yr">2024</span> Lumen Cycles ApS · CVR 38 21 90 44</span>
      <span>Nørrebro, København · Bygget i Danmark</span>
      <span>Privacy · Terms</span>
    </div>
  </div>
</footer>

<script>
(function(){
  "use strict";
  var reduce = window.matchMedia && window.matchMedia('(prefers-reduced-motion: reduce)').matches;

  /* ---------- year ---------- */
  document.getElementById('yr').textContent = new Date().getFullYear();

  /* ---------- header + progress ---------- */
  var header = document.getElementById('header'),
      progress = document.getElementById('progress'),
      heroBike = document.getElementById('heroBike'),
      ticking = false;

  function onScroll(){
    var y = window.pageYOffset || document.documentElement.scrollTop;
    header.classList.toggle('is-stuck', y > 30);
    var h = document.documentElement.scrollHeight - window.innerHeight;
    progress.style.width = (h > 0 ? (y / h) * 100 : 0) + '%';
    if(!reduce && heroBike && y < window.innerHeight * 1.4){
      heroBike.style.transform = 'translateY(' + (y * -0.05) + 'px)';
    }
    ticking = false;
  }
  window.addEventListener('scroll', function(){
    if(!ticking){ ticking = true; window.requestAnimationFrame(onScroll); }
  }, {passive:true});
  onScroll();

  /* ---------- mobile nav ---------- */
  var toggle = document.getElementById('navToggle');
  toggle.addEventListener('click', function(){
    var open = document.body.classList.toggle('nav-open');
    toggle.setAttribute('aria-expanded', open ? 'true' : 'false');
  });
  document.querySelectorAll('#nav a').forEach(function(a){
    a.addEventListener('click', function(){
      document.body.classList.remove('nav-open');
      toggle.setAttribute('aria-expanded','false');
    });
  });

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

  /* ---------- counters ---------- */
  function countUp(el){
    var target = parseFloat(el.getAttribute('data-count')), start = null, dur = 1300;
    if(reduce){ el.textContent = target; return; }
    function step(ts){
      if(!start) start = ts;
      var p = Math.min((ts - start) / dur, 1);
      var eased = 1 - Math.pow(1 - p, 3);
      el.textContent = Math.round(target * eased);
      if(p < 1) requestAnimationFrame(step);
    }
    requestAnimationFrame(step);
  }
  var counters = document.querySelectorAll('[data-count]');
  if('IntersectionObserver' in window){
    var co = new IntersectionObserver(function(entries){
      entries.forEach(function(e){
        if(e.isIntersecting){ countUp(e.target); co.unobserve(e.target); }
      });
    }, {threshold:.6});
    counters.forEach(function(el){ co.observe(el); });
  } else {
    counters.forEach(countUp);
  }

  /* ---------- configurator ---------- */
  var cfg = document.getElementById('configForm'),
      sumList = document.getElementById('sumList'),
      sumTotal = document.getElementById('sumTotal'),
      sumDeposit = document.getElementById('sumDeposit'),
      sumName = document.getElementById('sumName'),
      sumBike = document.getElementById('sumBike'),
      shownTotal = 3980;

  function eur(n){ return '€' + Number(n).toLocaleString('en-US'); }
  function delta(n){
    if(n === 0) return 'included';
    return (n > 0 ? '+' : '−') + eur(Math.abs(n));
  }
  function animateValue(el, from, to, dur){
    if(reduce){ el.textContent = eur(to); return; }
    var start = null;
    function step(ts){
      if(!start) start = ts;
      var p = Math.min((ts - start) / dur, 1);
      var v = Math.round(from + (to - from) * (1 - Math.pow(1 - p, 3)));
      el.textContent = eur(v);
      if(p < 1) requestAnimationFrame(step);
    }
    requestAnimationFrame(step);
  }

  function updateCfg(){
    var modelInput = cfg.querySelector('input[name="model"]:checked');
    var base = parseInt(modelInput.getAttribute('data-base'), 10);
    var total = base;
    var html = '<li><span>' + modelInput.getAttribute('data-label').replace('&amp;','&') + '</span><b>' + eur(base) + '</b></li>';

    cfg.querySelectorAll('input[type="radio"]:not([name="model"]):checked, input[type="checkbox"]:checked').forEach(function(i){
      var add = parseInt(i.getAttribute('data-add'), 10) || 0;
      total += add;
      html += '<li><span>' + i.getAttribute('data-label') + '</span><b>' + delta(add) + '</b></li>';
    });

    sumList.innerHTML = html;
    sumName.textContent = modelInput.getAttribute('data-label');
    if(sumBike.getAttribute('href') !== modelInput.getAttribute('data-sym')){
      sumBike.setAttribute('href', modelInput.getAttribute('data-sym'));
    }
    animateValue(sumTotal, shownTotal, total, 520);
    shownTotal = total;
    sumDeposit.textContent = eur(Math.round(total * 0.2));

    var sel = document.getElementById('bframe');
    if(sel){ sel.selectedIndex = {l1:0, l2:1, t3:2}[modelInput.value] || 0; }
  }

  cfg.addEventListener('change', updateCfg);
  updateCfg();

  document.querySelectorAll('[data-model]').forEach(function(btn){
    btn.addEventListener('click', function(){
      var m = cfg.querySelector('input[name="model"][value="' + btn.getAttribute('data-model') + '"]');
      if(m){ m.checked = true; updateCfg(); }
      document.getElementById('configure').scrollIntoView({behavior: reduce ? 'auto' : 'smooth', block:'start'});
    });
  });

  /* ---------- FAQ accordion ---------- */
  var faqs = document.querySelectorAll('.faq details');
  faqs.forEach(function(d){
    d.addEventListener('toggle', function(){
      if(d.open){ faqs.forEach(function(o){ if(o !== d) o.open = false; }); }
    });
  });

  /* ---------- booking form ---------- */
  var bookForm = document.getElementById('bookForm'), bookOk = document.getElementById('bookOk');
  function setErr(id, msg){
    var el = document.querySelector('.err[data-for="' + id + '"]');
    if(el) el.textContent = msg || '';
  }
  bookForm.addEventListener('submit', function(e){
    e.preventDefault();
    var name = document.getElementById('bname'),
        mail = document.getElementById('bmail'), ok = true;
    setErr('bname',''); setErr('bmail','');
    if(!name.value.trim()){ setErr('bname','Please tell us your name'); ok = false; }
    if(!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(mail.value.trim())){ setErr('bmail','A valid email, please'); ok = false; }
    if(!ok){ (name.value.trim() ? mail : name).focus(); return; }
    bookOk.classList.add('show');
    bookForm.querySelector('button[type="submit"]').textContent = 'Request sent ✓';
    bookOk.scrollIntoView({behavior: reduce ? 'auto' : 'smooth', block:'center'});
  });

  /* ---------- newsletter ---------- */
  var newsForm = document.getElementById('newsForm'), newsMsg = document.getElementById('newsMsg');
  newsForm.addEventListener('submit', function(e){
    e.preventDefault();
    var v = document.getElementById('nmail').value.trim();
    if(!/^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/.test(v)){
      newsMsg.textContent = 'Please enter a valid email';
      newsMsg.style.color = '#E8703A';
      return;
    }
    newsMsg.textContent = 'Subscribed — see you next build letter';
    newsMsg.style.color = '#E8703A';
    newsForm.reset();
  });
})();
</script>
</body>
</html>

Compare

Other runs