/* Radius system: pills for nav + buttons, 24px for panels, 16px for inner tiles. */
:root {
  --bg: #0a0e17;
  --bg-2: #0f1522;
  --panel: rgb(255 255 255 / .035);
  --panel-border: rgb(255 255 255 / .08);
  --ink: #f1f3f8;
  --body: #b9c1d3;
  --muted: #8c96ab;
  --hairline: #1e2738;
  --accent: #7b96ff;
  --accent-press: #9aafff;
  --on-accent: #0a0e17;
  --accent-glow: rgb(123 150 255 / .16);
  --strand-b: #e9edf6;
  --rung: #3a4766;
  --label: #e9edf6;
  --shadow: 0 30px 80px rgb(0 0 0 / .45);
  --r-pill: 999px;
  --r-panel: 24px;
  --r-tile: 16px;
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark light;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f4f6fb;
    --bg-2: #eaeef7;
    --panel: rgb(255 255 255 / .7);
    --panel-border: rgb(13 19 34 / .08);
    --ink: #0d1322;
    --body: #3b4458;
    --muted: #586277;
    --hairline: #d6dcea;
    --accent: #2f4fe0;
    --accent-press: #2140c4;
    --on-accent: #f8f9ff;
    --accent-glow: rgb(47 79 224 / .12);
    --strand-b: #1a2340;
    --rung: #aab6d4;
    --label: #ffffff;
    --shadow: 0 30px 80px rgb(25 40 90 / .12);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--body);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Film grain on a fixed layer only, never on scrolling content. */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 50; pointer-events: none; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3 { color: var(--ink); margin: 0; font-weight: 600; letter-spacing: -0.03em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: var(--r-pill);
}
.skip-link:focus { top: 12px; }

.notice {
  padding: 9px 16px; text-align: center; font-size: 13.5px;
  color: var(--body); background: var(--bg-2); border-bottom: 1px solid var(--hairline);
}

/* Floating glass nav */
.site-header { position: sticky; top: 14px; z-index: 30; padding: 0 16px; margin-top: 14px; }
.nav-pill {
  max-width: 1080px; margin: 0 auto; height: 64px; padding: 0 10px 0 14px;
  display: flex; align-items: center; gap: 28px;
  border-radius: var(--r-pill); border: 1px solid var(--panel-border);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .06);
}
@media (prefers-reduced-transparency: reduce) {
  .nav-pill { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; margin-right: auto; }
.brand-mark {
  display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent); color: var(--on-accent); font-weight: 700;
}
.brand-name { color: var(--ink); font-weight: 600; font-size: 18px; letter-spacing: -0.02em; }
.header-nav { display: flex; gap: 26px; }
.header-nav a { text-decoration: none; font-size: 14.5px; font-weight: 500; color: var(--body); transition: color .2s; }
.header-nav a:hover { color: var(--ink); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 52px; padding: 14px 26px; border-radius: var(--r-pill);
  font: 600 15.5px/1 var(--font); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease, transform .2s cubic-bezier(.16,1,.3,1);
}
.btn i { font-size: 19px; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-sm { min-height: 44px; padding: 10px 18px; font-size: 14.5px; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-press); }
.btn-ghost { background: var(--panel); color: var(--ink); border-color: var(--panel-border); }
.btn-ghost:hover { border-color: var(--muted); }

/* Hero */
.hero { position: relative; padding: 48px 0 40px; }
.hero::before {
  content: ""; position: absolute; right: -10%; top: -10%; width: 70%; height: 120%; z-index: -1;
  background: radial-gradient(closest-side, var(--accent-glow), transparent 75%);
  pointer-events: none;
}
.hero-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center;
  min-height: calc(100dvh - 160px);
}
.eyebrow {
  font-size: 12.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 22px;
}
.hero h1 { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lead { margin-top: 24px; font-size: 19px; max-width: 42ch; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.stage { position: relative; width: 100%; }
.stage canvas { display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 1.2s ease; }
.stage.is-ready canvas { opacity: 1; }
.stage-helix { height: min(640px, calc(100dvh - 180px)); }
/* Shown only if WebGL is unavailable. */
.stage.is-fallback {
  border-radius: var(--r-panel);
  background: radial-gradient(circle at 50% 45%, var(--accent-glow), transparent 65%);
}

/* Home collection */
.collection { padding: 120px 0; background: linear-gradient(180deg, var(--bg), var(--bg-2)); }
.collection-grid {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center;
  border: 1px solid var(--panel-border); border-radius: var(--r-panel); background: var(--panel);
  padding: 32px 56px 32px 24px; box-shadow: var(--shadow);
}
.stage-vial { height: 460px; }
.collection h2, .enquire h2 { font-size: clamp(32px, 3.8vw, 52px); line-height: 1.08; }
.collection-copy > p { margin-top: 20px; max-width: 46ch; font-size: 18px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); }
.facts i {
  flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--accent-glow); color: var(--accent); font-size: 16px; margin-top: -1px;
}
.text-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 32px;
  color: var(--accent); font-weight: 600; text-decoration: none;
  border-bottom: 1px solid currentColor; padding-bottom: 2px;
}
.text-link i { transition: transform .25s cubic-bezier(.16,1,.3,1); }
.text-link:hover i { transform: translateX(4px); }

/* Enquire */
.enquire { padding: 120px 0 100px; }
.steps {
  list-style: none; margin: 56px 0 0; padding: 0; position: relative;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
/* Connector line draws in when the section reveals. */
.steps::before {
  content: ""; position: absolute; top: 28px; left: 28px; right: 28%; height: 1px;
  background: linear-gradient(90deg, var(--accent), var(--hairline));
  transform-origin: left; transform: scaleX(1);
}
.steps li { position: relative; }
.step-icon {
  position: relative; display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--panel-border); color: var(--accent); font-size: 26px;
  box-shadow: 0 0 0 6px var(--bg);
}
.steps h3 { font-size: 21px; margin-top: 24px; }
.steps p { margin-top: 10px; max-width: 32ch; }
.steps a { color: var(--accent); font-weight: 600; white-space: nowrap; }

/* Location */
.location { padding: 40px 0 120px; }
.call-block { text-align: left; border-top: 1px solid var(--hairline); padding-top: 64px; }
.call-block .eyebrow { margin-bottom: 8px; }
.huge-number {
  display: inline-block; color: var(--ink); text-decoration: none;
  font-size: clamp(52px, 11vw, 148px); font-weight: 600; letter-spacing: -0.05em; line-height: 1;
  font-variant-numeric: tabular-nums; transition: color .3s ease;
}
.huge-number:hover { color: var(--accent); }
.location-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 20px; margin-top: 56px; }
.address-card, .confirm-card {
  border: 1px solid var(--panel-border); border-radius: var(--r-panel); background: var(--panel); padding: 36px;
}
.address-card > i { font-size: 30px; color: var(--accent); }
.address-card address { font-style: normal; color: var(--ink); font-size: 19px; line-height: 1.6; margin: 16px 0 28px; }
.confirm-card h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.confirm-card dl { margin: 22px 0 0; display: grid; gap: 4px; }
.confirm-card dl div {
  display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px;
  border-radius: var(--r-tile); background: var(--bg-2);
}
.confirm-card dt { color: var(--ink); }
.confirm-card dd { margin: 0; color: var(--muted); text-align: right; }

/* Footer */
.site-footer { border-top: 1px solid var(--hairline); padding: 44px 0 52px; font-size: 15px; }
.footer-inner { display: grid; gap: 8px; }
.footer-brand { color: var(--ink); font-weight: 600; }
.site-footer a { color: var(--accent); }
.footer-note { margin-top: 12px; max-width: 70ch; color: var(--muted); font-size: 14px; }

.mobile-call { display: none; }

/* Reveal motion */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s cubic-bezier(.16,1,.3,1), transform 1s cubic-bezier(.16,1,.3,1); }
  .js .reveal.in { opacity: 1; transform: none; }
  .js .steps::before { transform: scaleX(0); transition: transform 1.4s cubic-bezier(.65,0,.35,1) .3s; }
  .js .steps.in::before { transform: scaleX(1); }
  .js .steps li { opacity: 0; transform: translateY(16px); transition: opacity .8s ease, transform .8s cubic-bezier(.16,1,.3,1); }
  .js .steps.in li { opacity: 1; transform: none; }
  .js .steps.in li:nth-child(2) { transition-delay: .35s; }
  .js .steps.in li:nth-child(3) { transition-delay: .7s; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .text-link i, .stage canvas { transition: none; }
}

/* Tablet */
@media (max-width: 960px) {
  .header-nav { display: none; }
  /* Helix moves behind the hero copy so it is visible on first load. */
  .hero { overflow: hidden; }
  .hero-grid { grid-template-columns: 1fr; position: relative; min-height: calc(100dvh - 140px); align-items: end; }
  .hero-copy { position: relative; z-index: 2; padding-bottom: 24px; }
  .stage-helix { position: absolute; inset: -40px 0 0 0; height: auto; z-index: 1; }
  .stage-helix::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(180deg, transparent 0%, transparent 30%, color-mix(in srgb, var(--bg) 70%, transparent) 52%, var(--bg) 78%);
  }
  .collection { padding: 88px 0; }
  .collection-grid { grid-template-columns: 1fr; padding: 24px 28px 40px; gap: 8px; }
  .stage-vial { height: 340px; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .steps::before { top: 28px; bottom: 28px; left: 28px; right: auto; width: 1px; height: auto; transform-origin: top; background: linear-gradient(180deg, var(--accent), var(--hairline)); }
  .js .steps::before { transform: scaleY(0); }
  .js .steps.in::before { transform: scaleY(1); }
  .steps li { padding-left: 80px; }
  .step-icon { position: absolute; left: 0; top: 0; }
  .steps h3 { margin-top: 12px; }
  .location-grid { grid-template-columns: 1fr; }
}

/* Mobile */
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 80px; }
  .container { padding: 0 16px; }
  .site-header { top: 10px; margin-top: 10px; padding: 0 12px; }
  .nav-pill { height: 58px; }
  .site-header .btn-sm { display: none; }
  .hero { padding: 40px 0 8px; }
  .lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .collection { padding: 64px 0; }
  .collection-grid { padding: 16px 20px 32px; }
  .stage-vial { height: 280px; }
  .enquire { padding: 72px 0; }
  .call-block { padding-top: 48px; }
  .address-card, .confirm-card { padding: 24px 20px; }
  .location { padding-bottom: 72px; }
  .mobile-call {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40;
    min-height: 56px; border-radius: var(--r-pill);
    background: var(--accent); color: var(--on-accent);
    font-weight: 600; text-decoration: none; box-shadow: 0 12px 30px rgb(0 0 0 / .35);
  }
  .mobile-call i { font-size: 20px; }
  .has-io .mobile-call { transform: translateY(160%); transition: transform .5s cubic-bezier(.16,1,.3,1); }
  .has-io.show-call .mobile-call { transform: none; }
}
