Skip to content
landingpageprompts

Landing Page

Meridian

A dotted world map on a slowly rotating globe with self-drawing great-circle freight arcs that fade out

Ready to paste

The exact prompt.

Copy it as written, then change the content and brand details inside your coding agent.

## A. WHAT IS BEING BUILT

Build one complete, valid index.html — a single-viewport cinematic landing page for **Meridian**, global container logistics. Document title: "Meridian — Along the Shortest Arc". html lang="en". ONE file: plain HTML + one style block + one vanilla script at end of body. No build step, framework or bundler.

**Viewport rule:** at width >= 901px the page is one frame: html, body { height:100%; overflow:hidden } and .page { height:100dvh; overflow:hidden }. NO SCROLL on desktop. At width <= 900px it may scroll vertically. No horizontal overflow at 390, 768, 1440, 1920.

**Do NOT build:** no video, mp4/webm/gif, remote images, base64 blobs, CDN URLs, WebGL, Three.js, GSAP, Lottie, jQuery, Tailwind, React, audio, forms, pricing, testimonials, blog, cookie banner, scroll indicator, modals, photography, extra sections or footer content, desktop hamburger (burger <= 900px only). Google Fonts is the ONLY network request.

**The single visual idea:** ink-black cartography. A dotted world map — ~700 land dots generated at load from one lon/lat polygon table by point-in-polygon fill onto a Fibonacci sphere — turns as a globe; great-circle arcs draw themselves hub to hub, bow off the surface and fade, and the destination port pings on arrival. Over it: a bottom-left hero and a three-cell footer.

---

## B. THE BACKDROP — dot globe and arc system (counts, maths, stops, periods, budget)

All of it lives in one fixed .backdrop at inset:0, overflow:hidden, pointer-events:none.

1. **.room-bg** (z-index:0): radial-gradient(ellipse 120% 80% at 62% 44%, rgba(246,166,35,0.07) 0%, rgba(246,166,35,0.03) 34%, transparent 64%); linear-gradient(180deg, #0b0b0d 0%, #0a0a0b 46%, #08080a 100%).
2. **.halo** (z-index:1) at left:var(--gx) top:var(--gy) translate(-50%,-50%), size calc(var(--globe) * 1.5): radial-gradient(circle, rgba(246,166,35,0.16) 0%, rgba(246,166,35,0.07) 28%, rgba(246,166,35,0.02) 52%, transparent 72%); opacity 0.85; animation halo-pulse 14s ease-in-out infinite (opacity 0.68 <-> 1, scale 1 <-> 1.04).
3. **canvas#globe** (z-index:2) fixed inset:0, width/height 100%, display:block, repainted every animation frame.

**B1 — Coordinate table `LAND`:** exactly 13 polygons, `key: [[lon,lat], ...]` degrees, implicitly closed last->first, nothing past lon 179 / lat -58, no antimeridian crossing. Vertex budget + anchors (each anchor must lie in/on its polygon). Point test: ray-cast.

```
n_america 22-28   [-168,53] [-125,49] [-97,26] [-81,26] [-79,9] [-65,45]
s_america 14-18   [-81,-5] [-77,-12] [-68,-55] [-58,-35] [-35,-6] [-50,0]
africa 18-24      [-17,15] [31,31] [51,12] [40,-15] [18,-34] [12,-6] [9,4]
eurasia 34-44     [-9,39] [5,53] [12,55] [25,71] [80,74] [160,60] [122,31] [105,10] [73,19] [55,25] [35,30] [12,45] [-6,36]
australia 10-14   [114,-22] [130,-12] [145,-15] [153,-28] [138,-35]
greenland 8-10    [-45,60] [-20,70] [-25,82] [-58,82]
japan 4-6         [130,31] [141,41] [145,44]
indonesia 8-12    [95,5] [115,-8] [141,-9] [120,-2]
nz 4              [166,-46] [174,-41] [178,-38]
british_isles 5-6 [-6,50] [-5,58] [1,52]
madagascar 4      [43,-12] [50,-16] [47,-25]
iceland 4         [-24,64] [-14,65] [-22,66]
philippines 4     [120,18] [124,13] [126,7]
```

Total vertices 140-175.

**B2 — Dot field.** N = 2400 Fibonacci candidates built once: y = 1-(i+0.5)*2/N; r = sqrt(1-y*y); th = i*2.399963229728653; x = cos(th)*r; z = sin(th)*r; lon = atan2(z,x)*57.29577951308232; lat = asin(y)*57.29577951308232. Keep candidates inside any polygon: 600-780 dots (bounds 520-820). Survivors keep only their unit vector.

**B3 — Projection, rotation.** R = min(w,h)*kR, (cx, cy) = (w*fx, h*fy) from section H (defaults kR 0.39, fx 0.63, fy 0.45). Yaw phi = 0.75 + 2*PI*t/110 (one turn / 110 s, eastward). Per point: x1 = x*cos(phi)+z*sin(phi); z1 = -x*sin(phi)+z*cos(phi); tilt tau = -0.32: y2 = y*cos(tau)-z1*sin(tau); z2 = y*sin(tau)+z1*cos(tau); sx = cx+x1*R; sy = cy-y2*R; depth = z2. Cull depth <= 0. Dot alpha = (0.24+0.46*depth^1.2)*smoothstep(0, 0.22, depth). Dots: 2x2 px, rgb(230,225,216).

**B4 — Alpha buckets.** 6 levels (0.16/0.28/0.40/0.52/0.64/0.76); per level one ctx.beginPath(), ctx.rect(x,y,2,2) per dot, one ctx.fill().

**B5 — `HUBS`**, 10 [code, lon, lat]:
```
SIN 103.80 1.35    RTM 4.48 51.92    SHA 121.47 31.23   LAX -118.24 33.74
NYC -74.01 40.71   DXB 55.03 25.01   SYD 151.21 -33.86  HAM 9.99 53.55
SAV -81.14 32.08   SSZ -46.33 -23.96
```
Drawn when depth > 0.06: 3x3 px #ffd591 core plus a 4.5px ring stroked 1px rgba(246,166,35,0.55), alpha on the same smoothstep. 20 primitives max.

**B6 — `ROUTES`**, 8 [from, to, readout]:

```
SIN RTM "SIN→RTM · 5,691 nm · 14d 06h"
SHA LAX "SHA→LAX · 6,055 nm · 15d 02h"
RTM NYC "RTM→NYC · 3,274 nm · 08d 02h"
DXB SIN "DXB→SIN · 3,120 nm · 07d 19h"
SYD SHA "SYD→SHA · 4,242 nm · 10d 13h"
LAX SYD "LAX→SYD · 6,510 nm · 16d 02h"
HAM DXB "HAM→DXB · 3,038 nm · 07d 12h"
SSZ RTM "SSZ→RTM · 4,857 nm · 11d 20h"
```

Maths: unit vectors a, b; Omega = acos(clamp(dot(a,b),-1,1)); slerp p(u) = (sin((1-u)*Omega)*a + sin(u*Omega)*b)/sin(Omega); bow: scale by (1+0.16*sin(PI*u)) pre-rotation (mid-flight +16% of R, ~55 px at R = 340). 48 samples, u = j/48.

Life cycle and paint: spawn every 2.8 s in table order, max 3 live at >= 901px, 2 at <= 900px. Draw 2.4 s, head h = 1-(1-p)^3, stroke samples u <= h; fade 1.8 s at alpha 0.9 -> 0 (total 4.2 s). Samples at depth < 0.03 are culled, stroke breaks (moveTo on re-entry). Body lineWidth 1.4 rgba(246,166,35, 0.55*fade); last 6 samples lineWidth 2.2 rgba(255,213,145, 0.85*fade); head = one drawImage of the B7 sprite at 30x30 px, globalAlpha = fade, plus a 3x3 px #ffd591 core. Completion pings the destination hub: one circle stroke, radius 4 -> 14 px, alpha 0.85 -> 0 over 0.9 s, max 3 live. Spawning swaps .readout to that pair's string (250 ms opacity cross-fade).

**B7 — Glow sprite (the permitted one-time blur).** At init draw a 40x40 offscreen canvas ONCE: createRadialGradient(20,20, 0, 20,20, 20), stops rgba(255,213,145,0.85) 0%, rgba(255,196,110,0.35) 34%, rgba(255,180,80,0.10) 60%, transparent 100%; one fillRect; only drawImage afterwards. NEVER ctx.filter or ctx.shadowBlur anywhere.

**B8 — Limb ring:** one ctx.arc stroke per frame at radius R, rgba(246,166,35,0.16), lineWidth 1. **Resolution:** dpr = Math.min(window.devicePixelRatio || 1, 2); canvas.width = cssW*dpr; canvas.height = cssH*dpr; ctx.setTransform(dpr,0,0,dpr,0,0); coordinates are CSS pixels.

**B9 — Frame budget:** 6 dot fills (~700 rects), <= 20 hub primitives, <= 3 x (48-sample polyline + 1 drawImage + 1 rect), <= 3 ping arcs, 1 limb ring — under 45 draw calls, ~1300 primitives, under 2.4 ms at 1440x900. getBoundingClientRect NEVER in the loop. Sustain >= 20 frames per 1.2 s at 1440x900 headless. document.hidden: skip paint, keep loop and counter.

**B10 — .grain** (z-index:30) fixed inset:-50%, size 200%, opacity 0.04; inline SVG feTurbulence data-URI (fractalNoise, baseFrequency 0.8, numOctaves 2, stitchTiles stitch, then saturate 0), tile 160px; animation grain 0.9s steps(4) infinite among (0,0) (-2%,1%) (1%,-2%) (-1%,2%).

---

## C. THE LAYER STACK (back -> front, z-index)

1. html, body — #0a0a0b, forced twice (Failure Guards).
2. .backdrop — z-index:0, fixed inset:0, pointer-events:none, overflow:hidden; inside .room-bg 0, .halo 1.
3. canvas#globe — z-index:2 (dots, hubs, arcs, pings, limb ring).
4. .scrim — z-index:3, fixed inset:0, pointer-events:none, two gradients: linear-gradient(180deg, rgba(10,10,11,0.72) 0%, rgba(10,10,11,0.10) 30%, rgba(10,10,11,0.34) 66%, rgba(10,10,11,0.90) 100%) and linear-gradient(90deg, rgba(10,10,11,0.88) 0%, rgba(10,10,11,0.42) 30%, transparent 60%).
5. .page — z-index:10, position:relative; display:grid; grid-template-rows:auto minmax(0,1fr) auto; min-height:100dvh (height:100dvh in the desktop lock).
6. header.site-header, main.hero, footer.lane-footer — z-index:20 each.
7. .grain — z-index:30.
8. .menu (mobile, open) — fixed inset:0, z-index:40.

---

## D. TOKEN TABLE (defaults at 1440x900)

```
--bg:            #0a0a0b
--text:          #f2efe9
--text-soft:     #d6d1c7
--muted:         #96918a
--dim:           #67635d
--accent:        #f6a623
--accent-hot:    #ffd591
--accent-soft:   rgba(246,166,35,0.55)
--accent-line:   rgba(246,166,35,0.32)
--border:        rgba(242,239,233,0.16)
--border-soft:   rgba(242,239,233,0.09)
--focus:         #ffd591
--sans:          "Space Grotesk", "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif
--mono:          "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace
--logo:          15px
--logo-track:    0.26em
--nav:           13px
--nav-h:         38px
--btn:           13.5px
--btn-h:         44px
--chip-h:        30px
--eyebrow:       11px
--h1:            76px
--lead:          17px
--foot:          12px
--readout:       12.5px
--header-y:      26px
--header-x:      44px
--hero-x:        44px
--hero-bottom:   56px
--copy-max:      660px
--lead-max:      540px
--globe:         700px
--gx:            63%
--gy:            45%
--radius:        4px
--radius-sm:     3px
--focus-w:       2px
--focus-offset:  3px
--ease-out:      cubic-bezier(0.16,1,0.3,1)
--enter-dur:     0.95s
```

Fonts: Google Fonts ONLY — Space Grotesk 400;500;700, JetBrains Mono 400;500; one preconnect to fonts.gstatic.com (crossorigin), one stylesheet link with display=swap, fallbacks above.

---

## E. THE COMPOSITION — exact build order

**.page** holds <header class="site-header">, <main class="hero">, <footer class="lane-footer"> in rows auto / 1fr / auto.

**HEADER** — display:flex; align-items:center; justify-content:space-between; gap:24px; padding:var(--header-y) var(--header-x).

- a.brand (href "#", name "Meridian home"): SVG 22x22 meridian mark — circle cx11 cy11 r8.4 stroke currentColor 1.5, ellipse cx11 cy11 rx3.6 ry8.4 stroke #f6a623 1.2 — then wordmark "MERIDIAN", var(--sans), var(--logo), weight 700, letter-spacing var(--logo-track), var(--text), no underline.
- nav, exactly 4 links "Network", "Fleet", "Ports", "Signals" — href "#", var(--sans), var(--nav), weight 500, color var(--muted), flex; gap:30px; height:var(--nav-h); align-items:center.
- a.cta (href "#", text "Book a lane"): height var(--btn-h); padding 0 20px; inline-flex; align-items:center; border-radius var(--radius); var(--sans); var(--btn); weight 600; color var(--accent-hot); border 1px solid var(--accent-line); background linear-gradient(180deg, rgba(246,166,35,0.16) 0%, rgba(246,166,35,0.05) 100%).

**MAIN (hero, bottom-anchored)** — display:flex; flex-direction:column; justify-content:flex-end; align-items:flex-start; padding:0 var(--hero-x) var(--hero-bottom). Copy hugs the LEFT padding. .hero-copy: width:100%; max-width:var(--copy-max); column flex; align-items:flex-start.

1. .chip (a <p>): height var(--chip-h); padding 0 12px; inline-flex; align-items:center; border-radius var(--radius-sm); border 1px solid var(--border); background rgba(246,166,35,0.06); var(--mono) at var(--eyebrow), letter-spacing 0.22em, color var(--accent). Copy: "GLOBAL FREIGHT NETWORK".
2. h1 — EXACTLY ONE <h1>, var(--sans), weight 700, var(--h1), line-height 0.98, letter-spacing -0.035em, color var(--text), margin: 20px 0 0. Two masked lines: line 1 `We carry the world`; line 2 `along the shortest arc.` with <em>shortest arc</em> at font-style:normal; color var(--accent); text-shadow 0 0 24px rgba(246,166,35,0.35).
3. .lead — var(--sans), weight 400, var(--lead), line-height 1.55, letter-spacing -0.012em, color var(--text-soft), max-width var(--lead-max), margin: 22px 0 0. Copy: "Meridian moves 41,200 containers a week through 138 ports — great-circle routing, live vessel telemetry, customs desks everywhere."
4. .actions — display:flex; gap:12px; flex-wrap:wrap; margin-top:30px. Two anchors: .btn--primary "#" text "Get a rate"; .btn--ghost "#" text "See the network".

**FOOTER (lane bar)** — display:grid; grid-template-columns:1fr auto 1fr; align-items:center; gap:20px; padding:20px var(--header-x) 24px; border-top:1px solid var(--border-soft).

- Left, var(--mono) var(--foot) color var(--dim): "© 2026 Meridian Logistics AS".
- Centre .readout (justify-self:center): var(--mono), var(--readout), letter-spacing 0.06em, color var(--muted), white-space:nowrap, opening with <span class="pip"> (6px circle, var(--accent), box-shadow 0 0 8px var(--accent-soft), margin-right:10px, pip-pulse 1.8s infinite). Initial text = the first ROUTES readout; JS swaps in the rest, transit tail in <span class="opt">, hidden <= 560px.
- Right (justify-self:end), exactly 3 links "careers", "press", "terms" — var(--mono), var(--foot), color var(--muted), gap 22px, href "#".

---

## F. THE UI LANGUAGE

Instrument chrome: 4px radii, hairline borders, no pills.

- **.btn base:** inline-flex; align-items:center; justify-content:center; height var(--btn-h); padding 0 22px; border-radius var(--radius); var(--sans); var(--btn); weight 600; text-decoration:none; position:relative; overflow:hidden; transition transform/border-color/background/color/box-shadow 220ms var(--ease-out).
- **.btn--primary:** color #241403; border 1px solid rgba(255,213,145,0.6); background linear-gradient(180deg, #ffd591 0%, #f6a623 52%, #d9861a 100%); box-shadow 0 12px 36px rgba(246,166,35,0.20), inset 0 1px 0 rgba(255,255,255,0.55). Hover: background linear-gradient(180deg, #ffe4b5 0%, #ffb54a 48%, #e2912a 100%); translateY(-1px); box-shadow 0 16px 44px rgba(246,166,35,0.30). Active translateY(0).
- **.btn--ghost:** color var(--text-soft); border 1px solid var(--border); background rgba(242,239,233,0.035). Hover: color var(--text); border-color var(--accent-line); background rgba(246,166,35,0.08); translateY(-1px).
- **Glint** on .btn/.cta: ::after content ""; position:absolute; inset:-1px; background linear-gradient(112deg, transparent 0%, transparent 36%, rgba(255,213,145,0.22) 50%, transparent 64%, transparent 100%); transform translateX(-140%); transition transform 680ms var(--ease-out); hover translateX(140%).
- **.cta:** .btn base at padding 0 20px with the E hairline look; hover border-color var(--accent-soft); background linear-gradient(180deg, rgba(246,166,35,0.24) 0%, rgba(246,166,35,0.08) 100%); box-shadow 0 0 20px rgba(246,166,35,0.18).
- **Nav links** plain, no permanent underline; hover color var(--text) plus ::after hairline — content ""; position:absolute; left:0; right:0; bottom:-6px; height:1px; background:var(--accent); transform:scaleX(0); transform-origin:left; transition:transform 220ms var(--ease-out); hover scaleX(1).
- **Focus:** every a/button gets :focus-visible { outline: var(--focus-w) solid var(--focus); outline-offset: var(--focus-offset); border-radius: var(--radius) }. Selection: ::selection { background: rgba(246,166,35,0.30); color: #1a1005 }.

---

## G. MOTION — entrance stagger and named keyframes

Entrance: duration var(--enter-dur); fill-mode both; timing var(--ease-out); delay var(--d, 0.08s); .appear + one modifier + inline --d per element. Resting state is the final state.

Stagger table (element -> modifier -> --d):
```
brand            appear--fade   0.08s
nav links 1-4    appear--fade   0.16 / 0.24 / 0.32 / 0.40s
header cta       appear--chip   0.48s
halo             appear--open   0.10s   (duration 1.6s)
eyebrow chip     appear--pop    0.62s
h1 line 1        appear--mask   0.76s
h1 line 2        appear--mask   0.92s
lead             appear--soft   1.10s
primary button   appear--chip   1.24s
ghost button     appear--chip   1.32s
footer left      appear--fade   1.42s
readout          appear--soft   1.50s
footer right     appear--fade   1.58s
```

Named entrance keyframes (all end at opacity 1 / identity):
```
in-fade   from { opacity: 0 }                                          to { opacity: 1 }
in-soft   from { opacity: 0; transform: translateY(14px) }             to { opacity: 1; transform: none }
in-mask   from { opacity: 0; transform: translateY(108%) }             to { opacity: 1; transform: none }
in-chip   from { opacity: 0; transform: translateY(10px) scale(0.96) } to { opacity: 1; transform: none }
in-pop    0% { opacity: 0; transform: scale(0.94) }  68% { opacity: 1; transform: scale(1.03) }  100% { opacity: 1; transform: none }
in-open   from { opacity: 0; transform: scale(0.88) }                   to { opacity: 1; transform: none }
```

Continuous keyframes (globe and arcs live in the rAF loop):
```
halo-pulse   14s ease-in-out infinite  0%,100% { opacity: 0.68; transform: translate(-50%,-50%) scale(1) }  50% { opacity: 1; transform: translate(-50%,-50%) scale(1.04) }
pip-pulse    1.8s ease-in-out infinite  0%,100% { opacity: 0.35 }  50% { opacity: 1 }
grain        0.9s steps(4) infinite     translate among (0,0) (-2%,1%) (1%,-2%) (-1%,2%)
```

H1 masking: each line is <span class="line"><span class="line-inner appear appear--mask" style="--d:0.76s">…</span></span>, .line { display:block; overflow:hidden; padding: 0.06em 0.06em 0.12em }, .line-inner { display:inline-block }. Canvas periods, non-harmonic with 14/1.8/0.9 s: yaw 110 s, draw 2.4 s, fade 1.8 s, spawn 2.8 s, ping 0.9 s, readout 250 ms.

---

## H. RESPONSIVE TABLE — exact token overrides per breakpoint

Globe geometry from JS media queries: kR = R / min(w,h), fx = cx / w, fy = cy / h.

```
>= 1600px:
  --h1: 90px  --lead: 18px  --logo: 16px  --nav: 13.5px  --nav-h: 40px  --btn: 14px  --btn-h: 46px
  --foot: 12.5px  --readout: 13px  --header-y: 30px  --header-x: 56px  --hero-x: 56px
  --hero-bottom: 64px  --copy-max: 760px  --lead-max: 600px  --globe: 820px
  globe: kR 0.40  fx 0.64  fy 0.46

>= 1920px:
  --h1: 104px  --header-x: 72px  --hero-x: 72px  --hero-bottom: 72px
  --copy-max: 840px  --lead-max: 660px  --globe: 940px
  globe: kR 0.42  fx 0.66  fy 0.46

1280px – 1599px:
  --h1: 72px  --copy-max: 620px    globe: kR 0.39  fx 0.63  fy 0.45

901px – 1279px:
  --h1: 56px  --lead: 16px  --nav: 12.5px  --btn: 12.5px  --btn-h: 40px
  --header-x: 30px  --hero-x: 30px  --hero-bottom: 44px  --copy-max: 540px  --lead-max: 460px
  globe: kR 0.38  fx 0.68  fy 0.40

>= 901px AND max-height 850px:
  --h1: 56px  --lead: 16px  --chip-h: 28px  --btn-h: 40px  --header-y: 18px  --hero-bottom: 34px
  (h1 margin-top 14px, lead 16px, actions 22px)    globe: fy 0.42

>= 901px AND max-height 720px:
  --h1: 46px  --lead: 15px  --eyebrow: 10.5px  --chip-h: 26px  --btn-h: 38px  --foot: 11.5px
  --readout: 11.5px  --header-y: 14px  --hero-bottom: 24px  (footer padding 14px top, 18px bottom)
  globe: kR 0.34  fx 0.70  fy 0.38

>= 901px (desktop lock, all heights):
  html, body { height:100%; overflow:hidden }  .page { height:100dvh; overflow:hidden }

<= 900px:
  scroll allowed; nav + CTA move into a burger menu:
  - header keeps .brand + burger (aria-label "Open navigation", aria-expanded="false"; three 18x1.5px bars, gap 5px)
  - .menu { position:fixed; inset:0; z-index:40; background:rgba(10,10,11,0.94); backdrop-filter:blur(14px); display:flex; flex-direction:column; justify-content:center; padding:0 32px; gap:26px; transform:translateY(-100%); transition:transform 0.45s var(--ease-out) }  .menu.open { transform:none }
  - menu holds the 4 links at 22px plus .cta; Escape, link click, resize > 900px close it
  --h1: 46px  --header-x: 24px  --hero-x: 24px  --hero-bottom: 40px  --copy-max: 100%  --lead-max: 100%
  globe: kR 0.46  fx 0.50  fy 0.30   (candidates N = 1700, max 2 arcs)

<= 560px:
  --h1: 34px  --lead: 15px  --eyebrow: 10.5px  --foot: 11px  --readout: 11px
  --header-x: 20px  --hero-x: 20px  --hero-bottom: 32px
  footer stacks: grid-template-columns:1fr; gap 12px; text-align:left; .readout/link row justify-self:start; .opt hidden
  .actions { width:100% }  .btn { flex: 1 1 100% }
  globe: kR 0.50  fx 0.50  fy 0.26   (candidates N = 1200, max 2 arcs)
```

---

## I. FAILURE GUARDS — the page is never blank, never broken

1. **Ink-first:** the FIRST CSS rule is html, body { background:#0a0a0b !important; color:#f2efe9 }; the body tag carries style="background:#0a0a0b;color:#f2efe9"; a later rule restates html, body { background:#0a0a0b; background: var(--bg, #0a0a0b) }.
2. **Resting opacity is 1:** every .appear element's un-animated style is its final state (opacity 1, no transform); keyframes own the FROM states, fill-mode:both holds them only during the delay. If CSS animation fails or JS never runs, the page renders complete.
3. **Two-rAF entrance fallback:** after two nested requestAnimationFrame callbacks, per .appear call el.getAnimations({ subtree:false }); if none reports "running"/"finished", add .is-in to ALL .appear. No getAnimations: sweep unconditionally. .is-in forces animation:none; opacity:1; transform:none; filter:none; clip-path:none — all !important.
4. **Canvas fallback:** missing canvas or getContext("2d") -> .no-canvas on <html>, push "canvas-unavailable" into errors, static dot map on .backdrop::after: two radial-gradient dot layers (rgba(230,225,216,0.16) 0 1.5px, transparent 2px) at 150px and 210px squares, offsets 0 0 / 60px 40px. .halo (pure CSS) survives.
5. **Reduced motion:** @media (prefers-reduced-motion: reduce): *, *::before, *::after { transition:none !important; animation:none !important }, .appear/.is-in forced opacity:1; transform:none; filter:none; clip-path:none (all !important). .halo rests opacity 0.85 scale(1), .pip 1, .grain display:none. The script paints ONE static frame at t = 0 — yaw frozen at phi = 0.75, all 8 arcs at u = 1 alpha 0.55 with heads, no pings, no readout swap — then ready = true, frames stops at 1, no further rAF.
6. **Contrast floor:** h1 #f2efe9 on #0a0a0b, lead #d6d1c7 over the scrim, labels #67635d mono above 4.5:1 — never below 0.86 opacity.
7. **Zero console output:** no console calls anywhere, no thrown exceptions; every canvas and DOM call guarded (getContext, getAnimations, matchMedia).

---

## J. THE EXACT JS (only this, vanilla, one IIFE at end of body)

1. **Telemetry first:** window.__DEMO__ = { name: 'meridian', ready: false, frames: 0, effects: [], errors: [] }; push exactly these effect names once, in order: 'dot-globe', 'great-circle-arcs', 'hub-pings', 'film-grain'; then window.addEventListener('error', function (e) { window.__DEMO__.errors.push(String(e.message || e)); }).
2. **Build (once):** materialise LAND, HUBS, ROUTES; run the 2400-candidate Fibonacci loop (1700 <= 900px, 1200 <= 560px) with ray-cast point-in-polygon into a unit-vector dot array; render the 40x40 glow sprite once offscreen.
3. **Canvas loop:** cache documentElement, canvas#globe, its 2D context (null -> .no-canvas path), dots, hubs, sprite and cached { w, h, R, cx, cy } (refreshed only in resizeGlobe). Each rAF tick increments window.__DEMO__.frames by exactly 1, then paints: clear, 6 alpha-bucketed dot fills, hub markers, up to 3 arcs (slerp + 0.16*sin(PI*u) bow, culled subpaths, lead trail, one drawImage head), up to 3 pings, 1 limb ring. NEVER ctx.filter, ctx.shadowBlur or getBoundingClientRect in the loop. FIRST completed paint sets window.__DEMO__.ready = true. document.hidden: skip paint, keep loop and counter.
4. **Arc scheduler** from performance.now() deltas in the loop (no setInterval): every 2.8 s spawn the next ROUTES pair under the breakpoint cap, swap .readout text (class toggle, 250 ms opacity transition), advance each arc through 2.4 s draw + 1.8 s fade, ping the destination on completion.
5. **Resize:** resizeGlobe() is the ONLY getBoundingClientRect caller: recompute { w, h }, dpr = Math.min(window.devicePixelRatio || 1, 2), canvas.width/height = w*dpr / h*dpr, ctx.setTransform(dpr,0,0,dpr,0,0), R = min(w,h)*kR, (cx, cy) from active fx / fy, repaint. One resizeQueued boolean + requestAnimationFrame — no timers.
6. **Entrance fallback:** the two nested rAFs, the getAnimations check, the .is-in sweep (Guard 3).
7. **Mobile menu (<= 900px):** burger toggles .menu.open and aria-expanded; Escape, any menu link click, resize past 900px close it.
8. **prefers-reduced-motion:** read matchMedia('(prefers-reduced-motion: reduce)') once; if it matches, paint the one static frame of Guard 5, set ready, count that frame, schedule no further rAF, skip the scheduler.

No other JS, libraries, timers or console calls.

---

TECHNICAL CONTRACT (non-negotiable):

1. Deliver ONE single file: a complete, valid `index.html`. No build step, no bundler,
   no framework, no package install. It must open correctly by double-clicking the file
   and also over http://.
2. Vanilla only. No React, no Tailwind CDN, no GSAP, no Three.js, no jQuery, no Lottie.
   Plain HTML + CSS + modern JavaScript in <style> and <script> tags.
3. NO external media. No .mp4, no .webm, no .gif, no remote images, no base64 blobs of
   photos. Every visual must be generated procedurally with CSS gradients, SVG, or
   <canvas>. This keeps the page free to host and impossible to break with a dead link.
4. Google Fonts is the ONLY permitted network request, and it must be declared with a
   <link rel="preconnect"> plus a system-font fallback stack so the page still looks
   intentional offline. If you prefer, skip it and use a pure system stack.
5. Responsive and correct at 390x844 (phone), 768x1024 (tablet) and 1440x900 (desktop).
   No horizontal scrollbar at any of those widths. Nothing may overflow its container.
6. Accessibility: exactly one <h1>; real <header>/<main>/<footer>/<nav> landmarks; every
   interactive element is a <button> or <a> with an accessible name; visible :focus-visible
   ring; body text contrast ratio >= 4.5:1 against its background.
7. Motion safety: wrap all continuous motion in
   `@media (prefers-reduced-motion: reduce)` rules that reduce it to a static or
   near-static state. The page must remain fully readable and usable with motion off.
8. Performance: no layout thrash. Cache DOM reads, batch writes inside a single
   requestAnimationFrame loop, use transform/opacity for animation, and never allocate
   inside the hot loop. Target 60fps on a 2019 laptop. Total file under 90 KB.
9. Runtime telemetry hook (used by the automated verifier — implement it exactly):
   at the top of your script define
     window.__DEMO__ = { name: '<slug>', ready: false, frames: 0, effects: [], errors: [] };
   then set `ready = true` after the first paint of your main effect, increment
   `frames` once per animation frame inside your rAF loop, and push the name of each
   implemented effect into `effects`. Add a `window.addEventListener('error', ...)`
   handler that pushes messages into `errors`. Do not rename these fields.
10. Zero console output in the happy path. No console.log left behind. No uncaught
    exceptions, no failed network requests.

RESPONSE FORMAT:
Return ONLY the raw HTML inside a single ```html fenced code block. No explanation, no
preamble, no commentary before or after the fence. The file must be complete and
immediately runnable — never truncate, never write "// rest of code here".

Keep exploring

Similar prompts

View the full library →