
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Space+Grotesk:wght@500;600;700&display=swap');

/* =========================================
   VARIABLES
========================================= */

:root {
    --bg: #f5f3fb;
    --ink: #342c3b;
    --muted: #756b7a;
    --pink: #f4a4ca;
    --pink2: #f8c3dc;
    --lav: #e1d3fb;
    --card: #fffefa;
    --line: rgba(67,47,75,.1);
    --shadow: 0 14px 35px rgba(83,57,94,.11);
    --dark: #302a35;

    --theme-speed: .45s;
    --theme-ease: ease;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: 'DM Sans', sans-serif;
    overflow-x: hidden;
    cursor: none;

    transition:
        background-color var(--theme-speed) var(--theme-ease),
        color var(--theme-speed) var(--theme-ease);
}

a, button, input, textarea {
    cursor: none;
}

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

/* =========================================
   GLOBAL THEME TRANSITIONS
   Only color and surface properties.
   Never transition transforms or animations.
========================================= */

.site-header,
.nav,
.nav-link,
.section-card,
.project-card,
.research,
.contact-grid,
.skills-panel,
.contact-form input,
.contact-form textarea,
.footer,
.hero-tags span,
.hero-subtitle span,
.float-chip,
.button-outline,
.scroll-cue,
.eyebrow,
.hero-description,
.project-tags span,
.research-topics span {
    transition:
        background-color var(--theme-speed) var(--theme-ease),
        color var(--theme-speed) var(--theme-ease),
        border-color var(--theme-speed) var(--theme-ease),
        box-shadow var(--theme-speed) var(--theme-ease);
}

/* =========================================
   HEADER
========================================= */

.site-header {
    height: 66px;
    position: sticky;
    top: 12px;
    z-index: 50;
    margin: 12px auto 20px;
    width: min(1180px, calc(100% - 36px));
    padding: 0 22px;

    background: rgba(255,254,250,.83);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 24px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    box-shadow: 0 6px 24px rgba(74,52,88,.08);
}

.brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font: 700 14px 'Space Grotesk';
    white-space: nowrap;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 27px;
    height: 27px;
    border-radius: 9px;
    background: var(--pink);
    color: #fff;
    font-size: 16px;
}

.nav {
    display: flex;
    gap: 7px;
    align-items: center;
}

.nav-link {
    font-size: 12px;
    font-weight: 700;
    padding: 9px 15px;
    border-radius: 20px;
}

.nav-link:hover,
.nav-link.active {
    background: var(--pink2);
}

.theme-toggle {
    border: 0;
    background: #f7e5a9;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 18px;
    color: #4b3e36;
}

.menu-toggle {
    display: none;
    background: none;
    border: 0;
}

/* =========================================
   MAIN LAYOUT
========================================= */

.section-shell {
    width: min(1180px, calc(100% - 36px));
    margin: 0 auto 78px;
}

/* =========================================
   HERO
========================================= */

.hero {
    min-height: 485px;
    position: relative;
    overflow: hidden;
    isolation: isolate;

    border-radius: 42px;

    background: linear-gradient(
        120deg,
        #f6b1d0 0%,
        #f49fc6 65%,
        #f4acd0 100%
    );

    box-shadow: 0 14px 30px rgba(205,111,160,.25);

    padding: 76px 7% 66px;

    display: grid;
    grid-template-columns: 1.1fr .9fr;
    align-items: center;

    border: 1px solid rgba(255,255,255,.35);
}

.hero-copy {
    position: relative;
    z-index: 2;
    max-width: 580px;
}

.eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #8d5b78;
    margin: 0 0 17px;
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #46a77d;
    margin-right: 7px;
    box-shadow: 0 0 0 4px #ffffff50;
}

.hero h1 {
    font: 700 clamp(46px,6vw,76px)/.98 'Space Grotesk';
    letter-spacing: -4px;
    margin: 0 0 19px;
    color: #392e3a;
}

.hero h1 span:first-child {
    color: #fff;
    text-shadow: 0 2px 0 #e28eb7;
}

.pink-dot {
    color: #fff;
}

.hero-subtitle {
    font-weight: 800;
    font-size: 14px;
    margin: 0 0 12px;
    color: #342c3a;
}

.hero-subtitle span {
    color: #713c59;
    padding: 3px 7px;
    background: rgba(255,255,255,.35);
    border-radius: 7px;
}

.hero-description {
    max-width: 490px;
    color: #614b5b;
    font-size: 14px;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin: 25px 0 22px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 18px;

    border: 0;
    border-radius: 30px;
    padding: 14px 20px;

    font: 700 12px 'DM Sans';

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        background-color var(--theme-speed) ease,
        color var(--theme-speed) ease;
}

.button:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 22px #70405c30;
}

.button-dark {
    background: #342c38;
    color: white;
    box-shadow: 0 5px 12px #5b3c5530;
}

.button-outline {
    border: 1px solid #9e6682;
    color: #493444;
    background: #ffffff25;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hero-tags span,
.skill-cloud span {
    padding: 8px 12px;
    border-radius: 20px;
    background: #ffffffa6;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 4px 10px #80526a18;
}

/* =========================================
   HERO VISUAL
========================================= */

.hero-visual {
    min-height: 300px;
    position: relative;
    display: grid;
    place-items: center;
}

.visual-glow {
    position: absolute;
    width: 280px;
    height: 280px;
    background: #fff7;
    border-radius: 50%;
    filter: blur(25px);
}

.photo-frame {
    position: relative;
    width: 240px;
    height: 285px;
    border: 9px solid #fffefa;
    border-radius: 27px;
    background: linear-gradient(145deg,#e9e9e9,#8e8e8e);
    box-shadow: 0 18px 35px #6f456044;
    transform: rotate(2deg);
    z-index: 2;
    overflow: visible;
}

.photo-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 17px;
}

.photo-fallback {
    display: none;
    place-items: center;
    width: 100%;
    height: 100%;
    font: 700 68px 'Space Grotesk';
    color: #fff;
    background: linear-gradient(145deg,#6f6575,#29252d);
    border-radius: 17px;
}

.photo-spark {
    position: absolute;
    color: #fff;
    font-size: 35px;
    text-shadow: 0 2px 10px #8b6680;
}

.spark-a {
    left: -28px;
    top: -24px;
}

.spark-b {
    right: -25px;
    bottom: 15px;
}

.float-chip {
    position: absolute;
    z-index: 3;
    padding: 12px 16px;
    background: #fff9;
    border: 1px solid #fff;
    border-radius: 17px;
    box-shadow: 0 8px 20px #76506a20;
    font-size: 11px;
    font-weight: 800;
    animation: float 5s ease-in-out infinite;
}

.float-chip span {
    margin-right: 5px;
}

.chip-code {
    left: -4%;
    top: 14%;
}

.chip-ai {
    right: -4%;
    bottom: 17%;
    animation-delay: -2s;
}

.chip-heart {
    left: 12%;
    bottom: 2%;
    font-size: 25px;
    color: #bb76a3;
    animation-delay: -1s;
}

.hero-orb {
    position: absolute;
    border-radius: 50%;
    background: #fff8;
    filter: blur(1px);
    animation: float 7s ease-in-out infinite;
}

.orb-one {
    width: 35px;
    height: 35px;
    right: 34%;
    top: 13%;
}

.orb-two {
    width: 50px;
    height: 50px;
    right: 6%;
    top: 25%;
    animation-delay: -2s;
}

.orb-three {
    width: 24px;
    height: 24px;
    left: 48%;
    bottom: 10%;
    animation-delay: -4s;
}

.scroll-cue {
    position: absolute;
    bottom: 20px;
    left: 7%;
    font-size: 9px;
    letter-spacing: 2px;
    font-weight: 800;
    color: #79556a;
    display: flex;
    align-items: center;
    gap: 10px;
}

.scroll-cue span {
    width: 24px;
    height: 1px;
    background: #79556a;
}

/* =========================================
   GENERAL SECTION CARDS
========================================= */

.section-card {
    background: linear-gradient(145deg,#fffefa,#fcf9fd);
    border-radius: 38px;
    padding: 58px 6%;
    border: 1px solid rgba(255,255,255,.35);

    box-shadow:
        0 2px 5px rgba(70,50,75,.025),
        0 8px 22px rgba(70,50,75,.045),
        0 20px 45px rgba(70,50,75,.035);
}

.section-heading {
    text-align: center;
    margin-bottom: 38px;
}

.section-heading h2,
.research h2 {
    font: 700 clamp(32px,4vw,48px) 'Space Grotesk';
    letter-spacing: -2px;
    margin: 0;
}

.section-heading h2 span,
.research h2 span {
    color: #e98db9;
}

.heading-line {
    width: 44px;
    height: 3px;
    border-radius: 5px;
    background: var(--pink);
    margin: 15px auto;
}

.section-intro {
    font-size: 13px;
    color: var(--muted);
    margin: 12px auto 0;
    max-width: 520px;
}

/* =========================================
   ABOUT
========================================= */

.about-grid {
    display: grid;
    grid-template-columns: 1.15fr .85fr;
    gap: 60px;
    align-items: center;
}

.about-copy h3,
.skills-panel h3 {
    font: 700 21px 'Space Grotesk';
    margin: 0 0 17px;
}

.about-copy p,
.research p {
    font-size: 13px;
    line-height: 1.9;
    color: var(--muted);
}

.about-facts {
    display: flex;
    gap: 35px;
    margin-top: 25px;
}

.about-facts div {
    display: flex;
    flex-direction: column;
}

.about-facts strong {
    font: 700 27px 'Space Grotesk';
    color: #db85b0;
}

.about-facts span {
    font-size: 10px;
    color: var(--muted);
}

.skills-panel {
    background: #f8edf4;
    padding: 30px;
    border-radius: 25px;
}

.skill-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
}

.skill-cloud span:nth-child(3n+1) {
    background: #c8f0df;
}

.skill-cloud span:nth-child(3n+2) {
    background: #f8e7a9;
}

.skill-cloud span:nth-child(3n) {
    background: #d8cdf7;
}

.mini-note {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.mini-note span {
    color: #d889b1;
    font-size: 23px;
}

.mini-note p {
    font-size: 11px;
    line-height: 1.6;
    color: var(--muted);
}

/* =========================================
   PROJECTS
========================================= */

.projects {
    padding: 8px 0;
}

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

.project-card {
    background: linear-gradient(145deg,#fffefa,#fbf8fc);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 27px;
    padding: 13px;

    box-shadow:
        0 2px 5px rgba(70,50,75,.025),
        0 8px 22px rgba(70,50,75,.045),
        0 20px 45px rgba(70,50,75,.035);

    transition:
        background-color var(--theme-speed) ease,
        border-color var(--theme-speed) ease,
        box-shadow .3s ease;

    transform-style: preserve-3d;
}

.project-card:hover {
    box-shadow: 0 22px 42px #765b8230;
    transform: translateY(-3px);
}

.project-art {
    height: 190px;
    border-radius: 19px;
    position: relative;
    overflow: hidden;
    display: grid;
    place-items: center;
}

.art-shield {
    background: linear-gradient(135deg,#d7c8fa,#a995e5);
}

.art-game {
    background: linear-gradient(135deg,#262334,#66506f);
}

.art-robot {
    background: linear-gradient(135deg,#c8e9e3,#8bbdb6);
}

.art-campus {
    background: linear-gradient(135deg,#f8e6b1,#e9b8a2);
}

.art-icon {
    font-size: 74px;
    color: #fff;
    filter: drop-shadow(0 8px 10px #342c3855);
    z-index: 1;
}

.art-label {
    position: absolute;
    top: 17px;
    left: 18px;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #fff;
}

.art-lines {
    position: absolute;
    width: 220px;
    height: 140px;
    border: 1px solid #fff8;
    transform: rotate(-25deg);
    box-shadow: 0 0 0 15px #fff2,0 0 0 30px #fff1;
}

.game-sun {
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: #f6bb89;
    right: -25px;
    bottom: -70px;
    box-shadow: 0 0 45px #f6bb8980;
}

.robot-face {
    width: 110px;
    height: 100px;
    border-radius: 30px;
    background: #f3f7f2;
    box-shadow: inset 0 -8px #9abdb5,0 12px 20px #3b706555;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 18px;
    position: relative;
}

.robot-face i {
    width: 13px;
    height: 13px;
    background: #547f80;
    border-radius: 50%;
}

.robot-face b {
    position: absolute;
    bottom: 22px;
    width: 30px;
    height: 3px;
    border-radius: 5px;
    background: #547f80;
}

.campus-shape {
    position: absolute;
    bottom: -45px;
    width: 260px;
    height: 120px;
    border: 3px solid #fff9;
    border-radius: 50% 50% 0 0;
}

.project-body {
    padding: 18px 9px 12px;
}

.project-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
    color: #9b8296;
}

.project-status {
    color: #6c9c83;
}

.project-body h3 {
    font: 700 22px 'Space Grotesk';
    margin: 12px 0 8px;
}

.project-body p {
    font-size: 12px;
    line-height: 1.8;
    color: var(--muted);
    min-height: 65px;
}

.project-tags {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
    margin: 14px 0 17px;
}

.project-tags span,
.research-topics span {
    font-size: 9px;
    font-weight: 700;
    padding: 7px 10px;
    border-radius: 20px;
    background: #f3e8f1;
    color: #745b70;
}

.project-body>a,
.text-link {
    font-size: 11px;
    font-weight: 800;
    color: #bb6d98;
}

.project-body>a span {
    margin-left: 6px;
}

.text-link {
    display: block;
    text-align: center;
    margin-top: 30px;
}

/* =========================================
   RESEARCH
========================================= */

.research {
    background: linear-gradient(120deg,#e9def8,#f6e5ee);
    border-radius: 38px;
    padding: 55px 7%;
    display: grid;
    grid-template-columns: .4fr 1fr;
    gap: 45px;
    align-items: center;

    box-shadow:
        0 5px 15px rgba(80,60,90,.035),
        0 18px 40px rgba(80,60,90,.05);
}

.research-stamp {
    width: 150px;
    height: 150px;
    border: 1px dashed #9874aa;
    border-radius: 50%;
    display: grid;
    place-items: center;
    text-align: center;
    font: 700 16px 'Space Grotesk';
    color: #886b9d;
    transform: rotate(-12deg);
}

.research p {
    max-width: 680px;
    color: #685a70;
}

.research-topics {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 20px;
}

.research-topics span {
    background: #ffffff9c;
    color: #675270;
}

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

.contact {
    padding-bottom: 35px;
}

.contact-grid {
    display: grid;
    grid-template-columns: .8fr 1.2fr;
    gap: 55px;

    background: linear-gradient(145deg,#fffefa,#faf6fb);
    border-radius: 32px;
    padding: 40px;

    box-shadow:
        0 2px 5px rgba(70,50,75,.025),
        0 8px 22px rgba(70,50,75,.045),
        0 20px 45px rgba(70,50,75,.035);
}

.contact-aside {
    position: relative;
    overflow: hidden;
}

.contact-aside h3 {
    font: 700 27px 'Space Grotesk';
    margin: 0 0 10px;
}

.contact-aside>p {
    font-size: 13px;
    line-height: 1.8;
    color: var(--muted);
    max-width: 300px;
    margin-bottom: 28px;
}

.contact-detail {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    font-weight: 700;
    margin: 17px 0;
}

.contact-detail span {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: #f7e3ef;
    color: #a95e87;
}

.contact-decoration {
    position: absolute;
    bottom: -80px;
    left: 10px;
    font-size: 170px;
    color: #f8e6ef;
    z-index: 0;
    pointer-events: none;
    opacity: .35;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.contact-form label {
    font-size: 11px;
    font-weight: 800;
    margin-top: 8px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(150,120,150,.15);
    border-radius: 15px;
    padding: 13px 15px;
    background: #f9f6fa;
    color: var(--ink);
    font: 12px 'DM Sans';
    outline: none;
    box-shadow: inset 0 1px 3px rgba(60,40,70,.025);

    transition:
        background-color var(--theme-speed) ease,
        color var(--theme-speed) ease,
        border-color .2s ease;

    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #d6a1bd;
    box-shadow: none;
}

.contact-form button {
    align-self: flex-start;
    margin-top: 10px;
}

.form-note {
    font-size: 10px;
    color: var(--muted);
}

.honeypot {
    position: absolute !important;
    left: -5000px !important;
}

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

.footer {
    width: min(1180px,calc(100% - 36px));
    margin: 0 auto;
    padding: 25px 5px 35px;
    border-top: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer p,
.back-top {
    font-size: 10px;
    color: var(--muted);
}

.back-top {
    font-weight: 800;
}

/* =========================================
   CUSTOM CURSOR
========================================= */

.cursor-dot,
.cursor-ring {
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: none;
    z-index: 9999;
    border-radius: 50%;
    transform: translate(-50%,-50%);
}

.cursor-dot {
    width: 6px;
    height: 6px;
    background: #b84d87;
}

.cursor-ring {
    width: 32px;
    height: 32px;
    border: 1px solid #b84d8790;
    transition: width .2s,height .2s,background .2s;
}

.cursor-ring.hover {
    width: 54px;
    height: 54px;
    background: #eaa6ca30;
    border-color: #c05c91;
}

/* =========================================
   PROGRESS BAR & REVEAL
========================================= */

.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    background: linear-gradient(90deg,#d77eaa,#9f8ae1);
    z-index: 100;
}

.reveal {
    opacity: 0;
    transform: translateY(35px);
    transition:
        opacity .8s ease,
        transform .8s cubic-bezier(.2,.7,.2,1);
}

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

@keyframes float {
    0%,100% {
        transform: translateY(0) rotate(0);
    }
    50% {
        transform: translateY(-13px) rotate(3deg);
    }
}

/* =========================================
   DARK MODE
========================================= */

body.dark {
    --bg: #19171d;
    --ink: #eee8ef;
    --muted: #b6aeba;
    --card: #27242d;
    --line: rgba(255,255,255,.075);
    --shadow: 0 10px 30px rgba(0,0,0,.16);
}

/* Header */

.dark .site-header {
    background: rgba(40,35,45,.91);
    border-color: rgba(255,255,255,.08);
}

.dark .nav-link {
    color: #eee;
}

/* Hero: keep pink background and readable text */

.dark .hero {
    box-shadow: 0 8px 25px rgba(0,0,0,.17);
    border-color: rgba(255,255,255,.12);
}

.dark .hero h1 {
    color: #342c3a;
}

.dark .hero h1 span:first-child {
    color: #fff;
    text-shadow: 0 2px 0 #b96f91;
}

.dark .hero-subtitle {
    color: #342c3a;
}

.dark .hero-subtitle span {
    color: #713c59;
    background: rgba(255,255,255,.72);
}

.dark .eyebrow {
    color: #70445b;
}

.dark .hero-description {
    color: #594354;
}

.dark .hero-tags span {
    color: #493344;
    background: rgba(255,255,255,.88);
    border-color: rgba(255,255,255,.5);
}

.dark .scroll-cue {
    color: #70445b;
}

.dark .scroll-cue span {
    background: #70445b;
}

.dark .float-chip {
    color: #493344;
    background: rgba(255,255,255,.92);
    border-color: rgba(255,255,255,.7);
}

.dark .button-outline {
    color: #493344;
    background: rgba(255,255,255,.65);
    border-color: #9e6682;
}

/* Main cards */

.dark .section-card,
.dark .project-card,
.dark .contact-grid {
    background: linear-gradient(145deg,#2b2731,#26232c);
    border-color: rgba(255,255,255,.055);

    box-shadow:
        0 2px 5px rgba(0,0,0,.12),
        0 9px 22px rgba(0,0,0,.13),
        0 20px 40px rgba(0,0,0,.09);
}

.dark .project-card:hover {
    box-shadow:
        0 5px 12px rgba(0,0,0,.16),
        0 14px 28px rgba(0,0,0,.17);
}

/* Skills */

.dark .skills-panel {
    background: #312d37;
    border: 1px solid rgba(255,255,255,.035);
}

.dark .skill-cloud span {
    color: #352b38;
}

.dark .mini-note {
    border-color: rgba(255,255,255,.09);
}

/* Project tags */

.dark .project-tags span {
    background: #3b3040;
    color: #e7d5e7;
}

/* Research */

.dark .research {
    background: linear-gradient(120deg,#302b39,#332b35);
    border: 1px solid rgba(255,255,255,.055);
    box-shadow: 0 8px 25px rgba(0,0,0,.15);
}

.dark .research p,
.dark .research h2 {
    color: #fff;
}

.dark .research-topics span {
    background: #ffffff1c;
    color: #fff;
}

/* Contact */

.dark .contact-form input,
.dark .contact-form textarea {
    background: #211f27;
    border-color: rgba(255,255,255,.08);
    color: #f1eaf2;
    box-shadow: inset 0 1px 3px rgba(0,0,0,.12);
}

.dark .contact-form input:focus,
.dark .contact-form textarea:focus {
    border-color: #b88da7;
    box-shadow: none;
}

/* =========================================
   TABLET & MOBILE
========================================= */

@media (max-width:760px) {

    body {
        cursor: auto;
    }

    a,button,input,textarea {
        cursor: pointer;
    }

    .cursor-dot,
    .cursor-ring {
        display: none;
    }

    .site-header {
        height: 60px;
        padding: 0 15px;
    }

    .menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 5px;
        padding: 8px;
    }

    .menu-toggle span {
        width: 20px;
        height: 2px;
        background: var(--ink);
    }

    .nav {
        display: none;
        position: absolute;
        top: 68px;
        right: 0;
        left: 0;
        background: var(--card);
        padding: 14px;
        border-radius: 18px;
        box-shadow: var(--shadow);
        flex-direction: column;
        align-items: stretch;
    }

    .nav.open {
        display: flex;
    }

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

    .hero {
        grid-template-columns: minmax(0,1fr);
        padding: 42px 7% 55px;
        gap: 15px;
        border-radius: 28px;
    }

    .hero-copy,
    .hero-visual {
        min-width: 0;
        width: 100%;
    }

    .hero h1 {
        font-size: 53px;
        letter-spacing: -2px;
        overflow-wrap: anywhere;
    }

    .hero-actions {
        flex-wrap: wrap;
    }

    .hero-visual {
        min-height: 270px;
        overflow: hidden;
    }

    .photo-frame {
        width: 205px;
        height: 245px;
        max-width: 70%;
    }

    .hero-orb,
    .float-chip,
    .photo-spark,
    .visual-glow {
        display: none;
    }

    .scroll-cue {
        bottom: 17px;
    }

    .section-shell {
        width: calc(100% - 28px);
        margin-bottom: 42px;
    }

    .section-card,
    .project-card,
    .research,
    .contact-grid {
        min-width: 0;
        max-width: 100%;
    }

    .about-grid,
    .contact-grid,
    .research {
        grid-template-columns: minmax(0,1fr);
        gap: 28px;
    }

    .about-grid {
        gap: 25px;
    }

    .section-card {
        padding: 42px 7%;
    }

    .about-facts {
        gap: 25px;
    }

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

    .project-card {
        overflow: hidden;
    }

    .project-art {
        height: 170px;
    }

    .project-body p {
        min-height: 0;
    }

    .research {
        padding: 40px 8%;
    }

    .research-stamp {
        width: 105px;
        height: 105px;
        font-size: 12px;
        margin: 0 auto;
    }

    .contact-grid {
        padding: 27px 22px;
    }

    .contact-decoration {
        display: none;
    }

    .contact-aside,
    .contact-form {
        min-width: 0;
        width: 100%;
    }

    .contact-form input,
    .contact-form textarea {
        max-width: 100%;
        min-width: 0;
    }

    .footer {
        gap: 15px;
        flex-wrap: wrap;
    }

    .footer p {
        order: 3;
        width: 100%;
        text-align: center;
    }
}

/* =========================================
   SMALL PHONES
========================================= */

@media (max-width:420px) {

    .section-shell {
        width: calc(100% - 22px);
    }

    .section-card {
        padding: 32px 18px;
        border-radius: 25px;
    }

    .contact-grid {
        padding: 22px 16px;
        border-radius: 24px;
    }

    .hero {
        padding: 35px 20px 50px;
        border-radius: 25px;
    }

    .hero h1 {
        font-size: clamp(38px,11vw,45px);
    }

    .hero-subtitle {
        font-size: 12px;
    }

    .hero-description {
        font-size: 12px;
    }

    .hero-actions .button {
        max-width: 100%;
    }

    .hero-tags span {
        font-size: 9px;
    }

    .section-heading h2 {
        font-size: 32px;
    }

    .about-facts {
        justify-content: space-between;
        gap: 12px;
        flex-wrap: wrap;
    }

    .project-art {
        height: 155px;
    }

    .contact-form button {
        max-width: 100%;
    }
}

/* =========================================
   ACCESSIBILITY
========================================= */

@media (prefers-reduced-motion:reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .project-card:hover {
        transform: none;
    }
}
