@font-face {
    font-family: 'D-DIN Condensed Bold';
    src: url('D-DINCondensed-Bold.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

@font-face {
    font-family: 'D-DIN Condensed';
    src: url('D-DINCondensed.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Acumin';
    src: url('AcuminVariableConcept.otf') format('opentype');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: 'Acumin regular';
    src: url('AcuminVariableConcept.otf') format('opentype');
    font-weight: 150;
    font-style: normal;
}

/* Vertical scroller rules to match the main page behavior (snap + smooth) */
.vertical_scroller{
    height: 100vh;
    height: 100dvh;
    overflow-y: scroll;
    overflow-x: hidden;
    scroll-snap-type: none;
    scroll-behavior: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    scroll-snap-align: start;
}

.vertical_scroller > .section {
    height: 100vh;
    height: 100dvh;
    width: 100%;
    scroll-snap-align: start;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}

html::-webkit-scrollbar{ display: none; }

.menu_list {
    width: 10px;
    display: flex;
    color:rgb(0, 0, 0);
    font-family: 'Acumin', Arial, sans-serif;
    font-weight: normal; 
    text-align: justify;
    line-height: 1.6;
    list-style: none;
    margin: 0;
    border: none;
    padding: 0px;
}


/* --- A. Fixed Positioning for Header/Button --- */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 1.7vw;
    background-color: transparent; /* Keep background clear so the nav covers it */
}

/* Position the hamburger button in the top right */
.site-logo{
    width: 8vw;
    height: 5vh;
    position: absolute;
    right: 7vh;
    top: 3vh;
    /* Style the hamburger icon as before */
    background-image: url(Icons/Menu.png);
    background-repeat: no-repeat;
    background-size: contain; 
    background-position: center;
    background-color: transparent;
    pointer-events: all;
    cursor: pointer;
    transition: opacity 0.3s ease;
    opacity: 0.5;
    border: transparent;
}

.site-logo:hover {
    opacity: 1;
}

/* ... (Include your previous CSS for .hamburger-menu, ::before, and ::after here) ... */


/* --- B. Full-Screen Overlay (Hidden State) --- */
.full-screen-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: white; /* White background for the whole page */
    z-index: 99; /* Below the header, above the main content */
    
    /* Initially hide the menu completely */
    visibility: hidden;
    opacity: 0;

    /* Setup Flexbox to center the content */
    display: flex;
    justify-content: center; /* Horizontal center */
    align-items: center;     /* Vertical center */

    transition: opacity 0.3s ease, visibility 0.3s;


}

/* --- C. Open/Active State --- */
.full-screen-nav.is-open {
    visibility: visible;
    opacity: 1;
}

/* --- D. Navigation List Styling (Center Content) --- */
.full-screen-nav ul {
    position: relative;
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: center;
    height: 100vh;
    width: 20vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 40vh; 
    align-items: center;
    row-gap: 0vh; /* space items visually without enlarging anchors */
}

.full-screen-nav li {
    margin: 0;
    display: flex;
    flex-direction: column;
    margin-left: 0;
    margin-right: 0;
    text-align: center;
    justify-content: center;
    padding: 1.6vh 0; /* provide vertical spacing while keeping anchor small */
}

@media (max-aspect-ratio: 3/4) {
    .full-screen-nav li {
        font-size: 1.3em;
    }
}

/* Keep each menu item in-flow but let its expanded content overlay below
   so opening one item doesn't shift the whole centered list. */
.full-screen-nav li.collapsible_list {
    /* keep titles and expanded content in normal flow so expansion pushes siblings */
    position: relative;
    align-items: center;
}

.full-screen-nav li.collapsible_list > .content {
    position: static;
    margin-top: 0.5rem;
    width: 50vw;
    max-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: max-height 0.35s ease;
    background: transparent;
    pointer-events: auto;
}


.menu {
    text-decoration: none;
    color: rgb(200, 200, 200);
    font-size: 2em;
    font-weight: normal;
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    display: inline-block;
    padding: 6px 10px;
    text-align: center;
}

@media (max-aspect-ratio: 3/4) {
    .menu {
        font-size: 1.5em;
        padding: 4px 8px;
    }
}

.menu:hover {
    color: rgb(100, 100, 100)
}


.collapsible_list {
    background-color: transparent;
    color: inherit;
    font-size: inherit;
    font-family: inherit;
    cursor: pointer;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
}

.active, .collapsible_list:hover {
    background-color: transparent;
}

.collapsible_list:after {
  content: '\002B';
  color: white;
  font-weight: bold;
  float: none;
  margin-left: 5px;
}


.active:after {
  content: "\2212";
}

.content {
    max-height: 0;
    overflow: hidden;
    padding: 0 0px;
    transition: max-height 0.2s ease-out;
    background-color: transparent;
    
}

.content .nav_menu {
    z-index: 90;
    font-family: 'Acumin regular', Arial, sans-serif;
    color: rgb(200, 200, 200);
    font-size: 1.2em;
    font-style: normal;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
}

@media (max-aspect-ratio: 3/4) {
    .content .nav_menu {
        font-size: 1em;
    }
}

.content .nav_menu:hover {
    color: rgb(100, 100, 100)
}

/* Side navigation button (used on annex pages to return to center) */
.side-button {
    position: absolute;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 10svw;
    height: 100vh;
    border: none;
    background-color: transparent;
    cursor: pointer;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    padding: 0;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.0));
    transition: opacity 0.5s;
    filter: blur(20px);
    opacity: 0.1;
    z-index: 12;
}
.side-button.right { right: 0; }
.side-button.left { left: 0; }
.side-button:hover { opacity: 1; }
.side-button:after { content: ''; }

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

.section h2 {
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    font-size: 3vh;
    margin: 0;
    color: #000;
    z-index: 10;
    font-weight: normal;
    position: relative;
    bottom: 40vh;
}

#arch_intro h2 {
    position: relative;
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    font-size: 2vh;
    margin: 0;
    color: #000;
    z-index: 10;
    font-weight: normal;
    bottom: 10%;
}

/* Architecture carousel (same structure as photography carousel) */
.arch-carousel {
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
}

.arch-track {
    display: flex;
    transition: transform 0.5s ease;
    will-change: transform;
    height: 100%;
}

.arch-slide {
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    box-sizing: border-box;
}

/* Architecture paragraph text styling */
#arch-slide p {
    font-family: 'Acumin', Arial, sans-serif;
    color: #000;
    font-size: 0.5vh;
}

/* Carousel slide text styling */
.slide-text {
    width: 60vw;
    max-width: 60vw;
    padding: 2rem;
    text-align: center;
    font-family: 'Acumin', Arial, sans-serif;
    font-size: 1.4vh;
    line-height: 1.6;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide-text p {
    margin: 0;
    width: 100%;
}

.arch-slide p {
    height: 100%;
    width: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color:#666;
    font-family: 'Acumin', Arial, sans-serif;
    font-weight: normal; 
    text-align: justify;
    line-height: 1.6;
    font-size: 1.2em;
}

@media (max-aspect-ratio: 3/4) {
    .arch-slide p{
        width: 70vw;
        max-width: 90vw;
        flex-shrink: 0;
        height: 95vh;
        font-size: 1.4vh;
        justify-content: center;
        align-items: center;
    }
}



/* Logo embed inside a section slide */
.section-logo {
    width: auto;
    height: 50vh;
    max-width: 100%;
    display: block;
    pointer-events: none;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.section .section-logo, .arch-slide .section-logo {
    margin: 0 0; /* center horizontally within the slide */
}

/* Centered slide image (use on slides) */
.slide-image-50vh {
    width: auto;
    height: 50vh;
    max-width: 100%;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    pointer-events: none;
}

/* Stacked slide images container: stack and center images vertically */
.stacked-slide-images {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10vh;
    width: 35vw;
    max-height: 30vh;
}

/* Row of four square images centered horizontally (used in S1 slide 4) */
.square-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}
.square-img {
    height: 20vw;
    width: 20vw;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
}

/* Mobile adjustments: prevent horizontal squish and make square-row into 2x2 grid */
@media (max-aspect-ratio: 3/4) {
    .slide-image-50vh {
        height: 50vh;
        max-width: 90vw;
        object-fit: contain;
        width: auto;
        display: flex;
    }

    .stacked-slide-images {
        width: 90vw;
        max-height: 70vh;
        gap: 2vh;
    }

    .square-row {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
        justify-items: center;
        align-items: center;
    }
    .square-img {
        width: 44vw;
        height: 44vw;
        object-fit: cover;
    }
}

/* Two side-by-side images (S1 slide 5) */
.pair-row {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}
.pair-img {
    height: 50vh;
    width: auto;
    object-fit: cover;
    display: block;
}

.inline-images {
    width: 25vw;
    display: flex;
    justify-content: center;
    gap: 3rem;
}



.inline-images img:first-child {
    margin-left: 0;
}

@media (max-aspect-ratio: 3/4) {
    .pair-row {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        align-items: center;
    }
    .pair-img {
        width: 80vw;
        height: auto;
    }
    .inline-images {
        transform: rotate(90deg) scale(1);
        display: flex;
        gap: -5vh;
        width: 50vw;
    }
    .inline-images img {
    margin-left: -7rem;
}
    .section-logo {
        max-width: 120vw;
    }
}

#arch_s3 .arch-slide:nth-child(3) img,
#arch_s3 .arch-slide:nth-child(4) img,
#arch_s3 .arch-slide:nth-child(5) img, 
#arch_s3 .arch-slide:nth-child(6) img {
    width: 50vw;
}

@media (max-aspect-ratio: 3/4) {
    #arch_s3 .arch-slide:nth-child(3) img,
    #arch_s3 .arch-slide:nth-child(4) img,
    #arch_s3 .arch-slide:nth-child(5) img,
    #arch_s3 .arch-slide:nth-child(6) img {
        width: 80vw;
    }
    #arch_s3 .arch-slide:nth-child(7) img {
        width: 40vw;
        margin-left: -2rem;
    }

    #arch_s3 .arch-slide:nth-child(8) img {
        transform: translateX(-15vw);
    }
    #arch_s3 .arch-slide:nth-child(9) img {
        transform: scale(1.5);
}
}

@media (max-aspect-ratio: 3/4) {
    #arch_s8 .pair-row:nth-child(1) img {
        width: 90vw;
    }
    #arch_s5 .arch-slide:nth-child(4) img {
        margin-bottom: -15rem;
        margin-top: -4rem;
    }
}


@media (max-aspect-ratio: 3/4) {
    #arch_s4 .inline-images:nth-child(1) img {
        transform: rotate(-90deg) scale(1);
        width: 70vw;
    }
}

.arch-prev, .arch-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    background-image: url('Icons/scroll_down-01.png');
    background-repeat: no-repeat;
    background-position: center;
    background-size: 60% auto;
    width: 15vh;
    height: 15vh;
    background-color: transparent;
    pointer-events: all;
    cursor: pointer;
    transition: opacity 0.3s ease, transform 180ms ease;
    opacity: 0.9;
    border: transparent;
    z-index: 20;
}

.arch-prev { left: 2vw; transform: translateY(-50%) translateX(-40%) rotate(90deg) scale(1.5); }
.arch-next { right: 2vw; transform: translateY(-50%) translateX(40%) rotate(-90deg) scale(1.5); }

.arch-prev:hover { transform: translateY(-50%) translateX(-46%) rotate(90deg) scale(1.52); }
.arch-next:hover { transform: translateY(-50%) translateX(46%) rotate(-90deg) scale(1.52); }

@media (max-aspect-ratio: 3/4) {
  .arch-prev { left: -10vw; transform: translateY(-40%) rotate(90deg); }
  .arch-next { right: -10vw; transform: translateY(-40%) rotate(-90deg); }
  
  /* Disable hover animation on mobile */
  .arch-prev:hover { transform: translateY(-40%) rotate(90deg); }
  .arch-next:hover { transform: translateY(-40%) rotate(-90deg); }
}

/* remove unused pseudo-element arrows */
.arch-prev:before, .arch-next:before { display: none !important; }

.arch-carousel.is-animating .arch-track {
    pointer-events: none;
}

/* Progress dots */
.arch-dots {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    z-index: 25;
}

.arch-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.3);
    border: none;
    cursor: pointer;
    transition: background 0.3s;
    padding: 0;
}

.arch-dot:hover {
    background: rgba(0, 0, 0, 0.5);
}

.arch-dot.active {
    background: rgba(0, 0, 0, 0.8);
}

/* Back to top button (Architecture) */
.back-to-top {
    position: fixed;
    right: 2.2rem;
    bottom: 2.2rem;
    width: 3.6rem;
    height: 3.6rem;
    border-radius: 50%;
    background: rgba(158,42,35,0.95);
    color: white;
    display: grid;
    place-items: center;
    font-size: 1.4rem;
    border: none;
    cursor: pointer;
    z-index: 300;
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
    transition: opacity 200ms ease, transform 180ms ease;
}

.back-to-top.visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

#arch_intro h1 {
    font-family: 'D-DIN Condensed Bold', Arial, sans-serif;
    font-size: 5vh;
    position: relative;
    bottom: 10%;
}

/* Architecture intro tile grid */
#arch-grid {
    width: min(88vw, 1200px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    align-items: stretch;
    justify-items: stretch;
    z-index: 30;
}

.arch-tile {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    border: none;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, opacity 180ms ease;
    opacity: 0.98;
    position: relative;
    overflow: hidden;
}

.arch-tile:hover { transform: translateY(-6px) scale(1.02); box-shadow: 0 10px 28px rgba(0,0,0,0.16); }

/* Remove any residual shadows/borders — keep tiles clean */
.arch-tile {
    border: none !important;
}

/* Embedded PDF logo styling: center and scale the vector logo inside the tile */
.arch-tile .arch-logo {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: block;
    pointer-events: none;
    background: transparent;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Ensure embedded plugin renderers don't show a border/frame */
.arch-tile object.arch-logo,
.arch-tile embed {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}


@media (max-aspect-ratio: 3/4) {
    #arch-grid { grid-template-columns: repeat(3, 1fr); width: 90vw; gap: 0.75rem; }
}

@media (max-aspect-ratio: 3/4) {
    /* Ensure the intro tile grid remains visible on narrow/portrait screens */
    #arch-grid { display: grid; }
}

/* Hide left redirect button on all subsections except intro */
#arch_s1 .scroll_left,
#arch_s2 .scroll_left,
#arch_s3 .scroll_left,
#arch_s4 .scroll_left,
#arch_s5 .scroll_left,
#arch_s6 .scroll_left,
#arch_s7 .scroll_left,
#arch_comp .scroll_left {
    display: none;
}

/* `Main` label (left) for Architecture page — mirrors main-page label behavior */
#Main {
    display: inline-flex;
    position: absolute;
    color: #9e2a23;
    bottom: 10vh;
    left: 7vw;
    font-size: 2.7vh;
    font-weight: 100;
    font-family: 'D-DIN Condensed', Arial, sans-serif;
    letter-spacing: 0.08em;
    align-items: center;
    z-index: 11;
}

#Main::before {
    content: '';
    display: inline-block;
    width: 1.5vw;
    height: 1.5vw;
    margin-right: 0.5rem;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%239e2a23' d='M9.29 6.71L13.58 11l-4.29 4.29 1.42 1.42L16.42 11l-5.71-5.71z'/></svg>");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    transform: scaleX(-1);
}
@media (max-aspect-ratio: 3/4) {
#Main::before {
    width: 4vw;
    height: 4vw;
}
}

#Main::before {
    transition: transform 200ms ease;
}

#Main.hovering-arrow-left::before {
    transform: scaleX(-1) translateX(1.5vw);
}
