/* InnovaMed Sphere — imedsphere.com
   Layout mirrors the previous ni-medical.com site; colors and type follow the InnovaMed Sphere brand book.
   Brand: PANTONE 534 C #1C355E (navy), PANTONE 306 C #00B2E3 (cyan), typeface Indivisible Bold.
   Indivisible is used when the licensed webfont is installed (see @font-face below); Inter is the fallback. */

/* Uncomment and add the licensed WOFF2 files to /assets/fonts/ to use Indivisible on the web.
@font-face { font-family: "Indivisible"; src: url("../fonts/Indivisible-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Indivisible"; src: url("../fonts/Indivisible-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
*/

:root {
  --navy: #1C355E;
  --navy-deep: #132744;
  --navy-ink: #0D1C33;
  --cyan: #00B2E3;
  --cyan-soft: #E6F7FC;
  --ink: #2A2F36;
  --muted: #5A6472;
  --line: #DCE6EE;
  --soft: #F5F9FC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(19, 39, 68, .10);
  --shadow-lg: 0 14px 40px rgba(19, 39, 68, .16);
  --font-head: "Indivisible", "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --wrap: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--ink); background: var(--white); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--navy); }
a:hover { color: var(--cyan); }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--navy); line-height: 1.2; margin: 0 0 .6em; font-weight: 700; }
h1 { font-size: clamp(30px, 4vw, 44px); }
h2 { font-size: clamp(26px, 3vw, 36px); }
h3 { font-size: 18px; }
h1 span, h2 span { color: var(--cyan); }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }
.sr { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 16px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 760px; margin-left: auto; margin-right: auto; }
.narrow-left > * { max-width: 640px; }
.h-center { text-align: center; margin-bottom: 1.2em; }
.h-white { color: #fff; }
.h-white span { color: var(--cyan); }
ul.plain { list-style: none; margin: 0; padding: 0; }

/* ecg accent (replaces the old red heartbeat mark) */
.ecg { display: inline-block; width: 1.6em; height: .6em; color: var(--cyan); vertical-align: middle; margin-left: .15em; }

/* buttons */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 600 14px/1 var(--font-body); padding: 13px 22px; border-radius: 8px; border: 1.5px solid transparent; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; background: none; }
.btn-outline { border-color: var(--navy); color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-ghost { border-color: var(--cyan); color: var(--navy); }
.btn-ghost:hover { background: var(--cyan); color: #fff; }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--navy); }
.more { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: 14px; color: var(--navy); text-decoration: none; }
.more svg { width: 16px; height: 16px; }
a:hover .more, .more:hover { color: var(--cyan); }

/* header */
.site-header { position: sticky; top: 0; z-index: 50; background: #fff; box-shadow: 0 2px 14px rgba(19, 39, 68, .08); }
.hdr { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 80px; }
.brand img { height: 56px; width: auto; }
.mainnav { display: flex; align-items: center; gap: 18px; }
.hdr-cta .btn { padding: 11px 16px; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.menu > li { position: relative; display: flex; align-items: center; }
.menu > li > a { display: block; padding: 10px 9px; font-size: 14.5px; white-space: nowrap; font-weight: 500; color: var(--ink); text-decoration: none; }
.menu > li > a:hover, .menu > li.active > a { color: var(--cyan); }
.sub-toggle { display: none; background: none; border: 0; padding: 6px; color: var(--navy); cursor: pointer; }
.sub-toggle svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s; }
.sub { list-style: none; margin: 0; padding: 10px 0; position: absolute; left: 0; top: 100%; min-width: 250px; background: #fff; border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; }
.sub a { display: block; padding: 8px 20px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.sub a:hover { background: var(--cyan-soft); color: var(--navy); }
.has-sub:hover .sub, .has-sub:focus-within .sub { opacity: 1; visibility: visible; transform: none; }
.hdr-cta { display: flex; gap: 10px; }
.burger { display: none; background: none; border: 0; width: 44px; height: 44px; padding: 10px; cursor: pointer; }
.burger span { display: block; height: 2px; background: var(--navy); margin: 5px 0; transition: .2s; }

@media (max-width: 1240px) {
  .burger { display: block; }
  .mainnav { position: fixed; inset: 80px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 32px; overflow-y: auto; transform: translateX(100%); transition: transform .25s; }
  .mainnav.open { transform: none; }
  .menu { flex-direction: column; gap: 0; }
  .menu > li { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .menu > li > a { flex: 1; padding: 14px 0; font-size: 17px; }
  .sub-toggle { display: block; }
  .sub { position: static; width: 100%; box-shadow: none; opacity: 1; visibility: visible; transform: none; display: none; padding: 0 0 10px 12px; }
  .has-sub.open .sub { display: block; }
  .has-sub.open .sub-toggle svg { transform: rotate(-90deg); }
  .hdr-cta { flex-direction: column; margin-top: 20px; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
}

/* hero */
/* the photo is set inline as background-image on .hero; the brand overlay sits on ::before */
.hero { position: relative; isolation: isolate; color: #fff; background-color: var(--navy);
  background-image: linear-gradient(120deg, var(--navy-deep), var(--navy)); background-position: right center; background-size: cover; background-repeat: no-repeat; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(19, 39, 68, .94) 0%, rgba(28, 53, 94, .82) 40%, rgba(28, 53, 94, .25) 72%, rgba(28, 53, 94, 0) 100%); }
.hero-in { min-height: 400px; display: flex; flex-direction: column; justify-content: center; padding-top: 56px; padding-bottom: 56px; }
.hero h1 { color: #fff; max-width: 620px; }
.hero-text { max-width: 560px; font-size: 16.5px; color: rgba(255, 255, 255, .92); }
.hero .btn { align-self: flex-start; margin-top: 8px; }
.hero-home .hero-in { min-height: 560px; padding-bottom: 140px; }
.hero-home h1 { font-size: clamp(36px, 5vw, 56px); }
.hero-slim .hero-in { min-height: 240px; }
.hero-post .hero-in { min-height: 220px; }
.hero-post h1 { font-size: clamp(24px, 3vw, 34px); max-width: 900px; }
.crumb a { color: var(--cyan); font-weight: 600; text-decoration: none; }
@media (max-width: 760px) {
  .hero { background-position: center; }
  .hero::before { background: linear-gradient(180deg, rgba(19, 39, 68, .92), rgba(28, 53, 94, .86)); }
  .hero-in, .hero-home .hero-in { min-height: 0; padding-top: 48px; padding-bottom: 48px; }
  .hero-home .hero-in { padding-bottom: 110px; }
}

/* sections */
.sec { padding: 80px 0; }
.sec + .sec { padding-top: 40px; }
.grid-bg { background-color: var(--soft);
  background-image: linear-gradient(rgba(0, 178, 227, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(0, 178, 227, .07) 1px, transparent 1px);
  background-size: 28px 28px; }
.split + .wrap > .h-center { margin-top: 88px; }
.sec.grid-bg + .sec, .sec + .sec.grid-bg { padding-top: 80px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.split + .split { margin-top: 72px; }
.split-img img { margin: 0 auto; }
.stack { display: block; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip > :first-child { order: 0; } }

/* home tiles */
.tiles-sec { position: relative; margin-top: -110px; z-index: 2; }
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.tile { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 16px 20px; text-align: center; transition: transform .2s, box-shadow .2s; }
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.tile .ic { width: 78px; height: 74px; margin: 0 auto 12px; }
.tile h3 { font-size: 16px; margin-bottom: 8px; }
.tile p { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.5; }
@media (max-width: 1100px) { .tiles { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); gap: 12px; } .tile { padding: 18px 10px; } }

/* mission */
.mission { text-align: center; }
.h-big { font-size: clamp(48px, 8vw, 104px); line-height: 1; margin-bottom: .35em; }
.h-big .ecg { width: .9em; height: .35em; }
.lead { font-size: clamp(17px, 2vw, 21px); max-width: 860px; margin: 0 auto; color: var(--ink); }

/* market grid */
.mgrid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 28px 20px; margin-top: 8px; }
.mgrid-3 { grid-template-columns: repeat(3, 1fr); max-width: 760px; margin: 0 auto; }
.mtile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 22px 12px; border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: background .2s, box-shadow .2s; }
.mtile:hover { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.mtile-ic .ic { width: 72px; height: 66px; }
.mtile-name { font-family: var(--font-head); font-weight: 700; color: var(--navy); font-size: 16px; }
.mtile-desc { font-size: 13.5px; color: var(--muted); line-height: 1.5; }
.mtile-sm .mtile-ic .ic { width: 58px; height: 52px; }
@media (max-width: 1000px) { .mgrid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 560px) { .mgrid, .mgrid-3 { grid-template-columns: repeat(2, 1fr); } }

/* video */
.video { position: relative; display: block; width: 100%; padding: 0; border: 0; border-radius: var(--radius); overflow: hidden; cursor: pointer; box-shadow: var(--shadow); background: var(--navy); }
.video img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .4s; }
.video:hover img { transform: scale(1.03); }
.play { position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 10px rgba(0, 178, 227, .25); }
.play svg { width: 30px; height: 30px; margin-left: 4px; }
.vmodal { position: fixed; inset: 0; z-index: 200; background: rgba(13, 28, 51, .85); display: grid; place-items: center; padding: 24px; }
.vmodal[hidden] { display: none; }
.vmodal-box { position: relative; width: min(960px, 100%); }
.vmodal-frame { aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; }
.vmodal-frame iframe { width: 100%; height: 100%; border: 0; }
.vmodal-x { position: absolute; top: -46px; right: 0; background: none; border: 0; color: #fff; font-size: 38px; line-height: 1; cursor: pointer; }

/* study cards + carousel */
.scard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 22px; display: flex; flex-direction: column; height: 100%; }
.scard-cat { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan); margin-bottom: 8px; }
.scard h3 { font-size: 17px; line-height: 1.35; margin-bottom: 10px; }
.scard h3 a { text-decoration: none; color: var(--navy); }
.scard h3 a:hover { color: var(--cyan); }
.scard-lead { font-size: 14px; color: var(--muted); line-height: 1.55; flex: 1; }
.scard .more { margin-top: auto; }
.carousel { position: relative; display: flex; align-items: center; gap: 10px; margin-bottom: 32px; }
.car-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 48px) / 3); gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 12px 4px 24px; scrollbar-width: none; flex: 1; }
.car-track::-webkit-scrollbar { display: none; }
.car-track > * { scroll-snap-align: start; }
.car-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; display: grid; place-items: center; }
.car-btn:hover { background: var(--navy); color: #fff; }
.car-btn svg { width: 20px; height: 20px; }
.car-btn.prev svg { transform: rotate(180deg); }
@media (max-width: 900px) { .car-track { grid-auto-columns: 78%; } .car-btn { display: none; } }

/* membership */
.membership img { margin: 18px auto; }
.membership p { color: var(--muted); }

/* contact band */
.contact-band { background: radial-gradient(1200px 500px at 85% 20%, rgba(0, 178, 227, .18), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: #fff; padding: 80px 0; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 560px) 1fr; gap: 64px; align-items: center; }
.cform input[type=text], .cform input[type=email], .cform textarea { width: 100%; font: inherit; font-size: 15px; padding: 13px 16px; border: 1.5px solid transparent; border-radius: 8px; margin-bottom: 14px; background: #fff; color: var(--ink); }
.cform input:focus, .cform textarea:focus { border-color: var(--cyan); outline: none; }
.opts { border: 0; padding: 0; margin: 0 0 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.opts label { cursor: pointer; }
.opts input { position: absolute; opacity: 0; }
.opts span { display: inline-block; padding: 10px 16px; border-radius: 8px; background: rgba(255, 255, 255, .1); border: 1.5px solid rgba(255, 255, 255, .5); font-size: 14px; }
.opts input:checked + span { background: #fff; color: var(--navy); border-color: #fff; }
.opts input:focus-visible + span { outline: 3px solid var(--cyan); outline-offset: 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin-bottom: 18px; color: rgba(255, 255, 255, .9); }
.check input { margin-top: 4px; accent-color: var(--cyan); }
.form-msg { margin-top: 12px; font-size: 14px; }
.locate { display: flex; align-items: center; gap: 18px; padding: 26px; border-radius: var(--radius); background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); color: #fff; text-decoration: none; justify-self: start; }
.locate:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.locate > svg { width: 22px; height: 22px; }
.locate-ic { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--cyan); color: #fff; display: grid; place-items: center; }
.locate-ic svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 32px; } }

/* footer */
.site-footer { background: var(--navy-ink); color: rgba(255, 255, 255, .85); }
.ftr { display: grid; grid-template-columns: 1fr 260px; gap: 48px; padding-top: 56px; padding-bottom: 48px; }
.ftr-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 22px; }
.ftr-head h2 { color: #fff; font-size: 22px; margin: 0; }
.search { display: flex; background: #fff; border-radius: 8px; overflow: hidden; min-width: 260px; }
.search input { border: 0; padding: 10px 14px; font: inherit; font-size: 14px; flex: 1; min-width: 0; }
.search button { border: 0; background: none; padding: 0 12px; color: var(--navy); cursor: pointer; }
.search svg { width: 20px; height: 20px; }
.ftr-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.ftr-cards .scard { padding: 18px; }
.ftr-cards .scard h3 { font-size: 14.5px; }
.ftr-links { border-left: 1px solid rgba(255, 255, 255, .15); padding-left: 40px; }
.ftr-logo { height: 52px; width: auto; margin-bottom: 22px; }
.ftr-links a { color: #fff; text-decoration: none; }
.ftr-links a:hover { color: var(--cyan); }
.ftr-links .plain li { margin-bottom: 10px; font-weight: 600; }
.social { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); color: #fff; transition: background .2s, border-color .2s, color .2s; }
.social a:hover, .ftr-links .social a:hover { background: var(--cyan); border-color: var(--cyan); color: #fff; }
.social svg { width: 18px; height: 18px; }
.ftr-bar { background: #08121F; font-size: 13px; }
.ftr-bar .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 16px; }
.ftr-bar a { color: #fff; }
@media (max-width: 1000px) { .ftr { grid-template-columns: 1fr; } .ftr-links { border-left: 0; padding-left: 0; } .ftr-cards { grid-template-columns: 1fr; } }

/* solutions */
.kc-items { list-style: none; padding: 0; margin: 28px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.kc-items img { width: 64px; height: 64px; margin: 0 auto 10px; }
.kc-items h3 { font-size: 16px; }
@media (max-width: 760px) { .kc-items { grid-template-columns: repeat(2, 1fr); } }
.tech-band, .promo { position: relative; isolation: isolate; color: #fff; background-color: var(--navy); background-position: center; background-size: cover; background-repeat: no-repeat; }
.tech-band::before, .promo::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(19, 39, 68, .95) 0%, rgba(28, 53, 94, .85) 50%, rgba(28, 53, 94, .35) 100%); }
.tech-band p, .promo p { color: rgba(255, 255, 255, .92); }
.seg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 32px; }
.seg-tabs button { font: 600 15px var(--font-body); padding: 11px 20px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.seg-tabs button[aria-selected="true"] { background: var(--navy); color: #fff; }
.seg-panel { display: grid; grid-template-columns: 240px 1fr; gap: 40px; align-items: center; max-width: 960px; margin: 0 auto; }
.seg-panel img { width: 240px; height: 240px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 8px var(--cyan-soft); }
@media (max-width: 760px) { .seg-panel { grid-template-columns: 1fr; text-align: center; } .seg-panel img { margin: 0 auto; width: 180px; height: 180px; } }

/* product cards */
.pcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 900px; margin: 0 auto; }
.pcards.four { grid-template-columns: repeat(4, 1fr); max-width: none; }
.pcard { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px 20px; text-align: center; text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 10px; transition: transform .2s; }
.pcard:hover { transform: translateY(-4px); }
.pcard img { height: 90px; width: auto; object-fit: contain; }
.pcard h3 { margin: 0; }
@media (max-width: 760px) { .pcards, .pcards.four { grid-template-columns: 1fr 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0 0 1.2em; }
.ticks li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-4.8' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }

/* technology parameters */
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; margin-top: 28px; }
.param { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); border-top: 4px solid var(--cyan); }
.param p { margin: 0; font-size: 14.5px; color: var(--muted); }
.param .param-abbr { font-family: var(--font-head); font-weight: 800; font-size: 26px; color: var(--navy); }
.param .param-name { font-weight: 700; color: var(--ink); margin-bottom: 6px; }

/* clinical markets */
.cs { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #fff; }
.cs-card { padding: 0 0 28px; }
.cs-card + .cs-card { border-left: 1px solid var(--line); }
.cs-head { margin: 0; padding: 18px 32px; color: #fff; font-size: 26px; background: var(--navy); }
.cs-sol .cs-head { background: var(--cyan); }
.cs-list { list-style: none; padding: 8px 32px 0; margin: 0; }
.cs-list li { position: relative; padding: 18px 0 18px 46px; border-bottom: 1px solid var(--line); }
.cs-list li:last-child { border-bottom: 0; }
.cs-list li::before { content: ""; position: absolute; left: 0; top: 18px; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--navy); background: var(--cyan-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M15 8.5v8' stroke='%231C355E' stroke-width='2.4' stroke-linecap='round'/%3E%3Ccircle cx='15' cy='21' r='1.5' fill='%231C355E'/%3E%3C/svg%3E") center / 100% no-repeat; }
.cs-sol .cs-list li::before { border-color: var(--cyan); background: var(--cyan) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath d='M9 15.5l4 4 8-8.5' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.cs-note { padding: 0 32px; margin: 4px 0 0; color: var(--muted); font-size: 15px; }
@media (max-width: 800px) { .cs { grid-template-columns: 1fr; } .cs-card + .cs-card { border-left: 0; border-top: 1px solid var(--line); } }
.stats { display: grid; gap: 16px; margin: 8px 0 28px; }
.stat { display: grid; grid-template-columns: 170px 1fr; gap: 18px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.stat p { margin: 0; }
.stat .stat-fig { font-family: var(--font-head); font-weight: 800; font-size: 34px; color: var(--cyan); line-height: 1.1; }
@media (max-width: 560px) { .stat { grid-template-columns: 1fr; gap: 4px; } }
.refs { font-size: 13.5px; color: var(--muted); margin-top: 48px; padding-left: 20px; }
.refs li { margin-bottom: 6px; }
.inline-img { margin: 48px auto 0; max-width: 560px; }

/* clinical studies index */
.sfilter { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; margin-bottom: 32px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font: 600 13.5px var(--font-body); padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--navy); background: #fff; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }
#sq { font: inherit; font-size: 15px; padding: 11px 16px; border: 1.5px solid var(--line); border-radius: 8px; min-width: 280px; }
.sgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.sitem[hidden] { display: none; }
@media (max-width: 1000px) { .sgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .sgrid { grid-template-columns: 1fr; } #sq { min-width: 0; width: 100%; } }

/* article (study posts, blog, privacy) */
.article { max-width: 820px; font-size: 17px; }
.article h2 { font-size: 26px; margin-top: 1.4em; }
.article h3 { font-size: 20px; margin-top: 1.4em; }
.article ul { padding-left: 22px; }
.article li { margin-bottom: 8px; }
.authors { padding: 18px 22px; background: var(--soft); border-left: 4px solid var(--cyan); border-radius: 0 10px 10px 0; font-size: 15.5px; }
.entity { font-weight: 700; color: var(--navy); }
.back { margin-top: 36px; }

/* training */
.tblocks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tblock { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; display: flex; flex-direction: column; }
.tblock .btn { margin-top: auto; align-self: flex-start; }
.svcs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.svc { background: var(--soft); border-radius: var(--radius); padding: 26px; border-top: 4px solid var(--navy); }
.svc:nth-child(even) { border-top-color: var(--cyan); }
.svc ul { list-style: none; padding: 0; margin: 0; }
.svc li { padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
@media (max-width: 1000px) { .tblocks { grid-template-columns: 1fr; } .svcs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .svcs { grid-template-columns: 1fr; } }

/* about */
.timeline { list-style: none; padding: 0; margin: 0 auto; max-width: 860px; position: relative; }
.timeline::before { content: ""; position: absolute; left: 70px; top: 6px; bottom: 6px; width: 2px; background: var(--cyan); }
.timeline li { display: grid; grid-template-columns: 70px 1fr; gap: 36px; padding: 10px 0 18px; position: relative; }
.timeline li::after { content: ""; position: absolute; left: 64px; top: 18px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); }
.timeline .yr { font-family: var(--font-head); font-weight: 800; color: var(--navy); font-size: 20px; }
.timeline p { margin: 0; }
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.person { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 26px; text-align: center; }
.person img { width: 150px; height: 150px; border-radius: 50%; object-fit: cover; margin: 0 auto 16px; box-shadow: 0 0 0 6px var(--cyan-soft); }
.person h3 { margin-bottom: 2px; }
.person .person-role { color: var(--cyan); font-weight: 700; font-size: 14px; margin-bottom: 10px; }
.person p:last-child { font-size: 14.5px; color: var(--muted); margin: 0; }
@media (max-width: 1000px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } .timeline::before { left: 54px; } .timeline li { grid-template-columns: 54px 1fr; gap: 26px; } .timeline li::after { left: 48px; } }

/* contact page, distributors */
.contact-top h1 { margin-bottom: .5em; }
.offices { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; max-width: 900px; margin: 36px auto 0; }
.office, .dist { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 28px; }
.office .locate-ic, .dist .locate-ic { margin-bottom: 14px; }
.dists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.dist h3 { margin-bottom: 4px; }
.dist p { margin: 0 0 6px; font-size: 15px; }
@media (max-width: 700px) { .offices { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ================================================================
   v2: interactions carried over from ni-medical.com
   ================================================================ */
:root { --pulse: #D2232A; } /* the red heartbeat from the NICaS product mark */
.pulse { display: inline-block; color: var(--pulse); width: .55em; height: .55em; vertical-align: top; margin-left: .08em; }
.h-pulse .pulse { width: 1.5em; height: 1.5em; vertical-align: -.35em; margin-left: .05em; }

/* hero: background video (desktop) and side image */
.hero-video { position: absolute; inset: 0; overflow: hidden; z-index: -2; pointer-events: none; }
.hero-video iframe, .hero-video video { position: absolute; object-fit: cover; top: 50%; left: 50%; border: 0; transform: translate(-50%, -50%); opacity: 0; transition: opacity 1s; }
.hero-video.ready iframe, .hero-video.ready video { opacity: 1; }
@media (max-width: 767px), (prefers-reduced-motion: reduce) { .hero-video { display: none; } }
.hero-in { position: relative; }
.hero-in.has-side { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.hero-side { width: 100%; max-width: 560px; justify-self: end; filter: drop-shadow(0 20px 40px rgba(13, 28, 51, .35)); }
@media (max-width: 900px) { .hero-in.has-side { grid-template-columns: 1fr; } .hero-side { justify-self: center; max-width: 420px; } }

/* home: slide-over tiles (old "flip box, slide" effect) */
.tile { position: relative; overflow: hidden; padding: 0; min-height: 230px; cursor: default; outline: none; }
.tile-front, .tile-back { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 22px 14px; text-align: center; }
.tile-front .ic { width: 84px; height: 80px; margin-bottom: 14px; }
.tile-front h3 { margin: 0; font-size: 16px; }
.tile-back { background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; transform: translateY(101%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); }
.tile-back h3 { color: #fff; font-size: 15px; margin-bottom: 10px; }
.tile-back p { color: rgba(255, 255, 255, .9); font-size: 13.5px; line-height: 1.5; margin: 0; }
.tile:hover .tile-back, .tile:focus-visible .tile-back, .tile:focus-within .tile-back { transform: none; }
.tile:focus-visible { box-shadow: 0 0 0 3px var(--cyan), var(--shadow); }
@media (max-width: 600px) { .tile { min-height: 190px; } .tile-front .ic { width: 64px; height: 60px; } }

/* home: mission (heading shrinks, statement rises on hover, as on the old site) */
.mission { position: relative; isolation: isolate; overflow: hidden; min-height: 420px; display: flex; align-items: center; padding: 70px 0 40px; text-align: center; outline: none; }
.mission-line { position: absolute; left: 0; right: 0; top: 50%; width: 100%; height: 270px; transform: translateY(-50%); color: var(--cyan); opacity: 0; z-index: -1; transition: opacity .5s linear; }
.mission-in { width: 100%; }
.mission { --mh: clamp(56px, 9vw, 112px); }
.mission-h { font-size: var(--mh); line-height: 1; margin: 0; transform-origin: center top; transition: transform .5s ease; }
.mission-h .pulse { width: .8em; height: .8em; margin-top: -.35em; }
.mission-text { font-size: clamp(18px, 2vw, 22px); line-height: 1.55; max-width: 900px; margin: 34px auto 0; color: var(--ink); transform-origin: center top; transform: scale(0); transition: transform .5s ease; }
@media (hover: hover) and (min-width: 768px) {
  .mission:hover .mission-h, .mission:focus-visible .mission-h { transform: scale(.5); }
  .mission:hover .mission-text, .mission:focus-visible .mission-text { transform: translateY(calc(var(--mh) * -.5 - 4px)) scale(1); }
  .mission:hover .mission-line, .mission:focus-visible .mission-line { opacity: .12; }
}
@media (hover: none), (max-width: 767px) { .mission-text { transform: none; } .mission-line { opacity: .12; } .mission { min-height: 0; } }
@media (prefers-reduced-motion: reduce) { .mission-text { transform: none; } }

/* market tiles: icon + name at rest; description and button reveal on hover (old "cta solutions") */
.mtile { position: relative; justify-content: flex-start; min-height: 250px; gap: 6px; padding: 18px 12px; }
.mtile:hover { background: transparent; box-shadow: none; }
.mtile-ic { display: block; transition: transform .3s ease-in, opacity .3s ease-in; transform-origin: center top; }
.mtile-ic .ic { width: 82px; height: 74px; }
.mtile-name { transition: transform .3s ease-in; }
.mtile-desc, .mtile-btn { opacity: 0; transition: opacity .3s ease-in; }
.mtile-btn { display: inline-block; margin-top: 8px; padding: 8px 16px; border: 1.5px solid var(--navy); border-radius: 6px; font-size: 13px; font-weight: 600; color: var(--navy); }
.mtile:hover .mtile-btn { background: var(--navy); color: #fff; }
@media (hover: hover) {
  .mtile:hover .mtile-ic, .mtile:focus-visible .mtile-ic { transform: translateY(-10%) scale(.6); opacity: .55; }
  .mtile:hover .mtile-name, .mtile:focus-visible .mtile-name { transform: translateY(-34px) scale(.92); }
  .mtile:hover .mtile-desc, .mtile:hover .mtile-btn, .mtile:focus-visible .mtile-desc, .mtile:focus-visible .mtile-btn { opacity: 1; transform: translateY(-34px); }
  .mtile-desc, .mtile-btn { transition: opacity .3s ease-in, transform .3s ease-in; }
}
@media (hover: none) { .mtile-desc, .mtile-btn { opacity: 1; } .mtile { min-height: 0; } }

/* study cards: category icon */
.scard-ic { display: block; margin-bottom: 12px; }
.scard-ic .ic { width: 46px; height: 42px; }
.scard-ic img { width: 46px; height: 46px; object-fit: contain; }

/* market pages: original line icons beside challenges / solutions */
.cs-list li.has-ic { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: center; padding-left: 0; }
.cs-list li.has-ic::before { display: none; }
.cs-ic { width: 40px; height: 40px; }

/* solutions page */
.sol-block { position: relative; }
.sol-arrow { position: absolute; height: 110px; width: auto; max-width: 220px; bottom: -96px; pointer-events: none; opacity: .9; filter: hue-rotate(185deg) saturate(1.2); }
.sol-arrow-0 { left: 48%; }
.sol-arrow-1 { left: 38%; transform: scaleX(-1); }
@media (max-width: 900px) { .sol-arrow { display: none; } }
.dash-band { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); color: rgba(255, 255, 255, .92); }
.dash-band .split-img img { margin: 0; }
.band-right .narrow-left { display: flex; flex-direction: column; align-items: flex-end; }
.band-right .narrow-left > * { width: 100%; max-width: 520px; }
.band-right .narrow-left > .btn { width: auto; align-self: flex-start; margin-left: calc(100% - 520px); }
@media (max-width: 760px) { .band-right .narrow-left > .btn { margin-left: 0; } }
.tech-band.band-right::before { background: linear-gradient(270deg, rgba(19, 39, 68, .96) 0%, rgba(28, 53, 94, .88) 45%, rgba(28, 53, 94, .25) 100%); }
@media (max-width: 760px) { .band-right .narrow-left { align-items: stretch; } }
.roles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.role { position: relative; min-height: 470px; background-size: cover; background-position: center top; color: #fff; outline: none; isolation: isolate; }
.role::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(28, 53, 94, .55) 0%, rgba(28, 53, 94, 0) 35%); transition: background .3s ease-in; }
.role-circle { display: none; }
.role-in { padding: 22px 18px; }
.role h3 { color: #fff; font-size: 17px; text-align: center; margin: 0; transition: transform .3s ease-in; }
.role h3 small { display: block; font-size: 12.5px; font-weight: 600; opacity: .9; margin-top: 4px; }
.role-text { font-size: 13.5px; line-height: 1.55; opacity: 0; transform: translateY(40px); transition: opacity .3s ease-in, transform .3s ease-in; margin-top: 14px; }
.role-text p { margin: 0 0 .7em; }
.role:hover::before, .role:focus-visible::before { background: rgba(19, 39, 68, .9); }
.role:hover .role-text, .role:focus-visible .role-text { opacity: 1; transform: none; }
.role + .role { border-left: 1px solid rgba(255, 255, 255, .15); }
@media (max-width: 1000px) {
  .roles { grid-template-columns: 1fr; box-shadow: none; border-radius: 0; gap: 28px; overflow: visible; }
  .role { min-height: 0; background: none !important; color: var(--ink); text-align: center; }
  .role::before { display: none; }
  .role + .role { border-left: 0; }
  .role-circle { display: block; width: 140px; height: 140px; border-radius: 50%; object-fit: cover; margin: 0 auto 6px; }
  .role h3 { color: var(--navy); }
  .role-text { opacity: 1; transform: none; color: var(--ink); }
}

/* training page */
.it-split { display: grid; grid-template-columns: 1fr 1fr; min-height: 380px; }
.it-img { background-size: cover; background-position: center; min-height: 280px; }
.it-panel { background: linear-gradient(135deg, var(--navy), var(--navy-deep)); color: rgba(255, 255, 255, .92); display: flex; align-items: center; }
.it-in { padding: 56px max(24px, 6vw) 56px 56px; max-width: 640px; }
@media (max-width: 800px) { .it-split { grid-template-columns: 1fr; } .it-in { padding: 40px 24px; } }
.svc-title { margin-bottom: 0; }
.svc-arrows { display: block; width: 100%; height: 90px; color: var(--cyan); margin: 6px 0 10px; }
.svcs .svc { text-align: center; background: none; border-top: 0; padding: 10px 14px; }
.svcs .svc h3 { min-height: 2.5em; display: flex; align-items: flex-end; justify-content: center; }
.svcs .svc li { border-bottom: 0; color: var(--muted); padding: 4px 0; }
@media (max-width: 1000px) { .svc-arrows { display: none; } }

/* about: square photo cards, text left (as on the old site) */
.people { gap: 34px 28px; }
.person { text-align: left; padding: 0; box-shadow: none; background: none; }
.person img { width: 100%; height: auto; aspect-ratio: 1 / 1; border-radius: var(--radius); box-shadow: var(--shadow); margin: 0 0 16px; filter: grayscale(.15); }
.person .person-role { margin-bottom: 8px; }

/* distributors accordion */
.accs { display: grid; gap: 18px; }
.acc { background: #fff; border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 22px; font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--navy); }
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after { content: ""; margin-left: auto; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s; }
.acc[open] > summary::after { transform: rotate(-135deg); }
.acc .locate-ic { width: 40px; height: 40px; }
.acc .locate-ic svg { width: 20px; height: 20px; }
.acc-body { padding: 0 22px 18px; display: grid; gap: 10px; }
.acc-in { box-shadow: none; border: 1px solid var(--line); }
.acc-in summary { font-size: 16px; padding: 12px 16px; }
.acc-in .acc-body { padding: 0 16px 14px; }
.dist { box-shadow: none; padding: 0; background: none; }
.dist h4 { margin: 0 0 4px; color: var(--navy); }

/* contact band world map */
.contact-band.has-map { background: url("../../app/uploads/2022/05/bg-footer-min.png") right center / auto 100% no-repeat, radial-gradient(1200px 500px at 85% 20%, rgba(0, 178, 227, .18), transparent 60%), linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%); }

/* newsletter pop-up */
.nl-pop { position: fixed; inset: 0; z-index: 180; background: rgba(13, 28, 51, .55); display: grid; place-items: center; padding: 20px; }
.nl-pop[hidden] { display: none; }
.nl-box { position: relative; width: min(460px, 100%); background: linear-gradient(160deg, var(--navy), var(--navy-deep)); color: #fff; border-radius: 16px; padding: 34px 30px 28px; box-shadow: var(--shadow-lg); }
.nl-box h2 { color: #fff; font-size: 26px; }
.nl-ic { width: 56px; height: 48px; color: var(--cyan); margin-bottom: 12px; }
.nl-x { position: absolute; top: 10px; right: 14px; background: none; border: 0; color: #fff; font-size: 30px; cursor: pointer; line-height: 1; }
.nl-form input[type=email] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 8px; border: 0; margin-bottom: 12px; }
.btn-solid { background: var(--cyan); color: #fff; border-color: var(--cyan); }
.btn-solid:hover { background: #fff; color: var(--navy); border-color: #fff; }

/* accessibility toolbar (replaces the old site's plugin) */
.a11y { position: fixed; right: 0; top: 140px; z-index: 120; }
.a11y-btn { width: 46px; height: 46px; border: 0; border-radius: 8px 0 0 8px; background: var(--navy); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: var(--shadow); }
.a11y-btn svg { width: 26px; height: 26px; }
.a11y-panel { position: absolute; right: 0; top: 52px; width: 230px; background: #fff; border-radius: 10px 0 0 10px; box-shadow: var(--shadow-lg); padding: 14px; }
.a11y-panel[hidden] { display: none; }
.a11y-title { font-weight: 700; color: var(--navy); margin: 0 0 8px; }
.a11y-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.a11y-panel button { width: 100%; text-align: left; font: 500 14px var(--font-body); padding: 8px 10px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }
.a11y-panel button[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
html.a11y-grayscale body > *:not(.a11y) { filter: grayscale(1); }
html.a11y-contrast body { background: #000 !important; }
html.a11y-contrast body > *:not(.a11y) { filter: contrast(1.6); }
html.a11y-negative body > *:not(.a11y) { filter: invert(1) hue-rotate(180deg); }
html.a11y-light body, html.a11y-light .sec, html.a11y-light .grid-bg, html.a11y-light .hero, html.a11y-light .contact-band, html.a11y-light .site-footer, html.a11y-light .dash-band, html.a11y-light .it-panel, html.a11y-light .tech-band, html.a11y-light .promo { background: #fff !important; color: #000 !important; }
html.a11y-light .hero::before, html.a11y-light .tech-band::before, html.a11y-light .promo::before { display: none; }
html.a11y-light h1, html.a11y-light h2, html.a11y-light h3, html.a11y-light p, html.a11y-light li, html.a11y-light a { color: #000 !important; }
html.a11y-underline a { text-decoration: underline !important; }
html.a11y-readable body, html.a11y-readable h1, html.a11y-readable h2, html.a11y-readable h3 { font-family: Arial, Helvetica, sans-serif !important; letter-spacing: .01em; }
