/* ===== Atelier Zero �� �༭ƴ���Ӿ����� ===== */
/* Monocle �� Apartamento �� ��tudes */

:root {
    --bg: #f5f1ec;
    --bg-alt: #ece6de;
    --text: #181613;
    --text-mid: #5c5750;
    --text-light: #8c8780;
    --accent: #b8503a;
    --accent-dim: #d4896f;
    --line: #d4cfc8;
    --line-light: #e4dfd8;
    --white: #faf7f3;
    --shadow: 2px 2px 0 rgba(0,0,0,.06);
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'Noto Sans SC', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.8;
    letter-spacing: 0.01em;
    -webkit-font-smoothing: antialiased;
}

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

.container { max-width: 1120px; margin: 0 auto; padding: 0 48px; }

/* ===== ������ �� �������� ===== */
.navbar {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    background: rgba(245,241,236,.95);
    border-bottom: 1px solid var(--line);
    font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase;
}

.nav-container {
    max-width: 1120px; margin: 0 auto; padding: 0 48px;
    display: flex; align-items: center; justify-content: space-between;
    height: 56px;
}

.nav-logo { font-family: Georgia, 'Times New Roman', serif; font-size: 1.1rem; font-weight: 400; font-style: italic; color: var(--accent); }

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

.nav-menu a { color: var(--text-mid); transition: color 0.2s; position: relative; }
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a::after {
    content: ''; position: absolute; bottom: -2px; left: 0;
    width: 100%; height: 1px; background: var(--accent);
    transform: scaleX(0); transform-origin: left;
    transition: transform 0.25s ease;
}
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }

.nav-toggle { display: none; flex-direction: column; gap: 4px; cursor: pointer; }
.nav-toggle span { width: 20px; height: 1px; background: var(--text); }

/* ===== ���� Tab �� ���������� ===== */
.person-tabs {
    display: flex; justify-content: center; gap: 0; flex-wrap: wrap;
    margin-bottom: 72px; position: relative;
}

.person-tabs::before {
    content: ''; position: absolute; top: 50%; left: 0; right: 0;
    height: 1px; background: var(--line); z-index: 0;
}

.person-tab {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 20px 28px 16px; background: var(--bg);
    border: none; cursor: pointer; position: relative; z-index: 1;
    font-family: inherit; transition: transform 0.3s ease;
}

.person-tab::after {
    content: ''; position: absolute; bottom: 0; left: 12px; right: 12px;
    height: 2px; background: transparent; transition: background 0.3s;
}

.person-tab.active::after { background: var(--accent); }
.person-tab:hover { transform: translateY(-4px); }

.tab-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    overflow: hidden; border: 2px solid var(--line);
    transition: border-color 0.3s;
}
.person-tab.active .tab-avatar { border-color: var(--accent); }
.tab-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

.tab-name { font-family: Georgia, 'Times New Roman', serif; font-size: 1.05rem; color: var(--text); font-weight: 400; }
.tab-role { font-size: 0.65rem; color: var(--text-light); letter-spacing: 0.05em; text-transform: uppercase; }
.person-tab.active .tab-name { color: var(--accent); }

/* ===== Hero �� ��ͼ + �ֳ��ߴ���� ===== */
.hero {
    min-height: 100vh; display: flex; align-items: center;
    padding: 120px 48px 80px; position: relative; overflow: hidden;
}

.hero::before {
    content: 'INTRO.'; position: absolute; top: 100px; right: 48px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.65rem; letter-spacing: 0.15em; color: var(--text-light);
}

.hero .container {
    display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

.hero-avatar {
    position: relative;
}

.avatar-placeholder {
    width: 100%; aspect-ratio: 4/5; overflow: hidden;
    filter: grayscale(20%) contrast(1.05);
    position: relative;
}

/* ����װ�� */
.avatar-placeholder::after {
    content: ''; position: absolute; inset: -12px; border: 1px solid var(--line);
    z-index: -1; pointer-events: none;
}

.avatar-placeholder::before {
    content: ''; position: absolute; top: -24px; right: -24px;
    width: 80px; height: 80px; border-top: 2px solid var(--accent);
    border-right: 2px solid var(--accent); z-index: 1;
}

.avatar-placeholder img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.hero-content {
    position: relative;
}

.hero-content::before {
    content: ''; position: absolute; top: -40px; left: -40px;
    width: 60px; height: 1px; background: var(--accent);
}

.hero .container .hero-name {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 400; line-height: 1.05; color: var(--text);
    margin-bottom: 16px; letter-spacing: -0.02em;
}

.hero .container .hero-title {
    font-size: 0.85rem; color: var(--accent);
    letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 12px;
}

.hero .container .hero-bio {
    font-size: 1.05rem; color: var(--text-mid);
    line-height: 1.7; margin-bottom: 36px; max-width: 360px;
}

.hero-actions { display: flex; gap: 24px; flex-wrap: wrap; }

/* ===== ��ť �� �߿�� ===== */
.btn {
    display: inline-block; padding: 14px 36px;
    font-size: 0.72rem; font-weight: 600; letter-spacing: 0.1em;
    text-transform: uppercase; cursor: pointer; transition: all 0.25s ease;
    position: relative;
}

.btn-primary {
    background: var(--accent); color: var(--white); border: none;
}
.btn-primary:hover { background: var(--text); transform: translateY(-1px); }

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

/* ===== ͨ�� Section �� �༭��� ===== */
section { padding: 120px 0; position: relative; overflow: hidden; }

.section-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 400; margin-bottom: 72px;
    color: var(--text); letter-spacing: -0.01em;
    position: relative;
}

.section-title::before {
    content: ''; display: block; width: 32px; height: 1px;
    background: var(--accent); margin-bottom: 20px;
}

/* ===== ���� �� ˫�����Ե� ===== */
.about { background: var(--bg-alt); }

.about-grid {
    display: grid; grid-template-columns: 3fr 2fr; gap: 80px; align-items: start;
}

.about-text p {
    color: var(--text-mid); margin-bottom: 20px;
    font-size: 0.95rem; line-height: 1.9;
}

.about-text p::first-letter {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 2.5rem; line-height: 1; float: left;
    padding-right: 8px; padding-top: 4px; color: var(--accent);
}

.about-info {
    border-top: 1px solid var(--line); padding-top: 24px;
}

.info-item {
    display: flex; padding: 12px 0; border-bottom: 1px solid var(--line-light);
}
.info-label { font-size: 0.7rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); min-width: 80px; }
.info-value { color: var(--text); font-size: 0.925rem; }

/* ===== ���� �� ���Գ����� ===== */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 2fr;
    gap: 2px; background: var(--line); border: 1px solid var(--line);
}

.skill-card {
    background: var(--bg); padding: 40px 28px;
    transition: background 0.3s; position: relative;
}

.skill-card:hover { background: var(--bg-alt); }

.skill-icon { font-size: 1.8rem; margin-bottom: 20px; display: block; }

.skill-card h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.2rem; font-weight: 400; margin-bottom: 8px;
    color: var(--text);
}

.skill-card p {
    font-size: 0.78rem; color: var(--text-light); line-height: 1.7;
}

/* ���ܿ�Ƭ��� */
.skill-card:nth-child(1)::after { content: '01'; }
.skill-card:nth-child(2)::after { content: '02'; }
.skill-card:nth-child(3)::after { content: '03'; }
.skill-card:nth-child(4)::after { content: '04'; }
.skill-card::after {
    position: absolute; top: 16px; right: 16px;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.65rem; color: var(--text-light);
    letter-spacing: 0.05em;
}

/* ===== ���� �� �༭ʱ���� ===== */
.experience { background: var(--bg-alt); }

.timeline {
    position: relative; max-width: 760px; margin: 0 0 0 120px;
    border-left: 1px solid var(--line); padding-left: 48px;
}

.timeline-item {
    position: relative; margin-bottom: 64px; padding-bottom: 8px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute; left: -53px; top: 4px;
    width: 9px; height: 9px; background: var(--accent); border-radius: 50%;
}

.timeline-date {
    display: block; font-size: 0.68rem; letter-spacing: 0.1em;
    text-transform: uppercase; color: var(--accent); margin-bottom: 12px;
}

.timeline-content h3 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.4rem; font-weight: 400; color: var(--text); margin-bottom: 2px;
}

.timeline-org {
    display: block; font-size: 0.8rem; color: var(--text-light); margin-bottom: 10px;
}

.timeline-content p { color: var(--text-mid); font-size: 0.9rem; }

/* ===== ��ϵ �� �߿��Ű� ===== */
.contact { text-align: center; }

.contact-subtitle { color: var(--text-mid); margin-bottom: 56px; font-size: 0.95rem; }

.contact-links {
    display: flex; justify-content: center; gap: 1px; flex-wrap: wrap;
}

.contact-item {
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    padding: 36px 40px; min-width: 160px;
    background: var(--bg); border: 1px solid var(--line);
    transition: background 0.25s, border-color 0.25s;
}

.contact-item:hover { background: var(--bg-alt); border-color: var(--accent); color: var(--accent); }

.contact-icon { font-size: 1.4rem; }

/* ===== ҳ�� ===== */
.footer {
    text-align: center; padding: 32px;
    border-top: 1px solid var(--line); color: var(--text-light);
    font-size: 0.72rem; letter-spacing: 0.05em; text-transform: uppercase;
}

/* ===== ����װ��Ԫ�� ===== */
.geo-line-h { height: 1px; background: var(--line); margin: 0 48px; }

/* ===== ���� ===== */
.reveal {
    opacity: 0; transform: translateY(16px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

.hero-content { animation: fadeUp 0.8s ease; }
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== ��Ӧʽ ===== */
@media (max-width: 900px) {
    .container, .nav-container { padding: 0 24px; }

    .hero .container { grid-template-columns: 1fr; gap: 48px; }
    .hero { padding: 100px 24px 60px; text-align: left; }
    .hero::before { right: 24px; top: 80px; }
    .hero .container .hero-bio { max-width: 100%; }

    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .skills-grid { grid-template-columns: 1fr 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .quotes { padding: 100px 0; }

    .timeline { margin-left: 0; padding-left: 32px; }
    .timeline-dot { left: -37px; }


    .nav-menu {
        position: fixed; top: 56px; left: 0; right: 0;
        flex-direction: column; background: var(--bg);
        padding: 24px; gap: 20px;
        transform: translateY(-120%); transition: transform 0.3s;
        border-bottom: 1px solid var(--line);
    }
    .nav-menu.open { transform: translateY(0); }
    .nav-toggle { display: flex; }

    section { padding: 80px 0; }
    .section-title { font-size: 2rem; }
}

@media (max-width: 500px) {
    .skills-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: flex-start; }
    .contact-links { border: none; }
    .contact-item { min-width: 120px; padding: 24px; }
    .stats-grid { grid-template-columns: 1fr; }
    .quotes-text { font-size: 1.2rem; }
    .avatar-placeholder::before { top: -16px; right: -16px; width: 48px; height: 48px; }
}

/* ===== ����ͳ�� �� �༭������ ===== */
.stats {
    background: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--line);
    border: 1px solid var(--line);
}

.stat-card {
    background: var(--bg);
    padding: 56px 32px;
    text-align: center;
    transition: background 0.3s;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    background: var(--bg-alt);
}

.stat-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 20%;
    right: 20%;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.3s ease;
}

.stat-card:hover::after {
    transform: scaleX(1);
}

.stat-number {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 4vw, 3.5rem);
    font-weight: 400;
    color: var(--text);
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.stat-label {
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-light);
}

/* ===== ��¼ �� �༭���ÿ� ===== */
.quotes {
    background: var(--accent);
    padding: 140px 0;
    position: relative;
}

.quotes::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100%;
    background:
        linear-gradient(135deg, transparent 49.5%, rgba(255,255,255,0.03) 50%) 0 0 / 60px 60px;
    pointer-events: none;
}

.quotes-block {
    max-width: 720px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.quotes-mark {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 7rem;
    color: rgba(255,255,255,0.2);
    line-height: 0.6;
    margin-bottom: -20px;
    pointer-events: none;
}

.quotes-text {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-style: italic;
    font-weight: 400;
    color: var(--white);
    line-height: 1.6;
    letter-spacing: 0.01em;
}

.quotes-divider {
    width: 48px;
    height: 2px;
    background: rgba(255,255,255,0.4);
    margin: 32px 0;
}

.quotes-attribution {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.7);
}

.quotes-context {
    font-size: 0.72rem;
    color: rgba(255,255,255,0.5);
    margin-top: 4px;
}


/* ===== iPhone 15 Pro 像素级适配 (393×852) ===== */
@media (max-width: 420px) {
    .hero {
        min-height: auto;
        padding: 90px 14px 50px;
    }

    .hero::before {
        right: 16px;
        top: 70px;
        font-size: 0.6rem;
    }

    .hero .container {
        gap: 28px;
    }

    .hero .container .hero-name {
        font-size: 2.2rem;
        line-height: 1.1;
        margin-bottom: 10px;
    }

    .hero .container .hero-title {
        font-size: 0.72rem;
        margin-bottom: 8px;
    }

    .hero .container .hero-bio {
        font-size: 0.9rem;
        margin-bottom: 24px;
        max-width: 100%;
    }

    .hero-actions {
        gap: 12px;
    }

    .hero-actions .btn {
        padding: 12px 28px;
        font-size: 0.78rem;
    }

    .hero-content::before {
        top: -24px;
        left: -24px;
        width: 40px;
    }

    .avatar-placeholder::before {
        top: -14px;
        right: -14px;
        width: 50px;
        height: 50px;
    }

    .avatar-placeholder::after {
        inset: -8px;
    }

    /* Person Tabs */
    .person-tabs {
        margin-bottom: 36px;
        gap: 0;
    }
    .person-tab { padding: 6px 10px; }
    .tab-name { font-size: 0.78rem; }
    .tab-num { font-size: 0.55rem; }

    .person-tab {
        padding: 10px 10px 8px;
    }




    /* Navigation */
    .nav-container {
        padding: 0 16px;
    }

    .nav-logo {
        font-size: 0.95rem;
    }

    /* Sections */
    section {
        padding: 64px 0;
    }

    .container {
        padding: 0 16px;
    }

    .section-title {
        font-size: 1.7rem;
        margin-bottom: 36px;
    }

    .section-title::before {
        width: 20px;
        height: 2px;
        margin-right: 10px;
    }

    /* About */
    .about-text p {
        font-size: 0.85rem;
    }

    .about-info {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .info-item {
        padding: 12px;
    }

    .info-label {
        font-size: 0.62rem;
    }

    .info-value {
        font-size: 0.82rem;
    }

    /* Skills */
    .skills-grid {
        grid-template-columns: 1fr 1fr;
    }

    .skill-card {
        padding: 24px 16px;
    }

    .skill-card h3 {
        font-size: 1rem;
    }

    .skill-card p {
        font-size: 0.7rem;
    }

    .skill-card::after {
        top: 10px;
        right: 10px;
        font-size: 0.58rem;
    }

    /* Stats */
    .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .stat-card {
        padding: 28px 16px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .stat-label {
        font-size: 0.6rem;
    }

    /* Timeline */
    .timeline {
        margin-left: 0;
        padding-left: 24px;
    }

    .timeline-dot {
        left: -29px;
        width: 7px;
        height: 7px;
    }

    .timeline-date {
        font-size: 0.62rem;
    }

    .timeline-content h3 {
        font-size: 1.1rem;
    }

    .timeline-org {
        font-size: 0.72rem;
    }

    .timeline-content p {
        font-size: 0.8rem;
    }

    .timeline-item {
        margin-bottom: 40px;
    }

    /* Quotes */
    .quotes {
        padding: 80px 0;
    }

    .quotes-text {
        font-size: 1.15rem;
    }

    /* Contact */
    .contact-subtitle {
        font-size: 0.82rem;
        margin-bottom: 32px;
    }

    .contact-item {
        min-width: 100px;
        padding: 20px 16px;
    }

    /* Footer */
    .footer {
        font-size: 0.65rem;
        padding: 20px;
    }
}