/* Powers Medical Group preview by West Media Group. Shared by every page.
   Logo violet #410099 is sampled from PowersMedicalGroup_logo_NEW.png. Display face is Cinzel (engraved capitals,
   echoing the logo's Roman capitals and its big initial P), body is Inter Tight. Texture: scanlines on three dark bands. */
:root {
  --violet: #410099;
  --violet-hover: #55239f;
  --deep: #1b0a3a;
  --deep-2: #2b1458;
  --ink: #1e1433;
  --ink-soft: #4f4768;
  --paper: #faf8fd;
  --paper-2: #f0ebf8;
  --paper-3: #e5ddf2;
  --white: #fdfcff;
  --hair: #d8cdea;
  --tan: #cdb487;
  --tan-deep: #7d6128;
  --ok: #2d6a4f;
  --display: "Cinzel", "Trajan Pro", Georgia, serif;
  --sans: "Inter Tight", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 32px);
  --top: 40px;
  --hd: 88px;
  --r: 6px;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 152px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 18px/1.6 var(--sans); padding-top: calc(var(--top) + var(--hd)); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--violet); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--violet-hover); }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .topbar :focus-visible, .foot :focus-visible, .banner :focus-visible { outline-color: var(--tan); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: .005em; }
p { margin: 0 0 16px; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding-inline: var(--gutter); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -80px; background: var(--violet); color: var(--white); padding: 12px 16px; z-index: 300; border-radius: 4px; }
.skip:focus { top: 8px; }
.h2 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; color: var(--deep); }
.dark .h2, .dark h3 { color: var(--white); }
.lede { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.55; color: var(--ink-soft); max-width: 56ch; }
.rule { height: 1px; background: linear-gradient(90deg, transparent, var(--hair) 12%, var(--hair) 88%, transparent); border: 0; margin: 0; }
.scan { position: relative; isolation: isolate; }
.scan::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 4px); }
.dark { background: var(--deep); color: #ece5f7; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 12px; padding: 16px 24px; border-radius: var(--r); border: 1.5px solid var(--violet); background: var(--violet); color: var(--white); font: 600 17px/1.15 var(--sans); letter-spacing: .01em; text-decoration: none; white-space: nowrap; transition: background-color .25s ease-out, color .25s ease-out, border-color .25s ease-out, transform .25s ease-out; cursor: pointer; }
.btn:hover { background: var(--violet-hover); border-color: var(--violet-hover); color: var(--white); transform: translateY(-1px); }
.btn.ghost { background: transparent; color: var(--violet); }
.btn.ghost:hover { background: var(--paper-3); color: var(--violet); }
.btn.tan { background: var(--tan); border-color: var(--tan); color: var(--deep); }
.btn.tan:hover { background: #dac79f; border-color: #dac79f; color: var(--deep); }
.btn.edge { background: transparent; border-color: var(--tan); color: var(--white); }
.btn.edge:hover { background: rgba(205,180,135,.16); color: var(--white); }
.btn .ic { font-size: 18px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.ic-c { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--paper-3); color: var(--violet); font-size: 18px; flex: none; }
.dark .ic-c { background: rgba(205,180,135,.16); color: var(--tan); }

/* Top bar and header (fixed, so the collapse never shifts the page) */
.hdwrap { position: fixed; inset: 0 0 auto 0; z-index: 100; transition: transform .35s ease-out; }
html.scrolled .hdwrap { transform: translateY(calc(var(--top) * -1)); }
.topbar { height: var(--top); background: #140828; color: #e8e0f4; font-size: 15px; line-height: 1.2; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 100%; }
.topbar a { color: #f3edfb; text-decoration: none; }
.topbar a:hover { color: var(--tan); }
.topbar .tb-l, .topbar .tb-m, .topbar .tb-r { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.topbar .tb-m { color: #cfc4e2; }
.topbar i { color: var(--tan); }
.hdr { height: var(--hd); background: var(--paper); border-bottom: 1px solid var(--hair); position: relative; }
.hdr .wrap { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 24px; }
.logo { display: block; flex: none; }
.logo-svg { display: block; height: 56px; width: auto; color: var(--violet); fill: currentColor; }
.nav { display: flex; align-items: stretch; height: 100%; gap: 4px; margin-left: auto; }
.nav > li { display: flex; align-items: stretch; }
.nav > li > a, .nav > li > button { display: flex; align-items: center; gap: 8px; padding: 0 20px; background: none; border: 0; font: 500 17px/1.15 var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .25s ease-out; }
.nav > li > a:hover, .nav > li > button:hover, .nav > li:focus-within > button, .nav > li:hover > button { background: rgba(65,0,153,.05); color: var(--violet); }
.nav [aria-current="page"], .nav .cur > button { background: var(--paper-2); box-shadow: inset 0 2px 0 var(--violet); color: var(--violet); }
.nav .chev { font-size: 12px; transition: transform .25s ease-out; }
.nav li:hover .chev, .nav li.open .chev { transform: rotate(180deg); }
.hdr .call { flex: none; }
.menu-btn { display: none; }
.mega { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); box-shadow: 0 24px 48px -24px rgba(27,10,58,.35); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity .25s ease-out, transform .25s ease-out, visibility 0s linear .25s; }
.has-mega:hover > .mega, .has-mega.open > .mega, .has-mega:focus-within > .mega { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mega .wrap { display: grid; grid-template-columns: 280px 1fr; gap: 32px; padding-block: 28px; }
.mega-hub h3 { font-size: 26px; line-height: 1.15; color: var(--deep); margin-bottom: 12px; }
.mega-hub p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.mega-kids { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.mega-kids a { display: block; text-decoration: none; color: var(--ink); border: 1px solid var(--hair); border-radius: var(--r); overflow: hidden; background: var(--white); transition: border-color .25s ease-out, transform .25s ease-out; }
.mega-kids a:hover { border-color: var(--violet); transform: translateY(-2px); color: var(--violet); }
.mega-kids .ph { aspect-ratio: 4 / 3; background: #f3f0f8; display: grid; place-items: center; overflow: hidden; }
.mega-kids .ph img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.mega-kids .t { display: block; padding: 12px 12px 4px; font: 600 15px/1.2 var(--sans); }
.mega-kids .s { display: block; padding: 0 12px 12px; font-size: 14px; line-height: 1.3; color: var(--ink-soft); }
.mega.small .wrap { grid-template-columns: 280px 1fr; }
.mega.small .mega-kids { grid-template-columns: repeat(3, 1fr); max-width: 760px; }

/* Bottom sheet menu and phone bar */
.scrim { position: fixed; inset: 0; background: rgba(20,8,40,.5); opacity: 0; visibility: hidden; transition: opacity .25s ease-out, visibility 0s linear .25s; z-index: 190; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; max-height: 88vh; overflow: auto; background: var(--white); border-radius: 20px 20px 0 0; z-index: 200; transform: translateY(102%); visibility: hidden; transition: transform .35s ease-out, visibility 0s linear .35s; padding: 20px var(--gutter) 24px; box-shadow: 0 -16px 48px rgba(20,8,40,.3); }
html.sheet-open .sheet { transform: none; visibility: visible; transition-delay: 0s; }
html.sheet-open .scrim { opacity: 1; visibility: visible; transition-delay: 0s; }
html.sheet-open { overflow: hidden; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sheet-top .t { font: 600 22px var(--display); color: var(--deep); }
.sheet-x { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--hair); background: var(--paper); font-size: 20px; cursor: pointer; }
.sheet .grp { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin: 20px 0 8px; }
.sheet ul a { display: flex; align-items: center; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--hair); color: var(--ink); text-decoration: none; font-weight: 500; }
.sheet ul .th { width: 64px; height: 48px; border-radius: 4px; overflow: hidden; background: #f3f0f8; flex: none; }
.sheet ul .th img { width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; }
.sheet .btn-row { margin-top: 24px; }
.sheet .btn { flex: 1; justify-content: center; }
.bar { display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; background: var(--deep); border-top: 1px solid rgba(205,180,135,.4); padding: 8px var(--gutter) calc(8px + env(safe-area-inset-bottom)); gap: 8px; }
.bar a { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: var(--r); color: var(--white); text-decoration: none; font: 600 16px var(--sans); border: 1.5px solid rgba(205,180,135,.5); }
.bar a.main { background: var(--tan); color: var(--deep); border-color: var(--tan); }

/* Hero (work rising from the bottom edge) */
.facts { display: flex; flex-wrap: wrap; gap: 12px 32px; margin-top: 32px; font-size: 16px; color: var(--ink-soft); }
.facts li { display: flex; align-items: center; gap: 12px; }
.facts .ic-c { width: 36px; height: 36px; font-size: 15px; }
.hero-p { position: absolute; right: 9%; bottom: 0; width: min(23vw, 330px); height: auto; z-index: 0; pointer-events: none; }

/* Row 2: why them */
.h-plain { font: 600 26px/1.15 var(--display); color: var(--deep); margin: 0 0 16px; }
.why { background: var(--white); position: relative; z-index: 2; }

/* Five lines (overhanging cards over a scanline band) */

/* Territory */
.territory { background: var(--paper-2); padding-block: 88px; position: relative; overflow: hidden; }
.territory .wrap { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.map-frame { background: var(--white); border: 1px solid var(--hair); border-radius: 8px; padding: 12px; box-shadow: 0 24px 40px -32px rgba(27,10,58,.5); }
.map-frame svg { width: 100%; height: auto; display: block; border-radius: 4px; }
.map-key { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px 8px 4px; font-size: 15px; color: var(--ink-soft); }
.map-key span { display: inline-flex; align-items: center; gap: 8px; }
.map-key i { width: 20px; height: 12px; border-radius: 2px; display: inline-block; }
.map-key .k-t { background: rgba(65,0,153,.22); border: 2px solid var(--violet); }
.map-key .k-r { height: 0; border-top: 2px dashed var(--tan-deep); border-radius: 0; }
.regions { margin: 24px 0 28px; }
.regions li { padding: 16px 0; border-top: 1px solid var(--hair); font: 600 clamp(22px, 2.2vw, 28px)/1.15 var(--display); color: var(--deep); }
.regions li:last-child { border-bottom: 1px solid var(--hair); }
.regions li small { display: block; font: 400 16px/1.4 var(--sans); color: var(--ink-soft); margin-top: 4px; }
.hosp { margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--hair); grid-column: 1 / -1; }
.hosp h3 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; color: var(--deep); margin-bottom: 24px; }
.hosp ul { columns: 4 200px; column-gap: 32px; }
.hosp li { break-inside: avoid; padding: 12px 0; border-bottom: 1px solid var(--hair); font-size: 19px; font-weight: 500; }
.sm-map .st { fill: #ece8f3; stroke: #cfc5e0; stroke-width: 1; }
.sm-map .st.f { fill: #e3ddef; }
.sm-map .water { fill: #f8f6fc; }
.sm-map .ter { fill: rgba(65,0,153,.18); stroke: var(--violet); stroke-width: 3; stroke-linejoin: round; }
.sm-map .ring { fill: none; stroke: #8c7237; stroke-width: 1.2; stroke-dasharray: 3 6; opacity: .8; }
.sm-map text { font-family: var(--display); font-weight: 600; fill: #5a4d78; letter-spacing: .22em; font-size: 15px; }
.sm-map .city { font-family: var(--sans); font-weight: 600; letter-spacing: 0; font-size: 16px; fill: var(--deep); paint-order: stroke; stroke: #fdfcff; stroke-width: 4px; }
.sm-map .rl { font-family: var(--sans); font-weight: 600; letter-spacing: .02em; font-size: 14px; fill: #6d5620; paint-order: stroke; stroke: #fdfcff; stroke-width: 4px; }
.sm-map .dot { fill: var(--deep); }
.sm-map .home { fill: var(--violet); stroke: #fdfcff; stroke-width: 3; }
.sm-map .ping { fill: none; stroke: var(--violet); stroke-width: 2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.sm-map .tag rect { fill: var(--violet); }
.sm-map .tag text { fill: #fdfcff; letter-spacing: .02em; font-family: var(--sans); font-size: 16px; font-weight: 600; stroke: none; }
.js .sm-map .ter { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 2.4s ease-in-out, fill-opacity 1.2s ease-out 1.6s; }
.js .sm-map.drawn .ter { stroke-dashoffset: 0; fill-opacity: 1; }
.js .sm-map .ring { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s ease-in-out .4s; }
.js .sm-map.drawn .ring { stroke-dasharray: 3 6; stroke-dashoffset: 0; }
.sm-map.drawn .ping { animation: ping 2.4s ease-out 2.4s 3; }
@keyframes ping { 0% { opacity: .7; transform: scale(.6); } 100% { opacity: 0; transform: scale(3.2); } }

/* Banner and footer */
.banner { background: var(--violet); color: var(--white); padding-block: 72px; position: relative; border-top: 1px solid rgba(205,180,135,.55); border-bottom: 1px solid rgba(205,180,135,.55); }
.banner .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) auto; gap: 40px; align-items: center; }
.banner h2 { font-size: clamp(30px, 3.8vw, 50px); line-height: 1.1; color: var(--white); }
.banner .num { display: block; margin-top: 16px; font: 600 clamp(36px, 5.2vw, 72px)/1 var(--display); letter-spacing: .01em; color: var(--tan); text-decoration: none; font-variant-numeric: lining-nums tabular-nums; }
.banner .num:hover { color: #e6d5ae; }
.banner p { margin: 16px 0 0; color: #e0d4f5; font-size: 19px; }
.foot { background: var(--deep); color: #d8cdea; padding-top: 72px; }
.foot .wrap.main { display: grid; grid-template-columns: 1fr 240px 1fr; gap: clamp(24px, 5vw, 72px); align-items: start; padding-bottom: 56px; }
.foot h4 { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .16em; color: var(--tan); margin-bottom: 16px; }
.foot a { color: #f1eafb; text-decoration: none; }
.foot a:hover { color: var(--tan); text-decoration: underline; }
.foot .stack li { margin-bottom: 8px; display: flex; gap: 12px; align-items: baseline; font-size: 18px; }
.foot .stack i { color: var(--tan); width: 20px; text-align: center; }
.foot .stack.big li { font: 600 clamp(24px, 2.4vw, 32px)/1.2 var(--display); }
.seal { width: 240px; height: 240px; margin: 0 auto; }
.seal svg { width: 100%; height: 100%; overflow: visible; }
.seal .ring-t { font-family: var(--display); font-weight: 600; font-size: 15.5px; letter-spacing: .34em; fill: var(--tan); }
.seal .ring-l { fill: none; stroke: var(--tan); stroke-width: 1.2; opacity: .9; }
.js .seal .ring-l { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.6s ease-in-out; }
.js .seal.drawn .ring-l { stroke-dashoffset: 0; }
.foot .strip { border-top: 1px solid rgba(205,180,135,.28); padding-block: 20px; font-size: 15px; color: #b9acd2; }
.foot .strip .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.foot .strip a { color: #d8cdea; }

/* Interior page heads */
.phead { position: relative; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--hair); }
.phead::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(to bottom, transparent 0 55px, rgba(65,0,153,.09) 55px 56px); -webkit-mask-image: linear-gradient(90deg, #000 0, transparent 70%); mask-image: linear-gradient(90deg, #000 0, transparent 70%); pointer-events: none; }
.phead .wrap { position: relative; min-height: 320px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: end; }
.phead .copy { padding-block: 56px 56px; }
.phead h1 { font-size: clamp(32px, 4vw, 54px); line-height: 1.06; color: var(--violet); }
.phead .lede { margin: 20px 0 0; }
.phead .art { align-self: end; justify-self: end; width: min(100%, 460px); }
.phead .art { mix-blend-mode: multiply; }
.phead .art img { width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18%); mask-image: linear-gradient(90deg, transparent 0, #000 18%); }
.crumb { font-size: 15px; color: var(--ink-soft); margin-bottom: 16px; }
.crumb a { color: var(--ink-soft); }

/* Products: filterable index */
.catalog { padding-block: 72px 56px; background: var(--white); }
.cat-tools { display: grid; grid-template-columns: minmax(0, 420px) 1fr; gap: 24px 32px; align-items: center; margin: 32px 0 24px; }
.search { position: relative; }
.search input { width: 100%; height: 56px; padding: 0 20px 0 52px; border-radius: var(--r); border: 1.5px solid var(--hair); background: var(--paper); font: 500 18px var(--sans); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(65,0,153,.18); }
.search i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--violet); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 1.5px solid var(--hair); background: var(--paper); border-radius: 999px; padding: 10px 18px; font: 500 16px/1.1 var(--sans); cursor: pointer; transition: background-color .25s ease-out, border-color .25s ease-out, color .25s ease-out; }
.pill:hover { border-color: var(--violet); color: var(--violet); }
.pill[aria-pressed="true"] { background: var(--violet); border-color: var(--violet); color: var(--white); }
.count { font: 600 15px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.cat-item { display: grid; grid-template-columns: 64px 1fr; gap: 4px 16px; align-items: center; border: 1px solid var(--hair); border-radius: var(--r); padding: 12px 16px; background: var(--white); transition: border-color .25s ease-out; }
.cat-item:hover { border-color: var(--violet); }
.cat-item[hidden] { display: none; }
.cat-item .bl { grid-row: 1 / 3; height: 44px; display: grid; place-items: center; }
.cat-item .bl img { max-height: 36px; max-width: 64px; width: auto; mix-blend-mode: multiply; }
.cat-item .nm { font: 600 17px/1.25 var(--sans); color: var(--deep); }
.cat-item .ask { font-size: 15px; display: flex; gap: 16px; }
.cat-item .ask a { text-decoration: none; font-weight: 600; }
.cat-item .ask a:hover { text-decoration: underline; }
.cat-empty { padding: 32px 0; color: var(--ink-soft); }

/* Products: line sections (five different compositions) */
.line { padding-block: 88px; position: relative; }
.line:nth-of-type(even) { background: var(--paper-2); }
.line .wrap { display: grid; gap: clamp(32px, 5vw, 72px); align-items: center; }
.line h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--deep); margin-bottom: 8px; }
.line .kind { font: 600 20px/1.3 var(--sans); color: var(--violet); margin: 0 0 20px; }
.line .logo-chip { display: inline-grid; place-items: center; height: 72px; padding: 12px 28px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); margin-bottom: 24px; }
.line .logo-chip img { max-height: 44px; width: auto; mix-blend-mode: multiply; }
.items { margin: 20px 0 24px; max-width: 520px; }
.items li { padding: 12px 0; border-top: 1px solid var(--hair); font-size: 18px; font-weight: 500; display: flex; align-items: center; gap: 12px; }
.items li:last-child { border-bottom: 1px solid var(--hair); }
.items li::before { content: ""; width: 8px; height: 8px; background: var(--tan); transform: rotate(45deg); flex: none; }
.docs { display: grid; gap: 12px; margin: 24px 0; max-width: 560px; }
.docs a { display: flex; align-items: center; gap: 16px; padding: 16px 20px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); text-decoration: none; color: var(--deep); font: 600 17px/1.25 var(--sans); transition: border-color .25s ease-out, transform .25s ease-out; }
.docs a:hover { border-color: var(--violet); color: var(--violet); transform: translateX(4px); }
.docs i { color: var(--violet); font-size: 22px; }
.docs small { display: block; font: 400 14px/1.3 var(--sans); color: var(--ink-soft); }
.shots { position: relative; }
.shots figure { margin: 0; }
.frame { background: #f3f0f8; border: 1px solid var(--hair); border-radius: 8px; overflow: hidden; box-shadow: 0 24px 40px -32px rgba(27,10,58,.5); }
.frame img { width: 100%; }
.frame.multiply img { mix-blend-mode: multiply; }
.line .shots { align-self: start; position: sticky; top: 168px; }
.line.a .wrap { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: start; }
.line.a .shots .f2 { position: absolute; width: 38%; right: -4%; bottom: -10%; }
.line.b .wrap { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); align-items: start; }
.line.b .shots .f2 { position: absolute; width: 40%; left: -6%; bottom: -12%; }
.line.c { background: var(--deep); color: #e4dbf3; }
.line.c h2, .line.c .items li { color: var(--white); }
.line.c .kind { color: var(--tan); }
.line.c .items li, .line.c .items li:last-child { border-color: rgba(205,180,135,.3); }
.line.c .wrap { grid-template-columns: minmax(0, 1fr); }
.line.c .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.line.c .frame { background: #dfe3ea; border-color: rgba(205,180,135,.4); margin-top: 48px; }
.line.c .frame img { height: 360px; object-fit: cover; object-position: 50% 40%; }
.line.c .docs a { background: rgba(255,255,255,.06); border-color: rgba(205,180,135,.4); color: var(--white); }
.line.c .docs small { color: #c9bdde; }
.line.c .docs i { color: var(--tan); }
.line.d .wrap { grid-template-columns: minmax(0, 1fr); }
.line.d .band { background: #283d85; border-radius: 8px; overflow: hidden; }
.line.d .cols { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 5vw, 72px); align-items: start; margin-top: 8px; }
.line.e .wrap { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); }
.line.e .pack { max-width: 360px; }
.brandlink { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 17px; }

/* About */
.story { padding-block: 80px; background: var(--white); }
.story .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.story .cols p { font-size: 20px; line-height: 1.6; }
.story .cols p:first-child { font-size: clamp(22px, 2.3vw, 28px); line-height: 1.45; color: var(--deep); border-left: 6px solid var(--violet); padding-left: 28px; }
.who { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px; padding: 28px; }
.who .portrait { aspect-ratio: 1 / 1; border-radius: 4px; background: repeating-linear-gradient(to bottom, #ece6f6 0 27px, #e1d9ef 27px 28px); display: grid; place-items: center; margin-bottom: 20px; border: 1px dashed #b7a6d6; }
.who .portrait img { width: 44%; opacity: .5; }
.who .portrait span { position: absolute; }
.who h3 { font-size: 26px; line-height: 1.15; color: var(--deep); }
.who .role { color: var(--ink-soft); margin: 4px 0 16px; }
.who .note { font-size: 15px; color: var(--ink-soft); margin: 12px 0 0; }
.how { padding-block: 80px; background: var(--paper-2); }
.how .three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 40px; border-top: 1px solid var(--hair); }
.how .three > div { padding: 32px 32px 8px 0; }
.how .three > div + div { padding-left: 32px; border-left: 1px solid var(--hair); }
.how h3 { font-size: 24px; line-height: 1.2; color: var(--deep); margin: 16px 0 12px; }
.how p { color: var(--ink-soft); }
.qa { padding-block: 88px; background: var(--white); }
.qa-group { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 32px 48px; padding-block: 40px; border-top: 1px solid var(--hair); }
.qa-group > h3 { font-size: 26px; line-height: 1.15; color: var(--deep); display: flex; align-items: center; gap: 16px; align-self: start; position: sticky; top: 160px; }
.qa-group dl { margin: 0; }
.qa-group dt { font: 600 20px/1.3 var(--sans); color: var(--deep); margin-top: 28px; }
.qa-group dt:first-child { margin-top: 0; }
.qa-group dd { margin: 8px 0 0; color: var(--ink); max-width: 66ch; }
.qa-group dd .flag { display: inline-block; font: 600 13px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; padding: 4px 8px; border: 1px solid var(--tan-deep); color: var(--tan-deep); border-radius: 3px; margin-left: 8px; vertical-align: middle; }
.oldsite { padding-block: 64px; background: var(--paper-2); }
.oldsite .grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 24px; }
.oldsite h4 { font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 12px; }
.oldsite li { padding: 8px 0; border-top: 1px solid var(--hair); font-size: 17px; }

/* Contact */
.contact { padding-block: 72px 88px; background: var(--white); }
.contact .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(32px, 6vw, 88px); align-items: start; }
.reach { border-top: 1px solid var(--hair); }
.reach a.row { display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; padding: 20px 0; border-bottom: 1px solid var(--hair); text-decoration: none; color: var(--deep); transition: padding-left .25s ease-out; }
.reach a.row:hover { padding-left: 8px; color: var(--violet); }
.reach .lab { display: block; font: 600 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .14em; color: var(--ink-soft); margin-bottom: 4px; }
.reach .val { font: 600 clamp(24px, 2.6vw, 34px)/1.15 var(--display); font-variant-numeric: lining-nums tabular-nums; word-break: break-word; }
.reach .val.sm { font-size: clamp(18px, 1.9vw, 24px); }
.reach .val.mail { font-family: var(--sans); font-weight: 600; font-size: clamp(18px, 1.8vw, 22px); letter-spacing: 0; }
.reach .plain { padding: 20px 0; display: grid; grid-template-columns: 56px 1fr; gap: 16px; align-items: center; border-bottom: 1px solid var(--hair); }
.form { background: var(--paper-2); border: 1px solid var(--hair); border-radius: 8px; padding: clamp(24px, 3vw, 40px); }
.form h2 { font-size: 30px; line-height: 1.15; color: var(--deep); margin-bottom: 8px; }
.stubnote { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--tan-deep); border-radius: var(--r); background: #f7f0e1; color: #5b4713; font-size: 16px; line-height: 1.4; margin: 16px 0 24px; }
.form .f { display: grid; gap: 6px; margin-bottom: 16px; }
.form label { font: 600 15px/1.2 var(--sans); color: var(--deep); }
.form input, .form select, .form textarea { width: 100%; padding: 14px 16px; border: 1.5px solid var(--hair); border-radius: var(--r); background: var(--white); font: 400 18px var(--sans); color: var(--ink); }
.form textarea { min-height: 120px; resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 3px rgba(65,0,153,.18); }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form .sent { display: none; margin-top: 16px; padding: 16px; border: 1px solid var(--violet); border-radius: var(--r); background: var(--white); }
.form.done .sent { display: block; }
.logos-row { padding-block: 48px; background: var(--paper-2); border-top: 1px solid var(--hair); }
.logos-row .wrap { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.logos-row a { display: grid; place-items: center; height: 88px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); transition: border-color .25s ease-out, transform .25s ease-out; }
.logos-row a:hover { border-color: var(--violet); transform: translateY(-2px); }
.logos-row img { max-height: 44px; max-width: 76%; width: auto; mix-blend-mode: multiply; }

/* Motion: calm entrances only (transform and opacity), off under reduced motion */
.js .rv { opacity: 0; transform: translateY(16px); transition: opacity .7s ease-out, transform .7s ease-out; transition-delay: var(--d, 0s); }
.js .rv.in { opacity: 1; transform: none; }
.js .hero .rv { transition-delay: calc(var(--i, 0) * .12s); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .rv, .js .sm-map .ter, .js .sm-map .ring, .js .seal .ring-l { opacity: 1 !important; transform: none !important; stroke-dashoffset: 0 !important; fill-opacity: 1 !important; }
  .js .sm-map .ring { stroke-dasharray: 3 6; }
}

/* Responsive */
@media (max-width: 1240px) {
  .mega-kids { grid-template-columns: repeat(5, 1fr); gap: 12px; }
}
@media (max-width: 1100px) {
  .story .wrap, .contact .wrap { grid-template-columns: 1fr; }
  .territory .wrap { grid-template-columns: 1fr; }
  .banner .wrap { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line.a .wrap, .line.b .wrap, .line.e .wrap, .line.c .cols, .line.d .cols { grid-template-columns: 1fr; }
  .line.a .shots .f2, .line.b .shots .f2 { display: none; }
  .line .shots { position: static; }
  .line.b .shots { order: -1; }
  .phead .wrap { grid-template-columns: 1fr; }
  .phead .art { width: min(70vw, 360px); margin-top: -8px; }
  .qa-group { grid-template-columns: minmax(0, 1fr); }
  .qa-group > h3 { position: static; }
  .how .three { grid-template-columns: 1fr; }
  .how .three > div, .how .three > div + div { padding: 24px 0 8px; border-left: 0; border-top: 1px solid var(--hair); }
  .how .three > div:first-child { border-top: 0; }
  .oldsite .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .logos-row .wrap { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --hd: 76px; }
  .nav, .hdr .call { display: none; }
  .menu-btn { display: inline-flex; margin-left: auto; align-items: center; gap: 10px; padding: 12px 18px; border: 1.5px solid var(--violet); border-radius: var(--r); background: transparent; color: var(--violet); font: 600 17px/1 var(--sans); cursor: pointer; }
  .logo-svg { height: 46px; }
  .topbar .tb-m { display: none; }
  .foot .wrap.main { grid-template-columns: minmax(0, 1fr); text-align: left; }
  .seal { order: -1; }
  .bar { display: flex; }
  body { padding-bottom: 72px; }
}
@media (max-width: 640px) {
  body { font-size: 17px; }
  .btn { padding: 16px 20px; }
  .btn-row .btn { flex: 1 1 100%; justify-content: center; }
  .cat-tools { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr; }
  .topbar .tb-l span { display: none; }
  .form .two { grid-template-columns: 1fr; }
  .oldsite .grid { grid-template-columns: 1fr; }
  .logos-row .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hosp ul { columns: 2 140px; }
}

.mega-kids .ph.ic { font-size: 30px; color: var(--violet); background: var(--paper-2); }
.mega.small .mega-kids .ph { aspect-ratio: 16 / 9; }

@media (max-width: 640px) {
  .sm-map text { font-size: 24px; letter-spacing: .14em; }
  .sm-map .city { font-size: 30px; stroke-width: 6px; }
  .sm-map .rl { font-size: 24px; stroke-width: 6px; }
  .sm-map .tag text { font-size: 28px; }
  .sm-map .c-opt { display: none; }
  .sm-map .dot { r: 8px; }
}

@media (max-width: 420px) {
  .topbar .tb-l { display: none; }
  .topbar .wrap { justify-content: center; }
}

.foot .stack li, .foot .stack a, .qa-group dd, .qa-group dt, .reach .val { overflow-wrap: anywhere; }
.foot .stack li { min-width: 0; }
@media (max-width: 420px) { .foot .stack li { font-size: 16px; } .foot .stack.big li { font-size: 22px; } }

.nojs-nav { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 12px var(--gutter); background: var(--paper-2); border-bottom: 1px solid var(--hair); font-weight: 600; }
@media (min-width: 901px) { .nojs-nav { display: none; } }

/* The logo as vector: ghost outlines that draw themselves once, then fill in */
.ghost { color: var(--violet); fill: currentColor; fill-opacity: .07; stroke: currentColor; stroke-width: 1; stroke-opacity: .3; stroke-linejoin: round; overflow: visible; }
.ghost.on-dark { color: var(--tan); }
.js .ghost { stroke-dasharray: 1; stroke-dashoffset: 1; fill-opacity: 0; transition: stroke-dashoffset 3s ease-in-out, fill-opacity 1.6s ease-out 2s; }
.js .ghost.drawn { stroke-dashoffset: 0; fill-opacity: .07; }
.head-p { right: 8%; bottom: 16px; width: min(17vw, 220px); }
.banner > .banner-p { position: absolute; right: 31%; top: 50%; width: min(15vw, 210px); transform: translateY(-50%); z-index: 0; pointer-events: none; stroke-width: 1; stroke-opacity: .32; }
.banner > .wrap { position: relative; z-index: 1; }
.foot { position: relative; overflow: hidden; }
.foot > .wrap, .foot > .strip { position: relative; z-index: 1; }
.seal .seal-p { fill: var(--white); stroke: none; }
.who .portrait .p-solid { width: 38%; height: auto; color: var(--violet); fill: currentColor; opacity: .5; }
.who .portrait img { display: none; }
@media (prefers-reduced-motion: reduce) { .js .ghost { stroke-dashoffset: 0 !important; fill-opacity: .07 !important; } }
@media (max-width: 1100px) { .hero-p { display: block; right: 2%; bottom: 0; top: auto; width: min(40vw, 260px); } .hero-p.head-p { display: none; } }
@media (max-width: 640px) { .banner > .banner-p { display: none; } }

.foot-logo { display: block; width: min(264px, 100%); margin-bottom: 28px; color: var(--white); }
.foot-logo-svg { display: block; width: 100%; height: auto; fill: currentColor; }
.foot-logo:hover { color: var(--tan); }
.sheet-logo { display: block; height: 36px; width: auto; color: var(--violet); fill: currentColor; }

/* Home hero: a looped video over the slight purple, headline top middle, the five lines as a dock at the bottom */
:root { --dock-over: 160px; }
.hero { position: relative; z-index: 4; }
/* the lilac and the loop stop --dock-over short of the dock's bottom edge, so the panels hang over the white row below */
.hero-bg { position: absolute; inset: 0 0 var(--dock-over) 0; overflow: hidden; background: linear-gradient(180deg, #ebe4f7 0%, #e3daf2 100%); }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mix-blend-mode: multiply; opacity: .8; filter: brightness(1.12) contrast(1.35); }
.hero-bg::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse 60% 55% at 50% 30%, rgba(250,247,255,.55), rgba(250,247,255,0) 70%); }
.hero-top { position: relative; z-index: 2; text-align: center; padding-block: 40px 0; }
.hero h1 { font-size: clamp(34px, 4.6vw, 64px); line-height: 1.04; color: var(--violet); letter-spacing: .004em; }
.hero h1 .sub { display: block; margin-top: -4px; font: 500 clamp(15px, 1.5vw, 20px)/1.3 var(--display); letter-spacing: .16em; color: var(--deep); opacity: .86; }
.hero .lede { margin: 18px auto 26px; max-width: 62ch; text-wrap: balance; font-size: clamp(18px, 1.45vw, 20px); line-height: 1.55; color: #3d3556; }
.hero .btn-row { justify-content: center; }
.dock { position: relative; z-index: 3; display: flex; gap: 12px; height: 340px; margin: 40px 0 calc(var(--dock-over) * -1); }
.dock-item { position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; border-radius: 8px; color: var(--white); text-decoration: none; background: var(--deep); box-shadow: 0 28px 40px -26px rgba(27,10,58,.65); transition: flex-grow .6s cubic-bezier(.2,.8,.2,1), filter .45s ease-out, box-shadow .45s ease-out, transform .7s ease-out, opacity .7s ease-out; }
.dock-item:hover, .dock-item:focus-visible { flex-grow: 2.4; box-shadow: 0 36px 48px -24px rgba(27,10,58,.8); color: var(--white); }
.dock:has(.dock-item:hover) .dock-item:not(:hover), .dock:has(.dock-item:focus-visible) .dock-item:not(:focus-visible) { filter: saturate(.55) brightness(.82); }
.dock-item::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(to top, rgba(27,10,58,.95) 0%, rgba(27,10,58,.8) 32%, rgba(27,10,58,.22) 66%, rgba(27,10,58,.06) 100%); }
.dock-item::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; z-index: 3; background: var(--tan); transform: scaleX(0); transform-origin: left; transition: transform .7s cubic-bezier(.2,.8,.2,1); }
.dock-item:hover::after, .dock-item:focus-visible::after { transform: scaleX(1); }
.dk-img { position: absolute; inset: 0; }
.dk-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1.4s cubic-bezier(.2,.8,.2,1); }
.dock-item:hover .dk-img img, .dock-item:focus-visible .dk-img img { transform: scale(1.1); }
.dk-plate { position: absolute; left: 12px; top: 12px; z-index: 2; display: grid; place-items: center; height: 52px; padding: 8px 14px; background: var(--white); border-radius: 4px; max-width: calc(100% - 24px); }
.dk-plate img { max-height: 32px; max-width: 132px; width: auto; }
.dk-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.dk-title { font: 600 clamp(18px, 1.55vw, 23px)/1.15 var(--display); color: var(--white); margin: 0; }
.dk-count { font: 500 14px/1.2 var(--sans); color: var(--tan); font-variant-numeric: tabular-nums; }
.dk-names { display: flex; flex-direction: column; gap: 2px; max-height: 0; opacity: 0; overflow: hidden; transform: translateY(10px); font-size: 15px; line-height: 1.35; color: #e8def7; transition: max-height .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease-out .08s, transform .6s ease-out .08s; }
.dk-go { display: inline-flex; align-items: center; gap: 8px; max-height: 0; opacity: 0; overflow: hidden; font: 600 15px/1.2 var(--sans); color: var(--tan); transition: max-height .5s ease-out, opacity .5s ease-out .15s; }
.dock-item:hover .dk-names, .dock-item:focus-visible .dk-names { max-height: 100px; opacity: 1; transform: none; margin-top: 4px; }
.dock-item:hover .dk-go, .dock-item:focus-visible .dk-go { max-height: 24px; opacity: 1; margin-top: 4px; }
.dock-item:focus-visible { outline: 3px solid var(--tan); outline-offset: -3px; }

/* The row after: the paragraph between two clusters of instruments rising from the bottom edge */
.why { position: relative; z-index: 2; background: var(--white); overflow: hidden; padding-block: calc(var(--dock-over) + 112px) 72px; --h: clamp(230px, 25vw, 360px); }
.why .wrap { position: relative; z-index: 2; max-width: 980px; }
.why p.big { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.45; color: var(--deep); text-align: center; margin: 0 auto; text-wrap: pretty; font-weight: 400; max-width: 800px; }
.why p.big strong { font-weight: 600; color: var(--violet); }
.why .facts { justify-content: center; margin-top: 40px; }
.tools { position: absolute; bottom: 0; width: calc(var(--h) * .95); height: var(--h); z-index: 1; pointer-events: none; }
.tools-l { left: max(12px, calc(50% - 700px)); }
.tools-r { right: max(12px, calc(50% - 720px)); }
.tool { position: absolute; bottom: -10px; left: var(--x); height: calc(var(--h) * var(--k, 1)); width: auto; transform-origin: 50% 100%; transform: rotate(var(--r)); filter: drop-shadow(0 14px 14px rgba(27,10,58,.26)); }
.tools-r .tool { left: auto; right: var(--x); }
.js .tool { opacity: 0; transform: translateY(70px) rotate(var(--r)); transition: opacity .8s ease-out var(--d, 0s), transform 1.1s cubic-bezier(.2,.8,.2,1) var(--d, 0s); }
.js .tool.in { opacity: 1; transform: rotate(var(--r)); }
.start-band { position: relative; z-index: 1; padding-block: 56px 64px; background: var(--paper); border-bottom: 1px solid var(--hair); }
/* the exam-lights photo sits behind Quick links as one row: heading and cards on top, a lilac wash keeps the heading readable */
.start-band.has-photo { overflow: hidden; padding-block: 72px 84px; background: var(--paper-2); }
.start-band .start-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: saturate(.72) brightness(1.05); z-index: 0; }
.start-band.has-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; background: linear-gradient(180deg, rgba(240,235,248,.88) 0%, rgba(240,235,248,.7) 40%, rgba(240,235,248,.36) 100%), linear-gradient(90deg, rgba(240,235,248,.7) 0%, rgba(240,235,248,0) 22%, rgba(240,235,248,0) 78%, rgba(240,235,248,.7) 100%), rgba(65,0,153,.1); }
.start-band.has-photo > .wrap { position: relative; z-index: 1; }
.start-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 8px; }
.start-grid a { display: flex; align-items: center; gap: 16px; height: 100%; padding: 20px; border: 1px solid var(--hair); border-radius: var(--r); background: var(--white); color: var(--deep); text-decoration: none; font: 600 19px/1.25 var(--sans); transition: border-color .25s ease-out, transform .25s ease-out, box-shadow .25s ease-out; }
.start-grid a:hover { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 18px 28px -22px rgba(27,10,58,.5); color: var(--violet); }
.start-grid a small { display: block; font: 400 15px/1.35 var(--sans); color: var(--ink-soft); margin-top: 2px; }

@media (max-width: 1100px) {
  .tools { display: none; }
  .hero .lede { max-width: 56ch; }
  .start-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  :root { --dock-over: 96px; }
  .dock { height: auto; flex-wrap: wrap; margin-top: 32px; }
  .dock-item { flex: 1 1 calc(33.333% - 8px); height: 220px; }
  .dock-item:hover, .dock-item:focus-visible { flex-grow: 1; }
  .dk-names, .dk-go { display: none; }
}
@media (max-width: 640px) {
  :root { --dock-over: 64px; }
  .hero-top { padding-top: 28px; }
  .dock { gap: 10px; }
  .dock-item { flex: 1 1 calc(50% - 5px); height: 188px; }
  .dock-item:last-child { flex-basis: 100%; height: 150px; }
  .dk-plate { height: 44px; padding: 6px 10px; }
  .dk-plate img { max-height: 26px; max-width: 100px; }
  .start-grid { grid-template-columns: 1fr; }
  .why { padding-top: calc(var(--dock-over) + 64px); }
}
@media (prefers-reduced-motion: reduce) { .js .tool { opacity: 1 !important; transform: rotate(var(--r)) !important; } .dock-item, .dk-img img, .dk-names, .dk-go { transition: none !important; } }


.dk-img::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(27,10,58,.97) 0%, rgba(27,10,58,.9) 46%, rgba(27,10,58,.5) 74%, rgba(27,10,58,0) 100%); opacity: 0; transition: opacity .5s ease-out; }
.dock-item:hover .dk-img::after, .dock-item:focus-visible .dk-img::after { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-bg { background-image: url(images/hero-loop-poster.jpg), linear-gradient(180deg, #ebe4f7, #e3daf2); background-size: cover; background-position: center; background-blend-mode: multiply, normal; }
}

/* ---- one page per product line ---- */
.phead .logo-chip { display: inline-grid; place-items: center; height: 64px; padding: 10px 24px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); margin-bottom: 24px; }
.phead .logo-chip img { max-height: 40px; width: auto; mix-blend-mode: multiply; }
.phead .btn-row { margin-top: 28px; }
.line-head .lede { max-width: 56ch; }
.phead .art.framed { mix-blend-mode: normal; border-radius: 8px; overflow: hidden; box-shadow: 0 24px 40px -28px rgba(27,10,58,.55); margin-bottom: 48px; }
.phead .art.framed img { -webkit-mask-image: none; mask-image: none; }
.phead .art.fan { position: relative; --h: 330px; height: var(--h); width: min(100%, 440px); mix-blend-mode: normal; }
.phead .art.fan .tool { width: auto; -webkit-mask-image: none; mask-image: none; }
.lines-pick { padding-block: 64px 8px; background: var(--white); }
.lines-pick .dock { --dock-over: 0px; margin: 32px 0 0; }
.lp-list { padding-block: 80px; background: var(--white); }
.lp-list .wrap { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.lp-intro { position: sticky; top: 168px; }
.lp-intro p { margin-top: 16px; max-width: 44ch; }
.lp-count { font: 600 15px/1.3 var(--sans); letter-spacing: .06em; text-transform: uppercase; color: var(--tan-deep); }
.lp-rows { border-top: 1px solid var(--hair); }
.lp-rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 24px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--hair); }
.lp-rows .nm { display: flex; align-items: center; gap: 14px; font: 600 19px/1.3 var(--sans); color: var(--deep); }
.lp-rows .nm::before { content: ""; width: 8px; height: 8px; background: var(--tan); transform: rotate(45deg); flex: none; }
.lp-rows .ask { display: flex; gap: 20px; font-size: 15px; }
.lp-rows .ask a { font-weight: 600; text-decoration: none; white-space: nowrap; }
.lp-rows .ask a:hover { text-decoration: underline; }
.lp-docs { padding-block: 80px; background: var(--paper-2); border-block: 1px solid var(--hair); }
.lp-docs .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.lp-docs .docs { max-width: none; margin: 24px 0 20px; }
.lp-gallery { display: grid; gap: 20px; }
.lp-gallery figure { margin: 0; }
.lp-qa { padding-block: 72px 56px; background: var(--white); }
.lp-qa .qa-group { border-top: 0; padding-block: 0; }
.lp-more { margin-top: 24px; font-weight: 600; }
.lp-more i { font-size: 13px; margin-left: 4px; }
.lp-other { padding-block: 64px 72px; background: var(--paper-2); border-top: 1px solid var(--hair); }
.lp-other ul { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.lp-other a { display: grid; gap: 4px; height: 100%; padding: 20px; background: var(--white); border: 1px solid var(--hair); border-radius: var(--r); text-decoration: none; color: var(--deep); transition: border-color .2s, transform .2s, box-shadow .2s; }
.lp-other a:hover, .lp-other a:focus-visible { border-color: var(--violet); transform: translateY(-3px); box-shadow: 0 18px 28px -22px rgba(27,10,58,.5); }
.lp-other .lg { height: 48px; display: grid; align-items: center; justify-items: start; margin-bottom: 8px; }
.lp-other .lg img { max-height: 40px; max-width: 150px; width: auto; mix-blend-mode: multiply; }
.lp-other .t { font: 600 19px/1.25 var(--sans); }
.lp-other small { font: 400 15px/1.35 var(--sans); color: var(--ink-soft); }
.guides { padding-block: 24px 80px; background: var(--white); }
.guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 28px; margin-top: 32px; }
.guide h3 { font: 600 20px/1.3 var(--sans); margin-bottom: 12px; }
.guide h3 a { color: var(--deep); text-decoration: none; }
.guide h3 a:hover { color: var(--violet); text-decoration: underline; }
.guide .docs { margin: 0; max-width: none; }
.cat-item a.bl { text-decoration: none; }
@media (max-width: 960px) {
  .lp-list .wrap, .lp-docs .wrap { grid-template-columns: minmax(0, 1fr); }
  .lp-intro { position: static; }
  .lp-other ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .phead .art.fan { --h: 230px; width: min(80vw, 360px); margin-top: -8px; }
  .phead .art.fan .tool { left: calc(var(--x) * .62); }
  .phead .art.framed { margin-bottom: 32px; }
}
@media (max-width: 640px) {
  .lp-list, .lp-docs { padding-block: 56px; }
  .lp-rows li { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 14px 0; }
  .lp-rows .ask { padding-left: 22px; }
  .lp-other ul, .guide-grid { grid-template-columns: minmax(0, 1fr); }
  .phead .logo-chip { height: 56px; padding: 8px 20px; }
}
@media (max-width: 420px) {
  .phead .art.fan { --h: 200px; justify-self: center; width: 250px; }
  .phead .art.fan .tool { left: calc(var(--x) * .5); }
}

/* dock: soft in, softer out. Leaving a panel waits a beat and fades slowly, so a pointer crossing the gap between panels does not snap everything shut. */
.dock-item { transition-duration: 1s, .9s, .9s, .7s, .7s; transition-timing-function: cubic-bezier(.2,.8,.2,1), ease-in-out, ease-in-out, ease-out, ease-out; }
/* the shared .js .rv rule is more specific than .dock-item and was cutting the transition list down to opacity and transform, so the panels snapped. Restated here at the same weight. */
.js .dock-item.rv { transition-property: flex-grow, filter, box-shadow, transform, opacity; transition-duration: 1s, .9s, .9s, .7s, .7s; transition-timing-function: cubic-bezier(.2,.8,.2,1), ease-in-out, ease-in-out, ease-out, ease-out; transition-delay: .22s, .22s, .22s, calc(var(--i, 0) * .09s + .25s), calc(var(--i, 0) * .09s + .25s); }
.js .dock-item.rv.in:hover, .js .dock-item.rv.in:focus-visible { transition-duration: .7s, .5s, .5s, .7s, .7s; transition-delay: 0s, 0s, 0s, calc(var(--i, 0) * .09s + .25s), calc(var(--i, 0) * .09s + .25s); }
.dk-names { transition: max-height .9s cubic-bezier(.2,.8,.2,1) .22s, opacity .8s ease-in-out .22s, transform .8s ease-out .22s; }
.dk-go { transition: max-height .8s ease-out .22s, opacity .8s ease-in-out .22s; }
.dock-item:hover .dk-names, .dock-item:focus-visible .dk-names { transition: max-height .6s cubic-bezier(.2,.8,.2,1), opacity .5s ease-out .08s, transform .6s ease-out .08s; }
.dock-item:hover .dk-go, .dock-item:focus-visible .dk-go { transition: max-height .5s ease-out, opacity .5s ease-out .15s; }
.dk-img::after { transition: opacity .9s ease-in-out .22s; }
.dock-item:hover .dk-img::after, .dock-item:focus-visible .dk-img::after { transition: opacity .5s ease-out; }
.dk-img img { transition: transform 1.6s cubic-bezier(.2,.8,.2,1) .1s; }
.dock-item::after { transition: transform .9s cubic-bezier(.2,.8,.2,1) .22s; }
.dock-item:hover::after, .dock-item:focus-visible::after { transition: transform .7s cubic-bezier(.2,.8,.2,1); }
@media (prefers-reduced-motion: reduce) { .dock-item, .dk-img img, .dk-img::after, .dock-item::after, .dk-names, .dk-go { transition: none !important; } }
@media (min-width: 901px) and (max-width: 1040px) { .nav > li > a, .nav > li > button { padding: 0 12px; } .nav { gap: 2px; } }

/* ---- Envato Elements photography, kept soft: a lilac wash over each photo, pale blues only, no captions ---- */
.photo-band { position: relative; height: clamp(150px, 21vw, 300px); overflow: hidden; background: var(--paper-2); z-index: 1; }
.photo-band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: saturate(.72) brightness(1.05); }
.photo-band::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, rgba(240,235,248,.88) 0%, rgba(240,235,248,.3) 30%, rgba(240,235,248,.3) 70%, rgba(240,235,248,.88) 100%), rgba(65,0,153,.12); }
.lp-photo, .how-photo { position: relative; margin: 28px 0 0; border-radius: 8px; overflow: hidden; background: var(--paper-2); box-shadow: 0 24px 40px -32px rgba(27,10,58,.45); }
.lp-photo { aspect-ratio: 4 / 3; max-width: 440px; }
.how-photo { height: clamp(150px, 12.5vw, 184px); margin: 0 0 24px; }
.lp-photo img, .how-photo img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); filter: saturate(.74) brightness(1.04); }
.lp-photo::after, .how-photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(240,235,248,.12) 0%, rgba(65,0,153,.2) 100%); }
.how .three > div { display: flex; flex-direction: column; }
.how .three > div .ic-c { align-self: flex-start; }
.banner { overflow: hidden; }
.banner-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 50%); opacity: .12; mix-blend-mode: luminosity; pointer-events: none; z-index: 0; }
.phead .art.wide { width: min(100%, 600px); }
@media (max-width: 960px) {
  .lp-photo { max-width: none; aspect-ratio: 16 / 9; }
  .phead .art.wide { width: min(86vw, 460px); }
}
@media (max-width: 640px) {
  .photo-band { height: 150px; }
  .how-photo { height: auto; aspect-ratio: 16 / 9; }
}
