@font-face {
    font-family: 'SVN-INSTRUMENTSERIF';
    src: url('font/SVN-INSTRUMENTSERIF-REGULAR.OTF') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'SVN-INSTRUMENTSERIF';
    src: url('font/SVN-INSTRUMENTSERIF-ITALIC.OTF') format('opentype');
    font-weight: normal;
    font-style: italic;
}

@font-face {
    font-family: 'Px Grotesk VN';
    src: url('font/PxGroteskVN-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Px Grotesk Mono';
    src: url('font/PxGroteskMono-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --bg-color: #f8f8f8;
    --text-color: #222222;
    --accent-color: #C1C1C1;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Px Grotesk VN', sans-serif;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

h1,
h2 {
    font-weight: normal;
}

/* Texture Overlay */
body::after {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("https://www.transparenttextures.com/patterns/asfalt-dark.png");
    opacity: 0.03;
    pointer-events: none;
    z-index: 90;
    /* Below the landing gate but above content */
}

#three-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 50;
    /* Above intro text so photos zoom over the text */
}

/* Landing Gate Interaction */
#landing-gate {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    /* Highest priority */
    background-color: transparent;
    pointer-events: none;
    /* Don't block the editorial layout */
    mix-blend-mode: difference;
    /* Move blend to container */
}

.action-btn-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    /* Đảm bảo ô vuông luôn ở giữa wrapper */
    align-items: center;
    pointer-events: auto;
    cursor: pointer;
    min-width: 44px;
    min-height: 44px;
}

.square-trigger {
    width: 20px;
    height: 20px;
    border: 1px solid #ffffff;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
}

.square-trigger::after {
    content: "";
    position: absolute;
    width: 10px;
    height: 10px;
    background-color: #ffffff;
    opacity: 0;
    transform: scale(0);
    transition: transform 0.4s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.3s ease;
}

.action-btn-wrapper:hover .square-trigger,
.action-btn-wrapper.is-hovered .square-trigger {
    transform: rotate(-90deg);
}

.action-btn-wrapper:hover .square-trigger::after,
.action-btn-wrapper.is-hovered .square-trigger::after {
    opacity: 1;
    transform: scale(1);
}

.discover-text {
    position: absolute;
    left: 100%;
    /* Bắt đầu từ mép phải của wrapper */
    margin-left: 4px;
    /* Tightest possible gap (4px) */
    white-space: nowrap;
    color: #ffffff;
    mix-blend-mode: difference;
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.65rem;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(10px);
    /* Initial offset down */
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    pointer-events: none;
}

.action-btn-wrapper:hover .discover-text,
.action-btn-wrapper.is-hovered .discover-text {
    opacity: 1;
    transform: translateY(0);
    /* Animate to center */
}

/* Scene 4: Layout */
.editorial-layout {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    /* Balanced editorial grid */
    width: 92vw;
    height: 100vh;
    left: 50%;
    transform: translateX(-50%);
    padding: 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    z-index: 500;
    pointer-events: auto;
    --stroke-v: 0;
}

.content-middle {
    --stroke-v: 0;
}

.sapo-block {
    --stroke-h: 0;
}

/* Base Stroke style for animation using CSS variables */
.editorial-layout::before,
.editorial-layout::after,
.content-middle::before,
.content-middle::after,
.sapo-block::after {
    content: "";
    position: absolute;
    background-color: #C1C1C1;
    /* Medium gray stroke */
    transition: none;
    z-index: 5;
}

.editorial-layout::before,
.editorial-layout::after,
.content-middle::before,
.content-middle::after {
    transform: scaleY(var(--stroke-v));
    width: 1px;
    /* Exactly 1px */
    height: 100vh;
    transform-origin: top;
}

.sapo-block::after {
    transform: scaleX(var(--stroke-h));
    width: 100%;
    height: 1px;
    /* Exactly 1px */
    transform-origin: left;
    bottom: 0;
    left: 0;
}

/* Specific Positions */
.editorial-layout::before {
    left: 0;
    top: 0;
}

.editorial-layout::after {
    right: 0;
    top: 0;
}

.content-left {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    padding: 6vh 4vw;
    pointer-events: auto;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.title-massive {
    font-family: 'SVN-INSTRUMENTSERIF', serif;
    font-size: clamp(2.2rem, 5.5vw, 8.2vh);
    /* Using vh to hard-limit height and prevent overlap with center */
    font-weight: normal;
    line-height: 0.85;
    letter-spacing: -0.01em;
    margin-bottom: 0;
    text-transform: uppercase;
}

.mid-group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    height: fit-content;
    z-index: 10;
    padding: 1.5rem 0;
    box-sizing: border-box;
}

.stroke-line {
    position: absolute;
    left: 0;
    width: 100%;
    height: 1px;
    background: #C1C1C1;
    /* Darker stroke to match vertical borders */
    transform: scaleX(0);
    transform-origin: left;
}

.stroke-line.top {
    top: 0;
}

.stroke-line.bottom {
    bottom: 0;
}

.content-right .mid-group {
    display: none;
    /* No longer used in V3 Right Column */
}

.top-group {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.top-group.credits-top {
    justify-content: center;
    border-bottom: 1px solid #d1d1d1;
    width: 100%;
    height: 14vh;
    min-height: 100px;
    padding: 0 4vw;
}

.bottom-group {
    height: 40vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.sapo-section-alt {
    padding: calc(6vh + 44px) 4vw 6vh 4vw;
}



/* Navigation Bar at the top of right column */
.nav-next-article {
    display: flex;
    /* Normal stacking */
    justify-content: space-between;
    align-items: stretch;
    border-bottom: 1px solid #d1d1d1;
    width: 100%;
    height: 14vh;
    min-height: 100px;
    z-index: 120;
    background: var(--bg-color);
}

.nav-text {
    font-family: 'Px Grotesk Mono', monospace;
    font-size: 0.7rem;
    /* Unified size */
    letter-spacing: 0.1em;
    line-height: 1.25;
    padding: 2rem 2.5vw;
    /* Consistent gap */
    text-transform: uppercase;
    display: flex;
    align-items: center;
    color: var(--text-color);
}

.nav-arrows {
    display: flex;
    height: 100%;
}

.nav-arrow {
    aspect-ratio: 1 / 1;
    height: 100%;
    background: #222222;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 1.4rem;
    cursor: pointer;
    transition: background 0.3s ease;
    pointer-events: auto !important;
    /* Force clickability */
}

.nav-arrow:hover {
    background: #000000;
}

.nav-arrow.left {
    border-right: 1px solid #000000;
}

.nav-arrow.hidden {
    opacity: 0;
    pointer-events: none;
    /* width:0 removed — GSAP handles positional animation */
}

/* Shared Nav Layout Support */
.shared-nav {
    position: fixed !important;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 92vw;
    height: 100vh;
    pointer-events: none;
    z-index: 2000;
    /* Ensure it's above absolute editorial layouts */
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    opacity: 1 !important;
    visibility: visible !important;
}

.shared-nav .nav-next-article {
    pointer-events: auto;
    background: var(--bg-color);
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
}

.shared-nav .content-left,
.shared-nav .content-middle {
    pointer-events: none;
}

.shared-nav .content-right {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    pointer-events: none;
    position: relative;
    height: 100%;
}

/* V3 Layout Rules (Consolidated) */
.layout-v3 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    /* Total removal of general column padding */
    overflow: hidden;
    position: relative;
}

.v3-top h1,
.v3-bottom h1,
.title-massive {
    font-size: clamp(3.5rem, 6.5vw, 6rem);
    /* Larger, more impactful font */
    line-height: 1.0;
    /* 100% as requested */
    letter-spacing: -0.04em;
    /* -4% as requested */
    margin: 0;
    /* Clear default margins */
}

.v3-top {
    height: 50vh !important;
    /* Forces the Metadata line below it to start at the vertical center */
    flex-grow: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.v3-top h1 {
    padding: calc(6vh + 44px) 2.5vw 0 2.5vw;
    /* Slightly increased top gap + 44px */
}

.v3-bottom {
    flex-grow: 1;
    /* Take all space between mid-group and footer */
    display: flex;
    flex-direction: column;
}

.v3-bottom h1 {
    margin-top: auto;
    padding: 0 2.5vw 0 2.5vw;
    /* Bottom padding removed as requested */
}

.v3-meta {
    justify-content: space-between;
    display: flex;
    width: 100%;
    padding: 0 2.5vw;
}

.v3-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #C1C1C1;
    width: 100%;
    height: 85px;
    min-height: 0;
    padding: 0 2.5vw;
    flex-shrink: 0;
    margin-top: auto;
    font-family: 'Px Grotesk Mono', monospace;
}

.v3-footer *,
.nav-next-article.down-bar * {
    font-family: 'Px Grotesk Mono', monospace !important;
}

#editorial-right-v3 {
    height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.nav-next-article.down-bar {
    position: relative;
    top: auto;
    border-bottom: none;
    border-top: 1px solid #C1C1C1;
    /* Consistent stroke */
    flex-shrink: 0;
    width: 100%;
    height: 85px;
    min-height: 0;
    /* Reset base 100px min-height */
    z-index: 120;
    background: var(--bg-color);
    font-family: 'Px Grotesk Mono', monospace;
}

.v3-scroll {
    flex-grow: 1;
    overflow: hidden;
    height: 100%;
    position: relative;
    width: 100%;
    outline: none;
}

.v3-sapo {
    padding: calc(6vh + 44px) 2.5vw 4vh 2.5vw;
    /* Match increased 6vh + 44px gap */
}

.v3-sapo .text-block {
    font-size: 1.0625rem;
    /* 17px */
    line-height: 1.35;
    /* 135% as requested */
    letter-spacing: -0.02em;
    /* -2% */
    font-weight: bold;
    /* Bold sapo as requested */
    color: #222222;
}

.v3-body {
    padding: 2vh 2.5vw 2vh 2.5vw;
}

.content-body-text.v3-body p {
    font-size: 1.0625rem;
    /* 17px matched to sapo size */
    line-height: 1.35;
    /* 135% as requested */
    letter-spacing: -0.02em;
    /* -2% letter spacing */
    margin-bottom: 2rem;
    color: #333;
}

.v3-video {
    width: 100%;
    padding: 0 2.5vw;
    /* Restored alignment with text */
    margin: 2vh 0;
    /* Vertical separation from text */
}

.v3-video iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    display: block;
}

.dummy-video-black {
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: #222222;
}

.meta-inline {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.7rem;
    /* Universal meta size */
    text-transform: uppercase;
    color: var(--text-color);
    white-space: nowrap;
}

.meta-inline .num {
    font-weight: bold;
    margin: 0 0.5rem;
}

/* Scene 1: Intro Overlay */
.intro-text-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 0.8rem;
    /* Tighter gap for smaller text */
    z-index: 10;
    /* Below the photo canvas so images can zoom over text */
    pointer-events: none;
    text-align: center;
    background: transparent;
    text-transform: uppercase;
}

.intro-top,
.intro-bottom {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    opacity: 0;
    color: #222222;
    /* Pure black for maximum contrast during intro */
}

.intro-top .title-massive,
.intro-bottom .title-massive {
    text-align: center;
    margin: 0;
    line-height: 1.0;
    /* 100% */
    font-size: clamp(1.2rem, 2.5vw, 2.5rem);
    letter-spacing: -0.04em;
    /* -4% as requested */
}

.content-left.listing-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 2.5vw;
    /* Synced with Scene 4 */
    position: relative;
    overflow: hidden;
}

.list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Push number to the right */
    position: absolute;
    left: 0;
    width: 100%;
    padding: 0 2.5vw;
    /* Synced with Scene 4 */
    /* Unified padding for perfect symmetry */
    top: 50%;
}

.brand-title {
    font-family: 'SVN-INSTRUMENTSERIF', serif;
    font-size: clamp(1.5rem, 4.2vw, 5rem);
    font-weight: normal;
    text-transform: none;
    line-height: 1.0;
    /* 100% as requested */
    letter-spacing: -0.04em;
    /* -4% as requested */
    transition: color 0.6s ease;
}

.brand-title .inner {
    display: inline-block;
}

.address-item .inner {
    letter-spacing: 0.02em;
    display: inline-block;
}

.list-item.greyed .brand-title {
    color: #d1d1d1;
}

.list-item.active .brand-title {
    color: var(--text-color);
}

.number {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.75rem;
    color: #999;
}

.list-item.active .number {
    color: var(--text-color);
    transition: color 0.6s ease;
}

.bottom-group {
    margin-top: auto;
}

.bottom-group .title-massive {
    margin-bottom: 2rem;
}

.meta-info {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.7rem;
    /* Unified size */
    font-weight: normal;
    text-transform: uppercase;
    letter-spacing: 0.0em;
    line-height: 1.5;
    padding-top: 1rem;
    width: fit-content;
}

.content-middle {
    height: 100vh;
    width: 100%;
    position: relative;
    pointer-events: none;
    /* Let events pass to canvas */
}

/* Inner Left/Right Stroke positions */
.content-middle::before {
    left: 0;
    top: 0;
}

.content-middle::after {
    right: 0;
    top: 0;
}


.v3-scroll::-webkit-scrollbar {
    display: none;
}

.content-right.listing-mode {
    display: flex;
    flex-direction: column;
    justify-content: center;
    /* gap: 12vh; REMOVED */
    padding: 0 2.5vw;
    /* Synced with Scene 4 */
    overflow: hidden;
    position: relative;
}

.listing-mode-layout {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 50;
}

.address-item {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.75rem;
    line-height: 1.0;
    /* 100% as requested */
    letter-spacing: -0.04em;
    /* Match Scene 4's -4% tracking */
    width: 100%;
    position: absolute;
    right: 0;
    padding: 0 2.5vw;
    /* Synced with Scene 4 */
    top: 50%;
    text-align: right;
    transition: color 0.6s ease;
}

.address-item.greyed {
    color: #d1d1d1;
}

.address-item.active {
    color: var(--text-color);
    font-weight: 500;
}

.content-left .bottom-group {
    display: flex;
    justify-content: flex-start;
}

.content-left .meta-info {
    text-align: left;
    padding-top: 0;
}

.content-right .bottom-group {
    display: flex;
    justify-content: flex-end;
}

.sapo-block .text-block {
    text-align: right;
    max-width: 45ch;
    margin-left: auto;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #222222;
}

/* Enhanced Right Column Content */
.content-right .editorial-scroll-container {
    padding: 0;
    gap: 0;
}


.content-body-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 2rem;
    color: #333;
}

.iframe-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    background-color: #222222;
}

.iframe-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- Scene 6: Detail Popup --- */
.detail-popup {
    position: fixed;
    top: 100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--bg-color);
    /* Uniform background */
    z-index: 200;
    overflow-y: auto;
    overflow-x: hidden;
    /* Hide scrollbar while keeping scroll functionality */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
}

.detail-popup::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

.detail-popup.active {
    top: 0;
}

.close-btn {
    position: fixed;
    top: 44px;
    right: 0;
    width: 48px;
    height: 48px;
    background: #222222;
    color: #ffffff;
    display: flex;
    opacity: 0;
    pointer-events: none;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 501;
    transition: background 0.3s ease;
}

.close-btn:hover {
    background: #333333;
}

.popup-scroll-container {
    width: 100%;
    min-height: fit-content;
}

.popup-hero {
    width: 100%;
    height: 100vh;
    margin: 0;
    overflow: hidden;
    position: relative;
    /* Allow absolute positioning for indicators */
}

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

/* Hero Specific Indicators - Original White Version */
.popup-shop-indicator-list-hero {
    position: absolute;
    top: 76vh;
    right: 6.5vw;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.8rem;
    z-index: 50;
    pointer-events: auto;
    color: #fff;
    font-family: 'Px Grotesk Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    min-width: 200px;
}

.popup-shop-indicator-list-hero .indicator-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 2rem;
    opacity: 0.6;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.popup-shop-indicator-list-hero .indicator-item:hover,
.popup-shop-indicator-list-hero .indicator-item.active {
    opacity: 1;
}

.popup-shop-indicator-list-hero .indicator-box {
    width: 12px;
    height: 12px;
    border: 1px solid #fff;
    flex-shrink: 0;
    background: transparent;
    transition: background 0.3s ease;
}

.popup-shop-indicator-list-hero .indicator-item:hover .indicator-box,
.popup-shop-indicator-list-hero .indicator-item.active .indicator-box {
    background: #fff;
}

.popup-grid {
    display: grid;
    grid-template-columns: 0.95fr 1.1fr 0.95fr;
    width: 92vw;
    margin: 0 auto;
    padding-top: 0;
    /* Creates inner spacing so borders connect at hero level */
    position: relative;
    gap: 0;
    /* All 4 borders start at hero boundary */
    border: 1px solid #C1C1C1;
}

/* Vertical strokes inside the grid - full height */
.popup-grid::before,
.popup-grid::after {
    content: "";
    position: absolute;
    top: 0;
    /* Start at grid top = hero boundary (padding handles the gap inside) */
    bottom: 0;
    width: 1px;
    background: #C1C1C1;
    pointer-events: none;
    z-index: 20;
    /* Above all content */
}

.popup-grid::before {
    left: calc(100% * 0.95 / 3.0);
}

.popup-grid::after {
    left: calc(100% * (0.95 + 1.1) / 3.0);
}

.popup-middle {
    padding: 0;
    padding-top: 6vh;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    /* Reaches the bottom of screen */
    z-index: 10;
}

.popup-middle .brand-title {
    padding: 0 2.5vw 1rem 2.5vw;
    font-family: 'SVN-INSTRUMENTSERIF', serif;
    font-size: clamp(2.5rem, 5.5vw, 6rem);
    text-transform: none;
    line-height: 0.85;
    letter-spacing: -0.03em;
    color: #fff;
    position: relative;
    z-index: 1000;
}

#popup-meta {
    padding: 2.5rem 2.5vw;
    display: flex;
    flex-direction: column;
    gap: .2rem;
    border-top: 1px solid #C1C1C1;
    margin-top: 2vw;
}

.meta-row {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 1rem;
    align-items: baseline;
}

.meta-row .label {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 0.85rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
    color: #222222;
    opacity: 1;
}

.meta-row .value {
    font-family: 'Px Grotesk VN', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    text-transform: none;
    line-height: 1.4;
    color: #222222;
}

/* Footer in Popup Middle Column (Design Refinement) */
.popup-middle-footer {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 2rem;
    letter-spacing: 0.05em;
    /* Slightly larger gap to separate columns clearly */
    padding: 0 2.5vw 6vh 2.5vw;
    margin-top: auto;
    /* Push to bottom of sticky column */
}

.popup-middle-footer .footer-col {
    font-family: 'Px Grotesk Mono', monospace;
    font-size: 0.7rem;
    color: #888;
    line-height: 1.2;
    text-transform: uppercase;
}


/* --- Popup Carousel Styling --- */
.popup-carousel {
    position: relative;
    width: 100%;
    margin: 2.5vh 0;
    overflow: hidden;
    aspect-ratio: 760 / 508; /* Set to user requested ratio */
}

.carousel-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.carousel-img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Hover-reveal circular nav buttons */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.2s ease, transform 0.3s ease;
    z-index: 10;
}

.popup-carousel:hover .carousel-nav {
    opacity: 1;
}

.carousel-nav.prev {
    left: 20px;
}

.carousel-nav.next {
    right: 20px;
}

/* Indicator dots BELOW the image */
.carousel-indicators {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 24px 0;
    width: 100%;
    z-index: 5;
    background: #f8f8f8;
    /* Explicitly set to match column background */
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.carousel-dot.active {
    background: #222222;
    transform: scale(1.3);
}

/* Ensure the main container doesn't cut off indicators */
.popup-carousel {
    position: relative;
    width: 100%;
    margin: 2.5vh 0;
    overflow: visible;
    /* Allow dots and navs to handle their own bounds if needed */
}

/* Create a separate wrapper for the track to keep navs internal but dots external */
.carousel-viewport {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 760 / 508; /* Set to user requested ratio */
}

.popup-navigator-block {
    position: absolute;
    /* Overlay on top of image */
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background: var(--bg-color);
    /* Match background */
    border-top: 1px solid #C1C1C1;
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    opacity: 1;
    /* Stay opaque */
    transform: translateY(100%);
    /* Slides down below the frame */
    pointer-events: none;
    /* Disable until visible */
    z-index: 20;
    /* Keep above image */
}

.popup-navigator-block .nav-text {
    font-family: 'Px Grotesk Mono', monospace !important;
    font-size: 0.7rem;
    /* Unified size */
    padding: 0 2.5vw;
    /* Restore standard padding */
    color: #222222;
    letter-spacing: 0.1em;
    line-height: 1.25;
    display: flex;
    align-items: center;
}

.popup-navigator-block .nav-arrow {
    background: #222222;
    color: #fff;
    transition: background 0.3s ease;
}

.popup-navigator-block .nav-arrow:hover {
    background: #000000;
}

.popup-navigator-block .nav-arrow.left {
    border-right: 1px solid #000000;
}

.popup-left {
    padding: 0;
    position: sticky;
    top: 44px;
    height: calc(100vh - 44px);
    background: var(--bg-color);
    z-index: 5;
    overflow: hidden;
    /* Important for absolute children */
    display: block;
}

.popup-left img {
    position: absolute;
    /* Full column coverage */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 10;
}

.popup-right {
    padding: calc(6vh + 44px) 2.5vw 2.5vw 2.5vw;
    /* Added 44px to the existing 6vh layout pulse */
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    /* Reduced gap */
}

.popup-description {
    font-family: 'Px Grotesk VN', sans-serif;
    font-size: 1.0625rem;
    line-height: 1.4;
    color: #333;
    margin-bottom: 1.5rem;
}

.popup-gallery {
    width: 100%;
    margin: 1rem 0;
}

.popup-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* Mobile Responsiveness for V3 */
/* High-res Screen & Laptop Scaling (Macbook 14" default 1512px and below) */
@media (max-width: 1512px) {

    .v3-top h1,
    .v3-bottom h1,
    .title-massive {
        font-size: clamp(2.2rem, 4.8vw, 4.8rem);
        letter-spacing: -0.03em;
    }

    .popup-middle .brand-title {
        font-size: clamp(2rem, 4.5vw, 4.8rem);
    }

    .v3-sapo .text-block,
    .content-body-text.v3-body p,
    .popup-description {
        font-size: 1rem;
        /* 16px */
    }
}

@media (max-width: 1024px) {
    .editorial-layout {
        grid-template-columns: 1fr;
        height: auto;
        display: block;
        padding: 0;
        width: 100vw;
        left: 0;
        transform: none;
        overflow-y: auto;
    }

    .content-left.layout-v3 {
        height: auto;
        min-height: 100vh;
        border-right: none;
    }

    #editorial-right-v3 {
        border-left: none;
        height: auto;
    }

    .v3-scroll {
        height: auto;
        overflow: visible;
    }

    .v3-top h1,
    .v3-bottom h1 {
        font-size: 3.5rem;
    }

    .nav-next-article.down-bar {
        position: static;
        height: auto;
        min-height: 80px;
    }
}

/* Accessibility: Support reduced motion */
@media (prefers-reduced-motion: reduce) {

    *,
    ::before,
    ::after {
        animation-duration: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}

/* Scene 3: Scroll to explore Scene 4 (Detailed Popup) */
.v3-explore-cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2vh 0 20vh 0;
    /* Tight top padding, 20vh bottom buffer */
    text-align: center;
    color: var(--text-color);
}

.cta-text {
    font-family: 'Px Grotesk Mono', monospace;
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    opacity: 0.7;
    margin-bottom: 1.2rem;
    /* Reduced from 2rem */
}

.cta-arrow {
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0.7;
    transition: transform 0.3s;
    animation: floatArrow 1.5s ease-in-out infinite;
}

.cta-arrow svg {
    display: block;
    width: 20px;
    height: 20px;
}

@keyframes floatArrow {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(8px);
    }
}

/* Scroll Progress Bar for Transitions */
#scroll-progress-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: #000000;
    z-index: 9999;
    pointer-events: none;
    transition: opacity 0.3s ease;
    opacity: 0;
}