Skip to content

Anti-AI-slop design skill for Claude Code, Cursor, and Codex.

CSS

Site and README: the Refract and Vantage pages, fifty themes everywhere

Yousseffd9b1d1158f3
diff --git a/README.md b/README.md
index 00a841d..5260a52 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
**A design skill for Claude Code, Codex, Cursor and OpenCode that refuses to look AI-generated.**
-[usehallmark.com](https://www.usehallmark.com)  ·  forty-eight themes  ·  custom on request  ·  redesign and audit by name
+[usehallmark.com](https://www.usehallmark.com)  ·  fifty themes  ·  custom on request  ·  redesign and audit by name
Made by Together AI.
@@ -10,13 +10,13 @@ Made by Together AI.
<img src="site/OG-hallmark.png" alt="Hallmark, the design skill that ends AI slop" />
</p>
-Hallmark holds a hard floor and then gets out of the way. It deals three themes from a catalog of forty-eight materials, builds the page around what the visitor came to do, and lints the result in a real browser against the tells that read as machine-made: the eyebrow above every heading, tracked-capital labels, one coloured word in a headline, a page of empty frames or nothing but photographs, a hero that misses its screen, an email sign-up at the end of every page, a form that says thanks without sending anything. A fresh-context reviewer gets the last word.
+Hallmark holds a hard floor and then gets out of the way. It deals three themes from a catalog of fifty materials, builds the page around what the visitor came to do, and lints the result in a real browser against the tells that read as machine-made: the eyebrow above every heading, tracked-capital labels, one coloured word in a headline, a page of empty frames or nothing but photographs, a hero that misses its screen, an email sign-up at the end of every page, a form that says thanks without sending anything. A fresh-context reviewer gets the last word.
The gates come in tiers. The **Floor** never ships (contrast, focus, reduced motion, invented facts, a broken phone layout). **Reflex** gates are the defaults a model falls into; a build with a reason may overrule one on the record. **Finish** checks are craft detail that never blocks a ship.
## New in v2
-- **Forty-eight themes.** Each is a material (paper, type, colour, surfaces, its own components and texture) with a picture of a finished page, and the build lays out its own page in it.
+- **Fifty themes.** Each is a material (paper, type, colour, surfaces, its own components and texture) with a picture of a finished page, and the build lays out its own page in it.
- **Built from the job.** A booking page books, a shop sells, a newsletter subscribes: the action sits where the category puts it, and the page ends on it.
- **Custom.** Ask for a custom page and Hallmark designs from your prompt alone, under the same rules and checks.
- **Your real product.** Point it at a URL, a dev server or an app and it captures the screenshots itself.
@@ -43,20 +43,20 @@ The gates come in tiers. The **Floor** never ships (contrast, focus, reduced mot
<tr>
<td width="20%"><a href="https://www.usehallmark.com/themes/furrow/"><img src="docs/screenshots/furrow.jpg" alt="Furrow theme: Fieldbook, farm records" /></a></td>
<td width="20%"><a href="https://www.usehallmark.com/themes/dose/"><img src="docs/screenshots/dose.jpg" alt="Dose theme: Tandem, a family medication app" /></a></td>
- <td width="20%"><a href="https://www.usehallmark.com/themes/hum/"><img src="docs/screenshots/hum.jpg" alt="Hum theme: Sprout, a reading game for kids" /></a></td>
- <td width="20%"><a href="https://www.usehallmark.com/themes/terminal/"><img src="docs/screenshots/terminal.jpg" alt="Terminal theme: burrow, a dotfiles CLI" /></a></td>
+ <td width="20%"><a href="https://www.usehallmark.com/themes/refract/"><img src="docs/screenshots/refract.jpg" alt="Refract theme: Bellwater Lido, an outdoor pool" /></a></td>
+ <td width="20%"><a href="https://www.usehallmark.com/themes/vantage/"><img src="docs/screenshots/vantage.jpg" alt="Vantage theme: Swath, construction site scans" /></a></td>
<td width="20%"><a href="https://www.usehallmark.com/themes/hedgerow/"><img src="docs/screenshots/hedgerow.jpg" alt="Hedgerow theme: Five Mile Gin, a distillery" /></a></td>
</tr>
<tr>
<td><b>Furrow</b><br/><sub>Fieldbook, farm records</sub></td>
<td><b>Dose</b><br/><sub>Tandem, a family medication app</sub></td>
- <td><b>Hum</b><br/><sub>Sprout, a reading game for kids</sub></td>
- <td><b>Terminal</b><br/><sub>burrow, a dotfiles CLI</sub></td>
+ <td><b>Refract</b><br/><sub>Bellwater Lido, an outdoor pool</sub></td>
+ <td><b>Vantage</b><br/><sub>Swath, construction site scans</sub></td>
<td><b>Hedgerow</b><br/><sub>Five Mile Gin, a distillery</sub></td>
</tr>
</table>
-Ten of the forty-eight. A theme is a material, not a plan: it never says what a page contains or in what order, so two prompts in one theme make two different pages. Each is one file of at most 8 KB in [`references/themes/`](skills/hallmark/references/themes/) with a picture beside it; a build reads exactly one. See them all at [usehallmark.com](https://www.usehallmark.com).
+Ten of the fifty. A theme is a material, not a plan: it never says what a page contains or in what order, so two prompts in one theme make two different pages. Each is one file of at most 8 KB in [`references/themes/`](skills/hallmark/references/themes/) with a picture beside it; a build reads exactly one. See them all at [usehallmark.com](https://www.usehallmark.com).
## Custom
diff --git a/ROADMAP.md b/ROADMAP.md
index 216dd2b..8d6292d 100644
--- a/ROADMAP.md
+++ b/ROADMAP.md
@@ -2,7 +2,7 @@
What is next for Hallmark.
-**Where v2 stands.** Hallmark builds new pages by itself and redesigns existing ones when asked by name. A build deals three themes from a catalog of forty-eight materials, each with a picture of a finished page and a range for the sections without a photograph, or designs one from scratch on request. A redesign records what the page says and does before it starts, works at one of three depths (polish, restyle, full), and fails its own sweep if a link, a form field, a handler or a test hook went missing. A Floor of hard rules and a set of Reflex defaults are enforced by a zero-dependency linter that reads HTML, CSS, framework components and Tailwind classes, and with `--render` measures the page itself: the fold at three widths, contrast against the pixels behind the text, focus rings found by tabbing, section rhythm, the share of the page in photographs, heads crowding what precedes them, text cramped against its box or painted under another element. Two fresh-context reviews, of the first screen and of the finished page, close every build.
+**Where v2 stands.** Hallmark builds new pages by itself and redesigns existing ones when asked by name. A build deals three themes from a catalog of fifty materials, each with a picture of a finished page and a range for the sections without a photograph, or designs one from scratch on request. A redesign records what the page says and does before it starts, works at one of three depths (polish, restyle, full), and fails its own sweep if a link, a form field, a handler or a test hook went missing. A Floor of hard rules and a set of Reflex defaults are enforced by a zero-dependency linter that reads HTML, CSS, framework components and Tailwind classes, and with `--render` measures the page itself: the fold at three widths, contrast against the pixels behind the text, focus rings found by tabbing, section rhythm, the share of the page in photographs, heads crowding what precedes them, text cramped against its box or painted under another element. Two fresh-context reviews, of the first screen and of the finished page, close every build.
---
diff --git a/docs/screenshots/refract.jpg b/docs/screenshots/refract.jpg
new file mode 100644
index 0000000..24eaa7f
Binary files /dev/null and b/docs/screenshots/refract.jpg differ
diff --git a/docs/screenshots/vantage.jpg b/docs/screenshots/vantage.jpg
new file mode 100644
index 0000000..237dfc7
Binary files /dev/null and b/docs/screenshots/vantage.jpg differ
diff --git a/site/assets/desk/refract.webp b/site/assets/desk/refract.webp
new file mode 100644
index 0000000..c258fb2
Binary files /dev/null and b/site/assets/desk/refract.webp differ
diff --git a/site/assets/desk/vantage.webp b/site/assets/desk/vantage.webp
new file mode 100644
index 0000000..0661253
Binary files /dev/null and b/site/assets/desk/vantage.webp differ
diff --git a/site/assets/phone/refract.webp b/site/assets/phone/refract.webp
new file mode 100644
index 0000000..aff165f
Binary files /dev/null and b/site/assets/phone/refract.webp differ
diff --git a/site/assets/phone/vantage.webp b/site/assets/phone/vantage.webp
new file mode 100644
index 0000000..c9077cb
Binary files /dev/null and b/site/assets/phone/vantage.webp differ
diff --git a/site/assets/themes/refract.webp b/site/assets/themes/refract.webp
new file mode 100644
index 0000000..dba065d
Binary files /dev/null and b/site/assets/themes/refract.webp differ
diff --git a/site/assets/themes/vantage.webp b/site/assets/themes/vantage.webp
new file mode 100644
index 0000000..3a8e291
Binary files /dev/null and b/site/assets/themes/vantage.webp differ
diff --git a/site/index.html b/site/index.html
index d6b97d2..5bde574 100644
--- a/site/index.html
+++ b/site/index.html
@@ -5,7 +5,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover">
<meta name="color-scheme" content="light">
<title>Hallmark, design taste for coding agents</title>
- <meta name="description" content="Hallmark is a design skill for Claude Code, Codex, Cursor and OpenCode. It deals one of forty-eight themes, builds with real photographs and checks its own work.">
+ <meta name="description" content="Hallmark is a design skill for Claude Code, Codex, Cursor and OpenCode. It deals one of fifty themes, builds with real photographs and checks its own work.">
<meta property="og:type" content="website">
<meta property="og:url" content="https://www.usehallmark.com/">
<meta property="og:title" content="Hallmark, design taste for coding agents">
@@ -74,7 +74,7 @@
<a class="card card--phone" href="themes/furrow/" data-slug="furrow" data-kind="phone" style="--i:3"><img src="assets/phone/furrow.webp" width="360" height="780" alt="A phone page in the Furrow theme"><span class="card__name">Furrow</span></a>
</div>
<button class="fan__deal" type="button" data-fan-deal><svg viewBox="0 0 16 16" aria-hidden="true"><path d="M2.5 5.5h7.5a3 3 0 0 1 0 6H6.5M2.5 5.5L5 3M2.5 5.5L5 8"/></svg><span>Deal again</span></button>
- <script type="application/json" data-fan-pool>[{"slug":"almanac","name":"Almanac","p":["oklch(84% 0.012 245)","oklch(16% 0.020 245)","oklch(45% 0.180 350)"]},{"slug":"arcade","name":"Arcade","p":["oklch(14% 0.04 312)","oklch(95% 0.014 315)","oklch(66% 0.215 40)"]},{"slug":"atelier","name":"Atelier","p":["oklch(94.5% 0.010 76)","oklch(19% 0.024 52)","oklch(41% 0.075 248)"]},{"slug":"bloom","name":"Bloom","p":["oklch(97% 0.010 72)","oklch(21% 0.024 40)","oklch(53% 0.145 36)"]},{"slug":"blueprint","name":"Blueprint","p":["oklch(35% 0.105 256)","oklch(97% 0.012 240)","oklch(97% 0.012 240)"]},{"slug":"broadside","name":"Broadside","p":["oklch(92% 0.028 88)","oklch(18% 0.01 50)","oklch(53% 0.19 33)"]},{"slug":"brutal","name":"Brutal","p":["oklch(97.5% 0.006 95)","oklch(10% 0.006 95)","oklch(90% 0.19 105)"]},{"slug":"carnival","name":"Carnival","p":["oklch(92% 0.045 50)","oklch(18% 0.080 20)","oklch(86% 0.18 95)"]},{"slug":"cobalt","name":"Cobalt","p":["oklch(98.6% 0.005 250)","oklch(21% 0.028 262)","oklch(52% 0.19 258)"]},{"slug":"console","name":"Console","p":["oklch(17% 0.008 250)","oklch(95% 0.005 250)","oklch(82% 0.15 80)"]},{"slug":"coral","name":"Coral","p":["oklch(97% 0.006 55)","oklch(21% 0.012 38)","oklch(74% 0.125 30)"]},{"slug":"darkroom","name":"Darkroom","p":["oklch(12.5% 0.008 55)","oklch(92% 0.012 78)","oklch(73% 0.15 58)"]},{"slug":"dose","name":"Dose","p":["oklch(97.6% 0.011 88)","oklch(21% 0.025 170)","oklch(50% 0.13 160)"]},{"slug":"dusk","name":"Dusk","p":["oklch(17.5% 0.014 268)","oklch(96% 0.006 75)","oklch(77% 0.10 274)"]},{"slug":"editorial","name":"Editorial","p":["oklch(97% 0.007 86)","oklch(16% 0.012 280)","oklch(49% 0.130 152)"]},{"slug":"formwork","name":"Formwork","p":["oklch(74% 0.008 80)","oklch(18% 0.005 270)","oklch(66% 0.21 38)"]},{"slug":"furrow","name":"Furrow","p":["oklch(96% 0.011 85)","oklch(18% 0.006 60)","oklch(70% 0.19 40)"]},{"slug":"garden","name":"Garden","p":["oklch(95.8% 0.024 90)","oklch(23% 0.050 152)","oklch(46% 0.135 142)"]},{"slug":"grid","name":"Grid","p":["oklch(97.5% 0.005 90)","oklch(19% 0.022 266)","oklch(44% 0.2 266)"]},{"slug":"halftone","name":"Halftone","p":["oklch(96.2% 0.032 94)","oklch(23% 0.040 38)","oklch(54.5% 0.215 33)"]},{"slug":"hedgerow","name":"Hedgerow","p":["oklch(24% 0.052 158)","oklch(93% 0.022 88)","oklch(87% 0.19 118)"]},{"slug":"hum","name":"Hum","p":["oklch(97% 0.012 95)","oklch(20% 0.014 255)","oklch(87% 0.175 96)"]},{"slug":"ink","name":"Ink","p":["oklch(99.5% 0.003 100)","oklch(16% 0 0)","oklch(50% 0.095 188)"]},{"slug":"kiln","name":"Kiln","p":["oklch(13% 0.012 40)","oklch(94% 0.02 80)","oklch(70% 0.2 45)"]},{"slug":"loom","name":"Loom","p":["oklch(95.5% 0.014 85)","oklch(21% 0.012 60)","oklch(34% 0.115 267)"]},{"slug":"lumen","name":"Lumen","p":["oklch(12.5% 0.027 290)","oklch(96% 0.01 300)","oklch(80% 0.15 62)"]},{"slug":"manifesto","name":"Manifesto","p":["oklch(13% 0.01 60)","oklch(95% 0.014 85)","oklch(56% 0.228 28)"]},{"slug":"midnight","name":"Midnight","p":["oklch(14% 0.048 264)","oklch(95% 0.016 250)","oklch(80% 0.11 230)"]},{"slug":"newsprint","name":"Newsprint","p":["oklch(94% 0.011 92)","oklch(17% 0.012 60)","oklch(44% 0.13 32)"]},{"slug":"overprint","name":"Overprint","p":["oklch(91.5% 0.014 92)","oklch(17% 0.008 60)","oklch(65% 0.12 212)"]},{"slug":"pasteup","name":"Paste-up","p":["oklch(73% 0.068 70)","oklch(17% 0.01 60)","oklch(93% 0.2 112)"]},{"slug":"piste","name":"Piste","p":["oklch(98.5% 0.005 260)","oklch(16% 0.012 260)","oklch(52% 0.25 265)"]},{"slug":"ribbon","name":"Ribbon","p":["oklch(98.2% 0.008 82)","oklch(18% 0.006 80)","oklch(44% 0.075 190)"]},{"slug":"rim","name":"Rim","p":["oklch(9% 0.008 75)","oklch(94% 0.010 80)","oklch(72% 0.17 45)"]},{"slug":"riso","name":"Riso","p":["oklch(97% 0.011 90)","oklch(40% 0.165 265)","oklch(68% 0.235 356)"]},{"slug":"solstice","name":"Solstice","p":["oklch(94% 0.03 80)","oklch(27% 0.05 50)","oklch(54% 0.20 24)"]},{"slug":"specimen","name":"Specimen","p":["oklch(96.5% 0.016 82)","oklch(17% 0.012 60)","oklch(45% 0.18 262)"]},{"slug":"spore","name":"Spore","p":["oklch(15% 0.012 60)","oklch(93% 0.022 85)","oklch(77% 0.09 30)"]},{"slug":"sport","name":"Sport","p":["oklch(98% 0.005 250)","oklch(16% 0.080 260)","oklch(88% 0.200 120)"]},{"slug":"squeeze","name":"Squeeze","p":["oklch(41% 0.100 154)","oklch(99% 0.005 90)","oklch(83% 0.115 56)"]},{"slug":"sticker","name":"Sticker","p":["oklch(95.7% 0.013 82)","oklch(21% 0.011 81)","oklch(56% 0.225 2)"]},{"slug":"studio","name":"Studio","p":["oklch(97.2% 0.006 215)","oklch(16% 0.032 250)","oklch(68% 0.172 50)"]},{"slug":"terminal","name":"Terminal","p":["oklch(12.5% 0.012 150)","oklch(94% 0.03 140)","oklch(87% 0.2 142)"]},{"slug":"terrazzo","name":"Terrazzo","p":["oklch(96% 0.009 82)","oklch(16% 0.006 60)","oklch(53% 0.15 38)"]},{"slug":"ultraviolet","name":"Ultraviolet","p":["oklch(95% 0.02 300)","oklch(18% 0.02 300)","oklch(50% 0.25 290)"]},{"slug":"vellum","name":"Vellum","p":["oklch(94% 0.024 82)","oklch(23% 0.025 55)","oklch(43% 0.17 268)"]},{"slug":"wayfind","name":"Wayfind","p":["oklch(95.5% 0.006 250)","oklch(16% 0.014 262)","oklch(51% 0.22 264)"]},{"slug":"werkstatt","name":"Werkstatt","p":["oklch(84% 0.024 82)","oklch(18% 0.008 60)","oklch(46% 0.2 264)"]}]</script>
+ <script type="application/json" data-fan-pool>[{"slug":"almanac","name":"Almanac","p":["oklch(84% 0.012 245)","oklch(16% 0.020 245)","oklch(45% 0.180 350)"]},{"slug":"arcade","name":"Arcade","p":["oklch(14% 0.04 312)","oklch(95% 0.014 315)","oklch(66% 0.215 40)"]},{"slug":"atelier","name":"Atelier","p":["oklch(94.5% 0.010 76)","oklch(19% 0.024 52)","oklch(41% 0.075 248)"]},{"slug":"bloom","name":"Bloom","p":["oklch(97% 0.010 72)","oklch(21% 0.024 40)","oklch(53% 0.145 36)"]},{"slug":"blueprint","name":"Blueprint","p":["oklch(35% 0.105 256)","oklch(97% 0.012 240)","oklch(97% 0.012 240)"]},{"slug":"broadside","name":"Broadside","p":["oklch(92% 0.028 88)","oklch(18% 0.01 50)","oklch(53% 0.19 33)"]},{"slug":"brutal","name":"Brutal","p":["oklch(97.5% 0.006 95)","oklch(10% 0.006 95)","oklch(90% 0.19 105)"]},{"slug":"carnival","name":"Carnival","p":["oklch(92% 0.045 50)","oklch(18% 0.080 20)","oklch(86% 0.18 95)"]},{"slug":"cobalt","name":"Cobalt","p":["oklch(98.6% 0.005 250)","oklch(21% 0.028 262)","oklch(52% 0.19 258)"]},{"slug":"console","name":"Console","p":["oklch(17% 0.008 250)","oklch(95% 0.005 250)","oklch(82% 0.15 80)"]},{"slug":"coral","name":"Coral","p":["oklch(97% 0.006 55)","oklch(21% 0.012 38)","oklch(74% 0.125 30)"]},{"slug":"darkroom","name":"Darkroom","p":["oklch(12.5% 0.008 55)","oklch(92% 0.012 78)","oklch(73% 0.15 58)"]},{"slug":"dose","name":"Dose","p":["oklch(97.6% 0.011 88)","oklch(21% 0.025 170)","oklch(50% 0.13 160)"]},{"slug":"dusk","name":"Dusk","p":["oklch(17.5% 0.014 268)","oklch(96% 0.006 75)","oklch(77% 0.10 274)"]},{"slug":"editorial","name":"Editorial","p":["oklch(97% 0.007 86)","oklch(16% 0.012 280)","oklch(49% 0.130 152)"]},{"slug":"formwork","name":"Formwork","p":["oklch(74% 0.008 80)","oklch(18% 0.005 270)","oklch(66% 0.21 38)"]},{"slug":"furrow","name":"Furrow","p":["oklch(96% 0.011 85)","oklch(18% 0.006 60)","oklch(70% 0.19 40)"]},{"slug":"garden","name":"Garden","p":["oklch(95.8% 0.024 90)","oklch(23% 0.050 152)","oklch(46% 0.135 142)"]},{"slug":"grid","name":"Grid","p":["oklch(97.5% 0.005 90)","oklch(19% 0.022 266)","oklch(44% 0.2 266)"]},{"slug":"halftone","name":"Halftone","p":["oklch(96.2% 0.032 94)","oklch(23% 0.040 38)","oklch(54.5% 0.215 33)"]},{"slug":"hedgerow","name":"Hedgerow","p":["oklch(24% 0.052 158)","oklch(93% 0.022 88)","oklch(87% 0.19 118)"]},{"slug":"hum","name":"Hum","p":["oklch(97% 0.012 95)","oklch(20% 0.014 255)","oklch(87% 0.175 96)"]},{"slug":"ink","name":"Ink","p":["oklch(99.5% 0.003 100)","oklch(16% 0 0)","oklch(50% 0.095 188)"]},{"slug":"kiln","name":"Kiln","p":["oklch(13% 0.012 40)","oklch(94% 0.02 80)","oklch(70% 0.2 45)"]},{"slug":"loom","name":"Loom","p":["oklch(95.5% 0.014 85)","oklch(21% 0.012 60)","oklch(34% 0.115 267)"]},{"slug":"lumen","name":"Lumen","p":["oklch(12.5% 0.027 290)","oklch(96% 0.01 300)","oklch(80% 0.15 62)"]},{"slug":"manifesto","name":"Manifesto","p":["oklch(13% 0.01 60)","oklch(95% 0.014 85)","oklch(56% 0.228 28)"]},{"slug":"midnight","name":"Midnight","p":["oklch(14% 0.048 264)","oklch(95% 0.016 250)","oklch(80% 0.11 230)"]},{"slug":"newsprint","name":"Newsprint","p":["oklch(94% 0.011 92)","oklch(17% 0.012 60)","oklch(44% 0.13 32)"]},{"slug":"overprint","name":"Overprint","p":["oklch(91.5% 0.014 92)","oklch(17% 0.008 60)","oklch(65% 0.12 212)"]},{"slug":"pasteup","name":"Paste-up","p":["oklch(73% 0.068 70)","oklch(17% 0.01 60)","oklch(93% 0.2 112)"]},{"slug":"piste","name":"Piste","p":["oklch(98.5% 0.005 260)","oklch(16% 0.012 260)","oklch(52% 0.25 265)"]},{"slug":"refract","name":"Refract","p":["oklch(98.2% 0.006 95)","oklch(23% 0.035 245)","oklch(50% 0.12 234)"]},{"slug":"ribbon","name":"Ribbon","p":["oklch(98.2% 0.008 82)","oklch(18% 0.006 80)","oklch(44% 0.075 190)"]},{"slug":"rim","name":"Rim","p":["oklch(9% 0.008 75)","oklch(94% 0.010 80)","oklch(72% 0.17 45)"]},{"slug":"riso","name":"Riso","p":["oklch(97% 0.011 90)","oklch(40% 0.165 265)","oklch(68% 0.235 356)"]},{"slug":"solstice","name":"Solstice","p":["oklch(94% 0.03 80)","oklch(27% 0.05 50)","oklch(54% 0.20 24)"]},{"slug":"specimen","name":"Specimen","p":["oklch(96.5% 0.016 82)","oklch(17% 0.012 60)","oklch(45% 0.18 262)"]},{"slug":"spore","name":"Spore","p":["oklch(15% 0.012 60)","oklch(93% 0.022 85)","oklch(77% 0.09 30)"]},{"slug":"sport","name":"Sport","p":["oklch(98% 0.005 250)","oklch(16% 0.080 260)","oklch(88% 0.200 120)"]},{"slug":"squeeze","name":"Squeeze","p":["oklch(41% 0.100 154)","oklch(99% 0.005 90)","oklch(83% 0.115 56)"]},{"slug":"sticker","name":"Sticker","p":["oklch(95.7% 0.013 82)","oklch(21% 0.011 81)","oklch(56% 0.225 2)"]},{"slug":"studio","name":"Studio","p":["oklch(97.2% 0.006 215)","oklch(16% 0.032 250)","oklch(68% 0.172 50)"]},{"slug":"terminal","name":"Terminal","p":["oklch(12.5% 0.012 150)","oklch(94% 0.03 140)","oklch(87% 0.2 142)"]},{"slug":"terrazzo","name":"Terrazzo","p":["oklch(96% 0.009 82)","oklch(16% 0.006 60)","oklch(53% 0.15 38)"]},{"slug":"ultraviolet","name":"Ultraviolet","p":["oklch(95% 0.02 300)","oklch(18% 0.02 300)","oklch(50% 0.25 290)"]},{"slug":"vantage","name":"Vantage","p":["oklch(13.5% 0.012 235)","oklch(95% 0.006 230)","oklch(89% 0.19 126)"]},{"slug":"vellum","name":"Vellum","p":["oklch(94% 0.024 82)","oklch(23% 0.025 55)","oklch(43% 0.17 268)"]},{"slug":"wayfind","name":"Wayfind","p":["oklch(95.5% 0.006 250)","oklch(16% 0.014 262)","oklch(51% 0.22 264)"]},{"slug":"werkstatt","name":"Werkstatt","p":["oklch(84% 0.024 82)","oklch(18% 0.008 60)","oklch(46% 0.2 264)"]}]</script>
</div>
</section>
@@ -138,7 +138,7 @@
<img class="deal__c deal__c--2" src="assets/phone/hedgerow.webp" width="360" height="780" alt="" loading="lazy">
<span class="deal__tag">Hedgerow</span>
</div>
- <h3>Deals one of 48 themes</h3>
+ <h3>Deals one of 50 themes</h3>
<p>It picks three that fit your prompt. Say custom and it designs from&nbsp;scratch.</p>
</li>
<li class="how__step">
@@ -171,29 +171,29 @@
<section class="sec" id="themes" aria-labelledby="themes-title">
<div class="wrap">
<div class="head">
- <h2 id="themes-title">Forty-eight themes to start&nbsp;from</h2>
+ <h2 id="themes-title">Fifty themes to start&nbsp;from</h2>
<p class="head__sub">Each one is a paper, a set of type, a palette and a way with photographs. The layout is up to the&nbsp;build.</p>
</div>
<div class="th-bar">
<div class="seg" role="group" aria-label="Filter themes by genre" data-th-filter>
- <button type="button" class="pill" aria-pressed="true" data-genre="all">All <span class="pill__n">48</span></button>
+ <button type="button" class="pill" aria-pressed="true" data-genre="all">All <span class="pill__n">50</span></button>
<button type="button" class="pill" aria-pressed="false" data-genre="editorial">Editorial <span class="pill__n">20</span></button>
- <button type="button" class="pill" aria-pressed="false" data-genre="modern-minimal">Modern minimal <span class="pill__n">11</span></button>
- <button type="button" class="pill" aria-pressed="false" data-genre="atmospheric">Atmospheric <span class="pill__n">8</span></button>
+ <button type="button" class="pill" aria-pressed="false" data-genre="modern-minimal">Modern minimal <span class="pill__n">12</span></button>
+ <button type="button" class="pill" aria-pressed="false" data-genre="atmospheric">Atmospheric <span class="pill__n">9</span></button>
<button type="button" class="pill" aria-pressed="false" data-genre="playful">Playful <span class="pill__n">9</span></button>
</div>
</div>
<ul class="th-grid" data-th-grid>
+ <li class="th" data-genre="atmospheric"><a class="th__link" href="themes/refract/" data-slug="refract" data-name="Refract" data-mat="Sun on white plaster, water light moving across it." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/refract.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Refract</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/cobalt/" data-slug="cobalt" data-name="Cobalt" data-mat="A clean developer tool with one electric blue." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/cobalt.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Cobalt</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/dusk/" data-slug="dusk" data-name="Dusk" data-mat="Fog at dusk, slate below, the product in smoked glass." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/dusk.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Dusk</span></a></li>
+ <li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/vantage/" data-slug="vantage" data-name="Vantage" data-mat="A scan at night, every point measured and swept." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/vantage.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Vantage</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/furrow/" data-slug="furrow" data-name="Furrow" data-mat="A practical farm office on warm paper, with one tangerine." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/furrow.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Furrow</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/studio/" data-slug="studio" data-name="Studio" data-mat="A design studio&#x27;s white wall, the work in true colour." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/studio.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Studio</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/atelier/" data-slug="atelier" data-name="Atelier" data-mat="A quiet studio in warm daylight, limewash and umber." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/atelier.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Atelier</span></a></li>
<li class="th" data-genre="atmospheric"><a class="th__link" href="themes/ribbon/" data-slug="ribbon" data-name="Ribbon" data-mat="A quiet night, machined faders and one lit pill." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/ribbon.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Ribbon</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/dose/" data-slug="dose" data-name="Dose" data-mat="A clinic-clean app with a pale green tint." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/dose.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Dose</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/coral/" data-slug="coral" data-name="Coral" data-mat="A calm app on warm grey, with one coral signal." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/coral.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Coral</span></a></li>
- <li class="th" data-genre="atmospheric"><a class="th__link" href="themes/terminal/" data-slug="terminal" data-name="Terminal" data-mat="The page is a terminal, its pictures printed in type." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/terminal.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Terminal</span></a></li>
- <li class="th" data-genre="editorial"><a class="th__link" href="themes/hedgerow/" data-slug="hedgerow" data-name="Hedgerow" data-mat="Deep hedge green with cream type and one bright shoot." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/hedgerow.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Hedgerow</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/almanac/" data-slug="almanac" data-name="Almanac" data-mat="A reference book on slate paper, exact to the decimal." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/almanac.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Almanac</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/arcade/" data-slug="arcade" data-name="Arcade" data-mat="An after-hours arcade cabinet, loud and lit." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/arcade.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Arcade</span></a></li>
<li class="th" data-genre="atmospheric"><a class="th__link" href="themes/bloom/" data-slug="bloom" data-name="Bloom" data-mat="Soft paper warmed by two terracotta glows." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/bloom.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Bloom</span></a></li>
@@ -208,6 +208,7 @@
<li class="th" data-genre="editorial"><a class="th__link" href="themes/garden/" data-slug="garden" data-name="Garden" data-mat="Oat paper, deep green ink and daylight." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/garden.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Garden</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/grid/" data-slug="grid" data-name="Grid" data-mat="Swiss columns, ultramarine fields and one red mark." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/grid.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Grid</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/halftone/" data-slug="halftone" data-name="Halftone" data-mat="A comic print on butter stock, through a dot screen." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/halftone.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Halftone</span></a></li>
+ <li class="th" data-genre="editorial"><a class="th__link" href="themes/hedgerow/" data-slug="hedgerow" data-name="Hedgerow" data-mat="Deep hedge green with cream type and one bright shoot." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/hedgerow.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Hedgerow</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/hum/" data-slug="hum" data-name="Hum" data-mat="Cheerful, tactile, with buttons that press like keys." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/hum.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Hum</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/ink/" data-slug="ink" data-name="Ink" data-mat="White paper and a pure black, with one teal." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/ink.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Ink</span></a></li>
<li class="th" data-genre="atmospheric"><a class="th__link" href="themes/kiln/" data-slug="kiln" data-name="Kiln" data-mat="A dark workshop where only the hot things glow." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/kiln.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Kiln</span></a></li>
@@ -227,13 +228,14 @@
<li class="th" data-genre="editorial"><a class="th__link" href="themes/sport/" data-slug="sport" data-name="Sport" data-mat="Race-day capitals on concrete, with one volt yellow." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/sport.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Sport</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/squeeze/" data-slug="squeeze" data-name="Squeeze" data-mat="Forest green and fruit photographed bright and close." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/squeeze.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Squeeze</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/sticker/" data-slug="sticker" data-name="Sticker" data-mat="Die-cut stickers with hot pink and lime." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/sticker.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Sticker</span></a></li>
+ <li class="th" data-genre="atmospheric"><a class="th__link" href="themes/terminal/" data-slug="terminal" data-name="Terminal" data-mat="The page is a terminal, its pictures printed in type." data-genre-name="Atmospheric"><span class="th__shot"><img src="assets/themes/terminal.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Terminal</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/terrazzo/" data-slug="terrazzo" data-name="Terrazzo" data-mat="White cards on off-white, wide heads and rust." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/terrazzo.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Terrazzo</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/ultraviolet/" data-slug="ultraviolet" data-name="Ultraviolet" data-mat="Lavender paper pulled into one saturated violet." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/ultraviolet.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Ultraviolet</span></a></li>
<li class="th" data-genre="editorial"><a class="th__link" href="themes/vellum/" data-slug="vellum" data-name="Vellum" data-mat="An old printing house: parchment, blackletter and ultramarine." data-genre-name="Editorial"><span class="th__shot"><img src="assets/themes/vellum.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Vellum</span></a></li>
<li class="th" data-genre="modern-minimal"><a class="th__link" href="themes/wayfind/" data-slug="wayfind" data-name="Wayfind" data-mat="Signage in mono, cobalt for what is live." data-genre-name="Modern minimal"><span class="th__shot"><img src="assets/themes/wayfind.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Wayfind</span></a></li>
<li class="th" data-genre="playful"><a class="th__link" href="themes/werkstatt/" data-slug="werkstatt" data-name="Werkstatt" data-mat="A workshop in the three primaries." data-genre-name="Playful"><span class="th__shot"><img src="assets/themes/werkstatt.webp" width="400" height="250" alt="" loading="lazy"></span><span class="th__name">Werkstatt</span></a></li>
</ul>
- <button class="btn btn--line th-more" type="button" data-th-more>Show all 48 themes</button>
+ <button class="btn btn--line th-more" type="button" data-th-more>Show all 50 themes</button>
</div>
<dialog class="th-dlg" data-th-dlg aria-labelledby="th-dlg-name">
<div class="th-dlg__in" tabindex="-1" autofocus>
diff --git a/site/themes/refract/base.css b/site/themes/refract/base.css
new file mode 100644
index 0000000..232cdfa
--- /dev/null
+++ b/site/themes/refract/base.css
@@ -0,0 +1,28 @@
+*, *::before, *::after { box-sizing: border-box; }
+html, body { overflow-x: clip; }
+html { scrollbar-color: var(--color-shade-2) var(--color-paper); scroll-padding-top: var(--space-3xl); }
+body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
+:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
+a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
+h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
+h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
+.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
+p { margin: 0; text-wrap: pretty; }
+p:not([class]) { max-width: 65ch; }
+img, video { max-width: 100%; height: auto; display: block; }
+svg { display: block; }
+[hidden] { display: none !important; }
+button, input, select, textarea { font: inherit; }
+.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
+.num, .figure, td.num { font-variant-numeric: tabular-nums; }
+.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
+[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
+[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
+[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
+@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
+@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
+@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
+/* photographs: natural con=3 exp=4, sunlit and bright */
+[data-slot]:has(> img) { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
+[data-slot] > img, .photo { filter: contrast(1.03) brightness(1.04); }
diff --git a/site/themes/refract/index.html b/site/themes/refract/index.html
new file mode 100644
index 0000000..298fe00
--- /dev/null
+++ b/site/themes/refract/index.html
@@ -0,0 +1,277 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Bellwater Lido: a heated outdoor pool, open every day of the year</title>
+<meta name="description" content="Bellwater Lido is a heated fifty metre pool under open sky. Book a lane by the session, from 06:30 to 21:00, every day of the year.">
+<link rel="preconnect" href="https://fonts.googleapis.com">
+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+<link href="https://fonts.googleapis.com/css2?family=Funnel+Display:wght@300;400;500&family=Funnel+Sans:wght@400;500&display=swap" rel="stylesheet">
+<link rel="icon" href="data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 32 32%27%3E%3Ccircle cx=%2716%27 cy=%2716%27 r=%2711%27 fill=%27none%27 stroke=%27%23005f94%27 stroke-width=%276%27/%3E%3C/svg%3E">
+<link rel="stylesheet" href="style.css">
+<script src="scene.js" defer></script>
+</head>
+<body>
+<a class="skip" href="#main">Skip to content</a>
+
+<header class="nav" data-nav>
+ <div class="nav__pill">
+ <a class="wordmark" href="#top" aria-label="Bellwater Lido, home"><span class="wordmark__ring" aria-hidden="true"></span>Bellwater Lido</a>
+ <nav class="nav__links" aria-label="Main">
+ <a href="#today">Sessions</a>
+ <a href="#quiet">Quiet hours</a>
+ <a href="#prices">Prices</a>
+ <a href="#visit">Visit</a>
+ </nav>
+ <a class="btn btn--sm" href="#book">Book a swim</a>
+ </div>
+</header>
+
+<main id="main">
+
+<section class="hero" id="top" aria-labelledby="hero-head">
+ <div class="pool" aria-hidden="true">
+ <canvas class="water" data-water="ground"></canvas>
+ <div class="pool__wall"></div>
+ </div>
+ <div class="container hero__grid">
+ <div class="hero__text">
+ <h1 id="hero-head">Swim outside, all year.</h1>
+ <p class="lead">A heated fifty metre pool under open sky, booked by the session.</p>
+ <div class="hero__actions">
+ <a class="btn" href="#book">Book a swim</a>
+ <a class="btn btn--clear" href="#prices">See prices</a>
+ </div>
+ <p class="hero__fine">Open every day, 06:30 to 21:00</p>
+ </div>
+
+ <form class="clear today" data-today aria-labelledby="today-title">
+ <div class="today__head">
+ <div>
+ <p class="today__title" id="today-title">Today</p>
+ <p class="today__date">Tuesday 27 October</p>
+ </div>
+ <dl class="today__temps">
+ <div><dt>Water</dt><dd class="num">24.0°C</dd></div>
+ <div><dt>Air</dt><dd class="num">13°C</dd></div>
+ </dl>
+ </div>
+ <fieldset class="slots">
+ <legend class="visually-hidden">Pick a session</legend>
+ <label class="slot">
+ <input type="radio" name="slot" value="12:30" data-name="Lunch lanes" checked>
+ <span class="slot__time num">12:30</span>
+ <span class="slot__name">Lunch lanes<small>Fast, medium, slow</small></span>
+ <span class="slot__left num">3 left</span>
+ </label>
+ <label class="slot">
+ <input type="radio" name="slot" value="15:30" data-name="Family swim">
+ <span class="slot__time num">15:30</span>
+ <span class="slot__name">Family swim<small>Whole pool, no lanes</small></span>
+ <span class="slot__left num">30 left</span>
+ </label>
+ <label class="slot is-full">
+ <input type="radio" name="slot" value="17:30" disabled>
+ <span class="slot__time num">17:30</span>
+ <span class="slot__name">Evening lanes<small>Fast, medium, slow</small></span>
+ <span class="slot__left">Full</span>
+ </label>
+ <label class="slot">
+ <input type="radio" name="slot" value="19:30" data-name="Late swim">
+ <span class="slot__time num">19:30</span>
+ <span class="slot__name">Late swim<small>Medium, slow</small></span>
+ <span class="slot__left num">14 left</span>
+ </label>
+ </fieldset>
+ <div class="today__foot">
+ <p class="today__price"><span class="num">£6.50</span><small>One swim, 45 minutes</small></p>
+ <button class="btn" type="submit" data-today-btn>Book 12:30</button>
+ </div>
+ <p class="today__done" data-today-done role="status" hidden></p>
+ </form>
+ </div>
+</section>
+
+<section class="section lanes" id="today" aria-labelledby="lanes-head">
+ <div class="container">
+ <div class="head head--split">
+ <h2 id="lanes-head">Today, lane by lane</h2>
+ <p class="lead">Every session has fast, medium and slow lanes unless it says whole pool.</p>
+ </div>
+ <ol class="timetable">
+ <li class="row is-past">
+ <span class="row__time num">06:30</span>
+ <span class="row__name">Early lanes<small>Until 08:00</small></span>
+ <span class="row__lanes"><i>Fast</i><i>Medium</i><i>Slow</i></span>
+ <span class="row__state">Finished</span>
+ </li>
+ <li class="row is-past">
+ <span class="row__time num">09:00</span>
+ <span class="row__name">Lane swim<small>Until 11:00</small></span>
+ <span class="row__lanes"><i>Medium</i><i>Slow</i></span>
+ <span class="row__state">Finished</span>
+ </li>
+ <li class="row is-next">
+ <canvas class="row__light" data-water="row" aria-hidden="true"></canvas>
+ <span class="row__time num">12:30</span>
+ <span class="row__name">Lunch lanes<small>Until 14:00</small></span>
+ <span class="row__lanes"><i>Fast</i><i>Medium</i><i>Slow</i></span>
+ <a class="row__state pill pill--live" href="#book"><span class="num">3</span> spaces, book</a>
+ </li>
+ <li class="row">
+ <span class="row__time num">15:30</span>
+ <span class="row__name">Family swim<small>Until 17:00</small></span>
+ <span class="row__lanes"><i class="wide">Whole pool</i></span>
+ <a class="row__state pill" href="#book"><span class="num">30</span> spaces</a>
+ </li>
+ <li class="row is-full">
+ <span class="row__time num">17:30</span>
+ <span class="row__name">Evening lanes<small>Until 19:00</small></span>
+ <span class="row__lanes"><i>Fast</i><i>Medium</i><i>Slow</i></span>
+ <span class="row__state pill pill--full">Full</span>
+ </li>
+ <li class="row">
+ <span class="row__time num">19:30</span>
+ <span class="row__name">Late swim<small>Until 21:00, under lights</small></span>
+ <span class="row__lanes"><i>Medium</i><i>Slow</i></span>
+ <a class="row__state pill" href="#book"><span class="num">14</span> spaces</a>
+ </li>
+ </ol>
+ </div>
+</section>
+
+<section class="section warm" aria-labelledby="warm-head">
+ <div class="container warm__grid">
+ <p class="warm__fig num" aria-hidden="true">24<span>°C</span></p>
+ <div class="warm__text">
+ <h2 id="warm-head">Warm water in January</h2>
+ <p class="lead">The pool is heated to 24 degrees every day of the year, checked each morning at six.</p>
+ <ul class="facts">
+ <li><span>Length</span><b>50 metres, eight lanes</b></li>
+ <li><span>Hours</span><b>06:30 to 21:00, every day</b></li>
+ <li><span>Poolside</span><b>Sauna, hot showers, lockers</b></li>
+ </ul>
+ </div>
+ </div>
+</section>
+
+<section class="section quiet" id="quiet" aria-labelledby="quiet-head">
+ <div class="container">
+ <div class="quiet__top">
+ <div class="head">
+ <h2 id="quiet-head">Pick a quiet hour</h2>
+ <p class="lead" data-quiet-line>Weekdays are quietest at two in the afternoon.</p>
+ </div>
+ <div class="seg" role="radiogroup" aria-label="Show">
+ <button type="button" role="radio" aria-checked="true" data-days="weekday">Weekdays</button>
+ <button type="button" role="radio" aria-checked="false" data-days="weekend">Weekends</button>
+ </div>
+ </div>
+ <figure class="busy">
+ <div class="busy__plot">
+ <canvas class="busy__water" data-water="bars" role="img" aria-label="Weekdays: busiest from 17:00 to 19:00, quietest at 14:00."></canvas>
+ <span class="busy__now" data-now aria-hidden="true"><span>Now</span></span>
+ </div>
+ <div class="busy__hours" aria-hidden="true">
+ <span>06</span><span>07</span><span>08</span><span>09</span><span>10</span><span>11</span><span>12</span><span>13</span><span>14</span><span>15</span><span>16</span><span>17</span><span>18</span><span>19</span><span>20</span>
+ </div>
+ <figcaption class="busy__cap"><span>How full the pool usually is, hour by hour</span><span>Last four weeks</span></figcaption>
+ </figure>
+ </div>
+</section>
+
+<section class="section show" aria-label="The pool">
+ <div class="container">
+ <figure class="show__frame" data-slot>
+ <img class="photo" src="photos/palms.jpg" width="1920" height="1280" alt="Still blue pool water with the reflections of palm trees across the tiles" loading="lazy" decoding="async">
+ </figure>
+ <p class="show__cap">Still water before the first lane goes in.</p>
+ </div>
+</section>
+
+<section class="section prices" id="prices" aria-labelledby="prices-head">
+ <div class="container prices__grid">
+ <div class="prices__main">
+ <div class="head">
+ <h2 id="prices-head">Swim once, or all year</h2>
+ <p class="lead">Members book seven days ahead, everyone else three.</p>
+ </div>
+ <div class="clear board">
+ <table>
+ <thead>
+ <tr><th scope="col">Ticket</th><th scope="col" class="r">Adult</th><th scope="col" class="r">Under 18</th></tr>
+ </thead>
+ <tbody>
+ <tr><th scope="row">One swim<small>45 minutes, any session</small></th><td class="r num">£6.50</td><td class="r num">£4.00</td></tr>
+ <tr><th scope="row">Ten swims<small>Kept for a year</small></th><td class="r num">£58</td><td class="r num">£36</td></tr>
+ <tr class="is-lead"><th scope="row">Monthly<small>Swim as often as you like</small></th><td class="r num">£42</td><td class="r num">£26</td></tr>
+ <tr><th scope="row">Yearly<small>Two months free</small></th><td class="r num">£420</td><td class="r num">£260</td></tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+ <figure class="prices__photo" data-slot>
+ <img class="photo" src="photos/lanes.jpg" width="1920" height="1440" alt="White starting blocks along a clear blue pool divided by red lane ropes" loading="lazy" decoding="async">
+ </figure>
+ </div>
+</section>
+
+<section class="section book" id="book" aria-labelledby="book-head">
+ <div class="container book__grid">
+ <form class="clear booker" data-booker aria-labelledby="book-head">
+ <h2 id="book-head">Book your lane</h2>
+ <fieldset class="days">
+ <legend>Day</legend>
+ <label><input type="radio" name="day" value="Today" checked><span>Today<small class="num">27</small></span></label>
+ <label><input type="radio" name="day" value="Wednesday"><span>Wed<small class="num">28</small></span></label>
+ <label><input type="radio" name="day" value="Thursday"><span>Thu<small class="num">29</small></span></label>
+ <label><input type="radio" name="day" value="Friday"><span>Fri<small class="num">30</small></span></label>
+ <label><input type="radio" name="day" value="Saturday"><span>Sat<small class="num">31</small></span></label>
+ </fieldset>
+ <fieldset class="times">
+ <legend>Session</legend>
+ <label><input type="radio" name="time" value="07:00"><span class="num">07:00</span></label>
+ <label><input type="radio" name="time" value="12:30" checked><span class="num">12:30</span></label>
+ <label><input type="radio" name="time" value="15:30"><span class="num">15:30</span></label>
+ <label><input type="radio" name="time" value="19:30"><span class="num">19:30</span></label>
+ </fieldset>
+ <div class="booker__foot">
+ <label class="field">
+ <span>Email for your ticket</span>
+ <input type="email" name="email" autocomplete="email" placeholder="[email protected]" required>
+ </label>
+ <button class="btn" type="submit" data-booker-btn>Book today at 12:30</button>
+ </div>
+ <p class="booker__done" data-booker-done role="status" hidden></p>
+ </form>
+ <div class="visit" id="visit">
+ <h3>Finding us</h3>
+ <p class="visit__addr">Marsh Lane, Bellwater, at the north gate of the park.</p>
+ <dl class="visit__list">
+ <div><dt>By train</dt><dd>Ten minutes on foot from Bellwater station</dd></div>
+ <div><dt>By bike</dt><dd>Racks for forty by the gate</dd></div>
+ <div><dt>Bring</dt><dd>A towel and a lock; caps are optional</dd></div>
+ </dl>
+ </div>
+ </div>
+</section>
+
+</main>
+
+<footer class="foot">
+ <div class="container">
+ <p class="foot__line">See you in the water.</p>
+ <div class="foot__row">
+ <nav class="foot__links" aria-label="Footer">
+ <a href="#today">Sessions</a>
+ <a href="#prices">Prices</a>
+ <a href="#visit">Visit</a>
+ <a href="#book">Book a swim</a>
+ </nav>
+ <p class="foot__fine">Bellwater Lido, Marsh Lane, Bellwater. Photographs: <a href="https://commons.wikimedia.org/wiki/File:Swimming_Pool_in_a_hotel_in_Tamil_Nadu_03.jpg">Kritzolina</a> (CC BY-SA 4.0), <a href="https://commons.wikimedia.org/wiki/File:Swimming_Pool_lanes_and_starting_blocks_at_AIS.jpg">KeepActive Australia</a> (CC BY-SA 4.0), Wikimedia Commons.</p>
+ </div>
+ </div>
+</footer>
+</body>
+</html>
diff --git a/site/themes/refract/photos/lanes.jpg b/site/themes/refract/photos/lanes.jpg
new file mode 100644
index 0000000..d19ad1a
Binary files /dev/null and b/site/themes/refract/photos/lanes.jpg differ
diff --git a/site/themes/refract/photos/palms.jpg b/site/themes/refract/photos/palms.jpg
new file mode 100644
index 0000000..a54ada8
Binary files /dev/null and b/site/themes/refract/photos/palms.jpg differ
diff --git a/site/themes/refract/scene.js b/site/themes/refract/scene.js
new file mode 100644
index 0000000..ba163d5
--- /dev/null
+++ b/site/themes/refract/scene.js
@@ -0,0 +1,310 @@
+// Refract, look A: sun through moving water, rendered live. One shader drives three surfaces:
+// the pool floor in the hero, the lit row in the timetable and the columns of water in the quiet-hours chart.
+(() => {
+ const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
+ const root = getComputedStyle(document.documentElement);
+
+ // oklch() token to sRGB 0..1
+ function oklch(str) {
+ const m = str.match(/oklch\(\s*([\d.]+)%\s+([\d.]+)\s+([\d.]+)/);
+ if (!m) return [1, 1, 1];
+ const L = +m[1] / 100, C = +m[2], h = (+m[3] * Math.PI) / 180;
+ const a = C * Math.cos(h), b = C * Math.sin(h);
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
+ const l = l_ ** 3, mm = m_ ** 3, s = s_ ** 3;
+ const lin = [
+ 4.0767416621 * l - 3.3077115913 * mm + 0.2309699292 * s,
+ -1.2684380046 * l + 2.6097574011 * mm - 0.3413193965 * s,
+ -0.0041960863 * l - 0.7034186147 * mm + 1.707614701 * s,
+ ];
+ return lin.map((v) => {
+ v = Math.min(1, Math.max(0, v));
+ return v <= 0.0031308 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055;
+ });
+ }
+ const tok = (n) => oklch(root.getPropertyValue(n).trim());
+
+ const VERT = 'attribute vec2 p; void main(){ gl_Position = vec4(p, 0.0, 1.0); }';
+ const FRAG = `
+precision highp float;
+uniform vec2 uRes; uniform float uDpr; uniform float uTime;
+uniform vec3 uShade; uniform vec3 uDeep; uniform vec3 uLight; uniform vec3 uGrout;
+uniform float uStrength; uniform float uTile; uniform float uCell; uniform float uSplit; uniform float uMode;
+uniform float uBars[15]; uniform float uGap; uniform float uRad; uniform float uTop;
+uniform vec3 uRip[4]; uniform float uClock;
+
+float h1(vec2 p){ return fract(sin(dot(p, vec2(127.1, 311.7))) * 43758.5453); }
+vec2 h2(vec2 p){ return fract(sin(vec2(dot(p, vec2(127.1, 311.7)), dot(p, vec2(269.5, 183.3)))) * 43758.5453); }
+float vnoise(vec2 p){
+ vec2 i = floor(p), f = fract(p); vec2 u = f * f * (3.0 - 2.0 * f);
+ return mix(mix(h1(i), h1(i + vec2(1.0, 0.0)), u.x), mix(h1(i + vec2(0.0, 1.0)), h1(i + vec2(1.0, 1.0)), u.x), u.y);
+}
+// distance to the nearest seam between moving cells: the bright lines of a caustic sit on the seams
+float seam(vec2 p, float t){
+ vec2 n = floor(p), f = fract(p); float f1 = 8.0, f2 = 8.0;
+ for (int j = -1; j <= 1; j++) for (int i = -1; i <= 1; i++) {
+ vec2 g = vec2(float(i), float(j)); vec2 o = h2(n + g);
+ o = 0.5 + 0.42 * sin(t + 6.2831 * o);
+ float d = length(g + o - f);
+ if (d < f1) { f2 = f1; f1 = d; } else if (d < f2) { f2 = d; }
+ }
+ return f2 - f1;
+}
+vec2 warp(vec2 p, float t){
+ return vec2(vnoise(p * 0.32 + vec2(t * 0.05, 0.0)), vnoise(p * 0.32 + vec2(5.2, t * 0.043))) - 0.5;
+}
+// sun through a moving surface: the light folds into a fine web, brightest where the folds cross
+float web(vec2 p, float t){
+ vec2 q = p * 1.7 - 250.0; vec2 i = q; float c = 1.0; float inten = 0.0048;
+ for (int n = 0; n < 5; n++) {
+ float tt = t * (1.0 - 3.5 / float(n + 1));
+ i = q + vec2(cos(tt - i.x) + sin(tt + i.y), sin(tt - i.y) + cos(tt + i.x));
+ c += 1.0 / length(vec2(q.x / (sin(i.x + tt) / inten), q.y / (cos(i.y + tt) / inten)));
+ }
+ c /= 5.0; c = 1.17 - pow(c, 1.4);
+ return pow(abs(c), 9.0);
+}
+float caustic(vec2 p, float t){
+ p += warp(p, t) * 0.6;
+ float lit = 0.55 + 0.6 * smoothstep(0.1, 0.9, vnoise(p * 0.8 + vec2(t * 0.05, -t * 0.04)));
+ return min(web(p, t * 0.42 + 23.0) * 1.5, 1.7) * lit;
+}
+float sdBox(vec2 p, vec2 b, float r){ vec2 q = abs(p) - b + r; return length(max(q, 0.0)) + min(max(q.x, q.y), 0.0) - r; }
+
+void main(){
+ vec2 px = gl_FragCoord.xy / uDpr;
+ vec2 size = uRes / uDpr;
+ float t = uTime;
+ // ripples from the pointer: a ring that runs out and fades, bending the light it crosses
+ vec2 bend = vec2(0.0); float glint = 0.0;
+ for (int i = 0; i < 4; i++) {
+ vec3 r = uRip[i];
+ float age = uClock - r.z;
+ if (r.z > 0.0 && age < 3.5) {
+ vec2 dv = px - r.xy; float d = length(dv) + 0.001;
+ float front = d - age * 210.0;
+ float ring = sin(front * 0.07) * exp(-front * front / 12000.0) * exp(-age * 0.9) * exp(-d / 700.0);
+ bend += dv / d * ring; glint += ring;
+ }
+ }
+ vec2 p = (px + bend * 30.0) / uCell;
+ vec2 sun = vec2(0.62, 0.38) * uSplit;
+ vec3 c = vec3(caustic(p + sun, t), caustic(p, t), caustic(p - sun, t));
+ // the floor: tiles seen through the moving surface
+ vec2 q = px + warp(p * 1.6, t) * 9.0;
+ vec2 g = abs(fract(q / uTile) - 0.5);
+ float grout = smoothstep(0.465, 0.492, max(g.x, g.y));
+ float depth = vnoise(px / 420.0 + vec2(t * 0.006, 0.0));
+ vec3 base = mix(uDeep, uShade, 0.55 + 0.45 * depth);
+ base = mix(base, uGrout, grout * 0.28);
+ // sunlit toward the top right, the light taken from the dark between seams
+ float sunlit = 0.82 + 0.28 * (px.x / size.x) * 0.5 + 0.28 * (px.y / size.y) * 0.5;
+ vec3 col = base * (0.94 + 0.06 * c.g + glint * 0.07) + uLight * c * uStrength * sunlit;
+ float a = 1.0;
+ if (uMode > 0.5) {
+ float n = 15.0;
+ float bw = (size.x - (n - 1.0) * uGap) / n;
+ float idx = floor(px.x / (bw + uGap));
+ float h = 0.0;
+ for (int i = 0; i < 15; i++) { if (float(i) == idx) h = uBars[i]; }
+ h = max(h * (size.y - uTop), 6.0);
+ vec2 centre = vec2(idx * (bw + uGap) + bw * 0.5, (h - uRad) * 0.5);
+ float d = sdBox(px - centre, vec2(bw * 0.5, (h + uRad) * 0.5), uRad);
+ a = 1.0 - smoothstep(-0.6, 0.6, d);
+ if (idx < 0.0 || idx > n - 1.0) a = 0.0;
+ // the water's surface: a bright line at the top of each column
+ float surf = smoothstep(2.4, 0.0, abs(px.y - (h - 1.4)));
+ col = mix(col, uLight, surf * 0.85);
+ }
+ gl_FragColor = vec4(min(col, vec3(1.0)) * a, a);
+}`;
+
+ const surfaces = [];
+
+ function make(canvas, kind) {
+ const gl = canvas.getContext('webgl', { premultipliedAlpha: true, antialias: false, alpha: true });
+ if (!gl) return null;
+ const sh = (type, src) => { const s = gl.createShader(type); gl.shaderSource(s, src); gl.compileShader(s); if (!gl.getShaderParameter(s, gl.COMPILE_STATUS)) { console.warn(gl.getShaderInfoLog(s)); return null; } return s; };
+ const prog = gl.createProgram();
+ const vs = sh(gl.VERTEX_SHADER, VERT), fs = sh(gl.FRAGMENT_SHADER, FRAG);
+ if (!vs || !fs) return null;
+ gl.attachShader(prog, vs); gl.attachShader(prog, fs); gl.linkProgram(prog);
+ if (!gl.getProgramParameter(prog, gl.LINK_STATUS)) return null;
+ gl.useProgram(prog);
+ const buf = gl.createBuffer();
+ gl.bindBuffer(gl.ARRAY_BUFFER, buf);
+ gl.bufferData(gl.ARRAY_BUFFER, new Float32Array([-1, -1, 3, -1, -1, 3]), gl.STATIC_DRAW);
+ const loc = gl.getAttribLocation(prog, 'p');
+ gl.enableVertexAttribArray(loc); gl.vertexAttribPointer(loc, 2, gl.FLOAT, false, 0, 0);
+ const U = (n) => gl.getUniformLocation(prog, n);
+ const u = {}; ['uRes', 'uDpr', 'uTime', 'uShade', 'uDeep', 'uLight', 'uGrout', 'uStrength', 'uTile', 'uCell', 'uSplit', 'uMode', 'uBars', 'uGap', 'uRad', 'uTop', 'uRip', 'uClock'].forEach((n) => (u[n] = U(n)));
+
+ const shade = tok('--color-shade'), deep = tok('--color-shade-2'), light = [1, 1, 1];
+ const cfg = {
+ ground: { shade, deep, grout: [0.9, 0.97, 0.99], strength: 0.72, tile: 30, cell: 118, split: 0.045 },
+ row: { shade: shade.map((v) => v * 0.55 + 0.45), deep: shade, grout: [0.94, 0.98, 1], strength: 0.42, tile: 26, cell: 96, split: 0.03 },
+ bars: { shade, deep, grout: [0.9, 0.97, 0.99], strength: 0.58, tile: 18, cell: 74, split: 0.04 },
+ }[kind];
+ gl.uniform3fv(u.uShade, cfg.shade); gl.uniform3fv(u.uDeep, cfg.deep); gl.uniform3fv(u.uLight, light); gl.uniform3fv(u.uGrout, cfg.grout);
+ gl.uniform1f(u.uStrength, cfg.strength); gl.uniform1f(u.uTile, cfg.tile); gl.uniform1f(u.uCell, cfg.cell); gl.uniform1f(u.uSplit, cfg.split);
+ gl.uniform1f(u.uMode, kind === 'bars' ? 1 : 0); gl.uniform1f(u.uRad, 10); gl.uniform1f(u.uTop, 64);
+
+ const s = { canvas, gl, u, kind, rip: new Float32Array(12), ripN: 0, visible: false, bars: new Float32Array(15), target: new Float32Array(15), dpr: 1, w: 0, h: 0, drawn: false };
+ s.resize = () => {
+ const r = canvas.getBoundingClientRect();
+ const dpr = Math.min(window.devicePixelRatio || 1, kind === 'ground' ? 1.5 : 2);
+ const w = Math.max(1, Math.round(r.width * dpr)), h = Math.max(1, Math.round(r.height * dpr));
+ if (w !== s.w || h !== s.h) { canvas.width = w; canvas.height = h; s.w = w; s.h = h; s.dpr = dpr; gl.viewport(0, 0, w, h); s.drawn = false; }
+ if (kind === 'bars') { gl.uniform1f(u.uGap, r.width < 640 ? 8 : 16); gl.uniform1f(u.uRad, r.width < 640 ? 5 : 10); }
+ };
+ s.draw = (time) => {
+ gl.uniform2f(u.uRes, s.w, s.h); gl.uniform1f(u.uDpr, s.dpr); gl.uniform1f(u.uTime, time);
+ if (kind === 'bars') gl.uniform1fv(u.uBars, s.bars);
+ gl.uniform1f(u.uClock, performance.now() / 1000); gl.uniform3fv(u.uRip, s.rip);
+ gl.drawArrays(gl.TRIANGLES, 0, 3);
+ if (!s.drawn) { s.drawn = true; canvas.classList.add('is-on'); }
+ };
+ s.resize();
+ return s;
+ }
+
+ document.querySelectorAll('[data-water]').forEach((c) => { const s = make(c, c.dataset.water); if (s) surfaces.push(s); });
+
+ // a touch on the water: the pointer leaves ripples on the pool in the hero
+ const ground = surfaces.find((x) => x.kind === 'ground');
+ if (ground && !reduce) {
+ let lastRip = 0;
+ const drop = (e, force) => {
+ const now = performance.now();
+ if (!force && now - lastRip < 520) return;
+ lastRip = now;
+ const r = ground.canvas.getBoundingClientRect();
+ const x = e.clientX - r.left, y = r.bottom - e.clientY;
+ if (x < 0 || y < 0 || x > r.width || y > r.height) return;
+ const k = (ground.ripN++ % 4) * 3;
+ ground.rip[k] = x; ground.rip[k + 1] = y; ground.rip[k + 2] = now / 1000;
+ };
+ const hero = document.querySelector('.hero');
+ hero.addEventListener('pointermove', (e) => drop(e, false));
+ hero.addEventListener('pointerdown', (e) => drop(e, true));
+ }
+
+ // quiet hours: how full the pool usually is, 06:00 to 20:00
+ const DATA = {
+ weekday: [0.52, 0.8, 0.6, 0.34, 0.24, 0.3, 0.72, 0.56, 0.14, 0.38, 0.46, 0.86, 0.96, 0.7, 0.38],
+ weekend: [0.12, 0.22, 0.46, 0.74, 0.9, 0.96, 0.82, 0.7, 0.64, 0.58, 0.5, 0.4, 0.3, 0.2, 0.1],
+ };
+ const LINES = {
+ weekday: 'Weekdays are quietest at two in the afternoon.',
+ weekend: 'Weekends are quietest before eight in the morning.',
+ };
+ const NOW = 11; // the present hour, 11:00, the eleventh hour from 06
+ const NOW_IDX = NOW - 6;
+ const bars = surfaces.find((s) => s.kind === 'bars');
+ const nowMark = document.querySelector('[data-now]');
+ const plot = document.querySelector('.busy__plot');
+ const line = document.querySelector('[data-quiet-line]');
+ const LABELS = {
+ weekday: 'Weekdays: busiest from 17:00 to 19:00, quietest at 14:00.',
+ weekend: 'Weekends: busiest from 10:00 to 12:00, quietest before 08:00 and after 19:00.',
+ };
+ let days = 'weekday';
+ function setDays(d) {
+ days = d;
+ if (bars) { bars.target.set(DATA[d]); if (reduce) bars.bars.set(DATA[d]); }
+ document.querySelectorAll('[data-days]').forEach((b) => b.setAttribute('aria-checked', String(b.dataset.days === d)));
+ if (bars) bars.canvas.setAttribute('aria-label', LABELS[d]);
+ if (line) { line.style.opacity = 0; setTimeout(() => { line.textContent = LINES[d]; line.style.opacity = 1; }, reduce ? 0 : 160); }
+ placeNow();
+ if (reduce) frame(performance.now(), true);
+ }
+ function placeNow() {
+ if (!nowMark || !plot || !bars) return;
+ const W = plot.clientWidth, H = plot.clientHeight, gap = W < 640 ? 8 : 16, n = 15;
+ const bw = (W - (n - 1) * gap) / n;
+ const h = Math.max(bars.bars[NOW_IDX] * (H - 64), 6);
+ nowMark.style.left = `${NOW_IDX * (bw + gap) + bw / 2}px`;
+ nowMark.style.bottom = `${h}px`;
+ document.querySelector('.busy__hours')?.style.setProperty('--busy-gap', `${gap}px`);
+ }
+ document.querySelectorAll('[data-days]').forEach((b) => b.addEventListener('click', () => setDays(b.dataset.days)));
+ document.querySelector('.seg')?.addEventListener('keydown', (e) => {
+ if (!['ArrowLeft', 'ArrowRight'].includes(e.key)) return;
+ const next = days === 'weekday' ? 'weekend' : 'weekday';
+ setDays(next); document.querySelector(`[data-days="${next}"]`).focus(); e.preventDefault();
+ });
+
+ // render loop: only what is on screen, nothing when the tab is hidden
+ const io = new IntersectionObserver((es) => es.forEach((e) => {
+ const s = surfaces.find((x) => x.canvas === e.target); if (!s) return;
+ s.visible = e.isIntersecting;
+ if (s.kind === 'bars' && e.isIntersecting && !s.grown) { s.grown = true; s.target.set(DATA[days]); }
+ if (reduce && e.isIntersecting) { if (s.kind === 'bars') s.bars.set(DATA[days]); s.resize(); s.draw(14); placeNow(); }
+ }), { rootMargin: '80px' });
+ surfaces.forEach((s) => io.observe(s.canvas));
+
+ const start = performance.now();
+ let raf = 0, last = start;
+ function frame(now, once) {
+ const dt = Math.min(0.05, (now - last) / 1000); last = now;
+ const t = 14 + (now - start) / 1000 * 0.42;
+ for (const s of surfaces) {
+ if (!s.visible) continue;
+ if (s.kind === 'bars') {
+ let moving = false;
+ for (let i = 0; i < 15; i++) { const d = s.target[i] - s.bars[i]; if (Math.abs(d) > 0.0005) { s.bars[i] += d * Math.min(1, dt * (5 + i * 0.12)); moving = true; } }
+ if (moving) placeNow();
+ }
+ s.draw(reduce ? 14 : t);
+ }
+ if (!once && !reduce) raf = requestAnimationFrame(frame);
+ }
+ if (!reduce) raf = requestAnimationFrame(frame);
+ document.addEventListener('visibilitychange', () => {
+ if (reduce) return;
+ if (document.hidden) cancelAnimationFrame(raf); else { last = performance.now(); raf = requestAnimationFrame(frame); }
+ });
+ let rt = 0;
+ addEventListener('resize', () => { clearTimeout(rt); rt = setTimeout(() => { surfaces.forEach((s) => { s.resize(); if (reduce && s.visible) s.draw(14); }); placeNow(); }, 80); });
+ placeNow();
+
+ // today: the booking panel in the hero
+ const today = document.querySelector('[data-today]');
+ if (today) {
+ const btn = today.querySelector('[data-today-btn]'), done = today.querySelector('[data-today-done]');
+ const sync = () => { const c = today.querySelector('input[name="slot"]:checked'); if (c) btn.textContent = `Book ${c.value}`; done.hidden = true; };
+ today.addEventListener('change', sync);
+ today.addEventListener('submit', (e) => {
+ e.preventDefault();
+ const c = today.querySelector('input[name="slot"]:checked');
+ done.textContent = `${c.dataset.name} at ${c.value} is held for ten minutes. Add your email below to keep it.`;
+ done.hidden = false;
+ const t = document.querySelector(`[data-booker] input[name="time"][value="${c.value}"]`); if (t) { t.checked = true; t.dispatchEvent(new Event('change', { bubbles: true })); }
+ });
+ }
+
+ // book your lane: the close
+ const booker = document.querySelector('[data-booker]');
+ if (booker) {
+ const btn = booker.querySelector('[data-booker-btn]'), done = booker.querySelector('[data-booker-done]');
+ const sync = () => {
+ const d = booker.querySelector('input[name="day"]:checked').value, t = booker.querySelector('input[name="time"]:checked').value;
+ btn.textContent = d === 'Today' ? `Book today at ${t}` : `Book ${d} at ${t}`;
+ done.hidden = true;
+ };
+ booker.addEventListener('change', sync);
+ booker.addEventListener('submit', (e) => {
+ e.preventDefault();
+ const d = booker.querySelector('input[name="day"]:checked').value, t = booker.querySelector('input[name="time"]:checked').value;
+ done.textContent = `Booked: ${d === 'Today' ? 'today' : d} at ${t}. Your ticket is on its way to ${booker.email.value}.`;
+ done.hidden = false;
+ });
+ }
+
+ // the nav firms up once the page moves
+ const nav = document.querySelector('[data-nav]');
+ const onScroll = () => nav && nav.classList.toggle('is-moved', scrollY > 24);
+ addEventListener('scroll', onScroll, { passive: true }); onScroll();
+})();
diff --git a/site/themes/refract/style.css b/site/themes/refract/style.css
new file mode 100644
index 0000000..347c483
--- /dev/null
+++ b/site/themes/refract/style.css
@@ -0,0 +1,259 @@
+/* Hallmark · job: book a swim · shape: Timetable-led, one day at the pool · genre: atmospheric · theme: Refract (new, look A) · signature: the pool floor in sun, live caustics inside a hard pool edge, the booking panel lying on the water
+ * hero: Stage (the head on the deck, the pool beside it with today's sessions on a clear panel) · sections: hero Stage, Rows (today as lanes, the next open row lit by water), Statement (24°C at statement size with a ruled fact list), Chart with a control (the day as columns of water, weekdays or weekends), Showcase (one photograph 21:9), Split (the price board on a clear panel beside a photograph), Form close on paper-2 (book your lane beside the visit facts) · nav: floating clear pill · footer: statement
+ * imagery: two library photographs (still pool water with palm reflections, starting blocks and lane ropes) · samples: the lido, its sessions, prices, temperatures and address are demo placeholders of the shape · refract: water/pool
+ * axes: light/grotesk-sans/cool · posture: restrained · contrast: pass · fold: pass · v2.8.0 */
+@import url("./tokens.css");
+@import url("./base.css");
+
+:root { --nav-h: 64px; }
+
+body { font-size: 1.0625rem; color: var(--color-ink-2); }
+b, strong, th { font-weight: 500; }
+h1, h2, h3 { color: var(--color-ink); font-weight: var(--display-weight); }
+h1 { line-height: 1.0; }
+.lead { color: var(--color-muted); }
+.num { font-variant-numeric: tabular-nums; }
+
+.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); border-radius: var(--radius-pill); background: var(--color-ink); color: var(--color-paper); }
+.skip:focus-visible { top: var(--space-md); }
+
+/* the clear surface: white over the light, never blurred, its shadow tinted by the water it sits over */
+.clear { position: relative; background: color-mix(in oklab, var(--color-light) 82%, transparent); border-radius: var(--radius-card); box-shadow: var(--edge-light), var(--shadow-card); }
+
+/* controls */
+.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 500 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 30%, transparent), 10px 16px 28px -16px color-mix(in oklab, var(--color-sun-deep) 60%, transparent); transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
+.btn:hover { background: var(--color-accent-hi); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 34%, transparent), 14px 22px 34px -16px color-mix(in oklab, var(--color-sun-deep) 60%, transparent); }
+.btn:active { transform: translateY(1px); }
+.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
+.btn:disabled { background: var(--color-paper-3); color: var(--color-muted); box-shadow: none; cursor: not-allowed; }
+.btn--sm { min-height: 44px; padding: 0 var(--space-md); font-size: 0.9375rem; }
+.btn--clear { background: color-mix(in oklab, var(--color-light) 82%, transparent); color: var(--color-ink); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), var(--shadow-card); }
+.btn--clear:hover { background: var(--color-light); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule), 22px 34px 50px -26px color-mix(in oklab, var(--color-sun-shadow) 42%, transparent); }
+a:not([class]):hover { text-decoration-color: var(--color-accent); }
+
+/* nav: a floating clear pill */
+.nav { position: fixed; inset: var(--space-md) 0 auto; z-index: var(--z-sticky-nav); display: flex; justify-content: center; padding-inline: var(--space-md); pointer-events: none; }
+.nav__pill { pointer-events: auto; display: flex; align-items: center; gap: var(--space-xl); height: var(--nav-h); width: min(100%, 860px); padding: 0 var(--space-xs) 0 var(--space-lg); border-radius: var(--radius-pill); background: color-mix(in oklab, var(--color-light) 84%, transparent); box-shadow: var(--edge-light), inset 0 0 0 1px color-mix(in oklab, var(--color-rule) 70%, transparent), 14px 22px 40px -26px color-mix(in oklab, var(--color-sun-shadow) 45%, transparent); transition: box-shadow var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
+.nav.is-moved .nav__pill { background: color-mix(in oklab, var(--color-light) 94%, transparent); }
+.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); color: var(--color-ink); font: 500 1.0625rem/1 var(--font-display); letter-spacing: -0.015em; text-decoration: none; white-space: nowrap; }
+.wordmark__ring { width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--color-accent); box-shadow: 3px 4px 6px -2px color-mix(in oklab, var(--color-sun-shadow) 45%, transparent); }
+.nav__links { display: flex; gap: var(--space-lg); margin-left: auto; }
+.nav__links a { color: var(--color-ink-2); font-size: 0.9375rem; text-decoration: none; padding: var(--space-xs) 0; transition: color var(--dur-micro) var(--ease-out); }
+.nav__links a:hover { color: var(--color-accent); }
+
+/* hero: the deck on the left, the pool on the right */
+.hero { position: relative; height: 100svh; min-height: 720px; max-height: 1080px; display: grid; align-items: center; isolation: isolate; }
+.pool { position: absolute; z-index: -1; top: 0; right: 0; bottom: var(--space-2xl); left: 47%; overflow: hidden; border-bottom-left-radius: 36px; background:
+ repeating-linear-gradient(0deg, var(--color-grout) 0 1px, transparent 1px 28px),
+ repeating-linear-gradient(90deg, var(--color-grout) 0 1px, transparent 1px 28px),
+ linear-gradient(160deg, var(--color-shade), var(--color-shade-2)); box-shadow: 0 0 0 6px var(--color-light), 0 0 0 7px var(--color-rule); }
+.water { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 900ms var(--ease-out); }
+.water.is-on { opacity: 1; }
+/* the pool wall: the coping's edge, and the shadow the wall throws on the floor */
+.pool__wall { position: absolute; inset: 0; pointer-events: none; border-bottom-left-radius: inherit; box-shadow: inset 34px -30px 34px -24px color-mix(in oklab, var(--color-wall) 42%, transparent), inset 2px -2px 0 color-mix(in oklab, var(--color-light) 70%, transparent), inset 6px -6px 10px -4px color-mix(in oklab, var(--color-wall) 35%, transparent); }
+.hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; padding-top: calc(var(--nav-h) + var(--space-lg)); padding-bottom: var(--space-2xl); }
+.hero__text { grid-column: 1 / span 5; }
+.hero h1 { font-size: var(--text-display); max-width: 13ch; }
+.hero .lead { margin-top: var(--space-lg); max-width: 30ch; color: var(--color-ink-2); font-size: clamp(1.125rem, 0.45vw + 1rem, 1.375rem); }
+.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
+.hero__fine { margin-top: var(--space-lg); color: var(--color-muted); font-size: var(--text-sm); }
+
+/* today: the booking panel lying on the water */
+.today { grid-column: 8 / span 5; padding: var(--space-lg); background: color-mix(in oklab, var(--color-light) 90%, transparent); box-shadow: var(--edge-light), var(--shadow-cast), 3px 5px 10px -4px color-mix(in oklab, var(--color-wall) 18%, transparent); animation: settle 900ms var(--ease-out) both 200ms; }
+@keyframes settle { from { opacity: 0; transform: translate(-6px, -10px); box-shadow: var(--edge-light), 8px 12px 24px -18px color-mix(in oklab, var(--color-sun-shadow) 30%, transparent); } }
+.today__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--space-md); padding: var(--space-2xs) var(--space-2xs) var(--space-md); }
+.today__title { color: var(--color-ink); font: 400 1.75rem/1 var(--font-display); letter-spacing: -0.02em; }
+.today__date { margin-top: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
+.today__temps { display: flex; gap: var(--space-xs); margin: 0; }
+.today__temps div { padding: var(--space-xs) var(--space-sm); border-radius: var(--radius-inner); background: var(--color-accent-soft); text-align: right; }
+.today__temps dt { color: var(--color-muted); font-size: var(--text-xs); }
+.today__temps dd { margin: var(--space-3xs) 0 0; color: var(--color-ink); font: 400 1.25rem/1 var(--font-display); }
+.slots { margin: 0; padding: 0; border: 0; }
+.slot { position: relative; display: grid; grid-template-columns: 62px minmax(0, 1fr) auto; align-items: center; gap: var(--space-md); padding: var(--space-sm) var(--space-sm); border-radius: var(--radius-inner); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
+.slot + .slot { margin-top: var(--space-3xs); }
+.slot::after { content: ""; position: absolute; left: var(--space-sm); right: var(--space-sm); top: -1px; height: 1px; background: var(--color-rule); }
+.slot:first-child::after, .slot:has(input:checked)::after, .slot:has(input:checked) + .slot::after { opacity: 0; }
+.slot input { position: absolute; opacity: 0; pointer-events: none; }
+.slot:hover { background: color-mix(in oklab, var(--color-accent-soft) 60%, transparent); }
+.slot:has(input:checked) { background: var(--color-light); box-shadow: inset 0 0 0 1.5px var(--color-accent), 6px 10px 18px -12px color-mix(in oklab, var(--color-sun-deep) 50%, transparent); }
+.slot:has(input:focus-visible) { outline: 2px solid var(--color-focus); outline-offset: 2px; }
+.slot__time { color: var(--color-ink); font: 400 1.375rem/1 var(--font-display); letter-spacing: -0.01em; }
+.slot__name { display: flex; flex-direction: column; gap: var(--space-2xs); color: var(--color-ink); font-weight: 500; font-size: 0.9375rem; line-height: 1.2; }
+.slot__name small { color: var(--color-muted); font-weight: 400; font-size: var(--text-xs); }
+.slot__left { color: var(--color-muted); font-size: var(--text-sm); white-space: nowrap; }
+.slot:has(input:checked) .slot__left { color: var(--color-accent); font-weight: 500; }
+.slot.is-full { cursor: not-allowed; }
+.slot.is-full .slot__time, .slot.is-full .slot__name { color: var(--color-muted); }
+.slot.is-full:hover { background: transparent; }
+.today__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-md); padding: var(--space-md) var(--space-2xs) 0; border-top: 1px solid var(--color-rule); }
+.today__price { display: flex; flex-direction: column; gap: var(--space-2xs); color: var(--color-ink); font: 400 1.5rem/1 var(--font-display); }
+.today__price small { color: var(--color-muted); font: 400 var(--text-xs)/1.2 var(--font-body); }
+.today__done, .booker__done { margin-top: var(--space-sm); padding: var(--space-sm) var(--space-md); border-radius: var(--radius-inner); background: var(--color-accent-soft); color: var(--color-ink); font-size: var(--text-sm); }
+
+/* sections */
+.section { padding-block: var(--section-gap-s); }
+.lanes { padding-top: var(--section-gap); }
+.head h2 { font-size: var(--text-section); }
+.head .lead { margin-top: var(--space-md); }
+.head--split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
+.head--split h2 { grid-column: 1 / span 6; }
+.head--split .lead { grid-column: 8 / span 5; margin: 0; padding-bottom: 0.45em; }
+
+/* the timetable as lanes */
+.timetable { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: 1px solid var(--color-rule); }
+.row { position: relative; isolation: isolate; display: grid; grid-template-columns: 2fr 4fr 3fr 3fr; align-items: center; column-gap: var(--gap-columns); min-height: 104px; padding: var(--space-md) var(--space-lg); border-bottom: 1px solid var(--color-rule); }
+.row__time { color: var(--color-ink); font: 300 clamp(2.25rem, 1.6vw + 1.4rem, 3rem)/1 var(--font-display); letter-spacing: -0.03em; }
+.row__name { display: flex; flex-direction: column; gap: var(--space-2xs); color: var(--color-ink); font: 400 1.375rem/1.15 var(--font-display); letter-spacing: -0.015em; }
+.row__name small { color: var(--color-muted); font: 400 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; }
+.row__lanes { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
+.row__lanes i { font-style: normal; display: inline-flex; align-items: center; height: 28px; padding: 0 var(--space-sm); border-radius: var(--radius-inner); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-ink-2); font-size: var(--text-xs); background: var(--color-paper); }
+.row__state { justify-self: end; color: var(--color-muted); font-size: var(--text-sm); }
+.pill { display: inline-flex; align-items: center; gap: var(--space-xs); height: 38px; padding: 0 var(--space-md); border-radius: var(--radius-pill); background: var(--color-light); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-rule); color: var(--color-ink); font-size: var(--text-sm); font-weight: 500; text-decoration: none; transition: box-shadow var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
+a.pill:hover { color: var(--color-accent); box-shadow: var(--edge-light), inset 0 0 0 1px var(--color-accent); }
+.pill--live { background: var(--color-accent); color: var(--color-accent-ink); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 30%, transparent), 8px 12px 22px -12px color-mix(in oklab, var(--color-sun-deep) 60%, transparent); }
+a.pill--live:hover { color: var(--color-accent-ink); background: var(--color-accent-hi); box-shadow: inset 0 1px 0 color-mix(in oklab, var(--color-light) 30%, transparent), 8px 12px 22px -12px color-mix(in oklab, var(--color-sun-deep) 60%, transparent); }
+.pill--full { background: transparent; color: var(--color-muted); box-shadow: inset 0 0 0 1px var(--color-rule); }
+.row.is-past .row__time, .row.is-past .row__name { color: var(--color-muted); }
+.row.is-past .row__lanes { opacity: 0.55; }
+.row.is-full .row__time { color: var(--color-muted); }
+/* the next open row: the water shows through it */
+.row.is-next { border-bottom-color: transparent; margin-top: -1px; border-radius: var(--radius-inner); background: var(--color-shade); box-shadow: inset 0 0 0 1px color-mix(in oklab, var(--color-light) 50%, transparent), 12px 20px 40px -26px color-mix(in oklab, var(--color-sun-shadow) 50%, transparent); }
+.row__light { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; border-radius: inherit; opacity: 0; transition: opacity 900ms var(--ease-out); }
+.row__light.is-on { opacity: 1; }
+.row.is-next .row__lanes i { background: color-mix(in oklab, var(--color-light) 80%, transparent); box-shadow: none; color: var(--color-ink); }
+.row.is-next .row__name small { color: var(--color-ink-2); }
+
+/* the statement: a figure in sun */
+.warm { padding-block: var(--section-gap); }
+.warm__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: end; }
+.warm__fig { grid-column: 1 / span 7; margin: 0 0 0 -0.06em; color: var(--color-ink); font: 300 clamp(8rem, 30vw, 30rem)/0.76 var(--font-display); letter-spacing: -0.07em; white-space: nowrap; }
+.warm__fig span { margin-left: 0.06em; font-size: 0.3em; letter-spacing: -0.02em; vertical-align: 1.75em; color: var(--color-accent); }
+.warm__text { grid-column: 8 / span 5; }
+.warm__text h2 { font-size: var(--text-section); }
+.warm__text .lead { margin-top: var(--space-md); }
+.facts { list-style: none; margin: var(--space-xl) 0 0; padding: 0; border-top: 1px solid var(--color-rule); }
+.facts li { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--space-md); padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); font-size: 0.9375rem; }
+.facts span { color: var(--color-muted); }
+.facts b { color: var(--color-ink); font-weight: 500; }
+
+/* the day as columns of water */
+.quiet__top { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); }
+.quiet .lead { min-height: 1.45em; transition: opacity var(--dur-short) var(--ease-out); }
+.seg { display: inline-flex; padding: var(--space-2xs); border-radius: var(--radius-pill); background: var(--color-paper-2); box-shadow: inset 0 0 0 1px var(--color-rule); }
+.seg button { min-height: 44px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: transparent; color: var(--color-muted); font: 500 var(--text-sm)/1 var(--font-body); cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
+.seg button:hover { color: var(--color-ink); }
+.seg button[aria-checked="true"] { color: var(--color-ink); box-shadow: inset 0 0 0 1.5px var(--color-accent), 6px 10px 18px -12px color-mix(in oklab, var(--color-sun-shadow) 50%, transparent); }
+.seg button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
+.busy { margin: var(--space-2xl) 0 0; }
+.busy__plot { position: relative; height: clamp(320px, 30vw, 440px); border-bottom: 1px solid var(--color-rule); }
+.busy__water { position: absolute; inset: 0; width: 100%; height: 100%; }
+.busy__now { position: absolute; bottom: 0; width: 0; display: flex; justify-content: center; pointer-events: none; }
+.busy__now span { position: absolute; bottom: 12px; display: inline-flex; align-items: center; gap: var(--space-xs); height: 28px; padding: 0 var(--space-sm) 0 var(--space-xs); border-radius: var(--radius-inner); background: var(--color-light); box-shadow: var(--edge-light), 6px 10px 18px -10px color-mix(in oklab, var(--color-sun-shadow) 55%, transparent); color: var(--color-ink); font-size: var(--text-xs); font-weight: 500; white-space: nowrap; }
+.busy__now span::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--color-accent); }
+.busy__hours { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); column-gap: var(--busy-gap, var(--space-md)); margin-top: var(--space-sm); color: var(--color-muted); font-size: var(--text-xs); font-variant-numeric: tabular-nums; text-align: center; }
+.busy__cap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); margin-top: var(--space-lg); padding-top: var(--space-md); border-top: 1px solid var(--color-rule); color: var(--color-muted); font-size: var(--text-sm); }
+
+/* the showcase */
+.show__frame { margin: 0; aspect-ratio: 21 / 9; border-radius: var(--radius-card); }
+.show__frame img { object-position: 50% 45%; }
+.show__cap { margin-top: var(--space-md); color: var(--color-muted); font-size: var(--text-sm); }
+
+/* prices: the board */
+.prices__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: stretch; }
+.prices__main { grid-column: 1 / span 7; display: flex; flex-direction: column; }
+.board { margin-top: var(--space-xl); padding: var(--space-xs) var(--space-lg); background: var(--color-light); }
+.board table { width: 100%; border-collapse: collapse; }
+.board th, .board td { padding: var(--space-md) var(--space-xs); text-align: left; border-bottom: 1px solid var(--color-rule); vertical-align: middle; }
+.board thead th { padding-block: var(--space-md) var(--space-sm); color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }
+.board tbody tr:last-child th, .board tbody tr:last-child td { border-bottom: 0; }
+.board tbody th { color: var(--color-ink); font: 400 1.25rem/1.2 var(--font-display); letter-spacing: -0.01em; }
+.board tbody th small { display: block; margin-top: var(--space-2xs); color: var(--color-muted); font: 400 var(--text-sm)/1.3 var(--font-body); letter-spacing: 0; }
+.board td { color: var(--color-ink); font: 300 2rem/1 var(--font-display); letter-spacing: -0.02em; }
+.board .r { text-align: right; }
+.board tr.is-lead th, .board tr.is-lead td { background: var(--color-accent-soft); }
+.board tr.is-lead th { border-radius: var(--radius-inner) 0 0 var(--radius-inner); }
+.board tr.is-lead td:last-child { border-radius: 0 var(--radius-inner) var(--radius-inner) 0; }
+.board tr.is-lead td { color: var(--color-accent); }
+.prices__photo { grid-column: 9 / span 4; margin: 0; min-height: 520px; border-radius: var(--radius-card); }
+
+/* the close: book your lane */
+.book { margin-top: var(--section-gap-s); background: var(--color-paper-2); padding-block: var(--section-gap-s); }
+.book__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: center; }
+.booker { grid-column: 1 / span 7; padding: var(--space-xl); background: var(--color-light); box-shadow: var(--edge-light), var(--shadow-card); }
+.booker h2 { font-size: var(--text-section); }
+.booker fieldset { margin: var(--space-xl) 0 0; padding: 0; border: 0; }
+.booker legend { margin-bottom: var(--space-sm); padding: 0; color: var(--color-muted); font-size: var(--text-sm); }
+.days, .times { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
+.booker fieldset legend { width: 100%; }
+.days label, .times label { position: relative; cursor: pointer; }
+.days input, .times input { position: absolute; opacity: 0; pointer-events: none; }
+.days span, .times span { display: inline-flex; align-items: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-md); border-radius: var(--radius-pill); box-shadow: inset 0 0 0 1px var(--color-rule); color: var(--color-ink); font-size: 0.9375rem; font-weight: 500; transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
+.days span small { color: var(--color-muted); font-weight: 400; font-size: 0.9375rem; }
+.days label:hover span, .times label:hover span { box-shadow: inset 0 0 0 1px var(--color-shade-2); }
+.days input:checked + span, .times input:checked + span { background: var(--color-ink); color: var(--color-paper); box-shadow: 6px 10px 18px -12px color-mix(in oklab, var(--color-ink) 45%, transparent); }
+.days input:checked + span small { color: color-mix(in oklab, var(--color-paper) 70%, transparent); }
+.days input:focus-visible + span, .times input:focus-visible + span { outline: 2px solid var(--color-focus); outline-offset: 2px; }
+.booker__foot { display: flex; align-items: flex-end; gap: var(--space-sm); margin-top: var(--space-xl); padding-top: var(--space-xl); border-top: 1px solid var(--color-rule); }
+.field { flex: 1; display: flex; flex-direction: column; gap: var(--space-xs); min-width: 0; color: var(--color-muted); font-size: var(--text-sm); }
+.field input { height: 48px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-pill); background: var(--color-paper); box-shadow: inset 0 0 0 1px var(--color-muted); color: var(--color-ink); font-size: var(--text-md); outline: none; }
+.field input::placeholder { color: color-mix(in oklab, var(--color-muted) 80%, transparent); }
+.field input:focus-visible { box-shadow: inset 0 0 0 1.5px var(--color-focus), 0 0 0 4px var(--color-accent-soft); }
+.visit { grid-column: 9 / span 4; }
+.visit h3 { font-size: var(--text-2xl); }
+.visit__addr { margin-top: var(--space-md); color: var(--color-ink-2); font-size: var(--text-lg); line-height: 1.45; }
+.visit__list { margin: var(--space-xl) 0 0; border-top: 1px solid var(--color-rule); }
+.visit__list div { padding: var(--space-md) 0; border-bottom: 1px solid var(--color-rule); }
+.visit__list dt { color: var(--color-muted); font-size: var(--text-sm); }
+.visit__list dd { margin: var(--space-2xs) 0 0; color: var(--color-ink); font-size: 0.9375rem; }
+
+/* footer: one closing line */
+.foot { padding-block: var(--section-gap-s) var(--space-2xl); }
+.foot__line { color: var(--color-ink); font: 300 clamp(3rem, 6vw, 6.5rem)/1 var(--font-display); letter-spacing: -0.045em; }
+.foot__row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-xl); margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
+.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); }
+.foot__links a { color: var(--color-ink); font-size: 0.9375rem; text-decoration: none; }
+.foot__links a:hover { color: var(--color-accent); }
+.foot__fine { max-width: 62ch; color: var(--color-muted); font-size: var(--text-xs); text-align: right; }
+
+
+@media (max-width: 75rem) {
+ .nav__links { gap: var(--space-md); }
+ .today { grid-column: 7 / span 6; }
+ .pool { left: 44%; }
+}
+@media (max-width: 60rem) {
+ :root { --nav-h: 56px; }
+ .nav__links { display: none; }
+ .nav__pill { justify-content: space-between; padding-left: var(--space-md); }
+ .hero { height: auto; max-height: none; min-height: 0; padding-block: calc(var(--nav-h) + var(--space-2xl)) 0; }
+ .hero__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2xl); padding: 0 var(--gutter) var(--space-2xl); }
+ .hero__text, .today { grid-column: 1 / -1; }
+ .pool { left: 0; top: auto; bottom: 0; height: 470px; border-radius: 0; }
+ .pool__wall { box-shadow: inset 0 34px 34px -24px color-mix(in oklab, var(--color-wall) 42%, transparent), inset 0 2px 0 color-mix(in oklab, var(--color-light) 70%, transparent); }
+ .today { margin-inline: auto; width: min(100%, 520px); }
+ .head--split, .warm__grid, .prices__grid, .book__grid { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-xl); }
+ .head--split h2, .head--split .lead, .warm__fig, .warm__text, .prices__main, .prices__photo, .booker, .visit { grid-column: 1 / -1; }
+ .row { grid-template-columns: 96px minmax(0, 1fr) auto; row-gap: var(--space-sm); padding: var(--space-md); }
+ .row__lanes { grid-column: 2 / 3; grid-row: 2; }
+ .row__state { grid-column: 3; grid-row: 1 / span 2; }
+ .quiet__top { flex-direction: column; align-items: flex-start; }
+ .prices__photo { min-height: 0; aspect-ratio: 4 / 3; }
+ .show__frame { aspect-ratio: 4 / 3; }
+ .foot__row { flex-direction: column; align-items: flex-start; }
+ .foot__fine { text-align: left; }
+}
+@media (max-width: 40rem) {
+ .hero h1 { font-size: clamp(2.75rem, 12vw, 3.5rem); }
+ .today { padding: var(--space-md); }
+ .slot { grid-template-columns: 52px minmax(0, 1fr) auto; gap: var(--space-sm); padding-inline: var(--space-xs); }
+ .row { grid-template-columns: minmax(0, 1fr) auto; }
+ .row__time { grid-column: 1; }
+ .row__name { grid-column: 1; grid-row: 2; }
+ .row__lanes { grid-column: 1 / -1; grid-row: 3; }
+ .row__state { grid-column: 2; grid-row: 1 / span 2; }
+ .busy__hours span:nth-child(even) { visibility: hidden; }
+ .booker { padding: var(--space-lg); }
+ .booker__foot { flex-direction: column; align-items: stretch; }
+ .board { padding-inline: var(--space-sm); }
+ .board td { font-size: 1.5rem; }
+}
diff --git a/site/themes/refract/tokens.css b/site/themes/refract/tokens.css
new file mode 100644
index 0000000..ac4e0e2
--- /dev/null
+++ b/site/themes/refract/tokens.css
@@ -0,0 +1,25 @@
+:root {
+ color-scheme: light;
+ --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
+ --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.1875rem; --text-xl: 1.5rem; --text-2xl: 1.875rem; --text-3xl: 2.375rem;
+ --text-display: clamp(3rem, 4.6vw + 0.9rem, 5.25rem);
+ --text-section: clamp(2.125rem, 1.7vw + 1.25rem, 3.125rem); --text-title: clamp(1.125rem, 0.4vw + 1rem, 1.3125rem); --text-lead: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
+ --dur-micro: 120ms; --dur-short: 240ms; --dur-long: 560ms;
+ --color-error: oklch(52% 0.17 27); --color-success: oklch(50% 0.11 160);
+ --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 152px; --section-gap-l: 184px;
+ --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
+ --color-paper: oklch(98.2% 0.006 95); --color-paper-2: oklch(96.4% 0.006 95); --color-paper-3: oklch(93.6% 0.008 95);
+ --color-ink: oklch(23% 0.035 245); --color-ink-2: oklch(36% 0.035 245); --color-muted: oklch(50% 0.025 240);
+ --color-rule: oklch(89.5% 0.008 230); --color-rule-2: oklch(93.5% 0.006 230);
+ --color-accent: oklch(50% 0.12 234); --color-accent-hi: oklch(44% 0.12 236); --color-accent-ink: oklch(99% 0.003 95); --color-accent-soft: oklch(94% 0.025 220); --color-focus: oklch(56% 0.14 234);
+ --color-shade: oklch(86% 0.05 212); --color-shade-2: oklch(74% 0.07 220); --color-light: oklch(99.6% 0.005 210); --color-sun-shadow: oklch(52% 0.09 220); --color-sun-deep: oklch(42% 0.11 230); --color-wall: oklch(41% 0.09 225); --color-grout: oklch(91% 0.04 212);
+ --spec-1: oklch(78% 0.15 32); --spec-2: oklch(90% 0.15 105); --spec-3: oklch(82% 0.13 175); --spec-4: oklch(66% 0.15 270);
+ --color-slot: oklch(86% 0.05 212);
+ --edge-light: inset 0 1px 0 oklch(100% 0 0 / 0.9), inset 0 0 0 1px oklch(100% 0 0 / 0.55);
+ --shadow-card: 18px 28px 48px -26px oklch(52% 0.09 220 / 0.38), 2px 3px 6px -2px oklch(40% 0.05 230 / 0.12);
+ --shadow-cast: 28px 40px 70px -30px oklch(60% 0.11 212 / 0.45);
+ --font-display: "Funnel Display", ui-sans-serif, system-ui, sans-serif; --font-body: "Funnel Sans", ui-sans-serif, system-ui, sans-serif;
+ --radius-card: 22px; --radius-inner: 12px; --radius-pill: 999px; --rule-hair: 1px;
+ --tracking-display: -0.032em; --display-weight: 400;
+}
diff --git a/site/themes/vantage/base.css b/site/themes/vantage/base.css
new file mode 100644
index 0000000..8e19fe6
--- /dev/null
+++ b/site/themes/vantage/base.css
@@ -0,0 +1,28 @@
+*, *::before, *::after { box-sizing: border-box; }
+html, body { overflow-x: clip; }
+html { scrollbar-color: var(--color-muted) var(--color-paper); scroll-padding-top: var(--space-3xl); }
+body { margin: 0; background: var(--color-paper); color: var(--color-ink); font-family: var(--font-body); font-size: var(--text-md); line-height: 1.55; -webkit-font-smoothing: antialiased; caret-color: var(--color-accent); }
+::selection { background: color-mix(in oklab, var(--color-accent) 30%, transparent); }
+:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
+a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.16em; }
+h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: var(--display-weight, 700); font-synthesis: none; letter-spacing: var(--tracking-display); line-height: 1.05; overflow-wrap: break-word; min-width: 0; text-wrap: balance; }
+h1 { max-width: 20ch; font-size: var(--text-display); } h2 { max-width: 30ch; font-size: var(--text-section); } h3 { max-width: 40ch; font-size: var(--text-title); line-height: 1.2; }
+.lead { font-size: var(--text-lead); line-height: 1.45; max-width: 52ch; }
+p { margin: 0; text-wrap: pretty; }
+p:not([class]) { max-width: 65ch; }
+img, video { max-width: 100%; height: auto; display: block; }
+svg { display: block; }
+[hidden] { display: none !important; }
+button, input, select, textarea { font: inherit; }
+.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); box-sizing: border-box; }
+.num, .figure, td.num { font-variant-numeric: tabular-nums; }
+.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
+[data-slot] { position: relative; overflow: hidden; background: linear-gradient(160deg, var(--color-paper-2, var(--color-paper)), var(--color-paper-3, var(--color-paper))); }
+[data-slot] > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
+[data-slot]:has(> img) > :not(img):not([data-keep]) { display: none !important; }
+@media (max-width: 60rem) { :root { --gutter: 24px; --section-gap-s: 80px; --section-gap: 96px; --section-gap-l: 120px; } }
+@media (max-width: 40rem) { :root { --gutter: 16px; --section-gap-s: 56px; --section-gap: 72px; --section-gap-l: 96px; --gap-columns: 16px; } }
+@media (prefers-reduced-motion: reduce) { *:not(.keep-motion), *:not(.keep-motion)::before, *:not(.keep-motion)::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; } }
+/* photographs: muted con=6 sat=-20 */
+[data-slot]:has(> img) { outline: 1px solid color-mix(in oklab, var(--color-ink) 8%, transparent); outline-offset: -1px; }
+[data-slot] > img, .photo { filter: saturate(0.8) contrast(1.06); }
diff --git a/site/themes/vantage/index.html b/site/themes/vantage/index.html
new file mode 100644
index 0000000..64aee11
--- /dev/null
+++ b/site/themes/vantage/index.html
@@ -0,0 +1,239 @@
+<!doctype html>
+<html lang="en">
+<head>
+<meta charset="utf-8">
+<meta name="viewport" content="width=device-width, initial-scale=1">
+<title>Swath: every site scan, measured from the office</title>
+<meta name="description" content="Swath turns drone and tripod lidar scans of a construction site into a site you can measure, cut and compare without going back out.">
+<link rel="preconnect" href="https://fonts.googleapis.com">
+<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
+<link href="https://fonts.googleapis.com/css2?family=Geologica:wght,CRSV,[email protected],0,0..100&display=swap" rel="stylesheet">
+<link rel="stylesheet" href="style.css">
+<script src="scene.js" defer></script>
+</head>
+<body>
+<a class="skip" href="#main">Skip to content</a>
+
+<header class="nav" data-nav>
+ <div class="container nav__in">
+ <a class="wordmark" href="#top" aria-label="Swath, home"><span class="wordmark__mark" aria-hidden="true"><i></i><i></i><i></i></span>Swath</a>
+ <nav class="nav__links" aria-label="Main">
+ <a href="#layers">Layers</a>
+ <a href="#cut">Section cuts</a>
+ <a href="#scans">Scan log</a>
+ <a href="#pricing">Pricing</a>
+ </nav>
+ <div class="nav__end">
+ <a class="nav__login" href="#demo">Log in</a>
+ <a class="btn btn--sm" href="#demo">Book a demo</a>
+ </div>
+ </div>
+</header>
+
+<main id="main">
+
+<section class="hero" id="top" aria-labelledby="hero-head">
+ <div class="hero__still" aria-hidden="true"></div>
+ <canvas class="hero__cloud" data-cloud="hero" aria-hidden="true"></canvas>
+ <div class="container hero__grid">
+ <div class="hero__text">
+ <h1 id="hero-head">Every site, measured from the office.</h1>
+ <p class="lead">Turn every drone or tripod scan into a site you can measure.</p>
+ <div class="hero__actions">
+ <a class="btn" href="#demo">Book a demo</a>
+ <a class="btn btn--line" href="#layers">Open the sample scan</a>
+ </div>
+ <dl class="readout ticks" aria-label="This scan">
+ <div><dt>Scan</dt><dd class="num">14</dd></div>
+ <div><dt>Points</dt><dd class="num">21.6<span class="u"> M</span></dd></div>
+ <div><dt>Area</dt><dd class="num">4.3<span class="u"> ha</span></dd></div>
+ <div><dt>Accuracy</dt><dd class="num">±12<span class="u"> mm</span></dd></div>
+ </dl>
+ </div>
+ </div>
+ <div class="hero__callouts" aria-hidden="true">
+ <div class="callout callout--found" data-at="pile"><span class="callout__dot"></span><span class="callout__leader"></span><span class="callout__note"><span>Stockpile since scan 13</span><b class="num">1,760<span class="u"> m³</span></b></span></div>
+ <div class="callout" data-at="slab"><span class="callout__dot"></span><span class="callout__leader"></span><span class="callout__note"><span>Level 3 slab</span><b class="num">52.050<span class="u"> m</span></b></span></div>
+ </div>
+</section>
+
+<section class="layers" id="layers" aria-labelledby="layers-head">
+ <div class="container layers__grid">
+ <div class="layers__text">
+ <h2 id="layers-head">Hide what you are not measuring.</h2>
+ <p class="lead">Every point is sorted as it lands, so each layer is one switch.</p>
+ <ul class="switches" role="list">
+ <li><label class="switch"><span class="switch__name"><b>Ground</b><span>Terrain, pad and road</span></span><span class="num switch__n">16.2<span class="u"> M</span></span><input type="checkbox" data-layer="0" checked><span class="switch__track" aria-hidden="true"></span></label></li>
+ <li><label class="switch"><span class="switch__name"><b>Structures</b><span>Frame, core and crane</span></span><span class="num switch__n">3.9<span class="u"> M</span></span><input type="checkbox" data-layer="1" checked><span class="switch__track" aria-hidden="true"></span></label></li>
+ <li><label class="switch"><span class="switch__name"><b>Canopy</b><span>Boundary trees</span></span><span class="num switch__n">1.5<span class="u"> M</span></span><input type="checkbox" data-layer="2" checked><span class="switch__track" aria-hidden="true"></span></label></li>
+ <li><label class="switch switch--found"><span class="switch__name"><b>Changed since scan 13</b><span>Moved more than 50 mm</span></span><span class="num switch__n">1<span class="u"> area</span></span><input type="checkbox" data-layer="lime" checked><span class="switch__track" aria-hidden="true"></span></label></li>
+ </ul>
+ </div>
+ <figure class="layers__view ticks">
+ <canvas data-cloud="layers" aria-label="The sample site as points, seen from above at an angle"></canvas>
+ <figcaption><span>Sample site, scan 14</span><span>Live, turning once every two minutes</span></figcaption>
+ </figure>
+ </div>
+</section>
+
+<section class="accuracy" aria-labelledby="acc-head">
+ <div class="container accuracy__grid">
+ <p class="accuracy__figure ticks num" aria-hidden="true">±12<span class="u">mm</span></p>
+ <div class="accuracy__text">
+ <h2 id="acc-head">Checked against your control, every time.</h2>
+ <dl class="facts">
+ <div><dt>Drone scans</dt><dd class="num">±12<span class="u"> mm</span></dd></div>
+ <div><dt>Tripod scans</dt><dd class="num">±4<span class="u"> mm</span></dd></div>
+ <div><dt>Control points per site</dt><dd class="num">6<span class="u"> or more</span></dd></div>
+ </dl>
+ </div>
+ </div>
+</section>
+
+<section class="cut" id="cut" aria-labelledby="cut-head" data-cut>
+ <div class="container">
+ <div class="cut__head">
+ <h2 id="cut-head">Cut anywhere. Read every level.</h2>
+ <p class="lead">Drag the line on the plan; the section redraws from the scan.</p>
+ </div>
+ <div class="cut__body">
+ <div class="cut__stage">
+ <canvas class="cut__points" aria-label="A section through the sample site at the chosen line"></canvas>
+ <div class="mark" data-mark="top" hidden><span class="mark__dot"></span><span class="mark__label"><span>Highest structure</span><b class="num"></b><span class="u"> m</span></span></div>
+ <div class="mark" data-mark="pad" hidden><span class="mark__dot"></span><span class="mark__label"><span>Pad level</span><b class="num"></b><span class="u"> m</span></span></div>
+ <div class="mark mark--found" data-mark="pile" hidden><span class="mark__dot"></span><span class="mark__label"><span>Stockpile height</span><b class="num"></b><span class="u"> m</span></span></div>
+ </div>
+ <div class="cut__key">
+ <canvas class="cut__plan" aria-hidden="true"></canvas>
+ <label class="cut__range"><span>Cut line</span><output class="num" data-cut-at>South 16.0 m</output><input type="range" min="-86" max="86" step="0.5" value="-16" aria-label="Cut line position, metres from the site centre"></label>
+ <p class="cut__note">Both axes at the same scale.</p>
+ </div>
+ </div>
+ </div>
+</section>
+
+<section class="compare" id="compare" aria-labelledby="cmp-head">
+ <div class="container">
+ <div class="compare__head">
+ <h2 id="cmp-head">What changed since last Tuesday.</h2>
+ <dl class="delta">
+ <div class="delta__lead"><dt>New stockpile</dt><dd class="num">1,760<span class="u"> m³</span></dd></div>
+ <div><dt>Level 3 slab</dt><dd class="num">1,008<span class="u"> m²</span></dd></div>
+ <div><dt>Moved under 50 mm</dt><dd>Everything else</dd></div>
+ </dl>
+ </div>
+ <div class="compare__stage ticks" data-compare>
+ <canvas aria-label="The sample site in scan 13 on the left and scan 14 on the right, with what is new in scan 14 lit"></canvas>
+ <span class="compare__tag compare__tag--a">Scan 13</span>
+ <span class="compare__tag compare__tag--b"><i aria-hidden="true"></i>Scan 14</span>
+ <div class="compare__handle"><span class="compare__knob" role="slider" tabindex="0" aria-label="Compare scans" aria-valuemin="0" aria-valuemax="100" aria-valuenow="36"><svg aria-hidden="true" viewBox="0 0 24 24" width="16" height="16" fill="none" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"><path d="m9 18-6-6 6-6"/><path d="m15 6 6 6-6 6"/></svg></span></div>
+ </div>
+ </div>
+</section>
+
+<section class="scans" id="scans" aria-labelledby="scans-head">
+ <div class="container">
+ <div class="scans__head">
+ <h2 id="scans-head">Every scan kept, every change named.</h2>
+ <p class="lead">Five weeks of the sample site.</p>
+ </div>
+ <div class="table-wrap">
+ <table class="log">
+ <thead><tr><th scope="col">Scan</th><th scope="col">Captured</th><th scope="col">Method</th><th scope="col" class="r">Area</th><th scope="col" class="r">Points</th><th scope="col" class="r">Accuracy</th><th scope="col">What changed</th></tr></thead>
+ <tbody>
+ <tr class="is-live"><td class="num"><span class="live" aria-label="Latest"></span>14</td><td>Tue 20 Oct, 07:40</td><td>Drone</td><td class="num r">4.3 ha</td><td class="num r">21.6 M</td><td class="num r">±12 mm</td><td>New stockpile, level 3 slab</td></tr>
+ <tr><td class="num">13</td><td>Tue 13 Oct, 07:35</td><td>Drone</td><td class="num r">4.3 ha</td><td class="num r">21.1 M</td><td class="num r">±12 mm</td><td>Level 3 columns up</td></tr>
+ <tr><td class="num">12</td><td>Thu 8 Oct, 11:10</td><td>Tripod</td><td class="num r">0.9 ha</td><td class="num r">64.0 M</td><td class="num r">±4 mm</td><td>Core walls checked plumb</td></tr>
+ <tr><td class="num">11</td><td>Tue 6 Oct, 07:45</td><td>Drone</td><td class="num r">4.3 ha</td><td class="num r">20.8 M</td><td class="num r">±12 mm</td><td>Haul road regraded</td></tr>
+ <tr><td class="num">10</td><td>Tue 29 Sep, 07:30</td><td>Drone</td><td class="num r">4.3 ha</td><td class="num r">20.4 M</td><td class="num r">±12 mm</td><td>Tower crane erected</td></tr>
+ </tbody>
+ </table>
+ </div>
+ </div>
+</section>
+
+<section class="pricing" id="pricing" aria-labelledby="price-head">
+ <div class="container">
+ <h2 id="price-head">Priced by site, never by seat.</h2>
+ <div class="plans">
+ <article class="plan">
+ <h3>One site</h3>
+ <p class="plan__price num">£540<span class="u"> a month</span></p>
+ <ul role="list"><li>One live site, the whole team</li><li>Layers, cuts and volumes</li><li>Weekly change report</li></ul>
+ </article>
+ <article class="plan plan--lead ticks">
+ <h3>Programme</h3>
+ <p class="plan__price num">£2,400<span class="u"> a month</span></p>
+ <ul role="list"><li>Up to six sites, side by side</li><li>Cross-site progress</li><li>CAD and BIM exports</li></ul>
+ </article>
+ <article class="plan">
+ <h3>Estate</h3>
+ <p class="plan__price num">Quoted</p>
+ <ul role="list"><li>Twelve sites or more</li><li>Single sign-on</li><li>A named survey lead</li></ul>
+ </article>
+ </div>
+ </div>
+</section>
+
+<section class="demo" id="demo" aria-labelledby="demo-head">
+ <div class="container demo__grid">
+ <div class="demo__text">
+ <h2 id="demo-head">See your own site in points.</h2>
+ <p class="lead">Send one scan; we walk you through it in thirty minutes.</p>
+ <dl class="facts facts--quiet">
+ <div><dt>Any scanner</dt><dd>E57, LAS and LAZ</dd></div>
+ <div><dt>Your data</dt><dd>Deleted after the call</dd></div>
+ </dl>
+ </div>
+ <form class="form ticks" data-endpoint="" aria-labelledby="demo-head" novalidate>
+ <div class="field-row">
+ <label for="f-name">Name</label>
+ <input id="f-name" name="name" autocomplete="name" required>
+ </div>
+ <div class="field-row">
+ <label for="f-email">Work email</label>
+ <input id="f-email" name="email" type="email" autocomplete="email" required>
+ </div>
+ <div class="field-row">
+ <label for="f-co">Company</label>
+ <input id="f-co" name="company" autocomplete="organization">
+ </div>
+ <div class="field-row">
+ <label for="f-sites">Live sites</label>
+ <select id="f-sites" name="sites"><option>One</option><option>Two to six</option><option>Seven to twelve</option><option>More than twelve</option></select>
+ </div>
+ <button class="btn btn--wide" type="submit">Book a demo</button>
+ <p class="form__note" id="form-note" role="status" aria-live="polite">We reply within one working day.</p>
+ </form>
+ </div>
+</section>
+
+</main>
+
+<footer class="foot">
+ <div class="container">
+ <p class="foot__mark" aria-hidden="true" data-points-word="Swath">Swath<canvas></canvas></p>
+ <div class="foot__row">
+ <nav class="foot__links" aria-label="Footer"><a href="#layers">Layers</a><a href="#cut">Section cuts</a><a href="#scans">Scan log</a><a href="#pricing">Pricing</a><a href="#demo">Book a demo</a></nav>
+ <p class="foot__legal">&copy; 2026 Swath. The sample site is generated.</p>
+ </div>
+ </div>
+</footer>
+
+<script>
+document.querySelectorAll('[data-slot] > img').forEach((i) => { if (i.complete && !i.naturalWidth) i.remove(); else i.addEventListener('error', () => i.remove(), { once: true }); });
+const nav = document.querySelector('[data-nav]'); const onS = () => nav.classList.toggle('is-scrolled', scrollY > 24); addEventListener('scroll', onS, { passive: true }); onS();
+const form = document.querySelector('.form'); const note = form.querySelector('#form-note');
+form.addEventListener('submit', (e) => {
+ e.preventDefault();
+ const fields = [...form.querySelectorAll('input[required]')];
+ fields.forEach((i) => i.setAttribute('aria-invalid', !i.checkValidity() || !i.value.trim()));
+ const bad = fields.find((i) => !i.checkValidity() || !i.value.trim());
+ note.classList.toggle('is-error', !!bad);
+ if (bad) { bad.setAttribute('aria-describedby', 'form-note'); note.textContent = bad.type === 'email' ? 'That address looks incomplete. Write it as [email protected].' : 'Add your name so we know who to call.'; bad.focus(); return; }
+ if (!form.dataset.endpoint) { note.textContent = 'Nothing was sent: this form is not connected yet.'; return; }
+ fetch(form.dataset.endpoint, { method: 'POST', body: new FormData(form) }).then((r) => { note.textContent = r.ok ? 'Request received. We reply within one working day.' : 'That did not go through. Try again in a minute.'; }).catch(() => { note.textContent = 'That did not go through. Try again in a minute.'; });
+});
+</script>
+</body>
+</html>
diff --git a/site/themes/vantage/scene.js b/site/themes/vantage/scene.js
new file mode 100644
index 0000000..01d9630
--- /dev/null
+++ b/site/themes/vantage/scene.js
@@ -0,0 +1,330 @@
+/* Swath sample site: a generated construction site scanned as points.
+ One data set feeds three views: the hero cloud, the layers cloud and the section cut. */
+(() => {
+ const root = document.documentElement;
+ const reduce = matchMedia('(prefers-reduced-motion: reduce)').matches;
+ const DPR = Math.min(window.devicePixelRatio || 1, 2);
+ const FIX = new URLSearchParams(location.search).get('t');
+
+ /* ---------- colour: read the theme's OKLCH tokens as linear-ish sRGB ---------- */
+ const css = getComputedStyle(root);
+ function oklch(str) {
+ const m = str.match(/oklch\(\s*([\d.]+)%\s+([\d.]+)\s+([\d.]+)/);
+ if (!m) return [1, 1, 1];
+ const L = +m[1] / 100, C = +m[2], h = (+m[3] * Math.PI) / 180;
+ const a = C * Math.cos(h), b = C * Math.sin(h);
+ const l_ = L + 0.3963377774 * a + 0.2158037573 * b;
+ const m_ = L - 0.1055613458 * a - 0.0638541728 * b;
+ const s_ = L - 0.0894841775 * a - 1.291485548 * b;
+ const l = l_ ** 3, mm = m_ ** 3, s = s_ ** 3;
+ const lin = [
+ 4.0767416621 * l - 3.3077115913 * mm + 0.2309699292 * s,
+ -1.2684380046 * l + 2.6097574011 * mm - 0.3413193965 * s,
+ -0.0041960863 * l - 0.7034186147 * mm + 1.707614701 * s,
+ ];
+ return lin.map((v) => {
+ v = Math.max(0, Math.min(1, v));
+ return v <= 0.0031308 ? 12.92 * v : 1.055 * v ** (1 / 2.4) - 0.055;
+ });
+ }
+ const tok = (n) => oklch(css.getPropertyValue(n));
+ const COL = { lo: tok('--point-lo'), mid: tok('--point-mid'), hi: tok('--point-hi'), acc: tok('--color-accent'), paper: tok('--color-paper'), muted: tok('--color-muted'), rule: tok('--color-rule-2') };
+ const rgb = (c, a = 1) => `rgba(${c.map((v) => Math.round(v * 255)).join(',')},${a})`;
+
+ /* ---------- the site ---------- */
+ let seed = 20261020;
+ const rnd = () => { seed |= 0; seed = (seed + 0x6d2b79f5) | 0; let t = Math.imul(seed ^ (seed >>> 15), 1 | seed); t = (t + Math.imul(t ^ (t >>> 7), 61 | t)) ^ t; return ((t ^ (t >>> 14)) >>> 0) / 4294967296; };
+ const P = new Uint8Array(512); { const p = [...Array(256).keys()]; for (let i = 255; i > 0; i--) { const j = Math.floor(rnd() * (i + 1)); [p[i], p[j]] = [p[j], p[i]]; } for (let i = 0; i < 512; i++) P[i] = p[i & 255]; }
+ const fade = (t) => t * t * (3 - 2 * t);
+ const hash = (x, y) => P[(P[x & 255] + y) & 255] / 255;
+ function vnoise(x, y) { const xi = Math.floor(x), yi = Math.floor(y), xf = x - xi, yf = y - yi; const u = fade(xf), v = fade(yf); const a = hash(xi, yi), b = hash(xi + 1, yi), c = hash(xi, yi + 1), d = hash(xi + 1, yi + 1); return (a + (b - a) * u + (c - a) * v + (a - b - c + d) * u * v) * 2 - 1; }
+ const fbm = (x, y) => vnoise(x, y) * 0.55 + vnoise(x * 2.1, y * 2.1) * 0.28 + vnoise(x * 4.3, y * 4.3) * 0.12;
+ const smooth = (a, b, x) => { const t = Math.max(0, Math.min(1, (x - a) / (b - a))); return t * t * (3 - 2 * t); };
+
+ const W = 120, D = 90, PAD = 41.25, FLOOR = 3.6;
+ const PILE = { x: 80, z: -24, r: 16, h: 8 };
+ function ground(x, z) {
+ let h = 39.4 + 0.04 * x + 0.025 * z + fbm(x * 0.016 + 3, z * 0.016 - 2) * 8.5 + fbm(x * 0.07, z * 0.07) * 0.7;
+ const dx = Math.max(-46 - x, 0, x - 40), dz = Math.max(-34 - z, 0, z - 30);
+ h = PAD + (h - PAD) * smooth(0, 11, Math.hypot(dx, dz));
+ if (x > 34) { const road = Math.abs(z - (38 + (x - 34) * 0.12)); const lvl = PAD + (x - 34) * 0.045; h = lvl + (h - lvl) * smooth(3.5, 9, road); }
+ return h;
+ }
+ function pile(x, z) { const d = Math.hypot(x - PILE.x, z - PILE.z) / PILE.r; return d < 1 ? PILE.h * Math.pow(1 - d, 1.25) * (1 + 0.06 * vnoise(x * 0.4, z * 0.4)) : 0; }
+
+ // ep: 1 = new in scan 14, -1 = only in scan 13, 0 = in both
+ const pos = [], cls = [], rr = [], sh = [], eps = []; let EP = 0;
+ const add = (x, y, z, c, h = 0.9, e = EP) => { pos.push(x, y, z); cls.push(c); rr.push(rnd()); sh.push(h); eps.push(e); };
+ const small = innerWidth < 700;
+ // airborne lidar lands in rows: one row every 0.8 m across the flight line, a point every 0.3 m along it
+ const ROW = small ? 1.25 : 0.8, STEP = small ? 0.42 : 0.3;
+ const hs = (x, z) => { const e = 0.6, gx = (ground(x + e, z) + pile(x + e, z) - ground(x - e, z) - pile(x - e, z)) / (2 * e), gz = (ground(x, z + e) + pile(x, z + e) - ground(x, z - e) - pile(x, z - e)) / (2 * e); const n = [-gx * 2.2, 1, -gz * 2.2], l = Math.hypot(...n); return Math.max(0, (n[0] * -0.55 + n[1] * 0.62 + n[2] * -0.56) / l); };
+ for (let z = -D; z <= D; z += ROW) {
+ const bend = Math.sin(z * 0.013) * 1.8;
+ for (let x = -W; x <= W; x += STEP * (0.7 + rnd() * 0.6)) {
+ const zz = z + bend * (x / W) + (rnd() - 0.5) * 0.18;
+ const p = pile(x, zz);
+ add(x, ground(x, zz) + p + (rnd() - 0.5) * 0.06, zz, p > 0.35 ? 3 : 0, hs(x, zz), p > 0.35 ? 1 : 0);
+ if (p > 0.35) add(x, ground(x, zz) + (rnd() - 0.5) * 0.06, zz, 0, 0.9, -1);
+ }
+ }
+ // building frame on the pad: slabs, columns, a core
+ const B = { x0: -36, x1: 6, z0: -24, z1: 12 };
+ const slab = (y, x1, n) => { for (let i = 0; i < n; i++) { const x = B.x0 + rnd() * (x1 - B.x0), z = B.z0 + rnd() * (B.z1 - B.z0); add(x, y + rnd() * 0.25, z, 1); } for (let i = 0; i < n * 0.35; i++) { const t = rnd(), side = Math.floor(rnd() * 4); const x = side < 2 ? B.x0 + t * (x1 - B.x0) : side === 2 ? B.x0 : x1; const z = side < 2 ? (side ? B.z1 : B.z0) : B.z0 + t * (B.z1 - B.z0); add(x, y + rnd() * 0.3, z, 1); } };
+ slab(PAD + 0.2, B.x1, 2600); slab(PAD + FLOOR, B.x1, 2600); slab(PAD + FLOOR * 2, B.x1, 2400); EP = 1; { const x0 = B.x0; B.x0 = -22; slab(PAD + FLOOR * 3, B.x1, 1500); B.x0 = x0; } EP = 0;
+ for (let cx = B.x0; cx <= B.x1 + 0.1; cx += 7) for (let cz = B.z0; cz <= B.z1 + 0.1; cz += 6) {
+ const top = cx < -22 ? PAD + FLOOR * 2 : PAD + FLOOR * 3;
+ for (let y = PAD; y < top; y += 0.22) add(cx + (rnd() - 0.5) * 0.4, y, cz + (rnd() - 0.5) * 0.4, 1, 0.9, y > PAD + FLOOR * 2 + 0.2 ? 1 : 0);
+ }
+ const core = { x0: -22, x1: -15, z0: -8, z1: -1, top: PAD + FLOOR * 3 + 2.4 };
+ for (let i = 0; i < 4200; i++) { const y = PAD + rnd() * (core.top - PAD), t = rnd(), s = Math.floor(rnd() * 4); const x = s < 2 ? core.x0 + t * (core.x1 - core.x0) : s === 2 ? core.x0 : core.x1; const z = s < 2 ? (s ? core.z1 : core.z0) : core.z0 + t * (core.z1 - core.z0); add(x, y, z, 1); }
+ // tower crane: a lattice mast and a jib
+ const CR = { x: 16, z: -16, top: PAD + 38 };
+ const line = (a, b, step) => { const L = Math.hypot(b[0] - a[0], b[1] - a[1], b[2] - a[2]); const n = Math.ceil(L / step); for (let i = 0; i <= n; i++) { const t = i / n; add(a[0] + (b[0] - a[0]) * t + (rnd() - 0.5) * 0.12, a[1] + (b[1] - a[1]) * t, a[2] + (b[2] - a[2]) * t + (rnd() - 0.5) * 0.12, 1); } };
+ const legs = [[-0.8, -0.8], [0.8, -0.8], [0.8, 0.8], [-0.8, 0.8]];
+ legs.forEach(([lx, lz]) => line([CR.x + lx, PAD, CR.z + lz], [CR.x + lx, CR.top, CR.z + lz], 0.16));
+ for (let y = PAD; y < CR.top - 2; y += 2.4) for (let k = 0; k < 4; k++) { const a = legs[k], b = legs[(k + 1) % 4]; line([CR.x + a[0], y, CR.z + a[1]], [CR.x + b[0], y + 2.4, CR.z + b[1]], 0.25); }
+ const jy = CR.top, jx0 = CR.x - 14, jx1 = CR.x + 48;
+ [[-0.7, 0], [0.7, 0]].forEach(([dz]) => line([jx0, jy, CR.z + dz], [jx1, jy, CR.z + dz], 0.18));
+ line([CR.x - 6, jy + 1.6, CR.z], [jx1 - 4, jy + 1.6, CR.z], 0.2);
+ for (let x = jx0; x < jx1 - 2; x += 2.2) line([x, jy, CR.z - 0.7], [x + 1.1, jy + 1.6, CR.z], 0.22);
+ line([CR.x, jy, CR.z], [CR.x, jy + 7, CR.z], 0.16); line([CR.x, jy + 7, CR.z], [jx1 - 10, jy + 1.6, CR.z], 0.25); line([CR.x, jy + 7, CR.z], [jx0 + 2, jy, CR.z], 0.25);
+ line([CR.x + 30, jy, CR.z], [CR.x + 30, PAD + 12, CR.z], 0.2);
+ // welfare cabins by the gate
+ const box = (x0, y0, z0, w, h, d, n) => { for (let i = 0; i < n; i++) { const f = Math.floor(rnd() * 5), u = rnd(), v = rnd(); let x, y, z; if (f === 0) { x = x0 + u * w; y = y0 + h; z = z0 + v * d; } else if (f < 3) { x = x0 + u * w; y = y0 + v * h; z = f === 1 ? z0 : z0 + d; } else { x = f === 3 ? x0 : x0 + w; y = y0 + v * h; z = z0 + u * d; } add(x, y, z, 1); } };
+ for (let k = 0; k < 3; k++) { const gx = 66 + k * 3.2, gz = 46; box(gx, ground(gx, gz), gz, 2.8, 2.6, 9, 420); }
+ box(66, ground(66, 46) + 2.6, 46, 2.8, 2.6, 9, 420);
+ // canopy: a hedge line of trees on the north and west boundaries
+ const trees = [];
+ for (let x = -112; x < 116; x += 7 + rnd() * 6) trees.push([x, 80 + rnd() * 7]);
+ for (let z = -82; z < 74; z += 8 + rnd() * 7) trees.push([-112 + rnd() * 6, z]);
+ for (let k = 0; k < 9; k++) trees.push([98 + rnd() * 18, -86 + k * 7 + rnd() * 3]);
+ trees.forEach(([tx, tz]) => { const g = ground(tx, tz), r = 3 + rnd() * 3.2, th = 2.5 + rnd() * 3, cy = g + th + r * 0.85; const n = small ? 150 : 240;
+ for (let i = 0; i < n; i++) { const u = rnd() * 2 - 1, a = rnd() * Math.PI * 2, s = Math.sqrt(1 - u * u), k = r * (0.72 + 0.34 * rnd()); const y = cy + u * k * 0.82; if (y < g + th * 0.7) continue; add(tx + s * Math.cos(a) * k, y, tz + s * Math.sin(a) * k, 2); }
+ for (let y = g; y < g + th + 0.5; y += 0.3) add(tx + (rnd() - 0.5) * 0.3, y, tz + (rnd() - 0.5) * 0.3, 2); });
+
+ const N = cls.length;
+ const POS = new Float32Array(pos), CLS = new Float32Array(cls), RND = new Float32Array(rr), SHD = new Float32Array(sh), EPS = new Float32Array(eps);
+ window.swathSite = { N, POS, CLS, ground, PAD, FLOOR, PILE };
+
+ /* ---------- matrices ---------- */
+ const persp = (fov, asp, n, f) => { const t = 1 / Math.tan(fov / 2); return [t / asp, 0, 0, 0, 0, t, 0, 0, 0, 0, (f + n) / (n - f), -1, 0, 0, (2 * f * n) / (n - f), 0]; };
+ function lookAt(e, c) { let zx = e[0] - c[0], zy = e[1] - c[1], zz = e[2] - c[2]; let l = Math.hypot(zx, zy, zz); zx /= l; zy /= l; zz /= l; let xx = zz, xy = 0, xz = -zx; l = Math.hypot(xx, xy, xz); xx /= l; xz /= l; const yx = zy * xz - zz * xy, yy = zz * xx - zx * xz, yz = zx * xy - zy * xx; return [xx, yx, zx, 0, xy, yy, zy, 0, xz, yz, zz, 0, -(xx * e[0] + xy * e[1] + xz * e[2]), -(yx * e[0] + yy * e[1] + yz * e[2]), -(zx * e[0] + zy * e[1] + zz * e[2]), 1]; }
+ const mul = (a, b) => { const o = new Array(16); for (let i = 0; i < 4; i++) for (let j = 0; j < 4; j++) { let s = 0; for (let k = 0; k < 4; k++) s += a[k * 4 + j] * b[i * 4 + k]; o[i * 4 + j] = s; } return o; };
+
+ const VS = `attribute vec3 p; attribute float c; attribute float r; attribute float sh; attribute float e;
+uniform mat4 m; uniform vec2 off; uniform float dpr, size, sweep, alpha, lime, near, far;
+uniform vec4 show; uniform vec3 lo, mid, hi, acc; uniform vec2 hr, ext; uniform float ep, diff;
+varying vec4 col;
+void main(){
+ float s = c < .5 ? show.x : c < 1.5 ? show.y : c < 2.5 ? show.z : max(show.x, lime);
+ vec4 q = m * vec4(p, 1.); q.xy += off * q.w; gl_Position = q;
+ float h = clamp((p.y - hr.x) / (hr.y - hr.x), 0., 1.);
+ vec3 k = h < .5 ? mix(lo, mid, h * 2.) : mix(mid, hi, (h - .5) * 2.);
+ k *= .56 + .62 * sh;
+ float d = sweep - p.x; float w = d >= 0. ? .6 * exp(-d / 2.2) + .4 * exp(-d / 20.) : exp(d / .7);
+ k = mix(k, hi * 1.15, min(1., w * 1.1));
+ if (c > 2.5) k = mix(k, acc, lime);
+ float pop = c > 2.5 ? lime : 0.;
+ if (diff > .5 && e > .5) { k = acc; pop = 1.; }
+ if ((e > .5 && ep < .5) || (e < -.5 && ep > .5)) s = 0.;
+ float fd = clamp(1. - (q.w - near) / (far - near), .3, 1.);
+ float edge = smoothstep(1., .74, length(p.xz / ext));
+ gl_PointSize = clamp(size * dpr * 260. / q.w * (.8 + .4 * r) * (1. + .35 * w), 1. * dpr, 3.6 * dpr);
+ col = vec4(k, s * mix(fd * edge * min(1., .74 + .5 * w), edge, pop) * alpha);
+ if (s < .01) gl_Position = vec4(3., 3., 3., 1.);
+}`;
+ const FS = `precision mediump float; varying vec4 col;
+void main(){ vec2 d = gl_PointCoord - .5; float e = dot(d, d); if (e > .25) discard; float a = col.a * smoothstep(.25, .12, e); gl_FragColor = vec4(col.rgb * a, a); }`;
+
+ function Cloud(canvas, o) {
+ const gl = canvas.getContext('webgl', { antialias: false, premultipliedAlpha: true, alpha: true, powerPreference: 'high-performance' });
+ if (!gl) return null;
+ const mk = (t, s) => { const x = gl.createShader(t); gl.shaderSource(x, s); gl.compileShader(x); return x; };
+ const pr = gl.createProgram(); gl.attachShader(pr, mk(gl.VERTEX_SHADER, VS)); gl.attachShader(pr, mk(gl.FRAGMENT_SHADER, FS)); gl.linkProgram(pr);
+ if (!gl.getProgramParameter(pr, gl.LINK_STATUS)) return null;
+ gl.useProgram(pr);
+ const buf = (data, name, n) => { const b = gl.createBuffer(); gl.bindBuffer(gl.ARRAY_BUFFER, b); gl.bufferData(gl.ARRAY_BUFFER, data, gl.STATIC_DRAW); const l = gl.getAttribLocation(pr, name); gl.enableVertexAttribArray(l); gl.vertexAttribPointer(l, n, gl.FLOAT, false, 0, 0); };
+ buf(POS, 'p', 3); buf(CLS, 'c', 1); buf(RND, 'r', 1); buf(SHD, 'sh', 1); buf(EPS, 'e', 1);
+ const U = {}; ['m', 'off', 'dpr', 'size', 'sweep', 'alpha', 'lime', 'near', 'far', 'show', 'lo', 'mid', 'hi', 'acc', 'hr', 'ext', 'ep', 'diff'].forEach((n) => (U[n] = gl.getUniformLocation(pr, n)));
+ gl.uniform3fv(U.lo, COL.lo); gl.uniform3fv(U.mid, COL.mid); gl.uniform3fv(U.hi, COL.hi); gl.uniform3fv(U.acc, COL.acc);
+ gl.uniform2f(U.hr, 35, 56); gl.uniform2f(U.ext, W + 4, D + 4); gl.uniform1f(U.dpr, DPR);
+ gl.enable(gl.BLEND); gl.blendFunc(gl.ONE, gl.ONE_MINUS_SRC_ALPHA); gl.disable(gl.DEPTH_TEST);
+ const st = { show: [1, 1, 1], showT: [1, 1, 1], lime: 1, limeT: 1, alpha: 0, yaw: o.yaw, px: 0, py: 0, tpx: 0, tpy: 0, w: 0, h: 0, mvp: null, off: [0, 0] };
+ function resize() { const r = canvas.getBoundingClientRect(); st.w = r.width; st.h = r.height; canvas.width = Math.round(r.width * DPR); canvas.height = Math.round(r.height * DPR); gl.viewport(0, 0, canvas.width, canvas.height); }
+ resize();
+ function draw(t, dt) {
+ const L = (a, b, k) => a + (b - a) * Math.min(1, k * dt);
+ for (let i = 0; i < 3; i++) st.show[i] = L(st.show[i], st.showT[i], 6);
+ st.lime = L(st.lime, st.limeT, 6);
+ st.alpha = L(st.alpha, 1, 2.2);
+ st.px = L(st.px, st.tpx, 3); st.py = L(st.py, st.tpy, 3);
+ const layout = o.layout(st.w, st.h);
+ const yaw = st.yaw + st.px * 0.07, pitch = layout.pitch + st.py * 0.05, R = layout.dist;
+ const tg = [layout.tx || 0, 47, layout.tz || 0];
+ const eye = [tg[0] + R * Math.cos(pitch) * Math.sin(yaw), tg[1] + R * Math.sin(pitch), tg[2] + R * Math.cos(pitch) * Math.cos(yaw)];
+ st.mvp = mul(persp(layout.fov, st.w / st.h, 20, 900), lookAt(eye, tg)); st.off = layout.off;
+ gl.clearColor(0, 0, 0, 0); gl.clear(gl.COLOR_BUFFER_BIT);
+ gl.uniformMatrix4fv(U.m, false, st.mvp); gl.uniform2fv(U.off, layout.off);
+ gl.uniform1f(U.size, layout.size); gl.uniform1f(U.alpha, st.alpha); gl.uniform1f(U.lime, st.lime);
+ gl.uniform1f(U.near, R - 170); gl.uniform1f(U.far, R + 170);
+ gl.uniform4f(U.show, st.show[0], st.show[1], st.show[2], 0);
+ gl.uniform1f(U.sweep, o.sweep(t));
+ if (o.split) {
+ const sx = Math.round(canvas.width * o.split());
+ gl.enable(gl.SCISSOR_TEST);
+ gl.scissor(0, 0, sx, canvas.height); gl.uniform1f(U.ep, 0); gl.uniform1f(U.diff, 0); gl.drawArrays(gl.POINTS, 0, N);
+ gl.scissor(sx, 0, canvas.width - sx, canvas.height); gl.uniform1f(U.ep, 1); gl.uniform1f(U.diff, 1); gl.drawArrays(gl.POINTS, 0, N);
+ gl.disable(gl.SCISSOR_TEST);
+ } else { gl.uniform1f(U.ep, 1); gl.uniform1f(U.diff, 0); gl.drawArrays(gl.POINTS, 0, N); }
+ }
+ function project(p) { const m = st.mvp; if (!m) return null; const x = m[0] * p[0] + m[4] * p[1] + m[8] * p[2] + m[12], y = m[1] * p[0] + m[5] * p[1] + m[9] * p[2] + m[13], w = m[3] * p[0] + m[7] * p[1] + m[11] * p[2] + m[15]; if (w <= 0) return null; return [((x / w + st.off[0]) * 0.5 + 0.5) * st.w, (1 - ((y / w + st.off[1]) * 0.5 + 0.5)) * st.h]; }
+ return { st, draw, resize, project };
+ }
+
+ /* sweep: crosses the site in 6.4 s, rests 1.6 s */
+ const sweepAt = (period, cross) => (t) => { const k = (t % period) / cross; if (k > 1) return 999; const e = k < 0.5 ? 4 * k * k * k : 1 - Math.pow(-2 * k + 2, 3) / 2; return -W - 12 + e * (2 * W + 24); };
+
+ const views = [];
+ function mount(canvas, o) {
+ const c = Cloud(canvas, o); if (!c) return null;
+ const v = { c, canvas, o, on: true, t0: performance.now(), last: performance.now() };
+ new IntersectionObserver(([e]) => { v.on = e.isIntersecting; }, { rootMargin: '80px' }).observe(canvas);
+ addEventListener('resize', () => c.resize());
+ if (o.pointer) o.pointer.addEventListener('pointermove', (e) => { const r = o.pointer.getBoundingClientRect(); c.st.tpx = ((e.clientX - r.left) / r.width - 0.5) * 2; c.st.tpy = ((e.clientY - r.top) / r.height - 0.5) * 2; });
+ views.push(v); return v;
+ }
+
+ const hero = document.querySelector('[data-cloud="hero"]');
+ const heroV = hero && mount(hero, {
+ yaw: 0.62, pointer: hero.closest('.hero'),
+ sweep: sweepAt(8, 6.4),
+ layout: (w, h) => w < 960 ? { pitch: 0.5, dist: w < 700 ? 300 : 280, fov: 0.62, off: [0.04, -0.6], size: 1.2 } : { pitch: 0.44, dist: w > 1700 ? 238 : 250, fov: 0.6, off: [0.3, -0.08], size: 1.3, tx: 12 },
+ });
+ const lay = document.querySelector('[data-cloud="layers"]');
+ const layV = lay && mount(lay, {
+ yaw: -0.5, pointer: lay,
+ sweep: sweepAt(10, 7.2),
+ layout: (w) => ({ pitch: 0.82, dist: w < 600 ? 330 : 238, fov: 0.62, off: [0, 0.02], size: 1.05, tx: -2, tz: 0 }),
+ });
+
+ const cmp = document.querySelector('[data-compare]');
+ let split = 0.5;
+ const cmpV = cmp && mount(cmp.querySelector('canvas'), {
+ yaw: 0.18, spin: false, pointer: null, split: () => split,
+ sweep: () => 999,
+ layout: (w) => w < 600 ? { pitch: 0.6, dist: 250, fov: 0.62, off: [0, 0], size: 1.15, tx: 24, tz: -14 } : { pitch: 0.52, dist: 172, fov: 0.6, off: [0, 0.02], size: 1.25, tx: 24, tz: -14 },
+ });
+ if (cmp) {
+ const hd = cmp.querySelector('[role="slider"]');
+ const set = (f) => { split = Math.max(0.04, Math.min(0.96, f)); cmp.style.setProperty('--split', `${split * 100}%`); hd.setAttribute('aria-valuenow', Math.round(split * 100)); hd.setAttribute('aria-valuetext', `${Math.round(split * 100)}% scan 13`); if (reduce && cmpV) requestAnimationFrame(() => frame(performance.now(), true)); };
+ const at = (e) => { const r = cmp.getBoundingClientRect(); set((e.clientX - r.left) / r.width); };
+ cmp.addEventListener('pointerdown', (e) => { cmp.setPointerCapture(e.pointerId); cmp.classList.add('is-drag'); at(e); cmp.onpointermove = at; });
+ cmp.addEventListener('pointerup', () => { cmp.onpointermove = null; cmp.classList.remove('is-drag'); });
+ hd.addEventListener('keydown', (e) => { const k = { ArrowLeft: -0.05, ArrowRight: 0.05, Home: -1, End: 1 }[e.key]; if (k == null) return; e.preventDefault(); set(Math.abs(k) === 1 ? (k < 0 ? 0 : 1) : split + k); });
+ set(innerWidth < 600 ? 0.24 : 0.36);
+ }
+
+ /* callouts follow the cloud */
+ const anchors = { pile: [PILE.x, ground(PILE.x, PILE.z) + PILE.h, PILE.z], slab: [B.x1, PAD + FLOOR * 3, B.z1], crane: [CR.x, CR.top + 7, CR.z] };
+ const callouts = [...document.querySelectorAll('[data-at]')].map((el) => ({ el, p: anchors[el.dataset.at] || el.dataset.at.split(',').map(Number) }));
+ function placeCallouts() {
+ if (!heroV) return;
+ const r = heroV.canvas.getBoundingClientRect();
+ callouts.forEach(({ el, p }) => { const s = heroV.c.project(p); if (!s) return; const ok = r.width < 960 ? s[1] > r.height * 0.74 && s[0] > 24 && s[0] < r.width - 24 && s[1] < r.height - 30 : s[0] > r.width * 0.42 && s[0] < r.width - 40 && s[1] > 90 && s[1] < r.height - 40; el.style.transform = `translate3d(${s[0].toFixed(1)}px, ${s[1].toFixed(1)}px, 0)`; el.classList.toggle('is-hidden', !ok); el.classList.toggle('is-flip', s[0] > r.width - 260); });
+ }
+
+ /* layer switches */
+ document.querySelectorAll('[data-layer]').forEach((sw) => sw.addEventListener('change', () => {
+ if (!layV) return; const k = sw.dataset.layer, on = sw.checked;
+ if (k === 'lime') layV.c.st.limeT = on ? 1 : 0; else layV.c.st.showT[+k] = on ? 1 : 0;
+ if (reduce) { const s = layV.c.st; s.show = [...s.showT]; s.lime = s.limeT; frame(performance.now(), true); }
+ }));
+
+ let hidden = false; document.addEventListener('visibilitychange', () => { hidden = document.hidden; if (!hidden) requestAnimationFrame(frame); });
+ function frame(now, once) {
+ views.forEach((v) => {
+ if (!v.on && !once) return;
+ const dt = Math.min(0.05, (now - v.last) / 1000); v.last = now;
+ const t = (now - v.t0) / 1000;
+ if (!reduce && v.o.spin !== false) v.c.st.yaw += dt * ((Math.PI * 2) / 120);
+ if (v.o.spin === false) v.c.st.yaw = v.o.yaw + (reduce ? 0 : Math.sin(t * 0.09) * 0.22);
+ v.c.draw(FIX ? +FIX : reduce ? 3.4 : t, reduce ? 1 : dt);
+ });
+ placeCallouts();
+ if (!reduce && !hidden && !once) requestAnimationFrame(frame);
+ }
+ if (views.length) {
+ root.classList.add('cloud-on');
+ if (reduce) { views.forEach((v) => { v.c.st.alpha = 1; }); requestAnimationFrame((n) => { frame(n, true); setTimeout(() => frame(performance.now(), true), 400); }); addEventListener('resize', () => frame(performance.now(), true)); }
+ else requestAnimationFrame(frame);
+ }
+
+ /* ---------- the section cut and its plan key ---------- */
+ const cut = document.querySelector('[data-cut]');
+ if (cut) {
+ const cv = cut.querySelector('canvas.cut__points'), plan = cut.querySelector('canvas.cut__plan'), range = cut.querySelector('input[type="range"]'), out = cut.querySelector('[data-cut-at]');
+ const ctx = cv.getContext('2d'), pctx = plan.getContext('2d');
+ const marks = { top: cut.querySelector('[data-mark="top"]'), pad: cut.querySelector('[data-mark="pad"]'), pile: cut.querySelector('[data-mark="pile"]') };
+ const Y0 = 33, Y1 = 90, SLAB = 1.1;
+ let planImg = null;
+ function drawPlan() {
+ const w = plan.clientWidth, h = plan.clientHeight; plan.width = w * DPR; plan.height = h * DPR; pctx.setTransform(DPR, 0, 0, DPR, 0, 0);
+ if (!planImg) { planImg = document.createElement('canvas'); planImg.width = w * DPR; planImg.height = h * DPR; const g = planImg.getContext('2d'); g.setTransform(DPR, 0, 0, DPR, 0, 0);
+ for (let i = 0; i < N; i += 2) { if (EPS[i] < -0.5) continue; const x = POS[i * 3], y = POS[i * 3 + 1], z = POS[i * 3 + 2]; const hh = Math.max(0, Math.min(1, (y - 37) / 25)); const c = CLS[i] > 2.5 ? COL.acc : hh < 0.5 ? COL.lo.map((v, j) => v + (COL.mid[j] - v) * hh * 2) : COL.mid.map((v, j) => v + (COL.hi[j] - v) * (hh - 0.5) * 2); g.fillStyle = rgb(c, CLS[i] > 2.5 ? 0.35 : 0.5); g.fillRect(((x + W) / (2 * W)) * w, ((D - z) / (2 * D)) * h, 1, 1); } }
+ pctx.clearRect(0, 0, w, h); pctx.drawImage(planImg, 0, 0, w, h);
+ const zc = +range.value, y = ((D - zc) / (2 * D)) * h;
+ pctx.fillStyle = rgb(COL.acc, 1); pctx.fillRect(0, y - 0.75, w, 1.5);
+ pctx.fillStyle = rgb(COL.acc, 0.12); pctx.fillRect(0, y - 5, w, 10);
+ }
+ function drawCut() {
+ const w = cv.clientWidth, h = cv.clientHeight; cv.width = w * DPR; cv.height = h * DPR; ctx.setTransform(DPR, 0, 0, DPR, 0, 0); ctx.clearRect(0, 0, w, h);
+ const zc = +range.value; const X = (x) => ((x + W) / (2 * W)) * w, Y = (y) => h - ((y - Y0) / (Y1 - Y0)) * h;
+ ctx.font = `400 12px ${css.getPropertyValue('--font-body')}`; ctx.textBaseline = 'bottom';
+ for (let lv = 40; lv <= 85; lv += 5) { const y = Math.round(Y(lv)) + 0.5; ctx.strokeStyle = rgb(COL.rule, lv % 10 ? 0.35 : 0.7); ctx.lineWidth = 1; ctx.beginPath(); ctx.moveTo(0, y); ctx.lineTo(w, y); ctx.stroke(); if (lv % 10 === 0) { ctx.fillStyle = rgb(COL.muted, 0.9); ctx.fillText(`${lv} m`, 0, y - 4); } }
+ let top = null, pile = null, padSum = 0, padN = 0;
+ for (let i = 0; i < N; i++) { if (EPS[i] < -0.5) continue; const z = POS[i * 3 + 2]; const dz = Math.abs(z - zc); if (dz > SLAB) continue; const x = POS[i * 3], y = POS[i * 3 + 1], c = CLS[i];
+ const hh = Math.max(0, Math.min(1, (y - 37) / 25)); const col = c > 2.5 ? COL.acc : hh < 0.5 ? COL.lo.map((v, j) => v + (COL.mid[j] - v) * hh * 2) : COL.mid.map((v, j) => v + (COL.hi[j] - v) * (hh - 0.5) * 2);
+ ctx.fillStyle = rgb(col, 0.9 - (dz / SLAB) * 0.5); ctx.fillRect(X(x) - 0.75, Y(y) - 0.75, 1.5, 1.5);
+ if (c === 1 && (!top || y > top[1])) top = [x, y];
+ if (c === 3 && (!pile || y > pile[1])) pile = [x, y];
+ if (c === 0 && x > 10 && x < 38 && Math.abs(y - 41.25) < 0.6) { padSum += y; padN++; } }
+ const put = (el, p, txt) => { if (!el) return; if (!p) { el.hidden = true; return; } el.hidden = false; el.classList.toggle('is-flip', X(p[0]) > w - 150); el.style.left = `${(X(p[0]) / w) * 100}%`; el.style.top = `${(Y(p[1]) / h) * 100}%`; el.querySelector('b').textContent = txt; };
+ put(marks.top, top, `${top ? top[1].toFixed(3) : ''}`);
+ put(marks.pad, padN > 20 ? [28, padSum / padN] : null, `${(padSum / Math.max(1, padN)).toFixed(3)}`);
+ put(marks.pile, pile, pile ? `${(pile[1] - ground(pile[0], zc)).toFixed(2)}` : '');
+ out.textContent = `${zc >= 0 ? 'North' : 'South'} ${Math.abs(zc).toFixed(1)} m`;
+ drawPlan();
+ }
+ let q = 0; const req = () => { cancelAnimationFrame(q); q = requestAnimationFrame(drawCut); };
+ range.addEventListener('input', req);
+ plan.addEventListener('pointerdown', (e) => { plan.setPointerCapture(e.pointerId); const mv = (ev) => { const r = plan.getBoundingClientRect(); range.value = Math.round((D - ((ev.clientY - r.top) / r.height) * 2 * D) * 2) / 2; req(); }; mv(e); plan.onpointermove = mv; plan.onpointerup = () => (plan.onpointermove = null); });
+ addEventListener('resize', () => { planImg = null; req(); });
+ (document.fonts ? document.fonts.ready : Promise.resolve()).then(req);
+ }
+
+ /* ---------- the footer wordmark, scanned ---------- */
+ const fm = document.querySelector('[data-points-word]');
+ if (fm) {
+ const c = fm.querySelector('canvas'), g = c.getContext('2d');
+ let dots = [], on = false, t0 = performance.now();
+ function build() {
+ const w = fm.clientWidth, h = fm.clientHeight; c.width = w * DPR; c.height = h * DPR;
+ const o = document.createElement('canvas'); o.width = w; o.height = h; const og = o.getContext('2d');
+ const face = css.getPropertyValue('--font-display'); og.font = `200 100px ${face}`; const fs = Math.min(h * 1.3, (100 * w) / og.measureText(fm.dataset.pointsWord).width);
+ og.fillStyle = '#fff'; og.font = `200 ${fs}px ${face}`; og.textBaseline = 'alphabetic';
+ og.fillText(fm.dataset.pointsWord, -fs * 0.03, h * 0.94);
+ const px = og.getImageData(0, 0, w, h).data, step = w < 700 ? 3.2 : 4.2; dots = []; seed = 77;
+ for (let y = 0; y < h; y += step) for (let x = 0; x < w; x += step * (0.8 + rnd() * 0.4)) { const jx = x + (rnd() - 0.5) * step * 0.5, jy = y + (rnd() - 0.5) * step * 0.3; const a = px[(Math.floor(jy) * w + Math.floor(jx)) * 4 + 3]; if (a > 120) dots.push([jx, jy, rnd()]); }
+ }
+ function paint(now) {
+ const w = fm.clientWidth, h = fm.clientHeight; g.setTransform(DPR, 0, 0, DPR, 0, 0); g.clearRect(0, 0, w, h);
+ const t = reduce ? 0.35 : ((now - t0) / 1000 % 9) / 7; const sx = t <= 1 ? -40 + t * (w + 80) : -999;
+ for (const [x, y, r] of dots) { const k = 1 - y / h; const d = sx - x; const lit = d >= 0 ? 0.6 * Math.exp(-d / 6) + 0.4 * Math.exp(-d / 120) : Math.exp(d / 3); const base = COL.mid.map((v, j) => v + (COL.hi[j] - v) * k * 0.5); const col = base.map((v, j) => v + (COL.hi[j] - v) * lit * 0.9); g.fillStyle = rgb(col, 0.6 + 0.4 * lit); g.fillRect(x, y, 1.3 + r * 0.6, 1.3 + r * 0.6); }
+ if (on && !reduce && !document.hidden) requestAnimationFrame(paint);
+ }
+ (document.fonts ? document.fonts.ready : Promise.resolve()).then(() => { build(); fm.classList.add('is-on'); paint(performance.now()); });
+ new IntersectionObserver(([e]) => { const was = on; on = e.isIntersecting; if (on && !was) requestAnimationFrame(paint); }).observe(fm);
+ addEventListener('resize', () => { build(); paint(performance.now()); });
+ }
+})();
diff --git a/site/themes/vantage/style.css b/site/themes/vantage/style.css
new file mode 100644
index 0000000..59f2808
--- /dev/null
+++ b/site/themes/vantage/style.css
@@ -0,0 +1,266 @@
+/* Hallmark · job: book a demo · shape: Feature Ledger, one sample site read five ways · genre: modern-minimal · theme: Vantage (new, by request) · signature: the site as a live point cloud with a sweep, measured by callouts
+ * hero: Stage over a generated point cloud (head on plain ground left, the site turning right, two callouts) · sections: hero Stage, Layers (working switches beside a second live cloud), Statement figure in ticks with facts, Section cut (full-width profile from the scan with a draggable plan key), Compare (scan 13 against scan 14 as one cloud with a drag handle, what is new lit lime, one figure and two facts), Table (scan log), Price columns, Form split · nav: three-part bar · footer: mast · vantage: terrain/steel
+ * imagery: no photographs, the generated sample site everywhere · samples: the site, levels, volumes, scans, dates and prices are Example placeholders of the product's shape
+ */
+@import url("tokens.css");
+@import url("base.css");
+
+body { font-weight: 300; font-variation-settings: "SHRP" 0; }
+h1, h2, h3 { font-variation-settings: "SHRP" 100; }
+h3 { font-weight: 400; letter-spacing: -0.015em; }
+b, strong { font-weight: 400; }
+.lead { color: var(--color-ink-2); }
+.num { font-variant-numeric: tabular-nums; font-weight: 400; }
+.u { color: var(--color-muted); font-size: 0.75em; font-weight: 300; }
+.skip { position: absolute; left: var(--space-md); top: -100px; z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-accent); color: var(--color-accent-ink); border-radius: var(--radius-pill); }
+.skip:focus { top: var(--space-md); }
+
+/* corner ticks: a hairline frame drawn only at its corners */
+.ticks { position: relative; }
+.ticks::before { content: ""; position: absolute; inset: 0; pointer-events: none; border: var(--rule-hair) solid var(--color-rule-2);
+ -webkit-mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick));
+ mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick)); }
+
+/* controls */
+.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 400 var(--text-md)/1 var(--font-body); text-decoration: none; cursor: pointer; transition: background var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
+.btn:hover { background: var(--color-accent-hi); }
+.btn:active { transform: translateY(1px); }
+.btn--line { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); }
+.btn--line:hover { background: var(--color-paper-2); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
+.btn--sm { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }
+.btn--wide { width: 100%; }
+a { text-decoration-color: var(--color-rule-2); }
+a:hover { text-decoration-color: var(--color-accent); }
+
+/* nav: three parts */
+.nav { position: fixed; inset: 0 0 auto; z-index: var(--z-sticky-nav); height: 72px; transition: background var(--dur-long) var(--ease-out), box-shadow var(--dur-long) var(--ease-out); }
+.nav.is-scrolled { background: color-mix(in oklab, var(--color-paper) 92%, transparent); box-shadow: inset 0 calc(-1 * var(--rule-hair)) 0 var(--color-rule); }
+.nav__in { height: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: var(--space-lg); }
+.wordmark { display: inline-flex; align-items: center; gap: var(--space-sm); font: 400 1.1875rem/1 var(--font-display); font-variation-settings: "SHRP" 100; letter-spacing: -0.03em; text-decoration: none; justify-self: start; }
+.wordmark__mark { display: grid; grid-template-columns: repeat(3, 4px); gap: var(--space-2xs); transform: skewX(-18deg); }
+.wordmark__mark i { width: 4px; height: 12px; border-radius: 1px; background: var(--color-ink); }
+.wordmark__mark i:nth-child(2) { background: var(--color-muted); } .wordmark__mark i:nth-child(3) { background: var(--color-accent); }
+.nav__links { display: flex; gap: var(--space-xl); font-size: var(--text-sm); }
+.nav__links a, .nav__login { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
+.nav__links a:hover, .nav__login:hover { color: var(--color-ink); }
+.nav__end { justify-self: end; display: flex; align-items: center; gap: var(--space-lg); font-size: var(--text-sm); }
+
+/* hero */
+.hero { position: relative; min-height: 100svh; display: grid; align-items: center; overflow: hidden; isolation: isolate; }
+.hero__cloud, .hero__still { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1;
+ -webkit-mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 56%), linear-gradient(to bottom, var(--color-ink) 82%, transparent);
+ mask-image: linear-gradient(90deg, transparent 30%, var(--color-ink) 56%), linear-gradient(to bottom, var(--color-ink) 82%, transparent);
+ -webkit-mask-composite: source-in; mask-composite: intersect; }
+.hero__still { overflow: hidden; }
+.hero__still::before { content: ""; position: absolute; inset: 0; opacity: 0.45; background-image: radial-gradient(circle, var(--point-mid) 0.8px, transparent 1.2px), radial-gradient(circle, var(--point-lo) 0.8px, transparent 1.2px), radial-gradient(circle, var(--point-hi) 0.6px, transparent 1px); background-size: 7px 9px, 11px 13px, 17px 23px; background-position: 0 0, 3px 5px, 8px 2px; -webkit-mask-image: radial-gradient(ellipse 46% 40% at 70% 58%, var(--color-ink), transparent); mask-image: radial-gradient(ellipse 46% 40% at 70% 58%, var(--color-ink), transparent); }
+.cloud-on .hero__still { display: none; }
+.hero__callouts { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
+.hero__grid { padding-block: calc(var(--space-3xl) + var(--space-md)) var(--space-2xl); }
+.hero__text { max-width: 560px; }
+.hero h1 { font-size: var(--text-display); max-width: 11ch; }
+.hero .lead { margin-top: var(--space-lg); max-width: 40ch; }
+.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
+.readout { width: fit-content; display: grid; grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; margin: var(--space-2xl) 0 0; padding: var(--space-md) var(--space-lg); }
+.readout div { padding-inline: var(--space-lg); box-shadow: inset calc(-1 * var(--rule-hair)) 0 0 var(--color-rule); }
+.readout div:first-child { padding-left: 0; } .readout div:last-child { box-shadow: none; padding-right: 0; }
+.readout dt { font-size: var(--text-xs); color: var(--color-muted); }
+.readout dd { margin: var(--space-2xs) 0 0; font-size: var(--text-xl); letter-spacing: -0.02em; }
+
+.callout { position: absolute; left: 0; top: 0; will-change: transform; transition: opacity var(--dur-long) var(--ease-out); }
+.callout.is-hidden { opacity: 0; }
+.callout__dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 3px color-mix(in oklab, var(--color-paper) 70%, transparent); }
+.callout__leader { position: absolute; left: 0; bottom: 0; width: var(--rule-hair); height: 72px; background: color-mix(in oklab, var(--color-ink) 55%, transparent); }
+.callout__note { position: absolute; left: 0; bottom: 72px; display: grid; gap: var(--space-3xs); padding: var(--space-xs) var(--space-sm); white-space: nowrap; font-size: var(--text-xs); color: var(--color-ink-2); background: color-mix(in oklab, var(--color-paper) 82%, transparent); box-shadow: inset var(--rule-hair) 0 0 color-mix(in oklab, var(--color-ink) 55%, transparent); }
+.callout__note b { font-size: var(--text-lg); color: var(--color-ink); letter-spacing: -0.01em; }
+.callout.is-flip .callout__note { left: auto; right: 0; box-shadow: inset calc(-1 * var(--rule-hair)) 0 0 color-mix(in oklab, var(--color-ink) 55%, transparent); text-align: right; padding: var(--space-xs) var(--space-sm); }
+.callout--found.is-flip .callout__note { box-shadow: inset calc(-1 * var(--rule-hair)) 0 0 var(--color-accent); }
+.callout--found .callout__dot { background: var(--color-accent); }
+.callout--found .callout__leader { background: var(--color-accent); }
+.callout--found .callout__note { box-shadow: inset var(--rule-hair) 0 0 var(--color-accent); }
+
+/* shared section rhythm */
+main > section:not(.hero) { padding-block: var(--section-gap) 0; }
+main > section.pricing, main > section.demo { padding-bottom: 0; }
+.lead { margin-top: var(--space-md); }
+
+/* layers */
+.layers__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
+.switches { list-style: none; margin: var(--space-2xl) 0 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule); }
+.switch { display: grid; grid-template-columns: 1fr auto 44px; align-items: center; gap: var(--space-lg); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); cursor: pointer; position: relative; }
+.switch__name { display: grid; gap: var(--space-3xs); }
+.switch__name b { font-size: var(--text-lg); color: var(--color-ink); letter-spacing: -0.01em; }
+.switch__name span { font-size: var(--text-sm); color: var(--color-muted); }
+.switch__n { color: var(--color-ink-2); font-size: var(--text-md); }
+.switch input { position: absolute; opacity: 0; width: 44px; height: 24px; right: 0; margin: 0; cursor: pointer; }
+.switch__track { position: relative; width: 44px; height: 24px; border-radius: var(--radius-pill); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); background: var(--color-paper-2); transition: background var(--dur-short) var(--ease-out); }
+.switch__track::after { content: ""; position: absolute; top: 4px; left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-muted); transition: transform var(--dur-short) var(--ease-out), background var(--dur-short) var(--ease-out); }
+.switch input:checked + .switch__track { background: var(--color-ink); box-shadow: none; }
+.switch input:checked + .switch__track::after { transform: translateX(20px); background: var(--color-paper); }
+.switch--found input:checked + .switch__track { background: var(--color-accent); }
+.switch--found input:checked + .switch__track::after { background: var(--color-accent-ink); }
+.switch input:focus-visible + .switch__track { outline: 2px solid var(--color-focus); outline-offset: 3px; }
+.switch:hover .switch__track { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
+.layers__view { margin: 0; padding: var(--space-md); }
+.layers__view canvas { display: block; width: 100%; aspect-ratio: 7 / 5.4; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, var(--color-ink) 62%, transparent); mask-image: radial-gradient(ellipse 58% 56% at 50% 50%, var(--color-ink) 62%, transparent); }
+.layers__view figcaption { display: flex; justify-content: space-between; padding: var(--space-sm) var(--space-2xs) 0; font-size: var(--text-xs); color: var(--color-muted); }
+
+/* accuracy statement */
+.accuracy__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
+.accuracy__figure { width: fit-content; margin: 0; padding: var(--space-xl) var(--space-2xl) var(--space-lg); font: 200 var(--text-figure)/0.9 var(--font-display); font-variation-settings: "SHRP" 100; letter-spacing: -0.06em; color: var(--color-ink); white-space: nowrap; }
+.accuracy__figure .u { font-size: 0.32em; letter-spacing: -0.02em; margin-left: 0.12em; }
+.facts { margin: var(--space-xl) 0 0; border-top: var(--rule-hair) solid var(--color-rule); }
+.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-lg); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
+.facts dt { color: var(--color-ink-2); }
+.facts dd { margin: 0; font-size: var(--text-lg); }
+.facts--quiet dd { font-size: var(--text-md); color: var(--color-ink-2); text-align: right; }
+
+/* section cut */
+.cut__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: end; }
+.cut__head .lead { margin: 0; justify-self: end; max-width: 36ch; }
+.cut__body { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-3xl); margin-top: var(--space-2xl); align-items: stretch; }
+.cut__stage { position: relative; min-height: 400px; }
+.cut__points { position: absolute; inset: 0; width: 100%; height: 100%; }
+.mark { position: absolute; width: 0; height: 0; }
+.mark__dot { position: absolute; left: -3.5px; top: -3.5px; width: 7px; height: 7px; border-radius: 50%; background: var(--color-ink); box-shadow: 0 0 0 3px var(--color-paper); }
+.mark__label { position: absolute; left: 0; bottom: 18px; display: block; padding: var(--space-2xs) var(--space-sm); white-space: nowrap; font-size: var(--text-xs); color: var(--color-muted); box-shadow: inset var(--rule-hair) 0 0 var(--color-ink); background: color-mix(in oklab, var(--color-paper) 75%, transparent); }
+.mark__label > span:first-child { display: block; }
+.mark__label b { font-size: var(--text-lg); color: var(--color-ink); }
+.mark.is-flip .mark__label { left: auto; right: 0; text-align: right; box-shadow: inset calc(-1 * var(--rule-hair)) 0 0 var(--color-ink); }
+.mark--found.is-flip .mark__label { box-shadow: inset calc(-1 * var(--rule-hair)) 0 0 var(--color-accent); }
+.mark--found .mark__dot { background: var(--color-accent); } .mark--found .mark__label { box-shadow: inset var(--rule-hair) 0 0 var(--color-accent); }
+.cut__key { display: grid; align-content: start; gap: var(--space-md); }
+.cut__plan { width: 100%; aspect-ratio: 4 / 3; cursor: ns-resize; touch-action: none; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule); }
+.cut__range { display: grid; grid-template-columns: 1fr auto; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-muted); }
+.cut__range output { color: var(--color-ink); }
+.cut__range input { grid-column: 1 / -1; width: 100%; accent-color: var(--color-accent); margin: var(--space-2xs) 0 0; }
+.cut__note { font-size: var(--text-xs); color: var(--color-muted); }
+
+/* compare: scan 13 against scan 14 */
+.compare__head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: end; }
+.delta { display: grid; grid-template-columns: 1.3fr 1fr 1fr; margin: 0; border-top: var(--rule-hair) solid var(--color-rule); }
+.delta div { padding: var(--space-md) var(--space-lg) 0; box-shadow: inset var(--rule-hair) 0 0 var(--color-rule); }
+.delta div:first-child { padding-left: 0; box-shadow: none; }
+.delta dt { font-size: var(--text-sm); color: var(--color-muted); }
+.delta dd { margin: var(--space-xs) 0 0; font-size: var(--text-xl); letter-spacing: -0.02em; color: var(--color-ink-2); }
+.delta__lead dt { color: var(--color-ink-2); } .delta__lead dt::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: var(--space-xs); border-radius: 50%; background: var(--color-accent); vertical-align: 0.1em; }
+.delta__lead dd { font: 200 clamp(2.75rem, 3vw + 1rem, 4rem)/1 var(--font-display); font-variation-settings: "SHRP" 100; letter-spacing: -0.045em; color: var(--color-ink); }
+.compare__stage { --split: 36%; position: relative; margin-top: var(--space-2xl); aspect-ratio: 16 / 6.6; cursor: ew-resize; touch-action: pan-y; user-select: none; }
+.compare__stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; -webkit-mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, var(--color-ink) 64%, transparent); mask-image: radial-gradient(ellipse 60% 56% at 50% 50%, var(--color-ink) 64%, transparent); }
+.compare__tag { position: absolute; top: var(--space-lg); display: inline-flex; align-items: center; gap: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
+.compare__tag--a { left: var(--space-lg); } .compare__tag--b { right: var(--space-lg); }
+.compare__tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--color-accent); }
+.compare__handle { position: absolute; top: 0; bottom: 0; left: var(--split); width: 44px; transform: translateX(-50%); display: grid; place-items: center; }
+.compare__handle::before { content: ""; position: absolute; top: var(--space-2xl); bottom: var(--space-2xl); left: 50%; width: var(--rule-hair); background: color-mix(in oklab, var(--color-ink) 50%, transparent); }
+.compare__knob { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); transition: transform var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out); }
+.compare__stage:hover .compare__knob, .compare__stage.is-drag .compare__knob { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
+.compare__stage.is-drag .compare__knob { transform: scale(0.94); }
+.compare__knob:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }
+
+/* scan log */
+.scans__head { display: flex; justify-content: space-between; align-items: end; gap: var(--space-xl); flex-wrap: wrap; }
+.scans__head .lead { margin: 0; }
+.table-wrap { margin-top: var(--space-2xl); overflow-x: auto; }
+.log { width: 100%; border-collapse: collapse; font-size: var(--text-md); min-width: 880px; }
+.log th { padding: 0 var(--space-md) var(--space-sm) 0; text-align: left; font-weight: 400; font-size: var(--text-sm); color: var(--color-muted); border-bottom: var(--rule-hair) solid var(--color-rule-2); }
+.log td { white-space: nowrap; padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); color: var(--color-ink-2); vertical-align: baseline; }
+.log td:first-child { color: var(--color-ink); font-size: var(--text-lg); width: 80px; }
+.log td:last-child { color: var(--color-ink); }
+.log .r { text-align: right; padding-right: var(--space-2xl); }
+.log tbody tr { transition: background var(--dur-short) var(--ease-out); }
+.log tbody tr:hover { background: var(--color-paper-2); }
+.live { display: inline-block; width: 7px; height: 7px; margin-right: var(--space-sm); border-radius: 50%; background: var(--color-accent); vertical-align: 0.15em; }
+.log td:first-child { position: relative; padding-left: var(--space-lg); }
+.log .live { position: absolute; left: 0; top: 50%; margin: 0; transform: translateY(-50%); }
+
+/* pricing */
+.plans { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: var(--space-2xl); border-top: var(--rule-hair) solid var(--color-rule); }
+.plan { padding: var(--space-xl) var(--space-xl) var(--space-2xl); display: grid; align-content: start; gap: var(--space-md); }
+.plan + .plan { box-shadow: inset var(--rule-hair) 0 0 var(--color-rule); }
+.plan--lead { background: var(--color-paper-2); box-shadow: none !important; }
+.plan h3 { font-size: var(--text-title); }
+.plan__price .u { font-size: 0.4em; letter-spacing: -0.01em; margin-left: 0.1em; }
+.plan__price { font: 200 clamp(2.5rem, 2vw + 1.5rem, 3.5rem)/1 var(--font-display); font-variation-settings: "SHRP" 100; letter-spacing: -0.04em; }
+.plan p:not(.plan__price) { color: var(--color-ink-2); max-width: 30ch; }
+.plan ul { list-style: none; margin: var(--space-xs) 0 0; padding: 0; display: grid; gap: var(--space-xs); color: var(--color-muted); font-size: var(--text-sm); }
+.plan li { padding-left: var(--space-lg); position: relative; }
+.plan li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 10px; height: var(--rule-hair); background: var(--color-rule-2); }
+.plan--lead li::before { background: var(--color-accent); }
+
+/* demo close */
+.demo { padding-bottom: var(--section-gap) !important; }
+.demo__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: var(--space-3xl); align-items: center; }
+.demo h2 { font-size: clamp(2.5rem, 2.6vw + 1.25rem, 4rem); max-width: 12ch; }
+.demo .facts { max-width: 520px; }
+.form { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-lg) var(--space-md); padding: var(--space-xl); background: var(--color-paper-2); }
+.field-row { display: grid; gap: var(--space-xs); }
+.field-row label { font-size: var(--text-sm); color: var(--color-ink-2); }
+.field-row input, .field-row select { height: 48px; padding: 0 var(--space-md); border: 0; border-radius: var(--radius-card); background: var(--color-paper); color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); font-weight: 300; caret-color: var(--color-accent); transition: box-shadow var(--dur-short) var(--ease-out); }
+.field-row input:hover, .field-row select:hover { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-ink-2); }
+.field-row input:disabled, .field-row select:disabled, .btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
+.field-row input:focus, .field-row select:focus { outline: none; box-shadow: inset 0 0 0 var(--rule-hair) var(--color-accent), 0 0 0 3px color-mix(in oklab, var(--color-accent) 22%, transparent); }
+.field-row input[aria-invalid="true"] { box-shadow: inset 0 0 0 var(--rule-hair) var(--color-error); }
+.form .btn, .form__note { grid-column: 1 / -1; }
+.form .btn { margin-top: var(--space-xs); }
+.form__note { font-size: var(--text-xs); color: var(--color-muted); }
+.form__note.is-error { color: var(--color-error); }
+
+/* footer: mast */
+.foot { padding-block: var(--space-3xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
+.foot__mark { position: relative; margin: 0; height: clamp(6rem, 25vw, 25rem); font: 200 clamp(6.5rem, 26vw, 25rem)/0.86 var(--font-display); font-variation-settings: "SHRP" 100; letter-spacing: -0.06em; color: var(--color-paper-3); }
+.foot__mark canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
+.foot__mark.is-on { color: transparent; }
+.foot__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
+.foot__links { display: flex; flex-wrap: wrap; gap: var(--space-lg); font-size: var(--text-sm); }
+.foot__links a { color: var(--color-ink-2); text-decoration: none; } .foot__links a:hover { color: var(--color-ink); }
+.foot__legal, .foot__credits { font-size: var(--text-xs); color: var(--color-muted); }
+.foot__credits { margin-top: var(--space-sm); }
+
+/* entrances */
+@media (prefers-reduced-motion: no-preference) {
+ .hero__text > * { animation: rise var(--dur-long) var(--ease-out) both; }
+ .hero__text > :nth-child(2) { animation-delay: 80ms; } .hero__text > :nth-child(3) { animation-delay: 160ms; } .hero__text > :nth-child(4) { animation-delay: 240ms; }
+ .hero__callouts { animation: fadein 1200ms var(--ease-out) 900ms both; }
+}
+@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
+@keyframes fadein { from { opacity: 0; } }
+
+/* responsive */
+@media (max-width: 75rem) {
+ .nav__links { gap: var(--space-lg); }
+}
+@media (max-width: 60rem) {
+ .nav__links, .nav__login { display: none; }
+ .nav__in { grid-template-columns: 1fr auto; }
+ .hero { min-height: auto; align-items: start; }
+ .hero__grid { padding-block: 112px 420px; }
+ .hero__cloud, .hero__still { -webkit-mask-image: linear-gradient(to bottom, transparent 64%, var(--color-ink) 76%, var(--color-ink) 94%, transparent); mask-image: linear-gradient(to bottom, transparent 64%, var(--color-ink) 76%, var(--color-ink) 94%, transparent); }
+ .layers__grid, .accuracy__grid, .demo__grid, .cut__head, .compare__head { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
+ .cut__head .lead { justify-self: start; }
+ .cut__body { grid-template-columns: minmax(0, 1fr); }
+ .cut__stage { min-height: 300px; }
+ .cut__key { grid-template-columns: 220px 1fr; align-items: start; }
+ .cut__key .cut__note { grid-column: 1 / -1; }
+ .plans { grid-template-columns: minmax(0, 1fr); }
+ .plan + .plan { box-shadow: inset 0 var(--rule-hair) 0 var(--color-rule); }
+}
+@media (max-width: 40rem) {
+ .form { grid-template-columns: 1fr; }
+ .layers__view figcaption span:last-child, .mark[data-mark="pad"] { display: none; }
+ .log { min-width: 0; } .log thead { display: none; }
+ .log tbody tr { display: grid; grid-template-columns: auto 1fr auto; column-gap: var(--space-md); padding: var(--space-md) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
+ .log td { padding: 0; border: 0; white-space: normal; }
+ .log td:nth-child(3), .log td:nth-child(4), .log td:nth-child(6) { display: none; }
+ .log td:first-child { grid-row: span 2; width: auto; }
+ .log td:nth-child(5) { text-align: right; padding: 0; }
+ .log td:last-child { grid-column: 2 / -1; color: var(--color-muted); font-size: var(--text-sm); }
+ .hero__grid { padding-block: 104px 360px; }
+ .readout { grid-template-columns: repeat(2, auto); row-gap: var(--space-md); padding: var(--space-md); }
+ .readout div:nth-child(2) { box-shadow: none; padding-right: 0; } .readout div:nth-child(3) { padding-left: 0; }
+ .accuracy__figure { padding: var(--space-lg); }
+ .cut__key { grid-template-columns: 1fr; }
+ .cut__stage { min-height: 240px; }
+ .delta { grid-template-columns: 1fr 1fr; } .delta div:last-child { display: none; }
+ .compare__stage { aspect-ratio: 4 / 5; }
+ .callout__note b { font-size: var(--text-md); }
+ .callout__leader { height: 48px; } .callout__note { bottom: 48px; }
+}
diff --git a/site/themes/vantage/tokens.css b/site/themes/vantage/tokens.css
new file mode 100644
index 0000000..650c7fb
--- /dev/null
+++ b/site/themes/vantage/tokens.css
@@ -0,0 +1,23 @@
+:root {
+ color-scheme: dark;
+ --space-3xs: 2px; --space-2xs: 4px; --space-xs: 8px; --space-sm: 12px; --space-md: 16px; --space-lg: 24px; --space-xl: 40px; --space-2xl: 64px; --space-3xl: 96px; --space-4xl: 144px;
+ --text-xs: 0.8125rem; --text-sm: 0.875rem; --text-md: 1rem; --text-lg: 1.1875rem; --text-xl: 1.5rem; --text-2xl: 1.875rem; --text-3xl: 2.375rem;
+ --text-display: clamp(2.875rem, 3.6vw + 1rem, 4.75rem);
+ --text-section: clamp(2rem, 1.6vw + 1.25rem, 3rem); --text-title: clamp(1.125rem, 0.4vw + 1rem, 1.3125rem); --text-lead: clamp(1.0625rem, 0.3vw + 1rem, 1.25rem);
+ --text-figure: clamp(4.5rem, 12vw + 1rem, 14rem);
+ --ease-out: cubic-bezier(0.16, 1, 0.3, 1); --ease-in: cubic-bezier(0.7, 0, 0.84, 0); --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
+ --dur-micro: 120ms; --dur-short: 240ms; --dur-long: 560ms;
+ --color-error: oklch(72% 0.15 27); --color-success: oklch(89% 0.19 126);
+ --container: 1440px; --gutter: 64px; --gap-columns: 32px; --section-gap-s: 120px; --section-gap: 152px; --section-gap-l: 184px;
+ --z-base: 1; --z-raised: 10; --z-dropdown: 100; --z-sticky: 200; --z-sticky-nav: 300; --z-modal: 400; --z-toast: 500; --z-tooltip: 600;
+ --color-paper: oklch(13.5% 0.012 235); --color-paper-2: oklch(17% 0.014 235); --color-paper-3: oklch(21% 0.016 235);
+ --color-ink: oklch(95% 0.006 230); --color-ink-2: oklch(82% 0.012 230); --color-muted: oklch(66% 0.016 230);
+ --color-rule: oklch(27% 0.014 235); --color-rule-2: oklch(34% 0.016 235);
+ --color-accent: oklch(89% 0.19 126); --color-accent-hi: oklch(93% 0.17 126); --color-accent-ink: oklch(19% 0.04 126); --color-focus: oklch(89% 0.19 126);
+ --point-lo: oklch(42% 0.04 245); --point-mid: oklch(70% 0.04 232); --point-hi: oklch(96% 0.02 215);
+ --color-slot: oklch(21% 0.016 235);
+ --font-display: "Geologica", ui-sans-serif, system-ui, sans-serif; --font-body: "Geologica", ui-sans-serif, system-ui, sans-serif;
+ --radius-card: 4px; --radius-pill: 999px; --rule-hair: 1px; --tick: 10px;
+ --shadow-card: none;
+ --tracking-display: -0.035em; --display-weight: 300;
+}