
/* =========================================================
   MARIS WANJIRU — EDITORIAL TECHNOLOGY PORTFOLIO
   Palette: ink, parchment, violet and antique gold
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,600;0,700;1,500;1,600&display=swap');

:root {
    --ink: #101212;
    --ink-soft: #191b1d;
    --parchment: #f3eee2;
    --parchment-dark: #e8dfce;
    --white: #fffaf0;
    --violet: #b28aff;
    --violet-deep: #8e62d8;
    --gold: #d9a84e;
    --gold-dark: #a87a2d;
    --muted: #85827d;
    --line-dark: rgba(255, 255, 255, 0.14);
    --line-light: rgba(28, 25, 21, 0.16);
    --serif: "Playfair Display", Georgia, serif;
    --sans: "DM Sans", Arial, sans-serif;
    --mono: "DM Mono", monospace;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 30px;
}

body {
    margin: 0;
    padding: 0;
    background: var(--parchment);
    color: var(--ink);
    font-family: var(--sans);
    -webkit-font-smoothing: antialiased;
}

body, button, input, textarea {
    font-family: var(--sans);
}

* {
    box-sizing: border-box;
}

::selection {
    background: var(--violet);
    color: var(--ink);
}

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

img {
    display: block;
    max-width: 100%;
}

.portfolio {
    width: 100%;
    overflow: hidden;
}

/* =========================================================
   HERO — DARK CINEMATIC OPENING
   ========================================================= */

.hero {
    position: relative;
    isolation: isolate;
    min-height: 650px;
    display: grid;
    grid-template-columns: 0.95fr 1.05fr;
    align-items: center;
    gap: 20px;
    padding: 95px 8% 85px;
    background: radial-gradient(ellipse at 72% 45%, rgba(120, 73, 157, 0.18), transparent 38%), radial-gradient(ellipse at 95% 60%, rgba(190, 125, 44, 0.15), transparent 32%), var(--ink);
    color: var(--white);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: 0.2;
        pointer-events: none;
        background-image: radial-gradient(rgba(255,255,255,.6) 0.7px, transparent 0.7px);
        background-size: 23px 23px;
        mask-image: linear-gradient(90deg, transparent, black 40%, black);
    }

    .hero::after {
        content: "M.";
        position: absolute;
        right: 4%;
        bottom: -135px;
        z-index: -1;
        color: rgba(255,255,255,0.025);
        font-family: var(--serif);
        font-size: clamp(240px, 34vw, 500px);
        line-height: 1;
        pointer-events: none;
    }

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 570px;
    animation: hero-enter 1s ease both;
}

.eyebrow {
    display: block;
    margin-bottom: 24px;
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 400;
    letter-spacing: 0.18em;
    line-height: 1.7;
    text-transform: uppercase;
}

.hero .eyebrow {
    color: var(--gold);
}

.hero h1 {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(64px, 8vw, 112px);
    font-weight: 500;
    letter-spacing: -0.075em;
    line-height: 0.91;
}

    .hero h1 span {
        color: var(--violet);
        font-style: italic;
    }

.hero-roles {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 0 0 24px;
    color: #e4dfd7;
    font-size: 11px;
    line-height: 1.8;
}

    .hero-roles i {
        color: var(--gold);
        font-size: 13px;
        font-style: normal;
    }

.hero-description {
    max-width: 390px;
    margin: 0 0 30px;
    color: #bcbcb8;
    font-size: 14px;
    line-height: 1.9;
}

.explore-link {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    padding: 6px 20px 6px 6px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 100px;
    color: var(--white);
    font-size: 12px;
    transition: background .3s ease, border-color .3s ease, transform .3s ease;
}

    .explore-link:hover {
        border-color: var(--violet);
        background: rgba(178,138,255,.12);
        transform: translateY(-3px);
    }

.explore-arrow {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 50%;
    background: var(--violet);
    color: var(--ink);
    font-size: 21px;
    transition: transform .3s ease;
}

.explore-link:hover .explore-arrow {
    transform: rotate(45deg);
}

/* Hero artwork */

.hero-art {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 600px;
    justify-self: end;
    padding: 22px 0;
}

.art-frame {
    position: relative;
    width: 100%;
    height: 440px;
    overflow: visible;
}

    .art-frame::before {
        content: "";
        position: absolute;
        inset: -22px 18px 22px -18px;
        border: 1px solid rgba(178,138,255,.45);
        border-radius: 48% 48% 4px 4px;
        transform: rotate(-4deg);
    }

    .art-frame::after {
        content: "";
        position: absolute;
        top: -20px;
        right: 8%;
        width: 130px;
        height: 130px;
        border: 1px solid rgba(217,168,78,.65);
        border-radius: 50%;
        pointer-events: none;
    }

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 35%;
    border-radius: 48% 48% 3px 3px;
    filter: saturate(.72) contrast(1.05);
    mask-image: linear-gradient(to bottom, black 68%, transparent 100%);
}

.art-frame .image-stamp {
    position: absolute;
    top: 20px;
    left: -18px;
    z-index: 2;
    display: grid;
    width: 60px;
    height: 60px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    background: var(--ink);
    color: var(--gold);
    font-family: var(--serif);
    font-size: 27px;
    font-style: italic;
    transform: rotate(-12deg);
}

.floating-note {
    position: absolute;
    right: -35px;
    bottom: 48px;
    z-index: 3;
    width: 205px;
    padding: 20px 22px;
    background: var(--parchment);
    color: var(--ink);
    box-shadow: 0 15px 50px rgba(0,0,0,.22);
    transform: rotate(4deg);
    transition: transform .4s ease;
}

    .floating-note:hover {
        transform: rotate(0) translateY(-5px);
    }

    .floating-note span {
        font-family: var(--mono);
        font-size: 8px;
        letter-spacing: .13em;
    }

    .floating-note p {
        margin: 12px 0 0;
        font-family: var(--serif);
        font-size: 17px;
        line-height: 1.5;
    }

    .floating-note em {
        color: var(--violet-deep);
    }

.art-caption {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    color: #a5a19a;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .08em;
}

.caption-top {
    margin-bottom: 15px;
}

.caption-bottom {
    margin-top: 13px;
}

.hero-index {
    position: absolute;
    bottom: 24px;
    left: 8%;
    color: #777973;
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .12em;
}

.hero-orbit {
    position: absolute;
    z-index: -1;
    border: 1px solid rgba(178,138,255,.23);
    border-radius: 50%;
    pointer-events: none;
}

.hero-orbit-one {
    top: -230px;
    right: 5%;
    width: 500px;
    height: 500px;
}

.hero-orbit-two {
    right: 15%;
    bottom: -280px;
    width: 600px;
    height: 600px;
    border-color: rgba(217,168,78,.17);
}

/* =========================================================
   ABOUT — PARCHMENT EDITORIAL SECTION
   ========================================================= */

.about-section {
    position: relative;
    display: grid;
    grid-template-columns: .85fr 1fr 1fr;
    align-items: center;
    gap: 55px;
    padding: 100px 8%;
    background: radial-gradient(circle at 13% 40%, rgba(217,168,78,.12), transparent 20%), var(--parchment);
}

.about-art {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.collage-label {
    position: absolute;
    top: 12px;
    left: 0;
    z-index: 3;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .13em;
    writing-mode: vertical-rl;
}

.collage-circle {
    position: absolute;
    border-radius: 50%;
}

.circle-purple {
    top: 46px;
    right: 4px;
    width: 175px;
    height: 175px;
    background: var(--violet);
    mix-blend-mode: multiply;
}

.circle-gold {
    right: -7px;
    bottom: 38px;
    width: 100px;
    height: 100px;
    background: var(--gold);
    mix-blend-mode: multiply;
}

.collage-image {
    position: relative;
    z-index: 1;
    width: 76%;
    height: 295px;
    overflow: hidden;
    clip-path: polygon(8% 0, 90% 4%, 100% 80%, 76% 100%, 0 88%);
    transform: rotate(-3deg);
}

    .collage-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        filter: grayscale(1) contrast(1.1);
        transition: filter .5s ease, transform .6s ease;
    }

    .collage-image:hover img {
        filter: grayscale(.2);
        transform: scale(1.06);
    }

.collage-number {
    position: absolute;
    top: 25px;
    right: 14px;
    z-index: 2;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 40px;
    font-style: italic;
}

.collage-handwriting {
    position: absolute;
    bottom: 5px;
    left: 10px;
    z-index: 3;
    color: var(--violet-deep);
    font-family: var(--serif);
    font-size: 19px;
    font-style: italic;
    transform: rotate(-9deg);
}

.about-copy {
    max-width: 410px;
}

.about-section .eyebrow,
.journey-section .eyebrow {
    color: var(--gold-dark);
}

.about-copy h2,
.section-heading h2,
.journey-column h2 {
    margin: 0 0 24px;
    font-family: var(--serif);
    font-size: clamp(32px, 3.4vw, 46px);
    font-weight: 500;
    letter-spacing: -.055em;
    line-height: 1.12;
}

    .about-copy h2 span,
    .section-heading h2 span,
    .journey-column h2 span {
        color: var(--violet-deep);
        font-style: italic;
    }

.about-copy p {
    margin: 0 0 15px;
    color: #56534e;
    font-size: 13px;
    line-height: 1.9;
}

.about-copy .about-signature {
    margin-top: 25px;
    color: var(--violet-deep);
    font-family: var(--serif);
    font-size: 17px;
    font-style: italic;
}

.about-disciplines {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding-left: 38px;
    border-left: 1px solid var(--line-light);
}

.discipline {
    display: grid;
    grid-template-columns: 52px 1fr;
    align-items: center;
    gap: 18px;
}

.discipline-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 1px solid #a49a88;
    border-radius: 50%;
    font-size: 20px;
    transition: color .3s ease, background .3s ease, transform .3s ease;
}

.discipline:hover .discipline-icon {
    background: var(--ink);
    color: var(--gold);
    transform: rotate(-10deg);
}

.discipline h3 {
    margin: 0 0 7px;
    font-size: 13px;
    font-weight: 700;
}

.discipline p {
    margin: 0;
    color: #69645d;
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   PROJECTS — ALTERNATING, EDITORIAL COMPOSITIONS
   ========================================================= */

.projects-section {
    padding: 100px 8% 110px;
    background: radial-gradient(ellipse at 20% 50%, rgba(91,56,123,.12), transparent 35%), var(--ink);
    color: var(--white);
}

.section-heading {
    display: grid;
    grid-template-columns: 1fr .8fr auto;
    align-items: end;
    gap: 45px;
    margin-bottom: 45px;
}

    .section-heading .eyebrow {
        color: var(--gold);
    }

    .section-heading h2 {
        margin-bottom: 0;
        font-size: clamp(38px, 4vw, 53px);
    }

        .section-heading h2 span {
            color: var(--violet);
        }

    .section-heading > p {
        max-width: 310px;
        margin: 0 0 5px;
        color: #aaa9a3;
        font-size: 12px;
        line-height: 1.9;
    }

.project {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    min-height: 350px;
    margin-bottom: 32px;
    border: 1px solid var(--line-dark);
    background: rgba(255,255,255,.025);
    transition: border-color .4s ease, transform .4s ease;
}

    .project:hover {
        border-color: rgba(178,138,255,.65);
        transform: translateY(-4px);
    }

.project-mental-health {
    grid-template-columns: .85fr 1.15fr;
}

.project-visual {
    position: relative;
    min-height: 350px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dilemma-visual {
    background: radial-gradient(ellipse at 50% 45%, rgba(120,70,155,.55), transparent 44%), linear-gradient(140deg, #171e29, #272037 50%, #111413);
}

    .dilemma-visual::before,
    .dilemma-visual::after {
        content: "";
        position: absolute;
        width: 270px;
        height: 270px;
        border: 1px solid rgba(178,138,255,.3);
        border-radius: 50%;
        transition: transform .7s ease;
    }

    .dilemma-visual::after {
        width: 340px;
        height: 340px;
        border-color: rgba(217,168,78,.25);
    }

.project:hover .dilemma-visual::before {
    transform: scale(1.15) rotate(20deg);
}

.project:hover .dilemma-visual::after {
    transform: scale(.9) rotate(-15deg);
}

.dilemma-symbol {
    position: relative;
    z-index: 1;
    color: var(--violet);
    font-family: var(--serif);
    font-size: 190px;
    font-style: italic;
    line-height: 1;
    text-shadow: 0 0 70px rgba(178,138,255,.3);
    transition: transform .5s ease;
}

.project:hover .dilemma-symbol {
    transform: rotate(-8deg) scale(1.06);
}

.project-index,
.visual-caption {
    position: absolute;
    z-index: 2;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .12em;
}

.project-index {
    top: 22px;
    left: 22px;
    color: var(--gold);
}

.visual-caption {
    right: 20px;
    bottom: 22px;
    left: 20px;
    color: rgba(255,255,255,.65);
    text-align: center;
}

.project-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 45px clamp(25px, 4vw, 58px);
}

.project-category {
    margin-bottom: 20px;
    color: var(--gold);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: .1em;
    line-height: 1.8;
}

.project-info h3 {
    margin: 0 0 20px;
    font-family: var(--serif);
    font-size: clamp(30px, 3.2vw, 43px);
    font-weight: 500;
    letter-spacing: -.04em;
    line-height: 1.08;
}

.project-info > p {
    max-width: 360px;
    margin: 0 0 26px;
    color: #b6b4af;
    font-size: 12px;
    line-height: 1.9;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 22px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(178,138,255,.6);
    color: var(--white);
    font-size: 11px;
    transition: color .3s ease, gap .3s ease;
}

    .project-link span {
        color: var(--violet);
        font-size: 17px;
    }

    .project-link:hover {
        gap: 32px;
        color: var(--violet);
    }

/* Second project artwork */

.mental-visual {
    background: radial-gradient(ellipse at 70% 30%, rgba(178,138,255,.25), transparent 35%), radial-gradient(ellipse at 30% 75%, rgba(37,130,122,.3), transparent 45%), #161d20;
}

    .mental-visual::before {
        content: "";
        position: absolute;
        inset: 15% 10%;
        border: 1px solid rgba(255,255,255,.14);
        transform: rotate(-5deg);
    }

.data-art {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: center;
    gap: 12px;
    width: 65%;
    height: 180px;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.2);
    background: rgba(10,15,17,.55);
    backdrop-filter: blur(8px);
    transform: rotate(-4deg);
    transition: transform .5s ease;
}

.project:hover .data-art {
    transform: rotate(0deg) scale(1.04);
}

.data-bar {
    flex: 1;
    max-width: 38px;
    min-height: 20px;
    background: linear-gradient(to top, var(--violet-deep), var(--violet));
    box-shadow: 0 0 20px rgba(178,138,255,.14);
    animation: bar-rise 1.2s ease both;
}

.bar-one {
    height: 38%;
}

.bar-two {
    height: 70%;
    animation-delay: .1s;
}

.bar-three {
    height: 54%;
    animation-delay: .2s;
}

.bar-four {
    height: 92%;
    animation-delay: .3s;
}

.bar-five {
    height: 63%;
    animation-delay: .4s;
}

/* =========================================================
   EXPERIENCE, SKILLS AND EDUCATION
   ========================================================= */

.journey-section {
    display: grid;
    grid-template-columns: 1fr .9fr 1fr;
    gap: 45px;
    padding: 95px 8%;
    background: radial-gradient(circle at 100% 0%, rgba(217,168,78,.12), transparent 25%), var(--parchment);
}

.journey-column {
    min-width: 0;
}

    .journey-column + .journey-column {
        padding-left: 35px;
        border-left: 1px solid var(--line-light);
    }

    .journey-column h2 {
        margin-bottom: 35px;
        font-size: clamp(30px, 3vw, 39px);
    }

.experience-entry {
    position: relative;
    margin: 0 0 32px 5px;
    padding: 0 0 0 22px;
    border-left: 1px solid #c6b6a2;
}

.timeline-dot {
    position: absolute;
    top: 3px;
    left: -5px;
    width: 9px;
    height: 9px;
    border: 2px solid var(--parchment);
    border-radius: 50%;
    background: var(--violet-deep);
    box-shadow: 0 0 0 1px var(--violet-deep);
}

.entry-date {
    display: block;
    margin-bottom: 9px;
    color: var(--gold-dark);
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .08em;
    line-height: 1.8;
}

.experience-entry h3 {
    margin: 0 0 5px;
    font-size: 13px;
    line-height: 1.5;
}

.entry-place {
    margin: 0 0 10px !important;
    color: var(--violet-deep) !important;
    font-size: 11px !important;
}

.experience-entry > p {
    margin: 0;
    color: #676159;
    font-size: 11px;
    line-height: 1.8;
}

/* Skills */

.skills-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

    .skills-list span {
        padding: 10px 13px;
        border: 1px solid rgba(25,25,25,.2);
        border-radius: 2px;
        background: rgba(255,255,255,.2);
        font-size: 10px;
        transition: background .3s ease, color .3s ease, border-color .3s ease, transform .3s ease;
    }

        .skills-list span:hover {
            border-color: var(--violet-deep);
            background: var(--ink);
            color: var(--white);
            transform: translateY(-3px);
        }

.skills-note,
.education-note {
    margin-top: 28px;
    color: var(--violet-deep);
    font-family: var(--serif);
    font-size: 15px;
    font-style: italic;
    line-height: 1.7;
}

/* Education */

.education-entry {
    display: grid;
    grid-template-columns: 42px 1fr;
    align-items: start;
    gap: 14px;
    padding: 20px 0;
    border-top: 1px solid var(--line-light);
    border-bottom: 1px solid var(--line-light);
}

.education-symbol {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border: 1px solid var(--gold);
    border-radius: 50%;
    color: var(--gold-dark);
    font-size: 21px;
}

.education-entry h3 {
    margin: 0 0 10px;
    font-size: 13px;
}

.education-entry p {
    margin: 0 0 7px;
    color: #69645d;
    font-size: 11px;
    line-height: 1.7;
}

/* =========================================================
   CONTACT / FOOTER
   ========================================================= */

.contact-section {
    padding: 80px 8% 0;
    background: radial-gradient(ellipse at 85% 20%, rgba(102,64,144,.19), transparent 40%), var(--ink);
    color: var(--white);
}

.contact-intro {
    max-width: 600px;
}

    .contact-intro .eyebrow {
        color: var(--gold);
    }

    .contact-intro h2 {
        margin: 0 0 22px;
        font-family: var(--serif);
        font-size: clamp(45px, 6.5vw, 80px);
        font-weight: 500;
        letter-spacing: -.06em;
        line-height: 1.05;
    }

        .contact-intro h2 span {
            color: var(--violet);
            font-style: italic;
        }

    .contact-intro > p {
        max-width: 380px;
        margin: 0;
        color: #b6b4af;
        font-size: 12px;
        line-height: 1.9;
    }

.contact-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 25px;
    margin: 55px 0 75px;
}

.contact-link {
    display: grid;
    grid-template-columns: 45px 1fr 20px;
    align-items: center;
    gap: 15px;
    padding: 20px 0;
    border-top: 1px solid var(--line-dark);
    border-bottom: 1px solid var(--line-dark);
    font-size: 12px;
    overflow-wrap: anywhere;
    transition: border-color .3s ease;
}

    .contact-link:hover {
        border-color: var(--violet);
    }

.contact-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50%;
    color: var(--violet);
    font-size: 17px;
}

.contact-link small {
    display: block;
    margin-bottom: 7px;
    color: #a5a19a;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .1em;
}

.contact-arrow {
    color: var(--gold);
    font-size: 18px;
    transition: transform .3s ease;
}

.contact-link:hover .contact-arrow {
    transform: translate(3px, -3px);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 0;
    border-top: 1px solid var(--line-dark);
    color: #93938e;
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: .08em;
}

    .footer-bottom a {
        color: var(--violet);
        transition: color .3s ease;
    }

        .footer-bottom a:hover {
            color: var(--gold);
        }

/* =========================================================
   MOTION
   ========================================================= */

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

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

@keyframes bar-rise {
    from {
        transform: scaleY(.1);
        transform-origin: bottom;
        opacity: .2;
    }

    to {
        transform: scaleY(1);
        transform-origin: bottom;
        opacity: 1;
    }
}

/* =========================================================
   TABLETS
   ========================================================= */

@media (max-width: 1100px) {
    .hero {
        padding-right: 6%;
        padding-left: 6%;
        grid-template-columns: .95fr 1.05fr;
    }

        .hero h1 {
            font-size: clamp(60px, 7vw, 85px);
        }

    .art-frame {
        height: 390px;
    }

    .about-section {
        grid-template-columns: .8fr 1fr;
        gap: 40px;
        padding-right: 6%;
        padding-left: 6%;
    }

    .about-disciplines {
        grid-column: 1 / -1;
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        padding: 30px 0 0;
        border-top: 1px solid var(--line-light);
        border-left: 0;
    }

    .discipline {
        grid-template-columns: 42px 1fr;
        gap: 12px;
    }

    .discipline-icon {
        width: 42px;
        height: 42px;
    }

    .journey-section {
        grid-template-columns: 1fr 1fr;
        padding-right: 6%;
        padding-left: 6%;
    }

    .education-column {
        grid-column: 1 / -1;
        padding-top: 35px;
        border-top: 1px solid var(--line-light);
        border-left: 0 !important;
    }
}

/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 35px;
        padding: 65px 7% 70px;
    }

        .hero h1 {
            font-size: clamp(67px, 15vw, 95px);
        }

    .hero-description {
        max-width: 420px;
    }

    .hero-art {
        width: 88%;
        justify-self: center;
        margin: 0 auto 10px;
    }

    .art-frame {
        height: min(95vw, 400px);
        max-height: 400px;
    }

    .floating-note {
        right: -25px;
        bottom: 35px;
        width: 175px;
        padding: 15px;
    }

        .floating-note p {
            font-size: 15px;
        }

    .hero-index {
        left: 7%;
        bottom: 23px;
    }

    .hero-orbit-one {
        right: -250px;
    }

    .about-section {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 75px 7%;
    }

    .about-art {
        width: min(100%, 360px);
        margin: 0 auto;
    }

    .about-copy {
        max-width: none;
    }

    .about-disciplines {
        grid-column: auto;
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .projects-section {
        padding: 75px 7%;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-bottom: 35px;
    }

        .section-heading > p {
            max-width: 420px;
        }

    .project,
    .project-mental-health {
        grid-template-columns: 1fr;
    }

        .project-mental-health .project-info {
            order: 2;
        }

        .project-mental-health .project-visual {
            order: 1;
        }

    .project-visual {
        min-height: 290px;
    }

    .project-info {
        padding: 32px 25px 38px;
    }

        .project-info h3 {
            font-size: 37px;
        }

    .journey-section {
        grid-template-columns: 1fr;
        gap: 45px;
        padding: 75px 7%;
    }

    .journey-column + .journey-column,
    .education-column {
        grid-column: auto;
        padding: 35px 0 0;
        border-top: 1px solid var(--line-light);
        border-left: 0 !important;
    }

    .journey-column h2 {
        font-size: 38px;
    }

    .contact-section {
        padding: 70px 7% 0;
    }

    .contact-details {
        grid-template-columns: 1fr;
        gap: 15px;
        margin: 40px 0 50px;
    }

    .footer-bottom {
        flex-wrap: wrap;
        line-height: 1.8;
    }
}

/* Smaller phones */

@media (max-width: 380px) {
    .hero h1 {
        font-size: 60px;
    }

    .hero-roles {
        font-size: 10px;
    }

    .art-caption {
        font-size: 7px;
    }

    .floating-note {
        right: -15px;
        width: 155px;
    }

    .project-visual {
        min-height: 240px;
    }

    .dilemma-symbol {
        font-size: 145px;
    }
}

/* Respect reduced-motion accessibility preferences */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

/* Scroll reveal */
.reveal-ready {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity .75s ease var(--reveal-delay, 0ms), transform .75s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}

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

/* Subtle project-art interaction */
.project-visual {
    transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg));
    transition: transform .25s ease, border-color .4s ease;
}

/* Keep motion accessible */
@media (prefers-reduced-motion: reduce) {
    .reveal-ready {
        opacity: 1;
        transform: none;
    }
}

/* ==========================================
   MARIS' PORTFOLIO — DECORATIVE MAGIC
   Add this at the very bottom of site.css
   ========================================== */

:root {
    --magic-pink: #f2a6c8;
    --magic-blue: #9edcff;
    --magic-lilac: #c9a7ff;
    --magic-gold: #e6bd70;
}

/* Smooth, polished movement */
html {
    scroll-behavior: smooth;
}

::selection {
    background: #c9a7ff;
    color: #101212;
}

/* Decorative sparkle layer */
.hero,
.about,
.projects,
.journey,
.contact {
    position: relative;
    isolation: isolate;
}

    .hero::before,
    .about::before,
    .projects::before,
    .journey::before,
    .contact::before {
        content: "✦";
        position: absolute;
        top: 12%;
        right: 7%;
        color: var(--magic-gold);
        font-size: 1.5rem;
        opacity: 0.65;
        pointer-events: none;
        animation: sparkleFloat 5s ease-in-out infinite;
        z-index: -1;
    }

    .about::before {
        content: "✧";
        top: 18%;
        right: 5%;
        color: var(--magic-lilac);
        font-size: 2rem;
        animation-delay: -2s;
    }

    .projects::before {
        content: "✳";
        top: 8%;
        right: 9%;
        color: var(--magic-pink);
        animation-delay: -1s;
    }

    .journey::before {
        content: "✧";
        top: 15%;
        right: 8%;
        color: var(--magic-blue);
        animation-delay: -3s;
    }

    .contact::before {
        content: "✦";
        top: 18%;
        right: 12%;
        color: var(--magic-gold);
        font-size: 2rem;
        animation-delay: -1.5s;
    }

@keyframes sparkleFloat {
    0%, 100% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0.35;
    }

    50% {
        transform: translateY(-14px) rotate(18deg) scale(1.2);
        opacity: 0.9;
    }
}

/* Colourful glow around the hero image */
.hero-image,
.hero-visual,
.hero-portrait {
    transition: transform 0.6s ease, filter 0.6s ease;
}

    .hero-image:hover,
    .hero-visual:hover,
    .hero-portrait:hover {
        filter: drop-shadow(0 0 12px rgba(201, 167, 255, 0.4)) drop-shadow(0 0 24px rgba(230, 189, 112, 0.2));
    }

/* Elegant rainbow ink for major headings */
.hero h1,
.about h2,
.projects h2,
.journey h2,
.contact h2 {
    background: linear-gradient( 110deg, var(--magic-gold) 0%, var(--magic-pink) 32%, var(--magic-lilac) 66%, var(--magic-blue) 100% );
    background-size: 220% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: rainbowInk 9s ease-in-out infinite alternate;
}

@keyframes rainbowInk {
    from {
        background-position: 0% center;
    }

    to {
        background-position: 100% center;
    }
}

/* Underline flourish on interactive links */
a:not(.button):not(.btn) {
    text-decoration-color: rgba(201, 167, 255, 0.45);
    text-underline-offset: 5px;
    transition: color 0.25s ease, text-decoration-color 0.25s ease;
}

    a:not(.button):not(.btn):hover {
        text-decoration-color: var(--magic-gold);
    }

/* Gold shimmer on buttons */
button,
.btn,
.button,
a.btn,
a.button {
    transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

    button:hover,
    .btn:hover,
    .button:hover,
    a.btn:hover,
    a.button:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 24px rgba(178, 138, 255, 0.22);
        filter: brightness(1.08);
    }

/* Decorative details on project artwork */
.project-visual {
    overflow: hidden;
    transition: box-shadow 0.45s ease, border-radius 0.45s ease;
}

    .project-visual:hover {
        box-shadow: 0 0 0 1px rgba(230, 189, 112, 0.45), 0 16px 40px rgba(142, 98, 216, 0.18);
    }

/* Glowing separators */
hr {
    border: 0;
    height: 1px;
    background: linear-gradient( 90deg, transparent, var(--magic-lilac), var(--magic-gold), var(--magic-pink), transparent );
    opacity: 0.7;
}

/* Keep animations comfortable for reduced-motion users */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}

/* =========================================
   3D COSMIC STARFIELD
   ========================================= */

.hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
}

    /* Deep-space atmosphere */
    .hero::before {
        content: "";
        position: absolute;
        inset: -30%;
        z-index: -2;
        pointer-events: none;
        background: radial-gradient( ellipse at 25% 30%, rgba(142, 98, 216, 0.25), transparent 35% ), radial-gradient( ellipse at 75% 60%, rgba(230, 189, 112, 0.13), transparent 30% );
        animation: cosmicDrift 18s ease-in-out infinite alternate;
    }

    /* Star layers */
    .hero::after {
        content: "✦     ·      ✧        ·     ✦      ·       ✧";
        position: absolute;
        inset: 0;
        z-index: -1;
        pointer-events: none;
        color: #f3d99b;
        font-size: clamp(14px, 2vw, 25px);
        letter-spacing: 1.2rem;
        line-height: 5rem;
        white-space: pre-wrap;
        overflow-wrap: anywhere;
        text-shadow: 0 0 7px rgba(255, 226, 160, 0.9), 0 0 20px rgba(178, 138, 255, 0.8);
        opacity: 0.7;
        animation: starfieldFloat 14s ease-in-out infinite alternate;
    }

/* 3D motion */
@keyframes cosmicDrift {
    0% {
        transform: translate3d(-2%, -1%, 0) rotate(-3deg) scale(1);
    }

    100% {
        transform: translate3d(2%, 2%, 0) rotate(3deg) scale(1.12);
    }
}

@keyframes starfieldFloat {
    0% {
        transform: perspective(700px) translate3d(0, 0, -30px) rotateX(4deg) rotateY(-5deg);
        opacity: 0.35;
    }

    50% {
        opacity: 0.85;
    }

    100% {
        transform: perspective(700px) translate3d(-12px, -22px, 40px) rotateX(-5deg) rotateY(8deg);
        opacity: 0.65;
    }
}

/* Floating, dimensional project artwork */
.project-visual {
    transform-style: preserve-3d;
    perspective: 1000px;
    animation: artworkFloat 7s ease-in-out infinite;
}

    .project-visual:nth-child(even) {
        animation-delay: -3.5s;
    }

@keyframes artworkFloat {
    0%, 100% {
        transform: translateY(0) rotateX(0deg) rotateY(0deg);
    }

    50% {
        transform: translateY(-9px) rotateX(2deg) rotateY(-2deg);
    }
}

/* Glowing star hover */
.hero a,
.project-visual {
    transition: filter 0.4s ease, box-shadow 0.4s ease;
}

    .hero a:hover,
    .project-visual:hover {
        filter: drop-shadow(0 0 12px rgba(201, 167, 255, 0.5));
    }

/* Respect reduced-motion settings */
@media (prefers-reduced-motion: reduce) {
    .hero::before,
    .hero::after,
    .project-visual {
        animation: none !important;
    }
}

/* ==============================================
   MARIS' PORTFOLIO — FULL PAGE MOTION PACK
   Animated sections, floating details, 3D depth
   ============================================== */

/* 1. ABOUT — floating images and dimensional depth */

.about img,
.about-image,
.about-visual,
.about-collage {
    animation: aboutFloat 7s ease-in-out infinite;
    transform-style: preserve-3d;
    will-change: transform;
}

@keyframes aboutFloat {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-1deg);
    }

    50% {
        transform: translate3d(0, -12px, 12px) rotate(1deg);
    }
}

/* 2. DISCIPLINES — rows glide and glow */

.discipline-row,
.discipline-item,
.disciplines a {
    position: relative;
    transition: transform 0.4s ease, color 0.4s ease, border-color 0.4s ease;
}

    .discipline-row:hover,
    .discipline-item:hover,
    .disciplines a:hover {
        transform: translateX(10px);
        border-color: rgba(230, 189, 112, 0.8);
    }

    .discipline-row::after,
    .discipline-item::after {
        content: "✧";
        display: inline-block;
        margin-left: 12px;
        color: #e6bd70;
        opacity: 0;
        transform: rotate(-45deg) scale(0.3);
        transition: all 0.35s ease;
    }

    .discipline-row:hover::after,
    .discipline-item:hover::after {
        opacity: 1;
        transform: rotate(45deg) scale(1.2);
    }

/* 3. PROJECTS — 3D floating artwork */

.project-visual {
    position: relative;
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: box-shadow 0.5s ease, border-radius 0.5s ease;
}

    .project-visual::after {
        content: "✦";
        position: absolute;
        top: 12px;
        right: 16px;
        z-index: 2;
        color: #f3d99b;
        font-size: 1.5rem;
        text-shadow: 0 0 14px rgba(230, 189, 112, 0.9);
        pointer-events: none;
        animation: orbitSparkle 5s ease-in-out infinite;
    }

    .project-visual:hover {
        box-shadow: 0 0 0 1px rgba(230, 189, 112, 0.55), 0 20px 50px rgba(142, 98, 216, 0.22);
    }

        .project-visual:hover::after {
            animation-duration: 1.2s;
        }

@keyframes orbitSparkle {
    0%, 100% {
        transform: translate3d(0, 0, 20px) rotate(0deg) scale(0.8);
    }

    50% {
        transform: translate3d(-8px, 10px, 50px) rotate(180deg) scale(1.3);
    }
}

/* Project links have a little launch effect */

.project a {
    transition: transform 0.3s ease, color 0.3s ease, letter-spacing 0.3s ease;
}

    .project a:hover {
        transform: translateX(5px);
        letter-spacing: 0.04em;
    }

/* 4. EXPERIENCE — animated timeline details */

.journey,
.experience {
    position: relative;
}

    .journey h3,
    .experience h3 {
        transition: color 0.35s ease, transform 0.35s ease;
    }

        .journey h3:hover,
        .experience h3:hover {
            color: #b28aff;
            transform: translateX(5px);
        }

    .journey li,
    .experience li {
        transition: transform 0.3s ease, color 0.3s ease;
    }

        .journey li:hover,
        .experience li:hover {
            transform: translateX(5px);
        }

/* 5. SKILLS — lively, interactive tags */

.skills span,
.skill-tags span,
.skills-list span,
.skill {
    display: inline-block;
    transition: transform 0.3s ease, box-shadow 0.3s ease, background-color 0.3s ease, color 0.3s ease;
}

    .skills span:hover,
    .skill-tags span:hover,
    .skills-list span:hover,
    .skill:hover {
        transform: translateY(-5px) rotate(-2deg) scale(1.05);
        box-shadow: 0 7px 18px rgba(178, 138, 255, 0.22);
    }

/* 6. EDUCATION — soft golden pulse */

.education,
.education-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

    .education:hover,
    .education-item:hover {
        transform: translateY(-5px);
        box-shadow: 0 12px 30px rgba(142, 98, 216, 0.12);
    }

    /* 7. SECTION HEADINGS — subtle dimensional entrance */

    .about h2,
    .projects h2,
    .journey h2,
    .experience h2,
    .skills h2,
    .education h2,
    .contact h2 {
        animation: headingGlow 6s ease-in-out infinite alternate;
    }

@keyframes headingGlow {
    from {
        text-shadow: 0 0 0 rgba(201, 167, 255, 0);
    }

    to {
        text-shadow: 0 0 18px rgba(201, 167, 255, 0.18);
    }
}

/* 8. CONTACT — floating cosmic glow */

.contact {
    isolation: isolate;
    overflow: hidden;
}

    .contact::after {
        content: "✧     ·      ✦       ·      ✧";
        position: absolute;
        bottom: 12%;
        left: 5%;
        z-index: -1;
        color: #e6bd70;
        font-size: 1.5rem;
        letter-spacing: 1rem;
        white-space: nowrap;
        pointer-events: none;
        opacity: 0.55;
        animation: contactStars 9s ease-in-out infinite alternate;
    }

@keyframes contactStars {
    from {
        transform: translate3d(-10px, 0, 0) rotate(-5deg);
        opacity: 0.2;
    }

    to {
        transform: translate3d(30px, -20px, 0) rotate(8deg);
        opacity: 0.8;
    }
}

.contact a:hover {
    filter: drop-shadow(0 0 9px rgba(201, 167, 255, 0.65));
}

/* 9. ALL SECTIONS — smooth scrolling and safe motion */

@media (prefers-reduced-motion: reduce) {
    .about img,
    .about-image,
    .about-visual,
    .about-collage,
    .project-visual::after,
    .about h2,
    .projects h2,
    .journey h2,
    .experience h2,
    .skills h2,
    .education h2,
    .contact h2,
    .contact::after {
        animation: none !important;
    }

    .discipline-row,
    .discipline-item,
    .project-visual,
    .journey li,
    .experience li {
        transition: none !important;
    }
}
.project-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: inherit;
    transition: transform 0.5s ease;
}

.dilemma-visual {
    overflow: hidden;
    position: relative;
}

    .dilemma-visual:hover .project-screenshot {
        transform: scale(1.04);
    }