:root {
    color-scheme: light;
    --page-bg: #f3efe8;
    --surface: rgba(255, 252, 247, 0.88);
    --surface-strong: #fffdf8;
    --text-color: #1f1b16;
    --muted-text: #5f564c;
    --border-color: rgba(84, 66, 43, 0.14);
    --shadow-color: rgba(64, 43, 19, 0.12);
    --overlay-color: rgba(26, 18, 10, 0.5);
    --accent: #a44f2f;
    --hero-image: none;
    --hero-overlay: linear-gradient(135deg, rgba(255, 253, 248, 0.78), rgba(243, 239, 232, 0.52));
}


body[data-theme='dark'] {
    color-scheme: dark;
    --page-bg: #000000;
    --surface: rgba(30, 25, 21, 0.9);
    --surface-strong: #211c17;
    --text-color: #f5ede2;
    --muted-text: #c2b4a3;
    --border-color: rgba(255, 239, 219, 0.12);
    --shadow-color: rgba(0, 0, 0, 0.35);
    --overlay-color: rgba(0, 0, 0, 0.62);
    --accent: #ffb38a;
    --hero-overlay: linear-gradient(135deg, rgba(0, 0, 0, 0.56), rgba(0, 0, 0, 0.28));
}


* {
    box-sizing: border-box;
}

body {
    font-family: sans-serif;
    margin: 0;
    background:
        radial-gradient(circle at top, rgba(164, 79, 47, 0.12), transparent 32%),
        linear-gradient(180deg, var(--surface-strong), var(--page-bg));
    color: var(--text-color);
    transition: background-color 0.25s ease, color 0.25s ease;
}

header {
    background-color: var(--surface);
    padding: 2rem;
    border-bottom: 1px solid var(--border-color);
    backdrop-filter: blur(18px);
}

.header-inner {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
}

.hero-copy {
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 230px;
    padding: 2rem 8rem 2rem 2rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background-color: var(--surface-strong);
    background-image: var(--hero-overlay), var(--hero-image);
    background-size: cover;
    background-position: center;
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.hero-avatar {
    position: relative;
    width: 92px;
    aspect-ratio: 1 / 1;
    margin-bottom: 1.25rem;
    border-radius: 20px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.12), rgba(255, 255, 255, 0.08));
}

header h1 {
    position: relative;
    margin: 0;
    font-size: 2.5rem;
    font-weight: bold;
}

header p {
    position: relative;
    margin: 0.75rem 0 0;
    color: var(--muted-text);
}

#theme-toggle {
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    z-index: 1;
    border: 1px solid var(--border-color);
    background: var(--surface-strong);
    color: var(--text-color);
    border-radius: 999px;
    padding: 0.8rem 1.1rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.tab-nav {
    position: sticky;
    top: 0;
    z-index: 5;
    padding: 1rem 2rem 2rem;
    background: linear-gradient(180deg, var(--surface-strong), transparent);
}

.tab-nav-inner {
    display: flex;
    gap: 0.75rem;
    max-width: 1200px;
    margin: 0 auto;
}

.tab-button {
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--muted-text);
    border-radius: 999px;
    padding: 0.85rem 1.25rem;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tab-button.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
}

.tab-panels {
    width: 100%;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

.gui-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.gui-stage-card {
    width: 100%;
    border: 1px dashed var(--border-color);
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.gui-stage-card-full {
    min-height: 2560px;
}

#theme-toggle:hover {
    transform: translateY(-1px);
    border-color: var(--accent);
    color: var(--accent);
}

.info-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.5rem;
}

.info-card {
    min-height: 220px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.info-card p {
    margin: 0;
    color: var(--muted-text);
    line-height: 1.7;
}

.branding-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.branding-card {
    width: 100%;
    min-height: 320px;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.keyword-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.keyword-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.keyword-card {
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.keyword-card h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.keyword-image {
    width: 100%;
    aspect-ratio: 16 / 7;
    border-radius: 18px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    margin-bottom: 1rem;
}

.keyword-copy h4 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.keyword-card p {
    margin: 0;
    color: var(--muted-text);
    line-height: 1.7;
}

.persona-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.section-title {
    margin: 0 0 1rem;
    font-size: 1.6rem;
}

.persona-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.persona-card {
    min-height: 120px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.persona-profile {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
    align-items: center;
}

.persona-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    margin-bottom: 0;
    border-radius: 18px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
}

.persona-meta p,
.persona-notes p {
    margin: 0 0 0.5rem;
    color: var(--muted-text);
    line-height: 1.55;
}

.persona-card h3 {
    margin: 0 0 1rem;
    font-size: 1.2rem;
}

.persona-quote {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.persona-quote blockquote {
    margin: 0;
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--text-color);
}

.interview-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.interview-rows {
    display: grid;
    gap: 1.5rem;
}

.interview-row {
    display: grid;
    gap: 1.5rem;
    align-items: stretch;
}

.interview-row-primary {
    grid-template-columns: 1fr 6fr;
}

.interview-row-secondary {
    grid-template-columns: 6fr 1fr;
}

.interview-card {
    height: 220px;
    padding: 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 24px;
    background: var(--surface);
    box-shadow: 0 18px 40px -24px var(--shadow-color);
    overflow: hidden;
}

.interview-person {
    display: flex;
    flex-direction: column;
}

.interview-image {
    width: 100%;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    margin-bottom: 1rem;
}

.interview-name {
    margin: 0;
    font-weight: 700;
}

.interview-copy {
    display: flex;
    align-items: center;
    height: 100%;
}

.interview-image-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.interview-gallery-card {
    position: relative;
    display: flex;
    align-items: flex-end;
    aspect-ratio: 4 / 3;
    padding: 1rem;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.28)), linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.interview-gallery-card span {
    color: #ffffff;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.interview-copy p {
    margin: 0;
    color: var(--muted-text);
    line-height: 1.8;
}

.journey-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.journey-map-card {
    width: 100%;
    min-height: 320px;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.architecture-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.architecture-map-card {
    width: 100%;
    min-height: 640px;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

.blueprint-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
}

.blueprint-map-card {
    width: 100%;
    min-height: 480px;
    border-radius: 24px;
    border: 1px dashed var(--border-color);
    background: linear-gradient(135deg, rgba(164, 79, 47, 0.08), rgba(255, 255, 255, 0.05));
    box-shadow: 0 18px 40px -24px var(--shadow-color);
}

main {
    padding: 2rem;
}

#project-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.project-card {
    background-color: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 18px 40px -24px var(--shadow-color);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.project-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 22px 44px -24px var(--shadow-color);
    border-color: var(--accent);
}

.project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.project-card h3 {
    margin: 1rem;
}

footer {
    text-align: center;
    padding: 1rem;
    background-color: var(--surface);
    border-top: 1px solid var(--border-color);
    color: var(--muted-text);
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: var(--overlay-color);
}

.modal-content {
    background-color: var(--surface-strong);
    margin: 15% auto;
    padding: 20px;
    border: 1px solid var(--border-color);
    width: 80%;
    max-width: 600px;
    border-radius: 16px;
    box-shadow: 0 24px 48px -24px var(--shadow-color);
}

.close-button {
    color: var(--muted-text);
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close-button:hover,
.close-button:focus {
    color: var(--accent);
    text-decoration: none;
    cursor: pointer;
}

#modal-image {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    header {
        padding: 1.5rem;
    }

    .header-inner {
        text-align: center;
    }

    .hero-copy {
        min-height: 180px;
        padding: 4.75rem 1.25rem 2rem;
    }

    .hero-avatar {
        width: 76px;
        margin: 0 auto 1rem;
    }

    #theme-toggle {
        top: 1rem;
        right: 1rem;
        width: auto;
    }

    .tab-nav {
        padding: 1rem 1.5rem 1.5rem;
    }

    .tab-nav-inner {
        flex-direction: column;
    }

    .gui-section {
        padding: 0 1.5rem 1.5rem;
    }

    .gui-stage-card-full {
        min-height: 1280px;
    }

    .info-section {
        padding: 0 1.5rem 1.5rem;
    }

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

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

    .branding-section {
        padding: 0 1.5rem 1.5rem;
    }

    .branding-card {
        min-height: 220px;
    }

    .keyword-section {
        padding: 0 1.5rem 1.5rem;
    }

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

    .persona-section {
        padding: 0 1.5rem 1.5rem;
    }

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

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

    .persona-profile {
        grid-template-columns: 96px 1fr;
    }

    .interview-section {
        padding: 0 1.5rem 1.5rem;
    }

    .interview-row {
        grid-template-columns: 1fr;
    }

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

    .interview-image-grid {
        grid-template-columns: 1fr;
    }

    .journey-section {
        padding: 0 1.5rem 1.5rem;
    }

    .journey-map-card {
        min-height: 220px;
    }

    .architecture-section {
        padding: 0 1.5rem 1.5rem;
    }

    .architecture-map-card {
        min-height: 440px;
    }

    .blueprint-section {
        padding: 0 1.5rem 1.5rem;
    }

    .blueprint-map-card {
        min-height: 330px;
    }

    main {
        padding: 1.5rem;
    }

    .modal-content {
        width: calc(100% - 2rem);
        margin: 4rem auto;
    }
}
