.page-project-detail {
    background: var(--hpr-bg-light-alt);
    color: var(--hpr-text);
    animation: pageFadeIn 0.55s ease-out;
}

@keyframes pageFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-detail-main {
    padding: 0;
    position: relative;
    margin-top: -1px;
}

/* ===== Ngọc báu — video/ảnh trái, chữ phải ===== */
.project-location-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    align-items: stretch;
    min-height: clamp(420px, 52vw, 560px);
    background: linear-gradient(
        135deg,
        var(--hpr-primary) 0%,
        var(--hpr-primary-mid) 45%,
        var(--hpr-accent) 100%
    );
    scroll-margin-top: 100px;
}

.project-location-intro__media {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
    overflow: hidden;
}

.project-location-intro__frame {
    position: relative;
    width: 100%;
    max-width: 920px;
    aspect-ratio: 16 / 10;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.project-location-intro__fallback,
.project-location-intro__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-location-intro__video {
    position: absolute;
    inset: 0;
}

.project-location-intro__media.is-static .project-location-intro__video {
    display: none;
}

.project-location-intro__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3.5rem) clamp(1.5rem, 4vw, 3rem);
    border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.project-location-intro__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: 0.02em;
    color: #ffffff;
}

.project-location-intro__subtitle {
    margin: 0.65rem 0 1.35rem;
    font-size: clamp(0.82rem, 1.5vw, 1rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--hpr-accent-light);
}

.project-location-intro__lead {
    margin: 0;
    max-width: 38ch;
    font-size: clamp(0.88rem, 1.2vw, 0.96rem);
    line-height: 1.8;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

.project-location-intro__lead strong {
    color: var(--hpr-yellow);
    font-weight: 700;
}

@media (max-width: 960px) {
    .project-location-intro {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .project-location-intro__copy {
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.22);
        text-align: center;
        align-items: center;
    }

    .project-location-intro__lead {
        max-width: 52ch;
    }

    .project-location-intro__frame {
        max-width: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .project-location-intro__video {
        display: none !important;
    }
}

/* ===== 5 trụ cột — UI orbit như video mẫu (chữ trái + cung + icon xoay) ===== */
.project-pillars,
#projectCustomDesign {
    scroll-margin-top: 100px;
}

.project-pillars {
    --pillar-navy: #0f2744;
    --pillar-bg: #f4f3f0;
    --pillar-radius: var(--hpr-radius-lg, 18px);
    position: relative;
    padding: clamp(3.5rem, 8vw, 6rem) clamp(1.25rem, 4vw, 3rem);
    background: var(--pillar-bg);
    color: #111;
    font-family: "Montserrat", sans-serif;
    overflow: hidden;
}

.project-pillars__inner {
    display: grid;
    grid-template-columns: minmax(260px, 34%) minmax(0, 1fr);
    gap: clamp(1.25rem, 2.5vw, 2rem);
    align-items: stretch;
    max-width: 1400px;
    margin: 0 auto;
}

.project-pillars__content {
    position: relative;
    z-index: 3;
    max-width: 440px;
}

.project-pillars__content.is-changing .project-pillars__headline-lg,
.project-pillars__content.is-changing .project-pillars__text {
    animation: pillarContentIn 0.5s ease both;
}

@keyframes pillarContentIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.project-pillars__badge {
    display: inline-block;
    margin: 0 0 1.25rem;
    padding: 0.4rem 0.85rem;
    border-radius: var(--hpr-radius-pill, 999px);
    background: rgba(11, 41, 79, 0.1);
    color: var(--hpr-primary, #0b294f);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-pillars__headline {
    margin: 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.project-pillars__headline-lg {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #0a0a0a;
}

.project-pillars__headline-sm {
    font-size: clamp(2.4rem, 5vw, 3.5rem);
    font-weight: 800;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #0a0a0a;
}

.project-pillars__text {
    margin: 0 0 1.5rem;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    line-height: 1.65;
    font-weight: 500;
    color: #5a5a5a;
    max-width: 44ch;
}

.project-pillars__actions {
    margin-bottom: 1.75rem;
}

.project-pillars__chip {
    max-width: 280px;
    padding: 1rem 1.1rem;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 16px 40px rgba(15, 39, 68, 0.12);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.project-pillars__chip-label {
    margin: 0 0 0.35rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #888;
}

.project-pillars__chip-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #111;
}

.project-pillars__chip-desc {
    margin: 0 0 0.75rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #666;
}

.project-pillars__chip-nav {
    display: flex;
    gap: 0.4rem;
}

.project-pillars__chip-nav button {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0eeea;
    color: var(--pillar-navy);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.project-pillars__chip-nav button:hover {
    background: #e5e0d6;
    transform: scale(1.05);
}

/* --- Phải: ảnh dự án full rộng --- */
.project-pillars__media {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    min-height: clamp(360px, 46vw, 580px);
}

.project-pillars__visual {
    flex: 1 1 auto;
    margin: 0;
    width: 100%;
    min-height: inherit;
    border-radius: var(--pillar-radius);
    overflow: hidden;
    background: #ddd8ce;
    box-shadow:
        0 32px 72px rgba(15, 39, 68, 0.12),
        0 10px 28px rgba(15, 39, 68, 0.06);
}

.project-pillars__visual img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: clamp(360px, 46vw, 580px);
    object-fit: cover;
    object-position: center center;
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity 0.32s ease;
}

.project-pillars__visual img.is-switching {
    opacity: 0.88;
}

@media (min-width: 1025px) {
    .project-pillars__inner {
        grid-template-columns: minmax(300px, 36%) minmax(0, 1fr);
        gap: clamp(1.5rem, 2.5vw, 2.25rem);
    }

    .project-pillars__content {
        align-self: center;
    }

}

@media (max-width: 1024px) {
    .project-pillars__inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .project-pillars__content {
        max-width: none;
    }

    .project-pillars__media {
        min-height: clamp(280px, 55vw, 420px);
    }

    .project-pillars__visual img {
        min-height: clamp(280px, 55vw, 420px);
    }
}

@media (max-width: 520px) {
    .project-pillars {
        --pillar-radius: var(--hpr-radius-md, 12px);
    }

    .project-pillars__media,
    .project-pillars__visual img {
        min-height: 260px;
    }
}

#projectLegacyOverview {
    scroll-margin-top: 100px;
}

.project-overview-jump {
    margin: 0;
    padding: 0.65rem 1rem;
    text-align: center;
    background: rgba(6, 13, 12, 0.92);
    border-bottom: 1px solid rgba(212, 175, 55, 0.25);
}

.project-overview-jump a {
    color: #e8c96a;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
}

.project-overview-jump a:hover {
    color: #fff;
}

.project-overview-jump i {
    margin-right: 0.35rem;
}

.project-detail-main::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(42px, 7vh, 72px);
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(180deg, rgba(8, 38, 39, 0.5) 0%, rgba(10, 76, 71, 0.18) 52%, rgba(10, 76, 71, 0) 100%);
}

/* ===== Cảm hứng dự án (theo mẫu Vaquarius) ===== */
.project-inspiration {
    position: relative;
    overflow: hidden;
    background-color: #f9f4ee;
    padding: clamp(1.8rem, 3.5vw, 2.8rem) 0 0;
}

.project-inspiration::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(30px, 6vh, 58px);
    background: linear-gradient(180deg, rgba(10, 52, 86, 0.24) 0%, rgba(10, 52, 86, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

.project-inspiration__decor {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 55% 40% at 92% 8%, rgba(201, 168, 130, 0.22), transparent 70%),
        radial-gradient(ellipse 50% 35% at 4% 88%, rgba(201, 168, 130, 0.18), transparent 68%),
        linear-gradient(125deg, transparent 42%, rgba(210, 180, 145, 0.08) 50%, transparent 58%),
        linear-gradient(55deg, transparent 38%, rgba(210, 180, 145, 0.06) 48%, transparent 56%);
}

.project-inspiration__inner {
    position: relative;
    z-index: 1;
    width: min(96%, 1320px);
    margin: 0 auto;
}

.project-inspiration__head {
    text-align: center;
    margin-bottom: clamp(1.4rem, 3vw, 2.2rem);
    animation: softRiseIn 0.7s ease-out both;
}

.project-inspiration__eyebrow {
    color: #2f628c;
    letter-spacing: 0.14em;
    font-size: 0.84rem;
    font-weight: 700;
    margin-bottom: 0.65rem;
    text-transform: uppercase;
}

.project-inspiration__title {
    display: flex;
    flex-direction: column;
    gap: 0.08rem;
    max-width: 920px;
    margin: 0 auto;
    font-family: "Playfair Display", Georgia, serif;
    color: #174c7c;
    line-height: 1.02;
    text-shadow: 0 6px 20px rgba(23, 76, 124, 0.12);
}

.project-inspiration__title-row {
    display: inline-flex;
    justify-content: center;
    align-items: baseline;
    gap: 0.58rem;
}

.project-inspiration__title-lg {
    font-size: clamp(2rem, 4.5vw, 3.35rem);
    font-weight: 700;
    letter-spacing: 0.012em;
}

.project-inspiration__title-sm {
    font-family: "Montserrat", sans-serif;
    font-size: clamp(1.02rem, 1.9vw, 1.4rem);
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #2b5d8a;
}

.project-inspiration__title-emphasis {
    color: #23a79c;
    text-shadow: 0 0 10px rgba(86, 232, 219, 0.45), 0 8px 20px rgba(19, 121, 112, 0.22);
    animation: titleTealGlow 2.6s ease-in-out infinite alternate;
}

@keyframes titleTealGlow {
    from {
        text-shadow: 0 0 6px rgba(86, 232, 219, 0.32), 0 6px 14px rgba(19, 121, 112, 0.16);
    }
    to {
        text-shadow: 0 0 14px rgba(86, 232, 219, 0.58), 0 9px 24px rgba(19, 121, 112, 0.26);
    }
}

.project-inspiration__title-row:last-child {
    transform: translateX(0.18rem);
}

.project-inspiration__map-wrap {
    position: relative;
    width: 100vw;
    margin-top: clamp(1rem, 2vw, 1.4rem);
    margin-left: 50%;
    transform: translateX(-50%);
    background: #0a1628;
    box-shadow: 0 24px 52px rgba(7, 34, 33, 0.22);
}

.project-inspiration__map-wrap::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(48px, 8vh, 84px);
    z-index: 4;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(249, 244, 238, 0.92) 0%, rgba(249, 244, 238, 0) 100%);
}

.project-map {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 0;
    max-height: min(92vh, 920px);
}

.project-map__stage {
    position: relative;
    aspect-ratio: 16 / 9;
    min-height: clamp(320px, 56vw, 640px);
    overflow: hidden;
    background: #0c1a2e;
}

.project-map__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.project-map__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

.project-map__zone {
    fill-opacity: 0.08;
    stroke-width: 0.35;
    stroke-opacity: 0.85;
    cursor: pointer;
    pointer-events: auto;
    transition:
        fill-opacity 0.28s ease,
        stroke-width 0.28s ease,
        filter 0.28s ease;
    filter: drop-shadow(0 0 0 transparent);
}

.project-map__zone:hover,
.project-map__zone.is-active,
.project-map__zone:focus-visible {
    fill-opacity: 0.28;
    stroke-width: 0.55;
    stroke-opacity: 1;
    filter: drop-shadow(0 0 8px currentColor);
}

.project-map__labels {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
}

.project-map__label {
    position: absolute;
    left: var(--label-x);
    top: var(--label-y);
    transform: translate(-50%, -100%);
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    pointer-events: auto;
    text-align: left;
    font-family: inherit;
    color: #fff;
    max-width: min(220px, 28vw);
}

.project-map__label-line {
    display: block;
    width: 1px;
    height: clamp(18px, 3vw, 32px);
    margin: 0 auto 0.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.95));
    box-shadow: 0 0 6px rgba(255, 255, 255, 0.35);
}

.project-map__label-text {
    display: block;
    padding: 0.35rem 0.5rem;
    background: rgba(8, 18, 32, 0.55);
    border-left: 2px solid var(--zone-color, #fff);
    backdrop-filter: blur(4px);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.65);
    transition: transform 0.22s ease, background-color 0.22s ease;
}

.project-map__label-text strong {
    display: block;
    font-size: clamp(0.62rem, 1.1vw, 0.78rem);
    font-weight: 800;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

.project-map__label-text em {
    display: block;
    margin-top: 0.12rem;
    font-size: clamp(0.55rem, 0.95vw, 0.68rem);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.04em;
    opacity: 0.92;
}

.project-map__label:hover .project-map__label-text,
.project-map__label.is-active .project-map__label-text {
    transform: translateY(-2px);
    background: rgba(8, 18, 32, 0.78);
}

.project-map__info {
    padding: clamp(1.2rem, 2.5vw, 1.8rem);
    background: linear-gradient(165deg, #0b294f 0%, #0a3558 100%);
    color: #eef8ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-left: 1px solid rgba(126, 224, 255, 0.15);
}

.project-map__info-hint {
    margin: 0 0 0.85rem;
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    color: rgba(238, 248, 255, 0.72);
}

.project-map__info-hint i {
    margin-right: 0.35rem;
    color: #7ee0ff;
}

.project-map__info-style {
    margin: 0 0 0.35rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #7ee0ff;
}

.project-map__info-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1rem, 1.8vw, 1.25rem);
    font-weight: 800;
    line-height: 1.35;
    letter-spacing: 0.04em;
}

.project-map__info-desc {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.7;
    color: rgba(238, 248, 255, 0.88);
}

.project-map--static .project-map__svg,
.project-map--static .project-map__labels {
    display: none;
}

.project-map--static .project-map {
    grid-template-columns: 1fr;
}

.project-map--static .project-map__info {
    border-left: none;
    border-top: 1px solid rgba(126, 224, 255, 0.15);
}

/* ===== Tổng quan — ảnh trái + chữ phải (thay hộp/bánh răng) ===== */
.project-location-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
    width: 100%;
    min-height: min(100vh, 820px);
    overflow: hidden;
    background: linear-gradient(135deg, #081a15 0%, #0f2e26 50%, #0a241e 100%);
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
    scroll-margin-top: 100px;
}

.project-location-split__map {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(1rem, 2.5vw, 2rem);
}

.project-location-split__map img {
    width: 100%;
    max-width: 920px;
    height: auto;
    display: block;
    border-radius: 4px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
    filter: saturate(0.9) brightness(0.94);
}

.project-location-split__copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem);
    border-left: 1px solid rgba(201, 169, 98, 0.15);
    color: #f5f0e6;
}

.project-location-split__title {
    margin: 0;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2rem, 4.2vw, 3rem);
    font-weight: 500;
    line-height: 1.05;
    color: #e8d4a0;
    letter-spacing: 0.02em;
}

.project-location-split__subtitle {
    margin: 0.5rem 0 1.25rem;
    font-size: clamp(0.9rem, 1.6vw, 1.05rem);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(245, 240, 230, 0.9);
}

.project-location-split__lead {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.75;
    color: rgba(245, 240, 230, 0.78);
    max-width: 38ch;
}

.project-location-split__back {
    margin-top: 1.5rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #c9a962;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
}

.project-location-split__back:hover {
    color: #fff;
}

@media (max-width: 1024px) {
    .project-location-split {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-location-split__copy {
        border-left: none;
        border-top: 1px solid rgba(201, 169, 98, 0.12);
    }
}

/* ===== Tổng quan dự án — hộp Legacy89 + bánh răng (không dùng) ===== */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.project-highlight,
.project-legacy-overview {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #060d0c;
    position: relative;
    box-shadow: 0 20px 44px rgba(0, 0, 0, 0.35);
    opacity: 1 !important;
    transform: none !important;
    visibility: visible !important;
}

.project-legacy-overview__gear-col {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background:
        radial-gradient(ellipse 70% 55% at 50% 42%, rgba(18, 72, 58, 0.45), transparent 70%),
        radial-gradient(circle at 20% 80%, rgba(212, 175, 55, 0.06), transparent 40%),
        linear-gradient(165deg, #040908 0%, #0a1614 45%, #061210 100%);
}

.project-legacy-overview__hint {
    margin: 0 0 1rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    color: rgba(212, 232, 220, 0.65);
    text-align: center;
    max-width: 320px;
}

.project-legacy-overview__hint i {
    color: #e8a84a;
    margin-right: 0.35rem;
}

/* --- Bánh răng --- */
.legacy-gear {
    position: relative;
    width: min(92vw, 440px);
    height: min(92vw, 440px);
    margin: 0 auto;
}

.legacy-gear__particles {
    position: absolute;
    inset: -8%;
    background-image: radial-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px);
    background-size: 28px 28px;
    opacity: 0.12;
    animation: legacyParticlesDrift 24s linear infinite;
    pointer-events: none;
}

@keyframes legacyParticlesDrift {
    from {
        transform: translateY(0);
    }
    to {
        transform: translateY(-28px);
    }
}

.legacy-gear__ring {
    position: absolute;
    inset: 8%;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background:
        radial-gradient(circle at 50% 50%, rgba(22, 28, 26, 0.2) 0%, rgba(8, 10, 9, 0.95) 68%),
        repeating-conic-gradient(
            from 0deg,
            rgba(255, 255, 255, 0.04) 0deg 4deg,
            transparent 4deg 14deg
        );
    box-shadow:
        inset 0 0 40px rgba(0, 0, 0, 0.65),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

.legacy-gear__glow {
    position: absolute;
    inset: 6%;
    border-radius: 50%;
    background: conic-gradient(
        from var(--glow-angle, 0deg),
        transparent 0deg,
        rgba(232, 122, 42, 0.55) 18deg,
        rgba(255, 180, 80, 0.35) 28deg,
        transparent 52deg
    );
    filter: blur(12px);
    opacity: 0.85;
    transition: opacity 0.35s ease;
    pointer-events: none;
    mix-blend-mode: screen;
}

.legacy-gear[data-active-index="0"] .legacy-gear__glow {
    opacity: 0.35;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(86, 200, 160, 0.35) 40deg,
        transparent 80deg
    );
}

.legacy-gear__beam {
    position: absolute;
    left: 50%;
    top: 22%;
    width: 2px;
    height: 0;
    margin-left: -1px;
    background: linear-gradient(180deg, rgba(255, 180, 90, 0.95), rgba(255, 180, 90, 0));
    box-shadow: 0 0 12px rgba(255, 160, 60, 0.8);
    opacity: 0;
    transform-origin: top center;
    transition: height 0.4s cubic-bezier(0.22, 0.84, 0.28, 1), opacity 0.3s ease;
    pointer-events: none;
    z-index: 4;
}

.legacy-gear__beam.is-visible {
    height: clamp(60px, 14vw, 90px);
    opacity: 1;
}

.legacy-gear__callout {
    position: absolute;
    left: 50%;
    top: 8%;
    transform: translateX(-50%);
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 168, 72, 0.55);
    background: rgba(12, 10, 8, 0.88);
    color: #ffd9a8;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap;
    z-index: 5;
    box-shadow: 0 0 20px rgba(232, 122, 42, 0.25);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.legacy-gear__nodes {
    position: absolute;
    inset: 0;
    z-index: 3;
}

.legacy-gear__node {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 52px;
    height: 52px;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-155px)
        rotate(calc(-1 * var(--node-angle)));
    transform-origin: center center;
    font-family: inherit;
    transition: transform 0.28s ease;
    z-index: 4;
}

.legacy-gear__node-dot {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #3a403d, #141816 70%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 -4px 8px rgba(0, 0, 0, 0.5),
        0 4px 12px rgba(0, 0, 0, 0.45);
    transition:
        box-shadow 0.28s ease,
        border-color 0.28s ease,
        transform 0.28s ease;
}

.legacy-gear__node-label {
    position: absolute;
    left: 50%;
    bottom: -1.35rem;
    transform: translateX(-50%);
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: rgba(220, 230, 225, 0.55);
    white-space: nowrap;
    pointer-events: none;
    transition: color 0.25s ease;
}

.legacy-gear__node:hover .legacy-gear__node-dot,
.legacy-gear__node.is-active .legacy-gear__node-dot {
    border-color: rgba(255, 168, 72, 0.75);
    box-shadow:
        0 0 0 2px rgba(232, 122, 42, 0.25),
        0 0 22px rgba(255, 140, 50, 0.45),
        inset 0 -2px 6px rgba(0, 0, 0, 0.4);
    transform: scale(1.08);
}

.legacy-gear__node.is-active .legacy-gear__node-label {
    color: #ffc98a;
}

/* --- Hộp trung tâm --- */
.legacy-gear__hub {
    position: absolute;
    left: 50%;
    top: 50%;
    z-index: 6;
    width: clamp(140px, 32vw, 180px);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transform: translate(-50%, -50%);
    font-family: inherit;
    color: #f0d78c;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.legacy-gear__hub:hover,
.legacy-gear__hub.is-active {
    transform: translate(-50%, -50%) scale(1.03);
    filter: drop-shadow(0 0 24px rgba(212, 175, 55, 0.35));
}

.legacy-box {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 0.72;
    perspective: 520px;
}

.legacy-box__lid {
    position: absolute;
    left: 6%;
    right: 6%;
    top: 0;
    height: 42%;
    background: linear-gradient(145deg, #1a6b55 0%, #0d4a3d 55%, #083528 100%);
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 4px 4px 2px 2px;
    transform-origin: bottom center;
    transform: rotateX(-58deg);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.35);
}

.legacy-gear__hub.is-active .legacy-box__lid {
    animation: legacyLidGlow 2.4s ease-in-out infinite alternate;
}

@keyframes legacyLidGlow {
    from {
        box-shadow: 0 -8px 20px rgba(0, 0, 0, 0.35), 0 0 12px rgba(86, 200, 160, 0.15);
    }
    to {
        box-shadow: 0 -8px 28px rgba(0, 0, 0, 0.4), 0 0 28px rgba(212, 175, 55, 0.28);
    }
}

.legacy-box__base {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 68%;
    background: linear-gradient(180deg, #145a48 0%, #0a3d32 100%);
    border: 1px solid rgba(212, 175, 55, 0.4);
    border-radius: 2px 2px 6px 6px;
    box-shadow:
        inset 0 8px 24px rgba(0, 0, 0, 0.35),
        0 16px 32px rgba(0, 0, 0, 0.45);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.legacy-box__mark {
    width: 28px;
    height: 48px;
    border: 2px solid rgba(212, 175, 55, 0.85);
    border-radius: 50%;
    margin-bottom: 0.35rem;
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.35);
}

.legacy-box__name {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(0.95rem, 2.2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.14em;
    color: #e8c96a;
    text-shadow: 0 0 18px rgba(232, 200, 100, 0.45);
}

.legacy-box__mist {
    position: absolute;
    left: 10%;
    right: 10%;
    bottom: 18%;
    height: 35%;
    background: radial-gradient(ellipse at 50% 100%, rgba(255, 255, 255, 0.22), transparent 70%);
    pointer-events: none;
}

.legacy-gear__hub-label {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: rgba(232, 200, 140, 0.85);
}

/* --- Panel phải --- */
.project-legacy-panel.is-updating .project-highlight__intro,
.project-legacy-panel.is-updating .project-legacy-panel__facts {
    animation: legacyPanelReveal 0.45s cubic-bezier(0.22, 0.84, 0.28, 1) both;
}

@keyframes legacyPanelReveal {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.project-legacy-panel__callout {
    margin: 0 0 0.5rem;
    padding: 0.35rem 0.65rem;
    width: fit-content;
    border-radius: 6px;
    border: 1px solid rgba(255, 200, 120, 0.45);
    background: rgba(0, 0, 0, 0.2);
    color: #ffe0b0;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-legacy-panel__facts {
    border-top: 1px solid rgba(206, 255, 244, 0.32);
    margin-top: 0.35rem;
}

.project-legacy-fact-row {
    animation: legacyPanelReveal 0.4s ease both;
}

.project-highlight__media {
    display: none;
}

.project-highlight::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 1px;
    background: rgba(173, 255, 235, 0.2);
    z-index: 4;
}

.project-highlight__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 15%, rgba(174, 255, 235, 0.12), transparent 45%),
        linear-gradient(170deg, rgba(6, 44, 43, 0.24) 0%, rgba(6, 44, 43, 0.38) 100%);
    z-index: 1;
}

.project-highlight__media img {
    display: none;
}

.project-highlight__media-text {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: #e8fff8;
    text-align: center;
    text-shadow: 0 4px 18px rgba(4, 31, 29, 0.36);
}

.project-highlight__media-text p {
    margin: 0 0 0.5rem;
    letter-spacing: 0.12em;
    font-size: clamp(0.95rem, 1.4vw, 1.35rem);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 600;
}

.project-highlight__media-text h2 {
    font-size: clamp(2.3rem, 4.8vw, 4.15rem);
    line-height: 1;
    font-weight: 700;
    letter-spacing: 0.02em;
    animation: glowTitle 2.8s ease-in-out infinite alternate;
}

@keyframes glowTitle {
    from {
        text-shadow: 0 4px 18px rgba(4, 31, 29, 0.36);
    }
    to {
        text-shadow: 0 6px 24px rgba(178, 255, 238, 0.32);
    }
}

.project-highlight__info {
    background:
        radial-gradient(circle at 18% 8%, rgba(132, 255, 226, 0.18) 0%, rgba(132, 255, 226, 0) 36%),
        linear-gradient(140deg, #188a7f 0%, #126f67 45%, #0d5852 100%);
    color: #eaf6ff;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    position: relative;
    z-index: 1;
    padding: clamp(1.2rem, 2.6vw, 2.2rem) clamp(1.2rem, 3vw, 2.6rem);
}

.project-highlight__info .project-highlight__eyebrow {
    font-size: 0.74rem;
    letter-spacing: 2.5px;
    color: #c3fff0;
    margin-bottom: 0.5rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-highlight__info h2 {
    font-size: clamp(1.35rem, 2.6vw, 2.1rem);
    line-height: 1.22;
    margin-bottom: 0.65rem;
    color: #ffffff;
    font-weight: 700;
}

.project-highlight__intro {
    color: rgba(234, 246, 255, 0.95);
    line-height: 1.62;
    margin-bottom: 1.1rem;
    font-size: 0.94rem;
}

.project-facts {
    border-top: 1px solid rgba(206, 255, 244, 0.32);
    margin-top: 0.1rem;
}

.project-fact-row {
    display: grid;
    grid-template-columns: minmax(128px, 34%) 1fr;
    gap: 1rem;
    padding: 0.72rem 0;
    border-bottom: 1px solid rgba(206, 255, 244, 0.2);
}

.project-fact-label {
    color: #dbfff5;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.35px;
    font-size: 0.86rem;
    position: relative;
    padding-left: 1rem;
}

.project-fact-label::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #7effda;
}

.project-fact-value {
    color: #ffffff;
    text-align: left;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
}

.project-back-link {
    margin-top: 1rem;
    width: fit-content;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: #cefff2;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
}

.project-back-link:hover {
    color: #fff;
}

/* ===== Kham pha du an ===== */
.project-gallery {
    position: relative;
    background: #ffffff;
    padding: clamp(1.6rem, 3.2vw, 2.8rem) 0 clamp(2rem, 4vw, 3rem);
    animation: softRiseIn 0.7s ease-out both;
    animation-delay: 0.08s;
    margin-top: -1px;
}

.project-gallery::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: clamp(44px, 7vh, 70px);
    background: linear-gradient(180deg, rgba(13, 88, 82, 0.22) 0%, rgba(13, 88, 82, 0.04) 55%, rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
}

.project-gallery__inner {
    width: min(96%, 1320px);
    margin: 0 auto;
}

.project-gallery__subtitle {
    margin: 0 0 0.35rem;
    text-align: center;
    color: #3f6b92;
    font-size: clamp(0.75rem, 0.95vw, 0.86rem);
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.project-gallery__title {
    margin: 0 0 clamp(1.05rem, 2.2vw, 1.6rem);
    text-align: center;
    color: #243b55;
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.95rem, 4vw, 3.3rem);
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.08;
    position: relative;
}

.project-gallery__title::after {
    content: "";
    display: block;
    width: clamp(92px, 12vw, 148px);
    height: 4px;
    margin: 0.65rem auto 0;
    border-radius: 999px;
    background: linear-gradient(90deg, #0d4b80, #2b79b9);
}

.project-gallery__tabs {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
    margin-bottom: clamp(1rem, 2vw, 1.4rem);
}

.project-gallery__tab {
    border: 1px solid rgba(13, 75, 128, 0.28);
    background: #1b5f98;
    color: #ffffff;
    padding: 0.78rem 0.35rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

.project-gallery__tab:hover {
    transform: translateY(-1px);
}

.project-gallery__tab.is-active {
    border-color: #f1a43d;
    background: linear-gradient(90deg, #e2832f 0%, #f1a43d 52%, #f6bc58 100%);
    color: #ffffff;
    box-shadow:
        inset 0 0 0 1px rgba(255, 214, 143, 0.45),
        0 0 0 1px rgba(242, 154, 52, 0.28),
        0 10px 22px rgba(229, 131, 47, 0.34);
    transform: translateY(-1px);
    animation: activeTabGlow 1.8s ease-in-out infinite alternate;
}

@keyframes activeTabGlow {
    from {
        box-shadow:
            inset 0 0 0 1px rgba(255, 214, 143, 0.38),
            0 0 0 1px rgba(242, 154, 52, 0.2),
            0 8px 18px rgba(229, 131, 47, 0.26);
    }
    to {
        box-shadow:
            inset 0 0 0 1px rgba(255, 228, 175, 0.6),
            0 0 0 1px rgba(242, 154, 52, 0.38),
            0 12px 26px rgba(229, 131, 47, 0.46),
            0 0 16px rgba(246, 188, 88, 0.34);
    }
}

.project-gallery__layout {
    display: grid;
    grid-template-columns: minmax(0, 2.25fr) minmax(220px, 0.75fr);
    gap: 1rem;
}

.project-gallery__main {
    min-height: clamp(280px, 38vw, 520px);
    overflow: hidden;
    background: #d8e7f5;
}

.project-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.28s ease, transform 0.35s ease;
}

.project-gallery__main:hover img {
    transform: scale(1.03);
}

.project-gallery__albums {
    max-height: clamp(280px, 38vw, 520px);
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 0.3rem;
    display: grid;
    gap: 0.9rem;
    scrollbar-width: thin;
    scrollbar-color: rgba(13, 75, 128, 0.88) rgba(13, 75, 128, 0.12);
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.project-gallery__albums::-webkit-scrollbar {
    width: 8px;
}

.project-gallery__albums::-webkit-scrollbar-track {
    background: rgba(13, 75, 128, 0.12);
    border-radius: 8px;
}

.project-gallery__albums::-webkit-scrollbar-thumb {
    background: rgba(13, 75, 128, 0.88);
    border-radius: 8px;
}

.project-gallery__album {
    position: relative;
    display: block;
    min-height: 110px;
    overflow: hidden;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.project-gallery__album:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(10, 63, 110, 0.2);
}

.project-gallery__album::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(10, 63, 110, 0.68), rgba(10, 63, 110, 0.34));
    z-index: 1;
}

.project-gallery__album img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.project-gallery__album:hover img {
    transform: scale(1.06);
}

.project-gallery__album span {
    position: absolute;
    left: 0.8rem;
    bottom: 0.75rem;
    z-index: 2;
    color: #ffffff;
    font-size: 0.78rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.project-gallery__btn {
    margin: clamp(1.2rem, 2.4vw, 1.8rem) auto 0;
    display: flex;
    width: min(100%, 330px);
    text-align: center;
    justify-content: center;
    margin-left: auto;
    margin-right: auto;
}

@keyframes softRiseIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.project-gallery__main.is-switching img {
    opacity: 0;
    transform: scale(1.015);
}

.project-gallery__albums.is-switching .project-gallery__album {
    opacity: 0;
    transform: translateY(6px);
}

@media (max-width: 1024px) {
    .project-detail-main::before {
        height: 36px;
    }

    .project-highlight,
    .project-legacy-overview {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .project-legacy-overview__gear-col {
        min-height: auto;
        padding-bottom: 0.5rem;
    }

    .legacy-gear__node {
        transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-120px)
            rotate(calc(-1 * var(--node-angle)));
    }

    .project-gallery__tabs {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .project-gallery__layout {
        grid-template-columns: 1fr;
    }

    .project-gallery__albums {
        max-height: 380px;
        overflow: auto;
        grid-template-columns: 1fr;
    }

}

@media (max-width: 768px) {
    .project-inspiration__title-row {
        display: flex;
        flex-wrap: wrap;
        gap: 0.25rem 0.45rem;
    }

    .project-map {
        grid-template-columns: 1fr;
        max-height: none;
    }

    .project-map__stage {
        min-height: 52vw;
    }

    .project-map__info {
        border-left: none;
        border-top: 1px solid rgba(126, 224, 255, 0.15);
    }

    .project-map__label {
        max-width: 42vw;
    }

    .project-gallery__tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.6rem;
    }

    .project-gallery__tab {
        font-size: 0.72rem;
        padding: 0.7rem 0.3rem;
    }

    .project-gallery__albums {
        max-height: 420px;
    }
}

@media (max-width: 640px) {
    .project-fact-row {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .legacy-gear {
        width: min(88vw, 360px);
        height: min(88vw, 360px);
    }

    .legacy-gear__node {
        width: 44px;
        height: 44px;
        transform: translate(-50%, -50%) rotate(var(--node-angle)) translateY(-100px)
            rotate(calc(-1 * var(--node-angle)));
    }

    .legacy-gear__node-label {
        font-size: 0.5rem;
    }
}
