:root {
    --bg: #06090f;
    --bg-soft: rgba(15, 20, 32, 0.78);
    --panel: rgba(10, 15, 26, 0.72);
    --panel-strong: rgba(12, 18, 29, 0.92);
    --line: rgba(255, 255, 255, 0.08);
    --line-strong: rgba(217, 255, 63, 0.2);
    --text: #f4f7fb;
    --text-muted: rgba(244, 247, 251, 0.7);
    --text-faint: rgba(244, 247, 251, 0.5);
    --accent: #d9ff3f;
    --accent-dark: #a7d711;
    --radius-xl: 32px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
    --transition: 280ms cubic-bezier(0.22, 1, 0.36, 1);
    --content-width: min(1180px, calc(100vw - 48px));
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }

body {
    min-height: 100vh;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 18%, rgba(38, 115, 255, 0.16), transparent 25%),
        radial-gradient(circle at 80% 25%, rgba(217, 255, 63, 0.14), transparent 20%),
        radial-gradient(circle at 70% 80%, rgba(91, 51, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #05070d 0%, #05080e 35%, #04070c 100%);
    line-height: 1.5;
    overflow-x: hidden;
}

body::before, body::after {
    content: '';
    position: fixed;
    inset: auto;
    width: 42vw;
    height: 42vw;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.25;
    pointer-events: none;
    z-index: 0;
}
body::before { top: -8vw; left: -10vw; background: rgba(22, 159, 255, 0.22); }
body::after { right: -10vw; bottom: 6vh; background: rgba(154, 255, 75, 0.16); }

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { border: 0; background: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ========== Page Shell ========== */
.page-shell {
    position: relative;
    z-index: 1;
    width: var(--content-width);
    margin: 0 auto;
    padding: var(--page-pad-top, 24px) 0 72px;
}

/* ========== Header ========== */
.site-header {
    position: fixed;
    top: 18px;
    left: 50%;
    transform: translateX(-50%);
    width: var(--content-width);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(7, 10, 16, 0.55);
    backdrop-filter: blur(24px);
    border-radius: 999px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.24);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--accent);
    color: #111;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    box-shadow: 0 0 24px rgba(217, 255, 63, 0.28);
}
.brand-mark {
    width: 16px; height: 16px;
    border-radius: 50%; background: #111;
    position: relative; flex-shrink: 0;
}
.brand-mark::before, .brand-mark::after {
    content: ''; position: absolute; top: 50%;
    width: 4px; height: 4px; margin-top: -2px;
    border-radius: 50%; background: var(--accent);
}
.brand-mark::before { left: 3px; }
.brand-mark::after { right: 3px; }

.site-nav { display: flex; align-items: center; gap: 22px; }
.site-nav a {
    font-size: 0.9rem; color: var(--text-faint);
    transition: color var(--transition);
}
.site-nav a:hover, .site-nav a:focus-visible { color: var(--text); }

.header-cta {
    padding: 9px 18px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text); font-size: 0.9rem; font-weight: 600;
    transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.header-cta:hover, .header-cta:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(217, 255, 63, 0.5);
    background: rgba(217, 255, 63, 0.08);
}

/* ========== Hero Section — FULL SCREEN ========== */
main { margin-top: 0; }
section { position: relative; scroll-margin-top: 110px; }

.hero-section {
    position: relative;
    z-index: 5;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    margin-top: calc(-1 * var(--page-pad-top, 24px));
    height: 100vh;
    overflow: hidden;
}

.hero-shell {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: var(--bg);
    transition: background 600ms ease;
}

.hero-shell video.hero-bg {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover; z-index: 0;
    transition: opacity 500ms ease;
}

.hero-shell .hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(5, 9, 16, 0.25) 0%, rgba(5, 8, 13, 0.15) 50%, rgba(5, 8, 13, 0.6) 100%);
    pointer-events: none;
    transition: opacity 500ms ease;
}

.hero-shell > *:not(.hero-bg):not(.hero-overlay) {
    position: relative; z-index: 2;
}

body.hero-scrolled .hero-shell video.hero-bg { opacity: 0; }
body.hero-scrolled .hero-shell .hero-overlay { opacity: 0; }
body.hero-scrolled .hero-shell {
    background:
        radial-gradient(circle at 20% 18%, rgba(38, 115, 255, 0.16), transparent 25%),
        radial-gradient(circle at 80% 25%, rgba(217, 255, 63, 0.14), transparent 20%),
        radial-gradient(circle at 70% 80%, rgba(91, 51, 255, 0.12), transparent 22%),
        linear-gradient(180deg, #05070d 0%, #05080e 35%, #04070c 100%);
}

.hero-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 80px clamp(32px, 6vw, 100px) 0;
}

.hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}
.hero-eyebrow::after {
    content: '';
    width: 56px; height: 1px;
    background: rgba(217, 255, 63, 0.5);
}

.hero-title {
    max-width: 800px;
    font-size: clamp(2.5rem, 6vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}
.hero-title strong {
    color: var(--accent);
    font-weight: 800;
}

/* ========== Loading Screen ========== */
.loading-screen {
    position: fixed; inset: 0; z-index: 100;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    background: #05070d;
    transition: opacity 600ms ease, visibility 600ms ease;
}
.loading-screen.fade-out {
    opacity: 0; visibility: hidden;
}
.loading-label {
    color: var(--text-faint);
    font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.25em; text-transform: uppercase;
    margin-bottom: 12px;
}
.loading-number {
    font-size: clamp(4rem, 10vw, 8rem);
    font-weight: 800; color: var(--accent);
    line-height: 1; letter-spacing: -0.04em;
    font-variant-numeric: tabular-nums;
}

/* ========== Hero Text Entrance Animations ========== */
.hero-content .hero-eyebrow,
.hero-content .hero-title {
    opacity: 0;
}
.hero-content.is-visible .hero-eyebrow {
    animation: slideInFromTop 1100ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}
.hero-content.is-visible .hero-title {
    animation: slideInFromBottom 1100ms cubic-bezier(0.22, 1, 0.36, 1) 250ms forwards;
}

/* ========== Showcase Entrance Animation ========== */
.showcase-panel {
    opacity: 0;
    transform: translateY(40px);
}
.showcase-panel.is-visible {
    animation: slideUpReveal 900ms cubic-bezier(0.22, 1, 0.36, 1) 1200ms forwards;
}

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

@keyframes slideInFromTop {
    from { opacity: 0; transform: translateY(-30px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes slideInFromBottom {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========== Showcase Carousel — bottom of hero ========== */
.showcase-panel {
    position: relative;
    padding: 0 clamp(24px, 5vw, 80px) clamp(20px, 3vh, 48px);
}

.showcase-track {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: auto;
    padding: 10px clamp(16px, 4vw, 60px);
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    user-select: none;
}
.showcase-track:active { cursor: grabbing; }
.showcase-track::-webkit-scrollbar { width: 0; height: 0; }
.showcase-track.dragging { cursor: grabbing; }

.showcase-item {
    position: relative;
    flex: 0 0 auto;
    width: clamp(140px, 14vw, 200px);
    aspect-ratio: 1 / 1.2;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    cursor: pointer;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), border-color 420ms ease;
    animation: showcaseFloat 4s ease-in-out infinite;
    animation-delay: var(--float-delay, 0s);
}

.showcase-item:nth-child(1) { --float-delay: 0s; }
.showcase-item:nth-child(2) { --float-delay: 0.5s; }
.showcase-item:nth-child(3) { --float-delay: 1s; }
.showcase-item:nth-child(4) { --float-delay: 1.5s; }
.showcase-item:nth-child(5) { --float-delay: 2s; }
.showcase-item:nth-child(6) { --float-delay: 2.5s; }
.showcase-item:nth-child(7) { --float-delay: 3s; }
.showcase-item:nth-child(8) { --float-delay: 3.5s; }

@keyframes showcaseFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.showcase-item img {
    width: 100%; height: 100%;
    object-fit: cover;
    pointer-events: none;
    transition: transform var(--transition), filter var(--transition);
}

.showcase-item::after {
    content: attr(data-title);
    position: absolute; inset: auto 8px 8px;
    padding: 8px 10px; border-radius: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff; font-size: 0.72rem; font-weight: 600; line-height: 1.3;
    opacity: 0; transform: translateY(8px);
    transition: opacity var(--transition), transform var(--transition);
    pointer-events: none;
}

.showcase-item:hover {
    border-color: rgba(217, 255, 63, 0.4);
    animation-play-state: paused;
}
.showcase-item:hover img { transform: scale(1.08); filter: saturate(1.08); }
.showcase-item:hover::after { opacity: 1; transform: translateY(0); }

/* ========== Section Shell (for non-hero sections) ========== */
.section-shell {
    padding: 34px;
    border: 1px solid var(--line);
    border-radius: var(--radius-xl);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
        rgba(6, 9, 15, 0.62);
    backdrop-filter: blur(14px);
    box-shadow: var(--shadow);
}

.section-header {
    display: flex; justify-content: space-between;
    align-items: flex-end; gap: 24px; margin-bottom: 28px;
}
.section-kicker {
    display: inline-flex; align-items: center; gap: 10px;
    margin-bottom: 10px; color: var(--accent);
    font-size: 0.76rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
}
.section-kicker::before {
    content: ''; width: 24px; height: 1px;
    background: currentColor; opacity: 0.8;
}
.section-title {
    font-size: clamp(2rem, 4vw, 3.65rem);
    line-height: 0.98; letter-spacing: -0.05em;
}
.section-desc { max-width: 620px; color: var(--text-muted); font-size: 1rem; }

.projects-section, .experience-section, .strengths-section, .contact-section {
    margin-top: 28px;
}

/* ========== Project Filter ========== */
.project-filter { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }

.filter-chip {
    padding: 10px 16px; border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted); font-size: 0.92rem; font-weight: 600;
    cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), color var(--transition), background var(--transition);
}
.filter-chip:hover, .filter-chip:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(217, 255, 63, 0.28);
    color: var(--text);
}
.filter-chip.is-active {
    background: rgba(217, 255, 63, 0.1);
    border-color: rgba(217, 255, 63, 0.4);
    color: var(--accent);
}

.project-groups {
    position: relative; width: 100%; max-width: 100%;
    min-width: 0; overflow: hidden; box-sizing: border-box;
}
.project-group {
    display: none; padding: 24px; border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.07);
    background: rgba(255, 255, 255, 0.02);
    width: 100%; max-width: 100%; min-width: 0;
    overflow: hidden; box-sizing: border-box; flex: 0 0 auto;
    opacity: 0; transform: translateY(16px);
    transition: opacity 420ms cubic-bezier(0.22, 1, 0.36, 1), transform 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project-group.is-active { display: block; }
.project-group.is-entering { opacity: 1; transform: translateY(0); }

.project-group-header {
    display: flex; justify-content: space-between;
    gap: 18px; margin-bottom: 20px;
}
.project-group-title { font-size: 1.55rem; letter-spacing: -0.03em; }
.project-group-desc { max-width: 580px; margin-top: 8px; color: var(--text-muted); }
.project-group-index {
    color: var(--accent); font-size: 0.85rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; white-space: nowrap;
}

.project-grid {
    display: flex; flex-wrap: nowrap; gap: 18px;
    width: 100%; max-width: 100%; min-width: 0;
    overflow-x: auto; overflow-y: hidden;
    padding-bottom: 10px; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; box-sizing: border-box;
}
.project-grid::-webkit-scrollbar { width: 0; height: 0; }

.project-card {
    position: relative; overflow: hidden; border-radius: 24px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03); cursor: pointer;
    transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
    flex: 0 0 auto;
    width: min(var(--card-width, clamp(180px, 15vw, 260px)), 100%);
}
.project-card:hover, .project-card:focus-visible {
    transform: translateY(-6px) scale(1.015);
    border-color: rgba(217, 255, 63, 0.38);
    box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
}

.project-card-media {
    position: relative; width: 100%;
    aspect-ratio: var(--card-ratio, 16 / 9); overflow: hidden;
}
.project-card-media img {
    width: 100%; height: 100%; object-fit: cover; object-position: left top;
    position: absolute; inset: 0;
    transition: transform 420ms cubic-bezier(0.22, 1, 0.36, 1), filter 420ms cubic-bezier(0.22, 1, 0.36, 1);
}
.project-card:hover .project-card-media img, .project-card:focus-visible .project-card-media img {
    transform: scale(1.1); filter: saturate(1.12);
}

.project-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(6, 9, 15, 0) 0%, rgba(6, 9, 15, 0.14) 42%, rgba(6, 9, 15, 0.82) 100%);
    pointer-events: none;
}

.project-card-content {
    position: absolute; inset: auto 18px 18px; z-index: 1;
    display: grid; gap: 10px; max-width: calc(100% - 36px);
}
.project-card-meta {
    display: flex; flex-wrap: wrap; gap: 8px;
    transition: opacity var(--transition), transform var(--transition), max-height 320ms ease;
    max-height: 72px; overflow: hidden;
}
.project-tag {
    padding: 6px 10px; border-radius: 999px;
    background: rgba(7, 10, 16, 0.42);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.74rem; color: rgba(255, 255, 255, 0.95);
    font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.project-card-title {
    font-size: 1.38rem; letter-spacing: -0.03em; line-height: 1.1;
    color: rgba(255, 255, 255, 0.98); font-weight: 800;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.72);
}
.project-card-desc {
    max-width: 100%; color: rgba(255, 255, 255, 0.9);
    font-size: 0.94rem; line-height: 1.65;
    max-height: 0; opacity: 0; overflow: hidden;
    transform: translateY(12px);
    transition: max-height 380ms ease, opacity var(--transition), transform var(--transition);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.76);
}
.project-card:hover .project-card-meta, .project-card:focus-visible .project-card-meta {
    opacity: 0; transform: translateY(-8px); max-height: 0;
}
.project-card:hover .project-card-desc, .project-card:focus-visible .project-card-desc {
    max-height: 140px; opacity: 1; transform: translateY(0);
}
.project-card-action {
    display: none; align-items: center; gap: 8px;
    width: fit-content; padding: 10px 14px; border-radius: 999px;
    background: rgba(7, 10, 16, 0.36); color: #fff;
    font-size: 0.86rem; font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.project-card:hover .project-card-action, .project-card:focus-visible .project-card-action {
    display: inline-flex; background: rgba(217, 255, 63, 0.16);
}

/* ========== Experience ========== */
.experience-grid {
    display: grid; grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
    gap: 40px; align-items: start;
}
.experience-portrait {
    position: relative; min-height: 460px;
    border-radius: 24px; overflow: hidden;
    background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.02)),
        rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.08);
    margin-right: -20px;
}
.portrait-core {
    position: absolute; inset: 0; border-radius: 24px;
    background: url('../img/mine.jpg') calc(50% - 10%) center / cover no-repeat;
    background-color: #1a1e2a;
}

.experience-summary {
    display: flex; flex-direction: column; justify-content: center;
    padding: 0;
}
.summary-kicker {
    color: var(--accent); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.summary-title {
    margin-top: 10px; font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1; letter-spacing: -0.05em;
}
.summary-copy { margin-top: 16px; color: var(--text-muted); font-size: 0.96rem; line-height: 1.8; }

.summary-detail {
    display: flex; flex-direction: column;
    gap: 16px; margin-top: 28px; padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.detail-item.themed-card {
    padding: 20px 24px; border-radius: 16px;
    background: linear-gradient(135deg, rgba(217,255,63,0.08), rgba(217,255,63,0.02));
    border: 1px solid rgba(217,255,63,0.15);
    transition: border-color var(--transition), background var(--transition);
}
.detail-item.themed-card:hover {
    border-color: rgba(217,255,63,0.35);
    background: linear-gradient(135deg, rgba(217,255,63,0.12), rgba(217,255,63,0.04));
}
.detail-item.themed-card span {
    display: block; margin-bottom: 8px; color: var(--accent);
    font-size: 0.7rem; font-weight: 700;
    letter-spacing: 0.14em; text-transform: uppercase;
}
.detail-item.themed-card strong {
    font-size: 1.05rem; color: var(--text); line-height: 1.6;
    letter-spacing: 0.04em;
}
.stat-row {
    display: flex; gap: 20px; width: 100%;
}
.stat-item {
    flex: 1; text-align: center;
    padding: 16px 12px; border-radius: 14px;
    background: rgba(217,255,63,0.06);
    border: 1px solid rgba(217,255,63,0.12);
}
.stat-num {
    display: block; font-size: 1.4rem; font-weight: 800;
    color: var(--accent); letter-spacing: -0.03em; line-height: 1;
}
.stat-label {
    display: block; margin-top: 6px; font-size: 0.72rem;
    color: var(--text-faint); letter-spacing: 0.06em;
}

.metric-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px; margin-top: 20px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.metric-card { text-align: center; }
.metric-card strong { display: block; color: var(--accent); font-size: 2.2rem; line-height: 1; letter-spacing: -0.04em; }
.metric-card span { display: block; margin-top: 6px; color: var(--text-faint); font-size: 0.82rem; }

.building-section {
    margin-top: 20px; padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.08);
}
.building-kicker {
    color: var(--text-faint); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 10px;
}
.building-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.building-tags span {
    padding: 7px 14px; border-radius: 999px;
    background: rgba(217,255,63,0.08); color: var(--accent);
    font-size: 0.78rem; font-weight: 600;
    border: 1px solid rgba(217,255,63,0.15);
}

/* --- Timeline (horizontal) --- */
.timeline-section { margin-top: 32px; }
.timeline-section-header {
    display: flex; justify-content: flex-end; margin-bottom: 24px;
}
.timeline-section-title {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    letter-spacing: -0.04em; font-weight: 800;
}

.timeline-bar { position: relative; padding: 0 0 0 0; }
.timeline-line {
    position: absolute; top: 8px; left: 0; right: 0;
    height: 2px; background: rgba(217,255,63,0.25);
}
.timeline-line-fill {
    position: absolute; top: 0; left: 0; bottom: 0;
    width: 100%; height: 2px;
    background: var(--accent);
    transform-origin: left;
}
.timeline-entries {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
    position: relative;
}
.timeline-entry { padding-top: 32px; }
.timeline-dot {
    position: absolute; top: 3px; width: 12px; height: 12px;
    border-radius: 50%; background: var(--accent);
    box-shadow: 0 0 0 4px rgba(217,255,63,0.15), 0 0 12px rgba(217,255,63,0.3);
    transform: translateX(-5px);
}
.timeline-entry:nth-child(1) .timeline-dot { left: 0; }
.timeline-entry:nth-child(2) .timeline-dot { left: calc(33.333% - 4px); }
.timeline-entry:nth-child(3) .timeline-dot { left: calc(66.666% + 4px); }

.timeline-time {
    color: var(--accent); font-size: 0.78rem; font-weight: 700;
    letter-spacing: 0.06em; margin-bottom: 10px;
}
.timeline-company {
    font-size: 1.15rem; font-weight: 700; letter-spacing: -0.02em;
    line-height: 1.3;
}
.timeline-tags {
    display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px;
}
.timeline-tags span {
    padding: 5px 10px; border-radius: 999px;
    background: rgba(217,255,63,0.1); color: var(--accent);
    font-size: 0.7rem; font-weight: 600;
    border: 1px solid rgba(217,255,63,0.18);
}
.timeline-desc {
    margin-top: 10px; color: var(--text-muted);
    font-size: 0.88rem; line-height: 1.7;
}

/* ========== Strengths ========== */
.strength-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: auto auto;
    gap: 18px;
}
.strength-card {
    position: relative; min-height: 280px; padding: 24px;
    border-radius: 24px; border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.02); overflow: hidden;
    cursor: default; transition: border-color 420ms ease;
}
.strength-card.large { grid-column: span 3; }
.strength-card.small { grid-column: span 2; }

/* Green fill overlay — semi-circle slides up from bottom on hover */
.strength-card::before {
    content: ''; position: absolute;
    left: -20%; right: -20%; bottom: 0;
    height: 140%;
    background: linear-gradient(135deg, rgba(217,255,63,0.95), rgba(178,227,45,0.97));
    border-radius: 50% 50% 0 0;
    transform: translateY(100%);
    transition: transform 550ms cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 0;
}
.strength-card:hover::before { transform: translateY(0); }
.strength-card:hover { border-color: rgba(217,255,63,0.5); }

/* Top row: badge + note */
.strength-top {
    position: relative; z-index: 1;
    display: flex; justify-content: space-between; align-items: flex-start;
}
.strength-id {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 40px; height: 28px; padding: 0 12px;
    border-radius: 999px; background: rgba(217,255,63,0.12);
    border: 1px solid rgba(217,255,63,0.2);
    font-size: 0.74rem; color: var(--accent); font-weight: 700;
    transition: background 420ms ease, border-color 420ms ease, color 420ms ease;
}
.strength-card:hover .strength-id {
    background: rgba(17,17,17,0.1); border-color: rgba(17,17,17,0.15); color: #111;
}
.strength-note {
    color: var(--text-faint); font-size: 0.72rem; font-weight: 700;
    letter-spacing: 0.12em; text-transform: uppercase;
    transition: color 420ms ease;
}
.strength-card:hover .strength-note { color: rgba(17,17,17,0.6); }

/* Title */
.strength-title {
    position: relative; z-index: 1;
    margin-top: 28px; font-size: clamp(1.5rem, 2vw, 2rem);
    letter-spacing: -0.03em; line-height: 1.25;
    transition: color 420ms ease;
}
.strength-card:hover .strength-title { color: #111; }

.strength-title-dot {
    display: inline-block; width: 8px; height: 8px;
    border-radius: 50%; background: var(--accent);
    margin-left: 4px; vertical-align: middle;
    transition: background 420ms ease;
}
.strength-card:hover .strength-title-dot { background: #111; }

/* Tags — drop in from above on hover */
.strength-list {
    position: relative; z-index: 1;
    display: flex; flex-direction: column; gap: 10px;
    margin-top: 24px;
}
.strength-list span {
    display: inline-block; width: fit-content;
    padding: 12px 22px; border-radius: 999px;
    font-size: 0.9rem; font-weight: 700;
    opacity: 0; transform: translateY(-20px) rotate(var(--tag-rotate, 0deg));
    transition: opacity 400ms ease, transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1),
        background 420ms ease, color 420ms ease, border-color 420ms ease;
}
.strength-card:hover .strength-list span { opacity: 1; transform: translateY(0) rotate(var(--tag-rotate, 0deg)); }
.strength-card:hover .strength-list span:nth-child(1) { transition-delay: 120ms; }
.strength-card:hover .strength-list span:nth-child(2) { transition-delay: 200ms; }
.strength-card:hover .strength-list span:nth-child(3) { transition-delay: 280ms; }

/* Tag color variants (default: light on dark) */
.strength-list .tag-dark {
    background: rgba(17,17,17,0.85); color: #fff;
    border: 1px solid rgba(255,255,255,0.1);
}
.strength-list .tag-accent {
    background: rgba(217,255,63,0.15); color: var(--accent);
    border: 1px solid rgba(217,255,63,0.25);
}
.strength-list .tag-light {
    background: rgba(255,255,255,0.15); color: rgba(17,17,17,0.8);
    border: 1px solid rgba(255,255,255,0.2);
}
/* On hover (green bg): invert tag colors */
.strength-card:hover .tag-dark {
    background: #111; color: #fff; border-color: rgba(255,255,255,0.08);
}
.strength-card:hover .tag-accent {
    background: rgba(17,17,17,0.1); color: #111; border-color: rgba(17,17,17,0.15);
}
.strength-card:hover .tag-light {
    background: rgba(255,255,255,0.35); color: #111; border-color: rgba(255,255,255,0.4);
}

/* Decorative blob icon — bottom right */
.strength-icon {
    position: absolute; right: 12px; bottom: 10px;
    width: 130px; height: 130px; z-index: 1;
    pointer-events: none;
    transition: opacity 420ms ease, transform 420ms ease;
}
.strength-card:hover .strength-icon { opacity: 0.15; transform: scale(0.7); }

/* 01 — green blob + white sparkle star */
.icon-01::before {
    content: ''; position: absolute; inset: 0;
    border-radius: 42% 58% 55% 45% / 52% 44% 56% 48%;
    background: radial-gradient(circle at 40% 45%, rgba(200,230,60,0.85) 0%, rgba(180,220,40,0.6) 30%, rgba(120,180,30,0.3) 55%, transparent 75%);
}
.icon-01::after {
    content: '\2726'; position: absolute;
    right: 28px; bottom: 32px; font-size: 44px;
    color: rgba(255,255,255,0.9);
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.15));
}

/* 02 — 3D isometric block with sphere */
.icon-02::before {
    content: ''; position: absolute;
    right: 12px; bottom: 10px;
    width: 76px; height: 68px;
    background: linear-gradient(160deg, rgba(180,220,50,0.85) 0%, rgba(140,190,40,0.7) 100%);
    border-radius: 5px;
    transform: perspective(180px) rotateY(-20deg) rotateX(10deg);
    box-shadow: 5px 7px 0 rgba(110,70,190,0.55), 8px 12px 18px rgba(0,0,0,0.12);
}
.icon-02::after {
    content: ''; position: absolute;
    right: 32px; bottom: 72px;
    width: 22px; height: 22px; border-radius: 50%;
    background: radial-gradient(circle at 40% 38%, rgba(160,130,255,0.85), rgba(110,70,200,0.5) 70%, transparent 100%);
    box-shadow: 0 2px 6px rgba(0,0,0,0.12);
}

/* 03 — geometric triangles composition */
.icon-03::before {
    content: ''; position: absolute;
    right: 8px; bottom: 6px;
    width: 100px; height: 100px;
    background: linear-gradient(155deg, rgba(200,230,60,0.85) 0%, rgba(160,200,40,0.6) 100%);
    clip-path: polygon(50% 5%, 95% 90%, 5% 90%);
}
.icon-03::after {
    content: ''; position: absolute;
    right: 20px; bottom: 16px;
    width: 76px; height: 76px;
    background: linear-gradient(200deg, rgba(137,97,255,0.8) 0%, rgba(90,50,170,0.55) 100%);
    clip-path: polygon(50% 90%, 98% 20%, 2% 20%);
}

/* 04 — ring / donut */
.icon-04::before {
    content: ''; position: absolute;
    right: 16px; bottom: 14px;
    width: 90px; height: 90px;
    border-radius: 50%;
    background: conic-gradient(
        rgba(200,230,60,0.8) 0deg,
        rgba(160,200,50,0.6) 90deg,
        rgba(137,97,255,0.7) 180deg,
        rgba(100,60,180,0.5) 270deg,
        rgba(200,230,60,0.8) 360deg
    );
}
.icon-04::after {
    content: ''; position: absolute;
    right: 31px; bottom: 29px;
    width: 50px; height: 50px;
    border-radius: 50%;
    background: rgba(10,14,22,0.85);
}

/* 05 — two overlapping ellipses */
.icon-05::before {
    content: ''; position: absolute;
    right: 8px; bottom: 14px;
    width: 88px; height: 56px; border-radius: 50%;
    background: radial-gradient(circle at 45% 45%, rgba(200,230,60,0.75) 0%, rgba(160,200,40,0.4) 60%, transparent 85%);
}
.icon-05::after {
    content: ''; position: absolute;
    right: 28px; bottom: 6px;
    width: 88px; height: 56px; border-radius: 50%;
    background: radial-gradient(circle at 55% 55%, rgba(137,97,255,0.75) 0%, rgba(100,60,180,0.4) 60%, transparent 85%);
}

/* Bottom gradient line */
.strength-line {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 3px; z-index: 1;
    background: linear-gradient(90deg, var(--accent), rgba(91,51,255,0.6), rgba(118,226,255,0.4));
    opacity: 0.6;
    transition: opacity 420ms ease;
}
.strength-card:hover .strength-line { opacity: 0; }

/* Touch device: click toggle support */
.strength-card.is-touched::before { transform: translateY(0); }
.strength-card.is-touched { border-color: rgba(217,255,63,0.5); }
.strength-card.is-touched .strength-id { background: rgba(17,17,17,0.1); border-color: rgba(17,17,17,0.15); color: #111; }
.strength-card.is-touched .strength-note { color: rgba(17,17,17,0.6); }
.strength-card.is-touched .strength-title { color: #111; }
.strength-card.is-touched .strength-title-dot { background: #111; }
.strength-card.is-touched .strength-list span { opacity: 1; transform: translateY(0) rotate(var(--tag-rotate, 0deg)); }
.strength-card.is-touched .strength-list span:nth-child(1) { transition-delay: 120ms; }
.strength-card.is-touched .strength-list span:nth-child(2) { transition-delay: 200ms; }
.strength-card.is-touched .strength-list span:nth-child(3) { transition-delay: 280ms; }
.strength-card.is-touched .tag-dark { background: #111; color: #fff; border-color: rgba(255,255,255,0.08); }
.strength-card.is-touched .tag-accent { background: rgba(17,17,17,0.1); color: #111; border-color: rgba(17,17,17,0.15); }
.strength-card.is-touched .tag-light { background: rgba(255,255,255,0.35); color: #111; border-color: rgba(255,255,255,0.4); }
.strength-card.is-touched .strength-icon { opacity: 0.15; transform: scale(0.7); }
.strength-card.is-touched .strength-line { opacity: 0; }

/* ========== Contact ========== */
.contact-layout {
    display: grid; grid-template-columns: minmax(0, 1.2fr) 340px;
    gap: 28px; align-items: center; min-height: 420px;
}
.contact-copy small { display: inline-block; margin-bottom: 16px; color: var(--text-muted); font-size: 0.96rem; }
.contact-copy h2 {
    max-width: 720px; font-size: clamp(3rem, 6vw, 5.6rem);
    line-height: 0.95; letter-spacing: -0.07em; text-transform: uppercase;
}
.contact-copy h2 strong { color: var(--accent); }
.contact-copy p { max-width: 620px; margin-top: 18px; color: var(--text-muted); font-size: 1rem; line-height: 1.8; }
.contact-copy .primary-btn { margin-top: 24px; }

.contact-card {
    padding: 24px; border-radius: 28px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.04); box-shadow: var(--shadow);
}
.contact-card h3 {
    color: var(--accent); font-size: 0.84rem; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase;
}
.contact-list { margin-top: 16px; display: grid; gap: 14px; }
.contact-item { padding-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.contact-item span {
    display: block; margin-bottom: 4px; color: var(--text-faint);
    font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase;
}
.contact-item strong { display: block; color: var(--text); font-size: 0.96rem; line-height: 1.6; word-break: break-word; }

.qr-placeholder {
    display: grid; place-items: center; width: 122px; height: 122px;
    margin-top: 22px; border-radius: 24px;
    background: linear-gradient(135deg, rgba(217, 255, 63, 0.15), rgba(255, 255, 255, 0.04)),
        rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(217, 255, 63, 0.18);
    position: relative; overflow: hidden;
}
.qr-placeholder::before, .qr-placeholder::after {
    content: ''; position: absolute; inset: 16px;
    border: 2px solid rgba(217, 255, 63, 0.64); border-radius: 16px;
}
.qr-placeholder::after { inset: 36px; border-style: dashed; opacity: 0.8; }
.qr-placeholder span {
    position: relative; z-index: 1; color: var(--accent);
    font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}

/* ========== Toast / Modal ========== */
.toast {
    visibility: hidden; min-width: 240px; max-width: min(90vw, 420px);
    padding: 14px 20px; border-radius: 16px;
    background: rgba(4, 6, 10, 0.82);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.32);
    color: #fff; text-align: center;
    position: fixed; left: 50%; top: 48%;
    transform: translate(-50%, -50%); z-index: 60;
    opacity: 0; transition: opacity 220ms ease;
}
.toast.show { visibility: visible; opacity: 1; }

.modal {
    display: none; position: fixed; inset: 0; z-index: 70;
    align-items: center; justify-content: center; padding: 24px;
    background: rgba(2, 4, 8, 0.82); backdrop-filter: blur(12px);
    opacity: 0; transition: opacity 220ms ease;
}
.modal.show { display: flex; opacity: 1; }
.modal-content {
    position: relative; width: min(92vw, 560px); padding: 20px;
    border-radius: 24px; border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(9, 13, 21, 0.96);
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.42);
    transform: scale(0.94); transition: transform 220ms ease;
}
.modal.show .modal-content { transform: scale(1); }
.modal-content img {
    width: 100%; max-height: 72vh; object-fit: contain;
    border-radius: 18px; background: rgba(255, 255, 255, 0.02);
}
.modal-desc { margin-top: 14px; color: var(--text-muted); line-height: 1.7; }
.close-btn {
    position: absolute; top: 12px; right: 14px;
    width: 36px; height: 36px; display: grid; place-items: center;
    border-radius: 50%; background: rgba(255, 255, 255, 0.06);
    color: #fff; font-size: 1.6rem; cursor: pointer;
    transition: background var(--transition);
}
.close-btn:hover { background: rgba(255, 255, 255, 0.12); }

/* ========== Responsive ========== */
@media (max-width: 1100px) {
    .experience-grid { grid-template-columns: 1fr; }
    .experience-portrait { min-height: 340px; max-width: 400px; margin: 0 auto; }
    .timeline-entries { grid-template-columns: 1fr; gap: 28px; }
    .timeline-line { display: none; }
    .timeline-dot { display: none; }
    .contact-layout { grid-template-columns: 1fr; }
    .strength-card.large { grid-column: span 6; }
    .strength-card.small { grid-column: span 3; }
}

@media (max-width: 768px) {
    :root { --content-width: min(100vw - 24px, 100%); }
    .page-shell { padding: 16px 0 48px; }
    .site-header {
        top: 10px; flex-wrap: wrap;
        justify-content: center; border-radius: 28px;
        width: calc(100vw - 24px);
    }
    .site-nav { order: 3; width: 100%; justify-content: center; flex-wrap: wrap; gap: 14px; }
    .section-shell { padding: 22px; border-radius: 24px; }
    .section-header, .project-group-header { flex-direction: column; align-items: flex-start; }
    .hero-content { padding: 70px 24px 0; }
    .showcase-panel { padding: 0 16px 24px; }
    .showcase-item { width: 120px; }
    .experience-grid { grid-template-columns: 1fr; }
    .experience-portrait { width: 100%; max-width: 280px; margin: 0 auto 20px; min-height: 300px; }
    .project-grid { overflow-x: auto; }
    .stat-row { flex-wrap: wrap; }
    .stat-num { font-size: 1.1rem; white-space: nowrap; }
    .summary-detail { grid-template-columns: 1fr; }
    .strength-grid { grid-template-columns: 1fr; }
    .strength-card.large, .strength-card.small { grid-column: auto; }
    .contact-copy h2 { font-size: clamp(2.7rem, 14vw, 4.4rem); }
}