/* =============================================================
   healthcare.css — Industries / Healthcare ("the care monitor")
   Page prefix: .hc-  ·  Own visual language: clinical chart +
   vitals monitor (ECG traces, patient charts, care journey,
   orbit). Theme colours follow the site; UI is brand-new.
   Light/dark rhythm: hero D · charts L · journey D · suite L ·
   vitals D · path L · orbit D · CTA L
   ============================================================= */

.hc-wrap {
    --hc-ink: #070c26;
    --hc-ink-2: #0b1034;
    --hc-panel: #101747;
    --hc-panel-2: #161e5c;
    --hc-line: rgba(255, 255, 255, 0.12);
    --hc-line-strong: rgba(255, 255, 255, 0.22);
    --hc-text: #ffffff;
    --hc-dim: rgba(255, 255, 255, 0.68);
    --hc-faint: rgba(255, 255, 255, 0.44);
    --hc-cyan: #43D2E0;
    --hc-violet: #7B2FF7;
    --hc-magenta: #B51BB5;
    --hc-pink: #FF5C8A;
    --hc-amber: #F0A400;
    --hc-green: #35E08F;

    --hc-shell: min(88%, 1400px);

    position: relative;
    background: var(--hc-ink);
    color: var(--hc-text);
    overflow-x: clip;
}

.hc-wrap .hc-shell {
    max-width: var(--hc-shell);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- shared type ---------- */
.hc-h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.hc-h2 {
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.hc-h2 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--hc-cyan), var(--hc-violet) 55%, var(--hc-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hc-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    line-height: 1.62;
    color: var(--hc-dim);
    max-width: 56ch;
}

.hc-body {
    font-size: 1.06rem;
    line-height: 1.66;
    color: var(--hc-dim);
    max-width: 64ch;
}

.hc-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hc-cyan);
}

.hc-label i {
    font-style: normal;
    display: grid;
    place-items: center;
    min-width: 30px;
    height: 22px;
    padding: 0 6px;
    border: 1px solid rgba(67, 210, 224, 0.5);
    border-radius: 5px;
    font-size: 0.72rem;
    letter-spacing: 1px;
}

.hc-head {
    margin-bottom: clamp(38px, 5vw, 64px);
}

.hc-head .hc-h2 {
    margin: 18px 0 16px;
}

.hc-sec {
    position: relative;
    padding: clamp(74px, 9vw, 130px) 0;
    /* anchor jumps must clear the sticky glass header */
    scroll-margin-top: 130px;
}

/* ---------- status LEDs ---------- */
.hc-led {
    display: inline-block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.06);
    flex: none;
}

.hc-led--on {
    background: var(--hc-green);
    box-shadow: 0 0 10px rgba(53, 224, 143, 0.8);
    animation: hc-pulse 2.6s ease-in-out infinite;
}

.hc-led--warn {
    background: var(--hc-amber);
    box-shadow: 0 0 10px rgba(240, 164, 0, 0.8);
    animation: hc-pulse 1.3s ease-in-out infinite;
}

@keyframes hc-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

/* ---------- buttons ---------- */
.hc-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 600;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.hc-btn--fill {
    background: linear-gradient(120deg, var(--hc-cyan), var(--hc-violet) 60%, var(--hc-magenta));
    color: #fff;
    box-shadow: 0 14px 34px rgba(67, 210, 224, 0.32);
}

.hc-btn--fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 46px rgba(67, 210, 224, 0.45);
}

.hc-btn--ghost {
    border-color: var(--hc-line-strong);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.hc-btn--ghost:hover {
    border-color: var(--hc-cyan);
    color: var(--hc-cyan);
    transform: translateY(-2px);
}

/* ---------- scroll reveal ---------- */
[data-hc-rise] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-hc-rise].is-in {
    opacity: 1;
    transform: none;
}

[data-hc-delay="1"] {
    transition-delay: 0.1s;
}

[data-hc-delay="2"] {
    transition-delay: 0.2s;
}

[data-hc-delay="3"] {
    transition-delay: 0.3s;
}

/* =============================================================
   1 · HERO — ECG monitor
   ============================================================= */
.hc-hero {
    position: relative;
    padding: clamp(150px, 17vh, 210px) 0 0;
    min-height: 92vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background:
        radial-gradient(1100px 560px at 80% 10%, rgba(22, 30, 92, 0.85), transparent 68%),
        radial-gradient(900px 520px at 10% 90%, rgba(67, 210, 224, 0.12), transparent 70%),
        linear-gradient(180deg, #0a1038 0%, var(--hc-ink) 80%);
}

.hc-mon {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hc-mon__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(67, 210, 224, 0.07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 210, 224, 0.07) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: radial-gradient(1200px 800px at 55% 45%, #000 30%, transparent 82%);
    -webkit-mask-image: radial-gradient(1200px 800px at 55% 45%, #000 30%, transparent 82%);
}

.hc-mon__ecg {
    position: absolute;
    left: 0;
    right: 0;
    top: 34%;
    width: 100%;
    height: 42%;
    opacity: 0.9;
}

.hc-mon__trace {
    fill: none;
    stroke-width: 2.6;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 3600;
    stroke-dashoffset: 3600;
    animation: hc-draw 3.4s ease forwards;
    filter: drop-shadow(0 0 8px rgba(67, 210, 224, 0.55));
}

.hc-mon__trace--soft {
    stroke-width: 1.6;
    animation-delay: 0.6s;
    filter: none;
}

@keyframes hc-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.hc-mon__scan {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 130px;
    background: linear-gradient(90deg, transparent, rgba(67, 210, 224, 0.12) 45%, rgba(67, 210, 224, 0.22) 50%, transparent);
    animation: hc-scan 8s linear infinite;
}

@keyframes hc-scan {
    from {
        left: -160px;
    }

    to {
        left: 110%;
    }
}

.hc-mon__glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.32;
}

.hc-mon__glow--a {
    background: var(--hc-violet);
    right: -120px;
    top: -80px;
}

.hc-mon__glow--b {
    background: var(--hc-cyan);
    left: -160px;
    bottom: -140px;
    opacity: 0.16;
}

.hc-hero__in {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: clamp(32px, 4vw, 68px);
    align-items: center;
    padding-bottom: clamp(40px, 6vh, 80px);
    width: 100%;
}

.hc-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--hc-faint);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.hc-crumb i {
    font-style: normal;
    opacity: 0.5;
}

.hc-crumb a:hover {
    color: var(--hc-cyan);
}

.hc-crumb b {
    color: var(--hc-dim);
    font-weight: 600;
}

.hc-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid var(--hc-line-strong);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.82rem;
    letter-spacing: 2.6px;
    text-transform: uppercase;
    color: var(--hc-dim);
    margin-bottom: 26px;
}

.hc-eyebrow__led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--hc-pink);
    box-shadow: 0 0 12px var(--hc-pink);
    animation: hc-pulse 1.6s ease-in-out infinite;
}

/* words fade + blur in (deliberately different from Manufacturing's rotate) */
.hc-word {
    display: inline-block;
    opacity: 0;
    filter: blur(10px);
    transform: translateY(0.35em);
    animation: hc-word-in 0.9s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
    animation-delay: calc(0.12s + var(--w) * 0.11s);
}

.hc-word--grad {
    background: linear-gradient(100deg, var(--hc-cyan), var(--hc-violet) 50%, var(--hc-pink));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes hc-word-in {
    to {
        opacity: 1;
        filter: blur(0);
        transform: none;
    }
}

.hc-hero__copy .hc-lead {
    margin: 26px 0 34px;
}

.hc-hero__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.hc-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.hc-hero__tags li {
    padding: 8px 15px;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--hc-dim);
    background: rgba(255, 255, 255, 0.035);
}

/* patient flow board */
.hc-board {
    border: 1px solid var(--hc-line-strong);
    border-radius: 18px;
    background: linear-gradient(165deg, rgba(22, 30, 92, 0.92), rgba(11, 16, 52, 0.94));
    box-shadow: 0 30px 70px rgba(3, 6, 24, 0.6);
    overflow: hidden;
    animation: hc-board-in 1s ease 0.5s both;
}

@keyframes hc-board-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hc-board__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--hc-line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.hc-board__title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.hc-board__clock {
    color: var(--hc-faint);
    letter-spacing: 1px;
}

.hc-board__rows {
    padding: 18px;
    display: grid;
    gap: 15px;
}

.hc-board__row {
    display: grid;
    grid-template-columns: 1fr 110px 46px;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--hc-dim);
}

.hc-board__row b {
    text-align: right;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.hc-board__row--warn b {
    color: var(--hc-amber);
}

.hc-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.hc-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--hc-cyan), var(--hc-green));
    transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hc-board__row--warn .hc-bar i {
    background: linear-gradient(90deg, var(--hc-amber), var(--hc-pink));
}

.hc-board.is-on .hc-bar i {
    width: var(--v);
}

.hc-board__spark {
    padding: 4px 18px 14px;
}

.hc-board__spark svg {
    width: 100%;
    height: 54px;
}

.hc-board__spark polyline {
    fill: none;
    stroke: var(--hc-cyan);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(67, 210, 224, 0.6));
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    animation: hc-draw 2.4s ease 1s forwards;
}

.hc-board__spark small {
    display: block;
    margin-top: 6px;
    color: var(--hc-faint);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.hc-board__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 13px 18px;
    border-top: 1px solid var(--hc-line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    color: var(--hc-dim);
}

.hc-board__foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* standards strip */
.hc-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 16px 24px;
    border-top: 1px solid var(--hc-line);
    background: rgba(7, 12, 38, 0.6);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: none;
}

.hc-strip::-webkit-scrollbar {
    display: none;
}

.hc-strip__label {
    flex: none;
    font-size: 0.76rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hc-faint);
}

.hc-strip ul {
    display: flex;
    gap: 22px;
    align-items: center;
}

.hc-strip li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 0.92rem;
    color: var(--hc-dim);
    letter-spacing: 0.6px;
}

/* =============================================================
   2 · PATIENT CHARTS (light)
   ============================================================= */
.hc-charts__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.hc-chart {
    position: relative;
    border: 1px solid var(--hc-line-strong);
    border-radius: 4px 18px 18px 18px;
    background: linear-gradient(170deg, #ffffff, #f7f6fd);
    box-shadow: 0 16px 36px rgba(31, 24, 89, 0.12);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

/* the coloured chart tab */
.hc-chart::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 78px;
    height: 6px;
    border-radius: 0 0 6px 0;
    background: linear-gradient(90deg, var(--hc-cyan), var(--hc-violet));
    transition: width 0.35s ease;
}

.hc-chart:nth-child(3n+2)::before {
    background: linear-gradient(90deg, var(--hc-violet), var(--hc-magenta));
}

.hc-chart:nth-child(3n)::before {
    background: linear-gradient(90deg, var(--hc-magenta), var(--hc-pink));
}

.hc-chart:hover::before,
.hc-chart.is-open::before {
    width: 100%;
}

.hc-chart:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 50px rgba(31, 24, 89, 0.18);
}

.hc-chart__tab {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 32px 26px 22px;
    cursor: pointer;
}

.hc-chart__code {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid rgba(14, 145, 168, 0.5);
    border-radius: 6px;
    color: var(--hc-cyan);
    font-size: 0.76rem;
    letter-spacing: 2.2px;
    margin-bottom: 15px;
}

.hc-chart h3 {
    font-size: 1.22rem;
    line-height: 1.32;
    margin-bottom: 11px;
    color: var(--hc-text);
}

.hc-chart__sym {
    color: var(--hc-faint);
    font-size: 0.95rem;
    line-height: 1.55;
}

/* mini "vitals" row */
.hc-chart__vitals {
    display: flex;
    gap: 6px;
    margin-top: 16px;
}

.hc-chart__vitals i {
    height: 5px;
    border-radius: 999px;
    background: rgba(14, 145, 168, 0.35);
    flex: 1;
}

.hc-chart__vitals i:nth-child(1) {
    max-width: 42px;
}

.hc-chart__vitals i:nth-child(2) {
    max-width: 26px;
    background: rgba(106, 34, 224, 0.35);
}

.hc-chart__vitals i:nth-child(3) {
    max-width: 16px;
    background: rgba(255, 92, 138, 0.4);
}

.hc-chart__more {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--hc-line-strong);
    border-radius: 50%;
    color: var(--hc-violet);
    font-size: 1.15rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.hc-chart.is-open .hc-chart__more {
    transform: rotate(45deg);
    background: rgba(106, 34, 224, 0.1);
}

.hc-chart__fix {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
    padding: 0 26px;
}

.hc-chart.is-open .hc-chart__fix {
    max-height: 360px;
    padding-bottom: 62px;
}

.hc-chart__fix p {
    color: var(--hc-dim);
    line-height: 1.6;
    font-size: 0.98rem;
}

.hc-chart__fix strong {
    color: var(--hc-text);
}

.hc-chart__fix ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.hc-chart__fix li {
    padding: 6px 12px;
    border: 1px solid rgba(14, 145, 168, 0.4);
    border-radius: 999px;
    color: var(--hc-cyan);
    font-size: 0.82rem;
}

/* =============================================================
   3 · CARE JOURNEY (dark)
   ============================================================= */
.hc-journey {
    background:
        radial-gradient(1000px 520px at 12% 20%, rgba(123, 47, 247, 0.16), transparent 70%),
        linear-gradient(180deg, var(--hc-ink-2), var(--hc-ink));
    border-top: 1px solid var(--hc-line);
    border-bottom: 1px solid var(--hc-line);
}

.hc-journey__track {
    position: relative;
    padding: 10px 0 6px;
}

.hc-journey__line {
    width: 100%;
    height: 120px;
    display: block;
}

.hc-journey__path {
    fill: none;
    stroke: url(#hcEcgGrad);
    stroke-width: 2.4;
    stroke-dasharray: 6 10;
    opacity: 0.85;
}

.hc-journey__pulse {
    fill: var(--hc-pink);
    filter: drop-shadow(0 0 8px rgba(255, 92, 138, 0.9));
}

.hc-journey__nodes {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 12px;
    margin-top: 6px;
}

.hc-journey__nodes button {
    padding: 15px 12px;
    border: 1px solid var(--hc-line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--hc-dim);
    font: inherit;
    font-size: 0.98rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.hc-journey__nodes button b {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: var(--hc-faint);
}

.hc-journey__nodes button:hover {
    transform: translateY(-3px);
    border-color: var(--hc-line-strong);
    color: #fff;
}

.hc-journey__nodes button.is-on {
    border-color: rgba(67, 210, 224, 0.6);
    background: linear-gradient(120deg, rgba(67, 210, 224, 0.16), rgba(123, 47, 247, 0.16));
    color: #fff;
}

.hc-journey__nodes button.is-on b {
    color: var(--hc-cyan);
}

.hc-journey__detail {
    position: relative;
    margin-top: 22px;
    border: 1px solid var(--hc-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.03);
    padding: clamp(24px, 3vw, 36px);
    min-height: 280px;
}

.hc-journey__detail article {
    display: none;
}

.hc-journey__detail article.is-on {
    display: block;
    animation: hc-panel-in 0.45s ease;
}

@keyframes hc-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.hc-journey__detail h3 {
    font-size: clamp(1.3rem, 2vw, 1.6rem);
    margin-bottom: 16px;
}

.hc-journey__detail p {
    color: var(--hc-dim);
    line-height: 1.62;
    margin-bottom: 12px;
    font-size: 0.99rem;
    max-width: 72ch;
}

.hc-journey__detail p small {
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--hc-cyan);
    margin-bottom: 4px;
}

.hc-journey__detail ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hc-journey__detail li {
    padding: 6px 12px;
    border: 1px solid var(--hc-line-strong);
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--hc-dim);
}

/* =============================================================
   4 · CARE SUITE — monitor tiles (light)
   ============================================================= */
.hc-suite__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.hc-tile {
    position: relative;
    padding: 26px 24px 26px;
    border: 1px solid var(--hc-line);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff, #f8f7fd);
    box-shadow: 0 14px 32px rgba(31, 24, 89, 0.1);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
}

.hc-tile::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--hc-cyan), var(--hc-violet), var(--hc-pink));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hc-tile:hover {
    transform: translateY(-5px);
    border-color: rgba(14, 145, 168, 0.45);
    box-shadow: 0 22px 44px rgba(31, 24, 89, 0.16);
}

.hc-tile:hover::after {
    opacity: 1;
}

.hc-tile__trace {
    width: 110px;
    height: 32px;
    display: block;
    margin-bottom: 14px;
}

.hc-tile__trace polyline {
    fill: none;
    stroke: var(--hc-cyan);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    transition: stroke-dashoffset 1s ease;
}

.hc-tile:hover .hc-tile__trace polyline,
.hc-tile.is-in .hc-tile__trace polyline {
    stroke-dashoffset: 0;
}

.hc-tile h3 {
    font-size: 1.14rem;
    margin-bottom: 9px;
    color: var(--hc-text);
}

.hc-tile p {
    color: var(--hc-dim);
    font-size: 0.94rem;
    line-height: 1.58;
}

/* =============================================================
   5 · VITALS BOARD (dark)
   ============================================================= */
.hc-vitals {
    background:
        radial-gradient(900px 460px at 50% 0%, rgba(255, 92, 138, 0.1), transparent 70%),
        linear-gradient(180deg, var(--hc-ink), var(--hc-ink-2));
}

.hc-vitals .hc-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

.hc-vitals .hc-head {
    grid-column: 1 / -1;
    margin-bottom: clamp(26px, 3vw, 40px);
}

.hc-vitals__board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.hc-vital {
    margin: 0;
    padding: 24px 22px 20px;
    border: 1px solid var(--hc-line);
    border-radius: 18px;
    background:
        radial-gradient(120% 90% at 50% 110%, rgba(67, 210, 224, 0.12), transparent 62%),
        rgba(255, 255, 255, 0.03);
    text-align: left;
}

.hc-vital__trace {
    width: 100%;
    height: 56px;
    margin-bottom: 12px;
}

.hc-vital__trace path {
    fill: none;
    stroke: var(--hc-cyan);
    stroke-width: 2.2;
    stroke-linejoin: round;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(67, 210, 224, 0.55));
    stroke-dasharray: 620;
    stroke-dashoffset: 620;
    transition: stroke-dashoffset 1.8s ease;
}

.hc-vital.is-on .hc-vital__trace path {
    stroke-dashoffset: 0;
}

.hc-vital:nth-child(even) .hc-vital__trace path {
    stroke: var(--hc-pink);
    filter: drop-shadow(0 0 6px rgba(255, 92, 138, 0.55));
}

.hc-vital figcaption b {
    display: block;
    font-size: clamp(1.9rem, 2.8vw, 2.5rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.hc-vital figcaption small {
    display: block;
    margin-top: 6px;
    color: var(--hc-faint);
    font-size: 0.86rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* audit card */
.hc-audit {
    border: 1px solid var(--hc-line-strong);
    border-radius: 18px;
    background: linear-gradient(170deg, rgba(22, 30, 92, 0.9), rgba(11, 16, 52, 0.92));
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(3, 6, 24, 0.5);
}

.hc-audit__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--hc-line);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.8rem;
    letter-spacing: 2.4px;
    color: var(--hc-dim);
}

.hc-audit__rows {
    padding: 8px 20px;
}

.hc-audit__rows li {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 12px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.hc-audit__rows li:last-child {
    border-bottom: 0;
}

.hc-audit__rows span {
    color: #fff;
}

.hc-audit__rows b {
    color: var(--hc-green);
    font-weight: 500;
    font-size: 0.92rem;
}

.hc-audit__foot {
    padding: 13px 20px;
    border-top: 1px solid var(--hc-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--hc-faint);
    font-size: 0.82rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* =============================================================
   6 · CARE PATH — alternating timeline (light)
   ============================================================= */
.hc-timeline {
    position: relative;
    list-style: none;
    max-width: 980px;
    margin: 0 auto;
}

.hc-timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    transform: translateX(-50%);
    background: linear-gradient(180deg, var(--hc-cyan), var(--hc-violet) 55%, var(--hc-pink));
    opacity: 0.35;
}

.hc-phase {
    position: relative;
    width: calc(50% - 42px);
    padding: 22px 26px;
    border: 1px solid var(--hc-line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 14px 30px rgba(31, 24, 89, 0.1);
    margin-bottom: 26px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.hc-phase:hover {
    transform: translateY(-3px);
    border-color: rgba(106, 34, 224, 0.4);
}

.hc-phase:nth-child(odd) {
    margin-right: auto;
}

.hc-phase:nth-child(even) {
    margin-left: auto;
}

/* connector dot */
.hc-phase::before {
    content: "";
    position: absolute;
    top: 32px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: #fff;
    border: 2.5px solid var(--hc-violet);
    box-shadow: 0 0 0 5px rgba(106, 34, 224, 0.12);
}

.hc-phase:nth-child(odd)::before {
    right: -55px;
}

.hc-phase:nth-child(even)::before {
    left: -55px;
}

.hc-phase__badge {
    display: inline-block;
    padding: 5px 11px;
    border: 1.5px solid var(--hc-amber);
    border-radius: 999px;
    color: var(--hc-amber);
    font-size: 0.74rem;
    letter-spacing: 2.2px;
    margin-bottom: 12px;
    transform: rotate(-1.5deg);
}

.hc-phase b {
    display: block;
    font-size: 1.16rem;
    margin-bottom: 9px;
    color: var(--hc-text);
}

.hc-phase p {
    color: var(--hc-dim);
    font-size: 0.95rem;
    line-height: 1.58;
}

.hc-phase small {
    display: block;
    margin-top: 13px;
    padding-top: 11px;
    border-top: 1px dashed rgba(25, 20, 67, 0.16);
    color: var(--hc-cyan);
    font-size: 0.82rem;
}

/* =============================================================
   7 · ORBIT — connected care (dark)
   Sized to fit ONE screen: the whole section (header + orbit)
   stays inside the viewport, so the title is always visible.
   ============================================================= */
.hc-orbit {
    background:
        radial-gradient(900px 500px at 85% 85%, rgba(67, 210, 224, 0.1), transparent 70%),
        linear-gradient(180deg, var(--hc-ink-2), var(--hc-ink));
    border-top: 1px solid var(--hc-line);
    overflow-x: clip;
    padding: clamp(56px, 8vh, 104px) 0 clamp(48px, 7vh, 96px);
}

.hc-orbit .hc-head {
    margin-bottom: clamp(18px, 3vh, 38px);
    text-align: center;
}

.hc-orbit .hc-head .hc-h2 {
    margin: 12px 0 12px;
    font-size: clamp(1.75rem, 2.8vw, 2.55rem);
}

.hc-orbit .hc-head .hc-body {
    margin: 0 auto;
    font-size: 1rem;
    max-width: 60ch;
}

.hc-orbit__stage {
    position: relative;
    /* width follows the VIEWPORT HEIGHT so header + orbit fit on one screen */
    width: min(660px, 100%, calc(100vh - 400px));
    min-width: 300px;
    aspect-ratio: 1;
    margin: 0 auto;
}

.hc-orbit__ring {
    position: absolute;
    inset: 12%;
    border: 1.5px dashed rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    animation: hc-spin 60s linear infinite;
}

@keyframes hc-spin {
    to {
        transform: rotate(360deg);
    }
}

.hc-orbit__spokes {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hc-orbit__spokes line {
    stroke-width: 1.8;
    stroke-linecap: round;
    opacity: 0.85;
}

.hc-orbit__core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 34%;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    gap: 10px;
    border-radius: 50%;
    border: 1px solid rgba(67, 210, 224, 0.5);
    background:
        radial-gradient(circle at 32% 28%, rgba(67, 210, 224, 0.3), transparent 55%),
        linear-gradient(160deg, var(--hc-panel-2), var(--hc-panel));
    box-shadow: 0 0 0 12px rgba(67, 210, 224, 0.06), 0 0 70px rgba(67, 210, 224, 0.25);
    text-align: center;
    font-size: 0.95rem;
    letter-spacing: 2.6px;
    line-height: 1.5;
}

.hc-orbit__sats {
    position: absolute;
    inset: 0;
    list-style: none;
}

.hc-orbit__sats li {
    position: absolute;
    transform: translate(-50%, -50%);
}

/* 8 points on the ring (centre 50% / 50%, radius 38% of the stage) */
.hc-orbit__sats li:nth-child(1) {
    left: 50%;
    top: 11%;
}

.hc-orbit__sats li:nth-child(2) {
    left: 78%;
    top: 22%;
}

.hc-orbit__sats li:nth-child(3) {
    left: 89%;
    top: 50%;
}

.hc-orbit__sats li:nth-child(4) {
    left: 78%;
    top: 78%;
}

.hc-orbit__sats li:nth-child(5) {
    left: 50%;
    top: 89%;
}

.hc-orbit__sats li:nth-child(6) {
    left: 22%;
    top: 78%;
}

.hc-orbit__sats li:nth-child(7) {
    left: 11%;
    top: 50%;
}

.hc-orbit__sats li:nth-child(8) {
    left: 22%;
    top: 22%;
}

.hc-sat {
    padding: 9px 15px;
    border: 1px solid var(--hc-line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    color: var(--hc-dim);
    font: inherit;
    font-size: 0.88rem;
    white-space: nowrap;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.hc-sat:hover,
.hc-sat:focus-visible,
.hc-sat.is-wired {
    border-color: rgba(67, 210, 224, 0.6);
    color: #fff;
    background: rgba(67, 210, 224, 0.12);
    transform: scale(1.06);
    outline: none;
}

.hc-orbit__note {
    position: absolute;
    left: 50%;
    bottom: -6px;
    transform: translateX(-50%);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    max-width: 100%;
    text-align: center;
    color: var(--hc-faint);
    font-size: 0.86rem;
}

/* =============================================================
   8 · CTA — appointment card (light)
   ============================================================= */
.hc-appt {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
    gap: clamp(28px, 3.5vw, 56px);
    padding: clamp(34px, 4vw, 58px);
    border: 1px solid var(--hc-line-strong);
    border-radius: 22px;
    background:
        radial-gradient(700px 320px at 8% 0%, rgba(67, 210, 224, 0.12), transparent 65%),
        linear-gradient(165deg, #ffffff, #f6f5fd);
    box-shadow: 0 30px 70px rgba(31, 24, 89, 0.16);
    overflow: hidden;
}

/* perforated edge */
.hc-appt__perf {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 10px;
    background: radial-gradient(circle at 8px 0, transparent 6px, var(--hc-violet) 6.5px, var(--hc-violet) 8px, transparent 8.5px) repeat-x;
    background-size: 22px 10px;
    opacity: 0.55;
}

.hc-appt .hc-h2 {
    margin: 16px 0 14px;
}

.hc-appt__btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
}

.hc-appt__check {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.hc-appt__check li {
    position: relative;
    padding-left: 24px;
    color: var(--hc-dim);
    font-size: 0.95rem;
}

.hc-appt__check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 1.5px solid var(--hc-green);
    background: rgba(53, 224, 143, 0.15);
}

.hc-appt__card {
    margin: 0;
    align-self: center;
    border: 1px dashed var(--hc-line-strong);
    border-radius: 16px;
    padding: 12px 22px;
    background: rgba(25, 20, 67, 0.035);
}

.hc-appt__card div {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(25, 20, 67, 0.14);
}

.hc-appt__card div:last-child {
    border-bottom: 0;
}

.hc-appt__card dt {
    color: var(--hc-faint);
    font-size: 0.82rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.hc-appt__card dd {
    margin: 0;
    color: var(--hc-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hc-appt__card dd a:hover {
    color: var(--hc-violet);
}

/* =============================================================
   LIGHT SECTIONS — scoped re-theme (same rhythm as Manufacturing:
   hero D · charts L · journey D · suite L · vitals D · path L ·
   orbit D · CTA L)
   ============================================================= */
.hc-light {
    --hc-ink: #f5f7fc;
    --hc-ink-2: #edf1f9;
    --hc-panel: #ffffff;
    --hc-panel-2: #f8faff;
    --hc-line: rgba(20, 32, 84, 0.12);
    --hc-line-strong: rgba(20, 32, 84, 0.22);
    --hc-text: #131c4b;
    --hc-dim: rgba(19, 28, 75, 0.72);
    --hc-faint: rgba(19, 28, 75, 0.5);
    --hc-cyan: #0E91A8;
    --hc-violet: #6A22E0;
    --hc-magenta: #A817A8;
    --hc-pink: #E23D6C;
    --hc-amber: #B97C00;
    --hc-green: #12885A;

    color: var(--hc-text);
    background-color: var(--hc-ink);
    background-image:
        linear-gradient(rgba(20, 32, 84, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 32, 84, 0.05) 1px, transparent 1px),
        radial-gradient(900px 420px at 88% 4%, rgba(67, 210, 224, 0.1), transparent 70%),
        radial-gradient(820px 400px at 6% 96%, rgba(106, 34, 224, 0.08), transparent 70%);
    background-size: 46px 46px, 46px 46px, auto, auto;
    border-top: 1px solid var(--hc-line);
    border-bottom: 1px solid var(--hc-line);
}

.hc-light .hc-h2 em {
    background: linear-gradient(100deg, var(--hc-cyan), var(--hc-violet) 55%, var(--hc-pink));
    -webkit-background-clip: text;
    background-clip: text;
}

.hc-light .hc-label i {
    border-color: rgba(14, 145, 168, 0.5);
}

.hc-light .hc-btn--ghost {
    color: var(--hc-text);
    background: rgba(19, 28, 75, 0.04);
}

.hc-light .hc-btn--ghost:hover {
    color: var(--hc-violet);
    border-color: var(--hc-violet);
}

.hc-light .hc-btn--fill {
    box-shadow: 0 14px 34px rgba(106, 34, 224, 0.3);
}

.hc-light .hc-btn--fill:hover {
    box-shadow: 0 20px 44px rgba(106, 34, 224, 0.42);
}

.hc-light .hc-led {
    background: rgba(19, 28, 75, 0.2);
    box-shadow: 0 0 0 3px rgba(19, 28, 75, 0.06);
}

.hc-light .hc-led--on {
    background: var(--hc-green);
    box-shadow: 0 0 10px rgba(18, 136, 90, 0.55);
}

.hc-light .hc-led--warn {
    background: var(--hc-amber);
    box-shadow: 0 0 10px rgba(185, 124, 0, 0.5);
}

/* timeline on light */
.hc-light .hc-timeline::before {
    opacity: 0.5;
}

.hc-light .hc-phase__badge {
    border-color: var(--hc-amber);
    color: var(--hc-amber);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1180px) {
    .hc-suite__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-charts__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hc-hero {
        min-height: 0;
        padding-top: 130px;
    }

    .hc-hero__in,
    .hc-vitals .hc-shell,
    .hc-appt {
        grid-template-columns: 1fr;
    }

    .hc-board {
        max-width: 560px;
    }

    .hc-journey__nodes {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .hc-journey__line {
        display: none;
    }

    /* orbit becomes a wrapped chip cloud */
    .hc-orbit__stage {
        aspect-ratio: auto;
    }

    .hc-orbit__ring,
    .hc-orbit__spokes {
        display: none;
    }

    .hc-orbit__core {
        position: relative;
        top: auto;
        left: auto;
        transform: none;
        width: 180px;
        margin: 0 auto 26px;
    }

    .hc-orbit__sats {
        position: relative;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hc-orbit__sats li,
    .hc-orbit__sats li:nth-child(n) {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
    }

    .hc-orbit__note {
        position: relative;
        left: auto;
        bottom: auto;
        transform: none;
        margin-top: 22px;
        display: flex;
        justify-content: center;
    }
}

@media (max-width: 820px) {
    .hc-timeline::before {
        left: 18px;
    }

    .hc-phase {
        width: 100%;
        margin-left: 48px !important;
        margin-right: 0 !important;
        width: calc(100% - 48px);
    }

    .hc-phase:nth-child(odd)::before,
    .hc-phase:nth-child(even)::before {
        left: -42px;
        right: auto;
    }
}

@media (max-width: 680px) {
    .hc-charts__grid,
    .hc-suite__grid,
    .hc-vitals__board {
        grid-template-columns: 1fr;
    }

    .hc-journey__nodes {
        grid-template-columns: 1fr;
    }

    .hc-hero__btns .hc-btn,
    .hc-appt__btns .hc-btn {
        width: 100%;
        justify-content: center;
    }

    .hc-audit__rows li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .hc-board__row {
        grid-template-columns: 1fr 70px 42px;
    }
}

/* short laptop screens: keep the whole section on one screen */
@media (min-width: 981px) and (max-height: 860px) {
    .hc-orbit {
        padding: clamp(40px, 5vh, 64px) 0 clamp(36px, 5vh, 60px);
    }

    .hc-orbit .hc-head .hc-h2 {
        font-size: clamp(1.55rem, 2.3vw, 2.05rem);
    }

    .hc-orbit .hc-head .hc-body {
        font-size: 0.95rem;
    }

    .hc-orbit__stage {
        width: min(560px, 100%, calc(100vh - 340px));
    }

    .hc-sat {
        padding: 6px 11px;
        font-size: 0.75rem;
        white-space: normal;
        max-width: 112px;
        text-align: center;
        line-height: 1.25;
    }

    .hc-orbit__core {
        font-size: 0.85rem;
        letter-spacing: 2px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .hc-word,
    .hc-mon__trace,
    .hc-mon__scan,
    .hc-board,
    .hc-board__spark polyline,
    .hc-orbit__ring {
        animation: none !important;
    }

    .hc-word {
        opacity: 1;
        filter: none;
        transform: none;
    }

    .hc-mon__trace,
    .hc-board__spark polyline {
        stroke-dashoffset: 0;
    }

    [data-hc-rise] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hc-vital__trace path,
    .hc-tile__trace polyline {
        transition: none;
        stroke-dashoffset: 0;
    }
}