:root {
    --bg: #02070b;
    --surface: rgba(4, 14, 21, 0.9);
    --surface-strong: rgba(6, 20, 29, 0.96);
    --surface-soft: rgba(8, 29, 39, 0.72);
    --text-1: #f4f8f9;
    --text-2: #b9c7cd;
    --text-2-boost: #d5e1e5;
    --muted: #8197a1;
    --accent: #53e6ef;
    --accent-soft: #a9f8fb;
    --blue: #44aaff;
    --line: rgba(83, 230, 239, 0.22);
    --line-strong: rgba(116, 239, 246, 0.58);
    --line-faint: rgba(184, 244, 248, 0.1);
    --ring: rgba(83, 230, 239, 0.9);
    --shadow: 0 24px 72px rgba(0, 0, 0, 0.5);
    --glow: 0 0 32px rgba(41, 205, 221, 0.12);
    --r1: 14px;
    --r2: 22px;
    --header-h: 68px;
    --shell-w: min(1480px, calc(100% - 40px));
    --shell-pad: 0px;
}

* {
    box-sizing: border-box;
}

html {
    height: auto;
    min-width: 320px;
    min-height: 100%;
    scroll-behavior: smooth;
    color-scheme: dark;
}

body {
    height: auto;
    min-height: 100%;
    margin: 0;
    overflow-x: hidden;
    color: var(--text-1);
    background-color: var(--bg);
    background-image: url("./assets/lumify-system-field.png");
    background-position: center top;
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.55;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

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

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

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

a:focus-visible,
button:focus-visible,
summary:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 4px;
    border-radius: 10px;
}

.shell {
    width: var(--shell-w);
    margin-inline: auto;
    padding-inline: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(2, 7, 11, 0.86);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
    backdrop-filter: blur(18px) saturate(125%);
}

.site-header__inner {
    height: var(--header-h);
    display: flex;
    align-items: center;
    overflow: visible;
}

.nav,
.nav__left {
    display: flex;
    align-items: center;
}

.nav {
    gap: 20px;
}

.nav__left {
    gap: 12px;
    min-width: 0;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    min-width: 0;
    padding: 10px 14px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(3, 14, 20, 0.84);
    color: var(--text-1);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: inset 0 0 22px rgba(65, 220, 232, 0.04);
}

.brand i,
.eyebrow i,
.section-kicker i {
    color: var(--accent);
    font-size: 7px;
    filter: drop-shadow(0 0 6px rgba(83, 230, 239, 0.85));
}

.brand:hover {
    border-color: var(--line-strong);
    box-shadow: var(--glow), inset 0 0 22px rgba(65, 220, 232, 0.08);
}

.nav__link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: 10px;
    color: var(--text-2);
    font-size: 13px;
    font-weight: 600;
}

.nav__link:hover,
.nav__link.is-active,
.nav__dropdown[open] > .nav__link {
    border-color: var(--line);
    background: rgba(22, 78, 91, 0.2);
    color: var(--accent-soft);
}

.nav__dropdown {
    position: relative;
}

.nav__dropdown > summary {
    list-style: none;
    cursor: pointer;
}

.nav__dropdown > summary::-webkit-details-marker {
    display: none;
}

.nav__menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    min-width: 250px;
    margin: 0;
    padding: 8px;
    list-style: none;
    border: 1px solid var(--line-strong);
    border-radius: var(--r1);
    background: rgba(3, 14, 21, 0.98);
    box-shadow: var(--shadow), var(--glow);
    backdrop-filter: blur(20px);
}

.nav__dropdown:not([open]) > .nav__menu {
    display: none;
}

.nav__menu a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 11px 12px;
    border-radius: 9px;
    color: var(--text-2-boost);
    font-size: 14px;
}

.nav__menu a i {
    width: 18px;
    color: var(--accent);
    text-align: center;
}

.nav__menu a:hover {
    background: rgba(22, 90, 104, 0.26);
    color: var(--text-1);
}

#quickNav {
    position: relative;
    z-index: 50;
    margin: 10px auto 0;
    padding: 0;
}

#quickNav .chips {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 0;
    padding: 6px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(2, 10, 15, 0.72);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    backdrop-filter: blur(12px);
}

#quickNav .chips .chip {
    display: block;
    height: auto;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
}

#quickNav .chip a {
    display: block;
    padding: 8px 15px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

#quickNav .chip a:hover,
#quickNav .chip a.is-active {
    border-color: var(--line-strong);
    background: rgba(20, 75, 88, 0.28);
    color: var(--accent-soft);
    box-shadow: inset 0 0 18px rgba(83, 230, 239, 0.05);
}

#quickNav .chip a:hover {
    color: #ffffff;
}

.frame {
    padding-block: 18px 70px;
}

.masthead {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 30px;
    margin: 0 0 18px;
    padding: clamp(28px, 4vw, 58px);
    border: 1px solid var(--line-strong);
    border-radius: 26px;
    background: rgba(2, 10, 16, 0.84);
    box-shadow: var(--shadow), var(--glow), inset 0 0 64px rgba(37, 151, 169, 0.04);
    backdrop-filter: blur(12px);
}

.brandbox {
    display: grid;
    grid-template-columns: clamp(88px, 8vw, 116px) minmax(0, 1fr);
    align-items: center;
    gap: clamp(20px, 3vw, 38px);
    min-width: 0;
}

.avatar {
    width: clamp(88px, 8vw, 116px);
    height: clamp(88px, 8vw, 116px);
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #071118;
    box-shadow: 0 0 0 7px rgba(34, 125, 143, 0.1), 0 0 34px rgba(57, 210, 224, 0.14);
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
}

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

.eyebrow,
.section-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: var(--accent-soft);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.identity-copy h1 {
    max-width: 940px;
    margin: 0 0 14px;
    color: var(--text-1);
    font-size: clamp(32px, 3.5vw, 58px);
    font-weight: 600;
    letter-spacing: -0.052em;
    line-height: 0.98;
}

.identity-copy h1 span {
    display: block;
}

.identity-copy h1 .headline-primary {
    color: var(--text-1);
    text-shadow: none;
}

.identity-copy h1 .headline-accent {
    color: var(--accent);
    text-shadow: 0 0 28px rgba(83, 230, 239, 0.18);
}

.subtitle {
    display: grid;
    gap: 9px;
    max-width: 760px;
    margin: 0;
    color: var(--text-2);
    font-size: clamp(14px, 1.5vw, 18px);
}

.subtitle-capabilities {
    color: #91eff3;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: clamp(15px, 1.45vw, 19px);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-shadow: 0 0 18px rgba(83, 230, 239, 0.2);
}

.subtitle-role {
    position: relative;
    padding-left: 14px;
    border-left: 1px solid rgba(83, 230, 239, 0.62);
    color: #d5f7f8;
    font-family: "Sora", Inter, system-ui, sans-serif;
    font-size: clamp(17px, 1.55vw, 21px);
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.32;
    text-shadow: 0 0 20px rgba(83, 230, 239, 0.11);
}

.masthead-aside {
    display: grid;
    justify-items: end;
    gap: clamp(16px, 1.6vw, 24px);
    min-width: 0;
}

.project-logo {
    display: none;
    width: clamp(320px, 25vw, 520px);
    max-width: 100%;
    height: auto;
}

.masthead.is-projects {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.55fr);
    align-items: center;
}

.masthead.is-projects .brandbox {
    grid-template-columns: minmax(0, 1fr);
}

.masthead.is-projects .avatar {
    display: none;
}

.masthead.is-projects .project-logo {
    display: block;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 21, 29, 0.92);
    color: var(--text-1);
    font-size: 13px;
    font-weight: 650;
    white-space: nowrap;
    transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: var(--line-strong);
    background: rgba(15, 61, 73, 0.9);
    box-shadow: var(--glow);
}

.btn.accent {
    border-color: rgba(83, 230, 239, 0.78);
    background: rgba(31, 116, 130, 0.28);
    color: var(--accent-soft);
    box-shadow: inset 0 0 22px rgba(83, 230, 239, 0.06);
}

.panel {
    display: none;
    min-height: 0;
    margin: 0 auto;
    padding: clamp(24px, 3.3vw, 46px);
    border: 1px solid var(--line);
    border-radius: 26px;
    background: rgba(3, 12, 18, 0.88);
    box-shadow: var(--shadow), inset 0 0 74px rgba(45, 155, 172, 0.035);
    backdrop-filter: blur(10px);
}

.panel.active {
    display: block;
    animation: panel-reveal 260ms ease both;
}

@keyframes panel-reveal {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.section-kicker {
    margin-bottom: 10px;
}

.panel > h2 {
    margin: 0 0 24px;
    color: var(--text-1);
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.overview-panel-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.overview-panel-heading h2 {
    margin: 0;
    color: var(--text-1);
    font-size: clamp(30px, 4vw, 54px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.gallery-launch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(83, 230, 239, 0.52);
    border-radius: 11px;
    background: linear-gradient(145deg, rgba(17, 63, 72, 0.76), rgba(5, 21, 29, 0.94));
    color: #d9fbfc;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 12px 28px rgba(0, 0, 0, 0.24), 0 0 24px rgba(83, 230, 239, 0.08);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.gallery-launch:hover,
.gallery-launch:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(135, 245, 248, 0.86);
    background: linear-gradient(145deg, rgba(26, 91, 100, 0.86), rgba(7, 29, 38, 0.96));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.3), 0 0 30px rgba(83, 230, 239, 0.16);
}

.gallery-launch__arrow {
    color: var(--accent-soft);
    font-size: 9px;
    opacity: 0.76;
}

body.gallery-is-open {
    overflow: hidden;
}

.lumify-gallery-dialog {
    width: min(94vw, 1660px);
    height: min(88dvh, 940px);
    max-width: none;
    max-height: none;
    margin: auto;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(105, 201, 214, 0.42);
    border-radius: 18px;
    background: rgba(4, 10, 16, 0.98);
    color: var(--text-1);
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.68), 0 0 0 1px rgba(126, 243, 223, 0.07), 0 0 58px rgba(41, 205, 221, 0.1);
}

.lumify-gallery-dialog[open] {
    display: block;
    animation: gallery-window-in 220ms ease both;
}

.lumify-gallery-dialog::backdrop {
    background: rgba(0, 4, 8, 0.78);
    backdrop-filter: blur(13px) saturate(90%);
}

@keyframes gallery-window-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.lumify-gallery-dialog.is-maximized {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
    border-radius: 0;
    background: #01060a;
    box-shadow: none;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-window {
    grid-template-rows: minmax(0, 1fr);
    gap: 0;
    padding: 0;
    background: #01060a;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-header {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 5;
    padding: 0;
    pointer-events: none;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-titleblock,
.lumify-gallery-dialog.is-maximized #lumifyGalleryMaximize,
.lumify-gallery-dialog.is-maximized .lumify-gallery-footer {
    display: none;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-chrome {
    pointer-events: none;
}

.lumify-gallery-dialog.is-maximized #lumifyGalleryClose {
    width: 48px;
    height: 48px;
    border-color: rgba(126, 243, 223, 0.58);
    background: rgba(3, 11, 17, 0.82);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.38);
    pointer-events: auto;
    backdrop-filter: blur(10px);
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-stage,
.lumify-gallery-dialog.is-maximized .lumify-gallery-figure {
    width: 100%;
    height: 100%;
    max-width: none;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-figure {
    aspect-ratio: auto;
}

.lumify-gallery-window {
    position: relative;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 14px;
    width: 100%;
    height: 100%;
    padding: 18px;
    overflow: hidden;
    background: radial-gradient(circle at 86% 4%, rgba(62, 198, 213, 0.12), transparent 28%), linear-gradient(180deg, rgba(7, 17, 25, 0.99), rgba(3, 8, 13, 0.99));
}

.lumify-gallery-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    min-width: 0;
    padding: 2px 0 0;
}

.lumify-gallery-titleblock {
    min-width: 0;
}

.lumify-gallery-kicker {
    display: flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 7px;
    color: #91eff3;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.lumify-gallery-kicker i {
    font-size: 7px;
    filter: drop-shadow(0 0 7px rgba(83, 230, 239, 0.65));
}

.lumify-gallery-titleblock h2 {
    margin: 0;
    color: #fff8e7;
    font-family: "Sora", Inter, system-ui, sans-serif;
    font-size: clamp(21px, 2vw, 31px);
    font-weight: 600;
    letter-spacing: -0.035em;
    line-height: 1.1;
}

.lumify-gallery-titleblock > p:last-child {
    max-width: 760px;
    margin: 7px 0 0;
    color: rgba(209, 228, 232, 0.74);
    font-size: clamp(11px, 1vw, 13px);
    line-height: 1.5;
}

.lumify-gallery-chrome {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.lumify-gallery-chrome button,
.lumify-gallery-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(95, 151, 164, 0.42);
    background: rgba(5, 12, 18, 0.9);
    color: #eefefd;
    cursor: pointer;
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lumify-gallery-chrome button {
    width: 42px;
    height: 42px;
    border-radius: 11px;
}

.lumify-gallery-chrome button:hover,
.lumify-gallery-chrome button:focus-visible,
.lumify-gallery-nav:hover,
.lumify-gallery-nav:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(126, 243, 223, 0.74);
    background: rgba(16, 40, 48, 0.96);
    color: var(--accent-soft);
    box-shadow: 0 0 0 2px rgba(83, 230, 239, 0.11), 0 0 20px rgba(83, 230, 239, 0.1);
}

.lumify-gallery-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    touch-action: pan-y;
}

.lumify-gallery-figure {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    height: 100%;
    max-width: 100%;
    aspect-ratio: 3600 / 1948;
    flex: 0 1 auto;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.lumify-gallery-figure img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    user-select: none;
    opacity: 1;
    transform: scale(1);
    transition: opacity 150ms ease, transform 220ms ease;
}

.lumify-gallery-stage.is-switching .lumify-gallery-figure img {
    opacity: 0.34;
    transform: scale(0.994);
}

.lumify-gallery-nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    width: 44px;
    height: 56px;
    border-radius: 12px;
    font-size: 15px;
    transform: translateY(-50%);
    background: rgba(3, 11, 17, 0.82);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease, transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.lumify-gallery-figure:hover .lumify-gallery-nav,
.lumify-gallery-figure:focus-within .lumify-gallery-nav,
.lumify-gallery-dialog.is-maximized .lumify-gallery-nav {
    opacity: 1;
    pointer-events: auto;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-nav {
    width: 52px;
    height: 72px;
    border-color: rgba(126, 243, 223, 0.48);
    background: rgba(3, 11, 17, 0.68);
    font-size: 17px;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-nav--prev {
    left: 24px;
}

.lumify-gallery-dialog.is-maximized .lumify-gallery-nav--next {
    right: 24px;
}

.lumify-gallery-nav--prev {
    left: 18px;
}

.lumify-gallery-nav--next {
    right: 18px;
}

.lumify-gallery-nav:hover,
.lumify-gallery-nav:focus-visible {
    transform: translateY(-50%) scale(1.03);
}

.lumify-gallery-nav:disabled {
    opacity: 0;
    cursor: default;
    transform: none;
    box-shadow: none;
}

.lumify-gallery-figure:hover .lumify-gallery-nav:disabled,
.lumify-gallery-figure:focus-within .lumify-gallery-nav:disabled,
.lumify-gallery-dialog.is-maximized .lumify-gallery-nav:disabled {
    opacity: 0.3;
}

.lumify-gallery-status,
.lumify-gallery-empty {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 24px;
    background: rgba(2, 9, 14, 0.9);
    color: var(--accent-soft);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.07em;
    text-align: center;
}

.lumify-gallery-status[hidden],
.lumify-gallery-empty[hidden] {
    display: none;
}

.lumify-gallery-empty {
    flex-direction: column;
    color: var(--text-2-boost);
}

.lumify-gallery-empty i {
    color: var(--accent);
    font-size: 28px;
}

.lumify-gallery-empty strong {
    color: var(--text-1);
    font-family: "Sora", Inter, system-ui, sans-serif;
    font-size: 16px;
    letter-spacing: -0.02em;
}

.lumify-gallery-empty span {
    color: var(--muted);
    font-size: 10px;
}

.lumify-gallery-footer {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    letter-spacing: normal;
}

.lumify-gallery-progress {
    display: grid;
    gap: 3px;
    min-width: 138px;
}

.lumify-gallery-progress span {
    color: rgba(145, 239, 243, 0.67);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    white-space: nowrap;
}

.lumify-gallery-progress strong {
    color: #fff8e7;
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.lumify-gallery-thumbs {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.lumify-gallery-thumbs::-webkit-scrollbar {
    display: none;
}

.lumify-gallery-thumb {
    position: relative;
    flex: 0 0 auto;
    width: 88px;
    height: 48px;
    padding: 3px;
    overflow: hidden;
    border: 1px solid rgba(87, 151, 165, 0.32);
    border-radius: 8px;
    background: rgba(5, 12, 18, 0.92);
    cursor: pointer;
    opacity: 0.56;
    transition: opacity 160ms ease, transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.lumify-gallery-thumb img {
    width: 100%;
    height: 100%;
    border-radius: 5px;
    object-fit: cover;
}

.lumify-gallery-thumb:hover,
.lumify-gallery-thumb:focus-visible {
    opacity: 0.9;
    transform: translateY(-1px);
    border-color: rgba(126, 243, 223, 0.7);
}

.lumify-gallery-thumb.is-active {
    opacity: 1;
    border-color: rgba(126, 243, 223, 0.92);
    box-shadow: 0 0 0 2px rgba(83, 230, 239, 0.1), 0 0 18px rgba(83, 230, 239, 0.12);
}

.lumify-gallery-hint {
    margin: 0;
    color: rgba(210, 231, 234, 0.72);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 10px;
    letter-spacing: 0.07em;
    white-space: nowrap;
}

.lumify-gallery-hint kbd {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
    height: 28px;
    padding: 0 7px;
    border: 1px solid rgba(105, 201, 214, 0.58);
    border-radius: 7px;
    background: rgba(9, 24, 31, 0.94);
    color: #eafffb;
    font: inherit;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 0 14px rgba(83, 230, 239, 0.08);
}

.lumify-gallery-hint kbd i {
    font-size: 12px;
}

#panel-skills > h2 {
    margin-bottom: 10px;
}

.skills-lede {
    max-width: 880px;
    margin: 0 0 24px;
    color: var(--text-2);
    font-size: clamp(14px, 1.4vw, 17px);
    line-height: 1.6;
}

.panel > .content {
    color: var(--text-2);
    font-size: 15px;
}

#panel-overview > .content {
    display: grid;
    grid-template-rows: auto auto auto;
    gap: 18px;
    min-height: 0;
}

#panel-overview .kv {
    max-width: 1130px;
}

#panel-overview .kv .v {
    margin-bottom: 0 !important;
    color: var(--text-2-boost);
    font-size: clamp(17px, 2vw, 25px);
    line-height: 1.48;
    letter-spacing: -0.015em;
}

.lead-accent {
    color: var(--text-1);
    font-weight: 650;
}

.hero {
    position: relative;
    grid-row: auto;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 8.15;
    margin: 6px 0 0;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 20px;
    background: #061017;
    box-shadow: 0 22px 58px rgba(0, 0, 0, 0.42), 0 0 38px rgba(45, 201, 218, 0.08);
}

.hero::after {
    display: none;
}

.hero > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 76%;
    opacity: 0.86;
    filter: saturate(0.84) contrast(1.09) brightness(0.82) hue-rotate(4deg);
    transition: opacity 260ms ease, filter 260ms ease, transform 500ms ease;
}

.hero:hover > img {
    opacity: 0.96;
    filter: saturate(0.96) contrast(1.06) brightness(0.9) hue-rotate(2deg);
    transform: scale(1.008);
}

.chips,
.stat-chips,
.proj-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chip,
.chips .chip,
.stat-chips .chip,
.proj-chips .chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: auto;
    min-height: 29px;
    padding: 6px 11px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(10, 34, 44, 0.94), rgba(5, 22, 30, 0.92));
    color: var(--text-2-boost);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.25;
    white-space: normal;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035), 0 4px 14px rgba(0, 0, 0, 0.14);
    transition: color 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease, text-shadow 160ms ease, transform 160ms ease;
}

.chip:hover,
.chips .chip:hover,
.stat-chips .chip:hover,
.proj-chips .chip:hover {
    border-color: var(--line-strong);
    background: linear-gradient(180deg, rgba(22, 77, 90, 0.96), rgba(10, 45, 58, 0.96));
    color: #ffffff;
    text-shadow: 0 0 10px rgba(169, 248, 251, 0.22);
    box-shadow: 0 0 0 1px rgba(83, 230, 239, 0.08), 0 0 18px rgba(83, 230, 239, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transform: translateY(-1px);
}

.stat-chips {
    gap: 9px;
    margin-top: 2px;
}

.stat-chips .chip {
    min-height: 36px;
    padding: 8px 13px;
}

.stat-chips .chip i {
    color: var(--accent);
}

.skills {
    display: grid;
    gap: 12px;
}

.row {
    display: grid;
    grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    padding: 18px;
    border: 1px solid var(--line-faint);
    border-radius: var(--r1);
    background: rgba(5, 20, 28, 0.78);
    transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.row:hover {
    transform: translateY(-1px);
    border-color: var(--line);
    background: rgba(7, 29, 39, 0.86);
}

.cat {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-1);
    font-size: 14px;
    font-weight: 650;
}

.cat i {
    display: inline-flex;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(10, 47, 58, 0.56);
    color: var(--accent);
    box-shadow: inset 0 0 16px rgba(83, 230, 239, 0.06);
}

.vals {
    min-width: 0;
    padding-top: 3px;
    color: var(--text-2);
}

.reel-wrap {
    display: grid;
    gap: 15px;
}

.reel {
    position: relative;
    width: 100%;
    max-width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: #000;
    box-shadow: 0 25px 68px rgba(0, 0, 0, 0.5), 0 0 38px rgba(43, 202, 218, 0.1);
}

.reel::before,
.reel::after {
    display: none;
}

.reel iframe,
.reel video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: 100%;
    border: 0;
    background: #000;
}

.reel-controls,
.prevnext,
.dots {
    display: flex;
    align-items: center;
}

.reel-controls {
    justify-content: space-between;
    gap: 14px;
}

.prevnext {
    gap: 8px;
}

.pn {
    display: inline-flex;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 24, 32, 0.9);
    color: var(--text-1);
    font: 600 12px Inter, sans-serif;
    cursor: pointer;
}

.pn:hover {
    border-color: var(--line-strong);
    background: rgba(15, 62, 73, 0.86);
    color: var(--accent-soft);
}

.dots {
    gap: 8px;
}

.dot {
    width: 9px;
    height: 9px;
    padding: 0;
    border: 1px solid rgba(117, 172, 181, 0.45);
    border-radius: 50%;
    background: #173039;
    cursor: pointer;
    transition: width 160ms ease, border-color 160ms ease, background 160ms ease;
}

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

.dot.active {
    width: 25px;
    border-color: var(--accent);
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 14px rgba(83, 230, 239, 0.4);
}

.proj-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.proj {
    display: grid;
    grid-template-columns: minmax(230px, 310px) minmax(0, 1fr);
    gap: 28px;
    padding: clamp(19px, 2.4vw, 30px);
    border: 1px solid var(--line-faint);
    border-radius: 18px;
    background: rgba(5, 20, 28, 0.8);
    transition: border-color 160ms ease, background 160ms ease;
}

.proj:hover {
    border-color: var(--line);
    background: rgba(7, 28, 38, 0.88);
}

.proj__meta {
    color: var(--accent-soft);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    line-height: 1.65;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.proj__title {
    display: inline-block;
    margin-top: 8px;
    color: var(--text-1);
    font-family: Inter, sans-serif;
    font-size: clamp(22px, 2.1vw, 30px);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
    text-transform: none;
}

.proj-kv {
    min-width: 0;
}

.proj-line,
.proj-group h4 {
    margin: 0 0 7px;
    color: var(--text-1);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.proj-sub {
    color: var(--text-2-boost);
    font-size: 15px;
    line-height: 1.65;
}

.proj-sub p {
    margin: 0;
}

.proj-sub p + p {
    margin-top: 10px;
}

.proj-group {
    margin-top: 20px;
}

details.more {
    margin-top: 12px;
}

.more > summary {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    list-style: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(6, 25, 34, 0.9);
    color: var(--accent-soft);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    cursor: pointer;
    user-select: none;
}

.more > summary::-webkit-details-marker,
.more > summary::after {
    display: none;
}

.more > summary i {
    transition: transform 180ms ease;
}

.more[open] > summary i {
    transform: rotate(180deg);
}

.proj-chips {
    margin-top: 13px;
}

footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 18px;
    padding: 20px 4px 0;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-family: "IBM Plex Mono", ui-monospace, monospace;
    font-size: 11px;
    letter-spacing: 0.06em;
}

footer .links {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

footer .links a {
    padding: 6px 8px;
    border-radius: 7px;
}

footer .links a:hover,
footer .links a.is-active {
    background: rgba(22, 78, 91, 0.24);
    color: var(--accent-soft);
}

@media (max-width: 1100px) {
    .masthead {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .masthead.is-projects {
        grid-template-columns: 1fr;
    }

    .masthead-aside {
        justify-items: start;
    }

    .actions {
        justify-content: flex-start;
    }
}

@media (max-width: 980px) {
    .row,
    .proj {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}

@media (max-width: 640px) {
    :root {
        --header-h: 60px;
        --shell-w: calc(100% - 20px);
    }

    body {
        background-attachment: scroll;
        background-position: center top;
        background-size: auto 1000px;
    }

    .site-header__inner {
        height: var(--header-h);
    }

    .nav__left {
        width: 100%;
        gap: 6px;
    }

    .brand {
        max-width: 190px;
        padding: 8px 11px;
        font-size: 10px;
        letter-spacing: 0.13em;
    }

    .nav__link {
        padding: 8px;
        font-size: 12px;
    }

    .nav__menu {
        position: fixed;
        top: var(--header-h);
        right: 10px;
        left: 10px;
        width: auto;
        min-width: 0;
        border-radius: 0 0 14px 14px;
    }

    #quickNav {
        position: sticky;
        top: var(--header-h);
        z-index: 60;
        width: 100%;
        margin: 0;
        padding: 7px 10px;
        border-bottom: 1px solid var(--line);
        background: rgba(2, 7, 11, 0.9);
        backdrop-filter: blur(14px);
    }

    #quickNav .chips {
        flex-wrap: nowrap;
        width: 100%;
        max-width: 100%;
        gap: 4px;
        overflow-x: auto;
        padding: 4px;
        border-radius: 14px;
        scrollbar-width: none;
    }

    #quickNav .chips::-webkit-scrollbar {
        display: none;
    }

    #quickNav .chip {
        flex: 0 0 auto;
    }

    #quickNav .chip a {
        padding: 7px 11px;
        font-size: 9px;
    }

    .frame {
        padding-block: 10px 42px;
    }

    .masthead {
        display: block;
        margin-bottom: 10px;
        padding: 22px 18px;
        border-radius: 20px;
    }

    .masthead .brandbox {
        display: block;
    }

    .masthead .avatar {
        grid-column: auto;
        grid-row: 1;
        width: 68px;
        height: 68px;
        justify-self: auto;
        border-radius: 50%;
    }

    .masthead .identity-copy {
        display: block;
    }

    .masthead-aside {
        margin-top: 20px;
    }

    .masthead:not(.is-projects) .masthead-aside {
        margin-top: 0;
    }

    .project-logo {
        width: min(100%, 360px);
    }

    .identity-copy h1 {
        margin: 18px 0 12px;
        font-size: clamp(22px, 6.9vw, 32px);
        line-height: 1.01;
    }

    .identity-copy h1 span {
        white-space: nowrap;
    }

    .subtitle {
        gap: 8px;
        font-size: 12px;
        line-height: 1.45;
    }

    .subtitle-capabilities {
        font-size: 14px;
        letter-spacing: 0.1em;
    }

    .subtitle-role {
        padding-left: 11px;
        font-size: 15px;
        line-height: 1.35;
    }

    .actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        width: 100%;
        margin-top: 19px;
    }

    .actions .btn {
        width: 100%;
        padding: 9px 10px;
        font-size: 11px;
        white-space: nowrap;
    }

    .actions .resume-btn {
        grid-column: 1 / -1;
    }

    .panel {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .section-kicker {
        font-size: 9px;
        letter-spacing: 0.14em;
    }

    .panel > h2 {
        margin-bottom: 18px;
        font-size: clamp(30px, 10vw, 42px);
    }

    .overview-panel-heading {
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-bottom: 20px;
    }

    .overview-panel-heading h2 {
        font-size: clamp(30px, 10vw, 42px);
    }

    .gallery-launch {
        align-self: flex-start;
        min-height: 42px;
        padding-inline: 13px;
    }

    .lumify-gallery-dialog {
        width: calc(100vw - 18px);
        height: min(390px, calc(100dvh - 18px));
        max-height: calc(100dvh - 18px);
        border-radius: 14px;
    }

    .lumify-gallery-dialog:not(.is-maximized) .lumify-gallery-window {
        height: 100%;
    }

    .lumify-gallery-window {
        gap: 10px;
        padding: 12px;
    }

    .lumify-gallery-header {
        gap: 12px;
    }

    .lumify-gallery-kicker {
        margin-bottom: 5px;
        font-size: 8px;
        letter-spacing: 0.13em;
    }

    .lumify-gallery-titleblock h2 {
        font-size: clamp(18px, 5.5vw, 23px);
    }

    .lumify-gallery-titleblock > p:last-child {
        display: none;
    }

    .lumify-gallery-chrome {
        gap: 6px;
    }

    .lumify-gallery-chrome button {
        width: 36px;
        height: 36px;
        border-radius: 9px;
    }

    .lumify-gallery-stage {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        padding: 0;
        border-radius: 0;
    }

    .lumify-gallery-dialog:not(.is-maximized) .lumify-gallery-figure {
        width: 100%;
        height: auto;
        aspect-ratio: 3600 / 1948;
    }

    .lumify-gallery-nav {
        position: absolute;
        top: 50%;
        z-index: 2;
        width: 36px;
        height: 48px;
        border-radius: 10px;
        transform: translateY(-50%);
        background: rgba(3, 11, 17, 0.88);
        backdrop-filter: blur(8px);
    }

    .lumify-gallery-nav--prev {
        left: 14px;
    }

    .lumify-gallery-nav--next {
        right: 14px;
    }

    .lumify-gallery-nav:hover,
    .lumify-gallery-nav:focus-visible {
        transform: translateY(-50%) scale(1.03);
    }

    .lumify-gallery-footer {
        grid-template-columns: auto minmax(0, 1fr);
        gap: 10px;
    }

    .lumify-gallery-progress {
        min-width: 118px;
    }

    .lumify-gallery-thumbs {
        justify-content: flex-start;
    }

    .lumify-gallery-thumb {
        width: 68px;
        height: 40px;
    }

    .lumify-gallery-hint {
        display: none;
    }

    .lumify-gallery-dialog.is-maximized {
        width: 100vw;
        height: 100dvh;
        max-height: none;
        border-radius: 0;
    }

    .lumify-gallery-dialog.is-maximized .lumify-gallery-figure {
        height: 100%;
        aspect-ratio: auto;
    }

    #panel-overview .kv .v {
        font-size: 16px;
        line-height: 1.58;
    }

    .hero {
        aspect-ratio: 4 / 3;
        margin-top: 0;
        border-radius: 15px;
    }

    .hero > img {
        object-position: 50% 72%;
    }

    .stat-chips {
        display: grid;
        grid-template-columns: 1fr;
    }

    .stat-chips .chip {
        width: 100%;
    }

    .row,
    .proj {
        padding: 16px;
        border-radius: 14px;
    }

    .cat {
        font-size: 13px;
    }

    .reel {
        border-radius: 12px;
    }

    .reel-controls {
        align-items: flex-start;
        flex-direction: column;
    }

    .dots {
        min-height: 24px;
    }

    footer {
        align-items: flex-start;
        flex-direction: column;
        padding-inline: 2px;
    }
}

@media (max-width: 380px) {
    .brand {
        max-width: 155px;
    }

    .nav__link span {
        display: none;
    }

    .masthead .brandbox {
        grid-template-columns: 56px minmax(0, 1fr);
        gap: 12px;
    }

    .masthead .avatar {
        width: 56px;
        height: 56px;
    }

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

    .actions .resume-btn {
        grid-column: auto;
    }

    .gallery-launch {
        width: 100%;
    }

    .lumify-gallery-dialog:not(.is-maximized) {
        width: calc(100vw - 10px);
        max-height: calc(100dvh - 10px);
    }

    .lumify-gallery-window {
        padding: 9px;
    }

    .lumify-gallery-stage {
        padding: 0;
    }

    .lumify-gallery-nav {
        width: 32px;
        height: 46px;
    }

    .lumify-gallery-nav--prev {
        left: 10px;
    }

    .lumify-gallery-nav--next {
        right: 10px;
    }
}

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

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