/* ============================================
   VISUAL HARMONICS - PRESENTATION STYLES
   Combines carousel-ver3, timeline-ver1, timeline-ver2
   ============================================ */

/* --- RESET & BASE --- */
:root {
    --bg-color: #ffffff;
    --text-main: #000000;
    --text-muted: #777777;
    --line-color: #111111;
}

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    font-family: "Helvetica Neue", Inter, Roboto, Arial, sans-serif;
    color: var(--text-main);
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
}

/* --- PROGRESS BAR (top dots) --- */
.progress-bar {
    position: fixed;
    top: 4vh;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 100;
}

.progress-dot {
    width: 8px;
    height: 8px;
    background-color: #ccc;
    border-radius: 50%;
    transition: background-color 0.4s ease, transform 0.3s ease;
}

.progress-dot.active {
    background-color: var(--text-main);
    transform: scale(1.3);
}

/* --- PAGE SYSTEM --- */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1;
}

.page.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 10;
}

.page.exiting {
    opacity: 0;
    z-index: 5;
}

/* ============================================
   CAROUSEL STYLE (from carousel-ver3)
   Pages: Title, Context, Precedents, Design Statement, Next Steps
   ============================================ */

.carousel-container {
    position: relative;
    width: 100vw;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Huge overlapping title */
.huge-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1);
    font-size: clamp(4rem, 12vw, 18rem);
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.05em;
    line-height: 0.85;
    text-align: center;
    color: var(--text-main);
    text-shadow:
        -2px -2px 0 var(--bg-color),
         2px -2px 0 var(--bg-color),
        -2px  2px 0 var(--bg-color),
         2px  2px 0 var(--bg-color);
    white-space: pre-line;
    z-index: 5;
    user-select: none;
    transition: all 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.huge-title.faded {
    color: rgba(0, 0, 0, 0.04);
    text-shadow: none;
    transform: translate(-50%, -50%) scale(1.3);
    z-index: 0;
}

/* Central image */
.image-wrapper {
    position: relative;
    z-index: 1;
    width: 35vw;
    min-width: 300px;
    height: 60vh;
    overflow: hidden;
    background: #111;
    opacity: 0.85;
    transition: transform 1s cubic-bezier(0.77, 0, 0.175, 1);
}

.image-wrapper.shifted {
    transform: translateX(20vw);
}

.carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: clip-path 0.8s cubic-bezier(0.77, 0, 0.175, 1), filter 0.5s ease;
}

/* Media placeholder (black until loaded) */
.media-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
}

.media-placeholder img,
.media-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease;
}

/* Image cycler — replaces video-placeholder for image-based slots */
.img-cycler {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

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

.cycler-cover {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #000;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

/* ---- Inline video elements (proto + timeline-v visuals) ---- */
.proto-video,
.tv-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    display: block;
    position: relative;
    z-index: 0;
    transition: filter 0.5s ease;
}

.media-placeholder img.loaded,
.media-placeholder video.loaded {
    opacity: 1;
}

/* Statement content (left text block) */
.statement-content {
    position: absolute;
    left: 8vw;
    top: 50%;
    transform: translateY(-50%);
    width: 35vw;
    min-width: 300px;
    max-width: 550px;
    z-index: 6;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.statement-content.visible {
    opacity: 1;
    pointer-events: auto;
    transition: opacity 1s ease 0.4s;
}

.statement-content h4 {
    font-size: 1.5rem;
    text-transform: uppercase;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--text-main);
    padding-bottom: 10px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.statement-content p {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-main);
}

.statement-content p.mt {
    margin-top: 16px;
}

/* Info panel (title slide) */
.info-panel {
    position: absolute;
    bottom: 6vh;
    left: 8vw;
    z-index: 10;
    max-width: 450px;
    background: rgba(255, 255, 255, 0.85);
    padding: 24px;
    backdrop-filter: blur(5px);
}

.slide-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    display: block;
    margin-top: 16px;
    color: var(--text-muted);
}

.slide-desc {
    font-size: 1.1rem;
    color: #222;
    line-height: 1.6;
    margin: 0;
    font-weight: 400;
}

/* ============================================
   DIAGRAM STYLE (from diagram-ver1)
   Page: Precedents / Influences
   ============================================ */

.page-diagram {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f4f4f4;
    overflow: hidden;
}

.diagram-title {
    position: absolute;
    top: 10%;
    left: 10%;
    font-size: 2.5rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 4px solid var(--text-main);
    padding-bottom: 5px;
    z-index: 20;
}

.diagram-container {
    position: relative;
    width: 900px;
    height: 800px;
}

.diagram-container svg {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* Base state: hidden */
.dg-anim {
    opacity: 0;
    transition: all 0.8s ease-in-out;
}

/* Big grey circle */
.dg-bg-circle {
    fill: #cccccc;
    transform: scale(0.8);
    transform-origin: center;
}
.dg-bg-circle.active {
    opacity: 1;
    transform: scale(1);
}

/* Connecting lines */
.dg-connecting-lines {
    fill: none;
    stroke: #555;
    stroke-width: 2;
    stroke-dasharray: 2000;
    stroke-dashoffset: 2000;
    transition: stroke-dashoffset 1.5s ease-in-out, opacity 0.5s;
}
.dg-connecting-lines.active {
    opacity: 1;
    stroke-dashoffset: 0;
}

/* Black circles */
.dg-black-circle {
    fill: #000;
    transform: scale(0.5);
}
#dg-circle-top { transform-origin: 450px 185px; }
#dg-circle-left { transform-origin: 230px 530px; }
#dg-circle-right { transform-origin: 670px 530px; }

.dg-black-circle.active {
    opacity: 1;
    transform: scale(1);
}

/* Text overlays inside circles */
.dg-text-overlay {
    position: absolute;
    z-index: 2;
    text-align: center;
    color: #fff;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.5s ease-in-out 0.3s;
    pointer-events: none;
    width: 250px;
}
.dg-text-overlay.active { opacity: 1; }

.dg-text-overlay h3 {
    font-size: 1.3rem;
    margin: 0 0 10px 0;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 2px solid #fff;
    display: inline-block;
    padding-bottom: 5px;
}

.dg-inner-list {
    font-size: 0.85rem;
    font-style: italic;
    font-weight: 600;
    line-height: 1.6;
    margin: 0;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.dg-inner-list.active { opacity: 1; }

/* Centre text is dark on grey */
#dg-text-centre { top: 55.3%; left: 50%; color: var(--text-main); }
#dg-text-centre h3 { border-color: var(--text-main); }

/* Circle text positions — matched to updated SVG coords */
#dg-text-top   { top: 24.3%; left: 50%; }
#dg-text-left  { top: 69.7%; left: 25.6%; }
#dg-text-right { top: 69.7%; left: 74.4%; }

/* External body text */
.dg-body-text {
    position: absolute;
    z-index: 2;
    font-size: 0.78rem;
    font-style: italic;
    font-weight: 700;
    color: #444;
    line-height: 1.8;
    letter-spacing: 0.04em;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.8s ease-in-out;
    white-space: nowrap;
}
.dg-body-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Top-left: outside top circle, to the left */
#dg-ext-topleft    { top: 12%;  left: 5%;  text-align: left; }
/* Top-right: outside top circle, to the right */
#dg-ext-topright   { top: 12%;  right: 5%; text-align: right; }
/* Bottom-left: below left circle */
#dg-ext-bottomleft { bottom: 4%; left: 5%; text-align: left; }
/* Bottom-right: below right circle */
#dg-ext-bottomright{ bottom: 4%; right: 5%; text-align: right; }

/* --- Design pillars --- */
.research-question {
    font-size: 1.25rem !important;
    font-style: italic;
    line-height: 1.6 !important;
    margin-bottom: 30px !important;
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.design-pillars {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.pillar {
    display: grid;
    grid-template-columns: 40px 1fr;
    grid-template-rows: auto auto;
    gap: 2px 16px;
}

.pillar-num {
    grid-row: 1 / 3;
    font-size: 1.8rem;
    font-weight: 900;
    color: #ddd;
    align-self: center;
}

.pillar-label {
    font-size: 1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pillar-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Next steps --- */
.next-steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 20px;
}

.next-step-item {
    display: grid;
    grid-template-columns: 40px 1fr;
    gap: 12px;
    align-items: start;
}

.ns-num {
    font-size: 1.6rem;
    font-weight: 900;
    color: #ddd;
}

.next-step-item p {
    font-size: 1rem;
    line-height: 1.6;
}


/* ============================================
   TIMELINE HORIZONTAL (from timeline-ver1)
   Page: Table of Contents
   ============================================ */

.page-timeline-h {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f6f6f6;
}

.toc-title {
    font-family: 'Georgia', serif;
    font-size: 2.2rem;
    border-bottom: 2px solid #222;
    padding-bottom: 10px;
    margin-bottom: 60px;
    letter-spacing: -0.01em;
}

.timeline-h {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 85%;
    max-width: 1200px;
}

.timeline-h::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 2px;
    background-color: #222;
    z-index: 1;
    transform: translateY(-50%);
}

.tl-item {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-rows: 220px 20px 160px;
    align-items: center;
    justify-items: center;
    width: 150px;
    margin: 0 12px;
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    cursor: pointer;
}

.tl-item.active {
    opacity: 1;
    transform: translateY(0);
}

.tl-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 100%;
    padding-bottom: 5px;
}

.tl-label {
    font-weight: bold;
    font-size: 0.85rem;
    margin-bottom: 8px;
    font-family: 'Georgia', serif;
}

.tl-img-container {
    width: 70px;
    height: auto;
    background: #000;
}

.tl-img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 0.5s ease, filter 0.5s ease;
}

.tl-img.loaded {
    opacity: 1;
}

.tl-dashed {
    width: 1px;
    border-left: 1px dashed #444;
    margin-top: 10px;
}

.tl-item:nth-child(1) .tl-dashed { height: 20px; }
.tl-item:nth-child(2) .tl-dashed { height: 60px; }
.tl-item:nth-child(3) .tl-dashed { height: 30px; }
.tl-item:nth-child(4) .tl-dashed { height: 10px; }
.tl-item:nth-child(5) .tl-dashed { height: 50px; }
.tl-item:nth-child(6) .tl-dashed { height: 35px; }

.tl-dot {
    width: 12px;
    height: 12px;
    background-color: #111;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.tl-item:hover .tl-dot {
    transform: scale(1.4);
}

.tl-bottom {
    align-self: flex-start;
    padding-top: 18px;
    text-align: center;
    width: 130px;
}

.tl-bottom h3 {
    font-family: 'Georgia', serif;
    font-size: 0.95rem;
    margin: 0 0 6px 0;
}

.tl-bottom p {
    font-size: 0.7rem;
    color: #555;
    line-height: 1.5;
}


/* ============================================
   TIMELINE VERTICAL (from timeline-ver2)
   Page: Semester 1 Recap
   ============================================ */

.page-timeline-v {
    display: flex;
    flex-direction: column;
    background: var(--bg-color);
}

.timeline-v-header {
    text-align: center;
    padding: 60px 20px 20px 20px;
    flex-shrink: 0;
}

.timeline-v-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.timeline-v-header p {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.timeline-v-scroll {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* hide scrollbar */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.timeline-v-scroll::-webkit-scrollbar {
    display: none;
}

.timeline-v {
    position: relative;
    max-width: 1100px;
    margin: 0 auto;
    padding: 30px 0 100px 0;
}

.timeline-v::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: var(--line-color);
    transform: translateX(-50%);
}

.tv-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 80px;
    width: 100%;
    position: relative;
    opacity: 0;
    filter: blur(12px);
    transform: translateY(30px);
    transition: opacity 1s ease-out, filter 1s ease-out, transform 1s ease-out;
}

.tv-item.is-visible {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
}

.tv-item:nth-child(even) {
    flex-direction: row-reverse;
}

.tv-year {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-color);
    border: 2px solid var(--line-color);
    padding: 8px 18px;
    font-weight: bold;
    font-size: 0.95rem;
    z-index: 10;
    letter-spacing: 0.05em;
}

.tv-content-wrap {
    width: 42%;
}

.tv-text-side {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tv-item:nth-child(odd) .tv-text-side {
    align-items: flex-end;
    text-align: right;
}

.tv-item:nth-child(even) .tv-text-side {
    align-items: flex-start;
    text-align: left;
}

.tv-text-box h2 {
    font-size: 1.6rem;
    margin: 0 0 8px 0;
    font-weight: 700;
}

.tv-text-box p {
    color: var(--text-muted);
    line-height: 1.6;
    max-width: 380px;
    font-size: 0.95rem;
}

.tv-image-box {
    width: 100%;
    height: 260px;
    overflow: hidden;
    position: relative;
    border: 1px solid var(--line-color);
}

.tv-image-box .media-placeholder {
    height: 100%;
}

/* Stacked double-media for visuals row */
/* Click-to-toggle media box */
.tv-toggle-box {
    cursor: pointer;
}

.tv-toggle-pane {
    display: none;
    width: 100%;
    height: 100%;
}

.tv-toggle-pane--active {
    display: block;
}

.tv-toggle-pane .img-cycler,
.tv-toggle-pane .tv-video {
    width: 100%;
    height: 100%;
}

.tv-parallax-img {
    width: 100%;
    height: 130%;
    object-fit: cover;
    position: absolute;
    top: -15%;
    left: 0;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}


/* ============================================
   PLACEHOLDER PAGES
   Pages: Sem 2 Prototypes, User Testing, Next Steps
   ============================================ */

.page-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 5vw;
}

.placeholder-header {
    text-align: center;
    margin-bottom: 40px;
    flex-shrink: 0;
}

.placeholder-header h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.placeholder-header p {
    font-size: 1.2rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Prototype grid */
.prototype-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    width: 100%;
    max-width: 1200px;
    flex: 1;
    align-content: center;
}

.proto-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.proto-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    background: #000;
    overflow: hidden;
    position: relative;
}

.proto-images {
    width: 100%;
    height: 100px;
    background: #000;
    overflow: hidden;
    position: relative;
}

/* Video placeholder - black until loaded */
.video-placeholder {
    width: 100%;
    height: 100%;
    background: #000;
    position: relative;
    overflow: hidden;
}

.video-placeholder.large {
    aspect-ratio: 16 / 9;
}

.video-placeholder video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: relative;
    z-index: 1;
}

.video-black-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 2;
    transition: opacity 0.6s ease;
}

.video-black-cover.hidden {
    opacity: 0;
    pointer-events: none;
}

.proto-info {
    padding: 0 4px;
}

.proto-num {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.proto-info h3 {
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    margin: 6px 0 8px 0;
    letter-spacing: -0.01em;
}

.proto-info p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ---- Prototype detail pages (full-page, one per prototype) ---- */
.proto-detail-layout {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    width: 100%;
    height: 100%;
}

.proto-detail-video {
    position: relative;
    overflow: hidden;
    background: #000;
}

.proto-detail-video .proto-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%);
    transition: filter 0.5s ease;
}

.proto-detail-sidebar {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 60px 48px;
    border-left: 1px solid var(--line-color);
    overflow: hidden;
    background: var(--bg-color);
    justify-content: space-between;
}

.proto-faded-num {
    position: absolute;
    font-size: clamp(14rem, 28vw, 38rem);
    font-weight: 900;
    color: var(--text-main);
    opacity: 0.04;
    pointer-events: none;
    z-index: 0;
    line-height: 1;
    right: -0.05em;
    bottom: -0.1em;
    user-select: none;
}

.proto-detail-images {
    flex: 1;
    position: relative;
    overflow: hidden;
    min-height: 0;
    z-index: 1;
    border: 1px solid var(--line-color);
}

.proto-detail-info {
    padding-top: 32px;
    z-index: 1;
    position: relative;
}

.proto-detail-info .proto-num {
    display: block;
    margin-bottom: 8px;
}

.proto-detail-info p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* User testing layout */
.testing-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 40px;
    width: 100%;
    max-width: 1200px;
    flex: 1;
    align-content: center;
}

.testing-video-area {
    display: flex;
    align-items: center;
}

.testing-video-area .video-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
}

.testing-sidebar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 24px;
}

.testing-card {
    padding: 16px 0;
    border-bottom: 1px solid #ddd;
}

.testing-num {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.1em;
}

.testing-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 4px 0 6px 0;
}

.testing-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}


/* ============================================
   PAGE ENTER ANIMATIONS
   ============================================ */

/* Carousel pages: elements slide in */
.page-carousel .huge-title,
.page-carousel .image-wrapper,
.page-carousel .info-panel,
.page-carousel .statement-content.visible {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-carousel.active .huge-title {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    transition-delay: 0.1s;
}

.page-carousel.active .huge-title.faded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    color: rgba(0, 0, 0, 0.04);
    transition-delay: 0.1s;
}

.page-carousel.active .image-wrapper {
    opacity: 0.85;
    transform: translateX(0);
    transition-delay: 0.2s;
}

.page-carousel.active .image-wrapper.shifted {
    transform: translateX(20vw);
    transition-delay: 0.2s;
}

.page-carousel.active .info-panel {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.4s;
}

.page-carousel.active .statement-content.visible {
    opacity: 1;
    transform: translateY(-50%);
    transition-delay: 0.5s;
}

/* Placeholder pages: elements fade in */
.page-placeholder .placeholder-header,
.page-placeholder .prototype-grid,
.page-placeholder .testing-layout,
.page-placeholder .carousel-container {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-placeholder.active .placeholder-header {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.1s;
}

.page-placeholder.active .prototype-grid,
.page-placeholder.active .testing-layout {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.3s;
}

.page-placeholder.active .carousel-container {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s;
}

/* Ensure the next-steps page carousel elements animate properly */
.page-placeholder.active .huge-title.faded {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.3);
    color: rgba(0, 0, 0, 0.04);
    text-shadow: none;
}

.page-placeholder.active .statement-content.visible {
    opacity: 1;
    transform: translateY(-50%);
}

.page-placeholder.active .image-wrapper.shifted {
    opacity: 0.85;
    transform: translateX(20vw);
}

/* Prototype detail pages: sidebar slides in from right */
.page-proto-detail .proto-detail-sidebar {
    opacity: 0;
    transform: translateX(24px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.page-proto-detail.active .proto-detail-sidebar {
    opacity: 1;
    transform: translateX(0);
    transition-delay: 0.2s;
}

/* ============================================
   HOVER: GRAYSCALE → COLOUR
   ============================================ */

.img-cycler:hover .cycler-img,
.image-wrapper:hover .carousel-img,
.tl-img-container:hover .tl-img,
.tv-image-box:hover .tv-parallax-img,
.tv-image-box:hover .tv-video,
.proto-detail-video:hover .proto-video {
    filter: grayscale(0%);
}
