/* ================================================================
   The DSSP look for the Kerix portal (Oct 14, 2026). Loaded after portal.css on purpose: it re-tunes the tokens
   and restyles the shell and the blocks, the way DSSP's portal.css "SpineWell look" section does.
   Taken from the DSSP portal (public/assets/portal.css): the top bar with the brand switch, the roomy rail with the
   growing accent bar, the photo or clip band behind each hero with the outlined section word, glass tiles that lift,
   the ambient network (#field), the Photos & videos cards and Maximus (orb, bubble, Ask panel).
   Pithy navy as in DSSP, with Kerix's own colours as the accent: the yellow of "Care to Be Different" and the
   blue of the Kerix "+".
   ================================================================ */
:root {
  --void: #0B1726; --deep: #0F1E30; --panel: rgba(24, 42, 66, .55); --panel2: #14263D;
  --edge: rgba(255, 255, 255, .09); --edge-hot: rgba(236, 226, 113, .34);
  --cyan: #ECE271; --cyan-hot: #F4EDA6; --cyan-wash: rgba(236, 226, 113, .10);
  --accent: #ECE271; --accent-l: #F4EDA6; --accent-d: #B8AF45; --series2: #A3DCEA;
  --paper: #F2F5F8; --paper-dim: #C3CED9; --mute: #8797A6; --mute-deep: #64758A;
  --rail: 214px; --top: 74px; --gut: clamp(18px, 3.4vw, 58px);
  --ease: cubic-bezier(.22, .8, .3, 1); --slow: cubic-bezier(.16, 1, .3, 1);
  color-scheme: dark;
}
body { background: var(--void); font: 300 16.5px/1.7 var(--body); overflow-x: hidden; }
::selection { background: rgba(236, 226, 113, .35); color: #fff; }
a { color: var(--accent-l); }

/* ambient network and glow, as in DSSP (assets/field.js) */
#field { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: 3; pointer-events: none; opacity: .5; }
.scrim { position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(130% 75% at 50% -12%, rgba(236, 226, 113, .09), transparent 62%), radial-gradient(80% 55% at 100% 105%, rgba(163, 220, 234, .10), transparent 66%); }
.top, .wrap { position: relative; z-index: 2; }

/* ---------- top bar: Pithy logo | client | tag ............ brand switch, Ask, who, sign out ---------- */
.top { position: sticky; top: 0; z-index: 60; height: var(--top); gap: 18px; padding: 0 var(--gut); background: rgba(11, 23, 38, .72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--edge); }
.top .logo { display: flex; align-items: center; }
.logo-img { width: 118px; height: auto; display: block; }
.top-div { width: 1px; height: 34px; background: rgba(255, 255, 255, .18); }
.top .x { display: none; }
.top .client { font: 600 1.05rem var(--display); color: var(--paper); white-space: nowrap; text-decoration: none; }
.top .client:hover { color: var(--accent-l); }
.top .crumb { font: 500 11.5px var(--mono); letter-spacing: .17em; color: var(--accent); white-space: nowrap; }
.top .crumb em { color: #FFB443; }
.brand-top { display: flex; flex: none; align-items: center; gap: 4px; padding: 5px; border-radius: 100px; background: rgba(15, 30, 48, .86); border: 1px solid var(--edge); }
.brand-top button { display: inline-flex; align-items: center; gap: 7px; padding: 7px 14px; border: 0; border-radius: 100px; background: none; font: 500 13.5px var(--display); color: var(--mute); white-space: nowrap; transition: color .25s var(--ease), background .25s var(--ease); }
.brand-top button:hover { color: var(--paper); }
.brand-top button.on { background: var(--accent); color: #17160a; font-weight: 600; }
.brand-top .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bc); box-shadow: 0 0 0 2px rgba(0, 0, 0, .25); }
.brand-top button.on .dot { box-shadow: 0 0 0 2px rgba(255, 255, 255, .6); }
.top .internal { color: #FFB443; }
.top-ask { border: 1px solid var(--edge-hot); background: rgba(236, 226, 113, .08); color: var(--accent-l); border-radius: 100px; padding: 8px 16px; font: 500 13.5px var(--display); white-space: nowrap; transition: background .25s var(--ease); }
.top-ask:hover { background: rgba(236, 226, 113, .18); }
.top .who-me { font: 500 11.5px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mute); white-space: nowrap; }
.top .signout { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(255, 255, 255, .22); background: none; color: var(--paper); font: 500 .88rem var(--body); transition: border-color .25s var(--ease), color .25s var(--ease); }
.top .signout:hover { border-color: var(--accent); color: var(--accent-l); }
@media (max-width: 1500px) { .top .crumb, .top .who-me, .top .internal { display: none; } }
@media (max-width: 1180px) { .brand-top button { padding: 6px 10px; } .top-ask { display: none; } }
@media (max-width: 900px) {
  .top { flex-wrap: wrap; height: auto; min-height: 62px; padding-top: 8px; padding-bottom: 8px; }
  .brand-top { order: 9; width: 100%; overflow-x: auto; }
  .top .client, .top .top-div { display: none; }
}

/* ---------- the rail: roomy menu, growing accent bar, sections as an accordion with their own scroll ---------- */
.rail { top: var(--top); height: calc(100vh - var(--top)); width: var(--rail); flex: 0 0 var(--rail); padding: 22px 0 40px; background: rgba(11, 23, 38, .35);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .16) transparent; }
.rail::-webkit-scrollbar { width: 6px; } .rail::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .14); border-radius: 6px; } .rail::-webkit-scrollbar-track { background: transparent; }
.rail a { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 14px 10px 24px; border-left: 0;
  font: 500 15px/1.3 var(--display); letter-spacing: -.005em; color: var(--mute); transition: color .3s var(--ease), padding-left .3s var(--ease), background .3s var(--ease); }
.rail a::before { content: ""; position: absolute; left: 0; top: 50%; width: 2px; height: 0; background: var(--accent); transform: translateY(-50%); transition: height .4s var(--ease); }
.rail a:hover { color: var(--paper-dim); padding-left: 28px; background: none; }
.rail a.on { color: var(--paper); font-weight: 600; background: linear-gradient(90deg, rgba(236, 226, 113, .10), transparent 80%); border-left: 0; }
.rail a.on::before { height: 56%; }
.rail .cnt { float: none; flex: none; font: 500 10.5px var(--mono); padding: 1px 7px; border-radius: 100px; background: rgba(236, 226, 113, .14); color: var(--accent-l); }
.rail .ncount { flex: none; font: 500 10px var(--mono); color: var(--mute); }
.rail-top { padding-bottom: 6px; }
.rail-h { display: block; margin: 14px 14px 6px 24px; padding-top: 16px; border-top: 1px solid var(--edge); font: 500 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.rail .ng-list { margin-top: 0; }
.rail .ng { border-top: 0; }
.rail .ng-h { position: relative; padding: 11px 16px 11px 24px; font: 600 15px/1.3 var(--display); color: var(--paper-dim); transition: color .25s var(--ease), background .25s var(--ease); }
.rail .ng-h:hover { color: var(--paper); background: rgba(255, 255, 255, .03); }
.rail .ng-h i { width: 8px; height: 8px; flex: none; border-right: 1.6px solid var(--mute); border-bottom: 1.6px solid var(--mute); transform: rotate(-45deg); transition: transform .3s var(--ease), border-color .3s; }
.rail .ng.open .ng-h { color: var(--paper); }
.rail .ng.open .ng-h i { transform: rotate(45deg); border-color: var(--accent); }
/* height animates with the grid-rows trick, so the menu slides instead of jumping */
.rail .ng-b { display: grid; grid-template-rows: 0fr; padding: 0; transition: grid-template-rows .35s var(--slow); }
.rail .ng.open .ng-b { display: grid; grid-template-rows: 1fr; }
.rail .ng-in { overflow: hidden; min-height: 0; }
.rail .ng.open .ng-in { padding-bottom: 10px; }
.rail .ng-b a { font-size: 14px; padding: 8px 14px 8px 34px; }
.rail .ng-b a:hover { padding-left: 38px; }
.rail .ng-sub { padding: 10px 14px 4px 34px; font: 500 10px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute-deep); }
.rail .ng-b a.ng-cat { font-size: 13px; color: var(--mute); }
.rail .ng-tier { margin-top: 8px; border-top: 1px solid var(--edge); padding-top: 6px; }
.rail .ng-tier.t-katie .ng-h { color: #ffcf8a; } .rail .ng-tier.t-int .ng-h { color: #ff9fb1; }
.rail .ng-h small { color: var(--mute-deep); }
.rail .cv-switch { width: calc(100% - 32px); margin: 22px 16px 0; background: rgba(15, 30, 48, .7); border-radius: 6px; }
.rail .cv-switch.on { border-color: var(--accent); background: rgba(236, 226, 113, .08); }
.rail .cv-switch.on b { color: var(--accent-l); }
@media (max-width: 900px) {
  .rail { position: fixed; left: 0; top: var(--top-h, 62px); z-index: 70; height: calc(100vh - var(--top-h, 62px)); width: min(320px, 86vw); background: var(--void); padding-top: 16px; transform: translateX(-105%); transition: transform .3s var(--ease); }
  .wrap { z-index: 61; }
  .rail.open { transform: none; box-shadow: 30px 0 80px rgba(0, 0, 0, .6); }
}

/* ---------- the stage, and the photo / clip band behind each hero (DSSP's View::band) ---------- */
main { position: relative; isolation: isolate; max-width: 1560px; margin: 0 auto; padding: 0 var(--gut) 120px; }
.page { position: relative; }
.bg { position: absolute; left: calc(-1 * var(--gut)); right: calc(-1 * var(--gut)); overflow: hidden; pointer-events: none; z-index: -1; }
.bg--top { top: 0; height: min(78vh, 760px); }
.bg img, .bg video { width: 100%; height: 100%; object-fit: cover; opacity: .82; filter: grayscale(.12) contrast(1.06) brightness(.8) saturate(.85); animation: bgIn 2.4s var(--slow) both; }
.bg video { opacity: .9; filter: contrast(1.08) brightness(.86) saturate(.9); }
@keyframes bgIn { from { transform: scale(1.06); } to { transform: scale(1); } }
.bg::after { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 23, 38, .32) 0%, rgba(11, 23, 38, .62) 55%, var(--void) 98%),
              linear-gradient(90deg, rgba(11, 23, 38, .9) 0%, rgba(11, 23, 38, .64) 36%, rgba(11, 23, 38, .16) 70%, transparent 100%),
              radial-gradient(75% 85% at 82% 14%, rgba(236, 226, 113, .12), transparent 62%); }
.bg--top { -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%); mask-image: linear-gradient(180deg, #000 70%, transparent 100%); }

/* ---------- hero: big title with the outlined section word over it, the lede on the right ---------- */
.hero { grid-template-columns: 1.08fr .92fr; gap: clamp(20px, 4vw, 64px); align-items: end; margin: 0; padding: clamp(64px, 9vw, 140px) 0 clamp(36px, 5vw, 70px); }
.hero .kicker { display: block; margin: 0 0 clamp(4px, .6vw, 10px); font: 800 clamp(30px, 4vw, 58px)/.92 var(--display); letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1.3px rgba(236, 226, 113, .55); }
@supports not (-webkit-text-stroke: 1px currentColor) { .hero .kicker { color: rgba(236, 226, 113, .3); } }
.hero h1 { font: 700 clamp(34px, 4.6vw, 70px)/1 var(--display); letter-spacing: -.04em; color: var(--paper); text-wrap: balance; text-shadow: 0 2px 30px rgba(0, 0, 0, .35); }
.hero .eyebrow { color: var(--accent); margin-bottom: 14px; }
.hero > div:last-child > p, .hero p.lede { font: 300 clamp(17px, 1.45vw, 21px)/1.6 var(--body); color: var(--paper-dim); max-width: 52ch; text-shadow: 0 1px 14px rgba(0, 0, 0, .85), 0 0 2px rgba(0, 0, 0, .6); }
.hero p.how { display: flex; gap: 12px; color: var(--mute); font-size: .95rem; max-width: 56ch; }
.hero p.how::before { content: ""; flex: none; width: 28px; height: 2px; margin-top: .8em; background: var(--accent); }
.hero.center { grid-template-columns: 1fr; text-align: center; justify-items: center; }
.hero.center .kicker { text-align: center; }
.hero.center > p, .hero.center p { margin-left: auto; margin-right: auto; text-shadow: 0 1px 14px rgba(0, 0, 0, .85); }
.welcome-h { font-size: clamp(44px, 6vw, 92px) !important; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; align-items: start; padding-top: 48px; } }

/* ---------- section heads, panels, cards, stats: glass that lifts ---------- */
.sec { margin: 50px 0 18px; }
.pill-head { border-color: var(--edge-hot); background: rgba(11, 23, 38, .55); backdrop-filter: blur(10px); }
.pill-head::before { background: var(--accent); }
.panel, .card, .score, .stat { background: var(--panel); border-color: var(--edge); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.panel { border-radius: 8px; }
.card { border-radius: 10px; }
.card:hover, a.panel:hover, .score:hover { border-color: var(--edge-hot); }
.card:hover, a.panel:hover { transform: translateY(-4px); background: rgba(24, 42, 66, .78); }
.stat { border-radius: 6px; min-height: 120px; padding: clamp(18px, 1.8vw, 26px); transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease); }
.stat:hover { border-color: var(--edge-hot); transform: translateY(-6px); background: rgba(24, 42, 66, .8); }
.stat .n { font: 800 clamp(30px, 3vw, 46px)/1 var(--display); letter-spacing: -.04em; }
.n.cy { color: var(--accent-l); }
.btn { background: var(--accent); color: #17160a; border-radius: 3px; transition: background .25s var(--ease), transform .25s var(--ease), box-shadow .25s var(--ease); }
.btn:hover { background: var(--accent-l); transform: translateY(-2px); box-shadow: 0 14px 40px rgba(236, 226, 113, .22); }
.btn.ghost { background: transparent; color: var(--accent-l); border: 1px solid var(--edge-hot); }
.btn.ghost:hover { background: var(--cyan-wash); box-shadow: none; }
.tip-n { background: var(--accent); color: #17160a; border: 0; }
.dash-lbl { color: var(--accent); }
.dash-card b { color: var(--accent-l); }
.modal { background: rgba(5, 10, 18, .88); z-index: 120; }
.dlg { background: var(--deep); }

/* ---------- tiles (DSSP's View::tiles) ---------- */
.tiles { display: grid; gap: clamp(14px, 1.6vw, 24px); margin: 0 0 clamp(26px, 3vw, 40px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tiles-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tiles-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tile { display: flex; flex-direction: column; gap: 8px; min-height: 150px; padding: clamp(20px, 2vw, 28px); border-radius: 6px; background: rgba(24, 42, 66, .55); border: 1px solid var(--edge);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: border-color .35s var(--ease), transform .35s var(--ease), background .35s var(--ease); }
.tile:hover { border-color: var(--edge-hot); transform: translateY(-6px); background: rgba(24, 42, 66, .8); }
.tile-l { font: 500 11.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.tile-v { font: 800 clamp(34px, 3.4vw, 54px)/1 var(--display); letter-spacing: -.04em; color: var(--accent-l); margin-top: auto; }
.tile-c { font-size: 14px; color: var(--mute); }
.tile.good .tile-v { color: #3FE0A8; } .tile.warn .tile-v { color: #FFB443; } .tile.bad .tile-v { color: #FF5C7A; }
.tile-src { display: block; margin-top: 6px; font: 400 11.5px/1.45 var(--body); color: var(--mute); }
.tile-src b { font: 500 10px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-right: 5px; }
@media (max-width: 1200px) { .tiles, .tiles-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles, .tiles-5, .tiles-3 { grid-template-columns: 1fr; } }

/* ---------- Photos & videos (DSSP's /media cards) ---------- */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.mgrid-v { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.mgrid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .mgrid-3 { grid-template-columns: 1fr; } }
.mcard { display: flex; flex-direction: column; gap: 6px; padding: 0; text-align: left; background: var(--panel); border: 1px solid var(--edge); border-radius: 12px; overflow: hidden;
  color: var(--paper); cursor: pointer; font: inherit; text-decoration: none; backdrop-filter: blur(14px); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s; }
.mcard:hover, .mcard:focus-visible { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 10px 28px rgba(0, 0, 0, .35); outline: none; color: var(--paper); }
.mcard-th { position: relative; display: block; aspect-ratio: 16 / 10; background: #0b1420; overflow: hidden; }
.mgrid-v .mcard-th { aspect-ratio: 16 / 9; }
.mcard-th img { width: 100%; height: 100%; object-fit: cover; display: block; max-width: none; transition: transform .5s var(--ease); }
.mcard:hover .mcard-th img { transform: scale(1.04); }
.mcard-play { position: absolute; left: 50%; top: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: rgba(5, 10, 18, .62); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(3px); transition: background .2s, transform .25s var(--ease); }
.mcard-play::after { content: ""; position: absolute; left: 23px; top: 18px; border-style: solid; border-width: 11px 0 11px 17px; border-color: transparent transparent transparent #fff; }
.mcard:hover .mcard-play { background: var(--accent); transform: scale(1.08); }
.mcard:hover .mcard-play::after { border-left-color: #17160a; }
.mcard-dur, .mcard-mk { position: absolute; right: 8px; bottom: 8px; padding: 2px 7px; border-radius: 6px; background: rgba(5, 10, 18, .75); font: 500 11px var(--mono); color: #fff; }
.mcard-mk { left: 8px; right: auto; top: 8px; bottom: auto; background: #FF5C7A; }
.mcard-t { padding: 6px 14px 0; font: 600 .98rem/1.3 var(--display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mcard-m { padding: 0 14px 14px; font-size: .8rem; color: var(--mute); }
.brand-card .mcard-th { aspect-ratio: 16 / 8; }
.brand-card .mcard-t { font-size: 1.25rem; }
.dlg-media { width: min(1100px, 100%); overflow: hidden; }
.dlg-media .mp-bar { padding: 14px 60px 12px 18px; border-bottom: 1px solid var(--edge); background: var(--panel2); }
.dlg-media .mp-bar strong { display: block; font: 600 1.05rem var(--display); color: var(--paper); }
.dlg-media .mp-meta { font-size: .82rem; color: var(--mute); }
.dlg-media .mp-stage { background: #000; display: flex; justify-content: center; }
.dlg-media .mp-stage video { display: block; width: 100%; max-height: 74vh; background: #000; }
.dlg-media .mp-stage.is-photo { background: #0b1420; }
.dlg-media .mp-stage img { max-width: 100%; max-height: 78vh; object-fit: contain; }
.dlg-media .mp-note { margin: 0; padding: 10px 18px; font-size: .8rem; color: var(--mute); }

/* ---------- who's who ---------- */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.person { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 8px; background: var(--panel); border: 1px solid var(--edge); backdrop-filter: blur(14px); transition: border-color .3s var(--ease), transform .3s var(--ease); }
.person:hover { border-color: var(--edge-hot); transform: translateY(-3px); }
.person .av { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font: 600 15px var(--display); color: #17160a;
  background: linear-gradient(135deg, var(--accent-l), var(--series2)); box-shadow: 0 0 0 3px rgba(236, 226, 113, .14); }
.person b { display: block; font: 600 15px/1.3 var(--display); color: var(--paper); }
.person .p-side { display: inline-block; margin: 3px 0 4px; font: 500 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.person p { margin: 0; font-size: 13.5px; color: var(--paper-dim); line-height: 1.5; }

/* ================================================================
   Maximus (assets/maximus.js, copied from DSSP): Pearl's orb, the bubble beside it, the Ask panel.
   Pithy cyan on the orb (as in DSSP and Pearl), the Kerix accent for the name.
   ================================================================ */
.ask-fab { display: none !important; }
.jv-orb { position: fixed; right: 26px; bottom: 34px; left: auto; top: auto; z-index: 130; width: 66px; height: 66px; padding: 0; border: 0; background: none; border-radius: 50%; cursor: grab; touch-action: none; user-select: none;
  filter: drop-shadow(0 0 14px rgba(0, 200, 225, .55)); transition: transform .35s cubic-bezier(.2, .8, .2, 1), filter .3s; }
.jv-orb.is-dragging { cursor: grabbing; transition: none; transform: scale(1.08); }
.jv-orb:focus-visible { outline: 2px solid #4FE2F0; outline-offset: 6px; }
.jv-orb__ring { display: block; width: 100%; height: 100%; border-radius: 50%; background: radial-gradient(circle, rgba(0, 40, 55, .92) 55%, rgba(0, 20, 30, .6) 100%); }
.jv-orb__ring svg { width: 100%; height: 100%; overflow: visible; }
.jv-r { fill: none; stroke: #35e6ff; transform-origin: 100px 100px; }
.jv-r1 { stroke-width: 2; stroke-dasharray: 60 18 8 18; opacity: .75; animation: jvSpin 14s linear infinite; }
.jv-r2 { stroke-width: 5; stroke-dasharray: 4 10; opacity: .55; animation: jvSpin 9s linear infinite reverse; }
.jv-r3 { stroke-width: 2.5; stroke-dasharray: 110 30 12 30; opacity: .85; animation: jvSpin 6s linear infinite; }
.jv-r4 { stroke-width: 1.5; opacity: .6; }
.jv-core { fill: rgba(53, 230, 255, .18); stroke: #7ff3ff; stroke-width: 2; }
.jv-core-in { fill: #bff9ff; filter: drop-shadow(0 0 6px #35e6ff); animation: jvBreath 3.2s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes jvSpin { to { transform: rotate(360deg); } }
@keyframes jvBreath { 0%, 100% { opacity: .75; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.06); } }
@keyframes jvFlash { 0%, 100% { filter: drop-shadow(0 0 10px rgba(53, 230, 255, .5)); } 50% { filter: drop-shadow(0 0 30px rgba(120, 245, 255, 1)) brightness(1.35); } }
.jv-orb.is-listening { animation: jvFlash .7s ease-in-out infinite; }
.jv-orb.is-listening .jv-r1, .jv-orb.is-listening .jv-r3 { animation-duration: 1.6s; }
.jv-orb.is-hearing .jv-r1, .jv-orb.is-thinking .jv-r1, .jv-orb.is-thinking .jv-r3 { animation-duration: 1s; }
.jv-orb.is-speaking { animation: jvFlash 1.4s ease-in-out infinite; }
.jv-orb.is-speaking .jv-core-in { animation-duration: .6s; }
.jv-orb.is-paused { filter: saturate(.35) drop-shadow(0 0 8px rgba(0, 200, 225, .3)); }
.jv-orb__tip { position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%); padding: 4px 10px; border-radius: 4px; background: rgba(0, 20, 30, .9); border: 1px solid rgba(53, 230, 255, .4);
  font: 500 11px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-l); white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s; }
.jv-orb:hover .jv-orb__tip { opacity: 1; }
.jv-orb__acts { position: absolute; inset: 0; pointer-events: none; }
.jv-orb__act { position: absolute; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(53, 230, 255, .55); background: rgba(3, 20, 27, .96); color: #7ff3ff;
  cursor: pointer; pointer-events: auto; opacity: 0; transform: scale(.6); transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1), background .2s; box-shadow: 0 4px 14px rgba(0, 0, 0, .45); }
.jv-orb__act svg { width: 15px; height: 15px; }
.jv-orb__act:hover { background: #00B4C5; color: #031014; }
.jv-orb__mic { top: -12px; left: -12px; }
.jv-orb__kb { top: -12px; right: -12px; }
.jv-orb__act i { position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%); padding: 3px 8px; border-radius: 4px; background: rgba(0, 20, 30, .95); border: 1px solid rgba(53, 230, 255, .4);
  font: 500 10.5px/1.4 var(--mono); font-style: normal; letter-spacing: .06em; color: #bff9ff; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s; }
.jv-orb__act:hover i, .jv-orb__act:focus-visible i { opacity: 1; }
.jv-orb:hover .jv-orb__act, .jv-orb:focus-within .jv-orb__act, .jv-orb.is-micoff .jv-orb__mic { opacity: 1; transform: scale(1); }
.jv-orb:hover .jv-orb__tip { opacity: 0; }
.jv-orb.is-micoff .jv-orb__mic { background: #ffb454; border-color: #ffb454; color: #1a1000; }
.jv-orb.is-micoff { filter: saturate(.45) drop-shadow(0 0 10px rgba(255, 180, 84, .45)); }
.mxb { position: fixed; right: 110px; bottom: 34px; z-index: 131; width: 420px; max-width: calc(100vw - 32px); padding: 16px 18px; border-radius: 18px; background: rgba(3, 18, 24, .96); border: 1px solid rgba(53, 230, 255, .35);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 90px rgba(0, 0, 0, .6); }
.mxb[hidden] { display: none; }
.mxb__top { display: flex; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.mxb__name { font: 600 12px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-l); }
.mxb__state { font: 500 11.5px var(--mono); color: #7ff3ff; }
.mxb__meter { display: flex; gap: 4px; align-items: center; height: 26px; margin: 4px 0 8px; }
.mxb__meter[hidden] { display: none; }
.mxb__meter i { width: 5px; height: 100%; border-radius: 3px; background: #35e6ff; transform: scaleY(.15); transition: transform .08s; }
.mxb__said { margin: 0 0 12px; max-height: 38vh; overflow-y: auto; font-size: 15.5px; line-height: 1.6; color: var(--paper); white-space: pre-line; }
.mxb__said.is-quote { color: var(--paper-dim); font-style: italic; }
.mxb__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.mxb__btn { padding: 7px 14px; border-radius: 999px; border: 1px solid rgba(53, 230, 255, .4); background: none; color: #bff9ff; font: 500 13px var(--body); cursor: pointer; }
.mxb__btn[hidden] { display: none; }
.mxb__btn:hover { background: rgba(0, 180, 197, .16); }
.mxb__btn--hot { background: #00B4C5; border-color: #00B4C5; color: #031014; font-weight: 600; }
.mxb__btn--hot:hover { background: #4FE2F0; }
.mxb__btn--end:hover { border-color: #ff7a7a; color: #ffb3b3; background: rgba(255, 90, 90, .14); }
.mxb__btn.is-on { background: #ffb454; border-color: #ffb454; color: #1a1000; }
.mxb.is-speaking, .mxb.is-listening { border-color: rgba(53, 230, 255, .6); }
/* the Ask panel: DSSP's floating dock (Kerix keeps its ids: #ask, #askLog, #askForm) */
.ask { top: calc(var(--top) + 12px); right: 18px; bottom: 18px; left: auto; z-index: 125; width: min(440px, calc(100vw - 24px)); border-radius: 18px; overflow: hidden;
  background: rgba(12, 23, 34, .95); border: 1px solid rgba(53, 230, 255, .3); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px); box-shadow: 0 40px 120px rgba(0, 0, 0, .6);
  transform: translateX(calc(100% + 40px)); opacity: 0; pointer-events: none; transition: transform .35s var(--slow), opacity .25s; }
.ask.on { transform: none; opacity: 1; pointer-events: auto; }
.ask header { padding: 14px 16px; border-bottom: 1px solid var(--edge); gap: 10px; }
.ask__t { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ask__t b { font: 700 16px var(--display); color: var(--paper); } .ask__t small { font-size: 12px; color: var(--mute); }
.ask .x-btn { background: none; border: 1px solid var(--edge); color: var(--paper-dim); font-size: 18px; line-height: 1; }
.ask .log { padding: 14px 16px; gap: 10px; }
.ask .msg { max-width: 94%; padding: 10px 13px; border-radius: 12px; font-size: 14.5px; line-height: 1.55; white-space: normal; color: var(--paper-dim); background: rgba(255, 255, 255, .04); border: 1px solid var(--edge); }
.ask .msg .mt { white-space: pre-wrap; }
.ask .msg b { color: var(--paper); }
.ask .msg.u { align-self: flex-end; background: rgba(0, 180, 197, .12); border-color: rgba(53, 230, 255, .35); color: var(--paper); }
.ask .msg .cites button { border-color: transparent; background: #00B4C5; color: #031014; font: 600 12.5px var(--display); padding: 6px 12px; }
.ask .msg .cites button:hover { background: #4FE2F0; }
.ask .sugg button { border-radius: 10px; border: 1px solid var(--edge); background: none; color: var(--paper-dim); }
.ask .sugg button:hover { border-color: rgba(53, 230, 255, .5); color: var(--paper); }
.ask form { padding: 12px 16px; border-top: 1px solid var(--edge); }
.ask form textarea { border-radius: 10px; border: 1px solid var(--edge); background: rgba(255, 255, 255, .04); color: var(--paper); padding: 9px 11px; font: 400 14.5px var(--body); }
.ask form textarea:focus { outline: none; border-color: #35e6ff; }
.ask .btn { background: #00B4C5; color: #031014; border-radius: 999px; }
.ask .btn:hover { background: #4FE2F0; box-shadow: none; }
.ask__mic { flex: none; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(53, 230, 255, .45); background: rgba(0, 180, 197, .08); color: #7ff3ff; cursor: pointer; }
.ask__mic[hidden] { display: none; } .ask__mic svg { width: 19px; height: 19px; }
.ask__dots { display: inline-flex; gap: 4px; } .ask__dots i { width: 6px; height: 6px; border-radius: 50%; background: #35e6ff; animation: mxd 1s infinite ease-in-out; }
.ask__dots i:nth-child(2) { animation-delay: .15s; } .ask__dots i:nth-child(3) { animation-delay: .3s; }
@keyframes mxd { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .jv-r1, .jv-r2, .jv-r3, .jv-core-in, .jv-orb.is-listening, .jv-orb.is-speaking, .bg img, .bg video { animation: none; } .tile:hover, .stat:hover, .card:hover, .mcard:hover { transform: none; } }
@media (max-width: 640px) { .ask { top: auto; height: 78vh; right: 8px; left: 8px; width: auto; bottom: 8px; } .jv-orb { right: 14px; bottom: 18px; width: 58px; height: 58px; } }
/* while the Ask panel is open, the orb (when it hasn't been dragged) waits beside it instead of over it */
body.ask-open .jv-orb:not(.is-placed) { right: 476px; }
@media (max-width: 640px) { body.ask-open .jv-orb:not(.is-placed) { right: 14px; bottom: calc(78vh + 24px); } }

/* sign-in: the KerixHealth film fills the screen behind a glass card, as DSSP's gate */
body.is-gate { min-height: 100vh; }
.bg--gate { position: fixed; inset: 0; left: 0; right: 0; height: auto; z-index: 0; }
.bg--gate::after { background: radial-gradient(60% 75% at 50% 50%, rgba(11, 23, 38, .62), rgba(11, 23, 38, .3) 70%, rgba(11, 23, 38, .5) 100%), linear-gradient(180deg, rgba(11, 23, 38, .2), rgba(11, 23, 38, .55)); }
.is-gate .gate { position: relative; z-index: 2; }
.is-gate .gate-card { background: rgba(15, 30, 48, .66); backdrop-filter: blur(26px); -webkit-backdrop-filter: blur(26px); border-radius: 6px; box-shadow: 0 50px 140px rgba(0, 0, 0, .72); }
.gate-logo { display: flex; align-items: center; gap: 14px; }
.gate-logo .client { font: 600 1.05rem var(--display); color: var(--paper); }
.is-gate .gate-card input:focus { outline: 2px solid var(--accent); }
