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

a {
    color: inherit;
    text-decoration: none;
}

:root {
    --navy: #0D1B47;
    --navy-dark: #0a1435;
    --cream: #f5f1ea;
    --white: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #666;
}

body {
    font-family: 'Instrument Sans', sans-serif;
    color: var(--text-dark);
    background-color: var(--cream);
    overflow-x: hidden;
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Instrument Serif', serif;
    font-weight: 400;
    line-height: 1.2;
}

.italic {
    font-style: italic;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Skip Link */
.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 0;
    top: 0;
    background: var(--navy);
    color: white;
    padding: 1rem;
    z-index: 200;
}

/* Container */
.wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Header */
.site-header {
    background: var(--cream);
    padding: 1.5rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand-name {
    font-family: 'Instrument Serif', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 0.5px;
}

.brand a {
    color: inherit;
}

.nav-icons {
    display: flex;
    gap: 1.25rem;
    align-items: center;
}

.icon-link {
    transition: opacity 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.icon-link:hover {
    opacity: 0.6;
}

/* Back to Home Link */
.back-home {
    font-size: 0.875rem;
    color: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0;
}

.back-home:hover {
    color: inherit;
}

/* Selected Work Section */
.selected-work-section {
    background: var(--cream);
    padding: 4rem 0;
    min-height: 98vh;
    display: flex;
    align-items: center;
}

.selected-work-section .wrap {
    width: 100%;
}

.selected-work-header {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 0;
}

.selected-work-text h1,
.selected-work-text h2 {
    font-size: 3.5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    font-weight: 400;
}

.selected-work-text p {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 500px;
    margin-bottom: 2rem;
}

.selected-work-image {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.selected-work-image img {
    width: 100%;
    max-width: 280px;
    height: auto;
    aspect-ratio: 3/4;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    object-fit: cover;
}

.selected-work-image img:hover {
    transform: translateY(-2px);
}

/* Project Items (Fibonacci, Mini Hydration, etc) */
.project-item-section {
    background: var(--cream);
    padding: 2rem 0;
    min-height: 98vh;
    height: auto;
    display: flex;
    align-items: center;
    margin: 0 auto;
}

.project-item-section.fibonacci-section {
    padding: 3rem 0;
    min-height: auto;
}

.project-item-section.digital-scanning-section {
    padding: 4rem 0 4rem 0;
}

.project-item-section .wrap {
    width: 100%;
}

.project-item {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2rem;
    align-items: center;
    margin-bottom: 0;
}

.project-text h2 {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    font-weight: 400;
}

.project-text .subtitle {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.project-images {
    display: flex;
    justify-content: flex-end;
    position: relative;
    height: 300px;
}

/* Overlapping images for Fibonacci section */
.project-images.overlapping {
    gap: 0;
}

.project-images.overlapping .project-image-wrapper:nth-child(1) {
    position: absolute;
    top: 0;
    right: 180px;
    z-index: 2;
}

.project-images.overlapping .project-image-wrapper:nth-child(2) {
    position: absolute;
    top: 60px;
    right: 0;
    z-index: 1;
}

.project-image-wrapper {
    width: 220px;
    height: 180px;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.project-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Single image projects */
.project-images.single {
    justify-content: flex-end;
    height: auto;
}

.project-images.single .project-image-wrapper {
    position: relative;
    width: 350px;
    height: 250px;
}

/* Digital Scanning Image Hover Effect */
.digital-scanning-image {
    position: relative;
    overflow: hidden;
    width: fill;
}

.image-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    pointer-events: none;
}

.image-hover-overlay span {
    color: white;
    font-size: 1rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
    font-weight: 500;
}

.digital-scanning-image:hover .image-hover-overlay {
    background: rgba(0, 0, 0, 0.6);
}

.digital-scanning-image:hover .image-hover-overlay span {
    opacity: 1;
}

/* Awards Section */
.awards-section {
    background: var(--cream);
    padding: 5rem 0;
    margin-top: 3rem;
}

.awards-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.awards-content h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    font-weight: 400;
    color: var(--white);
}

.awards-content .subtitle {
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 2.5rem;
}

.awards-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.awards-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.award-item {
    display: grid;
    grid-template-columns: 1.5fr 3fr 0.75fr;
    gap: 3rem;
    padding: 1.25rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    align-items: start;
}

.award-item:last-child {
    border-bottom: none;
}

.award-org {
    font-size: 1rem;
    color: var(--white);
    font-weight: 400;
}

.award-name {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
}

.award-year {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: right;
}

/* Gradient Transition */
.gradient-section {
    height: 200px;
    background: linear-gradient(180deg, #f5f1ea 0%, #F2C9A8 30%, #1F43AD 70%, var(--navy) 100%);
}

/* Current Work Section */
.current-work-section {
    background: var(--cream);
    padding: 5rem 0;
    min-height: 0.8vh;
}

.current-work-section.awards-section-dark {
    background: var(--navy);
}

.current-work-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.current-work-content .back-home {
    display: inline-block;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.current-work-content h1,
.current-work-content h2 {
    font-size: 2.75rem;
    margin-bottom: 3rem;
    font-weight: 400;
    color: var(--text-dark);
}

.current-work-items {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.current-work-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.current-work-item .item-image,
.current-work-item .item-image-no-link {
    width: 100%;
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0.25rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.current-work-item .item-image img,
.current-work-item .item-image-no-link img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.current-work-item .item-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.current-work-item.hover-item:hover .item-image img,
.current-work-item.hover-item:hover .item-image-no-link img {
    filter: grayscale(0%);
}

.current-work-item.hover-item:hover .item-text {
    opacity: 1;
}

/* Mission Footer Section */
.mission-footer-section {
    background: var(--navy);
    padding: 4rem 0rem;
    border-top: 2px dashed rgba(255, 255, 255, 0.25);
}

.mission-footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: start;
}

.mission-text {
    color: var(--white);
}

.mission-text h2 {
    font-size: 2.75rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
}

.mission-text p {
    font-size: 0.95rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 1.5rem;
    max-width: 550px;
}

.footer-rhs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
    gap: 0.5rem;
}

/* Site Footer */
.site-footer {
    background: var(--navy-dark);
    padding: 3rem 0rem;
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
}

.site-footer strong {
    color: var(--white);
    font-size: 1.125rem;
    display: block;
    margin-bottom: 0.5rem;
}

.muted {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.small {
    font-size: 0.875rem;
}

.socials {
    margin-top: 1rem;
}

.socials a {
    color: inherit;
}

.socials a:hover {
    color: inherit;
}

/* Hero, Projects Grid, Editorial - keeping existing HTML but hidden by default */
.hero,
.section,
.projects-grid,
main.wrap.content {
    display: none;
}

.project-item{
    height: auto;
    min-height: 100vh;
}

/* Projects Section (bottom of work page) */
.projects {
    background: var(--navy);
    padding: 5rem 2rem;
}

.projects__item {
    max-width: 1200px;
    margin: 0 auto 5rem auto;
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.projects__item:last-child {
    margin-bottom: 0;
}

.projects__image-container {
    width: 100%;
}

.projects__image {
    width: 100%;
    height: auto;
    border-radius: 0.25rem;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.projects__image:hover {
    transform: translateY(-4px);
}

.projects__content {
    color: var(--white);
}

.projects__title {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 400;
    color: var(--white);
}

.projects__title a {
    color: inherit;
}

.projects__title a:hover {
    color: inherit;
}

.projects__description {
    font-size: 0.95rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    max-width: 550px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }

    .selected-work-text h1,
    .selected-work-text h2,
    .current-work-content h1,
    .current-work-content h2,
    .mission-text h2 {
        font-size: 2.5rem;
    }

    .project-text h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 1.25rem;
    }

    .wrap,
    .awards-content,
    .current-work-content,
    .mission-footer-section,
    .site-footer {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .selected-work-section {
        padding: 3rem 0;
        min-height: auto;
    }

    .selected-work-header {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .selected-work-image {
        order: -1;
        justify-content: center;
    }

    .selected-work-image img {
        max-width: 240px;
    }

    .selected-work-text h1,
    .selected-work-text h2 {
        font-size: 2.5rem;
        margin-bottom: 1.5rem;
    }

    .selected-work-text p {
        font-size: 0.9375rem;
        margin-bottom: 1.5rem;
        max-width: 100%;
    }

    .project-item-section {
        padding: 3rem 0;
        height: auto;
    }

    .project-item {
        grid-template-columns: 1fr;
        gap: 1rem;
        margin-bottom: 0;
        align-items: start;
    }

    .digital-scanning-section .project-text {
        align-self: end;
    }

    .digital-scanning-section .project-images {
        align-self: center;
    }

    .projects__item {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2rem;
    }

    .project-text h2 {
        font-size: 2rem;
    }

    .project-images {
        justify-content: center;
        height: 250px;
    }

    .project-images.overlapping .project-image-wrapper:nth-child(1) {
        right: 150px;
    }

    .project-images.overlapping .project-image-wrapper:nth-child(2) {
        top: 50px;
    }

    .project-image-wrapper {
        width: 180px;
        height: 150px;
    }

    .project-images.single {
        justify-content: center;
    }

    .project-images.single .project-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .project-images.single .project-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }


    .award-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
        padding: 1.5rem 0;
    }

    .award-year {
        text-align: left;
    }

    .current-work-items {
        grid-template-columns: 1fr;
        gap: 3rem;
        text-align: left;
    }

    .current-work-item .item-image,
    .current-work-item .item-image-no-link {
        height: 250px;
    }

    .current-work-content h1,
    .current-work-content h2,
    .mission-text h2 {
        font-size: 2.25rem;
    }

    .mission-footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .mission-text p {
        max-width: 100%;
    }

    .footer-rhs {
        align-items: flex-start;
        text-align: left;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .nav-icons img {
        width: 32px !important;
        height: 32px !important;
    }

    .footer {
        padding: 2.5rem 0 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .container-mission {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .mission-content h2 {
        font-size: 2.25rem;
    }

    .footer-rhs {
        align-items: flex-start;
        text-align: left;
        margin-top: 1rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .wrap,
    .awards-content,
    .current-work-content,
    .mission-footer-section,
    .site-footer {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .selected-work-section {
        padding: 2rem 0;
    }

    .selected-work-text h1,
    .selected-work-text h2 {
        font-size: 2rem;
    }

    .selected-work-text p {
        font-size: 0.875rem;
        max-width: 100%;
    }

    .selected-work-image img {
        max-width: 200px;
    }

    .project-item-section {
        padding: 2rem 0;
    }

    .project-text h2 {
        font-size: 1.75rem;
    }

    .project-images {
        height: 200px;
    }

    .project-images.overlapping .project-image-wrapper:nth-child(1) {
        right: 110px;
    }

    .project-image-wrapper {
        width: 150px;
        height: 130px;
    }

    .project-images.single {
        justify-content: center;
    }

    .project-images.single .project-image-wrapper {
        width: 100%;
        max-width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .project-images.single .project-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .current-work-content h1,
    .current-work-content h2,
    .mission-text h2 {
        font-size: 1.875rem;
    }

    .current-work-items {
        gap: 2.5rem;
    }

    .current-work-item .item-image,
    .current-work-item .item-image-no-link {
        height: 220px;
    }

    .gradient-section {
        height: 150px;
    }

    .footer {
        padding: 2rem 0 1rem;
    }

    .footer-column h3 {
        font-size: 1.125rem;
    }

    .footer-column h4 {
        font-size: 0.9375rem;
    }

    .mission-content h2 {
        font-size: 1.875rem;
    }

    .mission-content p {
        font-size: 0.875rem;
    }
}

/* Footer */
.footer {
    background: #020617;
    color: #94a3b8;
    padding: 3rem 0rem;
    border-top: 3px dashed rgba(255, 255, 255, 0.3);
}

/* Mission Section */
.mission .container {
    margin-bottom: 3rem;
}

.container-mission {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: flex-start;
    padding: 0 0rem;
}

.mission-content {
    color: var(--white);
    margin-bottom: 4rem;
}

.mission-content h2 {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    font-weight: 400;
    color: var(--white);
}

.mission-content .italic {
    font-style: italic;

}


.mission-content p {
    font-size: 1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0rem;
}

.btn-work {
    font-family: 'Instrument Sans', sans-serif;
    padding: 1.5rem 0rem;
    border: none;
    background: transparent;
    color: #e2e2e2;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: left;
}

.btn-work .link-arrow {
    color: #e2e2e2;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.btn-work:hover .link-arrow {
    transform: translateX(6px);
}

.btn-work-light {
    color: #e2e2e2;
}

.btn-work-light .link-arrow {
    color: #e2e2e2;
}


.btn-current-work {
    font-family: 'Instrument Sans', sans-serif;
    padding: 1.5rem 0rem;
    border: none;
    background: transparent;
    color: #363636;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    text-align: left;
}

.btn-current-work .link-arrow {
    color: #363636;
    text-decoration: none;
    transition: transform 0.3s ease;
    display: inline-block;
    font-weight: 500;
}

.btn-current-work:hover .link-arrow {
    transform: translateX(6px);
}

.footer-rhs {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: flex-start;
    align-self: flex-start;
    text-align: right;
    color: rgba(255, 255, 255, 0.6);
}

.footer-rhs p {
    font-size: 0.875rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-bottom: 2rem;
    padding: 0 0rem;
}

.footer-column h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.footer-column h4 {
    color: var(--white);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.footer-column p {
    font-size: 0.875rem;
    line-height: 1.6;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 0.5rem;
}

.footer-column a {
    color: inherit;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-column a:hover {
    color: #cacaca;
}

.footer-bottom {
    border-top: 1px solid #1e293b;
    padding-top: 2rem;
    text-align: center;
}

.footer-bottom p {
    font-size: 0.875rem;
}

/* Animations */
.fade-in {
    animation: fadeIn 1s ease-out;
}

.fade-in-delay-1 {
    animation: fadeIn 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.6s both;
}

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

/* Digital Scanning Section Spacing - removed for better spacing across all devices */

/* Fibonacci Project Specific Styles */
.fibonacci-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fibonacci-project {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: flex-start;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fibonacci-project.showing-pdfs {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 3rem;
    align-items: center;
}

.fibonacci-project .project-text {
    text-align: left;
    max-width: 500px;
    margin-bottom: 0rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fibonacci-project .project-text h2 {
    margin-bottom: 1rem;
    font-size: 2.5rem;
    text-align: left;
}

.fibonacci-project .project-text h2 a {
    text-align: left;
}

.fibonacci-project .project-text .fibonacci-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), max-height 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    transform: translateY(-10px);
}

.fibonacci-project .project-text .fibonacci-description.visible {
    opacity: 1;
    max-height: 100px;
    transform: translateY(0);
}

.fibonacci-media-container {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: flex-end;
    width: 100%;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.fibonacci-static-media {
    display: flex;
    gap: 1rem;
    width: 100%;
    position: relative;
    z-index: 1;
    align-items: flex-start;
    justify-content: flex-end;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    left: 0;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(20px);
}

.fibonacci-static-media.active {
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: translateY(0);
}

.fibonacci-pdf-wrapper {
    height: 250px;
    width: auto;
    aspect-ratio: 8.5 / 11;
    border-radius: 0.25rem;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    position: relative;
    background: white;
    flex-shrink: 0;
}

.fibonacci-pdf-wrapper:nth-child(2) {
    aspect-ratio: 11 / 8.5;
    height: 250px;
}

.pdf-preview {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.pdf-preview embed {
    width: 100%;
    height: calc(100% + 40px);
    pointer-events: none;
    margin-top: -40px;
}

.pdf-preview embed::-webkit-pdf-viewer-toolbar {
    display: none;
}

.pdf-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    transition: background 0.3s ease;
}

.pdf-overlay span {
    color: white;
    font-size: 0.875rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: center;
}

.pdf-preview:hover .pdf-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.pdf-preview:hover .pdf-overlay span {
    opacity: 1;
}

/* Plus Button */
.plus-button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #666;
    color: white;
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    margin-top: 1rem;
    align-self: flex-end;
    z-index: 100;
}

.plus-button:hover {
    background: #555;
    transform: scale(1.1);
}

.plus-button.active {
    transform: rotate(45deg);
    background: #999;
}

/* Video Gallery */
.fibonacci-video-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    width: 100%;
    opacity: 1;
    transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1), transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(0);
    margin-bottom: 2rem;
}

.fibonacci-video-gallery.hidden {
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.fibonacci-video-item {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.fibonacci-video-item .video-link,
.fibonacci-video-item .video-link-no-link {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
}

.fibonacci-video-item .video-link > video,
.fibonacci-video-item .video-link-no-link > video {
    height: 200px;
    width: 100%;
    object-fit: cover;
}

.fibonacci-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0.25rem;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
    cursor: pointer;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    display: block;
}

.fibonacci-video-item.hover-item:hover .fibonacci-video {
    filter: grayscale(0%);
}

.fibonacci-video-item .video-text {
    font-size: 1.1rem;
    line-height: 1.6;
    color: var(--text-dark);
    opacity: 0;
    transition: opacity 0.3s ease;
    text-align: left;
}

.fibonacci-video-item.hover-item:hover .video-text {
    opacity: 1;
}

/* Responsive adjustments for Fibonacci section */
@media (max-width: 1024px) {
    .fibonacci-project.showing-pdfs {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .fibonacci-video-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .fibonacci-video-item:nth-child(3) {
        grid-column: 1 / -1;
        max-width: 50%;
        margin: 0 auto;
    }

    .fibonacci-video {
        height: 200px;
    }

    .fibonacci-project .project-text h2 {
        font-size: 2.25rem;
    }
}

@media (max-width: 768px) {
    .fibonacci-section {
        min-height: auto;
        padding: 4rem 0;
        margin-bottom: 4rem;
        align-items: flex-start;
    }

    .fibonacci-project.showing-pdfs {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .fibonacci-media-container {
        align-items: center;
    }

    .fibonacci-static-media {
        flex-direction: column;
        gap: 1rem;
        max-width: 400px;
        width: 100%;
    }

    .fibonacci-pdf-wrapper {
        width: 100%;
        height: auto;
        aspect-ratio: 11 / 8.5;
    }

    .fibonacci-pdf-wrapper:nth-child(2) {
        aspect-ratio: 11 / 8.5;
        height: auto;
    }

    .fibonacci-video-gallery {
        grid-template-columns: 1fr;
        gap: 3rem;
        margin-bottom: 4rem;
    }

    .fibonacci-video-item:nth-child(3) {
        grid-column: auto;
        max-width: 100%;
    }

    .fibonacci-video {
        height: 250px;
    }

    .fibonacci-video-item .video-link > video,
    .fibonacci-video-item .video-link-no-link > video {
        height: 250px;
    }

    .fibonacci-project .project-text h2 {
        font-size: 2rem;
    }

    .plus-button {
        width: 45px;
        height: 45px;
        font-size: 1.75rem;
        align-self: center;
    }

    .digital-scanning-section {
        padding-top: 4rem;
    }
}

@media (max-width: 480px) {
    .fibonacci-section {
        min-height: auto;
        padding: 3rem 0;
        margin-bottom: 4rem;
        align-items: flex-start;
    }

    .fibonacci-media-container {
        align-items: center;
    }

    .fibonacci-static-media {
        flex-direction: column;
        max-width: 100%;
    }

    .fibonacci-pdf-wrapper {
        width: 100%;
        height: auto;
    }

    .fibonacci-pdf-wrapper:nth-child(2) {
        height: auto;
    }

    .fibonacci-video-gallery {
        gap: 2.5rem;
        margin-bottom: 1rem;
    }

    .fibonacci-video {
        height: 220px;
    }

    .fibonacci-video-item .video-link > video,
    .fibonacci-video-item .video-link-no-link > video {
        height: 220px;
    }

    .fibonacci-project .project-text h2 {
        font-size: 1.75rem;
    }

    .plus-button {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
        align-self: center;
    }

    .digital-scanning-section {
        margin-top: 4rem;
    }
}