/* --------------------------------------------------
   PORTFOLIO — CUSTOM STYLES
-------------------------------------------------- */

:root {
    --paper: #f3f0e9;
    --ink: #171714;
    --muted: #69675f;
    --line: #d6d1c7;

    --accent: #493c68;
    --accent-soft: #ded8ea;

    --earth: #7a513a;
    --earth-soft: #d8c4b7;
}

/* Base */

html {
    scroll-behavior: smooth;
}

body {
    background: var(--paper);
    color: var(--ink);
}

/* --------------------------------------------------
   HERO
-------------------------------------------------- */

.portfolio-hero {
    min-height: 100vh;
    background: var(--paper);
    display: flex;
    flex-direction: column;
    padding: 0 5vw;
    position: relative;
}

.portfolio-nav {
    min-height: 90px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 2rem;
    border-bottom: 1px solid var(--line);
}

.nav-name {
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a,
.nav-cta {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.9rem;
}

.nav-links a:hover,
.nav-name:hover {
    color: var(--accent);
}

.nav-cta {
    justify-self: end;
    border: 1px solid var(--ink);
    border-radius: 999px;
    padding: 0.75rem 1.25rem;
    transition: 0.25s ease;
}

.nav-cta:hover {
    color: var(--paper);
    background: var(--ink);
}

/* Main hero content */

.hero-content {
    flex: 1;
    width: min(1200px, 100%);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 3rem;
}

.availability {
    width: fit-content;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 2.5rem;
    background: rgba(255, 255, 255, 0.35);
}

.availability-dot {
    display: inline-block;
    width: 0.55rem;
    height: 0.55rem;
    margin-right: 0.45rem;
    border-radius: 50%;
    background: #3fa660;
}

.hero-role {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.75rem;
    color: var(--accent);
    margin-bottom: 1.3rem;
}

.portfolio-hero h1 {
    max-width: 1150px;
    /* font-size: clamp(4rem, 8.3vw, 8.7rem); */
    font-size: clamp(3.8rem, 7.9vw, 8.25rem);
    line-height: 0.89;
    letter-spacing: -0.06em;
    font-weight: 400;
    margin: 0;
}

.portfolio-hero h1 span {
    color: var(--accent);
}

.hero-statement {
    width: 100%;
    margin-top: 2.5rem;
    display: grid;
    grid-template-columns: 1.6fr 0.9fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-top: 1.35rem;
    border-top: 1px solid var(--line);
}


.hero-statement p {
    margin: 0;
    color: var(--ink);
    font-size: 0.78rem;
    line-height: 1.45;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}


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

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 1.4rem;
    border-radius: 999px;
    text-decoration: none;
    transition: 0.25s ease;
}

.primary-action {
    background: var(--ink);
    color: var(--paper);
}

.primary-action:hover {
    background: var(--accent);
    color: white;
}

.secondary-action {
    color: var(--ink);
    border: 1px solid var(--line);
}

.secondary-action:hover {
    border-color: var(--ink);
}

.hero-index {
    margin-top: auto;
    padding-top: 4rem;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.13em;
}

/* --------------------------------------------------
   SELECTED WORK
-------------------------------------------------- */

.work-intro {
    background: var(--ink);
    color: var(--paper);
    padding: 8rem 5vw 7rem;
}

.work-intro-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.section-label {
    color: var(--accent-soft);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 3rem;
}

.work-heading {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 6rem;
    align-items: end;
}

.work-heading h2 {
    color: var(--paper);
    font-size: clamp(3rem, 6vw, 6rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
    font-weight: 400;
    margin: 0;
}

.work-heading p {
    color: #b8b4aa;
    line-height: 1.75;
    margin: 0;
    max-width: 420px;
}

@media screen and (max-width: 850px) {

    .work-heading {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .work-intro {
        padding: 6rem 1.5rem;
    }

}


/* --------------------------------------------------
   MORE WORK
-------------------------------------------------- */

.project-number {
    color: var(--accent);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    margin-bottom: 1.5rem;
}

.more-work-intro {
    text-align: left;
    max-width: 1200px;
    margin: 0 auto;
    padding: 6rem 5vw 3rem;
}

.more-work-intro h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
}

.more-work-intro p:last-child {
    max-width: 560px;
    color: var(--muted);
    line-height: 1.7;
}

.more-work-intro .section-label {
    color: var(--earth);
}

/* --------------------------------------------------
 ABOUT
-------------------------------------------------- */

.about-section {
    background: var(--paper);
    color: var(--ink);
    padding: 9rem 5vw;
}

.about-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) 1.2fr;
    gap: clamp(4rem, 7vw, 7rem);
    align-items: center;
}

.about-visual img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    border-radius: 1.25rem;
}

.about-visual-tag {
    margin: 1rem 0 0;
    color: var(--earth);
    font-size: 0.68rem;
    line-height: 1.5;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.about-content h2 {
    max-width: 760px;
    margin: 0;
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.about-content h2 span {
    color: var(--accent);
}

.about-copy {
    margin-top: 3rem;
}

.about-copy p {
    max-width: 620px;
    margin: 0 0 1.6rem;
    color: var(--muted);
    line-height: 1.8;
}

.about-copy .about-lead {
    color: var(--ink);
    font-size: 1.15rem;
    line-height: 1.7;
}


/* --------------------------------------------------
 CAPABILITIES
-------------------------------------------------- */

.capabilities-section {
    background: var(--ink);
    color: var(--paper);
    padding: 9rem 5vw;
}

.capabilities-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.capabilities-section .section-label {
    color: var(--accent-soft);
}

.capabilities-header {
    max-width: 1000px;
    margin-bottom: 5rem;
}

.capabilities-header h2 {
    margin: 0;
    color: var(--paper);
    font-size: clamp(3rem, 5.4vw, 5.8rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.capabilities-header h2 span {
    color: var(--accent-soft);
}

.capabilities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid #3b3934;
    border-bottom: 1px solid #3b3934;
}

.capability-card {
    padding: 3rem 2rem;
    border-right: 1px solid #3b3934;
}

.capability-card:last-child {
    border-right: none;
}

.capability-number {
    margin-bottom: 2rem;
    color: var(--accent-soft);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
}

.capability-card h3 {
    min-height: 4.5rem;
    margin: 0 0 2rem;
    color: var(--paper);
    font-size: 1.55rem;
    line-height: 1.15;
}

.capability-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.capability-card li {
    color: #b8b4aa;
    padding: 0.65rem 0;
    border-bottom: 1px solid #2e2c28;
}


/* --------------------------------------------------
 HOW I WORK
-------------------------------------------------- */

.process-section {
    background: var(--paper);
    color: var(--ink);
    padding: 9rem 5vw;
}

.process-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.process-section .section-label {
    color: var(--earth);
}

.process-header {
    max-width: 900px;
    margin-bottom: 5rem;
}

.process-header h2 {
    margin: 0;
    font-size: clamp(3rem, 5.2vw, 5.6rem);
    font-weight: 400;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.process-header h2 span {
    color: var(--earth);
}

.process-header > p:last-child {
    max-width: 650px;
    margin: 2rem 0 0;
    color: var(--muted);
    line-height: 1.75;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-step {
    padding: 2.75rem 2rem;
    border-right: 1px solid var(--line);
}

.process-step:last-child {
    border-right: none;
}

.process-number {
    margin: 0 0 2rem;
    color: var(--earth);
    font-size: 0.68rem;
    letter-spacing: 0.18em;
}

.process-step h3 {
    margin: 0 0 1rem;
    font-size: 1.6rem;
    font-weight: 400;
}

.process-step p:last-child {
    margin: 0;
    color: var(--muted);
    line-height: 1.7;
}


/* --------------------------------------------------
 CONTACT
-------------------------------------------------- */

.contact-section {
    background: var(--paper);
    color: var(--ink);
    padding: 9rem 5vw 3rem;
}

.contact-inner {
    width: min(1200px, 100%);
    margin: 0 auto;
}

.contact-section h2 {
    max-width: 1000px;
    margin: 0 0 2.5rem;
    font-size: clamp(3.5rem, 7vw, 7rem);
    font-weight: 400;
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.contact-section h2 span {
    color: var(--accent);
}

.contact-copy {
    max-width: 640px;
    margin-bottom: 4rem;
    color: var(--muted);
    font-size: 1.1rem;
    line-height: 1.75;
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 7rem;
}

.contact-link {
    color: var(--ink);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 1rem 1.5rem;
    transition: 0.25s ease;
}

.contact-link:hover {
    background: var(--ink);
    color: var(--paper);
    border-color: var(--ink);
}

.contact-footer {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

/* --------------------------------------------------
   RESPONSIVE HERO
-------------------------------------------------- */

@media screen and (max-width: 850px) {

    .portfolio-nav {
        grid-template-columns: 1fr auto;
    }

    .nav-links {
        display: none;
    }

    .portfolio-hero h1 {
        font-size: clamp(3rem, 12vw, 5.5rem);
    }

    .hero-intro {
        font-size: 1rem;
    }

    .about-inner {
    grid-template-columns: 1fr;
    gap: 3rem;
}

.about-content {
    order: 1;
}

.about-visual {
    order: 2;
    max-width: 520px;
}

.about-copy {
    margin-top: 2.5rem;
}

.capabilities-grid {
    grid-template-columns: 1fr;
}

.capability-card {
    border-right: none;
    border-bottom: 1px solid #3b3934;
}

.capability-card:last-child {
    border-bottom: none;
}

.capability-card h3 {
    min-height: auto;
}

.process-grid {
    grid-template-columns: 1fr 1fr;
}

.process-step:nth-child(2) {
    border-right: none;
}

.process-step:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
}

}

@media screen and (max-width: 600px) {

    .portfolio-hero {
        padding: 0 1.5rem;
    }

    .portfolio-nav {
        min-height: 75px;
    }

    .hero-content {
        padding-top: 4rem;
    }

    .hero-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-index {
        gap: 2rem;
        flex-direction: column;
    }

    .contact-links {
    flex-direction: column;
    align-items: stretch;
}

.contact-link {
    text-align: center;
}

.contact-footer {
    flex-direction: column;
}

.process-grid {
    grid-template-columns: 1fr;
}

.process-step {
    border-right: none;
    border-bottom: 1px solid var(--line);
}

.process-step:last-child {
    border-bottom: none;
}

}

/* =========================================================
   FEATURED WORKS
   Fan-style interactive project stage
   ========================================================= */

.featured-work-stage {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    padding: 6.5rem 0 5rem;
    background: #11110f;
    color: #f3f0e9;
}


/* ---------- Heading ---------- */

.featured-stage-header {
    position: relative;
    z-index: 10;
    width: min(1100px, 90%);
    margin: 0 auto 3.5rem;
    text-align: center;
}

.featured-stage-header .section-label {
    margin-bottom: 1rem;
    color: rgba(243, 240, 233, 0.45);
    font-size: 0.78rem;
    letter-spacing: 0.24em;
    text-transform: uppercase;
}

.featured-stage-header h2 {
    margin: 0;
    color: #f3f0e9;
    font-family: inherit;
    font-size: clamp(2.8rem, 6vw, 5.4rem);
    font-weight: 300;
    line-height: 0.95;
    letter-spacing: -0.05em;
}


/* ---------- Stage ---------- */

.featured-stage-canvas {
    position: relative;
    width: min(1550px, 100%);
    height: clamp(520px, 46vw, 690px);
    margin: 0.25rem auto 0;
    isolation: isolate;
}


/* atmospheric glow behind cards */

.featured-stage-glow {
    position: absolute;
    z-index: 0;
    left: 50%;
    top: 46%;
    width: min(900px, 70vw);
    height: min(700px, 58vw);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(
            circle at 42% 34%,
            rgba(116, 102, 145, 0.48),
            transparent 38%
        ),
        radial-gradient(
            circle at 63% 42%,
            rgba(173, 143, 74, 0.34),
            transparent 34%
        ),
        radial-gradient(
            circle at 52% 72%,
            rgba(107, 55, 70, 0.32),
            transparent 42%
        );
    filter: blur(58px);
    opacity: 0.88;
    pointer-events: none;
}


/* ---------- Shared card ---------- */

.featured-card {
    position: absolute;
    display: block;
    overflow: hidden;
    border-radius: 1.25rem;
    background: #222;
    box-shadow:
        0 30px 70px rgba(0, 0, 0, 0.34),
        0 10px 28px rgba(0, 0, 0, 0.22);
    text-decoration: none;
    transform-origin: center bottom;
    transition:
        transform 0.45s cubic-bezier(.2, .8, .2, 1),
        filter 0.45s ease,
        opacity 0.45s ease,
        box-shadow 0.45s ease;
}


.featured-card > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    transform: scale(1.08);

    transition:
        transform 0.55s cubic-bezier(.2, .8, .2, 1),
        filter 0.45s ease;
}

/* ---------- Fan positions ---------- */

.featured-card-1 {
    z-index: 1;
    left: -2%;
    top: 17%;
    width: 30%;
    height: 68%;
    transform: rotate(-2.5deg);
}

.featured-card-2 {
    z-index: 2;
    left: 17%;
    top: 13%;
    width: 30%;
    height: 71%;
    transform: rotate(-1deg);
}

.featured-card-3 {
    z-index: 5;
    left: 50%;
    top: 8%;
    width: 31%;
    height: 77%;
    transform: translateX(-50%);
}

.featured-card-4 {
    z-index: 2;
    right: 17%;
    top: 13%;
    width: 30%;
    height: 71%;
    transform: rotate(1deg);
}

.featured-card-5 {
    z-index: 1;
    right: -2%;
    top: 17%;
    width: 30%;
    height: 68%;
    transform: rotate(2.5deg);
}


/* ---------- Hover details ---------- */

.featured-card-details {
    position: absolute;
    z-index: 4;
    left: 7%;
    right: 7%;
    bottom: 7%;
    padding: 1.6rem 1.65rem 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 1.7rem;
    background: rgba(18, 18, 16, 0.68);
    color: #f3f0e9;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    opacity: 0;
    transform: translateY(1.2rem);
    transition:
        opacity 0.3s ease,
        transform 0.35s cubic-bezier(.2, .8, .2, 1);
}

.featured-card-number {
    display: block;
    margin-bottom: 0.65rem;
    color: rgba(243, 240, 233, 0.62);
    font-size: 0.65rem;
    letter-spacing: 0.18em;
}

.featured-card-details h3 {
    margin: 0 0 0.8rem;
    color: #f3f0e9;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2vw, 2.3rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.featured-card-details p {
    margin: 0;
    color: rgba(243, 240, 233, 0.78);
    font-size: 0.82rem;
    line-height: 1.55;
}

.featured-card-view {
    position: absolute;
    top: -3.8rem;
    right: 0;
    display: inline-flex;
    width: 3.5rem;
    height: 3.5rem;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(18, 18, 16, 0.76);
    color: #f3f0e9;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}


/* ---------- Desktop interaction ---------- */

@media (hover: hover) and (pointer: fine) {

    .featured-card:hover {
        z-index: 20;
        transform:
            translateY(-1.6rem)
            scale(1.07)
            rotate(0deg);
        box-shadow:
            0 42px 95px rgba(0, 0, 0, 0.46),
            0 14px 34px rgba(0, 0, 0, 0.28);
    }

    .featured-card-3:hover {
        transform:
            translateX(-50%)
            translateY(-1.6rem)
            scale(1.07);
    }


    .featured-card:hover > img {
    transform: scale(1.13);
    filter: brightness(0.72);
}

    .featured-card:hover .featured-card-details {
        opacity: 1;
        transform: translateY(0);
    }
}


/* =========================================================
   FEATURED WORKS — TABLET
   ========================================================= */

@media screen and (max-width: 980px) {

    .featured-work-stage {
        padding-top: 5rem;
    }

    .featured-stage-canvas {
        height: 620px;
    }

    .featured-card-1 {
        left: -5%;
        width: 34%;
    }

    .featured-card-2 {
        left: 15%;
        width: 34%;
    }

    .featured-card-3 {
        width: 38%;
    }

    .featured-card-4 {
        right: 15%;
        width: 34%;
    }

    .featured-card-5 {
        right: -5%;
        width: 34%;
    }
}


/* =========================================================
   FEATURED WORKS — ATMOSPHERIC LIGHT PASS
   ========================================================= */

.featured-work-stage {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    background: #0e0d0c;
}

/* Large, diffused color atmosphere behind the composition */
.featured-work-stage::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;

    background:
        radial-gradient(
            circle at 47% 48%,
            rgba(78, 63, 108, 0.22) 0%,
            rgba(78, 63, 108, 0.10) 20%,
            transparent 44%
        ),
        radial-gradient(
            circle at 62% 65%,
            rgba(156, 79, 55, 0.16) 0%,
            rgba(156, 79, 55, 0.07) 22%,
            transparent 46%
        ),
        radial-gradient(
            circle at 35% 68%,
            rgba(61, 91, 86, 0.13) 0%,
            transparent 42%
        );

    filter: blur(22px);
    transform: scale(1.08);
    animation: featuredAtmosphere 14s ease-in-out infinite alternate;
}

/* Softer moving glow focused behind the cards */

.featured-stage-glow {
    position: absolute;
    left: 50%;
    top: 54%;
    width: min(82vw, 1120px);
    height: min(56vw, 720px);
    transform: translate(-50%, -50%);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;

    background:
        radial-gradient(
            circle at 35% 38%,
            rgba(105, 84, 145, 0.42) 0%,
            rgba(105, 84, 145, 0.18) 27%,
            transparent 52%
        ),
        radial-gradient(
            circle at 63% 62%,
            rgba(177, 83, 55, 0.34) 0%,
            rgba(177, 83, 55, 0.14) 30%,
            transparent 57%
        ),
        radial-gradient(
            circle at 49% 55%,
            rgba(59, 103, 92, 0.22) 0%,
            transparent 48%
        );

    filter: blur(68px);
    opacity: 0.92;
    animation: featuredGlow 10s ease-in-out infinite alternate;
}

/* Keep all actual content above the atmospheric layers */
.featured-stage-header,
.featured-stage-canvas,
.featured-stage-footer {
    position: relative;
    z-index: 1;
}

/* Keep the project cards above the glow */
.stage-project {
    position: absolute;
    z-index: 2;
}

@keyframes featuredAtmosphere {
    0% {
        transform: scale(1.08) translate3d(-1.5%, -1%, 0);
        opacity: 0.72;
    }

    50% {
        transform: scale(1.13) translate3d(1%, 1.5%, 0);
        opacity: 0.95;
    }

    100% {
        transform: scale(1.09) translate3d(2%, -1%, 0);
        opacity: 0.78;
    }
}

@keyframes featuredGlow {
    0% {
        transform: translate(-52%, -49%) scale(0.95);
        opacity: 0.58;
    }

    100% {
        transform: translate(-48%, -53%) scale(1.08);
        opacity: 0.88;
    }
}

/* Respect visitors who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .featured-work-stage::before,
    .featured-stage-glow {
        animation: none;
    }
}


/* =========================================================
   FEATURED WORKS — CREATIVEANS GEOMETRY PASS
   ========================================================= */

/* Give the title and cards more intentional breathing room */
.featured-stage-canvas {
    width: min(1380px, 100%);
    height: clamp(520px, 43vw, 650px);
    margin-top: 1.75rem;
}


/* Rebuild the fan as a tighter centered composition */
.featured-card-1 {
    left: 3%;
    top: 20%;
    width: 27%;
    height: 64%;
    transform: rotate(-3deg);
}

.featured-card-2 {
    left: 20%;
    top: 15%;
    width: 28%;
    height: 69%;
    transform: rotate(-1.5deg);
}

.featured-card-3 {
    left: 50%;
    top: 10%;
    width: 29%;
    height: 74%;
    transform: translateX(-50%);
}

.featured-card-4 {
    right: 20%;
    top: 15%;
    width: 28%;
    height: 69%;
    transform: rotate(1.5deg);
}

.featured-card-5 {
    right: 3%;
    top: 20%;
    width: 27%;
    height: 64%;
    transform: rotate(3deg);
}


/* Keep the hover dramatic without letting it collide with the heading */
@media (hover: hover) and (pointer: fine) {

    .featured-card:hover {
        transform:
            translateY(-0.8rem)
            scale(1.045)
            rotate(0deg);
    }

    .featured-card-3:hover {
        transform:
            translateX(-50%)
            translateY(-0.8rem)
            scale(1.045);
    }
}


/* Tablet refinement */
@media screen and (max-width: 980px) {

    .featured-stage-canvas {
        height: 590px;
    }

    .featured-card-1 {
        left: -1%;
        width: 30%;
    }

    .featured-card-2 {
        left: 18%;
        width: 31%;
    }

    .featured-card-3 {
        width: 33%;
    }

    .featured-card-4 {
        right: 18%;
        width: 31%;
    }

    .featured-card-5 {
        right: -1%;
        width: 30%;
    }
}

/* =========================================================
   FEATURED WORKS — FINAL MOBILE RESET
   Must remain AFTER all desktop geometry rules
   ========================================================= */

@media screen and (max-width: 700px) {

    .featured-work-stage {
        min-height: auto;
        padding: 4.5rem 1.25rem 5rem;
    }

   .featured-stage-header {
    width: 100%;
}

.featured-stage-header .section-label {
    margin-bottom: 1rem;
}

.featured-stage-header h2 {
    font-family: inherit;
    font-style: normal;
    font-size: clamp(3rem, 13vw, 4.4rem);
    line-height: 0.92;
    letter-spacing: -0.055em;
}

    .featured-stage-canvas {
        width: 100%;
        height: auto;
        margin-top: 3rem;

        display: grid;
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }

    .featured-card,
    .featured-card-1,
    .featured-card-2,
    .featured-card-3,
    .featured-card-4,
    .featured-card-5 {
        position: relative;

        left: auto;
        right: auto;
        top: auto;
        bottom: auto;

        width: 100%;
        height: auto;

        aspect-ratio: 4 / 3;

        transform: none;
        border-radius: 1.2rem;
    }

    .featured-card-3 {
        transform: none;
    }

    .featured-card > img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top center;
        transform: scale(1.05);
    }

    .featured-card-details {
    position: absolute;
    left: 7%;
    right: 7%;
    bottom: 5%;

    opacity: 1;
    visibility: visible;
    transform: none;

    padding: 1rem 1.05rem 1.05rem;
    border-radius: 1.4rem;
}

.featured-card-details .featured-card-number {
    margin-bottom: 0.45rem;
    font-size: 0.58rem;
}

.featured-card-details h3 {
    margin-bottom: 0.6rem;
    font-size: clamp(1.25rem, 6.5vw, 1.6rem);
    line-height: 1.05;
}

.featured-card-details p {
    font-size: 0.74rem;
    line-height: 1.45;
}

    .featured-card-view {
        display: none;
    }

    .featured-card__cover-meta {
        display: none;
    }

    .featured-stage-glow {
        display: none;
    }
}

/* =========================================================
   FEATURED WORKS — TYPOGRAPHY + CROPPED COVER TEST
   ========================================================= */

/* Bring the section heading back into the portfolio's
   existing typographic language */
.featured-stage-header h2 {
    font-family: inherit;
    font-style: normal;
    font-weight: 400;

    font-size: clamp(3.4rem, 5.4vw, 5.9rem);
    line-height: 0.92;
    letter-spacing: -0.055em;

    color: #f3f0e9;
}

.featured-stage-header .section-label {
    margin-bottom: 1.35rem;
    letter-spacing: 0.17em;
    color: rgba(243, 240, 233, 0.48);
}

/* =========================================================
   SELECTED WORK — CUSTOM COVER ART
   ========================================================= */

/* Custom artwork is already composed as cover art,
   so show each asset cleanly instead of aggressively cropping it. */
.featured-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1);
}


/* Subtle movement only — do not distort the designed cover art. */
@media (hover: hover) and (pointer: fine) {

    .featured-card:hover > img {
        transform: scale(1.035);
        filter: brightness(0.72);
    }
}

/* =========================================================
   HERO — EDITORIAL MOTION + FINAL POLISH
   ========================================================= */

/* Keep the opening statement grounded in black. */
.portfolio-hero h1 {
    color: var(--ink);
}

/* Give only the "in motion" portion an editorial moving gradient. */
.portfolio-hero h1 span {
    display: block;

    background: linear-gradient(
        105deg,
        #493c68 0%,
        #73516f 20%,
        #9b625e 38%,
        #a77452 54%,
        #65768e 72%,
        #5c477a 88%,
        #493c68 100%
    );

    background-size: 240% 240%;
    background-position: 0% 50%;

    -webkit-background-clip: text;
    background-clip: text;

    -webkit-text-fill-color: transparent;
    color: transparent;

    animation: editorial-gradient 14s ease-in-out infinite;
}

@keyframes editorial-gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

/* Subtle entrance animation — movement without spectacle. */
.hero-content {
    animation: hero-reveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-reveal {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Respect users who prefer reduced motion. */
@media (prefers-reduced-motion: reduce) {

    .hero-content,
    .portfolio-hero h1 span {
        animation: none;
    }

    .portfolio-hero h1 span {
        background-position: 50% 50%;
    }
}

/* =========================================================
   HERO — FINAL DENSITY + CTA POLISH
   ========================================================= */

/* Tighten the desktop hero rhythm without restructuring it. */
.hero-content {
    padding-top: 5rem;
    padding-bottom: 2.25rem;
}

.hero-statement {
    margin-top: 2.25rem;
}

.hero-actions {
    margin-top: 2rem;
}

/* Keep the secondary CTA available, but visually subordinate. */
.secondary-action {
    opacity: 0.72;
    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.secondary-action:hover,
.secondary-action:focus-visible {
    opacity: 1;
    transform: translateY(-2px);
}

/* Mobile hero cleanup. */
@media screen and (max-width: 600px) {

    .hero-content {
        padding-top: 3.75rem;
        padding-bottom: 2rem;
    }

    .portfolio-hero h1 span {
        background-size: 300% 300%;
    }

    .hero-index {
        justify-content: flex-start;
    }

    .hero-index span:last-child {
        display: none;
    }
}


/* =========================================================
   PORTFOLIO — PROJECT SHOWCASE
   ========================================================= */

.portfolio-projects {
  padding: clamp(4rem, 8vw, 7rem) 5vw;
  background: #11110f;
  color: #f3f0e9;
}

.portfolio-projects-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-projects-heading {
  margin-bottom: 2.75rem;
}

.portfolio-projects-heading .section-label {
  color: #b3a2c9;
  margin-bottom: 1rem;
}

.portfolio-projects-heading h2 {
  color: #f3f0e9;
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  font-weight: 400;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.portfolio-projects-heading > p:last-child {
  max-width: 660px;
  color: #c3bfb7;
  line-height: 1.65;
  margin-bottom: 0;
}

.portfolio-projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.portfolio-project {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #41403b;
  border-radius: 1rem;
  background: #1b1b19;
}

.portfolio-project-art {
  min-height: 255px;
  padding: 1.65rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow: hidden;
}

.portfolio-project-art .art-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.19em;
  font-weight: 600;
}

.portfolio-project-art strong {
  display: block;
  font-size: clamp(2rem, 4vw, 3.75rem);
  letter-spacing: -0.07em;
  line-height: 1;
  overflow-wrap: anywhere;
  font-weight: 600;
}

.portfolio-project-art .art-bottom {
  font-size: 0.82rem;
  line-height: 1.4;
}

.art-heirloom {
  background: #f6f6f4;
  color: #171717;
}

.art-northstar {
  background: #3d2959;
  color: #fff7df;
}

.art-creator {
  background: #e8e0d5;
  color: #24211e;
}

.art-stylequity {
  background: #5b374b;
  color: #fff1e5;
}

.portfolio-project-info {
  padding: 1.6rem;
}

.portfolio-project-category {
  color: #bbabbf;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  margin: 0 0 0.5rem;
}

.portfolio-project-info h3 {
  color: #f3f0e9;
  font-size: 1.55rem;
  line-height: 1.2;
  font-weight: 500;
  margin: 0 0 0.7rem;
}

.portfolio-project-info > p:not(.portfolio-project-category) {
  color: #d0ccc4;
  font-size: 0.86rem;
  line-height: 1.6;
  margin: 0 0 1.15rem;
}

.portfolio-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.4rem;
}

.portfolio-project-tags span {
  border: 1px solid #55514f;
  border-radius: 999px;
  padding: 0.25rem 0.7rem;
  color: #e8e4dc;
  font-size: 0.65rem;
  line-height: 1.5;
}

.portfolio-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.portfolio-project-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border: 1px solid #a9a39a;
  border-radius: 999px;
  color: #f3f0e9;
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.3;
  transition: background 0.2s, color 0.2s;
}

.portfolio-project-links a:first-child {
  background: #f3f0e9;
  color: #171714;
}

.portfolio-project-links a:hover,
.portfolio-project-links a:focus-visible {
  background: #b7a5c9;
  border-color: #b7a5c9;
  color: #171714;
}

.portfolio-project-links a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .portfolio-projects-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-project-art {
    min-height: 220px;
  }

  .portfolio-project-info {
    padding: 1.35rem;
  }
}


/* Improve title contrast on dark project artwork */

.portfolio-project-art.art-northstar strong,
.portfolio-project-art.art-stylequity strong {
    color: #fff7df;
}


/* =========================================================
   PORTFOLIO — WEB EXPERIENCES
   ========================================================= */

.portfolio-web-work {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(4rem, 8vw, 7rem) 5vw;
}

.portfolio-web-work-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.portfolio-web-work-heading {
  margin-bottom: 2.5rem;
}

.portfolio-web-work-heading .section-label {
  color: var(--earth);
  margin-bottom: 1rem;
}

.portfolio-web-work-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.75rem);
  letter-spacing: -0.055em;
  line-height: 1.05;
  font-weight: 400;
  color: var(--ink);
  margin: 0 0 1rem;
}

.portfolio-web-work-heading > p:last-child {
  max-width: 650px;
  color: var(--muted);
  line-height: 1.65;
}

.portfolio-web-work-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}

.portfolio-web-card {
  background: #fffdf8;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  overflow: hidden;
  min-width: 0;
}

.portfolio-web-card > img,
.portfolio-web-placeholder {
  display: block;
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center;
}

.portfolio-web-placeholder {
  display: flex;
  justify-content: center;
  flex-direction: column;
  padding: 1.5rem;
  background: #613b31;
  color: #fff8eb;
}

.portfolio-web-placeholder strong {
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.05em;
}

.portfolio-web-placeholder span {
  margin-top: 0.4rem;
  font-size: 0.85rem;
}

.portfolio-web-placeholder.water-ice {
  background: #8a4465;
}

.portfolio-web-placeholder.foodist {
  background: #273b34;
}

.portfolio-web-card-info {
  padding: 1.15rem 1.25rem;
}

.portfolio-web-card-info h3 {
  color: var(--ink);
  font-weight: 500;
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 0.45rem;
}

.portfolio-web-card-info p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.5;
  margin: 0;
}

.portfolio-web-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1rem;
}

.portfolio-web-card-links a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 900px) {
  .portfolio-web-work-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .portfolio-web-work-grid {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   SECTION LABEL CONTRAST — ABOUT & CONTACT
   ========================================================= */

.about-section .section-label,
.contact-section .section-label {
    color: #80543e;
}


/* =========================================================
   SECTION SPACING REFINEMENTS
   ========================================================= */

.about-section {
    padding: clamp(3.5rem, 5vw, 5rem) 5vw
             clamp(2.5rem, 3.5vw, 3.5rem);
}

.process-section {
    padding: clamp(2.5rem, 3.5vw, 3.5rem) 5vw;
}

.contact-section {
    padding: clamp(2.5rem, 3.5vw, 3.5rem) 5vw 3rem;
}


/* =========================================================
   WEB EXPERIENCES → CAPABILITIES SPACING
   ========================================================= */

.portfolio-web-work {
    padding-bottom: 2.5rem;
}

.capabilities-section {
    padding-top: 3rem;
}


/* =========================================================
   HOW I WORK — DARK SECTION
   ========================================================= */

.process-section {
    background: var(--ink);
    color: var(--paper);
}

/* Headings */
.process-section .process-header h2,
.process-section .process-step h3 {
    color: var(--paper);
}

/* Lavender heading accent */
.process-section .process-header h2 span {
    color: #d5c5e4;
}

/* Section label and step numbers */
.process-section .section-label,
.process-section .process-number {
    color: #d0b9df;
}

/* Supporting text */
.process-section .process-header > p:last-child,
.process-section .process-step p:last-child {
    color: #c5c1bc;
}

/* Dividing lines */
.process-section .process-grid,
.process-section .process-step {
    border-color: rgba(255, 255, 255, 0.18);
}


/* Application screenshots inside existing project artwork panels */

.portfolio-project-art {
  position: relative;
  overflow: hidden;
}

.portfolio-project-art .portfolio-project-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  z-index: 10;
}


.portfolio-web-card-info a.portfolio-web-link {
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.4;
}
