/* ==========================================================================
   COPPERJAM — vibrant glass
   Light mesh-gradient canvas, frosted glass panels, coral → pink → violet brand.
   Performance: real backdrop blur only on the header + a few hero panels;
   other "glass" is translucent white over static gradients (no blur cost).
   ========================================================================== */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage.woff2") format("woff2"); font-weight: 500 800; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 600; font-display: swap; }

:root {
  --ink: #16163a;
  --text: #16163a;
  --text-2: #545878;
  --muted: #5f6485;
  --line: rgba(22, 22, 58, .09);
  --canvas: #f7f8ff;

  --coral: #ff6a3d;
  --pink: #f2439a;
  --violet: #7b4dff;
  --sky: #2eb6ff;
  --mint: #1fcf9f;
  --sun: #ffc53d;

  --brand: linear-gradient(120deg, #ff6a3d 0%, #f2439a 50%, #7b4dff 100%);
  --brand-btn: linear-gradient(120deg, #e8461e 0%, #d12c75 55%, #6a35e8 100%);
  --link: #5b32e6;

  --cyan: #0a7ea4;  --cyan-soft: #dff4fb;
  --purple: #6236f0; --purple-soft: #ece6ff;
  --accent: #d12c75; --accent-soft: #fde6f1;

  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .8);
  --glass-edge: rgba(255, 255, 255, .85);
  --glass-shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 50px -20px rgba(60, 40, 140, .28);

  --display: "Bricolage", "Instrument Sans", system-ui, sans-serif;
  --body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --r: 18px; --r-lg: 26px;
  --container: 1200px;

  /* static mesh backgrounds */
  --mesh-hero:
    radial-gradient(60% 70% at 8% 10%, rgba(255, 106, 61, .30), transparent 60%),
    radial-gradient(55% 65% at 92% 8%, rgba(123, 77, 255, .32), transparent 60%),
    radial-gradient(50% 60% at 70% 95%, rgba(46, 182, 255, .28), transparent 60%),
    radial-gradient(45% 55% at 20% 100%, rgba(242, 67, 154, .22), transparent 60%),
    #f7f6ff;
  --mesh-soft:
    radial-gradient(50% 60% at 100% 0%, rgba(123, 77, 255, .12), transparent 60%),
    radial-gradient(50% 60% at 0% 100%, rgba(46, 182, 255, .12), transparent 60%),
    #f4f5ff;
}
.section-hospital  { --accent: var(--cyan);   --accent-soft: var(--cyan-soft); }
.section-education { --accent: var(--purple); --accent-soft: var(--purple-soft); }
.section-hospital .hero  { --mesh-hero:
    radial-gradient(60% 70% at 8% 10%, rgba(46, 182, 255, .30), transparent 60%),
    radial-gradient(55% 65% at 92% 8%, rgba(31, 207, 159, .26), transparent 60%),
    radial-gradient(50% 60% at 70% 95%, rgba(123, 77, 255, .22), transparent 60%),
    radial-gradient(45% 55% at 20% 100%, rgba(255, 106, 61, .16), transparent 60%),
    #f4f9ff; }
.section-education .hero { --mesh-hero:
    radial-gradient(60% 70% at 8% 10%, rgba(123, 77, 255, .32), transparent 60%),
    radial-gradient(55% 65% at 92% 8%, rgba(242, 67, 154, .26), transparent 60%),
    radial-gradient(50% 60% at 70% 95%, rgba(255, 197, 61, .24), transparent 60%),
    #f8f6ff; }

/* ── Base ───────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--canvas); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--pink); }
h1, h2, h3, h4 { font-family: var(--display); color: var(--ink); line-height: 1.08; margin: 0 0 .5em; letter-spacing: -.022em; font-weight: 700; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); line-height: 1.02; font-weight: 750; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3, .h3 { font-size: 1.2rem; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
::selection { background: #ffd0e6; color: var(--ink); }
.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.grad-text { background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Glass primitives */
.glass, .opsboard, .path-card, .site-header {
  background: var(--glass); border: 1px solid var(--glass-edge); box-shadow: var(--glass-shadow);
}
@supports ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .opsboard, .path-card { backdrop-filter: blur(18px) saturate(170%); -webkit-backdrop-filter: blur(18px) saturate(170%); }
  .site-header { backdrop-filter: blur(14px) saturate(180%); -webkit-backdrop-filter: blur(14px) saturate(180%); }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .opsboard, .path-card, .site-header { background: rgba(255, 255, 255, .94); }
}

/* ── Colourful surfaces ─────────────────────────────────────────────────── */
.hero, .article-hero { background: var(--mesh-hero); }
/* breadcrumbs float over the top of the hero so the gradient is seamless */
.crumb-band { position: relative; z-index: 2; height: 0; }
.crumb-band + .hero, .crumb-band + .article-hero { padding-top: 88px; }
.hero::after, .article-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: -1; background: linear-gradient(transparent, var(--canvas)); pointer-events: none; }
.hero-home::after { display: none; }
.hero, .article-hero { position: relative; isolation: isolate; overflow: hidden; }
.hero::before, .article-hero::before { /* fine dot grid */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(rgba(22, 22, 58, .10) 1px, transparent 1.2px) 0 0 / 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000 10%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 80% at 60% 30%, #000 10%, transparent 75%);
}
.section-dark { /* vibrant gradient band */
  position: relative; isolation: isolate; overflow: hidden; color: rgba(255, 255, 255, .85);
  background: radial-gradient(60% 80% at 100% 0%, rgba(255, 106, 61, .55), transparent 60%),
              radial-gradient(60% 80% at 0% 100%, rgba(46, 182, 255, .45), transparent 60%),
              linear-gradient(135deg, #5b35f0 0%, #8a3cf0 45%, #d8378f 100%);
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-dark p { color: rgba(255, 255, 255, .85); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .88em 1.5em; border-radius: 999px; font: inherit; font-weight: 700; font-size: .98rem; line-height: 1.2;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .2s, box-shadow .2s, background-position .4s, color .2s, border-color .2s;
}
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary { background: var(--brand-btn); background-size: 150% 100%; color: #fff; box-shadow: 0 10px 26px -10px rgba(209, 44, 117, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 16px 32px -12px rgba(106, 53, 232, .7), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: rgba(255, 255, 255, .6); border-color: rgba(22, 22, 58, .14); color: var(--ink); }
.btn-ghost:hover { background: #fff; color: var(--ink); border-color: rgba(22, 22, 58, .3); }
.section-dark .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 12px 28px -12px rgba(20, 10, 60, .6); }
.section-dark .btn-primary:hover { color: var(--violet); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .6); color: #fff; }
.btn-ghost-light:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, .12); }

/* ── Header ─────────────────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .6); border-width: 0 0 1px; border-color: rgba(255, 255, 255, .7); box-shadow: 0 8px 30px -20px rgba(60, 40, 140, .35); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-name { font-family: var(--display); font-weight: 750; letter-spacing: .05em; color: var(--ink); font-size: 1.15rem; }
.site-nav { display: flex; align-items: center; gap: 14px; }
.nav-list { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav-item { position: relative; display: flex; align-items: center; }
.nav-link { display: block; padding: 8px 12px; font-weight: 600; font-size: .95rem; color: #3d4163; text-decoration: none; border-radius: 999px; transition: background .2s, color .2s; }
.nav-link:hover { color: var(--ink); background: rgba(255, 255, 255, .7); }
.nav-item.is-active > .nav-link { color: var(--ink); background: #fff; box-shadow: 0 4px 14px -6px rgba(60, 40, 140, .3); }
.menu-toggle { background: none; border: 0; padding: 6px 4px; margin-left: -6px; color: var(--muted); cursor: pointer; border-radius: 6px; }
.menu-toggle .icon { width: 15px; height: 15px; transition: transform .2s; }
.nav-cta { padding: .72em 1.25em; }

.mega {
  position: absolute; top: calc(100% + 14px); left: -24px; display: grid; grid-template-columns: repeat(4, minmax(185px, 1fr)); gap: 6px 26px;
  padding: 24px 26px; background: rgba(255, 255, 255, .97); border: 1px solid #fff; border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -25px rgba(60, 40, 140, .4);
  width: max-content; max-width: min(920px, 92vw);
  opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .18s, visibility .18s;
}
.mega::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.mega-sm { grid-template-columns: 1fr; min-width: 300px; }
.mega-title { font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 8px; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mega a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 0 -10px; border-radius: 12px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .93rem; }
.mega a .icon { color: var(--cyan); width: 18px; height: 18px; }
.nav-item:nth-child(2) .mega a .icon { color: var(--purple); }
.mega a:hover, .mega a[aria-current] { background: #f3f1ff; }
.has-menu:hover .mega, .has-menu:focus-within .mega, .has-menu.open .mega { opacity: 1; visibility: visible; transform: none; }
.has-menu.open .menu-toggle .icon { transform: rotate(180deg); }
.nav-toggle { display: none; background: rgba(255, 255, 255, .7); border: 1px solid rgba(22, 22, 58, .12); border-radius: 12px; padding: 8px; color: var(--ink); cursor: pointer; }
.nav-toggle .icon { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }

@media (max-width: 1040px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { position: fixed; inset: 72px 0 0 0; background: #fbfaff; flex-direction: column; align-items: stretch; padding: 8px 24px 110px; overflow-y: auto; gap: 18px; display: none; }
  .nav-open .site-nav { display: flex; }
  .nav-open .nav-toggle .icon-open { display: none; }
  .nav-open .nav-toggle .icon-close { display: block; }
  .nav-open { overflow: hidden; }
  .nav-list { flex-direction: column; align-items: stretch; }
  .nav-item { flex-wrap: wrap; border-bottom: 1px solid var(--line); }
  .nav-item.is-active > .nav-link { background: none; box-shadow: none; color: var(--pink); }
  .nav-link { flex: 1; padding: 16px 0; font-size: 1.12rem; font-family: var(--display); border-radius: 0; }
  .nav-link:hover { background: none; }
  .menu-toggle { padding: 14px; margin: 0; }
  .menu-toggle .icon { width: 20px; height: 20px; }
  .mega, .has-menu:hover .mega, .has-menu:focus-within .mega {
    position: static; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent;
    padding: 0 0 14px; width: 100%; max-width: none; grid-template-columns: 1fr; min-width: 0;
  }
  .has-menu.open .mega { display: grid; }
  .mega::before { display: none; }
  .mega-title { margin-top: 8px; }
  .nav-cta { width: 100%; }
}

/* ── Breadcrumbs ────────────────────────────────────────────────────────── */
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 22px 0 0; font-family: var(--mono); font-size: .74rem; color: var(--muted); }
.breadcrumbs li + li::before { content: "/"; margin: 0 8px 0 4px; color: #b7b9cf; }
.breadcrumbs a { color: var(--text-2); text-decoration: none; }
.breadcrumbs a:hover { color: var(--pink); }
.breadcrumbs [aria-current] { color: var(--ink); }

/* ── Eyebrow / kicker ───────────────────────────────────────────────────── */
.eyebrow, .kicker {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin: 0 0 20px;
  background: rgba(255, 255, 255, .7); border: 1px solid #fff; padding: 6px 12px; border-radius: 999px;
  box-shadow: 0 6px 18px -10px rgba(60, 40, 140, .35);
}
.section-dark .eyebrow { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .3); color: #fff; box-shadow: none; }
.kicker { color: var(--ink); margin-bottom: 26px; }
.pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(31, 207, 159, .6); } 70% { box-shadow: 0 0 0 9px rgba(31, 207, 159, 0); } 100% { box-shadow: 0 0 0 0 rgba(31, 207, 159, 0); } }

/* ── Heroes ─────────────────────────────────────────────────────────────── */
.hero { padding: 48px 0 96px; }
.hero h1 { max-width: 15ch; }
.hero-grid { display: grid; grid-template-columns: 1fr 1.02fr; gap: 64px; align-items: center; }
.lead { font-size: 1.2rem; line-height: 1.6; color: var(--text-2); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 40px 0 0; padding: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; gap: 4px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .6); border: 1px solid #fff; box-shadow: 0 10px 30px -18px rgba(60, 40, 140, .35); }
.hero-stats dd { margin: 0; font-family: var(--display); font-size: 1.4rem; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; background: var(--brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats dt { font-family: var(--mono); font-size: .66rem; letter-spacing: .03em; color: var(--muted); text-transform: uppercase; }
.hub-hero { padding-bottom: 88px; }
.hub-hero h1 { max-width: 18ch; }

.hero-home { padding: 64px 0 150px; }
.hero-home h1 { max-width: 12ch; font-size: clamp(2.7rem, 5.6vw, 4.8rem); }
.hero-home-grid { display: grid; grid-template-columns: .92fr 1.08fr; gap: 56px; align-items: center; }

/* ── Signature: glass operations board ──────────────────────────────────── */
.opsboard { position: relative; border-radius: var(--r-lg); padding: 18px; margin: 0; font-family: var(--mono); font-size: .74rem; color: var(--text-2); background: rgba(255, 255, 255, .5); }
.ob-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 14px; border-bottom: 1px solid rgba(22, 22, 58, .08); }
.ob-title { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; }
.ob-live { display: inline-flex; align-items: center; gap: 8px; color: #0e9f78; font-size: .66rem; font-weight: 600; letter-spacing: .08em; }
.ob-clock { color: var(--muted); font-weight: 400; }
.ob-cols { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; padding: 14px 0; }
.ob-col { min-height: 206px; display: flex; flex-direction: column; gap: 8px; border-radius: 14px; padding: 8px; background: rgba(255, 255, 255, .35); }
.ob-col:nth-child(1) { --dot: var(--coral); } .ob-col:nth-child(2) { --dot: var(--pink); } .ob-col:nth-child(3) { --dot: var(--violet); }
.ob-col:nth-child(4) { --dot: var(--sky); } .ob-col:nth-child(5) { --dot: var(--mint); }
.ob-col-title { display: flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: .6rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-2); margin: 0 0 2px; }
.ob-col-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--dot); }
.ob-col-title span { display: none; }
.ob-card { border-radius: 10px; padding: 9px 9px 8px; background: rgba(255, 255, 255, .88); border: 1px solid #fff; box-shadow: 0 6px 16px -10px rgba(60, 40, 140, .35); display: grid; gap: 3px; animation: obIn .5s cubic-bezier(.2, .8, .2, 1) both; }
.ob-card strong { color: var(--ink); font-weight: 600; font-size: .72rem; }
.ob-meta { color: var(--muted); font-size: .62rem; }
.ob-tag { justify-self: start; font-size: .58rem; font-weight: 600; padding: 1px 7px; border-radius: 999px; }
.ob-tag.echs { color: #c2410c; background: #ffe8dc; } .ob-tag.cghs { color: #6236f0; background: #ece6ff; } .ob-tag.tpa { color: #0a7ea4; background: #dff4fb; }
.ob-card.is-new { box-shadow: 0 0 0 2px rgba(242, 67, 154, .55), 0 10px 20px -10px rgba(242, 67, 154, .6); }
.ob-card.is-done { box-shadow: 0 0 0 2px rgba(31, 207, 159, .5); }
@keyframes obIn { from { opacity: 0; transform: translateY(6px) scale(.97); } to { opacity: 1; transform: none; } }
.ob-log { border-top: 1px solid rgba(22, 22, 58, .08); padding: 12px 4px 2px; height: 80px; overflow: hidden; display: flex; flex-direction: column; gap: 5px; }
.ob-log p { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-2); animation: obIn .4s both; }
.ob-log p:nth-child(2) { opacity: .65; } .ob-log p:nth-child(3) { opacity: .4; }
.ob-log time { color: var(--muted); margin-right: 10px; }
.ob-log b { font-weight: 600; color: #0e9f78; }
.ob-log .bot { color: var(--pink); font-weight: 600; }
.ob-caption { position: absolute; right: 16px; bottom: -28px; font-size: .64rem; color: var(--muted); margin: 0; }

.hero-logos { display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; margin-top: 48px; }
.hero-logos p { margin: 0; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hero-logos ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 10px; flex-wrap: wrap; }
.logo-chip { background: rgba(255, 255, 255, .85); border: 1px solid #fff; border-radius: 14px; padding: 8px 14px; display: grid; place-items: center; height: 52px; box-shadow: 0 8px 20px -14px rgba(60, 40, 140, .4); }
.logo-chip img { height: 32px; width: auto; }

/* Two practices, overlapping the hero */
.paths { position: relative; z-index: 2; margin-top: -92px; padding-bottom: 24px; }
.path-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.path-card {
  --c: var(--cyan); --cs: var(--cyan-soft); --g: linear-gradient(120deg, #2eb6ff, #1fcf9f);
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 6px 20px; padding: 30px; border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .7); text-decoration: none; color: var(--text); transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.path-card.education { --c: var(--purple); --cs: var(--purple-soft); --g: linear-gradient(120deg, #7b4dff, #f2439a); }
.path-card::after { content: ""; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--g); }
.path-card:hover { transform: translateY(-5px); color: var(--text); box-shadow: 0 1px 0 #fff inset, 0 30px 60px -25px rgba(60, 40, 140, .45); }
.path-card .card-icon { grid-row: span 4; background: var(--g); color: #fff; width: 58px; height: 58px; border-radius: 18px; box-shadow: 0 10px 22px -10px var(--c); }
.path-card h2 { font-size: 1.6rem; margin: 2px 0 0; }
.path-card p { margin: 0; color: var(--text-2); }
.path-card ul { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.path-card li { font-family: var(--mono); font-size: .66rem; font-weight: 600; background: var(--cs); color: var(--c); padding: 4px 10px; border-radius: 999px; }
.path-card .card-more { color: var(--c); padding-top: 12px; }

/* ── Sections ───────────────────────────────────────────────────────────── */
.section { padding: 104px 0; }
.section-tight { padding: 48px 0; }
.section-soft { background: var(--mesh-soft); }
.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head p { color: var(--text-2); font-size: 1.12rem; }
.prose-wrap { max-width: 780px; }
.prose-wrap p { color: var(--text-2); font-size: 1.1rem; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }

/* ── Cards (glass look without blur) ────────────────────────────────────── */
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card-grid-3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.card { position: relative; background: rgba(255, 255, 255, .72); border: 1px solid #fff; border-radius: var(--r); padding: 26px; display: flex; flex-direction: column; gap: 6px; box-shadow: 0 1px 0 #fff inset, 0 12px 34px -22px rgba(60, 40, 140, .4); }
.card h3, .card .h3 { margin: 14px 0 4px; }
.card p { margin: 0; color: var(--text-2); font-size: .98rem; }
.card-icon { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.card-icon .icon { width: 23px; height: 23px; }
.card-link { text-decoration: none; color: inherit; transition: transform .25s, box-shadow .25s; }
.card-link:hover { transform: translateY(-5px); box-shadow: 0 1px 0 #fff inset, 0 26px 50px -24px rgba(60, 40, 140, .45); color: inherit; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 18px; font-weight: 700; font-size: .92rem; color: var(--accent); }
.card-more .icon { width: 16px; height: 16px; transition: transform .25s; }
.card-link:hover .card-more .icon, .path-card:hover .card-more .icon { transform: translateX(4px); }
.group-title { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 48px 0 16px; }
.group-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.section-head + .group-title { margin-top: 0; }
.section-dark .card { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); box-shadow: none; }
.section-dark .card p { color: rgba(255, 255, 255, .82); }

/* Colourful icon tints cycle through the palette */
.card-grid > :nth-child(5n+1) .card-icon, .dept-items > :nth-child(5n+1) .card-icon { --accent: #e8461e; --accent-soft: #ffe8dc; }
.card-grid > :nth-child(5n+2) .card-icon, .dept-items > :nth-child(5n+2) .card-icon { --accent: #d12c75; --accent-soft: #ffe2f0; }
.card-grid > :nth-child(5n+3) .card-icon, .dept-items > :nth-child(5n+3) .card-icon { --accent: #6236f0; --accent-soft: #ece6ff; }
.card-grid > :nth-child(5n+4) .card-icon, .dept-items > :nth-child(5n+4) .card-icon { --accent: #0a7ea4; --accent-soft: #dff4fb; }
.card-grid > :nth-child(5n+5) .card-icon, .dept-items > :nth-child(5n+5) .card-icon { --accent: #0e8a68; --accent-soft: #dcf7ee; }

/* ── Department directory ───────────────────────────────────────────────── */
.dept-list { display: grid; gap: 14px; }
.dept { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .5); border: 1px solid #fff; }
.dept-name { font-size: 1.35rem; margin: 8px 0 0; }
.dept-name span { display: block; font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
.dept-items { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mod { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 14px 16px; border-radius: 16px; background: rgba(255, 255, 255, .85); border: 1px solid #fff; text-decoration: none; color: var(--text); box-shadow: 0 8px 22px -18px rgba(60, 40, 140, .45); transition: transform .2s, box-shadow .2s; }
.mod:hover { color: var(--text); transform: translateY(-3px); box-shadow: 0 20px 36px -20px rgba(60, 40, 140, .5); }
.mod-text strong { display: block; font-family: var(--display); font-weight: 650; font-size: 1.04rem; letter-spacing: -.01em; }
.mod-text span { display: block; font-size: .88rem; color: var(--text-2); line-height: 1.45; margin-top: 2px; }
.mod-arrow { width: 18px; height: 18px; color: #b0b3cb; transition: transform .2s, color .2s; }
.mod:hover .mod-arrow { color: var(--pink); transform: translateX(3px); }

/* ── Product features: spec list ────────────────────────────────────────── */
.feature-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-row { display: grid; grid-template-columns: auto 1fr; gap: 18px; padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, .72); border: 1px solid #fff; box-shadow: 0 12px 30px -24px rgba(60, 40, 140, .45); }
.feature-row h3 { margin: 4px 0 6px; }
.feature-row p { margin: 0; color: var(--text-2); }
.feature-list > :nth-child(5n+1) .card-icon { --accent: #e8461e; --accent-soft: #ffe8dc; }
.feature-list > :nth-child(5n+2) .card-icon { --accent: #d12c75; --accent-soft: #ffe2f0; }
.feature-list > :nth-child(5n+3) .card-icon { --accent: #6236f0; --accent-soft: #ece6ff; }
.feature-list > :nth-child(5n+4) .card-icon { --accent: #0a7ea4; --accent-soft: #dff4fb; }
.feature-list > :nth-child(5n+5) .card-icon { --accent: #0e8a68; --accent-soft: #dcf7ee; }

/* ── Steps: a real sequence, drawn as a track ───────────────────────────── */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; }
.steps li { position: relative; padding-top: 62px; }
.steps li::before { content: ""; position: absolute; top: 21px; left: 56px; right: -20px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(123, 77, 255, .35), rgba(242, 67, 154, .15)); }
.steps li:last-child::before { display: none; }
.step-num { position: absolute; top: 0; left: 0; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; font-family: var(--mono); font-size: .9rem; font-weight: 700; background: var(--brand); color: #fff; box-shadow: 0 10px 22px -10px rgba(209, 44, 117, .7); }
.steps h3 { margin-bottom: 6px; }
.steps p { color: var(--text-2); margin: 0; font-size: .98rem; }
.section-dark .step-num { background: #fff; color: var(--violet); box-shadow: none; }
.section-dark .steps p { color: rgba(255, 255, 255, .82); }
.section-dark .steps li::before { background: rgba(255, 255, 255, .35); }

/* ── Benefits (on the gradient band) ────────────────────────────────────── */
.benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.benefits li { display: flex; gap: 16px; padding: 26px; border-radius: var(--r); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.benefits .icon { width: 26px; height: 26px; color: #fff; margin-top: 2px; }
.benefits h3 { margin: 0 0 6px; }
.benefits p { margin: 0; }
.benefits-light { grid-template-columns: 1fr; gap: 18px; margin: 30px 0 36px; }
.benefits-light li { padding: 0; background: none; border: 0; }
.benefits-light .icon { color: var(--accent); }
.benefits-light p { color: var(--text-2); }

/* ── Chips ──────────────────────────────────────────────────────────────── */
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-family: var(--mono); font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .8); border: 1px solid #fff; padding: 8px 14px; border-radius: 999px; color: var(--text-2); box-shadow: 0 6px 16px -12px rgba(60, 40, 140, .4); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq-wrap { max-width: 900px; }
.faq { display: grid; gap: 10px; }
.faq details { background: rgba(255, 255, 255, .75); border: 1px solid #fff; border-radius: var(--r); box-shadow: 0 10px 28px -22px rgba(60, 40, 140, .45); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 60px 22px 24px; font-family: var(--display); font-weight: 650; font-size: 1.12rem; letter-spacing: -.01em; color: var(--ink); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 24px; top: 50%; width: 14px; height: 2px; border-radius: 2px; background: var(--pink); transition: transform .25s; }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details[open] { background: #fff; }
.faq details p { padding: 0 60px 22px 24px; margin: 0; color: var(--text-2); }

/* ── Preview window (product UI with sample data) ───────────────────────── */
.preview { margin: 0; background: rgba(255, 255, 255, .9); border: 1px solid #fff; border-radius: 20px; box-shadow: 0 40px 80px -30px rgba(60, 40, 140, .45); overflow: hidden; transform: perspective(1400px) rotateY(-5deg) rotateX(2deg); transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.preview:hover { transform: none; }
.preview-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; background: rgba(243, 241, 255, .8); border-bottom: 1px solid #ecebf7; }
.preview-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); }
.preview-bar span:nth-child(2) { background: var(--sun); } .preview-bar span:nth-child(3) { background: var(--mint); }
.preview-bar p { margin: 0 0 0 10px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.preview-body { padding: 20px; }
.preview figcaption { font-family: var(--mono); font-size: .64rem; color: var(--muted); padding: 0 20px 14px; text-align: right; }
.tone-ok { --t: #15803d; --tb: #e3f7ec; }
.tone-warn { --t: #a16207; --tb: #fff4d6; }
.tone-late { --t: #c81e4a; --tb: #ffe4ec; }
.tone-info { --t: #3b3bd6; --tb: #e9e8ff; }
.tone-neutral { --t: #545878; --tb: #f1f1f8; }
.preview-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.pv-stat { border-radius: 14px; padding: 14px 16px; background: var(--tb); }
.pv-stat span { display: block; font-family: var(--mono); font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--t); }
.pv-stat strong { font-family: var(--display); font-size: 1.7rem; color: var(--ink); letter-spacing: -.02em; }
.pv-timeline { list-style: none; margin: 0; padding: 0 0 0 6px; }
.pv-timeline li { position: relative; padding: 0 0 16px 26px; border-left: 2px dashed #dcdcec; }
.pv-timeline li:last-child { border-left-color: transparent; padding-bottom: 0; }
.pv-timeline li::before { content: ""; position: absolute; left: -8px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--t); }
.pv-timeline strong, .pv-list strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; }
.pv-timeline span, .pv-list span { font-family: var(--mono); font-size: .7rem; color: var(--t); }
.pv-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pv-list li { padding: 12px 14px; border-radius: 12px; background: var(--tb); }
.pv-list span { color: var(--text-2); }
.pv-table-wrap { overflow-x: auto; }
.pv-table { width: 100%; border-collapse: collapse; font-size: .82rem; }
.pv-table th { text-align: left; font-family: var(--mono); font-weight: 600; font-size: .62rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid #ecebf7; white-space: nowrap; }
.pv-table td { padding: 10px; border-bottom: 1px solid #f1f0fa; white-space: nowrap; color: var(--ink); }
.pv-table tr:last-child td { border-bottom: 0; }
.badge { display: inline-block; font-family: var(--mono); font-size: .66rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; color: var(--t); background: var(--tb); }

/* ── Trust strip ────────────────────────────────────────────────────────── */
.trust { padding: 40px 0; background: var(--mesh-soft); }
.trust-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.trust p { margin: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.trust ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust li { background: #fff; border-radius: 14px; padding: 10px 16px; box-shadow: 0 8px 20px -14px rgba(60, 40, 140, .4); }
.trust img { height: 38px; width: auto; }

/* ── Ecosystem: modules around the HIS ──────────────────────────────────── */
.eco { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.eco-core {
  grid-column: 2; grid-row: 2; display: grid; place-items: center; align-content: center; text-align: center; padding: 22px; border-radius: 20px;
  background: var(--brand); color: #fff; font-family: var(--display); font-weight: 750; font-size: 1.3rem;
  box-shadow: 0 0 0 8px rgba(242, 67, 154, .12), 0 0 0 16px rgba(123, 77, 255, .07), 0 20px 40px -16px rgba(209, 44, 117, .6);
}
.eco-core small { display: block; font-family: var(--mono); font-weight: 500; color: rgba(255, 255, 255, .85); font-size: .6rem; letter-spacing: .04em; text-transform: uppercase; margin-top: 4px; }
.eco-node { background: rgba(255, 255, 255, .75); border: 1px solid #fff; border-radius: 16px; padding: 14px 16px; font-size: .9rem; box-shadow: 0 10px 24px -18px rgba(60, 40, 140, .45); transition: transform .2s; }
.eco-node:hover { transform: translateY(-3px); }
.eco-node strong { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.eco-node strong .icon { color: var(--accent); width: 18px; height: 18px; }
.eco-node:nth-child(odd) strong .icon { color: var(--pink); }
.eco-node span { display: block; font-family: var(--mono); color: var(--muted); font-size: .64rem; margin-top: 4px; }

/* ── Terminal (bot log) on the gradient band ────────────────────────────── */
.terminal { border-radius: var(--r-lg); background: rgba(20, 10, 60, .35); border: 1px solid rgba(255, 255, 255, .25); font-family: var(--mono); font-size: .78rem; overflow: hidden; box-shadow: 0 30px 60px -30px rgba(20, 10, 60, .6); }
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(255, 255, 255, .15); color: rgba(255, 255, 255, .7); font-size: .7rem; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--coral); }
.terminal-bar i:nth-child(2) { background: var(--sun); } .terminal-bar i:nth-child(3) { background: var(--mint); }
.terminal-bar span { margin-left: 8px; }
.terminal ol { list-style: none; margin: 0; padding: 16px 18px 18px; display: grid; gap: 9px; }
.terminal li { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; color: #fff; }
.terminal time { color: rgba(255, 255, 255, .55); }
.terminal .ok { color: #7cf5cf; } .terminal .warn { color: #ffd66b; } .terminal .bot { color: #ffc1dc; }
.numbers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 32px; }
.numbers div { padding: 20px 22px; border-radius: var(--r); background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); }
.numbers strong { display: block; font-family: var(--display); font-size: 2rem; color: #fff; font-weight: 750; line-height: 1.1; letter-spacing: -.02em; }
.numbers span { font-family: var(--mono); color: rgba(255, 255, 255, .8); font-size: .7rem; }

/* ── Article / case study ───────────────────────────────────────────────── */
.article-hero { padding: 40px 0 72px; }
.article-hero .container { max-width: 840px; }
.article-hero h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); }
.article-hero img { background: #fff; padding: 10px 16px; border-radius: 14px; box-sizing: content-box; box-shadow: 0 10px 24px -16px rgba(60, 40, 140, .45); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-family: var(--mono); font-size: .72rem; color: var(--muted); text-transform: uppercase; }
.article { max-width: 840px; margin: 0 auto; padding: 64px 24px 96px; font-size: 1.1rem; }
.article > p:first-child { font-size: 1.25rem; color: var(--ink); line-height: 1.55; }
.article h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin-top: 1.8em; }
.article h3 { margin-top: 1.6em; }
.article p, .article li { color: #3b3f5e; }
.article li { margin-bottom: .5em; }
.article li::marker { color: var(--pink); }
.article blockquote { margin: 1.8em 0; padding: 20px 24px; border-radius: var(--r); background: #fff; border-left: 4px solid var(--pink); font-family: var(--display); font-size: 1.25rem; line-height: 1.4; color: var(--ink); }
.article blockquote p { color: inherit; }
.article blockquote p:last-child { margin: 0; }
.callout { border-radius: var(--r-lg); padding: 28px 30px; margin: 2.2em 0; background: linear-gradient(135deg, #fff1ea, #ffe6f2 50%, #eee8ff); border: 1px solid #fff; box-shadow: 0 16px 40px -28px rgba(60, 40, 140, .5); }
.callout h2, .callout h3 { margin-top: 0; }
.callout li::marker { color: var(--violet); }
.callout p:last-child, .callout ul:last-child, .callout ol:last-child { margin-bottom: 0; }
.article table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 1.8em 0; font-size: .95rem; display: block; overflow-x: auto; background: #fff; border-radius: var(--r); box-shadow: 0 12px 30px -24px rgba(60, 40, 140, .5); }
.article th, .article td { border-bottom: 1px solid #efeef8; padding: 12px 14px; text-align: left; vertical-align: top; }
.article th { font-family: var(--mono); font-weight: 600; font-size: .7rem; text-transform: uppercase; letter-spacing: .04em; color: var(--violet); background: #f5f2ff; }
.post-card time { font-family: var(--mono); font-size: .7rem; color: var(--muted); margin-top: auto; padding-top: 16px; }
.results { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 1.6em 0 2.2em; }
.results div { background: #fff; border-radius: 16px; padding: 20px; box-shadow: 0 12px 28px -22px rgba(60, 40, 140, .5); position: relative; overflow: hidden; }
.results div::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--brand); }
.results strong { display: block; font-family: var(--display); color: var(--ink); font-size: 1.1rem; }
.results span { font-size: .92rem; color: var(--text-2); }

/* ── Forms ──────────────────────────────────────────────────────────────── */
.contact-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 40px; align-items: start; }
.form { background: rgba(255, 255, 255, .85); border: 1px solid #fff; border-radius: var(--r-lg); padding: 36px; box-shadow: 0 30px 60px -34px rgba(60, 40, 140, .5); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: .92rem; color: var(--ink); margin-bottom: 7px; }
.field label .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea { width: 100%; font: inherit; font-size: 1rem; padding: 13px 15px; border: 1px solid #dcdcee; border-radius: 12px; background: #f8f7ff; color: var(--ink); transition: border-color .2s, box-shadow .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(123, 77, 255, .18); }
.field textarea { min-height: 120px; resize: vertical; }
.field-error { color: #c81e4a; font-size: .88rem; margin: 6px 0 0; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 16px 18px; border-radius: 12px; margin-bottom: 20px; }
.alert-ok { background: #e3f7ec; color: #14532d; }
.alert-error { background: #ffe4ec; color: #7f1d3a; }
.form-note { font-size: .85rem; color: var(--muted); margin: 16px 0 0; }
.contact-info { display: grid; gap: 12px; }
.contact-info .card { flex-direction: row; gap: 16px; align-items: flex-start; padding: 20px 22px; }
.contact-info h2 { font-family: var(--mono); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 4px; }
.contact-info p { margin: 0; font-weight: 600; }
.contact-info .card:nth-child(1) .card-icon { --accent: #e8461e; --accent-soft: #ffe8dc; }
.contact-info .card:nth-child(2) .card-icon { --accent: #d12c75; --accent-soft: #ffe2f0; }
.contact-info .card:nth-child(3) .card-icon { --accent: #6236f0; --accent-soft: #ece6ff; }
.contact-info .card:nth-child(4) .card-icon { --accent: #0a7ea4; --accent-soft: #dff4fb; }
.map-embed { border: 0; width: 100%; height: 240px; border-radius: var(--r); }

/* ── CTA: brand gradient panel ──────────────────────────────────────────── */
.cta-band { padding: 0 0 104px; }
.section-soft + .cta-band { background: linear-gradient(#f4f5ff 50%, var(--canvas) 50%); }
.cta-inner {
  position: relative; overflow: hidden; display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: 56px; border-radius: 30px; color: rgba(255, 255, 255, .9);
  background: radial-gradient(60% 90% at 100% 0%, rgba(255, 197, 61, .55), transparent 60%), linear-gradient(120deg, #ff6a3d 0%, #e0357f 45%, #6a35e8 100%);
  box-shadow: 0 40px 80px -40px rgba(209, 44, 117, .8);
}
.cta-inner::before { content: ""; position: absolute; width: 380px; height: 380px; right: -80px; bottom: -200px; border-radius: 50%; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .3); }
.cta-inner > * { position: relative; }
.cta-band h2 { color: #fff; max-width: 16ch; margin-bottom: 12px; }
.cta-band p { margin: 0; max-width: 34em; font-size: 1.08rem; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-actions .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 12px 26px -12px rgba(20, 10, 60, .6); }
.cta-actions .btn-primary:hover { color: var(--pink); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
.site-footer { padding: 80px 0 28px; font-size: .95rem; overflow: hidden; color: var(--text-2); background: radial-gradient(50% 80% at 0% 0%, rgba(46, 182, 255, .14), transparent 60%), radial-gradient(50% 80% at 100% 100%, rgba(242, 67, 154, .14), transparent 60%), #f1f0ff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 56px; }
.footer-about p { margin: 18px 0; max-width: 30em; }
.site-footer address { font-style: normal; line-height: 1.85; }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--pink); }
.footer-title { font-family: var(--mono); font-size: .68rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }
.site-footer .footer-title a { color: var(--muted); }
.footer-links { list-style: none; margin: 0 0 32px; padding: 0; display: grid; gap: 8px; }
.social { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: #fff; box-shadow: 0 8px 18px -12px rgba(60, 40, 140, .45); }
.social a:hover { color: #fff; background: var(--brand); }
.footer-word { font-family: var(--display); font-weight: 800; font-size: clamp(3.4rem, 15.5vw, 13.5rem); line-height: .78; letter-spacing: -.05em; margin: 64px 0 0; text-align: center; user-select: none;
  background: linear-gradient(180deg, rgba(123, 77, 255, .35), rgba(242, 67, 154, .08) 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; border-top: 1px solid var(--line); padding-top: 22px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.footer-bottom p { margin: 0; }
.mobile-cta { display: none; }
.mt-lg { margin-top: 36px; }

/* ── Responsive ─────────────────────────────────────────────────────────── */
.hero-grid > *, .hero-home-grid > *, .split > *, .contact-grid > * { min-width: 0; }
@media (max-width: 1080px) {
  .hero-home-grid { grid-template-columns: 1fr; gap: 56px; }
}
@media (max-width: 960px) {
  .hero-grid, .split, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .preview { transform: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .eco { grid-template-columns: 1fr 1fr; }
  .eco-core { grid-column: 1 / -1; grid-row: 1; }
  .path-cards { grid-template-columns: 1fr; }
  .steps li::before { display: none; }
  .dept { grid-template-columns: 1fr; gap: 14px; }
  .dept-items, .feature-list, .benefits { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
  body { font-size: 1rem; }
  .container { padding: 0 18px; }
  .section { padding: 72px 0; }
  .hero { padding: 32px 0 72px; }
  .hero-home { padding: 40px 0 130px; }
  .ob-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ob-col:nth-child(n+4) { display: none; }
  .opsboard { padding: 14px; }
  .ob-clock { display: none; }
  .path-card { grid-template-columns: 1fr; padding: 24px; }
  .path-card .card-icon { grid-row: auto; }
  .dept { padding: 18px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form { padding: 22px; }
  .cta-inner { padding: 36px 24px; border-radius: 24px; }
  .terminal li { grid-template-columns: 56px 1fr; }
  .terminal li > :last-child { display: none; }
  .mobile-cta { display: flex; position: fixed; left: 16px; right: 16px; bottom: 14px; z-index: 40; }
  .site-footer { padding-bottom: 96px; }
  .cta-actions, .cta-actions .btn, .hero-actions .btn { width: 100%; }
  .faq summary { font-size: 1.04rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .preview { transform: none; }
}

/* Hero facts (replaces client logos) */
.hero-facts { list-style: none; margin: 40px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.hero-facts li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 999px; background: rgba(255, 255, 255, .7); border: 1px solid #fff; font-size: .9rem; font-weight: 600; color: var(--ink); box-shadow: 0 8px 20px -14px rgba(60, 40, 140, .4); }
.hero-facts .icon { width: 17px; height: 17px; color: var(--pink); }
.hero-note { display: flex; align-items: flex-start; gap: 8px; margin: 18px 0 0; font-size: .82rem; color: var(--muted); max-width: 40em; }
.hero-note .icon { width: 16px; height: 16px; margin-top: 2px; color: var(--muted); }

/* ==========================================================================
   Motion — opacity/transform only (GPU-cheap). All disabled by the
   prefers-reduced-motion rule above.
   ========================================================================== */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes riseScale { from { opacity: 0; transform: translateY(30px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes shimmer { to { background-position: 200% 0; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }

/* Hero load sequence */
.hero .kicker, .hero .eyebrow, .hero h1, .hero .lead, .hero .hero-actions, .hero .hero-note,
.hero .hero-facts, .hero .hero-stats, .article-hero .eyebrow, .article-hero h1, .article-hero .lead, .article-hero .article-meta,
.breadcrumbs { animation: rise .8s cubic-bezier(.2, .8, .2, 1) both; }
.hero h1, .article-hero h1 { animation-delay: .08s; }
.hero .lead, .article-hero .lead { animation-delay: .18s; }
.hero .hero-actions, .article-hero .article-meta { animation-delay: .28s; }
.hero .hero-note { animation-delay: .34s; }
.hero .hero-facts, .hero .hero-stats { animation-delay: .4s; }
.hero .opsboard, .hero .hero-visual, .hero .eco { animation: riseScale 1s cubic-bezier(.2, .8, .2, 1) .25s both; }
.paths .path-card { animation: riseScale .9s cubic-bezier(.2, .8, .2, 1) .45s both; }
.paths .path-card + .path-card { animation-delay: .55s; }

/* Gradient headline word shimmers slowly */
.grad-text { background: linear-gradient(100deg, #ff6a3d 0%, #f2439a 25%, #7b4dff 50%, #f2439a 75%, #ff6a3d 100%); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; animation: shimmer 6s linear infinite; }

/* Product preview gently floats (wrapper, so hover tilt still works) */
.hero-visual { animation: riseScale 1s cubic-bezier(.2, .8, .2, 1) .25s both, floaty 7s ease-in-out 1.4s infinite; }

/* Scroll reveal (JS adds .reveal only to elements below the fold, so nothing flashes) */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s cubic-bezier(.2, .8, .2, 1), transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }

/* Step track draws in */
.steps.reveal-group li::before { transform: scaleX(0); transform-origin: left; transition: transform .9s cubic-bezier(.2, .8, .2, 1) .3s; }
.steps.reveal-group.is-in li::before { transform: scaleX(1); }

/* Terminal lines appear one by one */
.terminal.reveal-group li { opacity: 0; transform: translateX(-8px); transition: opacity .35s, transform .35s; }
.terminal.reveal-group.is-in li { opacity: 1; transform: none; }
.terminal.reveal-group.is-in li:nth-child(2) { transition-delay: .35s; } .terminal.reveal-group.is-in li:nth-child(3) { transition-delay: .7s; }
.terminal.reveal-group.is-in li:nth-child(4) { transition-delay: 1.05s; } .terminal.reveal-group.is-in li:nth-child(5) { transition-delay: 1.4s; }
.terminal.reveal-group.is-in li:nth-child(6) { transition-delay: 1.75s; } .terminal.reveal-group.is-in li:nth-child(7) { transition-delay: 2.1s; }

/* Hover micro-interactions */
.btn-primary { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); transform: translateX(-120%) skewX(-20deg); }
.btn-primary:hover::after { animation: sweep .8s ease; }
.card-icon { transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.card-link:hover .card-icon, .mod:hover .card-icon, .path-card:hover .card-icon, .feature-row:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
.feature-row { transition: transform .25s, box-shadow .25s; }
.feature-row:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -26px rgba(60, 40, 140, .55); }
.eco-core { animation: corePulse 3.2s ease-in-out infinite; }
@keyframes corePulse { 0%, 100% { box-shadow: 0 0 0 8px rgba(242, 67, 154, .12), 0 0 0 16px rgba(123, 77, 255, .07), 0 20px 40px -16px rgba(209, 44, 117, .6); }
  50% { box-shadow: 0 0 0 12px rgba(242, 67, 154, .08), 0 0 0 24px rgba(123, 77, 255, .04), 0 20px 40px -16px rgba(209, 44, 117, .6); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .terminal.reveal-group li { opacity: 1 !important; transform: none !important; }
  .steps.reveal-group li::before { transform: none !important; }
}

/* Mobile: keep motion light — no floating/tilting, shorter reveals */
@media (max-width: 960px) {
  .hero-visual { animation: riseScale .8s cubic-bezier(.2, .8, .2, 1) .2s both; }
  .reveal { transform: translateY(18px); transition-duration: .55s; }
  .eco-core { animation: none; }
}
@media (max-width: 680px) {
  .mobile-cta.btn-primary { position: fixed; }
}

/* Hero illustration */
.hero-image { margin: 0; padding: 10px; border-radius: 28px; background: rgba(255, 255, 255, .55); border: 1px solid #fff; box-shadow: 0 40px 80px -34px rgba(60, 40, 140, .5); animation: riseScale 1s cubic-bezier(.2, .8, .2, 1) .25s both; }
.hero-image img { width: 100%; height: auto; border-radius: 20px; }
.split-intro { align-items: center; grid-template-columns: 1.1fr 1fr; }
.split-intro .prose-wrap { max-width: none; }
.intro-visual .preview { transform: none; }
.hub-hero .hero-grid h1 { font-size: clamp(2.3rem, 4.2vw, 3.6rem); max-width: 20ch; }

/* LCP-friendly: the headline and intro slide in without fading, so they count as painted immediately */
@keyframes slideIn { from { transform: translateY(18px); } to { transform: none; } }
.hero h1, .hero .lead, .article-hero h1, .article-hero .lead { animation-name: slideIn; }

/* ── Loading states ─────────────────────────────────────────────────────── */
@keyframes spin { to { transform: rotate(360deg); } }
.btn.is-loading { pointer-events: none; opacity: .92; }
.btn.is-loading::before { content: ""; width: 1em; height: 1em; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }

/* Page-change bar */
.nav-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 200; pointer-events: none; opacity: 0; transition: opacity .2s; }
.nav-progress::before { content: ""; position: absolute; inset: 0; background: var(--brand-btn); transform-origin: left; transform: scaleX(0); }
.is-navigating .nav-progress { opacity: 1; }
.is-navigating .nav-progress::before { animation: navProgress 2.5s cubic-bezier(.1, .7, .3, 1) forwards; }
@keyframes navProgress { 0% { transform: scaleX(0); } 60% { transform: scaleX(.7); } 100% { transform: scaleX(.92); } }
.is-navigating { cursor: progress; }
@media (prefers-reduced-motion: reduce) {
  .btn.is-loading::before { animation: spin 1.4s linear infinite !important; }
  .is-navigating .nav-progress::before { animation: none !important; transform: scaleX(.6); }
}


/* ── What we build ──────────────────────────────────────────────────────── */
.capabilities { padding-top: 72px; }
.cap-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cap { display: flex; flex-direction: column; gap: 8px; padding: 26px; border-radius: var(--r-lg); background: rgba(255, 255, 255, .78); border: 1px solid #fff; box-shadow: 0 1px 0 #fff inset, 0 14px 36px -24px rgba(60, 40, 140, .45); transition: transform .25s, box-shadow .25s; }
.cap:hover { transform: translateY(-4px); box-shadow: 0 1px 0 #fff inset, 0 26px 50px -26px rgba(60, 40, 140, .5); }
.cap h3 { margin: 10px 0 2px; }
.cap p { margin: 0; color: var(--text-2); font-size: .98rem; }
.cap ul { list-style: none; margin: auto 0 0; padding: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cap li, .cap li a { font-family: var(--mono); font-size: .7rem; font-weight: 600; border-radius: 999px; }
.cap li { background: var(--accent-soft); color: var(--accent); }
.cap li:not(:has(a)) { padding: 5px 10px; }
.cap li a { display: inline-block; padding: 5px 10px; color: inherit; text-decoration: none; }
.cap li a:hover { text-decoration: underline; }
.cap-grid > :nth-child(1) { --accent: #e8461e; --accent-soft: #ffe8dc; }
.cap-grid > :nth-child(2) { --accent: #d12c75; --accent-soft: #ffe2f0; }
.cap-grid > :nth-child(3) { --accent: #6236f0; --accent-soft: #ece6ff; }
.cap-grid > :nth-child(4) { --accent: #0a7ea4; --accent-soft: #dff4fb; }
.cap-grid > :nth-child(5) { --accent: #0e8a68; --accent-soft: #dcf7ee; }
.cap-grid > :nth-child(6) { --accent: #b45309; --accent-soft: #fff1d6; }
.cap:hover .card-icon { transform: translateY(-3px) rotate(-6deg) scale(1.06); }
@media (max-width: 960px) { .cap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .cap-grid { grid-template-columns: 1fr; } }
.section-head .eyebrow { font-size: .72rem; }
.hero-facts { gap: 8px; margin-top: 32px; }
.hero-facts li { padding: 7px 12px; font-size: .82rem; }
.hero-facts .icon { width: 15px; height: 15px; }

/* ── Hero: one platform, many capabilities ─────────────────────────────── */
.platform { position: relative; margin: 0 0 0 auto; width: 100%; max-width: 580px; aspect-ratio: 1 / 1; }
.pl-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.pl-orbit { transform-box: view-box; transform-origin: 50% 50%; animation: plSpin 60s linear infinite; }
.pl-orbit circle { stroke: rgba(123, 77, 255, .28); stroke-width: .3; stroke-dasharray: 1.2 1.6; }
@keyframes plSpin { to { transform: rotate(360deg); } }
.pl-line { fill: none; stroke: var(--c); stroke-width: .45; stroke-linecap: round; opacity: .55; stroke-dasharray: 100; stroke-dashoffset: 100; animation: plDraw .9s cubic-bezier(.4, 0, .2, 1) calc(.8s + var(--i) * .14s) forwards; }
@keyframes plDraw { to { stroke-dashoffset: 0; } }
.pl-dot { filter: drop-shadow(0 0 1.2px currentColor); }

.pl-hub {
  position: absolute; left: 50%; top: 50%; width: 36%; aspect-ratio: 1 / 1; transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; border-radius: 30%;
  background: radial-gradient(80% 80% at 30% 20%, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(135deg, #ff6a3d 0%, #e0357f 50%, #6a35e8 100%);
  color: #fff; border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 0 0 10px rgba(242, 67, 154, .10), 0 0 0 22px rgba(123, 77, 255, .06), 0 30px 60px -20px rgba(209, 44, 117, .7);
  animation: plHubIn .9s cubic-bezier(.2, .8, .2, 1) .2s both, plHubPulse 3.6s ease-in-out 1.6s infinite;
}
.pl-hub img { width: 26px; height: auto; padding: 5px 6px; border-radius: 10px; background: #fff; box-sizing: content-box; }
.pl-hub strong { font-family: var(--display); font-weight: 750; letter-spacing: .05em; font-size: clamp(.85rem, 1.6vw, 1.05rem); }
.pl-hub-sub { font-family: var(--mono); font-size: .6rem; text-transform: uppercase; letter-spacing: .08em; opacity: .85; margin-top: -2px; }
.pl-aud { display: flex; gap: 4px; margin-top: 6px; flex-wrap: wrap; justify-content: center; }
.pl-aud > span { display: inline-flex; align-items: center; gap: 4px; font-size: .62rem; font-weight: 700; padding: 3px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); }
.pl-aud .icon { width: 11px; height: 11px; }
.pl-aud-h { color: var(--cyan); } .pl-aud-e { color: var(--purple); }
@keyframes plHubIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.7); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
@keyframes plHubPulse { 0%, 100% { box-shadow: 0 0 0 10px rgba(242, 67, 154, .10), 0 0 0 22px rgba(123, 77, 255, .06), 0 30px 60px -20px rgba(209, 44, 117, .7); }
  50% { box-shadow: 0 0 0 16px rgba(242, 67, 154, .07), 0 0 0 32px rgba(123, 77, 255, .035), 0 30px 60px -20px rgba(209, 44, 117, .7); } }

.pl-node {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px; width: 118px; padding: 10px 8px 9px; text-align: center;
  border-radius: 18px; background: rgba(255, 255, 255, .82); border: 1px solid #fff; color: var(--ink); text-decoration: none;
  box-shadow: 0 1px 0 #fff inset, 0 14px 30px -18px rgba(60, 40, 140, .5);
  animation: plNodeIn .6s cubic-bezier(.2, .8, .2, 1) calc(1.2s + var(--i) * .14s) both;
  transition: box-shadow .25s, background .25s;
}
.pl-node:hover { color: var(--ink); background: #fff; box-shadow: 0 0 0 2px var(--c), 0 18px 34px -16px rgba(60, 40, 140, .55); }
.pl-ico { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; color: #fff; background: var(--c); box-shadow: 0 8px 18px -8px var(--c); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pl-ico .icon { width: 21px; height: 21px; }
.pl-node:hover .pl-ico { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.pl-label { font-size: .78rem; font-weight: 700; line-height: 1.2; }
@keyframes plNodeIn { from { opacity: 0; transform: translate(-50%, -50%) scale(.6); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }

/* Ops board now lives in the hospital ecosystem section */
.opsboard-inline { background: rgba(255, 255, 255, .7); }

@media (max-width: 1080px) { .platform { margin: 0 auto; } }
@media (max-width: 560px) {
  .pl-node { width: 84px; padding: 7px 4px; gap: 4px; border-radius: 14px; }
  .pl-ico { width: 30px; height: 30px; border-radius: 10px; }
  .pl-ico .icon { width: 16px; height: 16px; }
  .pl-label { font-size: .64rem; }
  .pl-hub { width: 40%; gap: 2px; }
  .pl-hub img { width: 18px; padding: 3px 4px; }
  .pl-hub-sub { display: none; }
  .pl-aud > span { font-size: .54rem; padding: 2px 5px; }
  .pl-aud .icon { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .pl-dot { display: none; }
  .pl-line { stroke-dashoffset: 0 !important; }
  .pl-hub, .pl-node { opacity: 1 !important; }
}
