/* ══════════════════════════════════════════
   DESIGN SYSTEM — Cinematic Data Editorial
   ══════════════════════════════════════════ */
:root {
    --bg-void: #06060B;
    --bg-deep: #0C0C14;
    --bg-surface: #12121C;
    --bg-elevated: #1A1A28;
    --bg-glass: rgba(18, 18, 28, 0.7);

    --accent: #00D4AA;
    --accent-dim: rgba(0, 212, 170, 0.1);
    --accent-mid: rgba(0, 212, 170, 0.25);
    --accent-glow: rgba(0, 212, 170, 0.5);
    --accent-2: #7B61FF;
    --accent-2-dim: rgba(123, 97, 255, 0.12);
    --accent-warm: #FF6B6B;
    --accent-warm-dim: rgba(255, 107, 107, 0.12);
    --accent-amber: #FFB547;
    --accent-amber-dim: rgba(255, 181, 71, 0.12);

    --text-1: #EEEEF4;
    --text-2: #A0A0B8;
    --text-3: #636380;
    --text-4: #3E3E52;

    --line: rgba(255, 255, 255, 0.05);
    --line-2: rgba(255, 255, 255, 0.1);

    --font-heading: 'Sora', 'Noto Sans KR', sans-serif;
    --font-body: 'Noto Sans KR', 'Sora', sans-serif;
    --font-mono: 'IBM Plex Mono', monospace;

    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: var(--font-body);
    background: var(--bg-void);
    color: var(--text-1);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    line-height: 1.6;
}

::selection {
    background: var(--accent-mid);
    color: var(--text-1);
}

::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 10px; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ═══════ GLOBAL GRAIN TEXTURE ═══════ */
body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)' opacity='0.025'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 10000;
}

/* ═══════ NAVIGATION ═══════ */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 9000;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 clamp(24px, 4vw, 64px);
    background: rgba(6, 6, 11, 0.6);
    backdrop-filter: blur(24px) saturate(160%);
    border-bottom: 1px solid var(--line);
    transition: all 0.5s var(--ease-out);
}

.nav.scrolled {
    background: rgba(6, 6, 11, 0.92);
    box-shadow: 0 1px 40px rgba(0, 0, 0, 0.4);
}

.nav-brand {
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -0.3px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand::before {
    content: '';
    width: 7px;
    height: 7px;
    background: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 12px var(--accent-glow);
    animation: breathe 3s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 1; box-shadow: 0 0 12px var(--accent-glow); }
    50% { opacity: 0.6; box-shadow: 0 0 6px var(--accent-dim); }
}

.nav-menu {
    display: flex;
    gap: 8px;
    list-style: none;
}

.nav-menu a {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    padding: 6px 14px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out);
}

.nav-menu a:hover {
    color: var(--accent);
    background: var(--accent-dim);
}

.nav-cta {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--bg-void);
    background: var(--accent);
    padding: 7px 18px;
    border-radius: 6px;
    letter-spacing: 0.5px;
    transition: all 0.3s var(--ease-out);
}

.nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 20px var(--accent-glow);
}

/* ═══════ HERO ═══════ */
.hero {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    padding: 100px clamp(24px, 4vw, 80px) 60px;
    position: relative;
    overflow: hidden;
}

.hero-ambient {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
}

.hero-ambient .orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbit 20s linear infinite;
}

.hero-ambient .orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, rgba(0, 212, 170, 0.08), transparent 70%);
    top: -10%; right: -5%;
}

.hero-ambient .orb-2 {
    width: 400px; height: 400px;
    background: radial-gradient(circle, rgba(123, 97, 255, 0.06), transparent 70%);
    bottom: -10%; left: 10%;
    animation-delay: -7s;
    animation-duration: 25s;
}

.hero-ambient .orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, rgba(255, 181, 71, 0.04), transparent 70%);
    top: 40%; left: 40%;
    animation-delay: -14s;
    animation-duration: 30s;
}

@keyframes orbit {
    0% { transform: translate(0, 0) rotate(0deg); }
    25% { transform: translate(30px, -20px) rotate(90deg); }
    50% { transform: translate(-20px, 30px) rotate(180deg); }
    75% { transform: translate(20px, 20px) rotate(270deg); }
    100% { transform: translate(0, 0) rotate(360deg); }
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 70% 50% at 60% 45%, rgba(0,0,0,0.5) 0%, transparent 80%);
    z-index: 0;
}

.hero-left {
    position: relative;
    z-index: 1;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 500;
    color: var(--accent);
    background: var(--accent-dim);
    padding: 6px 16px;
    border-radius: 20px;
    border: 1px solid rgba(0, 212, 170, 0.15);
    margin-bottom: 32px;
    opacity: 0;
    animation: fadeSlide 0.7s var(--ease-out) 0.3s forwards;
}

.hero-tag::before {
    content: '';
    width: 6px; height: 6px;
    background: var(--accent);
    border-radius: 50%;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(44px, 6vw, 80px);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -2.5px;
    margin-bottom: 28px;
    opacity: 0;
    animation: fadeSlide 0.8s var(--ease-out) 0.5s forwards;
}

.hero-title .line-2 { color: var(--text-3); }
.hero-title .em { position: relative; color: var(--accent); }

.hero-desc {
    font-size: 16px;
    line-height: 1.9;
    color: var(--text-2);
    max-width: 480px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeSlide 0.8s var(--ease-out) 0.7s forwards;
}

.hero-actions {
    display: flex;
    gap: 12px;
    opacity: 0;
    animation: fadeSlide 0.8s var(--ease-out) 0.9s forwards;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 12px;
    transition: all 0.35s var(--ease-out);
    cursor: pointer;
    border: none;
}

.btn-fill {
    background: var(--accent);
    color: var(--bg-void);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-outline {
    background: transparent;
    color: var(--text-2);
    border: 1px solid var(--line-2);
}

.btn-outline:hover {
    color: var(--text-1);
    border-color: var(--text-3);
    transform: translateY(-2px);
}

/* Hero Right — Terminal Card */
.hero-right {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    animation: fadeSlide 1s var(--ease-out) 1.1s forwards;
}

.terminal {
    width: 100%;
    max-width: 460px;
    background: var(--bg-surface);
    border: 1px solid var(--line-2);
    border-radius: 16px;
    overflow: hidden;
    box-shadow:
        0 40px 80px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.terminal-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--line);
}

.terminal-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
}

.terminal-dot:nth-child(1) { background: #FF5F56; }
.terminal-dot:nth-child(2) { background: #FFBD2E; }
.terminal-dot:nth-child(3) { background: #27C93F; }

.terminal-title {
    margin-left: auto;
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--text-4);
}

.terminal-body {
    padding: 24px;
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 2;
}

.t-comment { color: var(--text-4); }
.t-key { color: var(--accent-2); }
.t-str { color: var(--accent); }
.t-num { color: var(--accent-amber); }
.t-bracket { color: var(--text-3); }
.t-bool { color: var(--accent-warm); }
.t-cursor {
    display: inline-block;
    width: 8px;
    height: 16px;
    background: var(--accent);
    vertical-align: text-bottom;
    animation: blink 1s steps(1) infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

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

/* ═══════ STATS BAR ═══════ */
.stats-bar {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-deep);
}

.stat-item {
    padding: 40px clamp(20px, 3vw, 48px);
    text-align: center;
    border-right: 1px solid var(--line);
    transition: background 0.4s;
}

.stat-item:last-child { border-right: none; }
.stat-item:hover { background: var(--bg-surface); }

.stat-value {
    font-family: var(--font-heading);
    font-size: clamp(28px, 3.5vw, 44px);
    font-weight: 800;
    letter-spacing: -1.5px;
    color: var(--text-1);
    margin-bottom: 6px;
}

.stat-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
}

/* ═══════ SECTION COMMONS ═══════ */
.section {
    padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 80px);
    position: relative;
}

.section-label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.section-heading {
    font-family: var(--font-heading);
    font-size: clamp(32px, 4.5vw, 56px);
    font-weight: 800;
    letter-spacing: -2px;
    line-height: 1.12;
    margin-bottom: 20px;
}

.section-desc {
    font-size: 16px;
    color: var(--text-2);
    max-width: 520px;
    line-height: 1.8;
}

/* ═══════ PROJECT INDEX CARDS ═══════ */
#projects { background: var(--bg-deep); }

.projects-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 64px;
    flex-wrap: wrap;
    gap: 24px;
}

.project-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
    gap: 16px;
}

.pcard {
    display: block;
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 36px 32px 32px;
    position: relative;
    overflow: hidden;
    transition: all 0.45s var(--ease-out);
    cursor: pointer;
}

.pcard::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 20px;
    opacity: 0;
    transition: opacity 0.45s;
    background: linear-gradient(135deg, var(--_glow, var(--accent-dim)), transparent 60%);
    pointer-events: none;
}

.pcard:hover {
    transform: translateY(-6px);
    border-color: var(--line-2);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35);
}

.pcard:hover::after { opacity: 1; }

.pcard-idx {
    font-family: var(--font-heading);
    font-size: 64px;
    font-weight: 800;
    line-height: 1;
    position: absolute;
    top: 20px;
    right: 24px;
    color: var(--bg-elevated);
    transition: color 0.4s;
}

.pcard:hover .pcard-idx { color: var(--_glow, var(--accent-dim)); }

.pcard-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}

.pcard-tag {
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 5px;
    background: var(--accent-dim);
    color: var(--accent);
    letter-spacing: 0.3px;
}

.pcard-title {
    font-family: var(--font-heading);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 10px;
    line-height: 1.35;
    position: relative;
    z-index: 1;
}

.pcard-desc {
    font-size: 13.5px;
    color: var(--text-2);
    line-height: 1.7;
    position: relative;
    z-index: 1;
}

.pcard-arrow {
    position: absolute;
    bottom: 28px;
    right: 28px;
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--accent-dim);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: translate(-8px, 8px);
    transition: all 0.4s var(--ease-out);
    z-index: 1;
}

.pcard:hover .pcard-arrow {
    opacity: 1;
    transform: translate(0, 0);
}

.pcard-arrow svg { width: 14px; height: 14px; stroke: var(--accent); fill: none; stroke-width: 2; }

/* ═══════ PROJECT DETAIL SECTIONS ═══════ */
.proj-section {
    padding: clamp(80px, 10vw, 140px) clamp(24px, 4vw, 80px);
    border-bottom: 1px solid var(--line);
    position: relative;
}

.proj-section:nth-child(odd) { background: var(--bg-void); }
.proj-section:nth-child(even) { background: var(--bg-deep); }

.proj-wrap {
    max-width: 1200px;
    margin: 0 auto;
}

.proj-head {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 40px;
    align-items: start;
    margin-bottom: 56px;
}

.proj-num {
    font-family: var(--font-heading);
    font-size: clamp(80px, 10vw, 130px);
    font-weight: 800;
    line-height: 0.85;
    letter-spacing: -5px;
    background: linear-gradient(180deg, var(--text-4) 0%, transparent 90%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.proj-cat {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.proj-title {
    font-family: var(--font-heading);
    font-size: clamp(26px, 3.5vw, 42px);
    font-weight: 800;
    letter-spacing: -1.5px;
    line-height: 1.2;
    margin-bottom: 20px;
}

.proj-techs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.tech-pill {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 500;
    padding: 5px 14px;
    border-radius: 8px;
    border: 1px solid var(--line-2);
    color: var(--text-2);
    background: rgba(255,255,255,0.015);
}

/* PSIL Grid (Problem/Solution/Impact/Learning) */
.psil {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.psil-block {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 32px;
    position: relative;
    overflow: hidden;
    transition: border-color 0.4s;
}

.psil-block:hover { border-color: var(--line-2); }

.psil-block::before {
    content: '';
    position: absolute;
    top: 16px;
    left: 0;
    bottom: 16px;
    width: 3px;
    border-radius: 0 3px 3px 0;
}

.psil-problem::before { background: var(--accent-warm); }
.psil-solution::before { background: var(--accent); }
.psil-impact::before { background: var(--accent-amber); }
.psil-learning::before { background: var(--accent-2); }

.psil-label {
    font-family: var(--font-heading);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.psil-problem .psil-label { color: var(--accent-warm); }
.psil-solution .psil-label { color: var(--accent); }
.psil-impact .psil-label { color: var(--accent-amber); }
.psil-learning .psil-label { color: var(--accent-2); }

.psil-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    flex-shrink: 0;
}

.psil-problem .psil-icon { background: var(--accent-warm-dim); color: var(--accent-warm); }
.psil-solution .psil-icon { background: var(--accent-dim); color: var(--accent); }
.psil-impact .psil-icon { background: var(--accent-amber-dim); color: var(--accent-amber); }
.psil-learning .psil-icon { background: var(--accent-2-dim); color: var(--accent-2); }

.psil-text {
    font-size: 14px;
    line-height: 1.85;
    color: var(--text-2);
}

.psil-text strong {
    color: var(--text-1);
    font-weight: 600;
}

.psil-text p + p { margin-top: 14px; }

/* Solution steps */
.steps { display: flex; flex-direction: column; gap: 14px; }

.step {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.step-n {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--accent-dim);
    color: var(--accent);
    font-family: var(--font-heading);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 1px;
}

.step-t {
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-2);
}

.step-t strong { color: var(--text-1); font-weight: 600; }

/* Impact Metrics */
.metrics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 20px;
}

.metric {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 20px 16px;
    text-align: center;
    transition: border-color 0.3s;
}

.metric:hover { border-color: var(--accent-amber-dim); }

.metric-val {
    font-family: var(--font-heading);
    font-size: 26px;
    font-weight: 800;
    letter-spacing: -1px;
    color: var(--accent-amber);
    margin-bottom: 6px;
}

.metric-lbl {
    font-size: 11px;
    color: var(--text-3);
    font-weight: 500;
    line-height: 1.4;
}

.psil-full { grid-column: 1 / -1; }

/* ═══════ SKILLS SECTION ═══════ */
#skills { background: var(--bg-deep); }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 48px;
}

.skill-card {
    background: var(--bg-surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.35s var(--ease-out);
}

.skill-card:hover {
    border-color: var(--line-2);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
}

.skill-icon {
    font-size: 28px;
    margin-bottom: 12px;
}

.skill-name {
    font-family: var(--font-heading);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 4px;
}

.skill-sub {
    font-size: 12px;
    color: var(--text-3);
}

/* ═══════ FOOTER ═══════ */
.footer {
    padding: 80px clamp(24px, 4vw, 80px);
    background: var(--bg-void);
    border-top: 1px solid var(--line);
    text-align: center;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
}

.footer-role {
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--text-3);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 32px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.footer-link {
    font-size: 14px;
    color: var(--text-2);
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
}

.footer-link:hover { color: var(--accent); }

.footer-copy {
    font-size: 12px;
    color: var(--text-4);
}

/* ═══════ ABOUT PAGE ═══════ */
.about-hero {
    padding: 140px clamp(24px, 4vw, 80px) 60px;
    position: relative;
}

.about-hero .section-label {
    margin-bottom: 16px;
}

.about-hero .section-heading {
    margin-bottom: 20px;
}

.about-content {
    max-width: 800px;
}

.about-content h2 {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 20px;
    margin-top: 48px;
    color: var(--text-1);
}

.about-content h2:first-child {
    margin-top: 0;
}

.about-content p {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text-2);
    margin-bottom: 16px;
}

.about-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.about-list li {
    font-size: 14px;
    color: var(--text-2);
    padding-left: 20px;
    position: relative;
    line-height: 1.7;
}

.about-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 10px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

/* ═══════ SCROLL REVEAL ═══════ */
.rv {
    opacity: 0;
    transform: translateY(36px);
    transition: opacity 0.9s var(--ease-out), transform 0.9s var(--ease-out);
}

.rv.vis {
    opacity: 1;
    transform: translateY(0);
}

.rv-d1 { transition-delay: 0.08s; }
.rv-d2 { transition-delay: 0.16s; }
.rv-d3 { transition-delay: 0.24s; }
.rv-d4 { transition-delay: 0.32s; }
.rv-d5 { transition-delay: 0.40s; }
.rv-d6 { transition-delay: 0.48s; }
.rv-d7 { transition-delay: 0.56s; }

/* ═══════ SKELETON LOADING ═══════ */
.pcard-skeleton {
    pointer-events: none;
    min-height: 200px;
}

.skel {
    background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-surface) 50%, var(--bg-elevated) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s ease-in-out infinite;
    border-radius: 8px;
}

.skel-idx {
    width: 48px;
    height: 48px;
    margin-bottom: 16px;
}

.skel-tags {
    width: 60%;
    height: 20px;
    margin-bottom: 16px;
}

.skel-title {
    width: 80%;
    height: 24px;
    margin-bottom: 10px;
}

.skel-desc {
    width: 100%;
    height: 40px;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 1024px) {
    .hero { grid-template-columns: 1fr; gap: 48px; }
    .hero-right { justify-content: flex-start; }
    .terminal { max-width: 100%; }
    .psil { grid-template-columns: 1fr; }
    .proj-head { grid-template-columns: 1fr; gap: 16px; }
    .proj-num { font-size: 72px; }
    .stats-bar { grid-template-columns: repeat(2, 1fr); }
    .stat-item:nth-child(2) { border-right: none; }
}

@media (max-width: 768px) {
    .nav-menu { display: none; }
    .nav-cta { display: none; }
    .project-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; }
    .stats-bar { grid-template-columns: 1fr; }
    .stat-item { border-right: none; border-bottom: 1px solid var(--line); }
    .stat-item:last-child { border-bottom: none; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-links { flex-direction: column; align-items: center; }
}
