:root {
    --top-nav-height: 76px;
    --radius: 4px;
    --radius-wobbly: 4px;
    --radius-wobbly-large: 6px;
    --font-serif: "Songti SC", "SimSun", serif;
    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
    --font-mono: "Consolas", "Courier New", monospace;
    --bg-main: #cbb383;
    --bg-nav: #cbb383;
    --bg-card: #f2eddc;
    --archive-paper: #e8d6a7;
    --text-main: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-muted: #5c4b2b;
    --print-ink: #1a1a1a;
    --accent-pink: #cc6677;
    --accent-amber: #7c5220;
    --bg-grid: rgba(92, 75, 43, 0.15);
    --border-soft: rgba(26, 26, 26, 0.28);
    --paper-grain: rgba(92, 75, 43, 0.3);
    --film-dust: rgba(255, 245, 213, 0.23);
    --shadow-hard: 3px 3px 0 rgba(26, 26, 26, 0.24);
    --shadow-hard-hover: 3px 3px 0 rgba(204, 102, 119, 0.42);
    --shadow-print-offset: 5px 5px 0 rgba(204, 102, 119, 0.46);
    --tile-glow: 0 0 0 rgba(204, 102, 119, 0);
    --border-thin: 1px solid var(--text-main);
    --top-nav-bg: rgba(203, 179, 131, 0.85);
    --top-nav-border: rgba(0, 0, 0, 0.15);
    color-scheme: light;
}

:root[data-theme="day"] {
    --bg-main: #cbb383;
    --bg-nav: #cbb383;
    --bg-card: #f2eddc;
    --archive-paper: #e8d6a7;
    --text-main: #1a1a1a;
    --text-dark: #1a1a1a;
    --text-muted: #5c4b2b;
    --print-ink: #1a1a1a;
    --accent-pink: #cc6677;
    --accent-amber: #7c5220;
    --bg-grid: rgba(92, 75, 43, 0.15);
    --border-soft: rgba(26, 26, 26, 0.28);
    --paper-grain: rgba(92, 75, 43, 0.3);
    --film-dust: rgba(255, 245, 213, 0.23);
    --shadow-hard: 3px 3px 0 rgba(26, 26, 26, 0.24);
    --shadow-hard-hover: 3px 3px 0 rgba(204, 102, 119, 0.42);
    --shadow-print-offset: 5px 5px 0 rgba(204, 102, 119, 0.46);
    --tile-glow: 0 0 0 rgba(204, 102, 119, 0);
    --top-nav-bg: rgba(203, 179, 131, 0.85);
    --top-nav-border: rgba(0, 0, 0, 0.15);
    color-scheme: light;
}

:root[data-theme="night"] {
    --bg-main: #120b10;
    --bg-nav: #1d1319;
    --bg-card: #25191f;
    --archive-paper: #302028;
    --text-main: #f2ded0;
    --text-dark: #fff2e5;
    --text-muted: #c8aa9c;
    --print-ink: #f2ded0;
    --accent-pink: #ff4f9a;
    --accent-amber: #d7a45d;
    --bg-grid: rgba(255, 79, 154, 0.09);
    --border-soft: rgba(242, 222, 208, 0.32);
    --paper-grain: rgba(255, 79, 154, 0.12);
    --film-dust: rgba(255, 230, 217, 0.13);
    --shadow-hard: 3px 3px 0 rgba(255, 79, 154, 0.3);
    --shadow-hard-hover: 3px 3px 0 rgba(255, 79, 154, 0.58);
    --shadow-print-offset: 5px 5px 0 rgba(255, 79, 154, 0.66);
    --tile-glow: 0 0 0 rgba(255, 79, 154, 0);
    --top-nav-bg: rgba(29, 19, 25, 0.9);
    --top-nav-border: rgba(242, 222, 208, 0.24);
    color-scheme: dark;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--top-nav-height) + 22px);
    scrollbar-color: color-mix(in srgb, var(--bg-card) 54%, transparent) transparent;
    overflow-x: hidden;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
    width: 10px;
    background: transparent;
}

html::-webkit-scrollbar-track,
body::-webkit-scrollbar-track {
    background: transparent;
    border-color: transparent;
}

html::-webkit-scrollbar-thumb,
body::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.42), transparent 38%),
        color-mix(in srgb, var(--bg-card) 54%, transparent);
    background-clip: content-box;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--text-main) 18%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

html::-webkit-scrollbar-thumb:hover,
body::-webkit-scrollbar-thumb:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.52), transparent 38%),
        color-mix(in srgb, var(--bg-card) 68%, transparent);
    background-clip: content-box;
    box-shadow:
        inset 0 0 0 1px color-mix(in srgb, var(--text-main) 28%, transparent),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

body {
    position: relative;
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-serif);
    color: var(--text-dark);
    background-color: var(--bg-main);
    background-image:
        linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
    background-size: 20px 20px, 20px 20px;
    background-position: center center;
    transition: background-color 180ms ease, color 180ms ease;
}

body::before,
body::after {
    content: none;
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
}

body::before {
    background:
        radial-gradient(circle at 12% 18%, var(--paper-grain) 0 1px, transparent 1.5px),
        radial-gradient(circle at 78% 34%, var(--paper-grain) 0 1px, transparent 1.7px),
        radial-gradient(circle at 36% 82%, var(--paper-grain) 0 1.1px, transparent 1.8px);
    background-size: 19px 23px, 31px 37px, 43px 41px;
    mix-blend-mode: multiply;
    opacity: 0.78;
}

body::after {
    background:
        linear-gradient(90deg, transparent 0 96%, var(--film-dust) 96% 97%, transparent 97%),
        radial-gradient(circle, var(--film-dust) 0 0.8px, transparent 1px);
    background-size: 94px 100%, 29px 29px;
    opacity: 0.34;
}

a {
    color: inherit;
}

.top-nav {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 100;
    height: var(--top-nav-height);
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    padding: 10px 24px;
    background-color: var(--top-nav-bg);
    backdrop-filter: blur(5px);
    border-bottom: 1px solid var(--top-nav-border);
    box-shadow: none;
}

.site-brand {
    grid-column: 1;
    justify-self: start;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.site-brand:hover {
    color: var(--accent-pink);
}

.top-nav-inner {
    grid-column: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 25px;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
}

.top-nav-inner a {
    position: relative;
    padding: 4px 0 2px;
    border-bottom: 2px solid transparent;
    color: var(--text-main);
    text-decoration: none;
    transition:
        color 220ms ease,
        border-color 220ms ease,
        transform 160ms ease;
}

.top-nav-inner a:hover,
.top-nav-inner a.active {
    border-bottom-color: var(--accent-pink);
    transform: translateY(-1px);
    color: var(--accent-pink);
}

.nav-actions {
    grid-column: 3;
    justify-self: end;
    display: flex;
    align-items: center;
    gap: 8px;
}

.icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    min-height: 30px;
    padding: 0;
    border: 1px solid var(--text-main);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-hard);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.icon-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon-button:hover {
    color: var(--accent-pink);
    transform: translate(2px, 2px);
    box-shadow: 1px 1px 0 var(--accent-pink);
    background-color: var(--bg-main);
}

.theme-toggle:hover {
    color: var(--accent-amber);
}

.app-body {
    position: relative;
    z-index: 1;
    display: block;
    min-height: calc(100vh - var(--top-nav-height));
    padding-top: var(--top-nav-height);
}

.image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 150px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--print-ink) 12%, transparent) 1px, transparent 1px),
        linear-gradient(0deg, color-mix(in srgb, var(--print-ink) 10%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--bg-card) 76%, var(--bg-main));
    background-size: 24px 24px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 22px;
    font-weight: 700;
}

.profile-name {
    color: var(--text-main);
    font-size: clamp(38px, 8vw, 82px);
    font-weight: 800;
    line-height: 0.96;
}

.profile-role {
    max-width: 620px;
    margin-top: 12px;
    color: var(--text-muted);
    font-size: clamp(14px, 2vw, 18px);
    line-height: 1.78;
}

.contact-info {
    display: grid;
    gap: 7px;
    margin-top: 12px;
    font-size: 12.5px;
    line-height: 1.5;
}

.contact-info a {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: var(--text-dark);
    text-decoration: none;
}

.contact-icon {
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-info a:hover {
    color: var(--text-main);
}

.social-matrix {
    display: flex;
    gap: 12px;
    margin-top: 14px;
}

.social-matrix a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--text-main);
    border-radius: var(--radius);
    background: var(--bg-card);
    color: var(--text-main);
    box-shadow: var(--shadow-hard);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.social-matrix a:hover {
    transform: translate(1px, 1px);
    box-shadow: 1px 1px 0 var(--accent-pink);
}

.social-matrix svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.social-matrix svg path:first-child {
    fill: currentColor;
    stroke: none;
}

.main-content {
    position: relative;
    max-width: 920px;
    margin: 0 auto;
    overflow: visible;
    padding: clamp(34px, 6vw, 72px) clamp(18px, 5vw, 56px) 76px;
    scroll-behavior: smooth;
    scroll-padding-top: 24px;
}

.main-content::before {
    content: "";
    position: absolute;
    top: clamp(120px, 16vw, 190px);
    bottom: 36px;
    left: clamp(4px, 2.4vw, 24px);
    width: 1px;
    pointer-events: none;
    background-image: linear-gradient(
        to bottom,
        color-mix(in srgb, var(--print-ink) 36%, transparent) 0 7px,
        transparent 7px 15px
    );
    opacity: 0.38;
}

.content-section {
    position: relative;
    max-width: 980px;
    margin: 0 auto 58px;
    padding-top: 22px;
    scroll-margin-top: calc(var(--top-nav-height) + 20px);
}

.content-section::before,
.project-detail-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    pointer-events: none;
    background:
        linear-gradient(90deg, var(--border-soft) 0 12px, transparent 12px 20px),
        linear-gradient(90deg, transparent 0, color-mix(in srgb, var(--bg-card) 34%, transparent) 34%, transparent 72%);
    background-size: 20px 1px, 100% 1px;
    opacity: 0.72;
}

.content-section::after,
.project-detail-section::after {
    content: "";
    position: absolute;
    top: 0;
    right: clamp(6px, 2vw, 18px);
    width: clamp(34px, 7vw, 74px);
    height: clamp(16px, 3.2vw, 30px);
    pointer-events: none;
    background:
        linear-gradient(138deg, transparent 0 48%, color-mix(in srgb, var(--print-ink) 18%, transparent) 49% 51%, transparent 52%),
        linear-gradient(168deg, color-mix(in srgb, var(--film-dust) 54%, transparent), transparent 68%);
    opacity: 0.7;
    transform: translateY(-1px) skewX(-9deg);
}

.content-section + .content-section {
    margin-top: clamp(14px, 4vw, 34px);
}

.story-node {
    position: absolute;
    top: 16px;
    left: clamp(-20px, -2vw, -8px);
    width: 9px;
    height: 9px;
    border: 1px solid var(--text-main);
    background: var(--bg-card);
    box-shadow: 2px 2px 0 color-mix(in srgb, var(--accent-pink) 42%, transparent);
    transform: rotate(-9deg);
    pointer-events: none;
}

.narrative-reveal {
    opacity: 0.78;
    transform: translateY(18px);
    filter: blur(0.4px);
    transition:
        opacity 620ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 700ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: var(--reveal-delay, 0ms);
    will-change: opacity, transform, filter;
}

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

.hero-page.narrative-reveal,
.hero-page.narrative-reveal.is-visible {
    opacity: 1;
    transform: none;
    filter: none;
    transition: none;
}

.content-section.narrative-reveal > *,
.project-detail-section.narrative-reveal > *,
.project-detail-hero.narrative-reveal > * {
    transition:
        opacity 520ms cubic-bezier(0.22, 1, 0.36, 1),
        transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
    transition-delay: calc(var(--reveal-delay, 0ms) + var(--stagger-delay, 0ms));
}

.content-section.narrative-reveal:not(.is-visible) > *,
.project-detail-section.narrative-reveal:not(.is-visible) > *,
.project-detail-hero.narrative-reveal:not(.is-visible) > * {
    opacity: 0.82;
    transform: translateY(10px);
}

.hero-page {
    position: relative;
    left: calc((100% - 100vw) / 2 + 40px);
    width: calc(100vw - 80px);
    max-width: none;
    margin: 0 auto 54px;
    min-height: calc(100vh - var(--top-nav-height));
    overflow: visible;
}

.hero-profile {
    display: flex;
    align-items: center;
    min-height: calc(100vh - var(--top-nav-height));
    padding: clamp(18px, 4vw, 38px) 0 clamp(26px, 5vw, 54px);
}

.hero-stage {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 650px) minmax(0, 1fr);
    align-items: center;
    justify-items: stretch;
    gap: 0;
    width: 100%;
}

.hero-intro {
    display: flex;
    flex-direction: column;
    gap: 30px;
    justify-self: start;
    max-width: 360px;
    padding-right: 20px;
    color: var(--text-main);
    opacity: 0;
    animation: heroIntroIn 960ms cubic-bezier(0.23, 1, 0.32, 1) 80ms both;
}

.hero-intro-title {
    font-family: "Times New Roman", Georgia, serif;
    font-size: 2.5rem;
    font-weight: normal;
    line-height: 1.2;
    border-left: 3px solid var(--text-main);
    padding-left: 15px;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.hero-intro-description {
    max-width: 320px;
    margin-top: 0;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.7;
    text-wrap: pretty;
}

.about-section {
    max-width: 980px;
}

.about-identity {
    margin-bottom: 28px;
}

.hero-art {
    position: relative;
    display: block;
    justify-self: center;
    width: min(550px, 100%);
    margin: 0 auto;
    aspect-ratio: 1 / 1;
    opacity: 0;
    animation: heroArtIn 980ms cubic-bezier(0.23, 1, 0.32, 1) 220ms both;
}

.hero-art-image {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: none;
    animation: heroArtFloat 4.8s ease-in-out infinite;
}

:root[data-theme="night"] .hero-art-image {
    mix-blend-mode: screen;
    filter: brightness(0) saturate(100%) invert(91%) sepia(13%) saturate(566%) hue-rotate(326deg) brightness(104%) contrast(90%);
    opacity: 0.9;
}

.hero-nav-rail {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: min(100%, 220px);
    height: min(58vh, 520px);
    min-width: 0;
    margin: 0;
    justify-self: end;
    overflow: visible;
    pointer-events: auto;
    opacity: 0;
    animation: heroNavIn 1000ms cubic-bezier(0.23, 1, 0.32, 1) 360ms both;
}

.hero-nav-window {
    position: relative;
    min-width: 0;
    width: 220px;
    height: 100%;
    overflow: visible;
    padding: 0;
}

.hero-nav-track {
    position: absolute;
    top: 50%;
    right: -286px;
    width: 1px;
    height: 1px;
    min-width: 0;
    overflow: visible;
    transform-origin: center;
    transition: transform 600ms cubic-bezier(0.23, 1, 0.32, 1);
    will-change: transform;
    pointer-events: none;
}

.hero-nav-track::-webkit-scrollbar {
    display: none;
}

.hero-nav-card {
    position: absolute;
    top: calc(clamp(92px, 7.4vw, 116px) / -2);
    left: -450px;
    width: clamp(92px, 7.4vw, 116px);
    min-height: 116px;
    text-decoration: none;
    transform-origin: 450px center;
    opacity: 1;
    transition: opacity 500ms ease;
    will-change: transform, opacity;
    pointer-events: auto;
    z-index: 3;
    cursor: pointer;
}

.hero-nav-card-face {
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-rows: auto 1fr;
    gap: 7px;
    align-content: start;
    width: 100%;
    min-height: 116px;
    padding: 7px 7px 9px;
    border: 1px solid var(--text-main);
    border-radius: 2px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.24), transparent 44%),
        color-mix(in srgb, var(--bg-card) 58%, transparent);
    -webkit-backdrop-filter: blur(8px) saturate(1.12);
    backdrop-filter: blur(8px) saturate(1.12);
    color: var(--text-main);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.38),
        inset 0 -1px 0 color-mix(in srgb, var(--print-ink) 12%, transparent),
        3px 3px 0 color-mix(in srgb, var(--print-ink) 26%, transparent);
    font-family: var(--font-mono);
    text-align: center;
    scroll-snap-align: center;
    transition: transform 120ms linear, box-shadow 180ms ease, border-color 180ms ease, background-color 180ms ease;
    user-select: none;
    will-change: transform;
    animation: heroPolaroidDrift 4s ease-in-out infinite;
}

:root[data-theme="night"] .hero-nav-card-face {
    border-color: color-mix(in srgb, var(--text-main) 72%, transparent);
    background:
        linear-gradient(145deg, rgba(255, 242, 229, 0.14), transparent 48%),
        color-mix(in srgb, var(--bg-card) 48%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 242, 229, 0.2),
        inset 0 -1px 0 rgba(255, 79, 154, 0.18),
        3px 3px 0 color-mix(in srgb, var(--accent-pink) 24%, transparent);
}

.hero-nav-card:nth-child(1) .hero-nav-card-face {
    animation-delay: 70ms;
}

.hero-nav-card:nth-child(2) .hero-nav-card-face {
    animation-delay: 150ms;
}

.hero-nav-card:nth-child(3) .hero-nav-card-face {
    animation-delay: 230ms;
}

.hero-nav-card:nth-child(4) .hero-nav-card-face {
    animation-delay: 310ms;
}

.hero-nav-card:nth-child(5) .hero-nav-card-face {
    animation-delay: 390ms;
}

@keyframes heroIntroIn {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }

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

@keyframes heroArtIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

@keyframes heroNavIn {
    from {
        opacity: 0;
        transform: translateX(22px);
    }

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

@keyframes heroArtFloat {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 0 -5px;
    }
}

@keyframes heroPolaroidDrift {
    0%,
    100% {
        translate: 0 0;
    }

    50% {
        translate: 2px -6px;
    }
}

.hero-nav-card:hover,
.hero-nav-card:focus-visible {
    outline: none;
}

.hero-nav-card:hover .hero-nav-card-face,
.hero-nav-card:focus-visible .hero-nav-card-face {
    border-color: var(--accent-pink);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.42),
        inset 0 -1px 0 color-mix(in srgb, var(--accent-pink) 16%, transparent),
        4px 4px 0 color-mix(in srgb, var(--accent-pink) 44%, transparent);
    transform: scale(1.06) translateX(-10px) !important;
}

.hero-nav-card.active .hero-nav-card-face,
.hero-nav-card.active:focus-visible .hero-nav-card-face {
    border-color: var(--accent-pink);
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.22), transparent 42%),
        color-mix(in srgb, var(--accent-pink) 24%, transparent),
        color-mix(in srgb, var(--bg-card) 52%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 color-mix(in srgb, var(--accent-pink) 20%, transparent),
        4px 4px 0 color-mix(in srgb, var(--accent-pink) 38%, transparent);
}

:root[data-theme="night"] .hero-nav-card:hover .hero-nav-card-face,
:root[data-theme="night"] .hero-nav-card:focus-visible .hero-nav-card-face,
:root[data-theme="night"] .hero-nav-card.active .hero-nav-card-face,
:root[data-theme="night"] .hero-nav-card.active:focus-visible .hero-nav-card-face {
    background:
        linear-gradient(145deg, rgba(255, 242, 229, 0.16), transparent 46%),
        color-mix(in srgb, var(--accent-pink) 22%, transparent),
        color-mix(in srgb, var(--bg-card) 42%, transparent);
    box-shadow:
        inset 0 1px 0 rgba(255, 242, 229, 0.24),
        inset 0 -1px 0 rgba(255, 79, 154, 0.22),
        4px 4px 0 color-mix(in srgb, var(--accent-pink) 42%, transparent);
}

.hero-nav-thumb {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    border: 1px solid var(--border-soft);
    background:
        linear-gradient(90deg, color-mix(in srgb, var(--print-ink) 11%, transparent) 1px, transparent 1px),
        linear-gradient(0deg, color-mix(in srgb, var(--print-ink) 9%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--archive-paper) 46%, transparent),
        color-mix(in srgb, var(--bg-card) 34%, transparent);
    background-size: 12px 12px;
    -webkit-backdrop-filter: blur(4px) saturate(1.08);
    backdrop-filter: blur(4px) saturate(1.08);
}

.hero-nav-thumb svg {
    width: 70%;
    height: 70%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.hero-nav-label {
    align-self: center;
    font-size: clamp(8px, 0.78vw, 10px);
    font-weight: 800;
    line-height: 1.08;
    overflow-wrap: anywhere;
    text-transform: capitalize;
}

.hero-identity {
    display: grid;
    justify-items: center;
    width: min(620px, 100%);
    margin-inline: auto;
    text-align: center;
    color: var(--text-main);
}

.hero-avatar-frame {
    position: relative;
    width: clamp(96px, 12vw, 142px);
    aspect-ratio: 1 / 1;
    margin-bottom: 14px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    box-shadow: none;
    overflow: hidden;
}

.hero-avatar-frame img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 45% 50%;
    border-radius: 50%;
    mix-blend-mode: multiply;
    filter: none;
}

.avatar-night {
    display: none;
    position: absolute;
    inset: 0;
}

:root[data-theme="night"] .avatar-day {
    display: none;
}

:root[data-theme="night"] .avatar-night {
    display: block;
    mix-blend-mode: screen;
    filter: none;
    opacity: 0.96;
}

.profile-handle {
    margin-bottom: 5px;
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 700;
    opacity: 0.8;
}

.hero-panel-role {
    max-width: 580px;
    margin-inline: auto;
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
}

.hero-tagline {
    max-width: 540px;
    margin-inline: auto;
    margin-top: 8px;
    color: var(--text-dark);
    font-size: 14px;
    line-height: 1.65;
}

.site-contact-footer {
    max-width: 980px;
    margin: 8px auto 0;
    padding: 24px 0 4px;
    border-top: 1px solid color-mix(in srgb, var(--text-main) 18%, transparent);
    scroll-margin-top: calc(var(--top-nav-height) + 20px);
}

.contact-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 18px;
}

.contact-link,
.contact-social-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 24px;
    border: 0;
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    text-decoration: none;
    transition: color 120ms ease, text-decoration-color 120ms ease;
}

.contact-link:hover,
.contact-social-link:hover {
    color: var(--accent-pink);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

.contact-social-link svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.contact-social-link svg path:first-child {
    fill: currentColor;
    stroke: none;
}

.section-title {
    display: inline-block;
    margin: 5px 0 22px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 30px;
    font-weight: 900;
    line-height: 1.08;
    text-transform: uppercase;
    letter-spacing: 0;
    text-decoration: underline;
    text-decoration-style: solid;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 8px;
}

.section-subtitle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 14px;
    color: var(--text-main);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.section-subtitle::before {
    content: "";
    width: 10px;
    height: 10px;
    border: 1px solid var(--text-main);
    border-radius: 0;
    background: var(--bg-nav);
    transform: rotate(-8deg);
}

.paper-card,
.card {
    position: relative;
    background: var(--bg-card);
    border: 1px solid var(--text-main);
    border-radius: var(--radius);
    box-shadow: var(--shadow-hard);
}

.tape-strip {
    position: absolute;
    top: -10px;
    left: 50%;
    width: 72px;
    height: 18px;
    background: color-mix(in srgb, var(--accent-amber) 36%, var(--bg-card));
    border: 1px dashed var(--border-soft);
    transform: translateX(-50%) rotate(-3deg);
}

.hero-summary,
.section-intro {
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 16px;
    line-height: 1.75;
}

.education-note {
    margin-top: 22px;
}

.education-note span {
    display: inline-block;
    margin-bottom: 12px;
    color: var(--text-main);
    font-family: var(--font-sans);
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
}

.education-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.education-card {
    min-height: 132px;
    padding: 14px 15px;
    border: 1px solid var(--text-main);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-card) 66%, transparent);
}

.education-card strong {
    display: block;
    color: var(--text-dark);
    font-size: 15px;
    line-height: 1.45;
}

.education-card p {
    margin-top: 7px;
    color: var(--text-muted);
    font-size: 13px;
    line-height: 1.55;
}

.education-period {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
}

.education-detail {
    color: var(--text-muted);
}

.skills-block {
    margin-top: 22px;
}

.skills-block h3 {
    color: var(--text-main);
    font-size: 15px;
    text-transform: uppercase;
}

.skills-container {
    display: grid;
    gap: 8px;
    margin-top: 12px;
}

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

.skill-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 3px 11px;
    border: 1px solid var(--border-soft);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--bg-card) 68%, transparent);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.tag {
    display: inline-flex;
    align-items: center;
    font-size: 10.5px;
    padding: 2px 7px;
    border: 1px solid var(--bg-nav);
    border-radius: var(--radius);
    background: var(--bg-main);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-weight: 400;
    line-height: 1.25;
}

.timeline-list {
    display: grid;
    gap: 22px;
}

.experience-entry {
    padding: 0 0 18px 18px;
    border-left: 1px solid var(--border-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--text-main) 16%, transparent);
}

.info-header {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding-bottom: 13px;
    border-bottom: 1px dashed var(--border-soft);
}

.info-header h3 {
    color: var(--text-dark);
    font-size: 17px;
}

.info-header p,
.info-header span {
    color: var(--text-muted);
    font-size: 13px;
}

.info-bullets {
    margin-top: 14px;
    padding-left: 18px;
}

.info-bullets li {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 13.5px;
    line-height: 1.6;
}

.bullet-label {
    color: var(--text-main);
    font-weight: 700;
}

.projects-rail {
    display: flex;
    flex-wrap: nowrap;
    gap: 18px;
    margin: 0 calc(var(--page-gutter) * -1);
    padding: 0 var(--page-gutter) 22px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-padding-inline: var(--page-gutter);
    scrollbar-width: thin;
    scrollbar-color: color-mix(in srgb, var(--text-main) 32%, transparent) transparent;
    -webkit-overflow-scrolling: touch;
}

.projects-rail::-webkit-scrollbar {
    height: 8px;
}

.projects-rail::-webkit-scrollbar-track {
    background: transparent;
}

.projects-rail::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-main) 32%, transparent);
}

.card {
    display: flex;
    flex-direction: column;
    width: 100%;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 180ms ease, border-color 160ms ease, box-shadow 180ms ease;
    will-change: transform;
}

.project-card {
    flex: 0 0 min(280px, calc(100vw - var(--page-gutter) * 2));
    min-width: 260px;
    border-radius: 8px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--archive-paper) 76%, var(--bg-card)) 0%,
            var(--bg-card) 56%
        );
}

.project-card:hover,
.project-card:focus-within {
    border-color: var(--text-main);
    transform: translateY(-7px);
    box-shadow:
        var(--shadow-print-offset),
        0 10px 18px color-mix(in srgb, var(--text-main) 14%, transparent);
}

.project-cover {
    display: block;
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--archive-paper) 74%, var(--bg-card));
}

.project-cover::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background-image:
        linear-gradient(to right, var(--bg-grid) 1px, transparent 1px),
        linear-gradient(to bottom, var(--bg-grid) 1px, transparent 1px);
    background-size: 24px 24px;
    opacity: 0.46;
    pointer-events: none;
}

.project-cover img,
.project-cover .image-placeholder {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
    object-fit: cover;
    font-size: 18px;
    filter: grayscale(0.16) sepia(0.16) contrast(0.96);
    transition: transform 520ms ease, filter 220ms ease;
}

.project-cover .image-placeholder {
    background:
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--archive-paper) 68%, var(--bg-card)),
            color-mix(in srgb, var(--bg-card) 86%, var(--bg-main))
        );
    color: var(--text-muted);
    font-family: var(--font-sans);
}

.project-card:hover .project-cover img,
.project-card:focus-within .project-cover img,
.project-card:hover .project-cover .image-placeholder,
.project-card:focus-within .project-cover .image-placeholder {
    transform: scale(1.07);
    filter: grayscale(0.08) sepia(0.12) contrast(1);
}

.project-hover-badge {
    position: absolute;
    top: 14px;
    left: 50%;
    z-index: 2;
    max-width: calc(100% - 28px);
    padding: 6px 13px;
    border: 1px solid color-mix(in srgb, var(--text-main) 24%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-card) 88%, transparent);
    backdrop-filter: blur(4px);
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    text-transform: uppercase;
    opacity: 0;
    transform: translateX(-50%) translateY(-12px);
    transition: opacity 220ms ease, transform 220ms ease, color 160ms ease;
    pointer-events: none;
    white-space: nowrap;
}

.project-card:hover .project-hover-badge,
.project-card:focus-within .project-hover-badge {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    color: var(--text-main);
}

.card-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 14px 14px 14px;
}

.project-card-body {
    min-height: 92px;
    justify-content: center;
    padding: 15px 16px 17px;
    background:
        linear-gradient(
            180deg,
            color-mix(in srgb, var(--bg-card) 92%, var(--archive-paper)),
            var(--bg-card)
        );
}

.project-card-link {
    color: inherit;
    text-decoration: none;
}

.project-card-link:focus-visible {
    outline: 2px solid var(--text-main);
    outline-offset: 4px;
}

.project-card-category {
    color: var(--text-muted);
    font-family: var(--font-sans);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.card h3 {
    margin-top: 8px;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 18px;
    line-height: 1.3;
}

.card h3 a:hover {
    color: var(--accent-pink);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 5px;
}

.detail-link {
    display: inline-block;
    margin-top: 15px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 21px;
    font-weight: 700;
    text-decoration: none;
}

.detail-link:hover {
    text-decoration: underline;
    text-decoration-style: solid;
    text-underline-offset: 5px;
}

.detail-nav-inner {
    justify-content: flex-start;
}

.project-detail {
    max-width: 980px;
}

.project-detail-hero {
    position: relative;
    padding: clamp(24px, 5vw, 58px) 0 clamp(28px, 5vw, 56px);
}

.detail-back-link,
.project-detail-category {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 700;
}

.detail-back-link {
    display: inline-block;
    margin-bottom: 24px;
    text-decoration: none;
}

.detail-back-link:hover {
    text-decoration: underline;
    text-underline-offset: 5px;
}

.project-detail-title {
    max-width: 980px;
    margin-top: 12px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.16;
    text-wrap: balance;
}

.project-detail-subtitle {
    max-width: 640px;
    margin-top: 12px;
    color: var(--text-dark);
    font-size: clamp(14px, 1.55vw, 17px);
    font-weight: 700;
    line-height: 1.6;
}

.project-detail-role {
    max-width: 780px;
    margin-top: 10px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.7;
}

.project-context-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px 18px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--border-soft);
}

.project-context-list div {
    min-width: 0;
}

.project-context-list dt {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.project-context-list dd {
    margin-top: 6px;
    color: var(--text-dark);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.45;
}

.project-detail-cover {
    width: min(100%, 860px);
    margin-top: 28px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    border: 1px solid var(--text-main);
    border-radius: var(--radius-wobbly-large);
    background: var(--bg-card);
    box-shadow: var(--shadow-hard);
}

.project-detail-cover img,
.project-detail-cover .image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: cover;
}

.project-detail-grid {
    position: relative;
    display: grid;
    gap: 18px;
    padding-bottom: 64px;
}

.project-detail-section {
    position: relative;
    padding: 18px 0 20px;
    border-top: 1px solid var(--border-soft);
}

.project-detail-section h2 {
    color: var(--text-main);
    font-size: 17px;
}

.project-detail-section p {
    max-width: 720px;
    margin-top: 10px;
    color: var(--text-dark);
    font-family: var(--font-serif);
    font-size: 15px;
    line-height: 1.75;
}

.case-section,
.case-overview,
.case-takeaway {
    display: grid;
    grid-template-columns: minmax(110px, 160px) minmax(0, 1fr);
    gap: clamp(18px, 4vw, 44px);
    align-items: start;
}

.local-case-detail {
    --local-terra: #9f472b;
    --local-pale: color-mix(in srgb, var(--bg-card) 78%, #f0d5c8);
    --local-soft: color-mix(in srgb, var(--bg-card) 84%, #e8d8c4);
}

.local-case-hero {
    padding-bottom: clamp(24px, 5vw, 48px);
}

.local-case-hero-title {
    max-width: 980px;
    font-size: clamp(26px, 3.2vw, 40px);
    line-height: 1.16;
}

.local-case-hero-title span,
.local-case-hero-title em {
    display: inline;
}

.local-case-hero-title em {
    color: var(--local-terra);
    font-style: italic;
}

.local-case-hero-image {
    width: min(100%, 980px);
    margin: clamp(22px, 4vw, 34px) 0 0;
}

.local-case-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 6px;
    background: transparent;
    box-shadow: none;
    object-fit: contain;
}

.local-case-detail .project-detail-subtitle {
    max-width: 760px;
    margin-top: 22px;
    font-size: clamp(16px, 1.8vw, 20px);
}

.local-section .case-section-body > p {
    max-width: 760px;
}

.local-pain-grid,
.local-screens-grid,
.local-business-grid {
    display: grid;
    gap: 14px;
    margin-top: 28px;
}

.local-pain-grid {
    grid-template-columns: 1fr;
}

.local-pain-card,
.local-business-card {
    border: 1px solid var(--text-main);
    background: var(--bg-card);
}

.local-pain-card {
    padding: clamp(16px, 2.5vw, 24px);
}

.local-pain-num,
.local-business-phase,
.local-screen-info span {
    color: var(--local-terra);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.local-pain-card h3,
.local-screen-info h3,
.local-business-card h3,
.local-next-item h3,
.local-flow-step h3 {
    color: var(--text-main);
    font-size: 17px;
    line-height: 1.35;
}

.local-pain-card blockquote {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 14px;
    line-height: 1.65;
}

.local-comparison-wrap {
    width: 100%;
    margin-top: 28px;
    overflow-x: auto;
}

.local-comparison-table {
    width: 100%;
    min-width: 720px;
    border-collapse: collapse;
    background: var(--bg-card);
    font-size: 14px;
}

.local-comparison-table th,
.local-comparison-table td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--border-soft);
    color: var(--text-dark);
    text-align: left;
    vertical-align: top;
}

.local-comparison-table th {
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
}

.local-comparison-table tr.is-local td {
    color: var(--local-terra);
    background: var(--local-pale);
    font-weight: 700;
}

.local-flow-row {
    display: flex;
    align-items: stretch;
    gap: 12px;
    margin: 34px 0;
}

.local-flow-step {
    flex: 1 1 0;
    min-width: 0;
    padding: 16px;
    border-top: 2px solid var(--text-main);
    background: color-mix(in srgb, var(--bg-card) 62%, transparent);
}

.local-flow-num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-bottom: 10px;
    border: 1px solid var(--text-main);
    border-radius: 50%;
    color: var(--local-terra);
    font-family: var(--font-mono);
    font-weight: 700;
}

.local-flow-arrow {
    align-self: center;
    color: var(--local-terra);
    font-family: var(--font-mono);
    font-weight: 700;
}

.local-screens-grid {
    grid-template-columns: 1fr;
    gap: clamp(28px, 5vw, 52px);
    margin-top: 38px;
}

.local-screen-card {
    display: grid;
    gap: 14px;
    background: transparent;
}

.local-screen-card.is-featured {
    border-color: transparent;
}

.local-screen-image {
    display: block;
    width: 100%;
    height: auto;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.local-screen-placeholder {
    display: grid;
    min-height: 220px;
    place-items: center;
    padding: 18px;
    border: 0;
    background: linear-gradient(160deg, #e8d5c8, #f5ede8);
}

.local-screen-card[data-tone="stone"] .local-screen-placeholder {
    background: linear-gradient(160deg, #d8c8c0, #ede0d8);
}

.local-screen-card[data-tone="terra"] .local-screen-placeholder {
    background: linear-gradient(160deg, #c8a898, #e0c8b8);
}

.local-screen-card[data-tone="green"] .local-screen-placeholder {
    background: linear-gradient(160deg, #c8d0c8, #e0e8e0);
}

.local-screen-placeholder span {
    color: var(--local-terra);
    font-family: var(--font-serif);
    font-size: 18px;
    font-weight: 700;
}

.local-screen-info {
    max-width: 720px;
    padding: 0;
}

.local-prototype-note {
    margin-top: 18px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    text-align: center;
}

.local-business-grid {
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.local-business-card {
    padding: clamp(16px, 2.5vw, 22px);
}

.local-business-card.is-active {
    background: var(--local-pale);
    border-color: var(--local-terra);
}

.local-business-card > span {
    display: inline-block;
    margin-top: 14px;
    padding: 4px 9px;
    border: 1px solid currentColor;
    color: var(--local-terra);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.local-next-list {
    display: grid;
    gap: 18px;
    margin-top: 28px;
}

.local-next-item {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 14px;
}

.local-next-dot {
    width: 12px;
    height: 12px;
    margin-top: 6px;
    border: 2px solid var(--local-terra);
    border-radius: 50%;
}

.local-next-item.is-done .local-next-dot {
    background: var(--local-terra);
}

.case-section-label {
    position: sticky;
    top: calc(var(--top-nav-height) + 18px);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.case-section-body h2 {
    max-width: 660px;
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: clamp(21px, 2.45vw, 31px);
    line-height: 1.18;
}

.case-point-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 14px;
    margin-top: 20px;
}

.case-point {
    padding-top: 12px;
    border-top: 1px solid var(--border-soft);
}

.case-point h3 {
    color: var(--text-main);
    font-size: 15px;
    line-height: 1.35;
}

.case-point p {
    margin-top: 7px;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.65;
}

.case-figure {
    width: min(100%, 780px);
    margin-top: 24px;
}

.case-figure img,
.case-figure .image-placeholder {
    display: block;
    width: 100%;
    max-height: 560px;
    min-height: 180px;
    border: 1px solid var(--text-main);
    border-radius: 6px;
    background: var(--bg-card);
    box-shadow: var(--shadow-print-offset);
    object-fit: contain;
}

.case-figure figcaption {
    margin-top: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.case-image-row-figure {
    width: min(100%, 860px);
    margin-top: 24px;
}

.case-image-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: clamp(12px, 2vw, 22px);
    align-items: center;
}

.case-image-row img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.case-image-row .image-placeholder {
    width: 100%;
    min-height: 220px;
    padding: 16px;
    border: 1px solid var(--text-main);
    border-radius: var(--radius);
    background: var(--bg-card);
    box-shadow: var(--shadow-hard);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    text-align: center;
}

.case-image-row-figure figcaption {
    margin-top: 9px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
}

.case-takeaway {
    padding-bottom: 44px;
}

.case-takeaway .case-section-body {
    padding: clamp(16px, 3vw, 24px) 0 0;
    border-top: 2px solid var(--text-main);
}

.paper-result {
    padding-bottom: 38px;
}

.paper-result .case-section-body h2 {
    max-width: 760px;
}

.paper-venue {
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
}

.paper-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.paper-actions a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--text-main);
    color: var(--text-main);
    background: var(--bg-card);
    box-shadow: var(--shadow-print-offset);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-decoration: none;
}

.paper-actions a:hover {
    color: var(--accent-pink);
    transform: translate(-1px, -1px);
}

.paper-preview {
    width: min(100%, 820px);
    height: clamp(380px, 72vh, 760px);
    margin-top: 18px;
    overflow: hidden;
    border: 1px solid var(--text-main);
    border-radius: 6px;
    background: var(--bg-card);
    box-shadow: var(--shadow-hard);
}

.paper-preview object {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.paper-preview p {
    margin: 18px;
}

.detail-tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    margin-top: 12px;
}

.honors-list {
    display: grid;
    gap: 22px;
}

.honor-entry {
    padding: 0 0 18px 18px;
    border-left: 1px solid var(--border-soft);
    border-bottom: 1px solid color-mix(in srgb, var(--text-main) 16%, transparent);
}

.honor-entry h3 {
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 17px;
    line-height: 1.35;
}

.honor-item {
    margin-top: 15px;
    padding-top: 13px;
    border-top: 1px solid var(--border-soft);
}

.honor-item strong {
    color: var(--text-dark);
    font-size: 14px;
}

.honor-item p {
    margin-top: 7px;
    color: var(--text-muted);
    font-family: var(--font-serif);
    font-size: 13px;
    line-height: 1.6;
}

.section-intro {
    max-width: 720px;
    margin-bottom: 22px;
    color: var(--text-muted);
}

@media (min-width: 901px) {
    html {
        scroll-snap-type: y proximity;
    }

    #hero,
    .content-section,
    .site-contact-footer {
        scroll-snap-align: start;
    }
}

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

    .contact-link,
    .contact-social-link,
    .card,
    .project-cover img,
    .project-cover .image-placeholder,
    .project-hover-badge,
    .hero-nav-card,
    .hero-nav-card-face,
    .hero-nav-track,
    .narrative-reveal,
    .content-section.narrative-reveal > *,
    .project-detail-section.narrative-reveal > *,
    .project-detail-hero.narrative-reveal > * {
        transition: none;
    }

    .project-card:hover,
    .project-card:focus-within,
    .project-card:hover .project-cover img,
    .project-card:focus-within .project-cover img,
    .project-card:hover .project-cover .image-placeholder,
    .project-card:focus-within .project-cover .image-placeholder {
        transform: none;
    }

    .project-card:hover .project-hover-badge,
    .project-card:focus-within .project-hover-badge {
        transform: translateX(-50%);
    }

    .hero-nav-track {
        scroll-behavior: auto;
    }

    .hero-intro,
    .hero-art,
    .hero-nav-rail,
    .hero-art-image,
    .hero-nav-card-face {
        animation: none;
    }

    .hero-intro,
    .hero-art,
    .hero-nav-rail {
        opacity: 1;
        transform: none;
        filter: none;
    }

    .hero-art-image,
    .hero-nav-card-face {
        translate: 0 0;
    }

    .narrative-reveal,
    .narrative-reveal.is-visible,
    .content-section.narrative-reveal:not(.is-visible) > *,
    .project-detail-section.narrative-reveal:not(.is-visible) > *,
    .project-detail-hero.narrative-reveal:not(.is-visible) > * {
        opacity: 1;
        transform: none;
        filter: none;
    }
}

@media (max-width: 900px) {
    html {
        scroll-snap-type: none;
    }

    body {
        overflow: auto;
    }

    .top-nav {
        position: sticky;
        height: auto;
        grid-template-columns: 1fr;
        justify-items: stretch;
        min-height: auto;
        padding: 12px;
    }

    .top-nav-inner {
        grid-column: auto;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 8px 10px;
    }

    .top-nav-inner a:not(:last-child)::after {
        content: "";
    }

    .nav-actions {
        grid-column: auto;
        justify-self: start;
    }

    .site-brand {
        grid-column: auto;
    }

    .app-body {
        position: static;
        inset: auto;
        display: block;
        min-height: auto;
        padding-top: 0;
    }

    .main-content {
        overflow: visible;
        padding: 30px 18px 56px;
    }

    .main-content::before {
        left: 7px;
        top: 74px;
        opacity: 0.26;
    }

    .content-section {
        margin-bottom: 44px;
        padding-top: 18px;
        scroll-margin-top: 120px;
    }

    .content-section::after,
    .project-detail-section::after {
        width: 38px;
        height: 18px;
        opacity: 0.52;
    }

    .story-node {
        left: -14px;
    }

    .hero-page {
        left: auto;
        width: calc(100vw - 24px);
        margin-left: calc((100% - (100vw - 24px)) / 2);
        margin-right: calc((100% - (100vw - 24px)) / 2);
        margin-top: -30px;
    }

    .hero-profile {
        min-height: auto;
        padding-top: 0;
        display: block;
    }

    .hero-stage {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 22px;
        overflow: visible;
    }

    .hero-intro {
        justify-self: stretch;
        max-width: 560px;
        text-align: left;
    }

    .hero-intro-title {
        font-size: clamp(34px, 11vw, 52px);
        border-left: none;
        padding-left: 0;
    }

    .hero-intro-description {
        max-width: 560px;
        font-size: 14px;
    }

    .hero-nav-rail {
        display: block;
        width: min(100%, 560px);
        height: auto;
        margin-top: 0;
        overflow: hidden;
        pointer-events: auto;
    }

    .hero-nav-window {
        overflow: hidden;
        width: 100%;
        height: auto;
        max-height: none;
        padding-inline: 0;
    }

    .hero-nav-track {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: flex-end;
        gap: 14px;
        width: auto;
        height: auto;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        overscroll-behavior-x: contain;
        scroll-behavior: smooth;
        scroll-snap-type: x mandatory;
        scrollbar-width: none;
        padding: 4px 2px 10px;
        transform: none !important;
        pointer-events: auto;
    }

    .hero-nav-card {
        position: static;
        top: auto;
        left: auto;
        flex-basis: 88px;
        flex-shrink: 0;
        min-height: 106px;
        width: auto;
        opacity: 1 !important;
        scroll-snap-align: center;
        transform: rotate(-0.6deg) !important;
        transform-origin: center;
    }

    .hero-nav-card:nth-child(2n) {
        transform: rotate(1.4deg) !important;
    }

    .hero-nav-card:nth-child(3n) {
        transform: rotate(-1.8deg) !important;
    }

    .hero-nav-card-face {
        min-height: 106px;
        transform: none !important;
    }

    .hero-art {
        width: min(520px, 82vw);
    }

    .site-contact-footer {
        margin-top: 0;
    }

    .case-section,
    .case-overview,
    .case-takeaway {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .case-section-label {
        position: static;
    }

    .project-detail-section,
    .project-detail-grid > *,
    .case-section-body,
    .project-context-list,
    .detail-tag-list,
    .case-point-grid,
    .case-point,
    .case-figure,
    .case-image-row-figure {
        box-sizing: border-box;
        min-width: 0;
        width: 100%;
        max-width: 100%;
        min-inline-size: 0;
        inline-size: 100%;
        max-inline-size: 100%;
    }

    .case-image-row-figure {
        overflow-x: hidden;
    }

    .project-detail-title,
    .project-detail-subtitle,
    .project-detail-role,
    .case-section-label,
    .case-section-body h2,
    .project-detail-section p,
    .project-context-list dd,
    .case-point h3,
    .case-point p,
    .tag,
    .detail-tag-list {
        max-width: 100%;
        white-space: normal;
        overflow-wrap: anywhere;
        word-break: break-all;
        line-break: anywhere;
    }

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

    .info-header {
        display: block;
    }

    .info-header span {
        display: inline-block;
        margin-top: 8px;
    }
}

@media (max-width: 560px) {
    .top-nav-inner {
        gap: 6px 8px;
        font-size: 12px;
    }

    .top-nav-inner a {
        padding: 3px 4px;
    }

    .hero-profile {
        min-height: auto;
    }

    .hero-art {
        width: 100%;
        max-width: 370px;
    }

    .hero-nav-track {
        gap: 10px;
        padding-bottom: 8px;
    }

    .hero-nav-card {
        flex-basis: 82px;
        min-height: 102px;
    }

    .hero-nav-card-face {
        min-height: 102px;
        padding: 6px 6px 8px;
    }

    .hero-identity {
        text-align: center;
        justify-items: center;
    }

    .contact-links {
        display: grid;
        gap: 9px;
    }

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

    .projects-rail {
        gap: 14px;
        padding-bottom: 20px;
    }

    .projects-rail .project-card {
        flex-basis: min(74vw, 280px);
        min-width: min(74vw, 280px);
    }

    .section-title {
        font-size: 23px;
    }

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

    .case-point-grid {
        grid-template-columns: 1fr;
    }

    .case-section-body h2 {
        font-size: clamp(20px, 6vw, 26px);
        line-height: 1.22;
    }

    .project-detail-section p {
        font-size: 16px;
        line-height: 1.75;
    }

    .case-point p {
        font-size: 14px;
        line-height: 1.7;
    }

    .case-figure {
        overflow-x: hidden;
    }

    .case-figure img,
    .case-figure .image-placeholder {
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 430px;
        min-height: 160px;
        object-fit: contain;
    }

    .case-image-row {
        display: flex;
        width: 100%;
        max-width: 100%;
        gap: 14px;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 6px;
        overscroll-behavior-x: contain;
        scrollbar-width: thin;
    }

    .case-image-row img {
        width: min(78vw, 420px);
        max-width: none;
        flex: 0 0 auto;
    }

    .local-flow-row {
        flex-direction: column;
    }

    .local-flow-arrow {
        transform: rotate(90deg);
        justify-self: start;
    }

    .local-comparison-wrap {
        max-width: 100%;
        overflow-x: auto;
    }

    .local-screen-placeholder {
        min-height: 190px;
    }
}
