/* ==========================
   Fonts
========================== */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&family=Great+Vibes&family=Playfair+Display:ital,wght@0,400;0,500;1,400;1,500&display=swap');

/* ==========================
   Reset & Base
========================== */
html {
    scroll-behavior: smooth;
}

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

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0d0d0d;
    color: #ffffff;
    line-height: 1.6;
}

.cursive {
    font-family: 'Great Vibes', cursive;
}

/* ==========================
   Custom Cursor Dot
========================== */
.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ffffff;
    border: 1.5px solid transparent;
    pointer-events: none;
    z-index: 9999;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    mix-blend-mode: normal;
    will-change: transform;
    transform: translate3d(calc(var(--x, 0px) - 50%), calc(var(--y, 0px) - 50%), 0);
    transition: opacity 0.3s ease, width 0.25s ease, height 0.25s ease,
        background 0.25s ease, border-color 0.25s ease;
}

.cursor-dot::after {
    content: '↗';
    font-family: 'Poppins', sans-serif;
    color: #c9a876;
    font-size: 0;
    transition: font-size 0.25s ease;
}

/* Hovering a project card: large stroke-only ring, no fill */
.cursor-dot.cursor-dot-large {
    width: 70px;
    height: 70px;
    background: transparent;
    border-color: #c9a876;
    mix-blend-mode: difference;
}

/* Hovering any other link: stroke ring with an arrow icon */
.cursor-dot.cursor-dot-link {
    width: 50px;
    height: 50px;
    background: transparent;
    border-color: #c9a876;
    mix-blend-mode: difference;
}

.cursor-dot.cursor-dot-link::after {
    font-size: 18px;
}

@media (pointer: coarse) {
    .cursor-dot {
        display: none;
    }
}

/* ==========================
   Hero Header
========================== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px 40px;
    background: #0d0d0d;
    overflow: hidden;
}

.hero-nav,
.hero-main,
.hero-meta {
    position: relative;
    z-index: 1;
}

/* --- Nav row --- */
.hero-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.hero-brand {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 1.4rem;
    text-transform: none;
    letter-spacing: 0;
}

.hero-brand span {
    color: #999999;
    font-style: normal;
    font-family: 'Poppins', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 0.14em;
    margin-left: 6px;
}

.hero-links {
    display: flex;
    gap: 36px;
    list-style: none;
}

.hero-links li {
    color: #aaaaaa;
}

.hero-links a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.hero-links a:hover {
    color: #ffffff;
}

.hero-links li.active {
    color: #ffffff;
}

.hero-links li.active a {
    color: #ffffff;
}

.hero-links li.active::before {
    content: '• ';
    color: #c9a876;
}

/* --- Center content: Building Designs / image / that Stand Out --- */
.hero-main {
    flex: 1;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 12px;
    padding: 40px 0;
}

.hero-main1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0;
    animation: hero-text-in 1.1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.hero-heading {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.2rem, 4.5vw, 3.8rem);
    line-height: 1.15;
    white-space: nowrap;
}

.hero-sub {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.4vw, 1.05rem);
    color: #cccccc;
}

.image-section {
    display: inline-block;
    width: 0;
    height: 380px;
    overflow: hidden;
    border-radius: 4px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
    flex-shrink: 0;
    opacity: 0;
    transition: width 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

/* Hover-to-reveal only applies on wider (desktop) screens */
@media (min-width: 769px) {
    .hero-main:hover .image-section {
        width: 420px;
        opacity: 1;
    }
}

/* Below desktop width, always show the image regardless of pointer type */
@media (max-width: 768px) {
    .image-section {
        width: 80%;
        height: 45vh;
        opacity: 1;
    }

    .image-section img {
        object-position: center 15%;
    }
}

@keyframes hero-text-in {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-section img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(15%) contrast(1.05);
    display: block;
}

/* --- Floating project photos: pop out from the split alongside the portrait --- */
.floating-gallery {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

.fp-wrap {
    position: absolute;
    opacity: 0;
    will-change: transform, opacity;
    transform: translate(var(--popX, 0), var(--popY, 0)) scale(0.5);
    transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.55s ease;
}

@media (min-width: 769px) {
    .hero-main:hover .fp-wrap {
        opacity: 1;
        transform: translate(0, 0) scale(1);
    }
}

@media (max-width: 768px) {
    .floating-gallery {
        display: none;
    }
}

.floating-pic {
    border-radius: 6px;
    overflow: hidden;
    opacity: 0.6;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.5);
    will-change: transform;
    animation: float-drift 22s ease-in-out infinite;
}

.floating-pic img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(30%) contrast(1.05);
}

.fp-1 {
    top: 14%;
    left: 8%;
    --popX: 200px;
    --popY: 120px;
    --tx: 22px;
    --ty: 16px;
    --tr: 3deg;
}

.fp-1 .floating-pic {
    width: 150px;
    height: 110px;
    animation-delay: 0s;
}

.fp-2 {
    top: 64%;
    left: 14%;
    --popX: 180px;
    --popY: -140px;
    --tx: -18px;
    --ty: 20px;
    --tr: -3deg;
}

.fp-2 .floating-pic {
    width: 110px;
    height: 85px;
    animation-delay: 3s;
}

.fp-3 {
    top: 16%;
    right: 10%;
    --popX: -200px;
    --popY: 110px;
    --tx: -20px;
    --ty: 14px;
    --tr: -3deg;
}

.fp-3 .floating-pic {
    width: 130px;
    height: 165px;
    animation-delay: 6s;
}

.fp-4 {
    top: 66%;
    right: 16%;
    --popX: -180px;
    --popY: -150px;
    --tx: 16px;
    --ty: -18px;
    --tr: 3deg;
}

.fp-4 .floating-pic {
    width: 95px;
    height: 130px;
    animation-delay: 2s;
}

.fp-5 {
    top: 40%;
    left: 3%;
    --popX: 240px;
    --popY: -10px;
    --tx: 14px;
    --ty: -12px;
    --tr: 2deg;
}

.fp-5 .floating-pic {
    width: 125px;
    height: 95px;
    animation-delay: 5s;
}

@keyframes float-drift {
    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(var(--tx, 20px), var(--ty, 15px)) rotate(var(--tr, 3deg));
    }
}

/* --- Bottom meta bar --- */
.hero-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #888888;
}

.hero-tag {
    color: #cccccc;
}

/* ==========================
   Work Grid (Project List)
========================== */
.work-grid {
    width: 100%;
    margin: 0;
    padding: 0px 10px;
}

.work-grid-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 40px;
    text-align: center;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.project-card {
    display: block;
    text-decoration: none;
    color: inherit;
    opacity: 0;
    transform: translateY(50px);
    will-change: transform, opacity;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.project-card:nth-child(3n+2) {
    transition-delay: 0.1s;
}

.project-card:nth-child(3n+3) {
    transition-delay: 0.2s;
}

.project-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    /* border-radius: 4px; */
    background: #1a1a1a;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(1.05);
    transition: transform 0.6s ease;
}

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

.project-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 2px 0;
    font-size: 0.78rem;
}

.project-index {
    color: #888888;
    font-variant-numeric: tabular-nums;
}

.project-name {
    flex: 1;
    color: #ffffff;
    font-weight: 500;
}

.project-link {
    color: #aaaaaa;
    white-space: nowrap;
}

.project-card:hover .project-link {
    color: #c9a876;
}

/* ==========================
   About Section
========================== */
.about-section {
    width: 100%;
    padding: 120px 48px;
    background: #0d0d0d;
}

.about-content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 70px;
}

.about-text {
    flex: 1;
    max-width: 480px;
}

.about-title {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-weight: 400;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    margin-bottom: 24px;
}

.about-paragraph {
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    line-height: 1.8;
    color: #cccccc;
}

.about-cta {
    display: inline-block;
    margin-top: 32px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #c9a876;
    text-decoration: none;
    border-bottom: 1px solid #c9a876;
    padding-bottom: 4px;
    transition: color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.about-cta:hover {
    color: #ffffff;
    border-color: #ffffff;
    transform: translateX(4px);
}

.about-photo {
    flex-shrink: 0;
    width: 380px;
    height: 460px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.55);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(15%) contrast(1.05);
}

/* ==========================
   Page Content (Contact placeholder)
========================== */
.page-content {
    max-width: 1100px;
    margin: 0 auto;
    padding: 60px 40px;
}

/* ==========================
   Responsive
========================== */
@media (max-width: 768px) {
    .hero {
        padding: 24px 20px;
    }

    /* Mobile nav: brand on top, links on one line below */
    .hero-nav {
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .hero-brand {
        font-size: 1.5rem;
        white-space: nowrap;
    }

    .hero-links {
        justify-content: center;
        gap: 22px;
        font-size: 0.8rem;
    }

    .hero-links li {
        white-space: nowrap;
    }

    .hero-main {
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: center;
        gap: 20px;
        min-height: 100vh;
        width: 100%;
    }

    .hero-heading {
        white-space: normal;
        font-size: clamp(2.6rem, 9vw, 4.6rem);
    }

    .hero-meta {
        font-size: 0.62rem;
    }

    .hero-meta span:nth-child(3) {
        display: none;
    }

    .project-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0;
    }

    .work-grid {
        padding: 60px 24px;
    }

    .about-section {
        padding: 70px 24px;
    }

    .about-content {
        flex-direction: column-reverse;
        gap: 40px;
        text-align: center;
    }

    .about-text {
        max-width: 100%;
    }

    .about-photo {
        width: 100%;
        max-width: 340px;
        height: 400px;
    }

    .footer-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .footer-socials {
        flex-wrap: wrap;
    }
}

/* ==========================
   Footer
========================== */
.site-footer {
    position: relative;
    width: 100%;
    background: #000000;
    color: #f5f5f0;
    padding: 60px 48px 40px;
    overflow: hidden;
}

.footer-inner {
    max-width: 1300px;
    margin: 0 auto;
}

.footer-meta-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.8rem;
    letter-spacing: 0.02em;
    color: #999999;
}

.footer-meta-col {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.footer-meta-center {
    align-items: center;
    text-align: center;
}

.footer-meta-right {
    align-items: flex-end;
    text-align: right;
}

.footer-meta-row a {
    color: #999999;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.footer-meta-row a:hover {
    color: #c9a876;
}

.footer-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-style: normal;
    /* text-transform: lowercase; */
    font-size: clamp(3.2rem, 9vw, 8rem);
    line-height: 1;
    letter-spacing: -0.02em;
    color: #f5f5f0;
    text-align: center;
    margin: 20px 0 36px;
}

.footer-credit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-top: 36px;
    padding-top: 24px;
    border-top: 1px solid #262626;
    font-family: 'Poppins', sans-serif;
    font-size: 0.72rem;
    color: #777777;
}

.footer-socials {
    display: flex;
    gap: 22px;
}

.footer-socials a {
    color: #777777;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.3s ease;
}

.footer-socials a:hover {
    color: #c9a876;
}

/* Scroll-triggered rise animation, used across the work title, about section, and footer */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1), transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up.is-visible {
    opacity: 1;
    transform: translateY(0);
}

h2.footer-name.reveal-up {
    transition-delay: 0.1s;
}

.footer-meta-row.reveal-up:nth-of-type(3) {
    transition-delay: 0.2s;
}

.footer-credit-row.reveal-up {
    transition-delay: 0.3s;
}

.about-paragraph.reveal-up {
    transition-delay: 0.1s;
}

.about-cta.reveal-up {
    transition-delay: 0.2s;
}

.about-photo.reveal-up {
    transition-delay: 0.15s;
}

@media (max-width: 768px) {
    .site-footer {
        padding: 50px 24px 30px;
    }

    .footer-meta-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 14px;
    }

    .footer-meta-center,
    .footer-meta-right {
        align-items: center;
        text-align: center;
    }

    .footer-credit-row {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }

    .footer-socials {
        flex-wrap: wrap;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .project-grid {
        grid-template-columns: 1fr;
    }
}

/* Very small phones: tighten the nav links */
@media (max-width: 380px) {
    .hero-links {
        gap: 16px;
        font-size: 0.72rem;
    }
}