/* ============================================================
   HOMEPAGE - homepage.css
   Page-specific styles for the OSG homepage.
   Depends on: fonts.css, style.css, layout.css, chrome.css
   ============================================================ */

/* Smooth scroll for in-page anchor links (e.g. "What is wet storage") */
html:has(body.page-template-template-homepage-preview, body.home) {
    scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
    html:has(body.page-template-template-homepage-preview, body.home) {
        scroll-behavior: auto;
    }
}

/* Override the global light body background for the dark homepage */
body.page-template-template-homepage-preview,
body.home {
    background-color: var(--navy-900);
    color: #fff;
}

/* ============================================================
   HERO
   ============================================================ */
.hp-hero {
    position: relative;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--navy-900);
}

/* Animated tidal canvas sits behind everything */
.hp-hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.9;
}

/* Gradient overlay for text legibility */
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(10, 22, 40, 0.85) 0%, rgba(10, 22, 40, 0.4) 60%, rgba(10, 22, 40, 0.1) 100%),
        linear-gradient(180deg, rgba(10, 22, 40, 0.2) 0%, rgba(10, 22, 40, 0.6) 100%);
    z-index: 1;
}

.hp-hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
    padding: 80px 0 100px;
}

.hp-hero-eyebrow {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.hp-hero-eyebrow::before {
    content: '';
    display: inline-block;
    width: 28px;
    height: 1.5px;
    background: var(--teal-400);
    flex-shrink: 0;
}

.hp-hero-title {
    font-family: var(--font-d);
    font-size: clamp(2.25rem, 5.5vw, 4.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.06;
    color: #fff;
    max-width: 780px;
    margin-bottom: 24px;
}

.hp-hero-title em {
    font-style: normal;
    color: var(--teal-400);
}

.hp-hero-sub {
    font-family: var(--font-b);
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    color: rgba(255, 255, 255, 0.6);
    line-height: 1.7;
    max-width: 700px;
    margin-bottom: 40px;
}

/* Hero action buttons */
.hp-hero-actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: var(--teal-400);
    color: var(--navy-900);
    font-family: var(--font-m);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.03em;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(78, 186, 180, 0.3);
}

.hp-btn-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-1px);
    box-shadow: 0 6px 28px rgba(78, 186, 180, 0.45);
}

.hp-btn-primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

.hp-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 24px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.75);
    font-family: var(--font-m);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-radius: var(--r-sm);
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.hp-btn-ghost:hover {
    border-color: rgba(255, 255, 255, 0.45);
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
}

.hp-btn-ghost:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 3px;
}

/* Hero trust badges */
.hp-hero-badges {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.hp-badge-label {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
}

.hp-badge-items {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.hp-badge {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    letter-spacing: 0.03em;
    display: flex;
    align-items: center;
    gap: 7px;
}

.hp-badge::before {
    content: '';
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--teal-400);
    opacity: 0.7;
    flex-shrink: 0;
}


/* ============================================================
   SHARED SECTION PATTERNS
   ============================================================ */
.hp-section-rule {
    width: 100%;
    height: 1px;
    background: rgba(255, 255, 255, 0.05);
    margin-bottom: 80px;
}

.hp-eyebrow {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-bottom: 16px;
}

.hp-section-title {
    font-family: var(--font-d);
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #fff;
    margin-bottom: 20px;
}

.hp-section-lead {
    font-family: var(--font-b);
    font-size: 1.0625rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    max-width: 640px;
}


/* ============================================================
   WHAT WE DELIVER - Capability grid
   ============================================================ */
.hp-section-overview {
    padding: 100px 0 80px;
    background:
        linear-gradient(rgb(10 22 44 / 21%), rgb(10 22 44 / 63%)),
        url('../img/seabed-texture.jpg') center center / cover fixed;
    position: relative;
}


.hp-capability-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 60px;
}

.hp-capability-card {
    background: rgb(17 40 50 / 63%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    padding: 36px 28px;
    transition: background 0.2s ease, border-color 0.2s ease;
    position: relative;
    overflow: hidden;
}

.hp-capability-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-500), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.hp-capability-card:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(78, 186, 180, 0.15);
}

.hp-capability-card:hover::before {
    opacity: 1;
}

.hp-capability-number {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 500;
    color: rgba(78, 186, 180, 0.5);
    letter-spacing: 0.1em;
    margin-bottom: 20px;
}

.hp-capability-title {
    font-family: var(--font-d);
    font-size: 1.125rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    line-height: 1.3;
}

.hp-capability-body {
    font-family: var(--font-b);
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}


/* ============================================================
   FLOW-PARK EXPLAINER
   ============================================================ */
.hp-section-explainer {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hp-explainer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.hp-explainer-body {
    font-family: var(--font-b);
    font-size: 1rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.55);
    margin-top: 20px;
}

.hp-explainer-body + .hp-explainer-body {
    margin-top: 16px;
}

/* Fact list */
.hp-fact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 36px;
}

.hp-fact-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.hp-fact-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(78, 186, 180, 0.1);
    border: 1px solid rgba(78, 186, 180, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 1px;
}

.hp-fact-icon svg {
    width: 13px;
    height: 13px;
    color: var(--teal-400);
}

.hp-fact-text {
    font-family: var(--font-b);
    font-size: 0.9375rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.65);
}

.hp-fact-text strong {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
}

/* Right: Metric display */
.hp-metrics {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-metric-row {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    padding: 24px 28px;
    transition: background 0.2s ease;
}

.hp-metric-row:hover {
    background: rgba(255, 255, 255, 0.05);
}

.hp-metric-label {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 6px;
}

.hp-metric-value {
    font-family: var(--font-d);
    font-size: 1.5rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hp-metric-value span {
    font-family: var(--font-m);
    font-size: 0.75rem;
    font-weight: 400;
    color: var(--teal-400);
    letter-spacing: 0.04em;
    margin-left: 8px;
    vertical-align: middle;
}

.hp-metric-context {
    font-family: var(--font-b);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 4px;
    line-height: 1.5;
}


/* ============================================================
   FLOW-PARK LIFECYCLE PROCESS DIAGRAM
   ============================================================ */
.hp-process-diagram {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.hp-process-label {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 12px;
}

.hp-process-heading {
    font-family: var(--font-d);
    font-size: clamp(1.25rem, 2vw, 1.5rem);
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.02em;
    line-height: 1.3;
    margin-bottom: 48px;
}

/* Orbit layout: centre hub with stages around it */
.hp-process-orbit {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    grid-template-rows: auto auto;
    gap: 20px;
    align-items: center;
    justify-items: center;
    min-height: 420px;
}

@keyframes hp-hub-pulse {
    0%   { transform: scale(1);   opacity: 0.5; }
    80%  { transform: scale(2.2); opacity: 0; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes hp-orbit-spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Centre hub */
.hp-process-hub {
    grid-column: 2;
    grid-row: 1 / 3;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(30, 107, 101, 0.2), rgba(42, 138, 130, 0.08));
    border: 2px solid rgba(78, 186, 180, 0.25);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Pulse rings */
.hp-process-hub-pulse {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid rgba(78, 186, 180, 0.45);
    animation: hp-hub-pulse 3.2s ease-out infinite;
    pointer-events: none;
}
.hp-process-hub-pulse:nth-child(2) { animation-delay: 1.07s; }
.hp-process-hub-pulse:nth-child(3) { animation-delay: 2.13s; }

.hp-process-hub::before {
    content: '';
    position: absolute;
    inset: -14px;
    border-radius: 50%;
    border: 1px dashed rgba(78, 186, 180, 0.15);
    animation: hp-orbit-spin 24s linear infinite;
}

.hp-process-hub-icon {
    width: 36px;
    height: 36px;
    color: var(--teal-400);
    margin-bottom: 8px;
}

.hp-process-hub-title {
    font-family: var(--font-d);
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hp-process-hub-sub {
    font-family: var(--font-m);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--teal-400);
    margin-top: 4px;
}

/* Connecting lines from hub to stages */
.hp-process-orbit::before,
.hp-process-orbit::after {
    content: '';
    position: absolute;
    background: linear-gradient(90deg, rgba(78, 186, 180, 0.08), rgba(78, 186, 180, 0.15), rgba(78, 186, 180, 0.08));
    z-index: 1;
}

.hp-process-orbit::before {
    width: 100%;
    height: 1px;
    top: 50%;
    left: 0;
}

.hp-process-orbit::after {
    width: 1px;
    height: 100%;
    left: 50%;
    top: 0;
    background: linear-gradient(180deg, rgba(78, 186, 180, 0.08), rgba(78, 186, 180, 0.15), rgba(78, 186, 180, 0.08));
}

/* Stage cards */
.hp-process-stage {
    background: rgb(27 42 67 / 79%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 24px 20px;
    width: 100%;
    max-width: 280px;
    position: relative;
    z-index: 4;
    transition: background 0.3s ease, border-color 0.3s ease;
}

.hp-process-stage:hover {
    background: rgb(27 42 67 / 100%);
    border-color: rgba(255, 255, 255, 0.12);
}

.hp-process-stage-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.hp-process-stage-num {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.5);
    flex-shrink: 0;
}

.hp-process-stage-title {
    font-family: var(--font-d);
    font-size: 0.9375rem;
    font-weight: 600;
    color: #fff;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.hp-process-stage-desc {
    font-family: var(--font-b);
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.4);
}

/* Grid placement */
.hp-process-stage:nth-child(1) { grid-column: 1; grid-row: 1; justify-self: end; }
.hp-process-stage:nth-child(2) { grid-column: 3; grid-row: 1; justify-self: start; }
.hp-process-stage:nth-child(4) { grid-column: 1; grid-row: 2; justify-self: end; }
.hp-process-stage:nth-child(5) { grid-column: 3; grid-row: 2; justify-self: start; }

/* Scroll-in animation */
.hp-process-diagram .hp-process-hub,
.hp-process-diagram .hp-process-stage {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.hp-process-diagram.is-visible .hp-process-hub,
.hp-process-diagram.is-visible .hp-process-stage {
    opacity: 1;
    transform: translateY(0);
}

.hp-process-diagram.is-visible .hp-process-stage:nth-child(1) { transition-delay: 0s; }
.hp-process-diagram.is-visible .hp-process-stage:nth-child(2) { transition-delay: 0.12s; }
.hp-process-diagram.is-visible .hp-process-hub { transition-delay: 0.24s; }
.hp-process-diagram.is-visible .hp-process-stage:nth-child(4) { transition-delay: 0.36s; }
.hp-process-diagram.is-visible .hp-process-stage:nth-child(5) { transition-delay: 0.48s; }


/* ============================================================
   ACTIVE PROJECT - Moray FLOW-Park
   ============================================================ */
.hp-section-project {
    padding: 100px 0;
    background: var(--navy-900);
}

.hp-project-cards-stack {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.hp-project-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-xl);
    overflow: hidden;
    position: relative;
}

.hp-project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--teal-400) 0%, rgba(78, 186, 180, 0.2) 60%, transparent 100%);
}

.hp-project-card-inner {
    padding: 48px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 50px;
    align-items: center;
}

.hp-project-status-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.hp-status-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5px 13px;
    border-radius: 20px;
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.hp-status-chip--active {
    background: rgba(36, 112, 168, 0.2);
    border: 1.5px solid rgba(36, 112, 168, 0.35);
    color: var(--navy-200);
}

.hp-status-chip--active::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #72c05a;
    animation: hp-pulse-dot 2.5s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes hp-pulse-dot {
    0%, 100% { box-shadow: 0 0 0 3px rgba(74, 158, 60, 0.18); }
    50% { box-shadow: 0 0 0 7px rgba(74, 158, 60, 0.07); }
}

@media (prefers-reduced-motion: reduce) {
    .hp-status-chip--active::before { animation: none; }
}

.hp-status-chip--stage {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.45);
}

.hp-status-chip--uk-first {
    background: rgba(245, 200, 66, 0.1);
    border: 1.5px solid rgba(245, 200, 66, 0.25);
    color: rgba(245, 200, 66, 0.85);
}

.hp-project-name {
    font-family: var(--font-d);
    font-size: clamp(1.625rem, 3vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 8px;
    line-height: 1.1;
}

.hp-project-location {
    display: flex;
    align-items: center;
    gap: 7px;
    font-family: var(--font-b);
    font-size: 0.875rem;
    color: var(--teal-400);
    margin-bottom: 24px;
}

.hp-project-location svg {
    width: 13px;
    height: 13px;
    opacity: 0.6;
    flex-shrink: 0;
}

.hp-project-desc {
    font-family: var(--font-b);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 32px;
}

.hp-project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-m);
    font-size: 13px;
    font-weight: 500;
    color: var(--teal-400);
    text-decoration: none;
    border-bottom: 1px solid rgba(78, 186, 180, 0.3);
    padding-bottom: 2px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hp-project-link:hover {
    color: var(--teal-100);
    border-color: rgba(78, 186, 180, 0.6);
}

.hp-project-link:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 4px;
    border-radius: 2px;
}

.hp-project-link svg {
    width: 14px;
    height: 14px;
    transition: transform 0.2s ease;
}

.hp-project-link:hover svg {
    transform: translateX(3px);
}

.hp-project-all {
    text-align: center;
    padding-top: 40px;
    margin-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

/* Project sidebar (replaces the old facts column) */
.hp-project-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 260px;
}

.hp-project-sidebar-label {
    font-family: var(--font-m);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.3);
    margin-bottom: 10px;
}

/* Stage progress bar (embedded in left column) */
.hp-stage-progress {
    margin-top: 20px;
    margin-bottom: 24px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
}

.hp-stage-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 10px;
}

.hp-stage-progress-label {
    font-family: var(--font-m);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.4);
}

.hp-stage-progress-pct {
    font-family: var(--font-d);
    font-size: 0.9375rem;
    font-weight: 700;
    color: var(--teal-400);
}

.hp-stage-progress-track {
    width: 100%;
    height: 5px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 3px;
    overflow: hidden;
}

.hp-stage-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--teal-700), var(--teal-400));
    border-radius: 3px;
    transition: width 1s ease;
}

.hp-stage-progress-meta {
    font-family: var(--font-m);
    font-size: 12px;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 8px;
    letter-spacing: 0.03em;
}

/* Milestone items in sidebar */
.hp-project-milestones {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    padding: 20px;
}

.hp-ms-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hp-ms-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hp-ms-item:first-of-type {
    padding-top: 0;
}

.hp-ms-name {
    font-family: var(--font-b);
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
}

.hp-ms-chip {
    font-family: var(--font-m);
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    white-space: nowrap;
    flex-shrink: 0;
}

.hp-ms-chip--complete {
    background: rgba(42, 122, 56, 0.15);
    border: 1px solid rgba(42, 122, 56, 0.25);
    color: var(--green-200);
}

.hp-ms-chip--in-progress {
    background: rgba(78, 186, 180, 0.12);
    border: 1px solid rgba(78, 186, 180, 0.22);
    color: var(--teal-400);
}

.hp-ms-chip--planned {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.35);
}

/* Economic pulse metrics in sidebar */
.hp-project-pulse-metrics {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-md);
    padding: 20px;
}

.hp-pulse-metric {
    display: flex;
    flex-direction: column;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.hp-pulse-metric:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.hp-pulse-metric:first-of-type {
    padding-top: 0;
}

.hp-pulse-metric-value {
    font-family: var(--font-d);
    font-size: 1.125rem;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.hp-pulse-metric-label {
    font-family: var(--font-m);
    font-size: 10px;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.06em;
    margin-top: 2px;
}


/* ============================================================
   POLICY CONTEXT - Critical national infrastructure
   ============================================================ */
.hp-section-context {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.hp-context-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin-top: 60px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--r-lg);
    overflow: hidden;
}

.hp-context-card {
    padding: 32px 28px;
    position: relative;
    transition: background 0.2s ease;
}

/* Vertical dividers between cards */
.hp-context-card + .hp-context-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 20px;
    bottom: 20px;
    width: 1px;
    background: rgba(255, 255, 255, 0.06);
}

.hp-context-card:hover {
    background: rgba(255, 255, 255, 0.03);
}

.hp-context-card-label {
    font-family: var(--font-m);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--teal-400);
    opacity: 0.7;
    margin-bottom: 12px;
}

.hp-context-card-title {
    font-family: var(--font-d);
    font-size: 1.0625rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.3;
    margin-bottom: 10px;
}

.hp-context-card-body {
    font-family: var(--font-b);
    font-size: 0.875rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.45);
}


/* ============================================================
   TECHNICAL PARTNERS
   ============================================================ */
.hp-section-partners {
    padding: 80px 0;
    background: var(--navy-900);
}

.hp-partners-label {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    text-align: center;
    margin-bottom: 36px;
}

.hp-partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.hp-partner-tag {
    font-family: var(--font-d);
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.3);
    letter-spacing: 0.03em;
    transition: color 0.2s ease;
    padding: 4px 0;
}

.hp-partner-tag:hover {
    color: rgba(255, 255, 255, 0.6);
}

.hp-partner-logo {
    display: flex;
    align-items: center;
}

.hp-partner-img {
    display: block;
    max-width: 120px;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.hp-partner-logo:hover .hp-partner-img {
    opacity: 0.65;
}

/* Traced SVGs are already white on transparent - no filter needed */
.hp-partner-img--svg {
    filter: none;
    mix-blend-mode: normal;
}

.hp-member-img.hp-member-img--svg {
    filter: none;
    mix-blend-mode: normal;
    opacity: 0.6;
}

.hp-partner-sep {
    width: 1px;
    height: 14px;
    background: rgba(255, 255, 255, 0.1);
    flex-shrink: 0;
}

/* Membership row */
.hp-memberships-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    flex-wrap: wrap;
}

.hp-membership-label {
    font-family: var(--font-m);
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.2);
}

.hp-membership-tag {
    font-family: var(--font-m);
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.35);
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
    letter-spacing: 0.02em;
}

.hp-membership-logo {
    display: flex;
    align-items: center;
    padding: 6px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-sm);
}

.hp-member-img {
    display: block;
    max-width: 180px;
    max-height: 40px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: grayscale(1) invert(1);
    mix-blend-mode: screen;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.hp-membership-logo:hover .hp-member-img {
    opacity: 0.65;
}


/* ============================================================
   CONTACT
   ============================================================ */
.hp-section-contact {
    padding: 100px 0;
    background: rgba(255, 255, 255, 0.025);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.hp-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    max-width: 960px;
    margin-top: 40px;
}

.hp-contact-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--r-lg);
    padding: 28px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.hp-contact-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
}

.hp-contact-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(78, 186, 180, 0.1);
    border: 1px solid rgba(78, 186, 180, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--teal-400);
}

.hp-contact-icon svg { width: 16px; height: 16px; }

.hp-contact-body { min-width: 0; }

.hp-contact-label {
    font-family: var(--font-m);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.25);
    margin-bottom: 7px;
}

.hp-contact-value {
    font-family: var(--font-b);
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    font-style: normal;
}

.hp-contact-value a {
    color: var(--teal-400);
    text-decoration: none;
    transition: color 0.2s ease;
}

.hp-contact-value a:hover { color: var(--teal-100); text-decoration: underline; }

.hp-contact-value a:focus-visible {
    outline: 2px solid var(--teal-400);
    outline-offset: 3px;
    border-radius: 2px;
}

.hp-contact-note {
    font-size: 0.8125rem;
    color: rgba(255, 255, 255, 0.3);
    margin-top: 3px;
}


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
    /* Layout */
    .hp-capability-grid { grid-template-columns: 1fr; gap: 16px; }
    .hp-explainer-grid { grid-template-columns: 1fr; gap: 48px; }
    .hp-context-grid { grid-template-columns: 1fr; }
    .hp-context-card + .hp-context-card::before {
        top: 0;
        left: 28px;
        right: 28px;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .hp-project-card-inner { grid-template-columns: 1fr; gap: 32px; }
    .hp-project-sidebar { min-width: 0; }

    /* Process diagram responsive */
    .hp-process-orbit {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        min-height: auto;
        gap: 16px;
    }
    .hp-process-hub {
        grid-column: 1;
        grid-row: 1;
        width: 160px;
        height: 160px;
        margin-bottom: 16px;
    }
    .hp-process-stage { max-width: 100%; justify-self: stretch !important; }
    .hp-process-stage:nth-child(1) { grid-column: 1; grid-row: 2; }
    .hp-process-stage:nth-child(2) { grid-column: 1; grid-row: 3; }
    .hp-process-stage:nth-child(4) { grid-column: 1; grid-row: 4; }
    .hp-process-stage:nth-child(5) { grid-column: 1; grid-row: 5; }
    .hp-process-orbit::before,
    .hp-process-orbit::after { display: none; }
}

@media (max-width: 767px) {
    .hp-hero { min-height: auto; }
    .hp-hero-content { padding: 60px 0 72px; }
    .hp-hero-badges { flex-direction: column; align-items: flex-start; gap: 12px; }
    .hp-contact-grid { grid-template-columns: 1fr; }
    .hp-project-card-inner { padding: 28px; }
}


/* ============================================================
   MAP COMPONENT (shared with hub - required for homepage sidebar)
   ============================================================ */
.map-card { background: var(--grey-100); display: flex; flex-direction: column; height: 420px; overflow: hidden; border-radius: var(--r-xl); padding: 3px 15px; border: 1px solid var(--grey-200); }
.map-svg-area { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.uk-location-map { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map-footer { padding: 10px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-shrink: 0; }
.map-disclaimer { font-size: 11px; color: var(--navy-900); font-style: italic; }
.map-region-tag { font-family: var(--font-m); font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--navy-200); background: var(--navy-900); border: 1px solid rgb(49 237 230 / 74%); padding: 4px 10px; border-radius: 8px; white-space: nowrap; }


/* ============================================================
   INVESTMENT / PARTNERSHIP CTA
   ============================================================ */
.hp-invest {
    position: relative;
    padding: 96px 0;
    background: var(--navy-800);
    overflow: hidden;
}

.hp-invest::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(78, 186, 180, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(42, 138, 130, 0.06) 0%, transparent 50%);
    pointer-events: none;
}

.hp-invest::after {
    content: '';
    position: absolute;
    top: 0;
    left: 10%;
    right: 10%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.08), transparent);
}

.hp-invest-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 620px;
    margin: 0 auto;
}

.hp-invest-title {
    font-family: var(--font-d);
    font-size: clamp(1.75rem, 3.5vw, 2.25rem);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
    line-height: 1.2;
}

.hp-invest-body {
    font-family: var(--font-b);
    font-size: 1rem;
    line-height: 1.75;
    color: rgba(255, 255, 255, 0.6);
    margin: 0 0 32px;
}

.hp-invest-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.hp-invest-btn {
    background: var(--teal-500, #2a8a82);
    border-color: var(--teal-500, #2a8a82);
    color: #fff;
    padding: 14px 32px;
    font-size: 0.9375rem;
    transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
}

.hp-invest-btn:hover {
    background: var(--teal-400, #4ebab4);
    border-color: var(--teal-400, #4ebab4);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(42, 138, 130, 0.25);
}

@media (max-width: 767px) {
    .hp-invest {
        padding: 64px 0;
    }
}
