/* dictuzz: Shared Brand System */
@import '../assets/css/tokens.css';
@import '../assets/css/core.css';

:root {
    --site-bg: #f5efe4;
    --site-bg-alt: #efe4d4;
    --site-bg-elevated: rgba(255, 250, 242, 0.84);
    --site-surface: #fffaf2;
    --site-surface-strong: #ede2d3;
    --site-surface-soft: rgba(255, 255, 255, 0.55);
    --site-text: #1d2430;
    --site-text-muted: #5a6778;
    --site-text-subtle: #7b8798;
    --site-border: rgba(29, 36, 48, 0.1);
    --site-border-strong: rgba(29, 36, 48, 0.16);
    --site-accent: #335c87;
    --site-accent-soft: rgba(51, 92, 135, 0.11);
    --site-accent-gold: #c4974f;
    --site-accent-gold-soft: rgba(196, 151, 79, 0.12);
    --site-shadow: 0 20px 52px rgba(52, 57, 68, 0.08);
    --site-shadow-hover: 0 26px 60px rgba(52, 57, 68, 0.12);
    --site-shadow-strong: 0 34px 80px rgba(52, 57, 68, 0.14);
    --site-radius: 30px;
    --site-radius-md: 22px;
    --site-radius-sm: 16px;
    --site-container: 1200px;
    --font-display: 'Fraunces', Georgia, serif;
    --font-body: 'Manrope', system-ui, sans-serif;
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --duration-fast: 160ms;
    --duration-normal: 260ms;
}

[data-theme="dark"] {
    --site-bg: #121820;
    --site-bg-alt: #171f29;
    --site-bg-elevated: rgba(24, 31, 40, 0.82);
    --site-surface: #171d25;
    --site-surface-strong: #222c38;
    --site-surface-soft: rgba(255, 255, 255, 0.04);
    --site-text: #f4efe7;
    --site-text-muted: #bec7d3;
    --site-text-subtle: #93a0b0;
    --site-border: rgba(255, 255, 255, 0.08);
    --site-border-strong: rgba(255, 255, 255, 0.14);
    --site-accent: #8da8c6;
    --site-accent-soft: rgba(141, 168, 198, 0.1);
    --site-accent-gold: #d1ab69;
    --site-accent-gold-soft: rgba(209, 171, 105, 0.12);
    --site-shadow: 0 24px 62px rgba(0, 0, 0, 0.28);
    --site-shadow-hover: 0 30px 72px rgba(0, 0, 0, 0.34);
    --site-shadow-strong: 0 40px 90px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    color: var(--site-text);
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.68), transparent 34%),
        radial-gradient(circle at bottom right, rgba(196, 151, 79, 0.08), transparent 28%),
        linear-gradient(180deg, #f7f1e7 0%, #efe6d8 100%);
    transition: background-color 220ms ease, color 220ms ease;
}

[data-theme="dark"] body {
    background:
        radial-gradient(circle at top left, rgba(209, 171, 105, 0.06), transparent 24%),
        radial-gradient(circle at 86% 16%, rgba(141, 168, 198, 0.06), transparent 22%),
        linear-gradient(180deg, #10161d 0%, #141a22 55%, #11171f 100%);
}

::selection {
    background: var(--site-accent-gold-soft);
    color: var(--site-text);
}

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

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

button,
input,
textarea,
select {
    font: inherit;
}

.page-shell {
    width: min(calc(100% - 32px), var(--site-container));
    margin: 0 auto;
}

.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(calc(100% - 28px), 1180px);
    margin: 0 auto;
    padding: 18px 0 0;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-mark {
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    border-radius: 16px;
    border: 1px solid var(--site-border);
    background: var(--site-surface-strong);
    box-shadow: 0 14px 32px rgba(52, 57, 68, 0.08);
    overflow: hidden;
}

[data-theme="dark"] .brand-mark {
    background: var(--gradient-glass);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.28);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.brand-lockup__text {
    min-width: 0;
}

.brand-kicker {
    display: block;
    margin-bottom: 0.18rem;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--site-accent-gold);
}

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(1.35rem, 3vw, 1.75rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.theme-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-bg-elevated);
    color: var(--site-text);
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(52, 57, 68, 0.08);
    transition:
        transform var(--duration-fast) var(--ease-out),
        border-color var(--duration-fast) ease,
        background-color var(--duration-fast) ease,
        color var(--duration-fast) ease;
}

[data-theme="dark"] .theme-toggle {
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.28);
}

.theme-toggle:hover,
.theme-toggle:focus-visible {
    transform: translateY(-1px);
    border-color: var(--site-border-strong);
}

.section {
    padding: 44px 0;
}

.section--hero {
    padding-top: 28px;
}

.section-header {
    max-width: 780px;
    margin-bottom: 28px;
}

.section-header h2,
.hero__title,
.link-card h3,
.stat-card h3,
.project-card h3,
.feature-card h3,
.case-card h3,
.detail-hero__title,
.detail-section h2 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.section-header h2,
.hero__title,
.detail-hero__title {
    line-height: 0.98;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2rem, 5vw, 3.6rem);
}

.section-header p,
.hero__lede,
.link-card p,
.stat-card p,
.project-card p,
.portrait-card__list,
.contact-panel p,
.detail-section p,
.detail-list,
.detail-quote {
    color: var(--site-text-muted);
    line-height: 1.75;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--site-accent-gold);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.grid {
    display: grid;
    gap: 18px;
}

.grid--cards,
.grid--stats,
.grid--projects,
.grid--detail,
.grid--gallery {
    grid-template-columns: 1fr;
}





.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: var(--site-surface-soft);
    color: var(--site-text-muted);
    font-size: 0.82rem;
    font-weight: 700;
}

.pill--active {
    background: var(--site-accent-soft);
    border-color: rgba(51, 92, 135, 0.24);
    color: var(--site-text);
}

[data-theme="dark"] .pill--active {
    border-color: rgba(209, 171, 105, 0.22);
    background: rgba(209, 171, 105, 0.1);
}

.cluster {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

/* ═══════════════════════════════════════════
   GLOBAL FOOTER (Unified across all Apps)
   ═══════════════════════════════════════════ */
.global-footer {
    width: 100%;
    margin-top: auto;
    padding: 48px 20px 32px;
    border-top: 1px solid var(--site-border);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    background: transparent;
}

.global-footer__nav {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px;
    border-radius: 999px;
    background: var(--site-bg-elevated);
    border: 1px solid var(--site-border);
    box-shadow: var(--site-shadow);
}

.global-footer__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 38px;
    padding: 0 16px;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--site-text-muted);
    transition: background-color var(--duration-fast) ease, color var(--duration-fast) ease;
}

.global-footer__link:hover,
.global-footer__link:focus-visible {
    background: var(--site-surface-strong);
    color: var(--site-text);
}

.global-footer__link[aria-current="page"] {
    background: var(--site-text);
    color: var(--site-bg);
}

[data-theme="dark"] .global-footer__link[aria-current="page"] {
    background: var(--site-text);
    color: var(--site-bg);
}

.global-footer__contacts {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: 8px 0;
}

.global-footer__contact-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--site-text-subtle);
    transition: color var(--duration-fast) ease;
}

.global-footer__contact-link:hover,
.global-footer__contact-link:focus-visible {
    color: var(--site-text);
}

.global-footer__contact-link i {
    font-size: 0.95rem;
}

.global-footer__divider {
    color: var(--site-border-strong);
    font-size: 0.75rem;
}

.global-footer__copy {
    text-align: center;
    color: var(--site-text-subtle);
    font-size: 0.8rem;
    line-height: 1.5;
    margin: 0;
}

.global-footer__copy span {
    display: block;
    margin-top: 4px;
}

.footer {
    padding: 36px 0 48px;
    color: var(--site-text-muted);
    font-size: 0.95rem;
}


@media (min-width: 768px) {
    .section {
        padding: 58px 0;
    }

    .grid--cards,
    .grid--stats,
    .grid--detail,
    .grid--gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

@media (min-width: 1120px) {
    .section {
        padding: 74px 0;
    }

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

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

@media (max-width: 600px) {
    .page-shell {
        width: min(calc(100% - 20px), var(--site-container));
    }

    .page-header {
        width: min(calc(100% - 20px), 1180px);
        padding-top: 12px;
    }

    .brand-mark {
        width: 40px;
        height: 40px;
        border-radius: 14px;
    }

    .brand-name {
        font-size: 1.35rem;
    }

    .theme-toggle {
        width: 38px;
        height: 38px;
    }
}

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

    .reveal,
    .card--interactive,
    .button,
    .theme-toggle {
        transition: none !important;
    }

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

.home-page {
    min-height: 100vh;
    overflow-x: hidden;
}

.bio-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    width: min(calc(100% - 20px), 640px);
    margin: 0 auto;
    padding: 18px 0;
}

.bio-card {
    width: 100%;
    padding: 18px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 243, 236, 0.78));
    box-shadow: var(--site-shadow-strong);
}

[data-theme="dark"] .bio-card {
    background: linear-gradient(180deg, rgba(24, 31, 40, 0.96), rgba(18, 24, 32, 0.94));
}

.bio-card__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 14px;
}

.theme-toggle {
    align-self: flex-end;
    margin-bottom: 8px;
}

.bio-mark {
    width: 64px;
    height: 64px;
    margin-bottom: 2px;
    border-radius: 0;
    overflow: visible;
    border: none;
    background: transparent;
    box-shadow: none;
}

[data-theme="dark"] .bio-mark {
    background: transparent;
}

.bio-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.bio-avatar {
    position: relative;
    width: 156px;
    height: 216px;
    margin-bottom: 14px;
}

.bio-avatar::before {
    content: '';
    position: absolute;
    inset: -8px;
    border-radius: 999px;
    border: 1px solid rgba(196, 151, 79, 0.28);
    box-shadow:
        0 0 0 6px rgba(196, 151, 79, 0.08),
        0 0 0 18px rgba(196, 151, 79, 0.04);
    animation: framePulse 3.4s ease-in-out infinite;
}

.bio-avatar__frame {
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 999px;
    border: 2px solid rgba(196, 151, 79, 0.78);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(240, 231, 219, 0.86));
    box-shadow:
        0 0 0 6px rgba(196, 151, 79, 0.08),
        0 16px 34px rgba(0, 0, 0, 0.12);
}

[data-theme="dark"] .bio-avatar__frame {
    background: linear-gradient(180deg, rgba(29, 36, 45, 0.96), rgba(22, 28, 36, 0.94));
}

.bio-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center top;
}

.bio-title {
    margin: 0 0 5px;
    font-size: clamp(2.5rem, 8vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.bio-text {
    margin: 0;
    color: var(--site-text-muted);
    font-size: 0.93rem;
    line-height: 1.45;
}

.bio-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
}

.bio-status,
.bio-meta__item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid var(--site-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    color: var(--site-text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

[data-theme="dark"] .bio-status,
[data-theme="dark"] .bio-meta__item {
    background: rgba(255, 255, 255, 0.04);
}

.bio-status {
    color: var(--site-text);
}

.bio-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: #1db954;
}

.accordion {
    display: grid;
    gap: 9px;
}

.folder {
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid var(--site-border);
    background: rgba(255, 255, 255, 0.7);
    box-shadow: 0 10px 24px rgba(52, 57, 68, 0.05);
    transition: border-color var(--duration-fast) ease, background-color var(--duration-fast) ease;
}

[data-theme="dark"] .folder {
    background: rgba(255, 255, 255, 0.03);
    box-shadow: none;
}

.folder::before {
    display: none;
}

.folder.is-open {
    border-color: rgba(51, 92, 135, 0.18);
    background: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] .folder.is-open {
    border-color: rgba(209, 171, 105, 0.16);
    background: rgba(255, 255, 255, 0.045);
}

.folder__heading {
    margin: 0;
}

.folder__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.folder__label {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
}

.folder__icon {
    display: inline-grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
    flex: 0 0 auto;
}

[data-theme="dark"] .folder__icon {
    background: var(--site-accent-gold-soft);
}

.folder__title {
    font-size: 0.98rem;
    font-weight: 800;
    letter-spacing: 0.01em;
}

.folder__chevron {
    color: var(--site-text-subtle);
    transition: transform var(--duration-fast) var(--ease-out);
}

.folder.is-open .folder__chevron {
    transform: rotate(180deg);
}

.folder__panel {
    display: grid;
    grid-template-rows: 0fr;
    padding: 0 14px 14px;
    opacity: 0;
    transition: grid-template-rows 180ms var(--ease-out), opacity 120ms ease;
}

.folder.is-open .folder__panel {
    grid-template-rows: 1fr;
    opacity: 1;
}

.folder__items {
    min-height: 0;
    overflow: hidden;
    display: grid;
    gap: 7px;
    padding: 7px;
    border: 1px solid rgba(29, 36, 48, 0.06);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.52);
}

[data-theme="dark"] .folder__items {
    border-color: rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.025);
}

.folder-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 44px;
    padding: 0 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(29, 36, 48, 0.06);
    font-weight: 700;
    transition:
        background-color var(--duration-fast) ease,
        border-color var(--duration-fast) ease,
        transform var(--duration-fast) var(--ease-out);
}

[data-theme="dark"] .folder-link {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.06);
}

.folder-link:hover,
.folder-link:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(51, 92, 135, 0.18);
}

[data-theme="dark"] .folder-link:hover,
[data-theme="dark"] .folder-link:focus-visible {
    border-color: rgba(209, 171, 105, 0.18);
}

.folder-link__main {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.folder-link__icon {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 9px;
    background: var(--site-accent-soft);
    color: var(--site-accent);
    font-size: 0.8rem;
    flex: 0 0 auto;
}

[data-theme="dark"] .folder-link__icon {
    background: rgba(209, 171, 105, 0.1);
    color: var(--site-accent-gold);
}

.folder-link i:last-child {
    color: var(--site-text-subtle);
    font-size: 0.78rem;
    flex: 0 0 auto;
}

.bio-footer {
    margin-top: 14px;
    padding-top: 14px;
    text-align: center;
    color: var(--site-text-muted);
    font-size: 0.8rem;
    line-height: 1.45;
    border-top: 1px solid var(--site-border);
}

.bio-footer p {
    margin: 0;
}

.bio-footer p+p {
    margin-top: 2px;
}

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

@keyframes framePulse {

    0%,
    100% {
        opacity: 0.9;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.01);
    }
}

@media (max-width: 480px) {
    .bio-shell {
        width: min(calc(100% - 16px), 640px);
        padding: 10px 0;
    }

    .bio-card {
        padding: 14px;
        border-radius: 28px;
    }

    .theme-toggle {
        margin-bottom: 6px;
    }

    .bio-mark {
        width: 46px;
        height: 46px;
        border-radius: 15px;
        margin-bottom: 10px;
    }

    .bio-avatar {
        width: 146px;
        height: 202px;
        margin-bottom: 12px;
    }

    .bio-title {
        font-size: clamp(2.1rem, 11vw, 3rem);
    }

    .bio-text {
        font-size: 0.88rem;
    }

    .bio-status,
    .bio-meta__item {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.74rem;
    }

    .folder__trigger {
        padding: 11px 12px;
    }

    .folder__panel {
        padding: 0 12px 12px;
    }

    .folder-link {
        padding: 0 11px;
    }
}

@media (min-width: 768px) {
    .bio-shell {
        width: min(calc(100% - 40px), 710px);
        padding: 30px 0;
    }

    .bio-card {
        padding: 22px;
    }

    .bio-avatar {
        width: 164px;
        height: 228px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bio-avatar::before {
        animation: none;
    }

    .folder,
    .folder__chevron,
    .folder__panel,
    .folder-link {
        transition: none !important;
    }
}