Museum — Science / Discovery Center Landing
A bright, energetic marketing landing for a fictional science and discovery center. A playful hero pairs an animated orbiting solar system with bold calls to action and at-a-glance stats, followed by a filterable grid of hands-on exhibit zones, planetarium and IMAX showtimes with reservable seats and sold-out states, a school field-trip request form with a live cost estimator, and a visit panel with ticket pricing. Built in vanilla HTML, CSS, and JavaScript with a white, electric-blue, and lime palette.
MCP
Code
:root {
--white: #ffffff;
--bg: #f3f8ff;
--ink: #11203a;
--ink-2: #45526b;
--muted: #7a8699;
--blue: #1d6fff;
--blue-d: #1559d6;
--blue-50: #e7f0ff;
--lime: #9bd62b;
--lime-d: #7cb50f;
--lime-50: #f1fbdc;
--line: rgba(17, 32, 58, 0.10);
--line-2: rgba(17, 32, 58, 0.18);
--ok: #16a874;
--warn: #f0a020;
--danger: #e44848;
--r-sm: 10px;
--r-md: 16px;
--r-lg: 26px;
--sh-1: 0 2px 10px rgba(17, 32, 58, 0.06);
--sh-2: 0 14px 34px rgba(17, 32, 58, 0.12);
--sh-blue: 0 12px 28px rgba(29, 111, 255, 0.30);
--serif: "Baloo 2", system-ui, sans-serif;
--sans: "Nunito", system-ui, -apple-system, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
margin: 0;
font-family: var(--sans);
color: var(--ink);
background: var(--bg);
line-height: 1.55;
-webkit-font-smoothing: antialiased;
text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
.wrap { width: min(1140px, 92vw); margin-inline: auto; }
.skip-link {
position: absolute; left: 12px; top: -60px; z-index: 100;
background: var(--blue); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; border-radius: 6px; }
/* ---------- Buttons ---------- */
.btn {
font-family: var(--sans); font-weight: 800; font-size: .95rem;
border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer;
display: inline-flex; align-items: center; justify-content: center; gap: 8px;
transition: transform .12s, box-shadow .18s, background .18s, color .18s;
white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--lg { padding: 14px 26px; font-size: 1.02rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--sh-blue); }
.btn--primary:hover { background: var(--blue-d); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line-2); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn--soft { background: var(--blue-50); color: var(--blue-d); padding: 9px 16px; font-size: .88rem; }
.btn--soft:hover { background: var(--blue); color: #fff; }
/* ---------- Topbar ---------- */
.topbar {
position: sticky; top: 0; z-index: 50;
background: rgba(255, 255, 255, 0.86);
backdrop-filter: blur(10px);
border-bottom: 1px solid var(--line);
transition: box-shadow .25s;
}
.topbar.is-stuck { box-shadow: var(--sh-1); }
.topbar__inner { display: flex; align-items: center; gap: 22px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { display: grid; place-items: center; }
.brand__name { font-family: var(--serif); font-weight: 800; font-size: 1.5rem; letter-spacing: -0.02em; }
.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--ink-2); font-size: .95rem; transition: background .15s, color .15s; }
.nav a:hover { background: var(--blue-50); color: var(--blue-d); }
.topbar__cta { display: flex; gap: 10px; }
/* ---------- Hero ---------- */
.hero {
position: relative; overflow: hidden;
background:
radial-gradient(120% 90% at 88% -10%, rgba(155, 214, 43, 0.28), transparent 55%),
radial-gradient(120% 100% at -5% 0%, rgba(29, 111, 255, 0.16), transparent 50%),
var(--white);
border-bottom: 1px solid var(--line);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center; padding: 64px 0 72px; }
.hero__title { font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 800; }
.spark { color: var(--blue); position: relative; }
.spark::after { content: "✦"; color: var(--lime); font-size: .5em; position: absolute; top: -.2em; right: -.6em; }
.hero__lead { margin-top: 18px; font-size: 1.16rem; color: var(--ink-2); max-width: 36ch; }
.hero__actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.pill {
display: inline-flex; align-items: center; gap: 8px;
font-weight: 800; font-size: .8rem; letter-spacing: .02em;
padding: 7px 14px; border-radius: 999px; text-transform: uppercase;
}
.pill--lime { background: var(--lime-50); color: var(--lime-d); border: 1.5px solid rgba(124, 181, 15, .35); }
.pill--lime::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime-d); box-shadow: 0 0 0 4px rgba(124,181,15,.2); animation: pulse 1.8s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(124,181,15,0); } }
.stats { display: flex; gap: 30px; margin: 34px 0 0; padding-top: 24px; border-top: 1px dashed var(--line-2); }
.stat dt { font-family: var(--serif); font-weight: 800; font-size: 1.7rem; color: var(--blue); }
.stat dd { margin: 0; font-size: .86rem; color: var(--muted); font-weight: 700; }
/* hero art */
.hero__art { position: relative; aspect-ratio: 1 / 1; display: grid; place-items: center; }
.orbit { position: relative; width: 78%; aspect-ratio: 1; }
.orbit__sun {
position: absolute; inset: 0; margin: auto; width: 34%; aspect-ratio: 1; border-radius: 50%;
background: radial-gradient(circle at 35% 30%, #ffe08a, #ff9b2f 60%, #ff7a1a);
box-shadow: 0 0 60px rgba(255, 155, 47, .55);
animation: bob 5s ease-in-out infinite;
}
.orbit__ring { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 2px dashed rgba(29, 111, 255, .25); }
.orbit__ring i {
position: absolute; top: -7px; left: 50%; width: 16px; height: 16px; margin-left: -8px; border-radius: 50%;
}
.orbit__ring--1 { width: 60%; aspect-ratio: 1; animation: spin 9s linear infinite; }
.orbit__ring--1 i { background: var(--blue); box-shadow: 0 0 0 4px rgba(29,111,255,.18); }
.orbit__ring--2 { width: 82%; aspect-ratio: 1; animation: spin 14s linear infinite reverse; border-color: rgba(155,214,43,.4); }
.orbit__ring--2 i { background: var(--lime-d); box-shadow: 0 0 0 4px rgba(124,181,15,.2); }
.orbit__ring--3 { width: 100%; aspect-ratio: 1; animation: spin 20s linear infinite; }
.orbit__ring--3 i { background: #ff5d8f; width: 12px; height: 12px; margin-left: -6px; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.hero__chip {
position: absolute; background: var(--white); border: 1.5px solid var(--line);
box-shadow: var(--sh-2); border-radius: var(--r-sm); padding: 9px 14px;
font-weight: 800; font-size: .85rem;
}
.hero__chip--a { top: 8%; left: -4%; color: var(--blue-d); animation: float 4s ease-in-out infinite; }
.hero__chip--b { bottom: 10%; right: -4%; color: var(--lime-d); animation: float 4s ease-in-out infinite .8s; }
@keyframes float { 50% { transform: translateY(-7px); } }
/* ---------- Ticker ---------- */
.ticker { background: var(--blue); color: #fff; overflow: hidden; border-top: 4px solid var(--lime); }
.ticker__track { display: flex; width: max-content; animation: marquee 26s linear infinite; }
.ticker__track span { padding: 13px 0; font-weight: 800; letter-spacing: .04em; white-space: nowrap; padding-inline: 1.4rem; font-size: .95rem; }
@keyframes marquee { to { transform: translateX(-50%); } }
/* ---------- Sections ---------- */
.section { padding: 72px 0; }
.section--alt { background: var(--white); border-block: 1px solid var(--line); }
.section__head { max-width: 620px; margin-bottom: 36px; }
.eyebrow { display: inline-block; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; color: var(--blue); margin-bottom: 10px; }
.eyebrow--on-blue { color: var(--lime); }
.section__head h2 { font-size: clamp(1.8rem, 3.4vw, 2.7rem); font-weight: 800; }
.section__sub { margin-top: 12px; color: var(--ink-2); font-size: 1.06rem; }
/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.chip {
font-family: var(--sans); font-weight: 800; font-size: .9rem;
padding: 9px 18px; border-radius: 999px; cursor: pointer;
background: var(--white); color: var(--ink-2); border: 2px solid var(--line-2);
transition: all .15s;
}
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
/* ---------- Zones ---------- */
.zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.zone {
background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-md); overflow: hidden;
box-shadow: var(--sh-1); transition: transform .18s, box-shadow .18s, border-color .18s;
display: flex; flex-direction: column;
}
.zone:hover { transform: translateY(-5px); box-shadow: var(--sh-2); border-color: transparent; }
.zone.is-hidden { display: none; }
.zone__art {
height: 130px; display: grid; place-items: center;
background: linear-gradient(135deg, var(--c1), var(--c2));
position: relative;
}
.zone__art::after {
content: ""; position: absolute; inset: 0;
background: radial-gradient(circle at 80% 20%, rgba(255,255,255,.35), transparent 45%);
}
.zone__art--dark .zone__emoji { filter: drop-shadow(0 2px 6px rgba(0,0,0,.3)); }
.zone__emoji { font-size: 3.2rem; line-height: 1; position: relative; z-index: 1; transition: transform .2s; }
.zone:hover .zone__emoji { transform: scale(1.12) rotate(-6deg); }
.zone__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.zone__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.zone__floor { font-size: .76rem; font-weight: 800; color: var(--muted); }
.zone h3 { font-size: 1.22rem; font-weight: 700; }
.zone p { color: var(--ink-2); font-size: .92rem; }
.zone__more { align-self: flex-start; margin-top: auto; }
.badge {
display: inline-flex; align-items: center; font-weight: 800; font-size: .72rem;
text-transform: uppercase; letter-spacing: .04em; padding: 4px 10px; border-radius: 999px;
}
.badge--blue { background: var(--blue-50); color: var(--blue-d); }
.badge--lime { background: var(--lime-50); color: var(--lime-d); }
.zones__empty { text-align: center; color: var(--muted); font-weight: 700; padding: 40px 0; }
/* ---------- Shows ---------- */
.shows { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.showcard {
background: var(--bg); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 22px;
display: flex; flex-direction: column; gap: 10px;
}
.showcard__top { display: flex; align-items: center; justify-content: space-between; }
.showcard__run { font-weight: 800; font-size: .82rem; color: var(--muted); }
.showcard h3 { font-size: 1.3rem; font-weight: 700; }
.showcard p { color: var(--ink-2); font-size: .92rem; }
.times { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.time {
font-family: var(--sans); font-weight: 800; font-size: .88rem;
padding: 7px 13px; border-radius: 999px; cursor: pointer;
background: var(--white); color: var(--ink); border: 2px solid var(--line-2);
transition: all .14s;
}
.time:hover { border-color: var(--blue); color: var(--blue); }
.time.is-picked { background: var(--lime); border-color: var(--lime-d); color: #1a2b00; }
.time.is-soldout { opacity: .45; cursor: not-allowed; text-decoration: line-through; }
.shows__note { margin-top: 22px; font-weight: 700; color: var(--ink-2); }
/* ---------- Field trips ---------- */
.trips { background: var(--ink); color: #fff; border-radius: 0; }
.trips__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 44px; align-items: center; }
.trips__copy h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 800; margin-bottom: 12px; }
.trips__copy p { color: #c4cee0; font-size: 1.05rem; }
.ticks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 30px; font-weight: 700; color: #e6ecf6; }
.ticks li::before {
content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px;
background: var(--lime); color: #1a2b00; border-radius: 50%; display: grid; place-items: center;
font-size: .7rem; font-weight: 900;
}
.card { background: var(--white); color: var(--ink); border-radius: var(--r-md); box-shadow: var(--sh-2); }
.trip-form { padding: 26px; }
.trip-form h3 { font-size: 1.4rem; font-weight: 700; margin-bottom: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label { font-weight: 800; font-size: .85rem; color: var(--ink-2); }
.field input, .field select {
font-family: var(--sans); font-size: 1rem; font-weight: 600;
padding: 11px 13px; border-radius: var(--r-sm); border: 2px solid var(--line-2); background: var(--white);
transition: border-color .15s;
}
.field input:focus, .field select:focus { outline: none; border-color: var(--blue); }
.field input.is-invalid { border-color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.trip-form__est { font-weight: 700; color: var(--ink-2); margin: 6px 0 16px; }
.trip-form__est strong { color: var(--blue); font-size: 1.15rem; }
/* ---------- Visit ---------- */
.visit { display: grid; grid-template-columns: 1.2fr 1fr; gap: 22px; align-items: start; }
.visit__card { padding: 26px; }
.visit__card h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.info { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.info li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info li:last-child { border-bottom: 0; }
.info span { color: var(--muted); font-weight: 700; }
.info strong { text-align: right; }
.visit__card--cta { background: linear-gradient(160deg, var(--blue-50), var(--white)); border: 1.5px solid rgba(29,111,255,.2); }
.prices { display: flex; flex-wrap: wrap; gap: 18px; margin: 14px 0 18px; }
.prices span { font-weight: 700; color: var(--ink-2); font-size: .95rem; }
.prices b { font-family: var(--serif); font-size: 1.5rem; color: var(--ink); display: block; }
/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #c4cee0; padding: 48px 0 28px; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand .brand__name { color: #fff; }
.footer__brand p { margin-top: 6px; font-size: .9rem; }
.footer__cols { display: flex; gap: 56px; }
.footer__cols h4 { color: #fff; font-size: .95rem; margin-bottom: 12px; font-weight: 800; }
.footer__cols a { display: block; padding: 5px 0; font-size: .92rem; font-weight: 600; transition: color .15s; }
.footer__cols a:hover { color: var(--lime); }
.footer__fine { margin-top: 32px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); font-size: .82rem; color: #8a96ab; }
/* ---------- Toast ---------- */
.toast {
position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 140%);
background: var(--ink); color: #fff; font-weight: 700; font-size: .95rem;
padding: 13px 22px; border-radius: 999px; box-shadow: var(--sh-2); z-index: 90;
transition: transform .3s cubic-bezier(.2,.9,.3,1.2); max-width: 90vw; text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }
.toast::before { content: "✦ "; color: var(--lime); }
/* ---------- Responsive ---------- */
@media (max-width: 920px) {
.hero__inner { grid-template-columns: 1fr; gap: 24px; }
.hero__art { max-width: 420px; margin: 0 auto; }
.trips__inner, .visit { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
.nav { display: none; }
}
@media (max-width: 520px) {
.topbar__inner { height: 62px; gap: 12px; }
.topbar__cta .btn--ghost { display: none; }
.brand__name { font-size: 1.3rem; }
.hero__inner { padding: 40px 0 48px; }
.hero__chip { display: none; }
.stats { gap: 18px; flex-wrap: wrap; }
.stat dt { font-size: 1.4rem; }
.section { padding: 52px 0; }
.field-row { grid-template-columns: 1fr; }
.footer__cols { gap: 32px; }
.prices { gap: 14px; }
}(function () {
"use strict";
/* ---------- Toast helper ---------- */
var toastEl = document.getElementById("toast");
var toastTimer;
function toast(msg) {
if (!toastEl) return;
toastEl.textContent = msg;
toastEl.classList.add("is-on");
clearTimeout(toastTimer);
toastTimer = setTimeout(function () {
toastEl.classList.remove("is-on");
}, 2600);
}
/* ---------- Sticky topbar shadow ---------- */
var topbar = document.getElementById("topbar");
function onScroll() {
if (!topbar) return;
topbar.classList.toggle("is-stuck", window.scrollY > 8);
}
window.addEventListener("scroll", onScroll, { passive: true });
onScroll();
/* ---------- Generic CTA + toast triggers ---------- */
document.querySelectorAll("[data-buy]").forEach(function (btn) {
btn.addEventListener("click", function () {
toast("Tickets open in a new window — demo only.");
});
});
document.querySelectorAll("[data-toast]").forEach(function (el) {
el.addEventListener("click", function (e) {
if (el.tagName === "A") e.preventDefault();
toast(el.getAttribute("data-toast"));
});
});
/* ---------- Exhibit zone filtering ---------- */
var chips = document.querySelectorAll(".filters .chip");
var zones = Array.prototype.slice.call(document.querySelectorAll(".zone"));
var emptyMsg = document.getElementById("zonesEmpty");
function applyFilter(cat) {
var shown = 0;
zones.forEach(function (z) {
var match = cat === "all" || z.getAttribute("data-cat") === cat;
z.classList.toggle("is-hidden", !match);
if (match) shown++;
});
if (emptyMsg) emptyMsg.hidden = shown !== 0;
}
chips.forEach(function (chip) {
chip.addEventListener("click", function () {
chips.forEach(function (c) {
c.classList.remove("is-active");
c.setAttribute("aria-selected", "false");
});
chip.classList.add("is-active");
chip.setAttribute("aria-selected", "true");
applyFilter(chip.getAttribute("data-filter"));
});
});
/* ---------- "Add to plan" buttons ---------- */
var planned = 0;
document.querySelectorAll(".zone__more").forEach(function (btn) {
btn.addEventListener("click", function () {
if (btn.dataset.added) {
btn.dataset.added = "";
btn.textContent = "Add to plan";
planned = Math.max(0, planned - 1);
} else {
btn.dataset.added = "1";
btn.textContent = "✓ Added";
planned++;
}
var name = btn.closest(".zone").querySelector("h3").textContent;
toast(btn.dataset.added
? name + " added — " + planned + " zone" + (planned === 1 ? "" : "s") + " in your plan"
: name + " removed from your plan");
});
});
/* ---------- Showtimes ---------- */
var showData = {
"Worlds Beyond": ["10:30", "12:00", "2:30", "4:00"],
"Coral Reefs": ["11:15", "1:45", "3:15", "5:00"],
"Sky Tonight": ["1:00", "3:30", "5:30"]
};
var soldOut = { "Worlds Beyond": "10:30", "Coral Reefs": "11:15" };
var showNote = document.getElementById("showNote");
document.querySelectorAll(".times").forEach(function (box) {
var show = box.getAttribute("data-show");
(showData[show] || []).forEach(function (t) {
var b = document.createElement("button");
b.type = "button";
b.className = "time";
b.textContent = t;
if (soldOut[show] === t) {
b.classList.add("is-soldout");
b.disabled = true;
b.setAttribute("aria-label", show + " at " + t + " sold out");
} else {
b.addEventListener("click", function () {
box.querySelectorAll(".time").forEach(function (x) { x.classList.remove("is-picked"); });
b.classList.add("is-picked");
if (showNote) showNote.textContent = "Reserved: " + show + " at " + t + ". See you there!";
toast("Seat held for " + show + " · " + t);
});
}
box.appendChild(b);
});
});
/* ---------- Show date label ---------- */
var showDate = document.getElementById("showDate");
if (showDate) {
showDate.textContent = new Date().toLocaleDateString(undefined, {
weekday: "long", month: "long", day: "numeric"
});
}
/* ---------- Field-trip cost estimator ---------- */
var form = document.getElementById("tripForm");
var countEl = document.getElementById("count");
var estEl = document.getElementById("tripEst");
var schoolEl = document.getElementById("school");
var dateEl = document.getElementById("date");
var PER_STUDENT = 8;
function recalc() {
var n = parseInt(countEl.value, 10);
if (isNaN(n) || n < 0) n = 0;
estEl.textContent = "$" + (n * PER_STUDENT).toLocaleString();
}
if (countEl) countEl.addEventListener("input", recalc);
recalc();
// sensible default date: 6 weeks out
if (dateEl && !dateEl.value) {
var d = new Date();
d.setDate(d.getDate() + 42);
dateEl.min = new Date().toISOString().split("T")[0];
dateEl.value = d.toISOString().split("T")[0];
}
if (form) {
form.addEventListener("submit", function (e) {
e.preventDefault();
var ok = true;
[schoolEl, dateEl].forEach(function (f) {
var bad = !f.value.trim();
f.classList.toggle("is-invalid", bad);
if (bad) ok = false;
});
if (!ok) {
toast("Add a school name and a date to request your trip.");
return;
}
toast("Request sent for " + schoolEl.value.trim() + " — we'll confirm within 2 days!");
form.reset();
recalc();
});
[schoolEl, dateEl].forEach(function (f) {
f && f.addEventListener("input", function () { f.classList.remove("is-invalid"); });
});
}
})();<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Lumara Science & Discovery Center</title>
<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=Baloo+2:wght@500;600;700;800&family=Nunito:wght@400;600;700;800&display=swap" rel="stylesheet" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<a class="skip-link" href="#main">Skip to content</a>
<header class="topbar" id="topbar">
<div class="wrap topbar__inner">
<a class="brand" href="#top" aria-label="Lumara Science and Discovery Center home">
<span class="brand__mark" aria-hidden="true">
<svg viewBox="0 0 32 32" width="32" height="32"><circle cx="16" cy="16" r="6" fill="#1d6fff"/><g stroke="#9bd62b" stroke-width="2.4" fill="none"><ellipse cx="16" cy="16" rx="14" ry="6"/><ellipse cx="16" cy="16" rx="14" ry="6" transform="rotate(60 16 16)"/><ellipse cx="16" cy="16" rx="14" ry="6" transform="rotate(120 16 16)"/></g></svg>
</span>
<span class="brand__name">Lumara</span>
</a>
<nav class="nav" aria-label="Primary">
<a href="#exhibits">Exhibits</a>
<a href="#shows">Shows</a>
<a href="#trips">Field Trips</a>
<a href="#visit">Visit</a>
</nav>
<div class="topbar__cta">
<button class="btn btn--ghost" type="button" data-toast="Members get early access every Saturday!">Members</button>
<button class="btn btn--primary" type="button" data-buy>Buy Tickets</button>
</div>
</div>
</header>
<main id="main">
<!-- HERO -->
<section class="hero" id="top">
<div class="wrap hero__inner">
<div class="hero__copy">
<span class="pill pill--lime">Now open · Building B reopened</span>
<h1 class="hero__title">Curiosity<br/>has a <span class="spark">home</span>.</h1>
<p class="hero__lead">Three floors of hands-on experiments, a 60-foot dome planetarium, and a giant-screen IMAX. Touch lightning, launch a rocket, meet a robot — discovery is a contact sport here.</p>
<div class="hero__actions">
<button class="btn btn--primary btn--lg" type="button" data-buy>Plan your visit</button>
<a class="btn btn--ghost btn--lg" href="#exhibits">Explore exhibits</a>
</div>
<dl class="stats" aria-label="Center at a glance">
<div class="stat"><dt>250+</dt><dd>hands-on exhibits</dd></div>
<div class="stat"><dt>9am–6pm</dt><dd>open daily</dd></div>
<div class="stat"><dt>4.9★</dt><dd>14k visitor reviews</dd></div>
</dl>
</div>
<div class="hero__art" aria-hidden="true">
<div class="orbit">
<span class="orbit__sun"></span>
<span class="orbit__ring orbit__ring--1"><i></i></span>
<span class="orbit__ring orbit__ring--2"><i></i></span>
<span class="orbit__ring orbit__ring--3"><i></i></span>
</div>
<div class="hero__chip hero__chip--a">⚡ Tesla Coil live at 2:00</div>
<div class="hero__chip hero__chip--b">🚀 Rocket lab · Floor 3</div>
</div>
</div>
</section>
<!-- TICKER -->
<div class="ticker" aria-hidden="true">
<div class="ticker__track">
<span>★ Gravity Drop ★ Plasma Globe ★ Maker Lab ★ Tide Pool ★ Robotics Arena ★ Dino Dig ★ Mirror Maze ★ Bubble Wall ★</span>
<span>★ Gravity Drop ★ Plasma Globe ★ Maker Lab ★ Tide Pool ★ Robotics Arena ★ Dino Dig ★ Mirror Maze ★ Bubble Wall ★</span>
</div>
</div>
<!-- EXHIBIT ZONES -->
<section class="section" id="exhibits">
<div class="wrap">
<header class="section__head">
<span class="eyebrow">Interactive zones</span>
<h2>Pick a zone and dive in</h2>
<p class="section__sub">Filter by what your crew is into. Every zone is hands-on, no glass cases.</p>
</header>
<div class="filters" role="tablist" aria-label="Filter exhibit zones">
<button class="chip is-active" role="tab" aria-selected="true" data-filter="all">All</button>
<button class="chip" role="tab" aria-selected="false" data-filter="physics">Physics</button>
<button class="chip" role="tab" aria-selected="false" data-filter="life">Life & Earth</button>
<button class="chip" role="tab" aria-selected="false" data-filter="tech">Tech & Robotics</button>
<button class="chip" role="tab" aria-selected="false" data-filter="littles">Little Ones</button>
</div>
<div class="zones" id="zonesGrid">
<article class="zone" data-cat="physics" style="--c1:#1d6fff;--c2:#5b9bff">
<div class="zone__art"><span class="zone__emoji">⚡</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--lime">Live demos</span><span class="zone__floor">Floor 2 · EX-204</span></div>
<h3>Voltage & Lightning</h3>
<p>Touch a 1.2-million-volt Tesla coil cage, build circuits, and make your hair stand on end at the Van de Graaff.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="tech" style="--c1:#9bd62b;--c2:#c4ec6f">
<div class="zone__art zone__art--dark"><span class="zone__emoji">🤖</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--blue">New</span><span class="zone__floor">Floor 3 · EX-318</span></div>
<h3>Robotics Arena</h3>
<p>Program a swarm bot, battle in the sumo ring, and teach a robot arm to stack blocks faster than you can.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="life" style="--c1:#16a874;--c2:#5fd3a3">
<div class="zone__art"><span class="zone__emoji">🐙</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--lime">Touch tank</span><span class="zone__floor">Floor 1 · EX-112</span></div>
<h3>Tide Pool Lab</h3>
<p>Meet sea stars, hermit crabs, and a giant Pacific octopus. Feedings at 11:00 and 3:30 daily.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="physics" style="--c1:#ff8a3d;--c2:#ffb27a">
<div class="zone__art"><span class="zone__emoji">🪂</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--blue">Thrill</span><span class="zone__floor">Floor 2 · EX-221</span></div>
<h3>Gravity Drop</h3>
<p>Race a feather and a bowling ball in a 24-foot vacuum tube, then free-fall a sandbag down the spiral ramp.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="life" style="--c1:#7c5cff;--c2:#a98dff">
<div class="zone__art zone__art--dark"><span class="zone__emoji">🦖</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--lime">Dig pit</span><span class="zone__floor">Floor 1 · EX-130</span></div>
<h3>Dino Dig & Fossils</h3>
<p>Excavate a 40-foot Argentinosaurus cast, brush real ammonites, and date a rock layer like a paleontologist.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="littles" style="--c1:#ff5d8f;--c2:#ff97b6">
<div class="zone__art"><span class="zone__emoji">🫧</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--blue">Ages 2–6</span><span class="zone__floor">Floor 1 · EX-104</span></div>
<h3>Bubble & Water Play</h3>
<p>A soft-floor sandbox of giant bubbles, water dams, and a wind tunnel built for the smallest scientists.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="tech" style="--c1:#1d6fff;--c2:#54c1ff">
<div class="zone__art zone__art--dark"><span class="zone__emoji">🛠️</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--lime">Maker</span><span class="zone__floor">Floor 3 · EX-340</span></div>
<h3>Maker Lab</h3>
<p>Laser-cut a keychain, solder a blinking badge, and 3D-print your design to take home (small fee).</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
<article class="zone" data-cat="littles" style="--c1:#f4b400;--c2:#ffd34d">
<div class="zone__art"><span class="zone__emoji">🪞</span></div>
<div class="zone__body">
<div class="zone__row"><span class="badge badge--blue">Sensory</span><span class="zone__floor">Floor 2 · EX-210</span></div>
<h3>Mirror Maze & Light</h3>
<p>Get lost in an infinite mirror maze, bend laser beams, and paint with shadow walls that freeze your pose.</p>
<button class="zone__more btn btn--soft" type="button">Add to plan</button>
</div>
</article>
</div>
<p class="zones__empty" id="zonesEmpty" hidden>No zones in this category yet — try another filter.</p>
</div>
</section>
<!-- SHOWTIMES -->
<section class="section section--alt" id="shows">
<div class="wrap">
<header class="section__head">
<span class="eyebrow">Dome + giant screen</span>
<h2>Planetarium & IMAX showtimes</h2>
<p class="section__sub">Showtimes for <strong id="showDate">today</strong>. Seats reserved with any ticket — first come, first served.</p>
</header>
<div class="shows">
<article class="showcard">
<div class="showcard__top">
<span class="badge badge--blue">Planetarium</span>
<span class="showcard__run">38 min</span>
</div>
<h3>Worlds Beyond: The Outer Planets</h3>
<p>A full-dome flight past the ice giants, narrated live by our astronomers.</p>
<div class="times" data-show="Worlds Beyond"></div>
</article>
<article class="showcard">
<div class="showcard__top">
<span class="badge badge--lime">IMAX</span>
<span class="showcard__run">45 min</span>
</div>
<h3>Coral Reefs in 3D</h3>
<p>Dive the Great Barrier Reef on a screen six stories tall. Glasses included.</p>
<div class="times" data-show="Coral Reefs"></div>
</article>
<article class="showcard">
<div class="showcard__top">
<span class="badge badge--blue">Planetarium</span>
<span class="showcard__run">30 min</span>
</div>
<h3>Sky Tonight (Live)</h3>
<p>What's overhead this evening — constellations, planets, and the next eclipse.</p>
<div class="times" data-show="Sky Tonight"></div>
</article>
</div>
<p class="shows__note" id="showNote" aria-live="polite">Tap a time to reserve a seat.</p>
</div>
</section>
<!-- FIELD TRIPS -->
<section class="section trips" id="trips">
<div class="wrap trips__inner">
<div class="trips__copy">
<span class="eyebrow eyebrow--on-blue">For schools & groups</span>
<h2>Field trips that kids actually remember</h2>
<p>Standards-aligned programs for grades K–12, free educator preview passes, and a lunchroom that fits 200. Book six weeks ahead and we'll tailor the day to your curriculum.</p>
<ul class="ticks">
<li>Self-guided or facilitated lab sessions</li>
<li>$8 per student · 1 free chaperone per 6</li>
<li>Pre-visit activity kits mailed to your class</li>
</ul>
</div>
<form class="trip-form card" id="tripForm" novalidate>
<h3>Request a trip date</h3>
<div class="field">
<label for="school">School / group</label>
<input id="school" name="school" type="text" placeholder="Maple Grove Elementary" required />
</div>
<div class="field-row">
<div class="field">
<label for="grade">Grade</label>
<select id="grade" name="grade">
<option>K–2</option><option>3–5</option><option>6–8</option><option>9–12</option>
</select>
</div>
<div class="field">
<label for="count">Students</label>
<input id="count" name="count" type="number" min="5" max="300" value="60" />
</div>
</div>
<div class="field">
<label for="date">Preferred date</label>
<input id="date" name="date" type="date" required />
</div>
<p class="trip-form__est">Estimated cost: <strong id="tripEst">$480</strong></p>
<button class="btn btn--primary btn--block" type="submit">Request date</button>
</form>
</div>
</section>
<!-- VISIT / CTA -->
<section class="section section--alt" id="visit">
<div class="wrap visit">
<article class="card visit__card">
<h3>Plan your visit</h3>
<ul class="info">
<li><span>Hours</span><strong>Daily · 9:00 am – 6:00 pm</strong></li>
<li><span>Address</span><strong>410 Aurora Pier, Bayfront District</strong></li>
<li><span>Parking</span><strong>$6 flat · free for members</strong></li>
<li><span>Access</span><strong>Step-free · sensory hours Tue 9–10</strong></li>
</ul>
</article>
<article class="card visit__card visit__card--cta">
<span class="badge badge--lime">Save 15% online</span>
<h3>Tickets</h3>
<p class="prices">
<span><b>$24</b> Adult</span>
<span><b>$16</b> Child 3–12</span>
<span><b>$0</b> Under 3</span>
</p>
<button class="btn btn--primary btn--block btn--lg" type="button" data-buy>Buy tickets</button>
<button class="btn btn--ghost btn--block" type="button" data-toast="Membership starts at $95/yr — unlimited visits + dome shows.">See membership</button>
</article>
</div>
</section>
</main>
<footer class="footer">
<div class="wrap footer__inner">
<div class="footer__brand">
<span class="brand__name">Lumara</span>
<p>Science & Discovery Center · Bayfront District</p>
</div>
<nav class="footer__cols" aria-label="Footer">
<div><h4>Visit</h4><a href="#visit">Hours & tickets</a><a href="#shows">Showtimes</a><a href="#trips">Field trips</a></div>
<div><h4>Connect</h4><a href="#" data-toast="Newsletter signup coming soon!">Newsletter</a><a href="#" data-toast="Volunteer applications open in fall.">Volunteer</a><a href="#" data-toast="Press kit available on request.">Press</a></div>
</nav>
</div>
<p class="footer__fine">© 2026 Lumara Science Center · Demo UI. Fictional institution.</p>
</footer>
<div class="toast" id="toast" role="status" aria-live="polite"></div>
<script src="script.js"></script>
</body>
</html>Science / Discovery Center Landing
A full marketing landing page for the fictional Lumara Science & Discovery Center, built in a playful, hands-on tone. The hero leads with an animated CSS solar-system orbit, a pulsing “now open” pill, big punchy headline, and a stat strip, all over a soft blue-and-lime gradient. A scrolling marquee of exhibit names bridges into the body. Everything is rendered with CSS gradients, inline SVG, and emoji — no external image hosts.
The page is genuinely interactive in vanilla JavaScript. The exhibit-zone grid filters by category (Physics, Life & Earth, Tech & Robotics, Little Ones) through pressable chips with an empty state, and each card has an “Add to plan” toggle that keeps a running count. Planetarium and IMAX showtimes are generated from data, with reservable time pills, a single-selection highlight, and disabled sold-out slots. A school field-trip form validates required fields, recalculates an estimated cost live as the student count changes, and defaults the date six weeks out. A small toast helper confirms actions throughout.
The layout uses generous whitespace and bold rounded cards, is responsive down to roughly 360px with a dedicated mobile breakpoint, and is keyboard-usable with visible focus rings, ARIA roles on the filter tabs, and a live region for the showtimes note. Artifacts — exhibit names, floor and catalog numbers, showtimes, dates, and pricing — are fictional but plausible.
Illustrative UI only — demo data; not a real museum system.