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

:root {
    --bg: #f6f7f8;
    --bg-soft: #eef1f4;
    --surface: rgba(255, 255, 255, 0.86);
    --surface-strong: rgba(249, 251, 252, 0.94);
    --surface-accent: rgba(220, 226, 232, 0.42);
    --text: #2e343a;
    --muted: #6c747d;
    --accent: #ecdbe3;
    --accent-strong: #fbf1f5;
    --accent-soft: rgba(244, 231, 237, 0.58);
    --line: rgba(146, 156, 168, 0.24);
    --shadow-lg: 0 18px 40px rgba(118, 126, 138, 0.16);
    --shadow-md: 0 10px 24px rgba(118, 126, 138, 0.12);
    --shadow-sm: 0 5px 14px rgba(118, 126, 138, 0.1);
    --binary-accent: rgba(214, 176, 193, 0.36);
    --pop-pink: rgba(224, 185, 202, 0.9);
    --pop-pink-soft: rgba(244, 220, 229, 0.9);
    --pop-pink-warm: rgba(210, 170, 188, 0.84);
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 8px;
    --max-width: 1160px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: 'Sora', sans-serif;
    color: var(--text);
    line-height: 1.55;
    background:
        radial-gradient(circle at top left, rgba(208, 215, 223, 0.82), transparent 30%),
        radial-gradient(circle at top right, rgba(241, 244, 247, 0.88), transparent 28%),
        radial-gradient(circle at bottom left, rgba(198, 207, 217, 0.56), transparent 24%),
        linear-gradient(180deg, #eef2f5 0%, #e6ebf0 50%, #dce3ea 100%);
}

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

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    padding: 0.8rem clamp(0.9rem, 2vw, 1.4rem);
}

.header-container {
    position: relative;
    width: min(var(--max-width), 100%);
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.55rem 0.65rem;
    --edge-top: var(--pop-pink);
    --edge-left: var(--pop-pink-soft);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.74);
    backdrop-filter: blur(12px);
    box-shadow:
        inset 0 1px 0 var(--edge-top),
        inset 1px 0 0 var(--edge-left),
        var(--shadow-sm);
}

.brand {
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.04em;
    text-decoration: none;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    border-radius: 8px;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.nav-link:hover,
.nav-link:focus-visible,
.nav-link[aria-current="page"] {
    color: var(--text);
    background: rgba(244, 226, 233, 0.72);
    transform: translateY(-1px);
}

.menu {
    display: none;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(242, 225, 232, 0.58);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu:hover,
.menu:focus-visible {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.menu .bar {
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: var(--text);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
}

.menu[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
}

.menu[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
    width: min(var(--max-width), calc(100% - 2rem));
    margin: 0 auto 3rem;
}

.hero-card,
.section-card,
.project-hero-card,
.story-card {
    position: relative;
    --edge-top: var(--pop-pink);
    --edge-left: var(--pop-pink-soft);
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow:
        inset 0 1px 0 var(--edge-top),
        inset 1px 0 0 var(--edge-left),
        var(--shadow-md);
}

.hero-card {
    --edge-top: rgba(223, 185, 201, 0.9);
    --edge-left: rgba(244, 220, 229, 0.84);
}

.project-hero-card {
    --edge-top: rgba(216, 176, 193, 0.86);
    --edge-left: rgba(240, 212, 223, 0.8);
}

.section-card,
.story-card,
.project-media-card {
    --edge-top: rgba(226, 191, 205, 0.8);
    --edge-left: rgba(247, 226, 233, 0.72);
}

.hero-card,
.section-card,
.project-hero-card,
.story-card,
.project-card,
.project-media-card {
    position: relative;
    isolation: isolate;
    overflow: visible;
}

.hero-card::after,
.section-card::after,
.project-hero-card::after,
.story-card::after,
.project-card::after,
.project-media-card::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -6px;
    width: 1.55in;
    height: 1.55in;
    pointer-events: none;
    user-select: none;
    background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 160'><defs><linearGradient id='pathMaskGradient' x1='18' y1='157' x2='157' y2='18' gradientUnits='userSpaceOnUse'><stop offset='0' stop-color='white' stop-opacity='0'/><stop offset='.08' stop-color='white' stop-opacity='.42'/><stop offset='.14' stop-color='white' stop-opacity='.96'/><stop offset='.86' stop-color='white' stop-opacity='.96'/><stop offset='.92' stop-color='white' stop-opacity='.42'/><stop offset='1' stop-color='white' stop-opacity='0'/></linearGradient><mask id='pathMask'><rect x='0' y='0' width='160' height='160' fill='url(%23pathMaskGradient)'/></mask><path id='binaryPath' d='M18 157 H146 A11 11 0 0 0 157 146 V18'/></defs><text fill='%23ddb2c5' fill-opacity='.92' mask='url(%23pathMask)' font-family='Menlo,Monaco,Consolas,monospace' font-size='8' font-weight='500' xml:space='preserve'><textPath href='%23binaryPath' startOffset='0%' textLength='268' lengthAdjust='spacingAndGlyphs'>01110011 01100001 01110011 01101000 01100001</textPath></text></svg>") bottom right / 100% 100% no-repeat;
    z-index: 1;
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.4rem;
    align-items: start;
    margin-top: 0.9rem;
    padding: 1.5rem 1.6rem;
    border-radius: var(--radius-xl);
    overflow: visible;
    animation: rise-in 0.7s ease both;
}

.hero-copy {
    min-width: 0;
    padding-right: 0.25rem;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0 0 0.7rem;
    color: var(--accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 18px;
    height: 1px;
    background: currentColor;
    opacity: 0.55;
}

.hero-title,
.page-title,
.project-title {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.hero-lede,
.page-lede,
.project-summary {
    max-width: 60ch;
    margin: 0.85rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-actions,
.project-actions,
.link-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.button-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0.7rem 1rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.button-link:hover,
.button-link:focus-visible {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.button-link.primary {
    color: var(--text);
    background: linear-gradient(135deg, rgba(226, 232, 238, 0.92), rgba(246, 248, 250, 0.96));
    border-color: rgba(217, 182, 197, 0.58);
    box-shadow:
        inset 0 1px 0 rgba(226, 191, 206, 0.8),
        inset 1px 0 0 rgba(244, 222, 229, 0.66);
}

.button-link.secondary {
    color: var(--text);
    background: rgba(255, 255, 255, 0.84);
    border-color: rgba(223, 198, 209, 0.44);
    box-shadow:
        inset 0 1px 0 rgba(235, 209, 219, 0.56),
        inset 1px 0 0 rgba(248, 230, 236, 0.42);
}

.button-link.secondary:hover,
.button-link.secondary:focus-visible {
    background: rgba(244, 247, 249, 0.96);
}

.button-link.primary:hover,
.button-link.primary:focus-visible {
    background: linear-gradient(135deg, rgba(214, 224, 234, 0.96), rgba(242, 246, 249, 0.98));
}

.highlight-card,
.meta-card {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(250, 251, 252, 0.9);
}

.highlight-label,
.meta-label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.highlight-value,
.meta-card p {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
}

.hero-meta {
    margin: 1rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-meta strong {
    color: var(--text);
}

.portrait-panel {
    align-self: start;
    justify-self: end;
    width: 260px;
    max-width: 260px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.about-me-image {
    display: block;
    width: 260px !important;
    height: 332px;
    max-width: none !important;
    margin-left: auto;
    border-radius: 14px;
    object-fit: cover;
    object-position: center center;
    box-shadow: var(--shadow-md);
}

.portrait-caption {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}

.bio-paragraph {
    max-width: 42rem;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.section-card {
    padding: 1rem;
    border-radius: var(--radius-lg);
    animation: rise-in 0.75s ease both;
}

.section-card h2,
.story-card h2 {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.section-card p,
.story-card p {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.skill-list,
.feature-list {
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

.skill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.skill-list li {
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(239, 243, 246, 0.92), rgba(252, 253, 254, 0.9));
    border: 1px solid var(--line);
    font-size: 0.8rem;
    font-weight: 600;
}

.feature-list li {
    position: relative;
    margin-top: 0.95rem;
    padding-left: 1.2rem;
    color: var(--muted);
}

.feature-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75rem;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
}

.page-intro {
    margin-top: 0.75rem;
    padding: 0.25rem 0 0.1rem;
    border-radius: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    animation: rise-in 0.7s ease both;
}

.page-title {
    max-width: none;
    font-size: clamp(1.45rem, 3vw, 2rem);
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 0.95rem;
    margin-top: 0.95rem;
}

.project-card {
    display: flex;
    flex-direction: column;
    min-height: 350px;
    --edge-top: rgba(220, 181, 198, 0.84);
    --edge-left: rgba(243, 219, 228, 0.74);
    text-decoration: none;
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: visible;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 249, 0.96));
    box-shadow:
        inset 0 1px 0 var(--edge-top),
        inset 1px 0 0 var(--edge-left),
        var(--shadow-md);
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
    animation: rise-in 0.75s ease both;
}

.project-card:nth-child(4n + 2) {
    --edge-top: rgba(228, 191, 206, 0.82);
    --edge-left: rgba(248, 225, 232, 0.74);
}

.project-card:nth-child(4n + 3) {
    --edge-top: rgba(212, 172, 189, 0.84);
    --edge-left: rgba(237, 209, 220, 0.72);
}

.project-card:nth-child(4n + 4) {
    --edge-top: rgba(233, 199, 212, 0.8);
    --edge-left: rgba(249, 229, 235, 0.72);
}

.project-card:hover,
.project-card:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(176, 186, 196, 0.5);
    box-shadow:
        inset 0 1px 0 var(--edge-top),
        inset 1px 0 0 var(--edge-left),
        var(--shadow-lg);
}

.project-thumb {
    aspect-ratio: 4 / 3;
    overflow: hidden;
}

.project-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.project-card:hover .project-thumb img,
.project-card:focus-visible .project-thumb img {
    transform: scale(1.05);
}

.project-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.55rem;
    padding: 1rem;
}

.project-card-title {
    margin: 0;
    font-size: 1.08rem;
    letter-spacing: -0.03em;
}

.project-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: auto;
}

.project-tags span {
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(228, 234, 239, 0.86), rgba(248, 250, 252, 0.92));
    border: 1px solid rgba(223, 198, 209, 0.42);
    color: #977885;
    font-size: 0.72rem;
    font-weight: 700;
}

.project-arrow {
    margin-top: 0.15rem;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text);
}

.project-page {
    margin-top: 0.75rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin-bottom: 1rem;
    padding: 0.5rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: linear-gradient(135deg, rgba(229, 235, 240, 0.72), rgba(248, 250, 252, 0.9));
    color: var(--muted);
    font-size: 0.92rem;
    font-weight: 600;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(224, 190, 204, 0.56),
        inset 1px 0 0 rgba(245, 222, 230, 0.46);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.back-link:hover,
.back-link:focus-visible {
    color: var(--text);
    background: linear-gradient(135deg, rgba(219, 226, 232, 0.82), rgba(244, 247, 250, 0.96));
    transform: translateY(-1px);
}

.project-hero-card {
    padding: clamp(1rem, 2vw, 1.5rem);
    border-radius: var(--radius-xl);
}

.project-layout {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.project-copy {
    min-width: 0;
}

.project-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    flex-wrap: wrap;
}

.project-actions-inline {
    margin-top: 0;
    margin-left: auto;
    justify-content: flex-end;
}

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

.project-details {
    display: grid;
    grid-template-columns: minmax(220px, 0.38fr) minmax(0, 1fr);
    gap: 1.25rem;
    margin-top: 1.1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.project-detail h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.project-detail p {
    margin: 0.7rem 0 0;
    color: var(--muted);
    font-size: 0.94rem;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.6rem;
    margin-top: 1rem;
}

.project-media-card {
    width: min(100%, 340px);
    margin: 0 auto;
    padding: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(245, 248, 250, 0.9), rgba(251, 252, 253, 0.92));
    box-shadow:
        inset 0 1px 0 var(--edge-top),
        inset 1px 0 0 var(--edge-left),
        var(--shadow-sm);
}

.media-frame {
    overflow: hidden;
    border-radius: 10px;
    background: #f3e9ed;
    box-shadow: var(--shadow-sm);
}

.media-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.media-frame video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #0f1720;
}

.media-frame.video-frame {
    aspect-ratio: 4 / 3;
}

.media-frame.image-frame {
    aspect-ratio: 4 / 3;
}

.media-caption {
    margin: 0.65rem 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.project-story-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
    gap: 0.9rem;
    margin-top: 0.9rem;
}

.story-card {
    padding: 1rem;
    border-radius: var(--radius-lg);
}

.project-link {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.6rem 0.85rem;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    box-shadow:
        inset 0 1px 0 rgba(224, 192, 205, 0.5),
        inset 1px 0 0 rgba(244, 221, 229, 0.42);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-link:hover,
.project-link:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(157, 167, 178, 0.34);
    box-shadow: var(--shadow-sm);
}

.inline-note {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    margin-top: 0.65rem;
    padding: 0.35rem 0.55rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: rgba(235, 239, 244, 0.24);
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 600;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(24px);
    }

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

@media (max-width: 960px) {
    .hero-card,
    .project-story-grid,
    .project-details {
        grid-template-columns: 1fr;
    }

    .portrait-panel {
        width: 220px;
        max-width: 220px;
        margin: 0;
        justify-self: start;
    }

    .about-me-image {
        width: 220px !important;
        height: 282px;
    }
}

@media (max-width: 760px) {
    .site-header {
        padding: 0.7rem 0.7rem 0;
    }

    .header-container {
        padding: 0.65rem 0.75rem;
        border-radius: 12px;
    }

    .menu {
        display: inline-flex;
    }

    .site-nav {
        position: absolute;
        top: calc(100% + 0.7rem);
        right: 0;
        left: 0;
        display: none;
        flex-direction: column;
        gap: 0.35rem;
        padding: 0.6rem;
        border: 1px solid var(--line);
        border-radius: 12px;
        background: rgba(250, 251, 252, 0.98);
        box-shadow: var(--shadow-md);
    }

    .site-nav.show {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        width: 100%;
        padding: 0.9rem 1rem;
    }

    .section-grid,
    .meta-grid {
        grid-template-columns: 1fr;
    }

    .page-shell {
        width: min(var(--max-width), calc(100% - 1rem));
        margin-bottom: 2.5rem;
    }

    .hero-card,
    .page-intro,
    .project-hero-card,
    .story-card,
    .section-card {
        padding-left: 0;
        padding-right: 0;
    }

    .hero-card {
        gap: 1rem;
        padding: 1rem;
    }

    .portrait-panel {
        width: 140px;
        max-width: 140px;
    }

    .about-me-image {
        width: 140px !important;
        height: 180px;
    }

    .project-card {
        min-height: 320px;
    }
}

@media (max-width: 520px) {
    .brand {
        font-size: 0.94rem;
    }

    .hero-title,
    .page-title,
    .project-title {
        font-size: clamp(1.35rem, 8vw, 1.85rem);
    }

    .hero-lede,
    .page-lede,
    .project-summary,
    .section-card p,
    .story-card p {
        font-size: 0.9rem;
    }

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

    .project-card {
        min-height: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
