@font-face {
    font-family: "UbuntuLocal";
    src: url("/static/fonts/Ubuntu-Regular.ttf");
    font-display: swap;
}

@font-face {
    font-family: "PacificoLocal";
    src: url("/static/fonts/Pacifico-Regular.ttf");
    font-display: swap;
}

:root {
    --main_bg_color:
        radial-gradient(900px 680px at 78% 12%, rgba(39, 102, 69, 0.26), transparent 64%),
        radial-gradient(780px 620px at 4% 88%, rgba(133, 94, 28, 0.14), transparent 68%),
        linear-gradient(145deg, #07110c 0%, #050906 52%, #090b07 100%);
    --main_text_color: #f3eee0;
    --gradient: linear-gradient(120deg, #f1d58b 0%, #c9983e 45%, #f8e8b2 100%);
    --purple_text_color: #d9b45f;
    --text_bg_color: rgba(219, 178, 90, 0.12);
    --item_bg_color: rgba(11, 23, 16, 0.72);
    --item_hover_color: rgba(21, 44, 30, 0.86);
    --item_left_title_color: #fff9e9;
    --item_left_text_color: #a9b8aa;
    --footer_text_color: #8f9d91;
    --left_tag_item: rgba(209, 170, 82, 0.09);
    --card_filter: 16px;
    --back_filter: 0px;
    --back_filter_color: rgba(0, 0, 0, 0);
    --fill: #d9b45f;
    --card_border: 1px solid rgba(217, 180, 95, 0.16);
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
    --gold: #d9b45f;
    --gold-light: #f1d58b;
    --gold-dim: #8c6c31;
    --green: #163c28;
    --green-light: #6f9878;
    --surface: rgba(8, 18, 12, 0.78);
    --surface-solid: #0b1811;
    --line: rgba(219, 178, 90, 0.14);
    --muted: #9aaa9c;
    --serif: "Songti SC", "STSong", "SimSun", Georgia, serif;
    --sans: "UbuntuLocal", -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}

html[data-theme="Dark"] {
    --main_bg_color:
        radial-gradient(850px 640px at 82% 8%, rgba(108, 79, 31, 0.18), transparent 65%),
        radial-gradient(720px 560px at 5% 92%, rgba(22, 67, 44, 0.2), transparent 68%),
        linear-gradient(145deg, #040705 0%, #020302 58%, #070805 100%);
    --main_text_color: #eee8d8;
    --item_bg_color: rgba(7, 12, 8, 0.82);
    --item_hover_color: rgba(16, 31, 21, 0.92);
    --item_left_title_color: #fff8e6;
    --item_left_text_color: #98a398;
    --footer_text_color: #828d84;
    --left_tag_item: rgba(204, 161, 68, 0.08);
    --fill: #cba24b;
    --card_border: 1px solid rgba(211, 169, 76, 0.14);
    --surface: rgba(5, 10, 7, 0.84);
    --surface-solid: #070d09;
    --line: rgba(211, 169, 76, 0.12);
    --muted: #919d93;
}

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

html {
    min-width: 320px;
    scroll-behavior: smooth;
    background: #050906;
}

body {
    min-height: 100vh;
    overflow-x: hidden;
    color: var(--main_text_color);
    background: var(--main_bg_color);
    background-attachment: fixed;
    font-family: var(--sans);
    line-height: 1.5;
    transition: color 0.25s ease, background 0.35s ease;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -4;
    content: "";
    pointer-events: none;
    background-image:
        linear-gradient(rgba(217, 180, 95, 0.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(217, 180, 95, 0.018) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(to bottom, black, transparent 82%);
}

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

button,
input {
    font: inherit;
}

button {
    color: inherit;
}

img,
svg {
    display: block;
}

svg {
    fill: currentColor;
}

::selection {
    color: #07110c;
    background: var(--gold-light);
}

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.16);
}

::-webkit-scrollbar-thumb {
    border: 2px solid transparent;
    border-radius: 999px;
    background: rgba(217, 180, 95, 0.3);
    background-clip: padding-box;
}

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000000;
    padding: 10px 14px;
    border-radius: 8px;
    color: #07110c;
    background: var(--gold-light);
    transform: translateY(-160%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
}

/* Loading */
#zyyo-loading {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: var(--gold-light);
    background: #06100b;
    pointer-events: none;
    opacity: 1;
    transition: opacity 0.45s ease, visibility 0.45s ease;
}

#zyyo-loading.is-hidden {
    visibility: hidden;
    opacity: 0;
}

#zyyo-loading > span {
    font-family: "UbuntuLocal", sans-serif;
    font-size: 10px;
    letter-spacing: 0.32em;
    opacity: 0.62;
}

.loading-flower,
.brand-flower {
    position: relative;
    display: block;
    width: 32px;
    height: 32px;
}

.loading-flower i,
.brand-flower i {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 9px;
    height: 14px;
    border-radius: 75% 20% 75% 20%;
    background: linear-gradient(145deg, var(--gold-light), var(--gold-dim));
    transform-origin: 0 0;
    box-shadow: 0 0 18px rgba(217, 180, 95, 0.2);
}

.loading-flower i:nth-child(1),
.brand-flower i:nth-child(1) {
    transform: rotate(0deg) translate(1px, -14px);
}

.loading-flower i:nth-child(2),
.brand-flower i:nth-child(2) {
    transform: rotate(90deg) translate(1px, -14px);
}

.loading-flower i:nth-child(3),
.brand-flower i:nth-child(3) {
    transform: rotate(180deg) translate(1px, -14px);
}

.loading-flower i:nth-child(4),
.brand-flower i:nth-child(4) {
    transform: rotate(270deg) translate(1px, -14px);
}

.loading-flower {
    animation: flowerSpin 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes flowerSpin {
    0%,
    100% {
        transform: rotate(0) scale(0.86);
        opacity: 0.7;
    }

    50% {
        transform: rotate(180deg) scale(1);
        opacity: 1;
    }
}

/* Background ambience */
.page-ambience {
    position: fixed;
    inset: 0;
    z-index: -2;
    overflow: hidden;
    pointer-events: none;
}

.ambient-orb {
    position: absolute;
    display: block;
    border-radius: 50%;
    filter: blur(2px);
}

.ambient-orb-one {
    top: -240px;
    right: -140px;
    width: 720px;
    height: 720px;
    border: 1px solid rgba(217, 180, 95, 0.08);
    box-shadow:
        inset 0 0 160px rgba(27, 86, 55, 0.11),
        0 0 180px rgba(27, 86, 55, 0.06);
}

.ambient-orb-two {
    bottom: -300px;
    left: -220px;
    width: 640px;
    height: 640px;
    border: 1px solid rgba(217, 180, 95, 0.06);
    box-shadow: inset 0 0 150px rgba(151, 105, 35, 0.05);
}

.petal {
    position: absolute;
    width: 10px;
    height: 15px;
    border: 1px solid rgba(232, 197, 116, 0.28);
    border-radius: 80% 15% 80% 15%;
    background: rgba(217, 180, 95, 0.06);
    animation: petalFloat 8s ease-in-out infinite;
}

.petal-one {
    top: 18%;
    right: 9%;
    transform: rotate(28deg);
}

.petal-two {
    top: 36%;
    right: 4%;
    width: 7px;
    height: 11px;
    animation-delay: -3s;
}

.petal-three {
    top: 72%;
    left: 6%;
    transform: rotate(102deg);
    animation-delay: -5s;
}

.petal-four {
    top: 82%;
    left: 14%;
    width: 8px;
    height: 12px;
    animation-delay: -1s;
}

@keyframes petalFloat {
    0%,
    100% {
        translate: 0 0;
        rotate: 0deg;
        opacity: 0.4;
    }

    50% {
        translate: 12px -22px;
        rotate: 32deg;
        opacity: 0.85;
    }
}

/* Shell and top navigation */
.site-shell {
    width: min(100%, 1360px);
    min-height: 100vh;
    margin: 0 auto;
    padding: 0 38px 28px;
}

.topbar {
    position: relative;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 94px;
    border-bottom: 1px solid var(--line);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.brand-flower {
    width: 30px;
    height: 30px;
    transform: scale(0.82);
    transition: transform 0.35s ease;
}

.brand:hover .brand-flower {
    transform: scale(0.9) rotate(14deg);
}

.brand-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.brand-copy strong {
    font-family: var(--serif);
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.brand-copy small {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.3em;
}

.topbar-actions,
.iconContainer {
    display: flex;
    align-items: center;
}

.topbar-actions {
    gap: 22px;
}

.project-status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    letter-spacing: 0.14em;
}

.project-status i {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #8fca8c;
    box-shadow: 0 0 0 5px rgba(143, 202, 140, 0.08);
    animation: statusPulse 2.4s ease-in-out infinite;
}

@keyframes statusPulse {
    50% {
        box-shadow: 0 0 0 8px rgba(143, 202, 140, 0);
    }
}

.iconContainer {
    gap: 8px;
}

.iconItem,
.switch {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}

.iconItem {
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--muted);
    background: rgba(10, 20, 14, 0.46);
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.iconItem svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.iconItem:hover {
    color: var(--gold-light);
    border-color: rgba(217, 180, 95, 0.42);
    background: rgba(217, 180, 95, 0.07);
    transform: translateY(-2px);
}

.iconTip {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    z-index: 50;
    padding: 5px 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--main_text_color);
    background: var(--surface-solid);
    font-size: 10px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transform: translate(-50%, -4px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.iconItem:hover .iconTip {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.switch {
    width: 50px;
    height: 30px;
    cursor: pointer;
}

.onoffswitch-checkbox {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.switch-track {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(9, 18, 13, 0.72);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.switch-stars {
    position: absolute;
    top: 50%;
    right: 7px;
    color: var(--gold);
    font-size: 10px;
    transform: translateY(-50%);
    opacity: 0.72;
}

.switch-thumb {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f4dd9b, #bd8d34);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.onoffswitch-checkbox:not(:checked) + .switch-track .switch-thumb {
    transform: translateX(20px);
    background: linear-gradient(145deg, #b8c4bb, #6f7a72);
}

.onoffswitch-checkbox:focus-visible + .switch-track {
    outline: 2px solid var(--gold);
    outline-offset: 3px;
}

/* Hero */
.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.16fr) minmax(320px, 0.84fr);
    align-items: center;
    min-height: 568px;
    margin-top: 28px;
    padding: 66px 72px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 34px;
    background:
        linear-gradient(110deg, rgba(7, 18, 12, 0.94) 0%, rgba(10, 23, 15, 0.72) 52%, rgba(11, 26, 18, 0.48) 100%);
    box-shadow: var(--shadow);
    isolation: isolate;
}

.hero::before {
    position: absolute;
    inset: 0;
    z-index: -2;
    content: "";
    background:
        linear-gradient(90deg, rgba(217, 180, 95, 0.032) 1px, transparent 1px),
        linear-gradient(rgba(217, 180, 95, 0.032) 1px, transparent 1px);
    background-size: 44px 44px;
    mask-image: linear-gradient(90deg, black, transparent 84%);
}

.hero::after {
    position: absolute;
    top: 50%;
    right: -170px;
    z-index: -1;
    width: 590px;
    height: 590px;
    content: "";
    border: 1px solid rgba(217, 180, 95, 0.1);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(45, 114, 75, 0.18), transparent 63%);
    box-shadow:
        0 0 0 70px rgba(217, 180, 95, 0.018),
        0 0 0 140px rgba(217, 180, 95, 0.012);
    transform: translateY(-50%);
}

.hero-copy {
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    color: var(--gold);
    font-size: 10px;
    letter-spacing: 0.26em;
}

.hero-eyebrow > span {
    width: 30px;
    height: 1px;
    background: var(--gold);
    box-shadow: 0 0 12px rgba(217, 180, 95, 0.5);
}

.hero h1 {
    display: flex;
    flex-direction: column;
    width: max-content;
    font-family: var(--serif);
    font-size: clamp(66px, 6.7vw, 96px);
    font-weight: 700;
    line-height: 0.94;
    letter-spacing: -0.065em;
}

.hero-title-main {
    color: var(--main_text_color);
}

.hero-title-sub {
    padding-top: 10px;
    color: transparent;
    background: var(--gradient);
    background-clip: text;
    -webkit-background-clip: text;
}

.hero-lead {
    max-width: 560px;
    margin-top: 30px;
    color: var(--item_left_text_color);
    font-size: 17px;
    line-height: 1.9;
    letter-spacing: 0.04em;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 30px;
}

.primary-action,
.secondary-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    border-radius: 999px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.primary-action {
    gap: 12px;
    padding: 0 23px;
    color: #0a120d;
    background: linear-gradient(135deg, var(--gold-light), #bd8d34);
    box-shadow: 0 10px 30px rgba(166, 117, 40, 0.2);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.primary-action svg {
    width: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.6;
    transition: transform 0.2s ease;
}

.primary-action:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 34px rgba(166, 117, 40, 0.28);
}

.primary-action:hover svg {
    transform: translateX(3px);
}

.secondary-action {
    padding: 0 22px;
    border: 1px solid var(--line);
    color: var(--main_text_color);
    background: rgba(255, 255, 255, 0.015);
    font-size: 13px;
    letter-spacing: 0.08em;
}

.secondary-action:hover {
    border-color: rgba(217, 180, 95, 0.4);
    background: rgba(217, 180, 95, 0.06);
    transform: translateY(-2px);
}

.hero-stats {
    display: flex;
    gap: 34px;
    margin-top: 40px;
}

.hero-stats > div {
    display: grid;
    grid-template-columns: auto auto;
    align-items: baseline;
    gap: 9px;
}

.hero-stats dt {
    color: var(--gold-light);
    font-family: Georgia, serif;
    font-size: 20px;
}

.hero-stats dd {
    color: var(--muted);
    font-size: 10px;
    letter-spacing: 0.12em;
}

.portrait-scene {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 430px;
}

.portrait-core {
    position: relative;
    width: min(29vw, 360px);
    aspect-ratio: 1;
}

.portrait-avatar {
    position: absolute;
    inset: 13%;
    border: 1px solid rgba(245, 222, 160, 0.3);
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    box-shadow:
        0 0 0 9px rgba(7, 15, 10, 0.82),
        0 20px 80px rgba(0, 0, 0, 0.5),
        0 0 70px rgba(46, 112, 75, 0.18);
}

.portrait-frame {
    position: absolute;
    inset: -6%;
    width: 112%;
    height: 112%;
    object-fit: contain;
    pointer-events: none;
    filter: saturate(0.83) sepia(0.12) drop-shadow(0 16px 24px rgba(0, 0, 0, 0.26));
}

.portrait-orbit {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.orbit-one {
    width: min(34vw, 420px);
    height: min(34vw, 420px);
    border: 1px solid rgba(217, 180, 95, 0.13);
    animation: orbitPulse 4.8s ease-in-out infinite;
}

.orbit-two {
    width: min(39vw, 480px);
    height: min(39vw, 480px);
    border: 1px dashed rgba(217, 180, 95, 0.08);
    animation: orbitSpin 34s linear infinite;
}

@keyframes orbitPulse {
    50% {
        opacity: 0.45;
        transform: translate(-50%, -50%) scale(1.035);
    }
}

@keyframes orbitSpin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

.portrait-label {
    position: absolute;
    right: 4%;
    bottom: 14px;
    display: flex;
    min-width: 216px;
    padding: 15px 18px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(6, 14, 9, 0.78);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    flex-direction: column;
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.32);
}

.portrait-label > span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.24em;
}

.portrait-label strong {
    margin-top: 4px;
    font-family: var(--serif);
    font-size: 22px;
    letter-spacing: 0.08em;
}

.portrait-label small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.1em;
}

.accentText {
    color: var(--gold-light);
    font-weight: 700;
}

.textBadge {
    display: inline-block;
    padding: 1px 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--gold-light);
    background: var(--text_bg_color);
    font-weight: 700;
}

.hero-seal {
    position: absolute;
    right: 24px;
    bottom: 24px;
    display: grid;
    width: 38px;
    height: 49px;
    place-items: center;
    border: 1px solid rgba(217, 180, 95, 0.33);
    color: rgba(240, 210, 137, 0.62);
    font-family: var(--serif);
    font-size: 11px;
    line-height: 1.1;
    letter-spacing: 0.14em;
}

/* Project workspace */
.workspace {
    display: grid;
    grid-template-columns: 286px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.profile-rail {
    display: flex;
    gap: 18px;
    flex-direction: column;
}

.rail-card,
.content-panel {
    border: 1px solid var(--line);
    background: var(--item_bg_color);
    backdrop-filter: blur(var(--card_filter));
    -webkit-backdrop-filter: blur(var(--card_filter));
    box-shadow: 0 18px 60px rgba(0, 0, 0, 0.18);
}

.rail-card {
    padding: 24px;
    border-radius: 24px;
}

.rail-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.24em;
}

.rail-heading em {
    color: var(--gold-dim);
    font-family: Georgia, serif;
    font-size: 10px;
    font-style: normal;
}

.identity-card h2 {
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 0.08em;
}

.identity-card > p {
    min-height: 24px;
    margin-top: 8px;
    color: var(--item_left_text_color);
    font-size: 13px;
}

.profile-fields {
    display: flex;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    flex-direction: column;
}

.profile-field {
    display: grid;
    grid-template-columns: 18px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    color: var(--muted);
    font-size: 11px;
}

.profile-field svg {
    width: 14px;
    height: 14px;
    fill: var(--gold);
}

.profile-field strong {
    color: var(--main_text_color);
    font-size: 11px;
    font-weight: 500;
}

.tag-list {
    display: flex;
    gap: 7px;
    margin-top: 18px;
    flex-wrap: wrap;
}

.tag-list span {
    padding: 6px 9px;
    border: 1px solid rgba(217, 180, 95, 0.1);
    border-radius: 999px;
    color: var(--gold-light);
    background: var(--left_tag_item);
    font-size: 9px;
    letter-spacing: 0.04em;
}

.timeline-list {
    list-style: none;
}

.timeline-list li {
    position: relative;
    display: grid;
    grid-template-columns: 13px 1fr;
    gap: 10px;
    padding-bottom: 18px;
}

.timeline-list li:not(:last-child)::after {
    position: absolute;
    top: 12px;
    bottom: -2px;
    left: 4px;
    width: 1px;
    content: "";
    background: var(--line);
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 9px;
    height: 9px;
    margin-top: 5px;
    border: 2px solid var(--surface-solid);
    border-radius: 50%;
    background: #53655a;
    box-shadow: 0 0 0 1px rgba(217, 180, 95, 0.18);
}

.timeline-list .is-current .timeline-dot {
    background: var(--gold);
    box-shadow:
        0 0 0 1px var(--gold),
        0 0 16px rgba(217, 180, 95, 0.36);
}

.timeline-list li > div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
}

.timeline-list strong {
    overflow: hidden;
    color: var(--item_left_text_color);
    font-size: 11px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.timeline-list time {
    flex: 0 0 auto;
    color: #718076;
    font-family: Georgia, serif;
    font-size: 9px;
}

.content-panel {
    min-width: 0;
    padding: 30px;
    border-radius: 28px;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 2px 2px 24px;
    border-bottom: 1px solid var(--line);
}

.section-heading p {
    margin-bottom: 7px;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.26em;
}

.section-heading h2 {
    font-family: var(--serif);
    font-size: 34px;
    letter-spacing: 0.08em;
}

.section-heading > span {
    color: var(--muted);
    font-family: Georgia, serif;
    font-size: 11px;
    letter-spacing: 0.1em;
}

.tabs {
    display: flex;
    gap: 8px;
    margin: 20px 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
    display: none;
}

.tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    background: transparent;
    cursor: pointer;
    font-size: 11px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.tab svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.tab svg path {
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
}

.tab:hover {
    color: var(--gold-light);
    border-color: rgba(217, 180, 95, 0.34);
    transform: translateY(-1px);
}

.tab.active {
    color: #0a120d;
    border-color: var(--gold);
    background: linear-gradient(135deg, var(--gold-light), #bd8d34);
    box-shadow: 0 7px 20px rgba(153, 106, 35, 0.16);
}

.content-stage {
    position: relative;
}

.projectList {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    animation: contentIn 0.36s ease both;
}

.projectList[data-count="1"] .projectItem {
    grid-column: 1 / -1;
    min-height: 300px;
}

@keyframes contentIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

.projectItem {
    --pointer-x: 70%;
    --pointer-y: 20%;
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 248px;
    padding: 20px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(340px circle at var(--pointer-x) var(--pointer-y), rgba(217, 180, 95, 0.1), transparent 58%),
        linear-gradient(145deg, rgba(17, 37, 25, 0.76), rgba(6, 13, 9, 0.9));
    flex-direction: column;
    isolation: isolate;
    transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.projectItem::before {
    position: absolute;
    inset: 0;
    z-index: -1;
    content: "";
    background:
        linear-gradient(90deg, rgba(217, 180, 95, 0.025) 1px, transparent 1px),
        linear-gradient(rgba(217, 180, 95, 0.025) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: linear-gradient(145deg, black, transparent 70%);
}

.projectItem::after {
    position: absolute;
    right: -90px;
    bottom: -100px;
    z-index: -1;
    width: 220px;
    height: 220px;
    content: "";
    border: 1px solid rgba(217, 180, 95, 0.08);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(217, 180, 95, 0.018);
    transition: transform 0.45s ease, border-color 0.45s ease;
}

.projectItem:hover {
    border-color: rgba(217, 180, 95, 0.38);
    box-shadow: 0 24px 54px rgba(0, 0, 0, 0.32);
    transform: translateY(-5px);
}

.projectItem:hover::after {
    border-color: rgba(217, 180, 95, 0.16);
    transform: scale(1.08);
}

.projectItem.pressed {
    transform: translateY(-1px) scale(0.99);
}

.project-card-topline,
.project-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-card-topline {
    position: relative;
    z-index: 2;
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.18em;
}

.project-card-topline em {
    padding: 4px 8px;
    border: 1px solid rgba(217, 180, 95, 0.1);
    border-radius: 999px;
    color: var(--muted);
    background: rgba(217, 180, 95, 0.04);
    font-size: 9px;
    font-style: normal;
    letter-spacing: 0.08em;
}

.project-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex: 1;
    gap: 18px;
}

.projectItemLeft {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.projectItemLeft h3 {
    color: var(--item_left_title_color);
    font-family: var(--serif);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.projectItemLeft p {
    max-width: 420px;
    margin-top: 10px;
    color: var(--item_left_text_color);
    font-size: 12px;
    line-height: 1.75;
}

.projectItemRight {
    position: relative;
    display: grid;
    flex: 0 0 110px;
    height: 110px;
    place-items: center;
}

.project-image-glow {
    position: absolute;
    inset: 10%;
    border-radius: 50%;
    background: rgba(217, 180, 95, 0.12);
    filter: blur(22px);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.projectItemRight img {
    position: relative;
    z-index: 1;
    width: 82px;
    height: 82px;
    object-fit: contain;
    filter: saturate(0.88) drop-shadow(0 10px 16px rgba(0, 0, 0, 0.24));
    transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.4s ease;
}

.projectList[data-count="1"] .projectItemRight {
    flex-basis: 158px;
    height: 158px;
}

.projectList[data-count="1"] .projectItemRight img {
    width: 126px;
    height: 126px;
}

.projectItem:hover .projectItemRight img {
    filter: saturate(1) drop-shadow(0 14px 20px rgba(0, 0, 0, 0.3));
    transform: translateY(-5px) rotate(3deg) scale(1.05);
}

.projectItem:hover .project-image-glow {
    opacity: 0.85;
    transform: scale(1.18);
}

.project-card-footer {
    position: relative;
    z-index: 2;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 0.12em;
}

.project-card-footer > span {
    max-width: calc(100% - 38px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-card-footer svg {
    width: 18px;
    fill: none;
    stroke: var(--gold);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.4;
    transition: transform 0.2s ease;
}

.projectItem:hover .project-card-footer svg {
    transform: translateX(3px);
}

.empty-state {
    grid-column: 1 / -1;
    display: grid;
    min-height: 210px;
    place-content: center;
    border: 1px dashed var(--line);
    border-radius: 20px;
    color: var(--muted);
    text-align: center;
}

.empty-state span {
    color: var(--gold);
    font-size: 9px;
    letter-spacing: 0.24em;
}

.empty-state p {
    margin-top: 10px;
    font-family: var(--serif);
    font-size: 17px;
}

.skill {
    grid-column: 1 / -1;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(7, 16, 11, 0.55);
}

.skill img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.skill #skillWap {
    display: none;
}

.about {
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(17, 37, 25, 0.7), rgba(6, 13, 9, 0.88));
    animation: contentIn 0.36s ease both;
}

.about-heading {
    display: flex;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
    flex-direction: column;
}

.about-heading span {
    color: var(--gold);
    font-size: 8px;
    letter-spacing: 0.24em;
}

.about-heading strong {
    margin-top: 7px;
    font-family: var(--serif);
    font-size: 28px;
    letter-spacing: 0.08em;
}

.about-content {
    max-width: 720px;
    margin-top: 22px;
    color: var(--item_left_text_color);
    font-size: 14px;
    line-height: 1.85;
}

.about-content > div {
    color: var(--item_left_text_color) !important;
    font-family: var(--sans) !important;
}

.about-content details {
    border-top: 1px solid var(--line);
}

.about-content summary {
    color: var(--gold-light) !important;
}

.about-content iframe {
    max-width: 100%;
}

/* Footer */
footer {
    display: flex;
    align-items: center;
    min-height: 92px;
    margin-top: 24px;
    padding: 0 8px;
    border-top: 1px solid var(--line);
    color: var(--footer_text_color);
    font-size: 10px;
    letter-spacing: 0.08em;
}

.footer-divider {
    width: 1px;
    height: 12px;
    margin: 0 13px;
    background: var(--line);
}

.filing-links {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-left: auto;
}

.filing-links a {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s ease;
}

.filing-links a:hover {
    color: var(--gold-light);
}

.filing-links img {
    width: 14px;
    height: 14px;
    object-fit: contain;
}

/* Image modal */
.tc {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(1, 4, 2, 0.74);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.tc.active {
    opacity: 1;
    visibility: visible;
}

.tc-main {
    position: relative;
    display: grid;
    width: min(92vw, 430px);
    min-height: 220px;
    padding: 14px;
    place-items: center;
    border: 1px solid rgba(217, 180, 95, 0.28);
    border-radius: 24px;
    background: #0b1811;
    box-shadow: 0 30px 100px rgba(0, 0, 0, 0.5);
    opacity: 0;
    overflow: hidden;
    transform: translateY(14px) scale(0.98);
    transition: opacity 0.28s ease, transform 0.28s ease;
}

.tc.active .tc-main {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.tc-img {
    width: 100%;
    max-height: 78vh;
    border-radius: 14px;
    object-fit: contain;
}

.tc-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    color: var(--gold-light);
    background: rgba(5, 11, 7, 0.88);
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

/* Responsive */
@media (max-width: 1120px) {
    .site-shell {
        padding-inline: 26px;
    }

    .hero {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
        padding-inline: 52px;
    }

    .hero h1 {
        font-size: clamp(60px, 7.5vw, 78px);
    }

    .workspace {
        grid-template-columns: 250px minmax(0, 1fr);
    }

    .portrait-label {
        right: -2%;
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: minmax(0, 1fr) 300px;
        min-height: 520px;
        padding: 52px 40px;
    }

    .hero h1 {
        font-size: 58px;
    }

    .portrait-core {
        width: 285px;
    }

    .orbit-one {
        width: 330px;
        height: 330px;
    }

    .orbit-two {
        width: 380px;
        height: 380px;
    }

    .portrait-label {
        right: 0;
        min-width: 190px;
    }

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

    .profile-rail {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 760px) {
    .site-shell {
        padding: 0 16px 18px;
    }

    .topbar {
        min-height: 78px;
    }

    .brand-copy strong {
        font-size: 14px;
    }

    .brand-copy small,
    .project-status {
        display: none;
    }

    .topbar-actions {
        gap: 8px;
    }

    .hero {
        grid-template-columns: 1fr;
        margin-top: 16px;
        padding: 42px 28px 30px;
        border-radius: 26px;
    }

    .hero::after {
        top: auto;
        right: -160px;
        bottom: -170px;
        transform: none;
    }

    .hero h1 {
        font-size: clamp(52px, 15vw, 68px);
    }

    .hero-lead {
        font-size: 15px;
    }

    .portrait-scene {
        min-height: 360px;
        margin-top: 12px;
    }

    .portrait-core {
        width: min(78vw, 320px);
    }

    .orbit-one {
        width: min(88vw, 360px);
        height: min(88vw, 360px);
    }

    .orbit-two {
        width: min(100vw, 405px);
        height: min(100vw, 405px);
    }

    .portrait-label {
        right: 3%;
        bottom: 2px;
    }

    .hero-seal {
        display: none;
    }

    .profile-rail {
        grid-template-columns: 1fr;
    }

    .content-panel {
        padding: 22px 16px;
        border-radius: 24px;
    }

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

    .projectList[data-count="1"] .projectItem {
        grid-column: auto;
        min-height: 280px;
    }

    .section-heading {
        padding-inline: 4px;
    }

    .section-heading h2 {
        font-size: 30px;
    }

    footer {
        align-items: flex-start;
        padding: 22px 4px;
        flex-wrap: wrap;
        gap: 9px;
    }

    .footer-divider {
        margin-inline: 5px;
    }

    .filing-links {
        width: 100%;
        margin-left: 0;
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .brand {
        gap: 8px;
    }

    .brand-flower {
        transform: scale(0.68);
    }

    .iconContainer {
        gap: 5px;
    }

    .iconItem {
        width: 34px;
        height: 34px;
    }

    .switch {
        width: 46px;
        height: 28px;
    }

    .switch-thumb {
        top: 3px;
    }

    .onoffswitch-checkbox:not(:checked) + .switch-track .switch-thumb {
        transform: translateX(17px);
    }

    .hero {
        padding: 36px 22px 26px;
    }

    .hero-eyebrow {
        font-size: 8px;
        letter-spacing: 0.17em;
    }

    .hero h1 {
        font-size: 50px;
    }

    .desktop-break {
        display: none;
    }

    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .primary-action,
    .secondary-action {
        width: 100%;
    }

    .hero-stats {
        justify-content: space-between;
        gap: 8px;
    }

    .hero-stats > div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .portrait-scene {
        min-height: 330px;
    }

    .portrait-label {
        right: 0;
        min-width: 174px;
    }

    .portrait-label small {
        max-width: 150px;
        line-height: 1.5;
    }

    .rail-card {
        padding: 21px;
    }

    .projectItem {
        min-height: 260px;
        padding: 18px;
    }

    .project-card-body {
        gap: 10px;
    }

    .projectItemLeft h3 {
        font-size: 25px;
    }

    .projectItemRight {
        flex-basis: 90px;
        height: 90px;
    }

    .projectItemRight img {
        width: 68px;
        height: 68px;
    }

    .projectList[data-count="1"] .projectItemRight {
        flex-basis: 100px;
        height: 100px;
    }

    .projectList[data-count="1"] .projectItemRight img {
        width: 84px;
        height: 84px;
    }

    .about {
        padding: 22px 18px;
    }

    .skill #skillPc {
        display: none;
    }

    .skill #skillWap {
        display: block;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
