/* ============================================================ */
/* PRECISION MACHINING DETAIL PAGE  (precision_machining_detail_page.php) */
/* Prefix: pm-                                                  */
/* ============================================================ */


/* ─── HERO ──────────────────────────────────────────────── */

.pm-hero {
    background: var(--bg-darker);
    border-bottom: 1px solid var(--border-dark);
    position: relative;
    overflow: hidden;
}

/* Canvas sits behind everything — GSAP/rAF drives the particles */
.pm-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

/* Lift all hero content above canvas */
.pm-hero .container {
    position: relative;
    z-index: 1;
}

.pm-hero-inner {
    padding: var(--space-8) 0 var(--space-32);
}

.pm-breadcrumbs {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-8);
    font-size: var(--text-sm);
}

.pm-breadcrumbs a {
    color: var(--text-muted-dark);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.pm-breadcrumbs a:hover { color: var(--primary); }

.pm-breadcrumbs .current {
    color: var(--text-on-dark-strong);
    font-weight: 700;
}

.pm-breadcrumbs .material-symbols-outlined {
    font-size: 16px;
    color: var(--text-muted-dark);
}

.pm-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.pm-hero-accent {
    width: 48px;
    height: 4px;
    background: var(--primary);
    margin-bottom: var(--space-5);
}

.pm-hero h1 {
    font-size: clamp(30px, 4vw, 58px);
    font-weight: 900;
    letter-spacing: -2px;
    color: var(--text-on-dark-strong);  /* #f3f4f6 — bright white */
    line-height: 1.05;
    margin-bottom: var(--space-5);
    text-transform: uppercase;
}

.pm-hero-muted {
    color: var(--text-on-dark); /* slightly softer — creates hierarchy */
}

.pm-hero-sub {
    font-size: var(--text-md);
    color: var(--text-on-dark);
    line-height: 1.7;
    margin-bottom: var(--space-10);
    max-width: 520px;
}

.pm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.pm-hero-image {
    position: relative;
    aspect-ratio: 4 / 3;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--elev-4);
}

.pm-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pm-hero-iso {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.80), transparent);
    padding: var(--space-8);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: white;
}

.pm-hero-iso .material-symbols-outlined { font-size: 20px; }

.pm-hero-iso-text {
    font-weight: 700;
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 1px;
}


/* ─── CORE CAPABILITIES ─────────────────────────────────── */

.pm-capabilities {
    background: white;
    padding: var(--space-32) 0;
}

.pm-cap-header {
    margin-bottom: var(--space-16);
}

.pm-cap-header h2 {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.pm-cap-header p {
    color: var(--text-light);
    font-size: var(--text-md);
    margin: 0;
}

.pm-cap-blocks {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.pm-cap-block {
    display: grid;
    grid-template-columns: 5fr 7fr;
    gap: var(--space-16);
    align-items: center;
    padding-bottom: var(--space-20);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: var(--space-20);
}

.pm-cap-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.pm-cap-block.reversed {
    grid-template-columns: 7fr 5fr;
}

.pm-cap-block.reversed .pm-cap-content { order: 2; }
.pm-cap-block.reversed .pm-cap-image   { order: 1; }

.pm-cap-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    font-size: var(--text-xs);
    margin-bottom: var(--space-3);
}

.pm-cap-label .material-symbols-outlined { font-size: 18px; }

.pm-cap-content h3 {
    font-size: clamp(22px, 2vw, 30px);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.pm-cap-content > p {
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-6);
}

.pm-cap-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6) var(--space-4);
    margin-bottom: var(--space-6);
}

.pm-cap-spec-key {
    font-size: var(--text-xs);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: var(--space-1);
}

.pm-cap-spec-val {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-dark);
}

.pm-cap-spec-val-sm {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-dark);
}

.pm-cap-checks {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pm-cap-check {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    font-size: var(--text-sm);
    color: var(--text-dark);
}

.pm-cap-check .material-symbols-outlined {
    font-size: 18px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

/* Sub-heading within a capability block (Key Capabilities / Application Focus) */
.pm-cap-content > p.pm-cap-subhead {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    margin: var(--space-6) 0 var(--space-3);
}

/* Callout block at the bottom of the Precision Grinding capability block */
.pm-cap-callout {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
    margin-top: var(--space-8);
    padding: var(--space-5) var(--space-6);
    background: rgba(227, 30, 36, 0.04);
    border-left: 3px solid var(--primary);
}

.pm-cap-callout-icon {
    font-size: 22px;
    color: var(--primary);
    flex-shrink: 0;
    margin-top: 1px;
}

.pm-cap-callout > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.pm-cap-callout-heading {
    display: block;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.1px;
}

.pm-cap-callout-sub {
    display: block;
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.55;
}

.pm-cap-image {
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-section-light);
}

.pm-cap-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}

.pm-cap-image:hover img { transform: scale(1.05); }


/* ─── CONTROLLED DIMENSIONAL ACCURACY ───────────────────── */

.pm-process {
    background: var(--bg-dark);
    color: white;
    padding: var(--space-24) 0;
}

.pm-process-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--space-8);
    border-bottom: 1px solid rgba(255,255,255,0.10);
    padding-bottom: var(--space-8);
    margin-bottom: var(--space-16);
}

.pm-process-header h2 {
    font-size: clamp(22px, 3vw, 44px);
    font-weight: 900;
    letter-spacing: -1px;
    color: white;
    text-transform: uppercase;
    margin-bottom: var(--space-3);
}

.pm-process-header p {
    color: var(--text-muted-dark);
    font-size: var(--text-md);
    max-width: 480px;
    margin: 0;
}

.pm-process-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.pm-process-image {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    height: 500px;
}

.pm-process-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

.pm-process-image:hover img {
    filter: grayscale(0%);
    opacity: 1;
}

.pm-process-badge {
    position: absolute;
    bottom: var(--space-6);
    left: var(--space-6);
    background: rgba(0,0,0,0.60);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: var(--space-2) var(--space-4);
    border-left: 2px solid var(--primary);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-xs);
    color: white;
}

.pm-steps {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);
}

.pm-step {
    display: flex;
    align-items: flex-start;
    gap: var(--space-6);
    position: relative;
}

.pm-step:not(:last-child)::after {
    content: '';
    position: absolute;
    left: 27px;
    top: 56px;
    bottom: calc(-1 * var(--space-8));
    width: 2px;
    background: rgba(255,255,255,0.10);
}

.pm-step-icon {
    width: 56px;
    height: 56px;
    min-width: 56px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.20);
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
    transition: background 0.3s ease, color 0.3s ease;
}

.pm-step:hover .pm-step-icon {
    background: var(--primary);
    color: white;
}

.pm-step-icon .material-symbols-outlined { font-size: 24px; }

.pm-step-content h4 {
    font-size: var(--text-md);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-2);
}

.pm-step-content p {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    line-height: 1.7;
    margin: 0;
}


/* ─── STATS ─────────────────────────────────────────────── */

.pm-stats {
    background: var(--bg-light);
    padding: var(--space-20) 0;
}

.pm-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

.pm-stat-card {
    background: white;
    padding: var(--space-8);
    border: 1px solid var(--border-light);
    box-shadow: var(--elev-1);
    transition: box-shadow 0.2s ease;
}

.pm-stat-card:hover { box-shadow: var(--elev-2); }

.pm-stat-icon {
    width: 48px;
    height: 48px;
    background: rgba(227,30,36,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    margin-bottom: var(--space-6);
}

.pm-stat-icon .material-symbols-outlined { font-size: 22px; }

.pm-stat-value {
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 900;
    letter-spacing: -1px;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
    line-height: 1;
}

.pm-stat-label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: var(--space-4);
}

.pm-stat-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.6;
    margin: 0;
}


/* ─── QUALITY PHILOSOPHY ─────────────────────────────────── */

.pm-quality {
    background: var(--bg-light);
    padding: var(--space-20) 0;
    border-top: 1px solid var(--border-light);
}

.pm-quality-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-20);
    align-items: center;
}

.pm-quality h2 {
    font-size: clamp(24px, 2.5vw, 36px);
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--text-dark);
    margin-bottom: var(--space-4);
}

.pm-quality-accent {
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin-bottom: var(--space-6);
}

.pm-quality-lede {
    font-size: var(--text-md);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: var(--space-5);
}

.pm-quality-body {
    font-size: var(--text-base);
    color: var(--text-light);
    line-height: 1.7;
    margin-bottom: 0;
}

.pm-quality-badges {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.pm-quality-badge {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    border: 1px solid var(--border-light);
    background: white;
    padding: var(--space-4);
    box-shadow: var(--elev-1);
}

.pm-quality-badge .material-symbols-outlined {
    font-size: 28px;
    color: var(--primary);
}

.pm-quality-badge-title {
    font-weight: 700;
    color: var(--text-dark);
    font-size: var(--text-sm);
}

.pm-quality-badge-sub {
    font-size: var(--text-xs);
    color: var(--text-light);
}

.pm-quality-image {
    position: relative;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--elev-4);
}

.pm-quality-image::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(15,23,42,0.20), transparent);
    z-index: 1;
    pointer-events: none;
}

.pm-quality-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}


/* ─── MACHINE FLEET ─────────────────────────────────────── */

.pm-fleet {
    background: var(--bg-dark);
    padding: var(--space-20) 0 var(--space-24);
}

.pm-fleet-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: var(--space-10);
    gap: var(--space-6);
}

.pm-fleet-header .btn {
    align-self: flex-start;
    flex-shrink: 0;
    white-space: nowrap;
}

.pm-fleet-header h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin-bottom: var(--space-2);
}

.pm-fleet-header p {
    color: var(--text-muted-dark);
    font-size: var(--text-sm);
    max-width: 480px;
    margin: 0;
}

.pm-fleet-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
}

.pm-machine-card {
    background: #2a2a2a;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.05);
    transition: box-shadow 0.3s ease;
}

.pm-machine-card:hover {
    box-shadow: 0 20px 60px rgba(227,30,36,0.10);
}

.pm-machine-image {
    height: 256px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
    transition: transform 0.5s ease;
}

.pm-machine-card:hover .pm-machine-image { transform: scale(1.05); }

.pm-machine-bg-1 { background-image: url('../images/vmc-machining.png'); }
.pm-machine-bg-2 { background-image: url('../images/precision-machining.png'); }
.pm-machine-bg-3 { background-image: url('../images/vmc-machining.png'); background-position: left center; }

.pm-machine-badge {
    position: absolute;
    top: var(--space-4);
    left: var(--space-4);
    background: var(--primary);
    color: white;
    font-size: var(--text-xs);
    font-weight: 700;
    padding: 3px var(--space-2);
    letter-spacing: 0.5px;
}

.pm-machine-body {
    padding: var(--space-6);
}

.pm-machine-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-4);
}

.pm-machine-name {
    font-size: var(--text-md);
    font-weight: 700;
    color: white;
    margin-bottom: var(--space-1);
}

.pm-machine-brand {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--primary);
}

.pm-machine-top .material-symbols-outlined {
    font-size: 22px;
    color: rgba(255,255,255,0.30);
}

.pm-machine-specs {
    border-top: 1px solid rgba(255,255,255,0.10);
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pm-machine-spec {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--text-sm);
}

.pm-machine-spec-key { color: var(--text-muted-dark); }

.pm-machine-spec-val {
    font-family: "IBM Plex Sans", sans-serif;
    color: white;
}


/* ─── CONTROLLED WORKFLOW ────────────────────────────────── */

.pm-cw {
    background: white;
    padding: var(--space-20) 0;
}

.pm-cw-header {
    text-align: center;
    margin-bottom: var(--space-16);
}

.pm-cw-header h2 {
    font-size: clamp(14px, 1.5vw, 20px);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.pm-cw-accent {
    width: 48px;
    height: 2px;
    background: var(--primary);
    margin: 0 auto;
}

.pm-cw-steps-wrap {
    position: relative;
}

.pm-cw-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

.pm-cw-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    z-index: 1;
}

.pm-cw-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 4px solid white;
    background: var(--bg-section-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    margin-bottom: var(--space-4);
    transition: background 0.3s ease, color 0.3s ease;
}

.pm-cw-step:hover .pm-cw-icon {
    background: var(--primary);
    color: white;
}

.pm-cw-icon .material-symbols-outlined { font-size: 28px; }

.pm-cw-title {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.pm-cw-desc {
    font-size: var(--text-sm);
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}


/* ─── CTA ────────────────────────────────────────────────── */

.pm-cta {
    background: white;
    padding: var(--space-16) 0;
    border-top: 1px solid var(--border-light);
}

.pm-cta-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.pm-cta-inner h2 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.pm-cta-inner p {
    color: var(--text-light);
    font-size: var(--text-base);
    margin: 0;
}

.pm-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    justify-content: center;
}

.pm-btn-secondary {
    background: white;
    color: var(--text-dark);
    border: 1px solid var(--border-light);
}

.pm-btn-secondary:hover {
    background: var(--bg-section-light);
    color: var(--text-dark);
}


/* ─── COMPONENTS WE MANUFACTURE ──────────────────────────── */

.pm-components {
    background: var(--bg-darker);
    padding: var(--space-24) 0;
    perspective: 1400px;
    perspective-origin: 50% 0%;
}

/* Header */
.pm-comp-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-8);
    margin-bottom: var(--space-12);
}

.pm-comp-header-left {
    max-width: 520px;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.pm-comp-header-left .label {
    display: block;
    margin-bottom: var(--space-4);
}

.pm-comp-h2 {
    font-size: clamp(26px, 3vw, 42px);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    letter-spacing: -0.6px;
    margin-bottom: var(--space-4);
}

.pm-comp-intro {
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    line-height: 1.7;
    margin: 0;
}

/* Label-only — right side of section header */
.pm-comp-header-right {
    display: flex;
    align-items: flex-end;
    flex-shrink: 0;
    padding-bottom: var(--space-1);
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.pm-comp-stat-val {
    font-family: "IBM Plex Sans", sans-serif;
    font-size: clamp(44px, 5vw, 64px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
    letter-spacing: -2px;
}

.pm-comp-stat-label {
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted-dark);
    line-height: 1.45;
}

/* Full-width hairline divider */
.pm-comp-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 0;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ─── GROUPED CATEGORY LIST ──────────────────────────────── */

.pm-comp-groups {
    transform: rotateX(8deg);
    transform-origin: center top;
    transition: transform 1s cubic-bezier(0.16, 1, 0.3, 1);
    transition-delay: 0.3s;
}

.pm-comp--visible .pm-comp-groups {
    transform: rotateX(0deg);
}

.pm-comp-group {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: var(--space-12);
    padding: var(--space-10) 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    cursor: default;
    clip-path: inset(0 100% 0 0);
    transition: border-top-color 0.3s ease, clip-path 0.75s cubic-bezier(0.16, 1, 0.3, 1);
}

.pm-comp-group:hover {
    border-top-color: var(--primary);
}

/* Ghost ordinal — decorative large number behind row content */
.pm-comp-group::before {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: 88px;
    font-weight: 700;
    line-height: 1;
    color: var(--primary);
    opacity: 0.05;
    pointer-events: none;
    user-select: none;
    letter-spacing: -4px;
    transition: opacity 0.35s ease;
}
.pm-comp-group:nth-child(1)::before { content: '01'; }
.pm-comp-group:nth-child(2)::before { content: '02'; }
.pm-comp-group:nth-child(3)::before { content: '03'; }

.pm-comp-group:hover::before {
    opacity: 0.11;
}

/* Category meta — left red accent bar, name only */
.pm-comp-group-meta {
    flex-shrink: 0;
    width: 230px;
    padding-left: var(--space-5);
    border-left: 2px solid var(--primary);
    display: flex;
    align-items: flex-start;
}

/* Number span hidden — ghost pseudo-element takes over */
.pm-comp-group-num {
    display: none;
}

.pm-comp-group-name {
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-on-dark-strong);
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.4;
    transition: color 0.2s ease;
}

/* Tags: comma-separated inline flow — no chip borders */
.pm-comp-group-tags {
    flex: 1;
    padding-top: 3px;
    padding-right: 100px; /* clear ghost ordinal from overlapping inline text */
}

.pm-comp-tag {
    display: inline;
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-sm);
    color: var(--text-muted-dark);
    letter-spacing: 0.2px;
    line-height: 1.85;
    opacity: 0;
    transition: color 0.2s ease, opacity 0.4s ease;
}

.pm-comp-tag::after {
    content: ' · ';
    color: rgba(255, 255, 255, 0.18);
    font-weight: 400;
}

.pm-comp-tag:last-child::after {
    content: '';
}

.pm-comp-group:hover .pm-comp-tag {
    color: var(--text-on-dark);
}

/* ─── COMPONENTS: SCROLL-TRIGGERED REVEAL ────────────────── */

/* Header elements */
.pm-comp--visible .pm-comp-header-left {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0s;
}

.pm-comp--visible .pm-comp-header-right {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.15s;
}

/* Divider line draws left → right */
.pm-comp--visible .pm-comp-divider {
    transform: scaleX(1);
    transition-delay: 0.3s;
}

/* 3 groups — 130ms stagger, clip-path wipes left → right */
.pm-comp--visible .pm-comp-group:nth-child(1) { clip-path: inset(0 0% 0 0); transition-delay: 0.42s; }
.pm-comp--visible .pm-comp-group:nth-child(2) { clip-path: inset(0 0% 0 0); transition-delay: 0.55s; }
.pm-comp--visible .pm-comp-group:nth-child(3) { clip-path: inset(0 0% 0 0); transition-delay: 0.68s; }

/* Tag cascade — fades in per-tag after group wipe is ~70% complete */
.pm-comp--visible .pm-comp-group:nth-child(1) .pm-comp-tag:nth-child(1) { opacity: 1; transition-delay: 0.94s; }
.pm-comp--visible .pm-comp-group:nth-child(1) .pm-comp-tag:nth-child(2) { opacity: 1; transition-delay: 1.01s; }
.pm-comp--visible .pm-comp-group:nth-child(1) .pm-comp-tag:nth-child(3) { opacity: 1; transition-delay: 1.08s; }

.pm-comp--visible .pm-comp-group:nth-child(2) .pm-comp-tag:nth-child(1) { opacity: 1; transition-delay: 1.07s; }
.pm-comp--visible .pm-comp-group:nth-child(2) .pm-comp-tag:nth-child(2) { opacity: 1; transition-delay: 1.14s; }
.pm-comp--visible .pm-comp-group:nth-child(2) .pm-comp-tag:nth-child(3) { opacity: 1; transition-delay: 1.21s; }
.pm-comp--visible .pm-comp-group:nth-child(2) .pm-comp-tag:nth-child(4) { opacity: 1; transition-delay: 1.28s; }

.pm-comp--visible .pm-comp-group:nth-child(3) .pm-comp-tag:nth-child(1) { opacity: 1; transition-delay: 1.20s; }
.pm-comp--visible .pm-comp-group:nth-child(3) .pm-comp-tag:nth-child(2) { opacity: 1; transition-delay: 1.27s; }
.pm-comp--visible .pm-comp-group:nth-child(3) .pm-comp-tag:nth-child(3) { opacity: 1; transition-delay: 1.34s; }
.pm-comp--visible .pm-comp-group:nth-child(3) .pm-comp-tag:nth-child(4) { opacity: 1; transition-delay: 1.41s; }

/* Engineering footnote below the groups list */
.pm-comp-caption {
    display: flex;
    align-items: baseline;
    gap: var(--space-3);
    font-family: "IBM Plex Sans", sans-serif;
    font-size: var(--text-xs);
    color: var(--text-muted-dark);
    letter-spacing: 0.3px;
    line-height: 1.65;
    margin: 0;
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    opacity: 0;
    transition: opacity 0.5s ease 1.5s;
}

.pm-comp-caption::before {
    content: 'NOTE —';
    flex-shrink: 0;
    color: var(--primary);
    font-weight: 600;
    letter-spacing: 0.5px;
}

.pm-comp--visible .pm-comp-caption {
    opacity: 1;
}

/* Reduced motion: skip all animation, show immediately */
@media (prefers-reduced-motion: reduce) {
    .pm-comp-header-left,
    .pm-comp-header-right,
    .pm-comp-divider {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .pm-comp-group {
        clip-path: none;
        transition: border-top-color 0.2s ease;
    }

    .pm-comp-tag,
    .pm-comp-caption {
        opacity: 1;
        transition: color 0.2s ease;
    }

    .pm-comp-groups {
        transform: none;
        transition: none;
    }
}


/* ─── CAPABILITIES INLINE CTA STRIP ──────────────────────── */

.pm-cap-cta-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-8);
    margin-top: var(--space-20);
    padding: var(--space-8) var(--space-10);
    background: var(--bg-section-light);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-sm);
}

.pm-cap-cta-strip-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
}

.pm-cap-cta-strip-text strong {
    font-size: var(--text-md);
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.2px;
}

.pm-cap-cta-strip-text span {
    font-size: var(--text-sm);
    color: var(--text-light);
}

.pm-cap-cta-strip-actions {
    display: flex;
    gap: var(--space-4);
    flex-shrink: 0;
}


/* ─── RESPONSIVE ─────────────────────────────────────────── */

@media (max-width: 1023px) {
    .pm-comp-header    { flex-direction: column; align-items: flex-start; }
    .pm-hero-grid      { grid-template-columns: 1fr; }
    .pm-cap-block,
    .pm-cap-block.reversed { grid-template-columns: 1fr; }
    .pm-cap-block.reversed .pm-cap-content { order: 1; }
    .pm-cap-block.reversed .pm-cap-image   { order: 2; }
    .pm-process-grid   { grid-template-columns: 1fr; }
    .pm-process-image  { height: 340px; }
    .pm-stats-grid     { grid-template-columns: 1fr 1fr; }
    .pm-quality-grid   { grid-template-columns: 1fr; }
    .pm-fleet-grid     { grid-template-columns: 1fr 1fr; }
    .pm-fleet-header   { flex-direction: column; align-items: flex-start; }
    .pm-process-header { flex-direction: column; align-items: flex-start; }
    .pm-cw-steps       { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
    .pm-comp-group      { flex-direction: column; gap: var(--space-4); }
    .pm-comp-group-meta { width: auto; }
}

@media (max-width: 639px) {
    .pm-stats-grid { grid-template-columns: 1fr; }
    .pm-fleet-grid { grid-template-columns: 1fr; }
    .pm-cw-steps   { grid-template-columns: 1fr; }
    .pm-comp-stat-val  { font-size: var(--text-3xl); }
    .pm-cap-cta-strip {
        flex-direction: column;
        align-items: flex-start;
        padding: var(--space-6) var(--space-6);
    }
    .pm-cap-cta-strip-actions { flex-wrap: wrap; }
}

@media (min-width: 1024px) {
    /* Horizontal connector line through the centre of the workflow icons */
    .pm-cw-steps-wrap::before {
        content: '';
        position: absolute;
        top: 32px; /* half of the 64px icon height */
        left: 0;
        right: 0;
        height: 1px;
        background: var(--border-light);
    }
}
