/* Reset and Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-color: #d0d0d0;
    --text-color: #000;
    --dark-bg: #1a1a1a;
    --light-text: #fff;
    --bg-color: #d0d0d0;
    --text-color: #000;
    --dark-bg: #1a1a1a;
    --light-text: #fff;
    --accent-color: #333;
    --font-display: 'Manrope', sans-serif;
}

.dot-border-left {
    position: relative;
}

.dot-border-left::before {
    content: '';
    position: absolute;
    left: 0;
    top: -10vh;
    bottom: -10vh;
    width: 1px;
    background-image: radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px);
    background-size: 1px 12px;
    background-repeat: repeat-y;
    opacity: 0.15;
}

@media (max-width: 768px) {
    .dot-border-left::before {
        left: -1rem;
    }
}

html {
    font-size: 16px;
    scroll-behavior: smooth;
    overflow-x: hidden;
    max-width: 100vw;
}

body {
    font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    overflow-x: hidden;
    height: 100vh;
    width: 100%;
    max-width: 100vw;
    cursor: none;
}

/* Force mobile viewport fit */
@media (max-width: 768px) {
    html, body {
        overflow-x: hidden !important;
        max-width: 100vw !important;
        width: 100% !important;
    }
}

/* Custom Cursor */
.custom-cursor {
    position: fixed;
    width: 50px;
    height: 50px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease, opacity 0.3s ease;
    mix-blend-mode: difference;
}

.custom-cursor.hover-link {
    width: 65px;
    height: 65px;
    background: rgba(0, 0, 0, 0.5);
    /* 0.5 transparent black */
    mix-blend-mode: normal;
    opacity: 1;
}

/* Hide cursor on touch devices */
@media (pointer: coarse) {
    body {
        cursor: auto;
    }

    .custom-cursor {
        display: none;
    }
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 2.5rem 90px;
    /* Aligned with side-nav and vertical-copy axis */
    z-index: 1000;
    pointer-events: none;
    /* Allow clicks to pass through header background */
}

.header>* {
    pointer-events: auto;
    /* Re-enable clicks for logo and menu */
}

.header button.menu-toggle {
    margin-right: 0;
    /* Now handled by header padding */
}

.logo {
    display: flex;
    align-items: center;
}

.header-logo {
    height: 4.03vh;
    width: auto;
    display: block;
}

.menu-toggle {
    width: 20px;
    height: 40px;
    background: transparent;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    /* Vertical gap between dots */
    padding: 0;
    z-index: 1001;
}

.menu-toggle span {
    display: block;
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.menu-toggle.active span:first-child {
    transform: translateY(14px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:last-child {
    transform: translateY(-14px);
}

/* Navigation Menu */
.nav-menu {
    position: fixed;
    top: -100%;
    right: 0;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.05);
    /* Colorless, subtle white tint */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
    transition: top 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu.active {
    top: 0;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.nav-menu ul {
    list-style: none;
    text-align: center;
}

.nav-menu li {
    margin: 0.1rem 0;
    overflow: hidden;
}

.nav-menu a {
    font-size: 4vh;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    text-transform: lowercase;
    transition: opacity 0.3s ease;
    display: block;
    transform: translateY(-120%);
    opacity: 0;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.6s ease;
}

.nav-menu.active a {
    transform: translateY(0);
    opacity: 1;
}

.nav-menu li:nth-child(1) a {
    transition-delay: 0.05s;
}

.nav-menu li:nth-child(2) a {
    transition-delay: 0.12s;
}

.nav-menu li:nth-child(3) a {
    transition-delay: 0.20s;
}

.nav-menu li:nth-child(4) a {
    transition-delay: 0.29s;
}

.nav-menu li:nth-child(5) a {
    transition-delay: 0.39s;
}

.nav-menu a:hover {
    opacity: 0.6;
}

/* Side Navigation Dots */
.side-nav {
    position: fixed;
    left: 90px;
    /* Matching vertical-copy right offset for symmetry */
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 100;
}

.nav-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 1px solid var(--text-color);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-dot.active {
    background: var(--text-color);
}

.nav-dot:hover {
    background: rgba(0, 0, 0, 0.3);
}

/* Vertical Copyright */
.vertical-copy {
    position: fixed;
    right: 90px;
    /* Precise Bekament right offset */
    top: 50%;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    font-size: 0.65rem;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    color: var(--text-color);
    z-index: 100;
    white-space: nowrap;
}

/* Slider Container */
.slider-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    /* Container never scrolls now */
    /* Removed scroll-behavior, -ms-overflow-style, scrollbar-width as container no longer scrolls */
}

.slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /* Fixed height for animation logic */
    overflow-y: auto;
    /* Internal scrolling for long content */
    overflow-x: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(0);
    /* Fixed container positioning to avoid dislocation */
    transition:
        opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        transform 1.4s cubic-bezier(0.16, 1, 0.3, 1),
        visibility 1.4s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    padding: 0 20vw;
    /* Padding top handled per slide type */
    scrollbar-width: none;
    /* Firefox */
    -ms-overflow-style: none;
    /* IE/Edge */
    pointer-events: none;
    /* Inactive slides should not block clicks */
    z-index: 1;
    overscroll-behavior: contain;
    /* Prevent pull-to-refresh on non-first slides */
}

/* Enable pull-to-refresh only on first slide */
#hero-slide {
    overscroll-behavior-y: auto;
}

.slide.past {
    transform: translateY(-30vh);
    opacity: 0;
    visibility: hidden;
}

.slide.future {
    transform: translateY(30vh);
    opacity: 0;
    visibility: hidden;
}

.slide::-webkit-scrollbar {
    display: none;
    /* Chrome/Safari */
}

.slide.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
    /* Only allow clicks on the active slide */
    z-index: 10;
}


/* Elevator Reveal Animations (Slow Brake Easing) */
.reveal-text,
.reveal-item {
    opacity: 0;
    transform: translateY(180px);
    /* Default to coming from BOTTOM (Future state) */
    will-change: transform, opacity;
    transition:
        opacity 1.8s cubic-bezier(0.075, 0.82, 0.165, 1),
        transform 1.8s cubic-bezier(0.075, 0.82, 0.165, 1);
}

/* Scroll DOWN direction: text comes from BOTTOM */
.slide.future .reveal-text,
.slide.future .reveal-item {
    transform: translateY(180px);
}

/* Scroll UP direction: text comes from TOP */
.slide.past .reveal-text,
.slide.past .reveal-item {
    transform: translateY(-180px);
}

.slide.active .reveal-text,
.slide.active .reveal-item,
.reveal-text.scroll-visible,
.reveal-item.scroll-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered delays for child elements (Sequential entry) */
.slide.active .reveal-text:nth-child(1),
.slide.active .reveal-item:nth-child(1) {
    transition-delay: 0.1s;
}

.slide.active .reveal-text:nth-child(2),
.slide.active .reveal-item:nth-child(2) {
    transition-delay: 0.2s;
}

.slide.active .reveal-text:nth-child(3),
.slide.active .reveal-item:nth-child(3) {
    transition-delay: 0.3s;
}

.slide.active .reveal-text:nth-child(4) {
    transition-delay: 0.4s;
}

.slide.active .reveal-text:nth-child(5) {
    transition-delay: 0.5s;
}

.slide.active .reveal-text:nth-child(6) {
    transition-delay: 0.6s;
}

/* Special case for Home Slide structure */
.home-slide .reveal-item {
    transition-delay: 0.1s;
}

.home-slide .reveal-text {
    transition-delay: 0.3s;
}

.slide-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    width: 100%;
}

/* Home Slide / Dynamic Hero */
.home-slide {
    padding-top: 0;
    height: 100vh;
    justify-content: center;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -1;
    transition: opacity 1s ease;
}

/* Add a subtle overlay to ensure text readability */
.hero-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.1);
    /* Very subtle overlay */
}

.hero-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 2;
}

.hero-title {
    font-size: 27.75vh;
    font-weight: 200;
    line-height: 0.7;
    letter-spacing: -1.2vh;
    text-transform: lowercase;
    margin-bottom: 5.35vh;
    display: flex;
    flex-direction: column;
}

.hero-title span {
    display: block;
}

.hero-desc-wrapper {
    max-width: 400px;
    display: block;
}

.hero-description {
    font-size: 0.875rem;
    line-height: 2.2;
    font-weight: 400;
    color: var(--light-text);
    background-color: var(--text-color);
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.2rem 0.6rem;
}

.logo-circle {
    width: 50.5vh;
    /* Increased by 30% from 38.85vh */
    height: 50.5vh;
    margin-bottom: 4.35vh;
    /* 30% of x-height gap */
    opacity: 1;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.subtitle {
    display: none;
    /* Subtitle integrated into paragraph title */
}

.main-title {
    font-size: 0.825rem;
    /* Matches paragraph size */
    font-weight: 500;
    line-height: 1.8;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

/* Slide Footer */
.slide-footer {
    padding-bottom: 5vh;
    display: flex;
    align-items: flex-end;
    margin-top: auto;
    /* Pushes to bottom of min-height */
}

/* Slide Numbering */
.slide-number {
    position: fixed;
    bottom: 5vh;
    left: 90px;
    font-size: 4vh;
    font-weight: 300;
    color: var(--text-color);
    z-index: 100;
}

/* Removed inquiry link styling */

.quote-box {
    flex: 1;
    background: var(--dark-bg);
    color: var(--light-text);
    padding: 2.5rem 3rem;
    max-width: 55%;
}

.quote-box p {
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 300;
}

/* About Slide - 2/3 upper, 1/3 lower */
.about-slide,
.services-slide,
.contact-slide {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 29.9vh;
    /* Centers the updated 1.35vh gap on 50vh line */
}

.about-slide .about-header,
.services-slide .services-header,
.contact-slide .contact-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    margin-bottom: 0;
}

.about-slide .about-text,
.services-slide .about-text {
    flex: 1;
    width: 100%;
    display: block;
    max-width: 35vw;
    text-align: left;
}

.small-text {
    display: block;
    font-size: 27.75vh;
    font-weight: 200;
    text-transform: lowercase;
    margin-bottom: 1.35vh;
    /* 30% of standard letter size (w, a, o) */
    line-height: 0.7;
    letter-spacing: -1.2vh;
}

.slide-title {
    font-size: 27.75vh;
    /* Reduced to 75% of 37vh */
    font-weight: 200;
    line-height: 0.7;
    /* Matches small-text for grid symmetry */
    letter-spacing: -1.2vh;
    margin-bottom: 5.35vh;
    /* 30% Gap */
}

.about-text p {
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--accent-color);
}

.about-slide .about-text p {
    color: var(--light-text);
    background-color: var(--text-color);
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    padding: 0.2rem 0.6rem;
    line-height: 2.2;
}

/* Services list styling below handles children */

/* Services list styling below handles children */

.services-slide .services-list {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 5vh 0;
    gap: 5px;
}

.service-item {
    font-size: 2.2vh;
    font-weight: 500;
    color: var(--light-text);
    background-color: var(--text-color);
    padding: 0.2rem 0.6rem;
    position: relative;
    margin-left: 1.5rem;
}

.service-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 50%;
    transform: translateY(-50%);
    width: 6px;
    height: 6px;
    background: var(--text-color);
    border-radius: 50%;
}

.services-desc-block {
    margin-top: 0;
}

.service-intro {
    margin-bottom: 4rem;
    font-weight: 500;
}

.service-entry {
    margin-bottom: 25px;
}

.service-caption {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--light-text);
    background-color: var(--text-color);
    padding: 0.2rem 0.6rem;
    display: inline;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
    line-height: 2.2;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.service-desc {
    margin-top: 0.2rem;
    font-size: 0.875rem;
    line-height: 1.8;
    color: var(--accent-color);
}

/* Portfolio Slide - Herzog & de Meuron Logic */
.portfolio-slide {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 29.9vh;
}

.portfolio-controls {
    width: 100%;
    margin-bottom: 4rem;
}

    .portfolio-header {
        display: flex;
        justify-content: space-between;
        align-items: flex-end;
        margin-bottom: 4px;
        background-image: radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px);
        background-size: 12px 1px;
        background-repeat: repeat-x;
        background-position: bottom;
        opacity: 0.4;
        padding-bottom: 1rem;
    }

.portfolio-title {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0;
}

.view-toggles {
    display: flex;
    gap: 1rem;
}

.view-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: rgba(0, 0, 0, 0.3);
    transition: color 0.3s ease;
}

.view-btn.active {
    color: var(--text-color);
}

/* Filter Styles */
.filter-wrapper {
    position: relative;
}

.project-card,
.view-btn,
.filter-trigger,
.filter-cat,
.filter-tag {
    cursor: pointer;
}

.filter-trigger {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0;
    transition: opacity 0.3s ease;
}

.filter-icon {
    display: flex;
    flex-direction: column;
    gap: 3px;
    width: 12px;
}

.filter-icon span {
    display: block;
    width: 100%;
    height: 1px;
    background: currentColor;
    transition: all 0.3s ease;
}

.filter-trigger.active .filter-icon span:nth-child(2) {
    opacity: 0;
}

.filter-trigger.active .filter-icon span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.filter-trigger.active .filter-icon span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

    .filter-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1), margin 0.5s ease;
    }

    .filter-menu.active {
        max-height: 200px;
        margin-top: 5px;
    }

    .filter-row {
        display: flex;
        gap: 4px;
        padding: 0.5rem 0;
    }

.filter-row.sub-cats {
    border-top: none;
    background-image: radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px);
    background-size: 12px 1px;
    background-repeat: repeat-x;
    background-position: top;
    opacity: 0.4;
    margin-top: 0.5rem;
}

.filter-cat,
.filter-tag {
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 500;
    color: rgba(0, 0, 0, 0.4);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.5rem 0;
    transition: color 0.3s ease;
}

.filter-cat.active,
.filter-tag.active {
    color: var(--text-color);
    font-weight: 700;
}

    .filter-options {
        display: none;
        gap: 1.5rem;
        padding-left: 1rem;
    }

    .filter-options.active {
        display: flex;
    }

/* Grid & List View Layouts */
.projects-grid {
    width: 100%;
    transition: all 0.5s ease;
}

/* Grid Mode - Horizontal Rectangle Thumbnails */
.projects-grid.grid-view {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.projects-grid.grid-view .project-card {
    background: #e0e0e0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.projects-grid.grid-view .project-image {
    width: 100%;
    aspect-ratio: 2 / 1;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
}

.projects-grid.grid-view .placeholder-img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

/* List Mode */
.projects-grid.list-view {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.projects-grid.list-view .project-card {
    border-top: none;
    background-image: radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px);
    background-size: 12px 1px;
    background-repeat: repeat-x;
    background-position: top;
    opacity: 0.4;
}

.projects-grid.list-view .project-card:last-child {
    border-bottom: none;
    background-image: radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px),
        radial-gradient(circle, var(--text-color) 0.5px, transparent 0.5px);
    background-size: 12px 1px, 12px 1px;
    background-repeat: repeat-x, repeat-x;
    background-position: top, bottom;
    opacity: 0.4;
}

.list-item {
    display: grid;
    grid-template-columns: 80px 60px 1fr 150px 80px;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
}

.list-img {
    width: 80px;
    height: 80px;
    background: #ccc;
    overflow: hidden;
    flex-shrink: 0;
}

.list-img img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.list-index {
    font-size: 0.75rem;
    font-weight: 500;
}

.list-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.2rem;
}

.list-loc {
    font-size: 0.8rem;
    opacity: 0.6;
}

.list-type,
.list-year {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.5;
}

/* Reveal Overrides for dynamic content */
.projects-grid .project-card {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.projects-grid .project-card.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Existing Card Styles Overrides */
.project-image {
    width: 100%;
    height: 100%;
    position: relative;
}

.placeholder-img {
    width: 100%;
    height: 100%;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1), filter 0.6s ease;
}

.projects-grid .placeholder-img {
    filter: none;
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .placeholder-img {
    transform: scale(1.1);
}

.project-index {
    font-size: 12px;
    font-weight: 400;
}

.project-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.project-type {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
}

.project-card h3 {
    font-size: 14px;
    font-weight: 500;
    margin: 0;
}

.project-location {
    font-size: 11px;
    font-weight: 400;
    opacity: 0.8;
}

@media (max-width: 1600px) {
    .projects-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1200px) {
    .portfolio-slide {
        padding-left: 60px;
    }

    .projects-grid.grid-view {
        grid-template-columns: repeat(2, 1fr);
    }

    .list-item {
        grid-template-columns: 60px 50px 1fr 100px;
    }

    .list-year {
        display: none;
    }
}

@media (max-width: 768px) {
    .projects-grid.grid-view {
        grid-template-columns: 1fr;
    }

    .list-item {
        grid-template-columns: 60px 40px 1fr;
    }

    .list-type {
        display: none;
    }
}

/* Contact Slide - 2/3 upper, 1/3 lower */
.contact-slide {
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    position: relative;
}

.contact-decoration {
    position: absolute;
    top: 5vh;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--text-color);
    border-radius: 50%;
    z-index: 5;
}

.contact-slide .contact-header {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.contact-slide .contact-desc-block {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0;
    text-align: left;
}

.contact-compact {
    font-size: 0.875rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    opacity: 0.8;
}

.contact-compact p {
    margin: 0;
}

.contact-compact a {
    color: inherit;
    text-decoration: none;
}

.contact-socials {
    display: flex;
    gap: 15px;
    margin-top: 1rem;
}

.contact-socials .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: var(--text-color);
    color: #fff;
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease;
}

.contact-socials .social-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.contact-socials svg {
    width: 14px;
    height: 14px;
    display: block;
    stroke: #fff;
}

/* Mouse Scroll Indicator */
.mouse-scroll {
    position: fixed;
    left: 90px;
    bottom: 3rem;
    z-index: 100;
}

.mouse {
    width: 24px;
    height: 40px;
    border: 2px solid var(--text-color);
    border-radius: 12px;
    position: relative;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--text-color);
    border-radius: 2px;
    position: absolute;
    top: 6px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

@keyframes scroll {
    0% {
        opacity: 1;
        top: 6px;
    }

    100% {
        opacity: 0;
        top: 18px;
    }
}

/* Responsive */
@media (max-width: 1200px) {
    .main-title {
        font-size: 4.5rem;
    }

    .logo-circle {
        width: 195px;
        height: 195px;
    }

    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .slide {
        padding: 8vh 5vw 8vh 20vw;
    }

    .main-title {
        font-size: 3.5rem;
    }

    .home-slide {
        padding-left: 0 !important;
        justify-content: flex-start;
        align-items: flex-start;
    }

    .quote-box {
        max-width: 100%;
    }

    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .vertical-copy {
        display: none;
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 10rem;
    }

    /* h2 animations and small text above h2 load immediately on mobile without waiting for previous elements */
    .slide.active .reveal-text.slide-title,
    .slide.active .portfolio-title,
    h2.reveal-text,
    .slide.active .small-text.reveal-text {
        transition-delay: 0s !important;
        -webkit-transition-delay: 0s !important;
    }

    .header {
        padding: 1.5rem;
    }

    .side-nav {
        left: 1.5rem;
    }

    .mouse-scroll {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    .slide {
        padding: 0 5vw 0 10vw !important;
        /* Aligns section horizontally, keeping vertical space for footer */
        display: flex;
        flex-direction: column;
    }

    .portfolio-slide {
        padding: 0 !important;
    }

    .slide-content {
        justify-content: flex-start !important;
        flex: 1;
        width: 100%;
    }

    /* Only hero uses the 50vh centering trick */
    .home-left,
    .hero-content {
        margin-top: 50vh !important;
        transform: translateY(-50%) !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .about-slide,
    .services-slide,
    .contact-slide {
        padding-top: 15vh !important;
        justify-content: flex-start !important;
        min-height: 100vh;
    }

    /* Slide 2 (about-slide) should have overflow auto */
    .about-slide {
        overflow-y: auto;
    }

    /* Center h2 vertically on mobile */
    .about-header,
    .services-header,
    .contact-header {
        padding-top: 20vh;
    }

    .portfolio-slide,
    .home-slide {
        padding-top: 0 !important;
        justify-content: flex-start !important;
    }

    .portfolio-slide {
        padding-top: 15vh !important;
        min-height: 1500px;
    }

    .about-header,
    .services-header,
    .contact-header {
        margin-top: 0 !important;
        transform: none !important;
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-content {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-desc-wrapper {
        max-width: 80%;
        width: 80%;
        margin-top: 1.5rem;
    }

    /* Description text right under heading, wider */
    .about-text {
        max-width: 90vw !important;
        width: 90% !important;
        flex: 0 !important;
        margin-top: 1.5rem;
    }

    .services-list {
        flex: 0 !important;
        margin-top: 1.5rem;
    }

    .contact-content {
        margin-top: 1.5rem;
    }

    .about-slide .about-header,
    .about-slide .about-text,
    .services-slide .services-header,
    .services-slide .services-list,
    .contact-slide .contact-header,
    .contact-slide .contact-content {
        padding-left: 0;
        width: 100%;
    }

    .about-text,
    .contact-content,
    .contact-info,
    .services-list {
        max-width: 90vw;
        width: 100%;
    }

    .main-title {
        font-size: 2.5rem;
    }

    .small-text {
        font-size: 10rem;
    }

    .slide-title {
        font-size: 10rem;
    }

    .logo-circle {
        width: 39vh;
        height: 39vh;
    }

    .projects-grid {
        padding-left: 0;
        width: 100%;
        display: grid;
        justify-content: start;
    }

    .slide-footer {
        flex-direction: column;
    }

    .inquiry-link {
        padding: 1rem 1.5rem;
    }

    .inquiry-link::after {
        left: 1.5rem;
        right: 1.5rem;
        bottom: 0.8rem;
    }

    .quote-box {
        padding: 1.5rem;
    }

    .nav-menu a {
        font-size: 1.8rem;
    }

    .filter-tabs {
        gap: 0.5rem;
    }

    .filter-btn,
    .year-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .projects-grid {
        grid-template-columns: 1fr;
    }

    .main-title {
        font-size: 2rem;
    }
}
