/* MUR Medical Equipment — clean white theme with a particle DNA background.
   To rebrand, change the tokens in :root. */
:root {
  color-scheme: light;
  --bg: #ffffff;
  --bg-soft: #f6f5f9;
  --panel: rgba(255, 255, 255, .86);
  --line: #e6e4ec;
  --line-strong: #c9c6d3;
  --text: #121216;
  --muted: #64636e;
  --faint: #a9a8b2;
  --violet: #6b3cf0;
  --magenta: #c13fb0;
  --radius: 20px;
  --head-h: 88px;
  --side: 150px;
  --font: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--head-h) + 16px); -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: transparent; color: var(--text); font: 400 16px/1.65 var(--font); -webkit-font-smoothing: antialiased; }
body.menu-open, body.video-open { overflow: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; line-height: 1.14; letter-spacing: -.025em; }
h1 { font-size: clamp(2.3rem, 4.2vw, 3.5rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.2rem; letter-spacing: -.015em; }
p { margin: 0; }
::selection { background: var(--violet); color: #fff; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; }

/* The particle DNA behind every page (created by helix.js) */
.dna-bg { position: fixed; inset: 0; z-index: -1; width: 100vw; height: 100vh; pointer-events: none; opacity: 0; transition: opacity 1.2s ease; }
.dna-bg.ready { opacity: var(--dna-o, 1); }
.dna-bg.live { transition: none; }

.wrap { width: min(1320px, 100%); margin-inline: auto; padding-inline: clamp(20px, 4vw, 56px); }
.section { padding-block: clamp(72px, 9vw, 120px); }
.surface { background: rgba(246, 245, 249, .88); }
.eyebrow { display: block; margin-bottom: 18px; color: var(--text); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.lede { color: var(--muted); font-size: 1.05rem; }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head .lede { margin-top: 16px; }
.section-head.center { margin-inline: auto; text-align: center; }
.skip, .sr-only { position: absolute; left: -9999px; top: 0; z-index: 100; }
.skip:focus { left: 12px; top: 12px; padding: 10px 16px; background: var(--text); color: #fff; border-radius: 999px; }

/* Buttons */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 11px 26px; border: 1px solid var(--text); border-radius: 999px; background: var(--text); color: #fff; font: 500 .78rem/1.2 var(--font); letter-spacing: .06em; text-transform: uppercase; text-decoration: none; cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: var(--violet); border-color: var(--violet); }
.btn.ghost, .btn.accent { background: transparent; color: var(--text); }
.btn.ghost:hover, .btn.accent:hover { background: var(--text); border-color: var(--text); color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: .9rem; font-weight: 500; text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; transition: border-color .2s, color .2s; }
.text-link::after { content: "→"; transition: transform .25s; }
.text-link:hover { color: var(--violet); border-color: var(--violet); }
.text-link:hover::after { transform: translateX(3px); }

/* Header */
#site-header { min-height: 0; }
.site-head { position: fixed; inset: 0 0 auto; z-index: 70; transition: background .35s, border-color .35s; border-bottom: 1px solid transparent; }
.site-head.scrolled { background: rgba(255, 255, 255, .82); border-color: var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.menu-open .site-head { background: #fff; border-color: var(--line); -webkit-backdrop-filter: none; backdrop-filter: none; }
.head-row { display: flex; align-items: center; gap: clamp(28px, 4vw, 52px); min-height: var(--head-h); }
.logo { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-size: 1.05rem; font-weight: 700; letter-spacing: .14em; text-decoration: none; }
/* Logo mark (transparent PNG, so it sits cleanly on any header background). */
.logo img { width: 40px; height: 40px; object-fit: contain; }
.menu-btn { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 0; background: none; border: 0; color: var(--text); font: 500 .85rem var(--font); cursor: pointer; }
.menu-btn i { position: relative; display: block; width: 26px; height: 7px; border-block: 1px solid currentColor; transition: transform .3s, height .3s; }
.menu-open .menu-btn i { height: 0; border-bottom: 0; transform: rotate(-12deg); }
.menu-btn:hover { color: var(--violet); }
.head-tools { display: flex; align-items: center; gap: 14px; margin-left: auto; }
/* Header order: logo, search | menu, light/dark, play */
.head-row .search-btn { margin-left: -14px; }
.head-tools .menu-btn { margin-right: 6px; }
@media (max-width: 520px) {
  .head-row { gap: 10px; }
  .head-row .search-btn { margin-left: 0; }
  .head-tools { gap: 4px; }
  .head-tools .menu-btn { width: 44px; justify-content: center; margin-right: 0; }
  /* On small phones the menu shows as its two-line icon; the word stays for screen readers. */
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; background: none; border: 0; border-radius: 50%; color: var(--text); cursor: pointer; text-decoration: none; transition: color .2s, background .2s, border-color .2s; }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.ring { border: 1px solid var(--text); }
.icon-btn.ring svg { width: 14px; height: 14px; margin-left: 2px; }
.icon-btn:hover { color: var(--violet); }
.icon-btn.ring:hover { background: var(--text); color: #fff; }

.menu-panel { position: fixed; inset: 0; z-index: 65; display: flex; align-items: flex-start; overflow-y: auto; overscroll-behavior: contain; padding-block: calc(var(--head-h) + 24px) 40px; background: rgba(255, 255, 255, .96); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s; }
.menu-open .menu-panel { opacity: 1; visibility: visible; }
/* margin-block:auto centres the menu when it fits, and starts it below the header when it doesn't. */
.menu-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: end; width: 100%; margin-block: auto; }
.menu-links { margin: 0; padding: 0; list-style: none; counter-reset: m; }
.menu-links li { counter-increment: m; border-bottom: 1px solid var(--line); }
.menu-links a { display: flex; align-items: center; gap: 20px; padding: 14px 0; font-size: clamp(1.7rem, 4vw, 2.9rem); font-weight: 400; letter-spacing: -.03em; text-decoration: none; transform: translateY(14px); opacity: 0; transition: color .2s, transform .5s, opacity .5s; }
.menu-links a::before { content: none; }
.menu-links a:hover, .menu-links a[aria-current] { color: var(--violet); }
.menu-open .menu-links a { transform: none; opacity: 1; }
.menu-open .menu-links li:nth-child(2) a { transition-delay: .05s; }
.menu-open .menu-links li:nth-child(3) a { transition-delay: .1s; }
.menu-open .menu-links li:nth-child(4) a { transition-delay: .15s; }
.menu-open .menu-links li:nth-child(5) a { transition-delay: .2s; }
.menu-side h3 { margin-bottom: 16px; color: var(--faint); font-size: .74rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; }
.menu-side ul { display: grid; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.menu-side a { text-decoration: none; }
.menu-side a:hover { color: var(--violet); }

/* Left section index (home page) */
.section-nav { position: fixed; left: clamp(20px, 4vw, 56px); top: 50%; z-index: 40; transform: translateY(-50%); }
.section-nav ul { position: relative; display: grid; gap: 6px; margin: 0; padding: 0 0 0 16px; list-style: none; }
.section-nav ul::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 1px; background: var(--line); }
.section-nav a { position: relative; display: block; padding: 2px 0; color: var(--faint); font-size: .74rem; font-weight: 500; text-decoration: none; transition: color .25s; }
.section-nav a::before { content: ""; position: absolute; left: -16px; top: 50%; width: 1px; height: 0; background: var(--text); transform: translateY(-50%); transition: height .3s; }
.section-nav a::after { content: ""; position: absolute; left: -20px; top: 50%; width: 7px; height: 7px; border: 1px solid var(--text); border-radius: 50%; background: #fff; opacity: 0; transform: translateY(-50%) scale(.4); transition: opacity .3s, transform .3s; }
.section-nav a:hover { color: var(--text); }
.section-nav a.past { color: var(--text); }
.section-nav a.past::before { height: calc(100% + 6px); }
.section-nav a.active { color: var(--text); }
.section-nav a.active::after { opacity: 1; transform: translateY(-50%) scale(1); }
.section-nav.on-dark ul::before { background: #3a3942; }
.section-nav.on-dark a { color: #77767f; }
.section-nav.on-dark a:hover, .section-nav.on-dark a.past, .section-nav.on-dark a.active { color: #fff; }
.section-nav.on-dark a::before { background: #fff; }
.section-nav.on-dark a::after { border-color: #fff; background: #121216; }
.has-side .wrap.indent { padding-left: calc(var(--side) + clamp(20px, 4vw, 56px)); }

/* Hero */
.hero { position: relative; min-height: max(640px, 100svh); overflow: hidden; }
.hero .wrap { position: relative; display: flex; flex-direction: column; justify-content: center; min-height: max(640px, 100svh); padding-top: calc(var(--head-h) + 40px); padding-bottom: 120px; }
.hero-copy { max-width: 470px; }
.hero h1 { font-size: clamp(2.3rem, 4.1vw, 3.4rem); }
.hero p { max-width: 360px; margin-top: 26px; color: var(--text); font-size: .98rem; }
.hero .btn-row { margin-top: 44px; }
.scroll-pill { position: absolute; right: clamp(20px, 4vw, 56px); bottom: 64px; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px 20px; background: var(--text); border-radius: 999px; color: #fff; font-size: .78rem; font-weight: 500; text-decoration: none; transition: background .25s; }
.scroll-pill svg { width: 12px; height: 12px; animation: nudge 1.8s ease-in-out infinite; }
.scroll-pill:hover { background: var(--violet); }
@keyframes nudge { 50% { transform: translateY(3px); } }

/* Numbered cards */
.numbered { display: grid; gap: 18px; }
.num-card { position: relative; display: grid; grid-template-columns: 120px 1fr 1fr; gap: 28px 40px; align-items: start; padding: clamp(28px, 3.4vw, 44px) clamp(24px, 3.4vw, 48px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); text-decoration: none; transition: border-color .3s, box-shadow .3s, transform .3s; }
a.num-card:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(80, 40, 160, .35); transform: translateY(-3px); }
.num-card .num { font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 400; line-height: 1; letter-spacing: -.04em; }
/* 01 and 03: solid green cards */
.num-card:nth-child(odd) { background: #00ff00; border-color: #00ff00; -webkit-backdrop-filter: none; backdrop-filter: none; }
.num-card:nth-child(odd) .meta, .num-card:nth-child(odd) p { color: rgba(18, 18, 22, .78); }
.num-card:nth-child(odd) .text-link { border-color: rgba(18, 18, 22, .45); }
a.num-card:nth-child(odd):hover { border-color: #00ff00; box-shadow: 0 24px 60px -30px rgba(0, 120, 0, .55); }
.num-card:nth-child(odd) .text-link:hover, a.num-card:nth-child(odd):hover .text-link { color: var(--text); border-color: var(--text); }
.num-card .meta { display: block; margin-bottom: 12px; color: var(--muted); font-size: .74rem; font-weight: 500; letter-spacing: .04em; }
.num-card h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 500; letter-spacing: -.025em; }
.num-card p { color: var(--muted); font-size: .95rem; }
.num-card .text-link { margin-top: 18px; }

/* Grids and cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(40px, 6vw, 96px); }
.split p + p, .split h2 + p { margin-top: 20px; }
.split > div > p { color: var(--muted); }
.art-panel { padding: clamp(18px, 3vw, 36px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.art-panel img { width: 100%; }
/* A photo that fills its panel edge to edge (crop point set on the img). */
.art-panel.photo-panel { padding: 0; overflow: hidden; }
.art-panel.photo-panel img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }

.band { background: rgba(246, 245, 249, .9); border-block: 1px solid var(--line); }
.band-item { padding: 26px 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.band-item svg { width: 28px; height: 28px; margin-bottom: 22px; color: var(--violet); }
.band-item p { margin-top: 10px; color: var(--muted); font-size: .94rem; }
/* Home page "How we work" boxes: solid green, matching cards 01 and 03 */
.band .band-item { background: #00ff00; border-color: #00ff00; }
.band .band-item svg { color: var(--text); }
.band .band-item p { color: rgba(18, 18, 22, .78); }

.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.tile { display: flex; flex-direction: column; gap: 10px; align-items: center; justify-content: center; min-height: 110px; padding: 20px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; text-align: center; font-size: .98rem; font-weight: 500; transition: border-color .3s, color .3s; }
.tile:hover { border-color: var(--violet); color: var(--violet); }

.dark { background: #121216; color: #fff; }
.dark .eyebrow { color: #b8a6ff; }
.dark .split > div > p { color: #b4b3bd; }
.dark .btn { background: #fff; border-color: #fff; color: var(--text); }
.dark .btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.dark .art-panel { background: #1c1b22; border-color: #2c2b33; }
.checks { display: grid; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; }
.checks li { position: relative; padding-left: 30px; }
.checks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 13px; height: 6px; border: solid var(--violet); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.dark .checks { color: #d6d5dd; }
.dark .checks li::before { border-color: #b8a6ff; }
.light-checks { color: var(--text); }
.checks a { color: var(--violet); }

.product { display: flex; flex-direction: column; overflow: hidden; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); transition: border-color .3s, box-shadow .3s, transform .3s; }
.product:hover { border-color: var(--line-strong); box-shadow: 0 24px 60px -30px rgba(80, 40, 160, .35); transform: translateY(-3px); }
.product-img { aspect-ratio: 4 / 3; overflow: hidden; padding: 20px; background: var(--bg-soft); }
.product-img img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s; }
.product:hover .product-img img { transform: scale(1.04); }
/* Real product photos fill their box instead of sitting in padding. */
.product-img.photo { padding: 0; background: #fff; }
.product-img.photo img { object-fit: cover; object-position: center; }
/* Tall photos: show the whole machine instead of cropping it. */
.product-img.photo.fit { padding: 12px; }
.product-img.photo.fit img { object-fit: contain; }
/* Photos with a coloured background: show the whole photo and fill the side
   bands with a blurred copy of it (the .blur-bg span carries the same image). */
.product-img.photo.blend { position: relative; padding: 0; }
.product-img.photo.blend .blur-bg { position: absolute; inset: -24px; background: center / cover no-repeat; filter: blur(16px); }
.product-img.photo.blend img { position: relative; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 22px 24px 26px; }
.tag { margin-bottom: 10px; color: var(--muted); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.product-body p { margin: 8px 0 20px; color: var(--muted); font-size: .94rem; }
.product-body .text-link { margin-top: auto; }

.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 36px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button { min-height: 42px; padding: 8px 20px; background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--text); font: 500 .86rem var(--font); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.filters button:hover { border-color: var(--text); }
.filters button[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: #fff; }
.search { flex: 0 1 320px; }
.empty { padding: 40px 0; color: var(--muted); text-align: center; }
.empty a { color: var(--violet); }

/* Inner page banner */
.banner { padding-top: var(--head-h); }
.banner .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 14px; padding-block: clamp(64px, 9vw, 120px) clamp(36px, 5vw, 56px); border-bottom: 1px solid var(--line); }
.banner h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); letter-spacing: -.035em; }
.crumbs { color: var(--muted); font-size: .86rem; }
.crumbs a { color: var(--text); text-decoration: none; }
.crumbs a:hover { color: var(--violet); }

/* Forms */
.form-card { padding: clamp(24px, 4vw, 42px); background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { display: grid; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .82rem; font-weight: 500; }
input, select, textarea { width: 100%; min-height: 48px; padding: 11px 16px; background: #fff; border: 1px solid var(--line-strong); border-radius: 12px; color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s; }
input::placeholder, textarea::placeholder { color: var(--faint); }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(107, 60, 240, .14); outline: none; }
.form-card .btn { margin-top: 26px; }
.form-status { margin-top: 16px; padding: 13px 16px; background: #f1ecff; border: 1px solid #d9ccff; border-radius: 12px; }
.form-status[hidden] { display: none; }
.contact-list { display: grid; gap: 22px; margin: 30px 0 0; padding: 0; list-style: none; }
.contact-list li { display: flex; gap: 16px; }
.contact-list svg { flex: none; width: 20px; height: 20px; margin-top: 4px; color: var(--violet); }
.contact-list b { display: block; font-weight: 500; }
.contact-list a, .contact-list span { color: var(--muted); overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--violet); }
.split.top { align-items: start; }

/* Floating WhatsApp button */
.wa-btn { position: fixed; right: clamp(16px, 2.4vw, 28px); bottom: clamp(16px, 2.4vw, 28px); z-index: 60; display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 16px; border-radius: 999px; background: #25d366; color: #fff; font-size: .9rem; font-weight: 600; text-decoration: none; box-shadow: 0 12px 30px -8px rgba(18, 140, 70, .55); transition: transform .25s, box-shadow .25s; }
.wa-btn svg { flex: none; width: 26px; height: 26px; }
.wa-btn span { max-width: 0; overflow: hidden; white-space: nowrap; transition: max-width .35s ease; }
.wa-btn:hover, .wa-btn:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 36px -8px rgba(18, 140, 70, .65); }
.wa-btn:hover span, .wa-btn:focus-visible span { max-width: 120px; }
.menu-open .wa-btn, .video-open .wa-btn { opacity: 0; pointer-events: none; }
/* Keep the hero's "Scroll for more" pill clear of the WhatsApp button. */
.scroll-pill { right: calc(clamp(20px, 4vw, 56px) + 72px); }

/* Video lightbox */
/* Extra room at the bottom keeps the video's controls clear of Netlify's corner badge. */
.video-modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 64px 20px 92px; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
.video-modal.open { opacity: 1; visibility: visible; }
.video-frame { position: relative; width: min(1100px, 100%, calc((100vh - 156px) * 16 / 9)); aspect-ratio: 16 / 9; overflow: hidden; background: #121216; border-radius: var(--radius); box-shadow: 0 40px 100px -40px rgba(40, 20, 90, .5); transform: scale(.96); transition: transform .3s; }
.video-modal.open .video-frame { transform: none; }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-soon { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 8px; padding: 20px; background: radial-gradient(ellipse at 60% 40%, #2a1a5c, #121216 70%); color: #fff; text-align: center; }
.video-soon b { font-size: clamp(1.3rem, 3vw, 1.9rem); font-weight: 500; }
.video-soon span { color: #b4b3bd; }
.video-close { position: absolute; top: 20px; right: 24px; min-height: 44px; padding: 8px 18px; background: var(--text); border: 0; border-radius: 999px; color: #fff; font: 500 .8rem var(--font); cursor: pointer; }

/* Footer */
.footer { background: #121216; color: #a3a2ad; }
.footer-cta { border-bottom: 1px solid #2a2930; }
.footer-cta .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-block: clamp(52px, 6vw, 80px); }
.footer-cta h2 { color: #fff; font-size: clamp(1.7rem, 3vw, 2.5rem); letter-spacing: -.03em; }
.footer-cta .btn { background: #fff; border-color: #fff; color: var(--text); }
.footer-cta .btn:hover { background: var(--violet); border-color: var(--violet); color: #fff; }
.footer-cols { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 40px; padding-block: 60px; }
.footer h3 { margin-bottom: 20px; color: #fff; font-size: .9rem; font-weight: 500; }
.footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: .94rem; }
.footer a { text-decoration: none; transition: color .2s; }
.footer a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 12px; overflow-wrap: anywhere; }
.footer-contact svg { flex: none; width: 16px; height: 16px; margin-top: 4px; color: #b8a6ff; }
.footer-brand { margin-bottom: 22px; color: #fff; font-weight: 700; letter-spacing: .14em; }
.footer-base { border-top: 1px solid #2a2930; font-size: .84rem; }
.footer-base .wrap { padding-block: 22px; }

/* Scroll reveal: content is only hidden once the script has confirmed it can show it again */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s ease var(--stagger, 0s), transform .8s ease var(--stagger, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ==================================================================
   Motion graphics. Icons draw themselves in, float and drift; labels
   pulse; a heartbeat line traces across banners. All decoration only.
   ================================================================== */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.4) rotate(-25deg); } to { opacity: 1; transform: none; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(107, 60, 240, .55); } 70%, 100% { box-shadow: 0 0 0 9px rgba(107, 60, 240, 0); } }
@keyframes ripple-out { from { transform: scale(1); opacity: .7; } to { transform: scale(1.7); opacity: 0; } }
@keyframes drift-up { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-125vh) rotate(var(--spin, 160deg)); } }
@keyframes wander { 0%, 100% { transform: translate(0, 0) rotate(0deg); } 33% { transform: translate(18px, -22px) rotate(12deg); } 66% { transform: translate(-14px, 14px) rotate(-10deg); } }
@keyframes ecg-run { 0% { stroke-dashoffset: 1; opacity: 1; } 60%, 80% { stroke-dashoffset: 0; opacity: 1; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes sheen { 0%, 72% { transform: translateX(-130%); } 100% { transform: translateX(130%); } }
@keyframes hue-slide { to { background-position: 200% 0; } }

/* Shared icon basics: shapes start undrawn, then trace in. */
.ico { flex: none; width: 24px; height: 24px; }
.ico.draw > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.reveal.in .ico.draw > *, .reveal.in.ico.draw > *, .band-item.in > .ico.draw > * { animation: draw 1.3s ease var(--stagger, 0s) forwards; }
.contact-list .ico.draw > * { animation: draw 1.4s ease .35s forwards; }

/* Scroll progress bar */
.scroll-progress { position: fixed; inset: 0 0 auto; z-index: 80; height: 3px; background: linear-gradient(90deg, var(--violet), var(--magenta), #00ff00, var(--violet)); background-size: 200% 100%; transform: scaleX(0); transform-origin: left; animation: hue-slide 6s linear infinite; pointer-events: none; }

/* Icons drifting up both sides of every page */
.side-life { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sl { position: absolute; bottom: -70px; width: var(--size, 30px); height: var(--size, 30px); color: var(--violet); opacity: .2; animation: drift-up var(--dur, 28s) linear var(--delay, 0s) infinite; }
.sl:nth-child(3n) { color: var(--magenta); }
.sl:nth-child(4n) { color: #12b312; }
.sl .ico { width: 100%; height: 100%; }

/* Header: logo breathes, play button ripples, menu lines stretch on hover */
.logo img { animation: floaty 5s ease-in-out infinite; }
.icon-btn.ring { position: relative; }
.icon-btn.ring::after { content: ""; position: absolute; inset: -1px; border: 1px solid currentColor; border-radius: 50%; animation: ripple-out 2.6s ease-out infinite; pointer-events: none; }
.menu-btn:hover i { transform: scaleX(1.25); }

/* Menu: icon chips pop in and draw, medical icons wander in the background */
.menu-grid { position: relative; z-index: 1; }
.menu-float { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.mf { position: absolute; color: var(--violet); opacity: 0; transition: opacity .6s; animation: wander 14s ease-in-out infinite; }
.menu-open .mf { opacity: .13; }
.mf .ico { width: 100%; height: 100%; }
.mf-1 { top: 14%; left: 62%; width: 84px; height: 84px; }
.mf-2 { top: 58%; left: 78%; width: 60px; height: 60px; color: var(--magenta); animation-duration: 11s; animation-delay: -3s; }
.mf-3 { top: 30%; left: 86%; width: 110px; height: 110px; animation-duration: 18s; animation-delay: -6s; }
.mf-4 { top: 74%; left: 52%; width: 70px; height: 70px; color: #12b312; animation-duration: 13s; animation-delay: -2s; }
.mf-5 { top: 8%; left: 40%; width: 54px; height: 54px; color: var(--magenta); animation-duration: 16s; animation-delay: -8s; }
.mf-6 { top: 82%; left: 88%; width: 64px; height: 64px; animation-duration: 12s; animation-delay: -5s; }
.mf-7 { top: 44%; left: 70%; width: 46px; height: 46px; color: #12b312; animation-duration: 15s; animation-delay: -9s; }
.mf-8 { top: 88%; left: 20%; width: 58px; height: 58px; animation-duration: 17s; animation-delay: -4s; }
.mi { display: grid; place-items: center; flex: none; width: clamp(44px, 5vw, 58px); height: clamp(44px, 5vw, 58px); border: 1px solid var(--line-strong); border-radius: 50%; color: var(--violet); opacity: 0; transition: background .3s, color .3s, border-color .3s, transform .4s; }
.mi .ico { width: 46%; height: 46%; }
.menu-open .mi { animation: pop-in .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.menu-open .menu-panel .ico.draw > * { animation: draw 1s ease forwards; }
.menu-open .menu-links li:nth-child(1) .mi { animation-delay: .1s; }
.menu-open .menu-links li:nth-child(2) .mi { animation-delay: .18s; }
.menu-open .menu-links li:nth-child(3) .mi { animation-delay: .26s; }
.menu-open .menu-links li:nth-child(4) .mi { animation-delay: .34s; }
.menu-open .menu-links li:nth-child(5) .mi { animation-delay: .42s; }
.menu-open .menu-links li:nth-child(1) .ico.draw > * { animation-delay: .25s; }
.menu-open .menu-links li:nth-child(2) .ico.draw > * { animation-delay: .33s; }
.menu-open .menu-links li:nth-child(3) .ico.draw > * { animation-delay: .41s; }
.menu-open .menu-links li:nth-child(4) .ico.draw > * { animation-delay: .49s; }
.menu-open .menu-links li:nth-child(5) .ico.draw > * { animation-delay: .57s; }
.menu-links a:hover .mi, .menu-links a[aria-current] .mi { background: var(--violet); border-color: var(--violet); color: #fff; transform: rotate(-8deg) scale(1.08); }
.menu-links .ml { transition: transform .3s; }
.menu-links a:hover .ml { transform: translateX(8px); }
.menu-side a { display: inline-flex; align-items: center; gap: 10px; }
.ico.sm { width: 18px; height: 18px; color: var(--violet); }

/* Hero and page titles rise in on load */
.hero-copy > * { animation: rise-in .9s ease both; }
.hero-copy > :nth-child(2) { animation-delay: .12s; }
.hero-copy > :nth-child(3) { animation-delay: .24s; }
.hero-copy > :nth-child(4) { animation-delay: .36s; }
.banner h1, .banner .crumbs { animation: rise-in .8s ease both; }
.banner .crumbs { animation-delay: .15s; }

/* Small labels get a pulsing dot */
.eyebrow::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--violet); vertical-align: middle; animation: pulse-dot 2.2s ease-out infinite; }
.dark .eyebrow::before { background: #b8a6ff; }

/* Heartbeat line across banners and the footer call-to-action */
.banner, .footer-cta { position: relative; overflow: hidden; }
.ecg { position: absolute; left: 0; bottom: 0; width: 100%; height: 40px; fill: none; stroke: var(--violet); stroke-width: 1.5; opacity: .5; pointer-events: none; }
.ecg path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: ecg-run 5s linear infinite; }
.footer-cta .ecg { top: 0; bottom: auto; stroke: #b8a6ff; opacity: .4; }
.footer-cta .wrap { position: relative; }

/* Product-range cards: icon chip under the number */
.num-card .num { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.num-ico { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid currentColor; border-radius: 50%; color: var(--violet); animation: floaty 4.5s ease-in-out infinite; transition: background .3s, color .3s, transform .4s; }
.num-card:nth-child(odd) .num-ico { color: var(--text); }
.num-card:nth-child(even) .num-ico { animation-delay: -2s; }
a.num-card:hover .num-ico { background: var(--text); border-color: var(--text); color: #fff; transform: rotate(-10deg) scale(1.1); }
a.num-card:hover .text-link::after { transform: translateX(5px); }

/* Service and value icons float once drawn; tiles get an icon that bounces on hover */
.band-item > svg { animation: floaty 4s ease-in-out infinite; }
.band-item:nth-child(2) > svg { animation-delay: -1s; }
.band-item:nth-child(3) > svg { animation-delay: -2s; }
.band-item:nth-child(4) > svg { animation-delay: -3s; }
.band-item { transition: transform .35s, box-shadow .35s; }
.band-item:hover, .js .band-item.reveal.in:hover { transform: translateY(-5px); box-shadow: 0 22px 44px -26px rgba(18, 18, 22, .5); transition-delay: 0s; }
.tile .ico { width: 28px; height: 28px; color: var(--violet); transition: transform .4s; }
.tile { transition: border-color .3s, color .3s, transform .35s; }
.tile:hover { transform: translateY(-4px); }
.tile:hover .ico { transform: translateY(-4px) scale(1.15) rotate(-6deg); }
.contact-list .ico { animation: floaty 4.5s ease-in-out infinite; }
.contact-list li:nth-child(2) .ico { animation-delay: -1.5s; }
.contact-list li:nth-child(3) .ico { animation-delay: -3s; }

/* Buttons: a light sweep passes across filled buttons; WhatsApp button ripples */
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%); transform: translateX(-130%); animation: sheen 5.5s ease-in-out infinite; pointer-events: none; }
.btn.ghost::after, .btn.accent::after { background: linear-gradient(100deg, transparent 30%, rgba(107, 60, 240, .16) 50%, transparent 70%); }
.wa-btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid #25d366; animation: ripple-out 2.4s ease-out infinite; pointer-events: none; }
.section-nav a.active::after { animation: pulse-dot 2.2s ease-out infinite; }

/* ==================================================================
   Dark mode. Switched by the sun/moon button in the header, which sets
   data-theme="dark" on the page and remembers the visitor's choice.
   ================================================================== */
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
.theme-btn svg { transition: transform .5s; }
.theme-btn:hover svg { transform: rotate(40deg); }
.theme-anim, .theme-anim body, .theme-anim *:not(.dna-bg) { transition: background-color .45s ease, color .45s ease, border-color .45s ease !important; }

/* Green boxes always use dark text, in both modes. */
.num-card:nth-child(odd), .num-card:nth-child(odd) .text-link, .num-card:nth-child(odd) .num-ico, .band .band-item, .band .band-item svg { color: #121216; }
a.num-card:nth-child(odd):hover .num-ico { background: #121216; border-color: #121216; color: #fff; }

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e0e13;
  --bg-soft: #181820;
  --panel: rgba(24, 24, 32, .86);
  --line: #2a2a37;
  --line-strong: #48485c;
  --text: #f2f1f7;
  --muted: #a9a8b6;
  --faint: #737284;
  --violet: #a48bff;
  --magenta: #e678d6;
}
:root[data-theme="dark"] .surface, :root[data-theme="dark"] .band { background: rgba(20, 20, 28, .9); }
:root[data-theme="dark"] .band-item { background: #181820; }
:root[data-theme="dark"] .band .band-item { background: #00ff00; }
:root[data-theme="dark"] .site-head.scrolled { background: rgba(14, 14, 19, .82); }
:root[data-theme="dark"] .menu-open .site-head { background: #0e0e13; }
:root[data-theme="dark"] .menu-panel { background: rgba(14, 14, 19, .97); }
:root[data-theme="dark"] .video-modal { background: rgba(8, 8, 12, .9); }
:root[data-theme="dark"] .dark { background: #17171f; }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea, :root[data-theme="dark"] .filters button { background: #181820; }
:root[data-theme="dark"] .form-status { background: #221c3d; border-color: #4a3d8f; }
:root[data-theme="dark"] .section-nav a::after { background: var(--bg); }
/* Things with a light "ink" background need dark text on them in dark mode. */
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .btn.ghost:hover, :root[data-theme="dark"] .btn.accent:hover, :root[data-theme="dark"] .scroll-pill, :root[data-theme="dark"] .video-close, :root[data-theme="dark"] .skip:focus, :root[data-theme="dark"] .filters button[aria-pressed="true"], :root[data-theme="dark"] .icon-btn.ring:hover, :root[data-theme="dark"] a.num-card:nth-child(even):hover .num-ico { color: #0e0e13; }
:root[data-theme="dark"] .btn.ghost, :root[data-theme="dark"] .btn.accent { color: var(--text); }
:root[data-theme="dark"] .dark .btn, :root[data-theme="dark"] .footer-cta .btn { color: #121216; }
:root[data-theme="dark"] .dark .btn:hover, :root[data-theme="dark"] .footer-cta .btn:hover { color: #fff; }
:root[data-theme="dark"] .sl { opacity: .28; }
@media (max-width: 760px) {
  :root[data-theme="dark"] .hero-copy { background: linear-gradient(90deg, rgba(14, 14, 19, .85), rgba(14, 14, 19, .55)); }
}

/* ==================================================================
   Stethoscope that lifts out of its photo (home page, "Work with us").
   The chest piece is a cut-out laid exactly over the photo, then raised.
   Its position is worked out from the photo: centre at 70% across and
   66% down the visible panel, 25% of the panel's width across.
   ================================================================== */
@keyframes steth-lift { 0% { transform: translate(-50%, -50%) translateY(0) scale(1); } 100% { transform: translate(-50%, -50%) translateY(-38%) scale(1.45); } }
@keyframes steth-float { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-7%) rotate(5deg); } }
@keyframes steth-shadow { 0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: .55; } 50% { transform: translate(-50%, -50%) scale(.82); opacity: .35; } }
@keyframes slow-zoom { from { transform: scale(1); } to { transform: scale(1.06); } }
.steth-panel, .art-panel.photo-panel.steth-panel { position: relative; overflow: visible; perspective: 900px; }
.steth-panel .steth-bg { display: block; border-radius: var(--radius); }
.steth-pop { position: absolute; left: 70%; top: 66.3%; width: 25%; aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; z-index: 2; }
.steth-panel .steth-pop img { display: block; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; filter: drop-shadow(0 18px 22px rgba(10, 40, 80, .45)); transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .3s ease-out; }
.steth-shadow { position: absolute; left: 70%; top: 74%; width: 30%; height: 8%; border-radius: 50%; background: radial-gradient(ellipse, rgba(10, 40, 80, .5), transparent 70%); transform: translate(-50%, -50%); z-index: 1; pointer-events: none; opacity: 0; }
.steth-panel.in .steth-pop { animation: steth-lift 1.4s cubic-bezier(.2, 1.2, .3, 1) .5s forwards; }
.steth-panel.in .steth-pop img, .art-panel.steth-panel.in .steth-pop img { animation: steth-float 4.5s ease-in-out 1.9s infinite; }
.steth-panel.in .steth-shadow { animation: steth-shadow 4.5s ease-in-out 1.9s infinite; }

/* ==================================================================
   Animated delivery scene (About page): boxes load into the van while
   the route on the phone's map keeps flowing and the pin bounces.
   ================================================================== */
@keyframes route-flow { to { stroke-dashoffset: -44; } }
@keyframes pin-bounce { 0%, 100% { transform: translateY(0); } 45% { transform: translateY(-14px); } 60% { transform: translateY(0); } 70% { transform: translateY(-5px); } }
@keyframes pin-ring { from { transform: scale(.4); opacity: .8; } to { transform: scale(1.8); opacity: 0; } }
@keyframes van-idle { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-1.5px); } }
@keyframes box-load { 0% { transform: translate(0, 0) scale(1); opacity: 0; } 6% { opacity: 1; } 40% { transform: translate(var(--mx), var(--my)) scale(.95); } 70% { transform: translate(var(--tx), var(--ty)) scale(.7); opacity: 1; } 78%, 100% { transform: translate(var(--tx), var(--ty)) scale(.7); opacity: 0; } }
@keyframes cargo-fill { 0%, 10% { opacity: 0; transform: translateY(8px); } 18%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes door-swing { 0%, 100% { transform: skewY(0deg); } 50% { transform: skewY(-2deg); } }
@keyframes road-shine { from { transform: translateX(-30%); } to { transform: translateX(30%); } }
.delivery-scene { display: block; width: 100%; height: auto; overflow: hidden; }
.delivery-scene .route { stroke-dasharray: 14 8; animation: route-flow 1.4s linear infinite; }
.delivery-scene .pin { transform-box: fill-box; transform-origin: 50% 100%; animation: pin-bounce 2.2s ease-in-out infinite; }
.delivery-scene .pin-ring { transform-box: fill-box; transform-origin: center; animation: pin-ring 2.2s ease-out infinite; }
.delivery-scene .van { animation: van-idle .6s ease-in-out infinite; }
.delivery-scene .door { transform-box: fill-box; transform-origin: right center; animation: door-swing 3s ease-in-out infinite; }
.delivery-scene .fly { transform-box: fill-box; animation: box-load 6s ease-in-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
.delivery-scene .loaded { transform-box: fill-box; transform-origin: center bottom; animation: cargo-fill 6s ease-out infinite; animation-delay: var(--d, 0s); opacity: 0; }
.delivery-scene .shine { animation: road-shine 6s ease-in-out infinite alternate; }

@media (max-width: 760px) {
  .sl { opacity: .16; }
  .sl:nth-child(n+8) { display: none; }
  .mf-3, .mf-5, .mf-7 { display: none; }
  .menu-links a { gap: 14px; }
}

@media (max-width: 1180px) {
  .section-nav { display: none; }
  .has-side .wrap.indent { padding-left: clamp(20px, 4vw, 56px); }
}
@media (max-width: 1000px) {
  .grid-4, .tiles { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .num-card { grid-template-columns: 90px 1fr; }
  .num-card > :last-child { grid-column: 2; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .footer-cols > :first-child { grid-column: 1 / -1; }
  .menu-grid { grid-template-columns: 1fr; gap: 36px; }
}
@media (max-width: 760px) {
  :root { --head-h: 72px; }
  .head-row { gap: 22px; }
  .hero .wrap { justify-content: flex-end; padding-bottom: 130px; }
  .hero-copy { padding: 22px 0; background: linear-gradient(90deg, rgba(255, 255, 255, .85), rgba(255, 255, 255, .55)); border-radius: 16px; }
  .scroll-pill { left: 20px; right: auto; bottom: 52px; }
}
@media (max-width: 600px) {
  .grid-3, .grid-4, .form-grid, .footer-cols { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile { min-height: 88px; font-size: .9rem; }
  .num-card { grid-template-columns: 1fr; gap: 16px; }
  .num-card > :last-child { grid-column: auto; }
  .search { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .menu-links a, .mi { opacity: 1; transform: none; }
  .ico.draw > *, .ecg path { stroke-dashoffset: 0; }
  .side-life, .menu-float, .scroll-progress { display: none; }
}
