html, body {
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

h1:focus {
    outline: none;
}

a, .btn-link {
    color: #0071c1;
}

.btn-primary {
    color: #fff;
    background-color: #1b6ec2;
    border-color: #1861ac;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.content {
    padding-top: 1.1rem;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid red;
}

.validation-message {
    color: red;
}

#blazor-error-ui {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

/* ── Loading screen ── */
.loading-screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--background, #fafafa);
    z-index: 9999;
    gap: 2rem;
}

/* Kanji character — 間 (ma) — the Japanese concept of space / pause */
.loading-kanji {
    font-family: 'Noto Serif JP', serif;
    font-size: 2.4rem;
    font-weight: 200;
    color: var(--text-primary, #1a1a1a);
    opacity: 0;
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 0.6;  }
}

/* Thin horizontal line that fills with load progress */
.loading-line {
    width: 120px;
    height: 1px;
    background: var(--border, #e0e0e0);
    position: relative;
    overflow: hidden;
}

.loading-line::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: var(--blazor-load-percentage, 0%);
    background: var(--accent, #1a1a1a);
    transition: width 0.4s ease;
}

/* Percentage text */
.loading-progress-text {
    position: static;
    inset: unset;
    font-family: 'Noto Sans JP', sans-serif;
    font-size: 0.65rem;
    font-weight: 300;
    letter-spacing: 0.3em;
    color: var(--text-tertiary, #999);
}

.loading-progress-text:after {
    content: var(--blazor-load-percentage-text, "Loading");
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    border: none;
    font-size: 1.4rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease, background 0.2s ease;
    z-index: 999;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background: var(--stempink);
    box-shadow: 0 4px 14px rgba(0,0,0,0.3);
}
    }

code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}
 :root {
     --accent: var(--stempink);
     --text-primary: #1a1a1a;
     --text-secondary: #666666;
     --text-tertiary: #999999;
     --border: #e0e0e0;
     --background: #fafafa;
     --surface: #ffffff;
     --surface-raised: #f5f5f5;
     --surface-muted: #f0f0f0;
     --nav-bg: rgba(250, 250, 250, 0.95);
     --stemblue: #4D2EFD;
     --stemgreen: #7AFDB5;
     --stemorange: #FE920D;
     --stempink: #F04FCD;
     --stemblue-10: #F1EEFF;
     --wire-fill: #e9ecef;
     --wire-line: #ced4da;
     --wire-dark: #adb5bd;
     --wire-block: #f8f9fa;
     --bg-warm: #fdf8f6;
     --border-light: #f0f0f0;
     --green: #2e7d32;
     --green-bg: #e8f5e9;
     --blue: #1565c0;
     --blue-bg: #e3f2fd;
     --amber: #e65100;
     --amber-bg: #fff3e0;
     --purple: #6a1b9a;
     --purple-bg: #f3e5f5;
     --teal: #00695c;
     --teal-bg: #e0f2f1;
     --slate: #37474f;
     --slate-bg: #eceff1;
     --decision-bg: #fce4ec;
     --badge-yellow: #fff3cd;
     --badge-red: #f8d7da;
     color-scheme: light dark;
 }

 /* Dark theme — auto-detect system preference (only when no manual choice) */
 @media (prefers-color-scheme: dark) {
     :root:not([data-theme="light"]) {
         --text-primary: #d4d4d4;
         --text-secondary: #9d9d9d;
         --text-tertiary: #6e6e6e;
         --border: #333333;
         --background: #1e1e1e;
         --surface: #252526;
         --surface-raised: #2d2d2d;
         --surface-muted: #333333;
         --nav-bg: rgba(30, 30, 30, 0.95);
         --stemblue-10: #1a1535;
         --wire-fill: #333333;
         --wire-line: #444444;
         --wire-dark: #555555;
         --wire-block: #2d2d2d;
         --bg-warm: #2a2524;
         --border-light: #333333;
         --green: #4caf50;
         --green-bg: #1b2e1b;
         --blue: #42a5f5;
         --blue-bg: #1a2332;
         --amber: #ff9800;
         --amber-bg: #2e2213;
         --purple: #ce93d8;
         --purple-bg: #261a2e;
         --teal: #4db6ac;
         --teal-bg: #1a2e2b;
         --slate: #b0bec5;
         --slate-bg: #263238;
         --decision-bg: #3d1a24;
         --badge-yellow: #3d3519;
         --badge-red: #3d1a1d;
     }
 }

 /* Dark theme — manual override */
 [data-theme="dark"] {
     --text-primary: #d4d4d4;
     --text-secondary: #9d9d9d;
     --text-tertiary: #6e6e6e;
     --border: #333333;
     --background: #1e1e1e;
     --surface: #252526;
     --surface-raised: #2d2d2d;
     --surface-muted: #333333;
     --nav-bg: rgba(30, 30, 30, 0.95);
     --stemblue-10: #1a1535;
     --wire-fill: #333333;
     --wire-line: #444444;
     --wire-dark: #555555;
     --wire-block: #2d2d2d;
     --bg-warm: #2a2524;
     --border-light: #333333;
     --green: #4caf50;
     --green-bg: #1b2e1b;
     --blue: #42a5f5;
     --blue-bg: #1a2332;
     --amber: #ff9800;
     --amber-bg: #2e2213;
     --purple: #ce93d8;
     --purple-bg: #261a2e;
     --teal: #4db6ac;
     --teal-bg: #1a2e2b;
     --slate: #b0bec5;
     --slate-bg: #263238;
     --decision-bg: #3d1a24;
     --badge-yellow: #3d3519;
     --badge-red: #3d1a1d;
 }

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

body {
    font-family: 'Noto Sans JP', sans-serif;
    background: var(--background);
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 300;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
}

/* Header */
header {
    padding: 100px 0 80px;
    border-bottom: 1px solid var(--border);
}

.logo {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 80px;
}

.hero {
    position: relative;
    padding-left: 40px;
}

.hero::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
}

.hero-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 48px;
    font-weight: 400;
    letter-spacing: -1px;
    margin-bottom: 20px;
    line-height: 1.3;
}

.hero-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    letter-spacing: 1px;
    margin-bottom: 20px;
    font-weight: 300;
}

.contact-links {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
    font-size: 13px;
}

.contact-link {
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

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

.contact-separator {
    color: var(--border);
    font-weight: 300;
}

.hero-description {
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Navigation */
nav {
    position: sticky;
    top: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 100;
    border-bottom: 1px solid var(--border);
}

.nav-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 60px;
    display: flex;
    gap: 40px;
    height: 60px;
    align-items: center;
}

.nav-link {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--accent);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -20px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* Theme Toggle */
.theme-toggle {
    margin-left: auto;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 6px 10px;
    color: var(--text-secondary);
    font-size: 14px;
    transition: color 0.3s, border-color 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

/* In light mode (default), show moon icon; hide sun */
.theme-icon-light {
    display: none;
}

.theme-icon-dark {
    display: inline;
}

/* In dark mode (manual), show sun icon; hide moon */
[data-theme="dark"] .theme-icon-dark {
    display: none;
}

[data-theme="dark"] .theme-icon-light {
    display: inline;
}

/* In dark mode (auto), show sun icon; hide moon */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-icon-dark {
        display: none;
    }
    :root:not([data-theme="light"]) .theme-icon-light {
        display: inline;
    }
}

/* Main Content */
main {
    padding: 80px 0;
    padding-bottom: 0;
    transition: opacity 0.3s ease;
}

main.page-fading {
    opacity: 0;
}

@keyframes sectionFadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes sectionFadeOut {
    from { opacity: 1; }
    to   { opacity: 0; }
}

.section {
    display: none;
}

.section.active {
    display: block;
    animation: sectionFadeIn 0.4s ease forwards;
}

.section.fading-out {
    display: block;
    animation: sectionFadeOut 0.3s ease forwards;
}

/* Projects Header & TOC */
.projects-header {
    margin-bottom: 80px;
}

.projects-header .section-header {
    margin-bottom: 40px;
}

.projects-header .section-title {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 400;
    margin-bottom: 12px;
}

.projects-header .section-subtitle {
    font-size: 15px;
    line-height: 1.8;
    color: var(--text-secondary);
    max-width: 700px;
}

.projects-toc {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 32px 36px;
}

.projects-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 28px;
}

.projects-toc-group-label {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 400;
    color: var(--text-secondary);
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border-light);
}

.projects-toc-year {
    font-weight: 300;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.projects-toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: none;
}

.projects-toc-list li {
    padding: 5px 0;
    font-size: 14px;
    font-weight: 300;
    line-height: 1.6;
    color: var(--text-primary);
}

.projects-toc-link {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.2s;
}

.projects-toc-link:hover {
    color: var(--accent);
}

.projects-toc-dim {
    color: var(--text-tertiary);
    font-size: 13px;
    font-weight: 300;
}

.projects-toc-dimensions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 20px;
    border-top: 1px solid var(--border-light);
}

.projects-toc-pill {
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 4px 12px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text-tertiary);
    font-weight: 400;
}

/* Smooth scroll for anchor links */
html {
    scroll-behavior: smooth;
}

/* Project */
.project {
    margin-bottom: 120px;
    position: relative;
    padding-left: 40px;
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    scroll-margin-top: 120px;
}

.project::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
}

.project-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 300;
}

.project-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.project-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 30px;
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

.project-year {
    color: var(--text-tertiary);
}

.project-role {
    color: var(--accent);
    font-weight: 500;
}

.project-description {
    font-size: 15px;
    line-height: 2.2;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
}

.project-details {
    list-style: none;
    margin-bottom: 30px;
}

.project-details li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 12px;
    line-height: 1.8;
}

.project-details li::before {
    content: '-';
    position: absolute;
    left: 0;
    color: var(--accent);
}

.project-tools {
    margin-bottom: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.tools-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 12px;
    font-weight: 500;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tool {
    font-size: 13px;
    color: var(--text-secondary);
    background: var(--surface);
    padding: 6px 16px;
    border: 1px solid var(--border);
    letter-spacing: 0.5px;
    transition: all 0.3s;
}

.tool:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.project-image {
    width: 100%;
    background: transparent;
    margin: 40px 0 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transition: all 0.4s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    object-fit: contain;
}

.project-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(211, 47, 47, 0), rgba(211, 47, 47, 0.05));
    opacity: 0;
    transition: opacity 0.4s;
}

.project-image:hover::before {
    opacity: 1;
}

.project-links {
    display: flex;
    gap: 30px;
    font-size: 13px;
}

.project-link {
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 1px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 2px;
    transition: all 0.3s;
}

.project-link:hover {
    border-bottom-color: var(--accent);
    color: var(--accent);
}

/* Older Projects Section */
.older-projects-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 24px 0;
    margin: 60px 0 20px;
    cursor: pointer;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    transition: all 0.3s ease;
}

.older-projects-toggle:hover {
    border-color: var(--accent);
}

.older-projects-label {
    font-size: 13px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-secondary);
    font-weight: 500;
    transition: color 0.3s;
}

.older-projects-toggle:hover .older-projects-label {
    color: var(--accent);
}

.older-projects-arrow {
    font-size: 16px;
    color: var(--text-tertiary);
    transition: transform 0.3s ease, color 0.3s;
}

.older-projects-arrow.open {
    transform: rotate(180deg);
}

.older-projects-toggle:hover .older-projects-arrow {
    color: var(--accent);
}

.older-projects {
    animation: fadeInOlderProjects 0.4s ease;
}

.project-screenshots-row {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin: 40px 0 30px;
}

.project-screenshot-mobile {
    width: calc(33.333% - 14px);
    max-width: 220px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
}

.project-screenshot-mobile:hover {
    transform: scale(1.02);
}

@media (max-width: 600px) {
    .project-screenshots-row {
        gap: 10px;
    }

    .project-screenshot-mobile {
        width: calc(33.333% - 7px);
        border-radius: 4px;
    }

    .projects-toc-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .projects-toc {
        padding: 24px 20px;
    }
}

@keyframes fadeInOlderProjects {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Image Lightbox */
.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    cursor: pointer;
    animation: lightboxFadeIn 0.25s ease;
}

@keyframes lightboxFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    cursor: default;
    animation: lightboxZoomIn 0.25s ease;
}

@keyframes lightboxZoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 24px;
    right: 32px;
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    line-height: 1;
    padding: 8px;
    opacity: 0.7;
    transition: opacity 0.2s;
}

.lightbox-close:hover {
    opacity: 1;
}

.project-image,
.project-screenshot-mobile {
    cursor: zoom-in;
}

/* Assets Section */
.assets-header {
    margin-bottom: 60px;
    padding-left: 40px;
    border-left: 3px solid var(--accent);
}

.assets-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
}

.assets-subtitle {
    font-size: 14px;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

/* Art Pieces */
.art-piece {
    margin-bottom: 80px;
    padding-bottom: 60px;
    border-bottom: 1px solid var(--border);
}

.art-piece:last-of-type {
    border-bottom: none;
}

.art-piece-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.art-piece-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-primary);
}

.art-piece-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    flex-wrap: wrap;
}

.art-piece-project {
    color: var(--accent);
    font-weight: 500;
}

.art-piece-credit {
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.art-piece-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 30px;
    max-width: 700px;
}

.art-piece-image {
    width: 100%;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border);
}

.art-piece-image:hover {
    transform: scale(1.01);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
}

/* Technologies Grid */
.tech-category {
    margin-bottom: 80px;
}

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

.tech-item {
    border-left: 3px solid var(--border);
    padding-left: 20px;
    transition: all 0.3s;
}

.tech-item:hover {
    border-left-color: var(--accent);
}

.tech-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.tech-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Experience Items */
.experience-item {
    margin-bottom: 50px;
    padding-left: 20px;
    border-left: 2px solid var(--border);
}

.experience-item:hover {
    border-left-color: var(--accent);
}

.experience-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.experience-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    font-size: 13px;
    flex-wrap: wrap;
}

.experience-company {
    color: var(--text-secondary);
    font-weight: 500;
}

.experience-period {
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* Footer */
footer {
    padding: 60px 0;
    border-top: 1px solid var(--border);
    margin-top: 80px;
}

.footer-content {
    text-align: center;
}

.footer-contact {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 13px;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.3s;
    border-bottom: 1px solid transparent;
    padding-bottom: 2px;
}

.footer-link:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.footer-separator {
    color: var(--border);
    font-weight: 300;
}

.footer-text {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .container,
    .nav-inner {
        padding: 0 30px;
    }

    header {
        padding: 60px 0 40px;
    }

    .logo {
        margin-bottom: 60px;
    }

    .hero-title {
        font-size: 36px;
    }

    .contact-links,
    .footer-contact {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }

    .footer-contact {
        align-items: center;
    }

    .contact-separator,
    .footer-separator {
        display: none;
    }

    .nav-inner {
        gap: 25px;
        overflow-x: auto;
    }

    .project {
        margin-bottom: 80px;
        padding-left: 25px;
    }

    .project::before {
        width: 2px;
    }

    .project-title {
        font-size: 26px;
    }

    .project-image {
        height: 300px;
        font-size: 60px;
    }

    .art-piece {
        margin-bottom: 60px;
        padding-bottom: 40px;
    }

    .art-piece-title {
        font-size: 18px;
    }

    .tech-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .assets-header {
        padding-left: 25px;
        border-left-width: 2px;
    }

    .art-piece-meta {
        flex-direction: column;
        gap: 6px;
    }
}

/* ══════════════════════════════════════════════════════════════
   UX Case Study Section Styles
   ══════════════════════════════════════════════════════════════ */

/* UX Internal Navigation */
.ux-nav {
    display: flex;
    gap: 25px;
    padding: 15px 0;
    margin-bottom: 60px;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    flex-wrap: wrap;
    position: sticky;
    top: 60px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 90;
    padding-top: 20px;
}

.ux-nav-link {
    font-size: 12px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    text-decoration: none;
    font-weight: 400;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
    padding-bottom: 8px;
}

.ux-nav-link:hover,
.ux-nav-link.active {
    color: var(--accent);
}

.ux-nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
}

/* UX Sub-sections */
.ux-subsection {
    display: none;
}

.ux-subsection.active {
    display: block;
    animation: sectionFadeIn 0.4s ease forwards;
}

.ux-subsection.fading-out {
    display: block;
    animation: sectionFadeOut 0.3s ease forwards;
}

/* Section Headers */
.ux-case-study .section-header {
    margin-bottom: 60px;
    padding-left: 40px;
    border-left: 3px solid var(--accent);
}

.ux-case-study .section-number {
    font-family: 'Noto Serif JP', serif;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 2px;
    margin-bottom: 8px;
    font-weight: 300;
}

.ux-case-study .section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 32px;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: -0.5px;
    line-height: 1.3;
}

.ux-case-study .section-subtitle {
    font-size: 15px;
    line-height: 2;
    color: var(--text-secondary);
    max-width: 700px;
}

/* Cards Grid */
.ux-case-study .card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.ux-case-study .card {
    border: none;
    border-radius: 0;
    border-left: 3px solid var(--border);
    padding: 0;
    padding-left: 20px;
    transition: all 0.3s;
    background: transparent;
}

.ux-case-study .card:hover {
    border-left-color: var(--accent);
}

.ux-case-study .card-icon {
    font-size: 24px;
    margin-bottom: 12px;
    display: block;
}

.ux-case-study .card h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ux-case-study .card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Persona (legacy — kept for backward compatibility) */
.persona {
    margin-bottom: 60px;
    padding-left: 40px;
    border-left: 3px solid var(--accent);
}

.persona-header {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 24px;
}

.persona-avatar {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    background: var(--surface);
    flex-shrink: 0;
}

.persona-identity h3 {
    font-family: 'Noto Serif JP', serif;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.persona-role {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.persona-section {
    margin-bottom: 20px;
}

.persona-section h4 {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 10px;
}

.persona-section h4.goals { color: #0a7c3e; }
.persona-section h4.frustrations { color: var(--accent); }

.persona-section ul {
    list-style: none;
    padding: 0;
}

.persona-section li {
    font-size: 14px;
    color: var(--text-secondary);
    padding-left: 20px;
    position: relative;
    margin-bottom: 8px;
    line-height: 1.8;
}

.persona-section.goals-section li::before {
    content: '\2713';
    position: absolute;
    left: 0;
    color: #0a7c3e;
    font-weight: 700;
}

.persona-section.frustrations-section li::before {
    content: '\2717';
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}

/* ── User Research (Enhanced) ── */

/* TOC */
.ur-toc {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.ur-toc.toc-away { top: -200px; }

.ur-toc-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}

.ur-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.ur-toc-grid a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ur-toc-grid a:hover { color: var(--accent); }

.ur-toc-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* Sections */
.ur-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 250px;
}

.ur-section:last-child { border-bottom: none; }

.ur-section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}

.ur-section-label.methodology { color: var(--stemblue); }
.ur-section-label.questions { color: var(--purple); }
.ur-section-label.findings { color: var(--green); }
.ur-section-label.principles { color: var(--stemorange); }
.ur-section-label.competitive { color: var(--teal); }

.ur-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.ur-section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* Method Grid */
.ur-method-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.ur-method-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
}

.ur-method-header {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.ur-method-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(42, 87, 141, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--stemblue);
    flex-shrink: 0;
}

.ur-method-info { flex: 1; }

.ur-method-type {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 2px;
}

.ur-method-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
}

.ur-method-stats {
    display: flex;
    gap: 24px;
    padding: 12px 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.ur-stat {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.ur-stat-value {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    color: var(--accent);
}

.ur-stat-label {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
}

.ur-method-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin: 0;
}

/* Questions Grid */
.ur-questions-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 24px;
}

.ur-question-block {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 24px;
}

.ur-question-category {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
}

.ur-question-category.student { color: var(--stemblue); }
.ur-question-category.educator { color: var(--stemorange); }
.ur-question-category.system { color: var(--purple); }

.ur-question-list {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: question-counter;
}

.ur-question-list li {
    counter-increment: question-counter;
    padding: 10px 0 10px 28px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ur-question-list li:last-child { border-bottom: none; }

.ur-question-list li::before {
    content: counter(question-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-size: 10px;
    font-weight: 600;
    color: var(--text-tertiary);
}

.ur-question-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Findings List */
.ur-findings-list {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.ur-finding {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.ur-finding-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 24px;
    background: rgba(42, 87, 141, 0.03);
    border-bottom: 1px solid var(--border);
}

.ur-finding-num {
    font-family: 'Noto Serif JP', serif;
    font-size: 14px;
    font-weight: 500;
    color: var(--accent);
    min-width: 24px;
}

.ur-finding-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    color: var(--text-primary);
    flex: 1;
}

.ur-finding-source {
    font-size: 10px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    background: rgba(0, 0, 0, 0.04);
    padding: 4px 10px;
    border-radius: 3px;
}

.ur-finding-body {
    padding: 24px;
}

.ur-finding-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.8;
    margin: 0 0 16px 0;
}

.ur-quote {
    margin: 0;
    padding: 16px 20px;
    background: rgba(42, 87, 141, 0.04);
    border-left: 3px solid var(--stemblue);
    font-style: italic;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.7;
}

.ur-quote cite {
    display: block;
    margin-top: 8px;
    font-style: normal;
    font-size: 12px;
    color: var(--text-tertiary);
}

/* Principles Grid */
.ur-principles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.ur-principle {
    display: flex;
    gap: 20px;
    padding: 24px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.ur-principle-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: rgba(207, 78, 84, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    color: var(--accent);
    flex-shrink: 0;
}

.ur-principle-content { flex: 1; }

.ur-principle-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ur-principle-statement {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 12px;
}

.ur-principle-applications {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ur-principle-applications li {
    font-size: 12px;
    color: var(--text-tertiary);
    padding: 4px 0 4px 16px;
    position: relative;
    line-height: 1.6;
}

.ur-principle-applications li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent);
}

/* Competitive table status icons */
.ur-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    white-space: nowrap;
}

.ur-status i { font-size: 14px; }

.ur-status.ur-yes { color: var(--green); }
.ur-status.ur-no { color: darkred }
.ur-status.ur-partial { color: var(--amber); }

/* Competitive table highlight */
.ur-our-solution {
    background: rgba(10, 124, 62, 0.08);
    color: var(--green);
    font-weight: 500;
}

/* ── Personas (Enhanced) ── */

/* TOC */
.ps-toc {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.ps-toc.toc-away { top: -200px; }

.ps-toc-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}

.ps-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.ps-toc-grid a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.ps-toc-grid a:hover { color: var(--accent); }

.ps-toc-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* Sections */
.ps-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.ps-section:last-child { border-bottom: none; }

.ps-section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}

.ps-section-label.student { color: var(--stemblue); }
.ps-section-label.educator { color: var(--stemorange); }
.ps-section-label.summary { color: var(--accent); }

.ps-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.ps-section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* Persona Block */
.ps-persona-block {
    margin-bottom: 56px;
    scroll-margin-top: 250px;
}

.ps-persona-block:last-child { margin-bottom: 0; }

.ps-persona-header {
    display: flex;
    gap: 24px;
    margin-bottom: 24px;
}

.ps-persona-avatar {
    width: 80px;
    height: 80px;
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    background: var(--surface);
    flex-shrink: 0;
    color: var(--stemblue);
}

.ps-persona-identity {
    flex: 1;
}

.ps-persona-id {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.ps-persona-name {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
    letter-spacing: -0.3px;
}

.ps-persona-role {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 12px;
}

.ps-tags {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Characteristics Grid */
.ps-characteristics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 24px 0;
}

.ps-char-box {
    padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.ps-char-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 6px;
}

.ps-char-value {
    font-family: 'Noto Serif JP', serif;
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 6px;
    color: var(--text-primary);
}

.ps-char-desc {
    font-size: 12px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Goals */
.ps-goals {
    margin: 24px 0;
}

.ps-goals-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--green);
    margin-bottom: 12px;
}

.ps-goals-list {
    list-style: none;
    padding: 0;
    counter-reset: goal-counter;
}

.ps-goals-list li {
    counter-increment: goal-counter;
    padding: 10px 0 10px 48px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ps-goals-list li:last-child { border-bottom: none; }

.ps-goals-list li::before {
    content: counter(goal-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--green);
    width: 32px;
    text-align: right;
}

.ps-goals-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Frustrations */
.ps-frustrations {
    margin: 24px 0;
}

.ps-frustrations-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 12px;
}

.ps-frustrations-list {
    list-style: none;
    padding: 0;
    counter-reset: frustration-counter;
}

.ps-frustrations-list li {
    counter-increment: frustration-counter;
    padding: 10px 0 10px 48px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.ps-frustrations-list li:last-child { border-bottom: none; }

.ps-frustrations-list li::before {
    content: counter(frustration-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 10px;
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    width: 32px;
    text-align: right;
}

.ps-frustrations-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Narrative */
.ps-narrative {
    margin: 24px 0;
}

.ps-narrative-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

/* Diagram Blocks */
.diagram-block {
    margin-bottom: 60px;
}

.diagram-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 8px;
    font-weight: 500;
}

.diagram-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.diagram-description {
    font-size: 13px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
    margin-bottom: 30px;
}

.diagram-container {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 40px 30px;
    overflow-x: auto;
    position: relative;
    display: flex;
    justify-content: center;
}

.diagram-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.diagram-container:hover::before {
    transform: scaleX(1);
}

.mermaid {
    display: flex;
    justify-content: center;
}

/* ── Wireframe Index ── */
.wf-index {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.wf-index.toc-away { top: -200px; }

.wf-index-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}

.wf-index-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
    padding: 0;
}

.wf-index-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.wf-index-link:hover {
    color: var(--accent);
}

.idx-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* ── Wireframe Section ── */
.wf-section {
    padding: 50px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 390px;
    margin-top: 60px;
}

.wf-section:last-of-type {
    border-bottom: none;
}

.wf-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 500;
    margin-bottom: 6px;
}

.wf-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 6px;
}

.wf-component {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-bottom: 8px;
}

.wf-desc {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 40px;
    max-width: 600px;
    line-height: 1.8;
}

/* ── Abstract Wireframe Canvas ── */
.wire {
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0;
    position: relative;
    overflow: hidden;
}

/* ── Abstract components ── */
.ab-rect {
    background: var(--wire-fill);
    height: 12px;
    border-radius: 2px;
}

.ab-rect.sm { width: 50px; }
.ab-rect.md { width: 100px; }
.ab-rect.lg { width: 160px; }
.ab-rect.xl { width: 240px; }
.ab-rect.full { width: 100%; }
.ab-rect.tall { height: 20px; }
.ab-rect.heading { height: 16px; background: var(--wire-dark); border-radius: 2px; }
.ab-rect.title { height: 22px; background: var(--wire-dark); border-radius: 2px; }

.ab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--wire-dark);
    border-radius: 4px;
    padding: 6px 16px;
    height: 32px;
}

.ab-btn .ab-btn-icon {
    width: 10px;
    height: 10px;
    background: var(--surface);
    border-radius: 50%;
    opacity: 0.6;
}

.ab-btn .ab-btn-text {
    width: 48px;
    height: 8px;
    background: var(--surface);
    border-radius: 1px;
    opacity: 0.6;
}

.ab-btn.primary { background: #bbb; }

.ab-btn.secondary {
    background: var(--wire-fill);
    border: 1px solid var(--wire-line);
}

.ab-btn.secondary .ab-btn-text { background: var(--wire-dark); }

.ab-btn.sm-btn {
    padding: 4px 10px;
    height: 26px;
}

.ab-btn.sm-btn .ab-btn-text {
    width: 32px;
    height: 6px;
}

.ab-icon-btn {
    width: 28px;
    height: 28px;
    border: 1px solid var(--wire-line);
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.ab-icon-btn .ab-icon {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--wire-dark);
}

.ab-icon-btn.danger .ab-icon { background: #e88; }

.ab-badge {
    display: inline-block;
    width: 52px;
    height: 16px;
    border-radius: 3px;
    background: var(--wire-fill);
}

.ab-badge.green { background: #d1e7dd; }
.ab-badge.blue { background: #cfe2ff; }
.ab-badge.yellow { background: var(--badge-yellow); }
.ab-badge.red { background: var(--badge-red); }
.ab-badge.grey { background: #e9ecef; }
.ab-badge.cyan { background: #cff4fc; }
.ab-badge.sm { width: 40px; height: 14px; }

.ab-dropdown {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--wire-line);
    padding: 5px 12px;
    background: var(--surface);
    border-radius: 3px;
}

.ab-dropdown .ab-dd-text {
    width: 40px;
    height: 8px;
    background: var(--wire-fill);
    border-radius: 1px;
}

.ab-dropdown .ab-dd-arrow {
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid var(--wire-dark);
}

.ab-text-block {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.ab-text-line {
    height: 8px;
    background: var(--wire-fill);
    border-radius: 1px;
}

.ab-text-line:nth-child(odd) { width: 100%; }
.ab-text-line:nth-child(even) { width: 85%; }
.ab-text-line:last-child { width: 60%; }

.ab-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--wire-fill);
    border: 1px solid var(--wire-line);
    flex-shrink: 0;
}

.ab-avatar.lg {
    width: 56px;
    height: 56px;
}

.ab-navbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 20px;
    background: var(--wire-fill);
    border-bottom: 1px solid var(--wire-line);
}

.ab-navbar .ab-nav-logo {
    width: 24px;
    height: 24px;
    background: var(--wire-dark);
    border-radius: 4px;
    flex-shrink: 0;
}

.ab-navbar .ab-nav-item {
    width: 48px;
    height: 8px;
    background: var(--wire-line);
    border-radius: 1px;
}

.ab-navbar .ab-nav-spacer { flex: 1; }

.ab-table { width: 100%; }

.ab-table-head {
    display: flex;
    gap: 4px;
    padding: 8px 16px;
    background: var(--wire-dark);
}

.ab-table-head .ab-th {
    height: 8px;
    background: rgba(255,255,255,0.5);
    border-radius: 1px;
    flex: 1;
}

.ab-table-row {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 10px 16px;
    border-bottom: 1px solid #f0f0f0;
}

.ab-table-row .ab-td {
    flex: 1;
    display: flex;
    align-items: center;
}

.ab-table-row .ab-td .ab-rect { width: 70%; }

.ab-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--wire-line);
}

.ab-tab {
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.ab-tab .ab-tab-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--wire-line);
}

.ab-tab .ab-tab-label {
    width: 36px;
    height: 7px;
    background: var(--wire-fill);
    border-radius: 1px;
}

.ab-tab.active {
    border-bottom: 2px solid var(--wire-dark);
    margin-bottom: -1px;
}

.ab-tab.active .ab-tab-dot { background: var(--wire-dark); }
.ab-tab.active .ab-tab-label { background: var(--wire-dark); }

.ab-card {
    background: var(--wire-block);
    border: 1px solid var(--wire-line);
    border-radius: 3px;
    padding: 16px;
}

.ab-stat {
    text-align: center;
    padding: 12px 8px;
    border: 1px solid var(--wire-line);
    background: var(--surface);
}

.ab-stat .ab-stat-num {
    width: 28px;
    height: 20px;
    background: var(--wire-dark);
    border-radius: 2px;
    margin: 0 auto 6px;
}

.ab-stat .ab-stat-label {
    width: 40px;
    height: 6px;
    background: var(--wire-fill);
    border-radius: 1px;
    margin: 0 auto;
}

.ab-score {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid var(--wire-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
}

.ab-score .ab-score-inner {
    width: 24px;
    height: 12px;
    background: var(--wire-dark);
    border-radius: 2px;
}

.ab-pagination {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 12px;
}

.ab-page-dot {
    width: 20px;
    height: 20px;
    border-radius: 3px;
    background: var(--wire-fill);
    border: 1px solid var(--wire-line);
}

.ab-page-dot.active {
    background: var(--wire-dark);
}

.ab-modal-shell {
    border: 2px solid var(--wire-line);
    border-radius: 6px;
    overflow: hidden;
    background: var(--surface);
}

.ab-modal-close {
    width: 24px;
    height: 24px;
    border: 1px solid var(--wire-line);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--surface);
}

.ab-modal-close::after {
    content: '';
    display: block;
    width: 10px;
    height: 10px;
    background: var(--wire-dark);
    border-radius: 50%;
}

.ab-progress {
    height: 8px;
    background: var(--wire-fill);
    border-radius: 4px;
    overflow: hidden;
}

.ab-progress-fill {
    height: 100%;
    background: var(--wire-dark);
    border-radius: 4px;
}

.ab-sep {
    height: 1px;
    background: var(--wire-line);
    margin: 12px 0;
}

/* Wireframe layout helpers */
.ux-case-study .flex { display: flex; }
.ux-case-study .flex-col { display: flex; flex-direction: column; }
.ux-case-study .gap-4 { gap: 4px; }
.ux-case-study .gap-6 { gap: 6px; }
.ux-case-study .gap-8 { gap: 8px; }
.ux-case-study .gap-10 { gap: 10px; }
.ux-case-study .gap-12 { gap: 12px; }
.ux-case-study .gap-16 { gap: 16px; }
.ux-case-study .gap-20 { gap: 20px; }
.ux-case-study .items-center { align-items: center; }
.ux-case-study .justify-between { justify-content: space-between; }
.ux-case-study .justify-end { justify-content: flex-end; }
.ux-case-study .flex-1 { flex: 1; }
.ux-case-study .w-full { width: 100%; }
.ux-case-study .p-16 { padding: 16px; }
.ux-case-study .p-20 { padding: 20px; }
.ux-case-study .px-20 { padding-left: 20px; padding-right: 20px; }
.ux-case-study .py-12 { padding-top: 12px; padding-bottom: 12px; }
.ux-case-study .mt-8 { margin-top: 8px; }
.ux-case-study .mt-12 { margin-top: 12px; }
.ux-case-study .mb-8 { margin-bottom: 8px; }
.ux-case-study .mb-12 { margin-bottom: 12px; }

/* UI Design System */
.palette {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.swatch {
    text-align: center;
}

.swatch-color {
    width: 80px;
    height: 60px;
    border: 1px solid var(--border);
    margin-bottom: 8px;
}

.swatch-label {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.5px;
    color: var(--text-primary);
}

.swatch-hex {
    font-size: 10px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

.type-specimen {
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.type-specimen:last-child { border-bottom: none; }

.type-meta {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 1px;
    margin-bottom: 4px;
}

.badge-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.status-badge {
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    white-space: nowrap;
    letter-spacing: 0.5px;
}

.component-block {
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border);
}

.component-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.component-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    font-weight: 500;
}

.btn-demo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    font-size: 13px;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.5px;
}

.btn-demo:hover { opacity: 0.85; }

.btn-primary-demo { background: var(--stemgreen); color: var(--stemblue); }
.btn-secondary-demo { background: var(--stemblue); color: white; }

.action-btn-demo {
    background: transparent;
    border: 1px solid var(--border);
    color: var(--stemblue);
    cursor: pointer;
    font-size: 14px;
    padding: 6px 10px;
    transition: all 0.3s;
    display: inline-flex;
}

.action-btn-demo:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.filter-demo {
    border: 1px solid var(--border);
    padding: 8px 16px;
    font-size: 13px;
    display: inline-flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    min-width: 160px;
    transition: border-color 0.3s;
    color: var(--text-secondary);
}

.filter-demo:hover {
    border-color: var(--accent);
}

.tab-demo {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--border);
}

.tab-demo span {
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
    transition: color 0.3s;
    cursor: pointer;
}

.tab-demo span.active-tab {
    color: var(--accent);
    border-bottom: 2px solid var(--accent);
    margin-bottom: -1px;
}

.tab-demo span:hover {
    color: var(--accent);
}

/* ── Interaction Design ── */

/* Colour palette — interactions (matching reference exactly) */
:root {
    --ix-nav: var(--accent);
    --ix-nav-bg: #fce4ec;
    --ix-micro: #2e7d32;
    --ix-micro-bg: #e8f5e9;
    --ix-flow: #1565c0;
    --ix-flow-bg: #e3f2fd;
    --ix-feedback: #e65100;
    --ix-feedback-bg: #fff3e0;
    --ix-gesture: #6a1b9a;
    --ix-gesture-bg: #f3e5f5;
    --ix-state: #00695c;
    --ix-state-bg: #e0f2f1;
    --ix-error: #37474f;
    --ix-error-bg: #eceff1;
}

/* TOC */
.ix-toc {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 0;
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.ix-toc.toc-away { top: -200px; }
.ix-toc-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}
.ix-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}
.ix-toc-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}
.ix-toc-link:hover { color: var(--accent); }
.ix-toc-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* Section blocks */
.ix-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 320px;
}
.ix-section:last-of-type { border-bottom: none; }

.ix-section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}
.ix-label-nav      { color: var(--ix-nav); }
.ix-label-micro    { color: var(--ix-micro); }
.ix-label-flow     { color: var(--ix-flow); }
.ix-label-feedback { color: var(--ix-feedback); }
.ix-label-gesture  { color: var(--ix-gesture); }
.ix-label-state    { color: var(--ix-state); }
.ix-label-error    { color: var(--ix-error); }

.ix-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}
.ix-section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 640px;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* Interaction cards */
.ix-interaction { margin-bottom: 48px; }
.ix-interaction:last-child { margin-bottom: 0; }

.ix-head {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.ix-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 16px;
    margin-top: 1px;
}
.ix-icon-nav      { background: var(--ix-nav-bg); color: var(--ix-nav); }
.ix-icon-micro    { background: var(--ix-micro-bg); color: var(--ix-micro); }
.ix-icon-flow     { background: var(--ix-flow-bg); color: var(--ix-flow); }
.ix-icon-feedback { background: var(--ix-feedback-bg); color: var(--ix-feedback); }
.ix-icon-gesture  { background: var(--ix-gesture-bg); color: var(--ix-gesture); }
.ix-icon-state    { background: var(--ix-state-bg); color: var(--ix-state); }
.ix-icon-error    { background: var(--ix-error-bg); color: var(--ix-error); }

.ix-title {
    font-size: 17px;
    font-weight: 500;
    letter-spacing: -0.3px;
    line-height: 1.4;
    color: var(--text-primary);
}
.ix-component {
    font-size: 12px;
    color: var(--text-tertiary);
    font-family: 'SF Mono', 'Fira Code', monospace;
    margin-top: 3px;
}
.ix-body {
    padding-left: 52px;
}
.ix-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 12px;
}
.ix-body p:last-child { margin-bottom: 0; }
.ix-body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* Separators */
.ix-sep {
    height: 1px;
    background: var(--border-light);
    margin: 40px 0;
}

/* Trigger → Response sequences */
.ix-sequence {
    margin: 16px 0;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    overflow: hidden;
}
.ix-seq-label-row {
    display: flex;
    border-bottom: 1px solid var(--border-light);
}
.ix-seq-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    padding: 8px 16px;
    background: var(--surface-muted);
    border-bottom: 1px solid var(--border-light);
}
.ix-seq-label-row .ix-seq-label:first-child {
    border-right: 1px solid var(--border-light);
}
.ix-seq-row {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--border-light);
}
.ix-seq-row:last-child { border-bottom: none; }

.ix-seq-trigger {
    flex: 0 0 200px;
    padding: 12px 16px;
    background: var(--wire-block);
    font-size: 13px;
    font-weight: 400;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid var(--border-light);
}
.ix-seq-arrow {
    flex: 0 0 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-tertiary);
    font-size: 14px;
}
.ix-seq-response {
    flex: 1;
    padding: 12px 16px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* State diagrams */
.ix-state-diagram {
    margin: 16px 0;
    padding: 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    line-height: 2;
    color: var(--text-secondary);
    overflow-x: auto;
    white-space: pre;
}
.ix-st {
    display: inline-block;
    background: var(--wire-fill);
    padding: 2px 10px;
    border-radius: 3px;
    color: var(--text-primary);
    font-weight: 500;
}
.ix-st-active  { background: var(--ix-flow-bg); color: var(--ix-flow); }
.ix-st-success { background: var(--ix-micro-bg); color: var(--ix-micro); }
.ix-st-warn    { background: var(--ix-feedback-bg); color: var(--ix-feedback); }
.ix-st-danger  { background: var(--ix-nav-bg); color: var(--ix-nav); }
.ix-st-special { background: var(--ix-state-bg); color: var(--ix-state); }
.ix-arrow { color: var(--text-tertiary); }
.ix-label { font-size: 10px; color: var(--text-tertiary); font-style: italic; font-weight: 300; }

/* Timing specs */
.ix-timing {
    margin: 16px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.ix-timing-item {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 12px 16px;
    min-width: 140px;
    flex: 1;
}
.ix-timing-value {
    font-size: 20px;
    font-weight: 500;
    font-family: 'Noto Serif JP', serif;
    color: var(--text-primary);
    margin-bottom: 2px;
}
.ix-timing-label {
    font-size: 11px;
    color: var(--text-tertiary);
    letter-spacing: 0.5px;
}

/* Behaviour notes */
.ix-behaviour {
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin: 12px 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
}
.ix-bh-nav      { border-left: 3px solid var(--ix-nav);      background: var(--ix-nav-bg); }
.ix-bh-micro    { border-left: 3px solid var(--ix-micro);    background: var(--ix-micro-bg); }
.ix-bh-flow     { border-left: 3px solid var(--ix-flow);     background: var(--ix-flow-bg); }
.ix-bh-feedback { border-left: 3px solid var(--ix-feedback); background: var(--ix-feedback-bg); }
.ix-bh-gesture  { border-left: 3px solid var(--ix-gesture);  background: var(--ix-gesture-bg); }
.ix-bh-state    { border-left: 3px solid var(--ix-state);    background: var(--ix-state-bg); }
.ix-bh-error    { border-left: 3px solid var(--ix-error);    background: var(--ix-error-bg); }

.ix-behaviour-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

/* Principle callouts */
.ix-principle {
    display: flex;
    gap: 12px;
    padding: 16px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    margin: 16px 0;
    align-items: flex-start;
}
.ix-principle-marker {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--ix-nav-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 12px;
    margin-top: 1px;
    color: var(--ix-nav);
}
.ix-principle-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
}
.ix-principle-text strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Flow strips */
.ix-flow-strip {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 16px 0;
    overflow-x: auto;
    padding: 8px 0;
}
.ix-flow-node {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 12px;
    font-weight: 400;
    color: var(--text-primary);
    white-space: nowrap;
    text-align: center;
    min-width: 130px;
}
.ix-flow-highlight {
    border-color: var(--accent);
    background: var(--ix-nav-bg);
    font-weight: 500;
}
.ix-flow-sub {
    font-size: 10px;
    color: var(--text-tertiary);
    margin-top: 2px;
    font-weight: 300;
}
.ix-flow-connector {
    width: 32px;
    height: 1px;
    background: var(--border);
    flex-shrink: 0;
    position: relative;
}
.ix-flow-connector::after {
    content: '';
    position: absolute;
    right: 0;
    top: -3px;
    width: 0;
    height: 0;
    border-top: 3px solid transparent;
    border-bottom: 3px solid transparent;
    border-left: 6px solid var(--border);
}
.ix-flow-connector-label {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 9px;
    color: var(--text-tertiary);
    white-space: nowrap;
    letter-spacing: 0.5px;
}

/* Gesture tables */
.ix-gesture-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
}
.ix-gesture-table th {
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
}
.ix-gesture-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}
.ix-gesture-table tr:last-child td { border-bottom: none; }
.ix-key {
    display: inline-block;
    background: var(--surface-raised);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 1px 8px;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 11px;
    min-width: 28px;
    text-align: center;
}
.ix-colour-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 6px;
    border: 1px solid rgba(0,0,0,0.1);
}

/* ── Design Decisions ── */

/* Colour palette */
:root {
    --dd-red: #d32f2f;
    --dd-red-bg: #fce4ec;
    --dd-green: #2e7d32;
    --dd-green-bg: #e8f5e9;
    --dd-blue: #1565c0;
    --dd-blue-bg: #e3f2fd;
    --dd-amber: #e65100;
    --dd-amber-bg: #fff3e0;
    --dd-purple: #6a1b9a;
    --dd-purple-bg: #f3e5f5;
    --dd-teal: #00695c;
    --dd-teal-bg: #e0f2f1;
}

/* Table of Contents */
.dd-toc {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.dd-toc.toc-away { top: -200px; }

.dd-toc-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}

.dd-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.dd-toc-link {
    display: flex;
    align-items: baseline;
    gap: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
}

.dd-toc-link:hover {
    color: var(--accent);
}

.dd-toc-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* Section group */
.dd-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 300px;
}

.dd-section:last-child {
    border-bottom: none;
}

.dd-section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}

.dd-label-arch  { color: var(--dd-red); }
.dd-label-ux    { color: var(--dd-green); }
.dd-label-data  { color: var(--dd-blue); }
.dd-label-perf  { color: var(--dd-amber); }
.dd-label-sec   { color: var(--dd-purple); }
.dd-label-ai    { color: var(--dd-teal); }

.dd-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 26px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
    color: var(--text-primary);
}

.dd-section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 620px;
    margin-bottom: 36px;
    line-height: 1.9;
}

/* Individual decision card */
.dd-decision {
    margin-bottom: 32px;
}

.dd-decision:last-child {
    margin-bottom: 0;
}

.dd-decision-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}

.dd-number {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    color: white;
    background: var(--dd-red);
    flex-shrink: 0;
    margin-top: 2px;
}

.dd-number-green  { background: var(--dd-green); }
.dd-number-blue   { background: var(--dd-blue); }
.dd-number-amber  { background: var(--dd-amber); }
.dd-number-purple { background: var(--dd-purple); }
.dd-number-teal   { background: var(--dd-teal); }

.dd-decision-title {
    font-size: 17px;
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: -0.3px;
    line-height: 1.5;
}

.dd-decision-body {
    padding-left: 44px;
}

.dd-decision-body p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.85;
    margin-bottom: 12px;
}

.dd-decision-body p:last-child {
    margin-bottom: 0;
}

.dd-decision-body code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* Rationale */
.dd-rationale {
    background: var(--bg-warm, #fdf8f6);
    border-left: 3px solid var(--border);
    padding: 14px 18px;
    margin: 12px 0;
    border-radius: 0 4px 4px 0;
}

.dd-rationale-arch { border-left-color: var(--dd-red);    background: var(--dd-red-bg); }
.dd-rationale-ux   { border-left-color: var(--dd-green);  background: var(--dd-green-bg); }
.dd-rationale-data { border-left-color: var(--dd-blue);   background: var(--dd-blue-bg); }
.dd-rationale-perf { border-left-color: var(--dd-amber);  background: var(--dd-amber-bg); }
.dd-rationale-sec  { border-left-color: var(--dd-purple); background: var(--dd-purple-bg); }
.dd-rationale-ai   { border-left-color: var(--dd-teal);   background: var(--dd-teal-bg); }

.dd-rationale-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-tertiary, #999);
}

.dd-rationale p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.75;
    margin-bottom: 0;
}

/* Alternatives table */
.dd-alternatives {
    margin: 16px 0 8px;
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.dd-alternatives th {
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary, #999);
    padding: 8px 12px;
    border-bottom: 2px solid var(--border);
}

.dd-alternatives td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border-light, #f0f0f0);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.6;
}

.dd-alternatives tr:last-child td {
    border-bottom: none;
}

.dd-chosen {
    font-weight: 500;
    color: var(--text-primary);
}

.dd-chosen::before {
    content: '\2713';
    display: inline-block;
    color: var(--dd-green);
    font-weight: 700;
    margin-right: 6px;
}

.dd-rejected {
    color: var(--text-tertiary, #999);
}

.dd-rejected::before {
    content: '\2717';
    display: inline-block;
    color: #ccc;
    margin-right: 6px;
}

/* Tag pills */
.dd-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 10px;
    border-radius: 10px;
    letter-spacing: 0.3px;
    font-weight: 400;
    margin-right: 4px;
    margin-bottom: 4px;
}

.dd-tag-arch { background: var(--dd-red-bg);    color: var(--dd-red); }
.dd-tag-ux   { background: var(--dd-green-bg);  color: var(--dd-green); }
.dd-tag-data { background: var(--dd-blue-bg);   color: var(--dd-blue); }
.dd-tag-perf { background: var(--dd-amber-bg);  color: var(--dd-amber); }
.dd-tag-sec  { background: var(--dd-purple-bg); color: var(--dd-purple); }
.dd-tag-ai   { background: var(--dd-teal-bg);   color: var(--dd-teal); }

/* Impact list */
.dd-impact-list {
    list-style: none;
    padding: 0;
    margin: 8px 0;
}

.dd-impact-list li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 4px 0 4px 20px;
    position: relative;
    line-height: 1.7;
}

.dd-impact-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 11px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: 2px solid var(--border);
}

.dd-positive::before { border-color: var(--dd-green) !important; background: var(--dd-green-bg); }
.dd-neutral::before  { border-color: var(--dd-blue) !important;  background: var(--dd-blue-bg); }
.dd-tradeoff::before { border-color: var(--dd-amber) !important; background: var(--dd-amber-bg); }

/* Separator */
.dd-sep {
    height: 1px;
    background: var(--border-light, #f0f0f0);
    margin: 28px 0;
}

/* ── User Flows ── */

/* TOC */
.uf-toc {
    padding: 20px 0;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 120px;
    background: var(--nav-bg);
    backdrop-filter: blur(10px);
    z-index: 80;
    transition: top 0.35s ease;
}
.uf-toc.toc-away { top: -200px; }

.uf-toc-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    font-weight: 500;
    margin-bottom: 16px;
}

.uf-toc-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 40px;
}

.uf-toc-grid a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    letter-spacing: 0.3px;
    padding: 4px 0;
    transition: all 0.3s;
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.uf-toc-grid a:hover { color: var(--accent); }

.uf-toc-num {
    color: var(--accent);
    font-weight: 500;
    font-size: 11px;
    min-width: 20px;
}

/* Sections */
.uf-section {
    padding: 72px 0;
    border-bottom: 1px solid var(--border);
}

.uf-section:last-child { border-bottom: none; }

.uf-section-label {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    margin-bottom: 6px;
}

.uf-section-label.student { color: var(--stemblue); }
.uf-section-label.educator { color: var(--stemorange); }
.uf-section-label.system { color: var(--teal); }
.uf-section-label.state { color: var(--stempink); }
.uf-section-label.edge { color: var(--slate); }
.uf-section-label.summary { color: var(--accent); }

.uf-section-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 28px;
    font-weight: 500;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.uf-section-intro {
    font-size: 14px;
    color: var(--text-secondary);
    max-width: 660px;
    margin-bottom: 40px;
    line-height: 1.9;
}

/* Flow Block */
.uf-flow-block {
    margin-bottom: 56px;
    scroll-margin-top: 250px;
}

.uf-flow-block:last-child { margin-bottom: 0; }

.uf-flow-header {
    margin-bottom: 24px;
}

.uf-flow-id {
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.uf-flow-title {
    font-family: 'Noto Serif JP', serif;
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.uf-flow-description {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 660px;
}

/* Diagram container spacing within flow blocks */
.uf-flow-block .diagram-container {
    margin-bottom: 20px;
}

/* Step-by-step narrative */
.uf-narrative {
    margin-top: 20px;
}

.uf-narrative-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 12px;
}

.uf-step-list {
    list-style: none;
    padding: 0;
    counter-reset: step-counter;
}

.uf-step-list li {
    counter-increment: step-counter;
    padding: 12px 0 12px 48px;
    border-bottom: 1px solid var(--border-light);
    position: relative;
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.75;
}

.uf-step-list li:last-child { border-bottom: none; }

.uf-step-list li::before {
    content: counter(step-counter, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 12px;
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent);
    width: 32px;
    text-align: right;
}

.uf-step-list li strong {
    color: var(--text-primary);
    font-weight: 500;
}

.uf-step-list li code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* Actors strip */
.uf-actors {
    display: flex;
    gap: 12px;
    margin: 12px 0 0;
    flex-wrap: wrap;
}

.uf-actor-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 14px;
    letter-spacing: 0.3px;
    font-weight: 400;
}

.uf-actor-pill.student { background: var(--stemblue-10); color: var(--stemblue); }
.uf-actor-pill.educator { background: var(--amber-bg); color: var(--amber); }
.uf-actor-pill.system { background: var(--teal-bg); color: var(--teal); }
.uf-actor-pill.ai { background: var(--purple-bg); color: var(--purple); }
.uf-actor-pill.unity { background: var(--green-bg); color: var(--green); }

/* Annotation block */
.uf-annotation {
    padding: 14px 18px;
    border-radius: 0 4px 4px 0;
    margin: 16px 0;
    font-size: 13px;
    line-height: 1.75;
    color: var(--text-secondary);
}

.uf-annotation.info { border-left: 3px solid var(--stemblue); background: var(--stemblue-10); }
.uf-annotation.warn { border-left: 3px solid var(--stemorange); background: var(--amber-bg); }
.uf-annotation.decision { border-left: 3px solid var(--accent); background: var(--decision-bg); }
.uf-annotation.success { border-left: 3px solid var(--green); background: var(--green-bg); }
.uf-annotation.neutral { border-left: 3px solid var(--border); background: var(--surface); }

.uf-annotation-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 4px;
}

.uf-annotation strong {
    color: var(--text-primary);
    font-weight: 500;
}

/* Preconditions / postconditions */
.uf-conditions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 16px 0;
}

.uf-condition-box {
    padding: 14px 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}

.uf-condition-box-label {
    font-size: 10px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 8px;
}

.uf-condition-box ul {
    list-style: none;
    padding: 0;
}

.uf-condition-box li {
    font-size: 13px;
    color: var(--text-secondary);
    padding: 3px 0 3px 16px;
    position: relative;
    line-height: 1.7;
}

.uf-condition-box.pre li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--stemblue-10);
    border: 2px solid var(--stemblue);
}

.uf-condition-box.post li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green-bg);
    border: 2px solid var(--green);
}

/* Separator */
.uf-sep {
    height: 1px;
    background: var(--border-light);
    margin: 48px 0;
}

/* Summary table */
.uf-summary-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
    margin: 16px 0;
}

.uf-summary-table th {
    text-align: left;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--text-tertiary);
    padding: 10px 14px;
    border-bottom: 2px solid var(--border);
}

.uf-summary-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border-light);
    color: var(--text-secondary);
    vertical-align: top;
    line-height: 1.65;
}

.uf-summary-table tr:last-child td { border-bottom: none; }

.uf-summary-table td strong {
    color: var(--text-primary);
    font-weight: 500;
}

.uf-summary-table td code {
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    background: var(--surface-raised);
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid var(--border-light);
    color: var(--text-primary);
}

/* Responsive UX Case Study */
@media (max-width: 768px) {
    .ux-case-study .section-header { padding-left: 25px; border-left-width: 2px; }
    .ux-case-study .section-title { font-size: 26px; }
    .ux-case-study .card-grid { grid-template-columns: 1fr; }
    .wf-index-list { flex-direction: column; gap: 8px; }
    .persona { padding-left: 25px; border-left-width: 2px; }
    .persona-header { flex-direction: column; align-items: flex-start; }
    .palette { gap: 12px; }
    .ux-nav { gap: 15px; }
    .dd-toc-grid { grid-template-columns: 1fr; }
    .dd-section { padding: 48px 0; }
    .dd-section-title { font-size: 22px; }
    .dd-decision-body { padding-left: 0; margin-top: 12px; }
    .dd-decision-header { gap: 10px; }
    .dd-alternatives { font-size: 12px; }
    .dd-alternatives th, .dd-alternatives td { padding: 6px 8px; }

    /* Interaction design responsive */
    .ix-body { padding-left: 0; margin-top: 12px; }
    .ix-seq-trigger { flex: 0 0 140px; font-size: 12px; }
    .ix-flow-strip { flex-wrap: wrap; gap: 8px; }
    .ix-flow-connector { display: none; }
    .ix-timing { flex-direction: column; }
    .ix-toc-grid { grid-template-columns: 1fr; }
    .ix-section { padding: 48px 0; }

    /* User flows responsive */
    .uf-toc-grid { grid-template-columns: 1fr; }
    .uf-section { padding: 48px 0; }
    .uf-section-title { font-size: 22px; }
    .uf-conditions { grid-template-columns: 1fr; }
    .uf-step-list li { padding-left: 36px; }
    .uf-actors { gap: 8px; }

    /* User research responsive */
    .ur-toc-grid { grid-template-columns: 1fr; }
    .ur-section { padding: 48px 0; }
    .ur-section-title { font-size: 22px; }
    .ur-method-grid { grid-template-columns: 1fr; }
    .ur-method-stats { gap: 16px; flex-wrap: wrap; }
    .ur-questions-grid { grid-template-columns: 1fr; }
    .ur-principles-grid { grid-template-columns: 1fr; }
    .ur-principle { flex-direction: column; gap: 16px; }
    .ur-finding-header { flex-direction: column; align-items: flex-start; gap: 8px; }

    /* Personas responsive */
    .ps-toc-grid { grid-template-columns: 1fr; }
    .ps-section { padding: 48px 0; }
    .ps-section-title { font-size: 22px; }
    .ps-persona-header { flex-direction: column; gap: 16px; }
    .ps-characteristics { grid-template-columns: 1fr; }
    .ps-char-box { padding: 14px; }
    .ps-goals-list li, .ps-frustrations-list li { padding-left: 32px; }
}

/* Dark mode transition */
body,
nav,
.project,
.section,
.dd-decision,
.ix-block,
.ur-finding,
.uf-flow,
.persona-section,
.nav-link,
.theme-toggle {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}
