/* =============================================================
   manufacturing.css — Industries / Manufacturing ("the blueprint floor")
   Page prefix: .mf-  ·  Own visual language: technical drawing +
   machine panel (dimension lines, stamped plates, gauges, patch bay).
   Theme colours follow the site: deep indigo, violet, cyan, magenta, amber.
   Loaded via {% block extra_css %} equivalent (extra_head) so it wins
   the cascade over the global sheets.
   ============================================================= */

.mf-wrap {
    --mf-ink: #07061c;
    --mf-ink-2: #0c0a2b;
    --mf-panel: #120d33;
    --mf-panel-2: #171141;
    --mf-line: rgba(255, 255, 255, 0.12);
    --mf-line-strong: rgba(255, 255, 255, 0.22);
    --mf-text: #ffffff;
    --mf-dim: rgba(255, 255, 255, 0.66);
    --mf-faint: rgba(255, 255, 255, 0.42);
    --mf-cyan: #43D2E0;
    --mf-violet: #7B2FF7;
    --mf-purple: #4A128C;
    --mf-magenta: #B51BB5;
    --mf-amber: #F0A400;
    --mf-pink: #FF5C8A;
    --mf-green: #35E08F;

    --mf-shell: min(88%, 1400px);
    --mf-radius: 14px;

    position: relative;
    background: var(--mf-ink);
    color: var(--mf-text);
    overflow-x: clip;
}

.mf-wrap .mf-shell {
    max-width: var(--mf-shell);
    margin: 0 auto;
    padding: 0 24px;
}

/* shared type */
.mf-h1 {
    font-size: clamp(2.6rem, 6vw, 5.2rem);
    line-height: 1.02;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.mf-h2 {
    font-size: clamp(1.9rem, 3.6vw, 3.1rem);
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -0.3px;
}

.mf-h2 em {
    font-style: normal;
    background: linear-gradient(100deg, var(--mf-cyan), var(--mf-violet) 55%, var(--mf-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.mf-lead {
    font-size: clamp(1.05rem, 1.5vw, 1.32rem);
    line-height: 1.62;
    color: var(--mf-dim);
    max-width: 56ch;
}

.mf-body {
    font-size: 1.06rem;
    line-height: 1.66;
    color: var(--mf-dim);
    max-width: 64ch;
}

.mf-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 0.82rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mf-cyan);
}

.mf-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;
    color: var(--mf-cyan);
}

.mf-head {
    margin-bottom: clamp(38px, 5vw, 64px);
}

.mf-head .mf-h2 {
    margin: 18px 0 16px;
}

.mf-sec {
    position: relative;
    padding: clamp(74px, 9vw, 130px) 0;
}

/* LEDs — the panel-status motif used across the page */
.mf-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;
}

.mf-led--on {
    background: var(--mf-green);
    box-shadow: 0 0 10px rgba(53, 224, 143, 0.8);
    animation: mf-pulse 2.6s ease-in-out infinite;
}

.mf-led--warn {
    background: var(--mf-amber);
    box-shadow: 0 0 10px rgba(240, 164, 0, 0.8);
    animation: mf-pulse 1.3s ease-in-out infinite;
}

@keyframes mf-pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.45;
    }
}

/* buttons */
.mf-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 15px 30px;
    border-radius: 10px;
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, border-color 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}

.mf-btn--fill {
    background: linear-gradient(120deg, var(--mf-violet), var(--mf-magenta) 70%, var(--mf-pink));
    color: #fff;
    box-shadow: 0 14px 34px rgba(123, 47, 247, 0.4);
}

.mf-btn--fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 44px rgba(123, 47, 247, 0.55);
}

.mf-btn--ghost {
    border-color: var(--mf-line-strong);
    color: #fff;
    background: rgba(255, 255, 255, 0.04);
}

.mf-btn--ghost:hover {
    border-color: var(--mf-cyan);
    color: var(--mf-cyan);
    transform: translateY(-2px);
}

/* scroll reveal */
[data-mf-rise] {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}

[data-mf-rise].is-in {
    opacity: 1;
    transform: none;
}

[data-mf-delay="1"] {
    transition-delay: 0.1s;
}

[data-mf-delay="2"] {
    transition-delay: 0.2s;
}

[data-mf-delay="3"] {
    transition-delay: 0.3s;
}

/* =============================================================
   1 · HERO — blueprint plant
   ============================================================= */
.mf-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 78% 12%, rgba(74, 18, 140, 0.55), transparent 68%),
        radial-gradient(900px 520px at 12% 88%, rgba(67, 210, 224, 0.14), transparent 70%),
        linear-gradient(180deg, #0a0826 0%, var(--mf-ink) 78%);
}

.mf-blue {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.mf-blue__grid {
    position: absolute;
    inset: -2px;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
    mask-image: radial-gradient(1200px 800px at 60% 40%, #000 30%, transparent 82%);
    -webkit-mask-image: radial-gradient(1200px 800px at 60% 40%, #000 30%, transparent 82%);
}

.mf-blue__dims {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.85;
}

.mf-blue__draw {
    stroke-dasharray: 2600;
    stroke-dashoffset: 2600;
    animation: mf-draw 3.2s ease forwards;
}

.mf-blue__draw:nth-of-type(2) {
    animation-delay: 0.5s;
}

.mf-blue__draw:nth-of-type(3) {
    animation-delay: 0.8s;
}

@keyframes mf-draw {
    to {
        stroke-dashoffset: 0;
    }
}

.mf-blue__node {
    fill: var(--mf-cyan);
    opacity: 0;
    animation: mf-node 0.6s ease forwards;
}

.mf-blue__node:nth-of-type(1) {
    animation-delay: 1.4s;
}

.mf-blue__node:nth-of-type(2) {
    animation-delay: 1.8s;
}

.mf-blue__node:nth-of-type(3) {
    animation-delay: 2.2s;
}

.mf-blue__node:nth-of-type(4) {
    animation-delay: 2.6s;
}

@keyframes mf-node {
    from {
        opacity: 0;
        transform: scale(0.2);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

.mf-blue__scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 140px;
    background: linear-gradient(180deg, transparent, rgba(67, 210, 224, 0.10) 45%, rgba(67, 210, 224, 0.22) 50%, transparent);
    animation: mf-scan 9s linear infinite;
}

@keyframes mf-scan {
    from {
        top: -160px;
    }

    to {
        top: 110%;
    }
}

.mf-blue__glow {
    position: absolute;
    width: 480px;
    height: 480px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: 0.35;
}

.mf-blue__glow--a {
    background: var(--mf-violet);
    right: -120px;
    top: -80px;
}

.mf-blue__glow--b {
    background: var(--mf-cyan);
    left: -160px;
    bottom: -140px;
    opacity: 0.16;
}

.mf-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%;
}

.mf-crumb {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
    color: var(--mf-faint);
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.mf-crumb i {
    font-style: normal;
    opacity: 0.5;
}

.mf-crumb a:hover {
    color: var(--mf-cyan);
}

.mf-crumb b {
    color: var(--mf-dim);
    font-weight: 600;
}

.mf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border: 1px solid var(--mf-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(--mf-dim);
    margin-bottom: 26px;
}

.mf-eyebrow__led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--mf-cyan);
    box-shadow: 0 0 12px var(--mf-cyan);
    animation: mf-pulse 2.2s ease-in-out infinite;
}

.mf-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(0.55em) rotate(2.2deg);
    animation: mf-word-in 0.85s cubic-bezier(0.16, 0.84, 0.28, 1) forwards;
    animation-delay: calc(0.12s + var(--w) * 0.11s);
}

.mf-word--grad {
    background: linear-gradient(100deg, var(--mf-cyan), var(--mf-violet) 50%, var(--mf-magenta));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

@keyframes mf-word-in {
    to {
        opacity: 1;
        transform: none;
    }
}

.mf-hero__copy .mf-lead {
    margin: 26px 0 34px;
}

.mf-hero__btns {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mf-hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.mf-hero__tags li {
    padding: 8px 15px;
    border: 1px solid var(--mf-line);
    border-radius: 8px;
    font-size: 0.88rem;
    color: var(--mf-dim);
    background: rgba(255, 255, 255, 0.035);
}

/* shift board */
.mf-board {
    border: 1px solid var(--mf-line-strong);
    border-radius: var(--mf-radius);
    background: linear-gradient(165deg, rgba(23, 17, 65, 0.92), rgba(12, 10, 43, 0.92));
    box-shadow: 0 30px 70px rgba(4, 2, 20, 0.6);
    overflow: hidden;
    animation: mf-board-in 1s ease 0.5s both;
}

@keyframes mf-board-in {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.mf-board__bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 13px 18px;
    border-bottom: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, 0.04);
    font-size: 0.82rem;
    letter-spacing: 2px;
}

.mf-board__title {
    display: inline-flex;
    align-items: center;
    gap: 9px;
}

.mf-board__clock {
    color: var(--mf-faint);
    letter-spacing: 1px;
}

.mf-board__rows {
    padding: 18px;
    display: grid;
    gap: 15px;
}

.mf-board__row {
    display: grid;
    grid-template-columns: 1fr 110px 46px;
    align-items: center;
    gap: 14px;
    font-size: 0.92rem;
    color: var(--mf-dim);
}

.mf-board__row b {
    text-align: right;
    color: #fff;
    font-variant-numeric: tabular-nums;
}

.mf-board__row--warn b {
    color: var(--mf-amber);
}

.mf-bar {
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mf-bar i {
    display: block;
    height: 100%;
    width: 0;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--mf-cyan), var(--mf-violet));
    transition: width 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.mf-board__row--warn .mf-bar i {
    background: linear-gradient(90deg, var(--mf-amber), var(--mf-pink));
}

.mf-board.is-on .mf-bar i {
    width: var(--v);
}

.mf-board__spark {
    padding: 4px 18px 14px;
}

.mf-board__spark svg {
    width: 100%;
    height: 54px;
}

.mf-board__spark polyline {
    fill: none;
    stroke: var(--mf-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: mf-draw 2.4s ease 1s forwards;
}

.mf-board__spark small {
    display: block;
    margin-top: 6px;
    color: var(--mf-faint);
    letter-spacing: 1.4px;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.mf-board__foot {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 13px 18px;
    border-top: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, 0.03);
    font-size: 0.82rem;
    color: var(--mf-dim);
}

.mf-board__foot span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* signal strip */
.mf-strip {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 26px;
    padding: 16px 24px;
    border-top: 1px solid var(--mf-line);
    background: rgba(7, 6, 28, 0.6);
    backdrop-filter: blur(6px);
    overflow-x: auto;
    scrollbar-width: none;
}

.mf-strip::-webkit-scrollbar {
    display: none;
}

.mf-strip__label {
    flex: none;
    font-size: 0.76rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--mf-faint);
}

.mf-strip ul {
    display: flex;
    gap: 22px;
    align-items: center;
}

.mf-strip li {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    white-space: nowrap;
    font-size: 0.92rem;
    color: var(--mf-dim);
    letter-spacing: 0.6px;
}

/* =============================================================
   2 · PLATES — machine ID plates
   ============================================================= */
.mf-plates {
    background:
        radial-gradient(900px 420px at 85% 0%, rgba(123, 47, 247, 0.16), transparent 70%),
        linear-gradient(180deg, var(--mf-ink) 0%, var(--mf-ink-2) 100%);
}

.mf-plates__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.mf-plate {
    position: relative;
    border: 1px solid var(--mf-line-strong);
    border-radius: 12px;
    background:
        repeating-linear-gradient(115deg, rgba(255, 255, 255, 0.028) 0 2px, transparent 2px 7px),
        linear-gradient(160deg, var(--mf-panel-2), var(--mf-panel));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.09), 0 18px 40px rgba(3, 2, 18, 0.45);
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    /* corner rivets */
    background-position: 0 0, 0 0;
}

.mf-plate::before,
.mf-plate::after {
    content: "";
    position: absolute;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: radial-gradient(circle at 32% 30%, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.12) 60%, rgba(0, 0, 0, 0.4));
    top: 12px;
}

.mf-plate::before {
    left: 12px;
    box-shadow: calc(100% + 0px) 0 0 rgba(255, 255, 255, 0);
}

.mf-plate::after {
    right: 12px;
}

.mf-plate:hover {
    transform: translateY(-4px);
    border-color: rgba(67, 210, 224, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12), 0 26px 54px rgba(3, 2, 18, 0.6);
}

.mf-plate__tag {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font: inherit;
    padding: 34px 26px 24px;
    cursor: pointer;
}

.mf-plate__code {
    display: inline-block;
    padding: 5px 11px;
    border: 1px solid rgba(240, 164, 0, 0.55);
    border-radius: 6px;
    color: var(--mf-amber);
    font-size: 0.76rem;
    letter-spacing: 2.2px;
    margin-bottom: 15px;
}

.mf-plate h3 {
    font-size: 1.22rem;
    line-height: 1.32;
    margin-bottom: 11px;
}

.mf-plate__sym {
    color: var(--mf-faint);
    font-size: 0.95rem;
    line-height: 1.55;
}

.mf-plate__more {
    position: absolute;
    right: 22px;
    bottom: 18px;
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border: 1px solid var(--mf-line-strong);
    border-radius: 8px;
    color: var(--mf-cyan);
    font-size: 1.15rem;
    transition: transform 0.3s ease, background 0.3s ease;
}

.mf-plate.is-open .mf-plate__more {
    transform: rotate(45deg);
    background: rgba(67, 210, 224, 0.14);
}

.mf-plate__fix {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s ease;
    padding: 0 26px;
}

.mf-plate.is-open .mf-plate__fix {
    max-height: 340px;
    padding-bottom: 62px;
}

.mf-plate__fix p {
    color: var(--mf-dim);
    line-height: 1.6;
    font-size: 0.98rem;
}

.mf-plate__fix strong {
    color: #fff;
}

.mf-plate__fix ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mf-plate__fix li {
    padding: 6px 12px;
    border: 1px solid rgba(67, 210, 224, 0.35);
    border-radius: 999px;
    color: var(--mf-cyan);
    font-size: 0.82rem;
}

/* =============================================================
   3 · FLOOR EXPLORER
   ============================================================= */
.mf-floor {
    background:
        radial-gradient(1000px 520px at 8% 100%, rgba(67, 210, 224, 0.12), transparent 70%),
        linear-gradient(180deg, var(--mf-ink-2), var(--mf-ink));
    border-top: 1px solid var(--mf-line);
    border-bottom: 1px solid var(--mf-line);
}

.mf-floor__plan {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
    gap: clamp(26px, 3vw, 48px);
    align-items: start;
}

.mf-floor__mapbox {
    border: 1px solid var(--mf-line-strong);
    border-radius: var(--mf-radius);
    background: linear-gradient(170deg, rgba(18, 13, 51, 0.9), rgba(9, 7, 33, 0.9));
    padding: 18px;
    box-shadow: 0 26px 60px rgba(3, 2, 18, 0.5);
}

.mf-floor__svg {
    width: 100%;
    height: auto;
    display: block;
}

.mf-zone rect {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(255, 255, 255, 0.18);
    stroke-width: 1.4;
    transition: fill 0.35s ease, stroke 0.35s ease;
}

.mf-zone text {
    fill: rgba(255, 255, 255, 0.55);
    font-size: 15px;
    letter-spacing: 2.4px;
    transition: fill 0.35s ease;
}

.mf-zone>circle {
    fill: rgba(67, 210, 224, 0.5);
    transition: fill 0.35s ease;
}

.mf-zone__ring {
    fill: none;
    stroke: var(--mf-cyan);
    stroke-width: 1.5;
    opacity: 0;
    transform-origin: center;
    transform-box: fill-box;
}

.mf-zone__belt rect {
    fill: rgba(255, 255, 255, 0.05);
    stroke: rgba(255, 255, 255, 0.14);
}

.mf-zone__belt circle {
    fill: rgba(255, 255, 255, 0.18);
}

.mf-zone.is-on rect {
    fill: rgba(67, 210, 224, 0.1);
    stroke: var(--mf-cyan);
}

.mf-zone.is-on text {
    fill: #fff;
}

.mf-zone.is-on>circle {
    fill: var(--mf-cyan);
    filter: drop-shadow(0 0 8px rgba(67, 210, 224, 0.9));
}

.mf-zone.is-on .mf-zone__ring {
    opacity: 1;
    animation: mf-ripple 1.8s ease-out infinite;
}

@keyframes mf-ripple {
    from {
        transform: scale(0.6);
        opacity: 0.9;
    }

    to {
        transform: scale(1.9);
        opacity: 0;
    }
}

.mf-floor__note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 14px;
    color: var(--mf-faint);
    font-size: 0.88rem;
}

.mf-floor__tabs {
    display: grid;
    gap: 9px;
}

.mf-floor__tabs button {
    display: flex;
    align-items: center;
    gap: 13px;
    width: 100%;
    text-align: left;
    padding: 13px 17px;
    border: 1px solid var(--mf-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.03);
    color: var(--mf-dim);
    font: inherit;
    font-size: 0.98rem;
    cursor: pointer;
    transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.mf-floor__tabs button b {
    font-size: 0.78rem;
    letter-spacing: 1.5px;
    color: var(--mf-faint);
}

.mf-floor__tabs button:hover {
    transform: translateX(4px);
    border-color: var(--mf-line-strong);
    color: #fff;
}

.mf-floor__tabs button.is-on {
    border-color: rgba(67, 210, 224, 0.6);
    background: linear-gradient(100deg, rgba(67, 210, 224, 0.14), rgba(123, 47, 247, 0.14));
    color: #fff;
}

.mf-floor__tabs button.is-on b {
    color: var(--mf-cyan);
}

.mf-floor__detail {
    position: relative;
    margin-top: 18px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius);
    background: rgba(255, 255, 255, 0.03);
    padding: 24px;
    min-height: 300px;
}

.mf-floor__detail article {
    display: none;
}

.mf-floor__detail article.is-on {
    display: block;
    animation: mf-panel-in 0.45s ease;
}

@keyframes mf-panel-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

    to {
        opacity: 1;
        transform: none;
    }
}

.mf-floor__detail h3 {
    font-size: 1.28rem;
    margin-bottom: 14px;
}

.mf-floor__detail p {
    color: var(--mf-dim);
    line-height: 1.62;
    margin-bottom: 12px;
    font-size: 0.98rem;
}

.mf-floor__detail p small {
    display: block;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 0.72rem;
    color: var(--mf-cyan);
    margin-bottom: 4px;
}

.mf-floor__detail ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.mf-floor__detail li {
    padding: 6px 12px;
    border: 1px solid var(--mf-line-strong);
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--mf-dim);
}

/* =============================================================
   4 · ASSEMBLY RAIL — modules
   ============================================================= */
.mf-assembly {
    background:
        radial-gradient(1100px 500px at 92% 8%, rgba(181, 27, 181, 0.12), transparent 70%),
        linear-gradient(180deg, var(--mf-ink), var(--mf-ink-2));
}

.mf-rail {
    position: relative;
}

.mf-rail__line {
    position: absolute;
    left: 0;
    right: 0;
    top: -18px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.mf-rail__line i {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, var(--mf-cyan), var(--mf-violet), var(--mf-magenta));
    transition: width 0.25s linear;
}

.mf-rail__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
}

.mf-mod {
    position: relative;
    padding: 30px 24px 26px;
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    background: linear-gradient(175deg, rgba(23, 17, 65, 0.75), rgba(12, 10, 43, 0.75));
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    /* "snapped onto the rail" notch */
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
}

.mf-mod::before {
    content: "";
    position: absolute;
    top: -21px;
    left: 26px;
    width: 12px;
    height: 12px;
    border-radius: 3px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: var(--mf-panel);
    transition: background 0.3s ease, border-color 0.3s ease;
}

.mf-mod:hover {
    transform: translateY(-5px);
    border-color: rgba(123, 47, 247, 0.55);
    box-shadow: 0 24px 48px rgba(4, 2, 22, 0.55);
}

.mf-mod:hover::before {
    background: var(--mf-violet);
    border-color: var(--mf-violet);
}

.mf-mod__no {
    font-size: 0.76rem;
    letter-spacing: 2.4px;
    color: var(--mf-faint);
}

.mf-mod h3 {
    margin: 12px 0 10px;
    font-size: 1.18rem;
}

.mf-mod p {
    color: var(--mf-dim);
    font-size: 0.95rem;
    line-height: 1.6;
}

/* =============================================================
   5 · GAUGE CLUSTER
   ============================================================= */
.mf-gauges {
    background:
        radial-gradient(900px 460px at 50% 0%, rgba(67, 210, 224, 0.1), transparent 70%),
        linear-gradient(180deg, var(--mf-ink-2), var(--mf-ink));
    border-top: 1px solid var(--mf-line);
}

.mf-gauges .mf-shell {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(330px, 0.9fr);
    gap: clamp(30px, 4vw, 60px);
    align-items: center;
}

.mf-gauges .mf-head {
    grid-column: 1 / -1;
    margin-bottom: clamp(26px, 3vw, 40px);
}

.mf-gauges__cluster {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.mf-gauge {
    margin: 0;
    padding: 22px 20px 18px;
    border: 1px solid var(--mf-line);
    border-radius: var(--mf-radius);
    background:
        radial-gradient(120% 90% at 50% 108%, rgba(123, 47, 247, 0.16), transparent 62%),
        rgba(255, 255, 255, 0.03);
    text-align: center;
}

.mf-gauge svg {
    width: 100%;
    max-width: 230px;
    height: auto;
}

.mf-gauge__track {
    fill: none;
    stroke: rgba(255, 255, 255, 0.12);
    stroke-width: 13;
    stroke-linecap: round;
}

.mf-gauge__fill {
    fill: none;
    stroke: url(#mfGaugeGrad);
    stroke: var(--mf-cyan);
    stroke-width: 13;
    stroke-linecap: round;
    stroke-dasharray: 100;
    stroke-dashoffset: 100;
    transition: stroke-dashoffset 1.6s cubic-bezier(0.2, 0.7, 0.2, 1);
    filter: drop-shadow(0 0 8px rgba(67, 210, 224, 0.5));
}

.mf-gauge.is-on .mf-gauge__fill {
    stroke-dashoffset: calc(100 - var(--g, 70));
}

.mf-gauge__needle {
    transform-origin: 100px 110px;
    transform: rotate(-90deg);
    transition: transform 1.6s cubic-bezier(0.34, 1.2, 0.4, 1);
}

.mf-gauge__needle line {
    stroke: var(--mf-amber);
    stroke-width: 3.5;
    stroke-linecap: round;
    filter: drop-shadow(0 0 6px rgba(240, 164, 0, 0.7));
}

.mf-gauge__needle circle {
    fill: var(--mf-panel);
    stroke: var(--mf-amber);
    stroke-width: 2.5;
}

.mf-gauge.is-on .mf-gauge__needle {
    transform: rotate(calc(-90deg + var(--g, 70) * 1.8deg));
}

.mf-gauge figcaption b {
    display: block;
    font-size: clamp(1.8rem, 2.6vw, 2.4rem);
    font-variant-numeric: tabular-nums;
    line-height: 1.1;
}

.mf-gauge figcaption small {
    display: block;
    margin-top: 6px;
    color: var(--mf-faint);
    font-size: 0.86rem;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}

/* shift report card */
.mf-report {
    border: 1px solid var(--mf-line-strong);
    border-radius: var(--mf-radius);
    background: linear-gradient(170deg, rgba(23, 17, 65, 0.9), rgba(11, 9, 38, 0.9));
    overflow: hidden;
    box-shadow: 0 26px 60px rgba(3, 2, 18, 0.5);
}

.mf-report__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border-bottom: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, 0.045);
    font-size: 0.8rem;
    letter-spacing: 2.4px;
    color: var(--mf-dim);
}

.mf-report__rows {
    padding: 8px 20px;
}

.mf-report__rows li {
    display: grid;
    grid-template-columns: 1.25fr 0.85fr 1.1fr;
    gap: 12px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
    font-size: 0.95rem;
}

.mf-report__rows li:last-child {
    border-bottom: 0;
}

.mf-report__rows span {
    color: #fff;
}

.mf-report__rows s {
    color: var(--mf-faint);
    text-decoration-color: rgba(255, 92, 138, 0.7);
}

.mf-report__rows b {
    color: var(--mf-green);
    font-weight: 600;
}

.mf-report__foot {
    padding: 13px 20px;
    border-top: 1px solid var(--mf-line);
    background: rgba(255, 255, 255, 0.03);
    color: var(--mf-faint);
    font-size: 0.82rem;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

/* =============================================================
   6 · BUILD PATH — stamp strip
   ============================================================= */
.mf-path {
    background:
        radial-gradient(1000px 500px at 12% 10%, rgba(240, 164, 0, 0.08), transparent 70%),
        linear-gradient(180deg, var(--mf-ink), var(--mf-ink-2));
}

.mf-strip-line {
    position: relative;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
    list-style: none;
    counter-reset: mf-station;
}

.mf-strip-line::before {
    content: "";
    position: absolute;
    top: 26px;
    left: 2%;
    right: 2%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.22) 0 12px, transparent 12px 22px);
}

.mf-station {
    position: relative;
    padding: 56px 20px 24px;
    border: 1px solid var(--mf-line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.015));
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.mf-station:hover {
    border-color: rgba(240, 164, 0, 0.5);
    transform: translateY(-4px);
}

.mf-station__stamp {
    position: absolute;
    top: -16px;
    left: 18px;
    padding: 8px 13px;
    border: 2px solid var(--mf-amber);
    border-radius: 8px;
    color: var(--mf-amber);
    font-size: 0.76rem;
    letter-spacing: 2.4px;
    background: var(--mf-ink-2);
    transform: rotate(-4deg) scale(1.25);
    opacity: 0;
    transition: transform 0.45s cubic-bezier(0.34, 1.4, 0.5, 1), opacity 0.35s ease;
}

.mf-station.is-stamped .mf-station__stamp {
    opacity: 1;
    transform: rotate(-4deg) scale(1);
}

.mf-station b {
    display: block;
    font-size: 1.12rem;
    margin-bottom: 10px;
}

.mf-station p {
    color: var(--mf-dim);
    font-size: 0.93rem;
    line-height: 1.58;
}

.mf-station small {
    display: block;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px dashed rgba(255, 255, 255, 0.14);
    color: var(--mf-cyan);
    font-size: 0.82rem;
}

/* =============================================================
   7 · PATCH BAY
   ============================================================= */
.mf-patch {
    background:
        radial-gradient(900px 500px at 88% 90%, rgba(123, 47, 247, 0.14), transparent 70%),
        linear-gradient(180deg, var(--mf-ink-2), var(--mf-ink));
    border-top: 1px solid var(--mf-line);
}

.mf-patchbay {
    position: relative;
    display: grid;
    grid-template-columns: minmax(180px, 0.5fr) minmax(0, 1.5fr);
    gap: clamp(22px, 3vw, 46px);
    align-items: center;
    padding: clamp(26px, 3vw, 44px);
    border: 1px solid var(--mf-line-strong);
    border-radius: var(--mf-radius);
    background:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 3px, transparent 3px 8px),
        linear-gradient(165deg, rgba(20, 15, 58, 0.92), rgba(10, 8, 35, 0.92));
    overflow: hidden;
}

.mf-patchbay__cables {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.mf-patchbay__cables path {
    fill: none;
    stroke-width: 2.2;
    stroke-linecap: round;
    opacity: 0.85;
}

.mf-patchbay__core {
    position: relative;
    z-index: 2;
    aspect-ratio: 1;
    max-width: 220px;
    width: 100%;
    margin: 0 auto;
    display: grid;
    place-items: center;
    gap: 8px;
    border-radius: 50%;
    border: 1px solid rgba(67, 210, 224, 0.5);
    background:
        radial-gradient(circle at 32% 28%, rgba(67, 210, 224, 0.28), transparent 55%),
        linear-gradient(160deg, var(--mf-panel-2), var(--mf-panel));
    box-shadow: 0 0 0 10px rgba(67, 210, 224, 0.06), 0 0 60px rgba(67, 210, 224, 0.22);
    text-align: center;
}

.mf-patchbay__corelabel {
    font-size: 0.95rem;
    letter-spacing: 3px;
    line-height: 1.5;
}

.mf-patchbay__sockets {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.mf-socket {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 13px 16px;
    border: 1px solid var(--mf-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--mf-dim);
    font: inherit;
    font-size: 0.92rem;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.25s ease, color 0.25s ease, transform 0.25s ease, background 0.25s ease;
}

.mf-socket:hover,
.mf-socket:focus-visible,
.mf-socket.is-wired {
    border-color: rgba(67, 210, 224, 0.6);
    color: #fff;
    background: rgba(67, 210, 224, 0.1);
    transform: translateY(-2px);
    outline: none;
}

/* =============================================================
   8 · CTA — work order
   ============================================================= */
.mf-cta {
    padding-bottom: clamp(90px, 10vw, 150px);
    background: linear-gradient(180deg, var(--mf-ink), #0b0728);
}

.mf-order {
    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(--mf-line-strong);
    border-radius: 18px;
    background:
        radial-gradient(700px 320px at 8% 0%, rgba(123, 47, 247, 0.28), transparent 65%),
        linear-gradient(165deg, rgba(23, 17, 65, 0.95), rgba(11, 8, 38, 0.95));
    box-shadow: 0 34px 80px rgba(3, 2, 18, 0.55);
    overflow: hidden;
}

.mf-order__hazard {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: repeating-linear-gradient(-45deg, var(--mf-amber) 0 16px, #0b0728 16px 32px);
    opacity: 0.85;
}

.mf-order .mf-h2 {
    margin: 16px 0 14px;
}

.mf-order__btns {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    margin: 28px 0 24px;
}

.mf-order__check {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 22px;
}

.mf-order__check li {
    position: relative;
    padding-left: 24px;
    color: var(--mf-dim);
    font-size: 0.95rem;
}

.mf-order__check li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 6px;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    border: 1.5px solid var(--mf-green);
    background: rgba(53, 224, 143, 0.15);
}

.mf-order__card {
    margin: 0;
    align-self: center;
    border: 1px dashed var(--mf-line-strong);
    border-radius: 14px;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.03);
}

.mf-order__card div {
    display: grid;
    grid-template-columns: 108px 1fr;
    gap: 14px;
    padding: 13px 0;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
}

.mf-order__card div:last-child {
    border-bottom: 0;
}

.mf-order__card dt {
    color: var(--mf-faint);
    font-size: 0.82rem;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.mf-order__card dd {
    margin: 0;
    color: var(--mf-dim);
    font-size: 0.95rem;
    line-height: 1.5;
}

.mf-order__card dd a:hover {
    color: var(--mf-cyan);
}

/* =============================================================
   LIGHT SECTIONS — the page alternates dark / light rhythm:
   hero (dark) · plates (light) · floor (dark) · assembly (light)
   · gauges (dark) · build path (light) · patch bay (dark) · CTA (light)
   .mf-light re-themes every surface above through scoped variables
   plus targeted overrides for components that use fixed colours.
   ============================================================= */
.mf-light {
    --mf-ink: #f5f4fc;
    --mf-ink-2: #edebf7;
    --mf-panel: #ffffff;
    --mf-panel-2: #f8f7fd;
    --mf-line: rgba(25, 20, 67, 0.12);
    --mf-line-strong: rgba(25, 20, 67, 0.22);
    --mf-text: #191443;
    --mf-dim: rgba(25, 20, 67, 0.72);
    --mf-faint: rgba(25, 20, 67, 0.5);
    --mf-cyan: #0E91A8;
    --mf-violet: #6A22E0;
    --mf-magenta: #A817A8;
    --mf-amber: #B97C00;
    --mf-green: #12885A;

    color: var(--mf-text);
    background-color: var(--mf-ink);
    background-image:
        linear-gradient(rgba(31, 24, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 24, 89, 0.05) 1px, transparent 1px),
        radial-gradient(900px 420px at 88% 4%, rgba(123, 47, 247, 0.1), transparent 70%),
        radial-gradient(820px 400px at 6% 96%, rgba(14, 145, 168, 0.1), transparent 70%);
    background-size: 46px 46px, 46px 46px, auto, auto;
    border-top: 1px solid var(--mf-line);
    border-bottom: 1px solid var(--mf-line);
}

.mf-light .mf-h2 em {
    background: linear-gradient(100deg, var(--mf-cyan), var(--mf-violet) 55%, var(--mf-magenta));
    -webkit-background-clip: text;
    background-clip: text;
}

.mf-light .mf-label i {
    border-color: rgba(14, 145, 168, 0.5);
}

.mf-light .mf-btn--ghost {
    color: var(--mf-text);
    background: rgba(25, 20, 67, 0.04);
}

.mf-light .mf-btn--ghost:hover {
    color: var(--mf-violet);
    border-color: var(--mf-violet);
}

.mf-light .mf-btn--fill {
    box-shadow: 0 14px 34px rgba(106, 34, 224, 0.3);
}

.mf-light .mf-btn--fill:hover {
    box-shadow: 0 20px 44px rgba(106, 34, 224, 0.42);
}

.mf-light .mf-led {
    background: rgba(25, 20, 67, 0.2);
    box-shadow: 0 0 0 3px rgba(25, 20, 67, 0.06);
}

.mf-light .mf-led--on {
    background: var(--mf-green);
    box-shadow: 0 0 10px rgba(18, 136, 90, 0.55);
}

.mf-light .mf-led--warn {
    background: var(--mf-amber);
    box-shadow: 0 0 10px rgba(185, 124, 0, 0.5);
}

/* --- plates (light) --- */
.mf-light .mf-plate {
    background:
        repeating-linear-gradient(115deg, rgba(25, 20, 67, 0.03) 0 2px, transparent 2px 7px),
        linear-gradient(160deg, #ffffff, #f4f2fb);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 16px 36px rgba(31, 24, 89, 0.12);
}

.mf-light .mf-plate::before,
.mf-light .mf-plate::after {
    background: radial-gradient(circle at 32% 30%, #ffffff, rgba(25, 20, 67, 0.18) 62%, rgba(25, 20, 67, 0.32));
}

.mf-light .mf-plate:hover {
    border-color: rgba(14, 145, 168, 0.55);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 48px rgba(31, 24, 89, 0.18);
}

.mf-light .mf-plate__code {
    color: var(--mf-amber);
    border-color: rgba(185, 124, 0, 0.55);
}

.mf-light .mf-plate__more {
    color: var(--mf-violet);
}

.mf-light .mf-plate.is-open .mf-plate__more {
    background: rgba(106, 34, 224, 0.1);
}

.mf-light .mf-plate__fix strong {
    color: var(--mf-text);
}

.mf-light .mf-plate__fix li {
    border-color: rgba(14, 145, 168, 0.4);
}

/* --- assembly rail (light) --- */
.mf-light .mf-rail__line {
    background: rgba(25, 20, 67, 0.12);
}

.mf-light .mf-mod {
    background: linear-gradient(175deg, #ffffff, #f6f4fc);
    box-shadow: 0 14px 32px rgba(31, 24, 89, 0.1);
}

.mf-light .mf-mod::before {
    background: var(--mf-panel);
    border-color: rgba(25, 20, 67, 0.25);
}

.mf-light .mf-mod:hover {
    border-color: rgba(106, 34, 224, 0.5);
    box-shadow: 0 22px 44px rgba(31, 24, 89, 0.16);
}

.mf-light .mf-mod:hover::before {
    background: var(--mf-violet);
    border-color: var(--mf-violet);
}

/* --- build path (light) --- */
.mf-light .mf-strip-line::before {
    background: repeating-linear-gradient(90deg, rgba(25, 20, 67, 0.26) 0 12px, transparent 12px 22px);
}

.mf-light .mf-station {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.85), rgba(255, 255, 255, 0.55));
}

.mf-light .mf-station:hover {
    border-color: rgba(185, 124, 0, 0.55);
}

.mf-light .mf-station__stamp {
    background: var(--mf-ink-2);
}

.mf-light .mf-station small {
    border-top-color: rgba(25, 20, 67, 0.16);
}

/* --- work-order CTA (light) --- */
.mf-light.mf-cta {
    background-color: var(--mf-ink);
    background-image:
        linear-gradient(rgba(31, 24, 89, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(31, 24, 89, 0.05) 1px, transparent 1px),
        radial-gradient(760px 380px at 12% 6%, rgba(106, 34, 224, 0.12), transparent 70%);
    background-size: 46px 46px, 46px 46px, auto;
}

.mf-light .mf-order {
    background:
        radial-gradient(700px 320px at 8% 0%, rgba(106, 34, 224, 0.12), transparent 65%),
        linear-gradient(165deg, #ffffff, #f5f3fc);
    box-shadow: 0 30px 70px rgba(31, 24, 89, 0.16);
}

.mf-light .mf-order__hazard {
    background: repeating-linear-gradient(-45deg, var(--mf-amber) 0 16px, #191443 16px 32px);
}

.mf-light .mf-order__card {
    background: rgba(25, 20, 67, 0.035);
}

.mf-light .mf-order__card div {
    border-bottom-color: rgba(25, 20, 67, 0.14);
}

.mf-light .mf-order__card dd a:hover {
    color: var(--mf-violet);
}

/* =============================================================
   Responsive
   ============================================================= */
@media (max-width: 1180px) {
    .mf-rail__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-plates__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .mf-strip-line {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        row-gap: 34px;
    }

    .mf-strip-line::before {
        display: none;
    }
}

@media (max-width: 980px) {
    .mf-hero {
        min-height: 0;
        padding-top: 130px;
    }

    .mf-hero__in {
        grid-template-columns: 1fr;
    }

    .mf-board {
        max-width: 560px;
    }

    .mf-floor__plan,
    .mf-gauges .mf-shell,
    .mf-order {
        grid-template-columns: 1fr;
    }

    .mf-patchbay {
        grid-template-columns: 1fr;
    }

    .mf-patchbay__core {
        max-width: 170px;
    }

    .mf-patchbay__sockets {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 680px) {
    .mf-plates__grid,
    .mf-rail__grid,
    .mf-gauges__cluster,
    .mf-strip-line {
        grid-template-columns: 1fr;
    }

    .mf-patchbay__sockets {
        grid-template-columns: 1fr;
    }

    .mf-hero__btns .mf-btn,
    .mf-order__btns .mf-btn {
        width: 100%;
        justify-content: center;
    }

    .mf-report__rows li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .mf-board__row {
        grid-template-columns: 1fr 70px 42px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .mf-word,
    .mf-blue__draw,
    .mf-blue__node,
    .mf-blue__scan,
    .mf-board,
    .mf-board__spark polyline {
        animation: none !important;
    }

    .mf-word {
        opacity: 1;
        transform: none;
    }

    .mf-blue__draw {
        stroke-dashoffset: 0;
    }

    .mf-blue__node {
        opacity: 1;
    }

    [data-mf-rise] {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .mf-gauge__needle,
    .mf-gauge__fill,
    .mf-station__stamp {
        transition: none;
    }
}