/* ================================================
   DESIGN TOKENS
   ================================================ */
:root {
    /* Primary Palette — PrimeHub Orange + Navy */
    --ph-orange: #E8752A;
    --ph-orange-light: #F2954D;
    --ph-orange-dark: #C45E1C;
    --ph-navy: #3a3a38;
    --ph-navy-light: #253758;
    --ph-navy-dark: #3a3a38;

    /* Neutrals */
    --white: #FFFFFF;
    --off-white: #F8F7F4;
    --light-gray: #F2F1ED;
    --mid-gray: #E5E3DF;
    --text-primary: #2E2E2E;
    --text-secondary: #5A5A5A;
    --text-muted: #888888;
    --text-on-dark: #F0F0F5;

    /* Layout */
    --max-width: 1200px;
    --section-padding: 100px 0;
    --section-padding-sm: 64px 0;

    /* Motion */
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --transition: 0.3s var(--ease-out);
}

/* ================================================
   RESET & BASE
   ================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text-primary);
    background: var(--white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition);
}

h1,
h2,
h3,
h4,
h5 {
    font-family: 'Josefin Sans', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    line-height: 1.2;
    font-weight: 700;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 32px;
}

/* ================================================
   TOP BAR
   ================================================ */
.top-bar {
    background: var(--ph-navy);
    color: var(--text-on-dark);
    font-size: 13px;
    padding: 8px 0;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.top-bar a {
    color: var(--text-on-dark);
    opacity: 0.85;
    transition: opacity var(--transition);
}

.top-bar a:hover {
    opacity: 1;
    color: var(--ph-orange);
}

.top-bar-left,
.top-bar-right {
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.top-bar-item svg {
    width: 14px;
    height: 14px;
    fill: var(--ph-orange);
    flex-shrink: 0;
}

/* ================================================
   NAVBAR
   ================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: 1px solid var(--mid-gray);
    transition: box-shadow var(--transition);
}

.navbar.scrolled {
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0;
    padding-bottom: 0;
    height: 72px;
}

.navbar-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Josefin Sans', sans-serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ph-navy);
}

.navbar-logo .logo-prime {
    color: var(--ph-navy);
}

.navbar-logo .logo-hub {
    color: var(--ph-orange);
}

.navbar-logo .logo-sub {
    font-size: 9px;
    letter-spacing: 4px;
    color: var(--text-muted);
    display: block;
    margin-top: -4px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-primary);
    position: relative;
    padding: 4px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--ph-orange);
    transition: width var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
    width: 100%;
}

.nav-links a:hover {
    color: var(--ph-orange);
}

.nav-cta {
    background: var(--ph-orange);
    color: var(--white) !important;
    padding: 10px 24px !important;
    border-radius: 4px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px !important;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.nav-cta::after {
    display: none !important;
}

.nav-cta:hover {
    background: var(--ph-orange-dark);
    color: var(--white) !important;
    transform: translateY(-1px);
}

/* Mobile Menu Toggle */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
}

.menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--ph-navy);
    margin: 5px 0;
    transition: var(--transition);
}

/* ================================================
   HERO
   ================================================ */
:root {
    --wipe-angle: 0deg;
}

.hero {
    position: relative;
    min-height: 85vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--ph-navy);
    color: var(--white);
}

/* --- Dual-layer Before/After --- */
.hero-bg {
    position: absolute;
    inset: 0;
    z-index: 1;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Background = BEFORE (construction), dimmer */
.hero-bg--before {
    z-index: 1;
}

.hero-bg--before img {
    opacity: 0.85;
    filter: saturate(0.7) brightness(0.7);
}

/* Foreground = AFTER (finished), brighter, masked */
.hero-bg--after {
    z-index: 2;
    -webkit-mask-image: linear-gradient(var(--wipe-angle),
            rgba(0, 0, 0, 1) 49%,
            rgba(0, 0, 0, 0) 51%);
    mask-image: linear-gradient(var(--wipe-angle),
            rgba(0, 0, 0, 1) 49%,
            rgba(0, 0, 0, 0) 51%);
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

.hero-bg--after img {
    opacity: 0.9;
    filter: brightness(0.85);
}

/* --- Overlay (sits above both layers — kept light so wipe is visible) --- */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 3;
    background: linear-gradient(135deg,
            rgba(27, 42, 74, 0.55) 0%,
            rgba(27, 42, 74, 0.25) 50%,
            rgba(27, 42, 74, 0.50) 100%);
}

/* --- Before/After Label --- */
.hero-wipe-label {
    position: absolute;
    bottom: 32px;
    right: 40px;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(27, 42, 74, 0.65);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 40px;
    padding: 10px 24px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--white);
    opacity: 0.7;
    transition: opacity 0.3s;
}

.hero:hover .hero-wipe-label {
    opacity: 1;
}

.wipe-label-before {
    color: rgba(255, 255, 255, 0.6);
}

.wipe-label-arrow {
    color: var(--ph-orange);
    font-size: 14px;
}

.wipe-label-after {
    color: var(--ph-orange);
}

/* --- Mobile: adjust label only --- */
@media (max-width: 768px) {
    .hero-wipe-label {
        bottom: 16px;
        right: 16px;
        padding: 8px 16px;
        font-size: 10px;
    }
}

.hero .container {
    position: relative;
    z-index: 3;
    padding-top: 80px;
    padding-bottom: 80px;
}

.hero-content {
    max-width: 680px;
    text-align: center;
    margin: 0 auto;
}

.hero-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--ph-orange);
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}



.hero h1 {
    font-size: clamp(32px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: 1px;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    font-weight: 300;
    color: var(--text-on-dark);
    margin-bottom: 40px;
    max-width: 560px;
    opacity: 0.85;
    line-height: 1.8;
}

.hero-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--ph-orange);
    color: var(--white);
    padding: 16px 36px;
    border-radius: 4px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    transition: background var(--transition), transform var(--transition);
}

.hero-cta:hover {
    background: var(--ph-orange-dark);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-stat {
    text-align: left;
}

.hero-stat-number {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 42px;
    font-weight: 700;
    color: var(--ph-orange);
    line-height: 1;
    margin-bottom: 4px;
}

.hero-stat-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    opacity: 0.6;
}

/* ================================================
   SECTIONS
   ================================================ */
.section {
    padding: var(--section-padding);
}

.section--gray {
    background: var(--light-gray);
}

.section--navy {
    background: var(--ph-navy);
    color: var(--white);
}

.section-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 4px;
    color: var(--ph-orange);
    margin-bottom: 16px;
}

.section-title {
    font-size: clamp(28px, 4vw, 42px);
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.section-subtitle {
    font-size: 17px;
    font-weight: 300;
    color: var(--text-secondary);
    max-width: 640px;
    line-height: 1.8;
    margin-bottom: 56px;
}

.section--navy .section-subtitle {
    color: var(--text-on-dark);
    opacity: 0.75;
}

.section-center {
    text-align: center;
}

.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ================================================
   VALUES (3-COLUMN)
   ================================================ */
.values-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 48px;
    text-align: center;
    padding: 40px 0;
}

.value-item {
    padding: 40px 24px;
}

.value-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.value-icon svg {
    width: 48px;
    height: 48px;
    stroke: var(--ph-orange);
    fill: none;
    stroke-width: 1.5;
}

/* ===== Hub-motif value icons — filled cores + signature animations ===== */
.ph-icon .ph-core {
    fill: var(--ph-orange);
    stroke: none;
}

/* INTEGRITY — solid core pulses (heartbeat) */
.ph-icon-integrity .ph-core {
    transform-origin: 12px 12px;
    animation: ph-integrity-pulse 2.4s ease-in-out infinite;
}
@keyframes ph-integrity-pulse {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(1.3); }
}

/* INNOVATION — spokes rotate slowly (continuous outward energy) */
.ph-icon-innovation .ph-spokes {
    transform-origin: 12px 12px;
    animation: ph-innovation-spin 24s linear infinite;
}
@keyframes ph-innovation-spin {
    to { transform: rotate(360deg); }
}

/* EXCELLENCE — bullseye breathes inward (precision focus) */
.ph-icon-excellence .ph-bullseye {
    transform-origin: 12px 12px;
    animation: ph-excellence-focus 3.2s ease-in-out infinite;
}
@keyframes ph-excellence-focus {
    0%, 100% { transform: scale(1); }
    50%      { transform: scale(0.93); }
}

@media (prefers-reduced-motion: reduce) {
    .ph-icon-integrity .ph-core,
    .ph-icon-innovation .ph-spokes,
    .ph-icon-excellence .ph-bullseye {
        animation: none;
    }
}

.value-title {
    font-size: 16px;
    letter-spacing: 3px;
    margin-bottom: 16px;
    color: var(--text-primary);
}

.value-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* ================================================
   SERVICES GRID
   ================================================ */
.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

.service-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    background: var(--white);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    transition: transform var(--transition), box-shadow var(--transition);
}

.service-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

.service-card-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.service-card-body {
    padding: 28px 24px;
}

.service-card-title {
    font-size: 15px;
    letter-spacing: 2px;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.service-card-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 16px;
}

.service-card-link {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--ph-orange);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.service-card-link:hover {
    color: var(--ph-orange-dark);
}

/* ================================================
   ABOUT / LEADERSHIP
   ================================================ */
.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
}

.about-image {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.about-image-accent {
    position: absolute;
    top: -16px;
    left: -16px;
    width: 100%;
    height: 100%;
    border: 2px solid var(--ph-orange);
    border-radius: 8px;
    z-index: -1;
}

.about-text p {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.9;
    margin-bottom: 24px;
}

.about-text strong {
    color: var(--text-primary);
}

.gm-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 32px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 40px auto 0;
    max-width: 600px;
}

.gm-photo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--ph-orange);
    flex-shrink: 0;
    margin-bottom: 16px;
}

.gm-info h4 {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 4px;
}

.gm-info .gm-title {
    font-family: 'Outfit', sans-serif;
    font-size: 13px;
    text-transform: none;
    letter-spacing: 0;
    color: var(--ph-orange);
    font-weight: 600;
    margin-bottom: 8px;
}

.gm-info p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0;
}

/* ================================================
   STATS / WHY CHOOSE US
   ================================================ */
.stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    text-align: center;
    padding: 48px 0;
}

.stat-item {
    padding: 32px 16px;
}

.stat-number {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 56px;
    font-weight: 700;
    color: var(--ph-orange);
    line-height: 1;
    margin-bottom: 8px;
}

.section--navy .stat-number {
    color: var(--ph-orange);
}

.stat-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 3px;
    color: var(--text-muted);
}

.section--navy .stat-label {
    color: var(--text-on-dark);
    opacity: 0.6;
}

/* ================================================
   PROCESS
   ================================================ */
.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
    position: relative;
}

.process-grid::before {
    content: '';
    position: absolute;
    top: 40px;
    left: 12.5%;
    right: 12.5%;
    height: 2px;
    background: var(--mid-gray);
    z-index: 0;
}

.process-step {
    text-align: center;
    position: relative;
    z-index: 1;
}

.process-number {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: var(--white);
    border: 2px solid var(--ph-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--ph-orange);
}

.process-title {
    font-size: 14px;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.process-desc {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ================================================
   CONTACT
   ================================================ */
.contact-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.contact-cards .contact-info-item {
    margin-bottom: 0;
}

.contact-info-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.contact-info-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(232, 117, 42, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-info-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--ph-orange);
    fill: none;
    stroke-width: 1.5;
}

.contact-info-label {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-muted);
    margin-bottom: 4px;
}

.contact-info-value {
    font-size: 15px;
    color: var(--text-primary);
    line-height: 1.6;
}

.contact-info-value a {
    color: var(--ph-orange);
}

.contact-info-value a:hover {
    color: var(--ph-orange-dark);
}

/* ================================================
   FOOTER
   ================================================ */
.footer {
    background: var(--ph-navy-dark);
    color: var(--text-on-dark);
    padding: 64px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-brand {
    max-width: 300px;
}

.footer-brand-name {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.footer-brand-name .logo-hub {
    color: var(--ph-orange);
}

.footer-brand p {
    font-size: 14px;
    opacity: 0.65;
    line-height: 1.8;
}

.footer-col h4 {
    font-size: 12px;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--ph-orange);
}

.footer-col ul {
    list-style: none;
}

.footer-col li {
    margin-bottom: 10px;
}

.footer-col a {
    font-size: 14px;
    opacity: 0.65;
    transition: opacity var(--transition), color var(--transition);
}

.footer-col a:hover {
    opacity: 1;
    color: var(--ph-orange);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.5;
}

/* ================================================
   SCROLL REVEAL
   ================================================ */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.reveal.visible {
    opacity: 1;
    transform: none;
}

.reveal-delay-1 {
    transition-delay: 0.1s;
}

.reveal-delay-2 {
    transition-delay: 0.2s;
}

.reveal-delay-3 {
    transition-delay: 0.3s;
}

.reveal-delay-4 {
    transition-delay: 0.4s;
}

/* ================================================
   AGENCY CREDIT
   ================================================ */
.agency-credit {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.agency-credit:hover {
    opacity: 1;
}

.agency-credit span {
    font-size: 13px;
    font-weight: 400;
    color: var(--mid-gray);
}

.agency-credit img {
    height: 16px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) saturate(100%) invert(75%) sepia(54%) saturate(540%) hue-rotate(0deg) brightness(92%) contrast(86%);
    transition: filter 0.3s ease;
}

.agency-credit:hover img {
    /* keep the gold filter — only the container opacity changes on hover */
    filter: brightness(0) saturate(100%) invert(75%) sepia(54%) saturate(540%) hue-rotate(0deg) brightness(100%) contrast(86%);
}

/* ================================================
   RESPONSIVE — TABLET (768px)
   ================================================ */
@media (max-width: 768px) {
    :root {
        --section-padding: 64px 0;
    }

    .top-bar .container {
        flex-direction: column;
        gap: 4px;
    }

    .top-bar-right {
        display: none;
    }

    .navbar .container {
        height: 60px;
    }

    .nav-links {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        bottom: 0;
        background: var(--white);
        flex-direction: column;
        padding: 40px 32px;
        gap: 24px;
        z-index: 99;
    }

    .nav-links.open {
        display: flex;
    }

    .menu-toggle {
        display: block;
    }

    .hero {
        min-height: 70vh;
    }

    .hero-stats {
        gap: 24px;
        flex-wrap: wrap;
    }

    .hero-stat-number {
        font-size: 32px;
    }

    .values-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .services-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px;
    }

    .process-grid::before {
        display: none;
    }

    .contact-cards {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 32px;
    }
}

/* ================================================
   RESPONSIVE — MOBILE (480px)
   ================================================ */
@media (max-width: 480px) {
    .container {
        padding: 0 20px;
    }

    .hero h1 {
        font-size: 28px;
    }

    .section-title {
        font-size: 24px;
    }

    .stats-row {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .gm-card {
        flex-direction: column;
        text-align: center;
    }
}

/* ================================================
   PRINT
   ================================================ */
@media print {
    .reveal {
        opacity: 1;
        transform: none;
    }

    .navbar,
    .top-bar {
        display: none;
    }
}

/* ================================================
   WORKSHOP EQUIPMENT TABLE
   ================================================ */
.equip-table-wrap {
    margin-top: 48px;
    overflow-x: clip;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
}

.equip-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--white);
    font-size: 15px;
    text-align: left;
}

.equip-table thead th {
    background: var(--ph-navy);
    color: var(--white);
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 16px 20px;
    white-space: nowrap;
}

.equip-table thead th:last-child,
.equip-table td.equip-qty {
    text-align: center;
}

.equip-table tbody td {
    padding: 14px 20px;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--mid-gray);
    overflow-wrap: anywhere;
}

.equip-table tbody tr:nth-child(even) {
    background: var(--light-gray);
}

.equip-table tbody tr:last-child td {
    border-bottom: none;
}

.equip-table td:first-child {
    color: var(--text-primary);
    font-weight: 600;
}

.equip-table td.equip-qty {
    color: var(--ph-orange);
    font-weight: 700;
}

@media (max-width: 768px) {
    .equip-table {
        font-size: 13px;
    }

    .equip-table thead th,
    .equip-table tbody td {
        padding: 12px 14px;
    }
}

/* ================================================
   WORKSHOP FACILITIES
   ================================================ */
.workshop-subhead {
    margin: 56px 0 24px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ph-orange);
}

.facility-list {
    margin: 0 auto;
    text-align: left;
}

.facility-row {
    position: relative;
    min-height: 110px;
    margin-bottom: 28px;
    perspective: 1400px;
}

.facility-row-inner {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: inherit;
    transform-style: preserve-3d;
}

/* Triangular prism geometry — apothem of an equilateral triangle with side
   ≈ row height: apothem = side × √3 / 6 ≈ 32 px for a 110 px row.
   Each face is pushed outward from the rotation axis by this distance, and
   the two used faces sit at 120° apart (the 3rd lateral face is unused). */
.facility-face {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.facility-face--front {
    background: var(--light-gray);
    border-left: 4px solid var(--ph-orange);
    border-radius: 0 6px 6px 0;
    padding: 18px 24px;
    justify-content: space-between;
    gap: 12px 24px;
    flex-wrap: wrap;
    /* Front face: pushed forward (toward viewer) by the apothem */
    transform: translateZ(32px);
}

.facility-face--back {
    background: var(--ph-navy);
    border-radius: 6px;
    padding: 18px 24px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: var(--white);
    /* Back face: positioned at -120° around the X axis (the lower-back vertex
       of the triangular prism), then pushed outward by the same apothem.
       This is a true triangular-prism geometry, not a flat card flip. */
    transform: rotateX(-120deg) translateZ(32px);
}

.facility-back-number {
    font-size: 38px;
    font-weight: 700;
    color: var(--ph-orange);
    line-height: 1;
    letter-spacing: 1px;
}

.facility-back-unit {
    font-size: 11px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.facility-back-tag {
    font-family: 'Instrument Serif', serif;
    font-style: italic;
    font-size: 17px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 10px;
    letter-spacing: 0.3px;
}

.facility-info {
    flex: 1 1 auto;
    min-width: 0;
}

.facility-name {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
}

.facility-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}

.facility-size {
    font-size: 18px;
    font-weight: 700;
    color: var(--ph-orange);
    white-space: nowrap;
}

.facility-total {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding: 18px 24px;
    margin-top: 4px;
    border-top: 2px solid var(--ph-navy);
    font-size: 17px;
    font-weight: 700;
    color: var(--ph-navy);
    text-transform: uppercase;
    letter-spacing: 1px;
}

@media (max-width: 768px) {
    .workshop-subhead {
        margin: 40px 0 20px;
    }

    .facility-row,
    .facility-total {
        padding: 16px 18px;
    }

    .facility-size {
        font-size: 16px;
    }
}

/* ================================================
   FEATURED PROJECT
   ================================================ */
.featured-project-hero {
    margin-top: 40px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

.featured-project-hero img {
    width: 100%;
    height: auto;
    display: block;
}

.fp-stats-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 48px;
    text-align: center;
}

.fp-stat-item {
    padding: 20px 12px;
}

.fp-stat-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--ph-orange);
    line-height: 1.1;
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.fp-stat-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-secondary);
}

.featured-project-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    margin-top: 56px;
    text-align: left;
    align-items: center;
}

.featured-project-narrative p {
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.featured-project-detail {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.1);
}

.featured-project-detail img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .fp-stats-row {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
        margin-top: 36px;
    }

    .fp-stat-value {
        font-size: 22px;
    }

    .fp-stat-item {
        padding: 14px 8px;
    }

    .featured-project-body {
        grid-template-columns: 1fr;
        gap: 32px;
        margin-top: 40px;
    }
}

/* ================================================
   SERVICE CARD — CTA VARIANT (9th slot)
   ================================================ */
.service-card--cta {
    background: linear-gradient(160deg, var(--ph-orange) 0%, var(--ph-orange-dark) 100%);
    color: var(--white);
    padding: 36px 28px;
    display: flex;
    flex-direction: column;
    text-align: left;
}

.service-card--cta:hover {
    box-shadow: 0 12px 40px rgba(232, 117, 42, 0.35);
}

.service-card-cta-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 18px;
}

.service-card-cta-title {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--white);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
}

.service-card-cta-sectors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.service-card-cta-sectors span {
    display: inline-block;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--white);
    background: rgba(255, 255, 255, 0.08);
}

.service-card-cta-link {
    margin-top: auto;
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--white);
    color: var(--ph-navy);
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}

.service-card-cta-link:hover {
    background: var(--ph-navy);
    color: var(--white);
}

.service-card-cta-link span {
    transition: transform 0.2s;
}

.service-card-cta-link:hover span {
    transform: translateX(4px);
}

/* ================================================
   WORKSHOP — SCROLL-LINKED PRISM FLIP (per row, X-axis, 120°)
   ================================================ */
/* Rotation is 120°, not 180° — matches the angle between two faces of a
   triangular prism (Toblerone geometry, not a flat card). The 3rd face's
   position (+120°) is intentionally left empty. */
@keyframes facility-prism-flip {
    from { transform: rotateX(0deg); }
    to   { transform: rotateX(120deg); }
}

/* Each row's inner flips independently, driven by its own scroll position
   through the viewport. Animation progress = scroll progress. */
@supports (animation-timeline: view()) {
    .facility-row-inner {
        animation: facility-prism-flip linear both;
        animation-timeline: view();
        animation-range: cover 30% cover 70%;
    }
}

/* Subtle hover micro-tumble on equipment table rows (independent of the flip) */
.equip-table tbody tr {
    transition: transform 0.25s ease, background 0.25s ease;
}
.equip-table tbody tr:hover {
    transform: translateX(4px);
}

/* Accessibility / fallback: show only the front face statically.
   Also applies to browsers without animation-timeline support — they'll
   sit at rotateX(0deg) (the keyframe's "from" state) and never animate. */
@media (prefers-reduced-motion: reduce) {
    .facility-row-inner {
        animation: none !important;
        transform: none !important;
    }
    .facility-face--back {
        display: none !important;
    }
    .equip-table tbody tr {
        transition: none !important;
    }
    .equip-table tbody tr:hover {
        transform: none !important;
    }
}

/* ================================================
   CONTACT — BRIEF DOWNLOAD CARD
   ================================================ */
.brief-download {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px 24px;
    margin: 28px 0 56px;
    background: var(--light-gray);
    border-left: 4px solid var(--ph-orange);
    border-radius: 0 8px 8px 0;
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.brief-download:hover {
    background: #fff;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.brief-download-icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--white);
    color: var(--ph-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.brief-download-icon svg {
    width: 22px;
    height: 22px;
}

.brief-download-text {
    flex: 1 1 auto;
    min-width: 0;
}

.brief-download-eyebrow {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ph-orange);
    margin-bottom: 4px;
}

.brief-download-title {
    font-size: 17px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
    line-height: 1.3;
}

.brief-download-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
}

.brief-download-btn {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    background: var(--ph-navy);
    color: var(--white);
    border-radius: 8px;
    font-family: 'Josefin Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: background 0.2s ease;
}

.brief-download:hover .brief-download-btn {
    background: var(--ph-orange);
}

.brief-download-arrow {
    transition: transform 0.2s ease;
}

.brief-download:hover .brief-download-arrow {
    transform: translateY(3px);
}

@media (max-width: 768px) {
    .brief-download {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 16px;
        padding: 20px;
    }
    .brief-download-icon {
        margin: 0 auto;
    }
    .brief-download-btn {
        justify-content: center;
    }
}

/* ================================================
   WHY-US — WORD-BY-WORD GLOW SWEEP (scroll-linked)
   ================================================ */
.glow-sweep .glow-word {
    position: relative;
    display: inline-block;
}

/* Layered duplicate that carries the white halo via text-shadow.
   Sits exactly on top of the original word; only its opacity animates. */
.glow-sweep .glow-word::after {
    content: attr(data-text);
    position: absolute;
    inset: 0;
    color: #fff;
    text-shadow:
        0 0 18px rgba(255, 255, 255, 0.75),
        0 0 6px rgba(255, 255, 255, 0.5);
    pointer-events: none;
    opacity: 0;
    will-change: opacity;
}

/* Auto-sweep — 6-second cycle, left → right only.
   Each word pulses once per cycle. Sweep runs across ~72% of the cycle,
   then a brief pause (~1.7s) before looping back to start. */
@keyframes glow-w1 {
    0%, 12%, 100% { opacity: 0; }
    6%            { opacity: 1; }
}
@keyframes glow-w2 {
    0%, 12%, 24%, 100% { opacity: 0; }
    18%                { opacity: 1; }
}
@keyframes glow-w3 {
    0%, 24%, 36%, 100% { opacity: 0; }
    30%                { opacity: 1; }
}
@keyframes glow-w4 {
    0%, 36%, 48%, 100% { opacity: 0; }
    42%                { opacity: 1; }
}
@keyframes glow-w5 {
    0%, 48%, 60%, 100% { opacity: 0; }
    54%                { opacity: 1; }
}
@keyframes glow-w6 {
    0%, 60%, 72%, 100% { opacity: 0; }
    66%                { opacity: 1; }
}

.glow-sweep .glow-word:nth-child(1)::after { animation: glow-w1 6s ease-in-out infinite; }
.glow-sweep .glow-word:nth-child(2)::after { animation: glow-w2 6s ease-in-out infinite; }
.glow-sweep .glow-word:nth-child(3)::after { animation: glow-w3 6s ease-in-out infinite; }
.glow-sweep .glow-word:nth-child(4)::after { animation: glow-w4 6s ease-in-out infinite; }
.glow-sweep .glow-word:nth-child(5)::after { animation: glow-w5 6s ease-in-out infinite; }
.glow-sweep .glow-word:nth-child(6)::after { animation: glow-w6 6s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
    .glow-sweep .glow-word::after {
        animation: none !important;
        display: none;
    }
}