/* --- IMPORT GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500;600;700;800&family=Space+Grotesk:wght@400;500;600;700&display=swap');

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

:root {
    --primary: #0c28ff;
    --secondary: #fff;
    --accent: #f0f0f0;
    --text: #000000;
    --light-text: #666;
    --font-serif: 'EB Garamond', serif;
    --font-sans: 'Space Grotesk', sans-serif;
}

body {
    font-family: var(--font-sans);
    background: var(--secondary);
    color: var(--text);
    line-height: 1.6;
}

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

nav a.active {
    color: #111;
}

/* --- 1. INTRO ANIMATION (Curtain Effect) --- */
.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.9s ease;
}

.intro-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.35rem;
    color: var(--primary);
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-family: var(--font-sans);
}

.intro-text span {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 3.2vw, 2.2rem);
    font-weight: 700;
    opacity: 0;
    transform: translateY(32px);
    animation: fadeInUp 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.intro-text span:nth-child(1) {
    animation-delay: 0.2s;
}

.intro-text span:nth-child(2) {
    animation-delay: 0.6s;
}

.intro-text span:nth-child(3) {
    animation-delay: 0.95s;
}

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

@keyframes slideOut {
    to {
        transform: translateY(-100%);
    }
}

/* Class to hide the overlay by sliding up */
.intro-overlay.hidden {
    opacity: 0;
    transform: translateY(-100%);
}

/* --- INTRO GALLERY --- */
.projects-intro-gallery {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary);
    z-index: 900;
    opacity: 1;
    transition: opacity 0.8s ease 0.5s;
}

.projects-intro-gallery.hidden {
    opacity: 0;
    pointer-events: none;
}

.gallery-viewport {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.gallery-slides {
    display: flex;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gallery-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-slide:hover {
    opacity: 0.95;
}

.gallery-slide:hover .slide-info {
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
}

.gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.slide-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
    color: white;
    padding: 3rem 5%;
}

.slide-info h3 {
    font-family: var(--font-serif);
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    letter-spacing: -0.01em;
}

.slide-info p {
    font-size: 0.95rem;
    opacity: 0.9;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    pointer-events: auto;
    transition: all 0.3s ease;
    color: #000;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
}

.gallery-nav--prev {
    left: 2rem;
}

.gallery-nav--next {
    right: 2rem;
}

.gallery-nav svg {
    width: 24px;
    height: 24px;
}

.gallery-indicators {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 10;
    pointer-events: auto;
}

.indicator-dots {
    display: flex;
    gap: 0.5rem;
}

.indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator-dot.active {
    background: rgba(255, 255, 255, 1);
    width: 24px;
    border-radius: 4px;
}

/* Responsive */
@media (max-width: 768px) {
    .gallery-nav {
        width: 40px;
        height: 40px;
    }

    .gallery-nav svg {
        width: 18px;
        height: 18px;
    }

    .gallery-nav--prev {
        left: 1rem;
    }

    .gallery-nav--next {
        right: 1rem;
    }

    .slide-info {
        padding: 2rem 4%;
    }

    .slide-info h3 {
        font-size: 1.3rem;
    }

    .slide-info p {
        font-size: 0.85rem;
    }

    .gallery-indicators {
        bottom: 1.5rem;
    }
}

.landing-hero {
    min-height: auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
    gap: 2rem;
    align-items: start;
    padding-top: 3.5rem;
    padding-bottom: 3rem;
}

.landing-hero__content {
    max-width: 760px;
}

.landing-kicker {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.11em;
    color: #666;
    margin-bottom: 1rem;
}

.landing-title {
    font-family: var(--font-serif);
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    line-height: 0.92;
    font-weight: 700;
    color: #111;
    max-width: 760px;
    letter-spacing: -0.02em;
}

.landing-subtitle {
    margin-top: 1.4rem;
    font-size: 1.05rem;
    color: #555;
    max-width: 560px;
}

.hero-actions {
    margin-top: 2rem;
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
}

.landing-gallery {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
}

.landing-gallery__item {
    margin: 0;
    min-height: 180px;
    overflow: hidden;
    background: #f6f6f6;
}

.landing-gallery__item--large {
    grid-column: span 2;
    min-height: 420px;
}

.landing-gallery__item--wide {
    grid-column: span 2;
    min-height: 250px;
}

.landing-gallery__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.landing-strip {
    padding: 0 5% 2.4rem;
}

.mini-projects {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(92px, 1fr));
    gap: 0.55rem;
}

.mini-project-card {
    display: block;
    height: 86px;
    border: 1px solid #e4e4e4;
    overflow: hidden;
}

.mini-project-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease, opacity 0.25s ease;
}

.mini-project-card:hover img {
    transform: scale(1.06);
}

/* --- HEADER & HERO --- */
nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 2rem 5%;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--accent);
    font-family: var(--font-sans);
}

.logo {
    font-family: var(--font-sans);
    font-weight: 700;
    font-size: 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: opacity 0.3s;
    cursor: pointer;
}

.logo:hover {
    opacity: 0.7;
}

.menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    font-family: var(--font-sans);
}

.menu a {
    font-family: var(--font-sans);
    text-decoration: none;
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 500;
    transition: opacity 0.3s;
    position: relative;
}

.menu a::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: width 0.3s;
}

.menu a:hover::after,
.menu a.active::after {
    width: 100%;
}

/* Hero */
.hero {
    padding: 2rem 5%;
    min-height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    text-align: center;
}

.hero-content h1 {
    font-family: var(--font-serif);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
}

.work-hero {
    background: linear-gradient(135deg, #f5f5f5 0%, #fafafa 100%);
}

/* Filter Buttons */
.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 3rem 5% 2rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--text);
    background: transparent;
    color: var(--text);
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 0;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--secondary);
}

/* Projects Grid */
.projects-section {
    padding: 2rem 3%;
}

.projects-grid {
    column-count: 1;
    column-gap: 2rem;
    max-width: 1500px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .projects-grid {
        column-count: 2;
    }
}

@media (min-width: 1280px) {
    .projects-grid {
        column-count: 3;
    }
}

/* Project Card */
.project-card {
    position: relative;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    display: inline-block;
    width: 100%;
    margin: 0 0 2.5rem;
    transition: all 0.3s ease;
    break-inside: avoid;
}

.project-card.hidden {
    display: none;
}

.project-card__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.project-card:hover .project-card__image {
    transform: scale(1.05);
}

.project-card__content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 2rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: var(--secondary);
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.project-card:hover .project-card__content {
    transform: translateY(0);
}

.project-card__content h3 {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.project-card__content p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* --- 2. WORK SECTION (List) --- */
.work-section {
    background: #ffffff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
    padding: 2.5rem 5% 6rem;
    position: relative;
    z-index: 10;
}

.section-intro {
    margin-bottom: 1.4rem;
}

.section-label {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #777;
    margin-bottom: 0.45rem;
}

.work-section h2 {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: -0.01em;
}

.featured-projects .project-item {
    border-top: none;
    padding: 1rem 0;
    border-bottom: 1px solid #ccc;
}

.featured-projects .project-item:last-child {
    border-bottom: none;
}

.filter-menu {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 3rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid #ccc;
    background-color: transparent;
    color: #1a1a1a;
    cursor: pointer;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-weight: 500;
}

.filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.filter-btn.active {
    background-color: #1a1a1a;
    color: #fff;
    border-color: #1a1a1a;
}

.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 1rem 0;
    border-top: 1px solid #ccc;
    transition: padding 0.3s ease, color 0.3s ease, opacity 0.3s ease;
    position: relative;
    opacity: 1;
    cursor: pointer;
}

.project-main {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

.project-thumb {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border: 1px solid #ddd;
    flex-shrink: 0;
    background: #f4f4f4;
}

.project-item:last-child {
    border-bottom: 1px solid #ccc;
}

.project-name {
    font-family: var(--font-serif);
    font-size: clamp(1.3rem, 3vw, 2.7rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.project-cat {
    font-size: 0.82rem;
    color: #666;
    flex-shrink: 0;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Hover effect on text */
.project-item:hover {
    padding-left: 0.8rem;
    color: #111;
    border-color: #666;
}

.project-item.hidden {
    display: none;
}

.view-all-btn {
    margin-top: 3rem;
    text-align: center;
}

/* Buttons */
.btn-primary {
    display: inline-block;
    padding: 0;
    border: none;
    background: transparent;
    color: #0c28ff;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    font-weight: 500;
    box-shadow: none;
    border-radius: 0;
    border-bottom: 2px solid transparent;
    position: relative;
}

.btn-primary:hover {
    background-color: transparent;
    border-color: transparent;
    border-bottom: 2px solid #0c28ff;
}

.btn-ghost {
    display: inline-block;
    padding: 1rem 2.4rem;
    border: 1px solid #111;
    color: #111;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    border-radius: 999px;
}

.btn-ghost:hover {
    background: #111;
    color: #fff;
}

/* --- ABOUT SECTION --- */
.about-section {
    padding: 6rem 4rem;
    background: #fff;
    border-top: 1px solid #e5e5e5;
    border-bottom: 1px solid #e5e5e5;
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

.about-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #333;
    margin-bottom: 1.5rem;
}

/* --- ABOUT PAGE LIST --- */
.about-list {
    margin: 1rem 0 2rem 1.5rem;
    line-height: 1.8;
    color: #333;
}

/* --- 3. HOVER REVEAL (Floating Image) --- */
.hover-reveal {
    position: fixed;
    width: 300px;
    height: 400px;
    top: 0;
    left: 0;
    pointer-events: none; /* Allows clicking through the image */
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 999;
    box-shadow: 0 20px 45px rgba(0,0,0,0.18);
    will-change: transform, opacity;
}

@media (max-width: 1024px) {
    .landing-hero {
        grid-template-columns: 1fr;
    }

    .landing-gallery__item--large {
        min-height: 320px;
    }

    .landing-gallery__item--wide {
        min-height: 220px;
    }

    .work-section {
        padding-left: 5%;
        padding-right: 5%;
    }
}

@media (max-width: 768px) {
    .landing-hero {
        padding-top: 2.6rem;
    }

    .landing-strip {
        padding-bottom: 1.6rem;
    }

    .mini-projects {
        grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
    }

    .mini-project-card {
        height: 72px;
    }

    .project-item {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.55rem;
    }

    .project-cat {
        padding-left: calc(100px + 0.95rem);
    }
}

@media (max-width: 560px) {
    .landing-gallery {
        grid-template-columns: 1fr;
    }

    .landing-gallery__item--large,
    .landing-gallery__item--wide {
        grid-column: span 1;
        min-height: 220px;
    }

    .project-thumb {
        width: 82px;
        height: 58px;
    }

    .project-cat {
        padding-left: calc(82px + 0.95rem);
        font-size: 0.78rem;
    }
}

.hover-reveal.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.hover-reveal__inner {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.hover-reveal__img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transform: scale(1.08);
    transition: transform 0.3s ease, background-image 0.1s;
    background-color: #111;
}

/* Project Detail Page */
.project-detail {
    max-width: 100%;
    margin: 0;
    padding: 0 0 5rem;
}

.project-header {
    max-width: 1240px;
    margin: 0 auto;
    padding: 3.5rem 4vw 2.75rem;
    border-bottom: 1px solid #ececec;
}

.back-link {
    display: inline-block;
    color: #8b8b8b;
    margin-bottom: 2.25rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #171717;
}

.project-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(240px, 1fr);
    gap: 3.5rem;
    align-items: start;
}

.project-title {
    margin: 0;
    font-family: var(--font-serif);
    font-size: clamp(3.2rem, 8vw, 7.2rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: #121212;
}

.project-meta-row {
    display: grid;
    gap: 1.3rem;
    padding-top: 0.3rem;
}

.project-meta-row .meta-item h4 {
    margin: 0 0 0.4rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #8f8f8f;
    font-weight: 500;
}

.project-meta-row .meta-item p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.45;
    color: #191919;
}

.project-content {
    width: 100%;
    padding-top: 3.5rem;
}

.content-block {
    margin-bottom: 5.25rem;
}

.content-block.full-width {
    max-width: 1240px;
    margin: 0 auto 5.25rem;
    padding: 0 4vw;
}

.project-media {
    width: 100%;
    height: auto;
    display: block;
}

video.project-media,
iframe.project-media {
    width: 100%;
    display: block;
    background: #000;
}

video.project-media {
    object-fit: cover;
}

iframe.project-media {
    aspect-ratio: 16 / 9;
    border: none;
}

.image-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
}

.image-grid .project-media {
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}

.image-grid iframe.project-media {
    aspect-ratio: 1 / 1;
    object-fit: contain;
}

.image-grid video.project-media,
.image-grid-2 video.project-media {
    aspect-ratio: auto;
    height: auto;
    object-fit: contain;
}

.image-grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1.2rem;
}

.image-grid-2 .project-media {
    width: 100%;
    aspect-ratio: auto;
    object-fit: contain;
}


.video-grid-large {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
    max-width: full width;
    margin: 0 auto;
}

.info-section,
.text-section {
    max-width: 1240px;
    margin: 0 auto 4.5rem;
    padding: 0 4vw;
}

.info-grid,
.info-column {
    display: block;
}

.info-column h3,
.text-section h3 {
    margin: 0 0 1.35rem;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #898989;
    font-weight: 500;
}

.info-column p,
.text-section p {
    margin: 0;
    font-size: clamp(1.06rem, 1.45vw, 1.34rem);
    line-height: 1.78;
    color: #161616;
    letter-spacing: -0.012em;
}

.info-column p + p,
.text-section p + p {
    margin-top: 1.4rem;
}

.info-column .btn-primary {
    display: inline-block;
    margin-top: 1.4rem;
}

.text-section .btn-primary {
    display: inline-block;
    margin-top: 1.4rem;
}

.project-navigation {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 4vw;
    padding-top: 2.1rem;
    border-top: 1px solid #ececec;
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-link {
    color: #666;
    font-size: 0.83rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: #111;
}

.text-block {
    display: none;
}

.project-footer {
    display: none;
}

@media (max-width: 1024px) {
    .project-header {
        padding-top: 2.5rem;
    }

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

    .project-meta-row {
        grid-template-columns: repeat(3, minmax(140px, 1fr));
        gap: 1.1rem;
    }

    .content-block,
    .content-block.full-width,
    .info-section,
    .text-section {
        margin-bottom: 4.2rem;
    }
}

@media (max-width: 768px) {
    .project-header,
    .content-block.full-width,
    .info-section,
    .text-section,
    .project-navigation {
        padding-left: 6vw;
        padding-right: 6vw;
    }

    .project-title {
        font-size: clamp(2.4rem, 15vw, 4rem);
    }

    .project-meta-row {
        grid-template-columns: 1fr;
    }

    .info-column p,
    .text-section p {
        font-size: 1.02rem;
        line-height: 1.72;
    }

    .image-grid,
    .video-grid-large {
        grid-template-columns: 1fr;
    }

    .project-navigation {
        flex-direction: column;
    }
}

/* --- ABOUT LAYOUT (Two Column) --- */
.about-layout {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem;
    padding-top: 2rem;
}

.about-left {
    position: sticky;
    top: 100px;
}

.about-image {
    margin-bottom: 2rem;
    overflow: hidden;
}

.about-image img {
    width: 100%;
    height: auto;
    display: block;
    filter: grayscale(100%);
}

.about-links {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    font-size: 0.9rem;
}

.about-links a {
    color: #000;
    text-decoration: none;
    transition: color 0.3s ease;
    border-bottom: 1px solid transparent;
    padding-bottom: 0.2rem;
}

.about-links a:hover {
    color: #0c28ff;
    border-bottom: 1px solid #0c28ff;
}

.back-link {
    display: inline-block;
    color: #666;
    text-decoration: none;
    transition: color 0.3s ease, border-bottom-color 0.3s ease;
    border-bottom: 1px solid transparent;
}

.back-link:hover {
    color: #0c28ff;
    border-bottom: 1px solid #0c28ff;
}

.about-links .back-link {
    font-size: 0.85rem;
    margin-top: 1rem;
}

.about-right {
    padding-top: 0;
}

.about-intro {
    margin-bottom: 3rem;
}

.about-title {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-style: italic;
    margin: 0 0 1rem 0;
    font-weight: 400;
}

.about-bio {
    font-size: 1rem;
    line-height: 1.7;
    color: #333;
    margin: 0;
}

.about-bio b {
    color: #0c28ff;
}

.about-divider {
    border: none;
    border-top: 1px solid #e0e0e0;
    margin: 2.5rem 0;
}

.about-details {
    display: grid;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-section h4 {
    font-family: var(--font-sans);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #0c28ff;
    margin: 0 0 0.8rem 0;
    font-weight: 600;
}

.detail-section p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #333;
    margin: 0;
}

.about-contact {
    margin-top: 2rem;
}

.about-contact a {
    color: #0c28ff;
    text-decoration: none;
    font-size: 0.9rem;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-contact a:hover {
    border-bottom: 1px solid #0c28ff;
}

@media (max-width: 900px) {
    .about-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 2rem;
    }

    .about-left {
        position: static;
    }

    .about-image {
        max-width: 300px;
    }
}