/* =====================================================
   RESET & BASE
===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* Flat editorial palette — no gradients */
    --ink: #0b0d10;
    --ink-soft: #15181d;
    --ink-line: rgba(255, 255, 255, 0.13);
    --ink-line-strong: rgba(255, 255, 255, 0.24);

    --paper: #f1eee4;
    --paper-dim: #e4e0d1;
    --paper-line: rgba(11, 13, 16, 0.14);

    --text: #f3f2ee;
    --text-dim: #9d9c95;
    --text-ink: #0b0d10;
    --text-ink-dim: #57564d;

    --accent: #c9ff4d;
    --accent-ink: #0b0d10;

    --font-display: 'Space Grotesk', 'Montserrat', sans-serif;
    --font-body: 'Montserrat', sans-serif;

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --container-width: 1240px;
}

html {
    scroll-behavior: smooth;
    background: var(--ink);
}

body {
    font-family: var(--font-body);
    background: var(--ink);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 32px;
}

section { position: relative; z-index: 1; }

::selection { background: var(--accent); color: var(--accent-ink); }

/* =====================================================
   SCROLL PROGRESS
===================================================== */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: var(--accent);
    z-index: 1000;
    transition: width 0.1s linear;
}

/* =====================================================
   NAVBAR
===================================================== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 22px 0;
    transition: background 0.4s var(--ease), padding 0.4s var(--ease), border-color 0.4s var(--ease);
    border-bottom: 1px solid transparent;
}

.navbar.scrolled {
    padding: 14px 0;
    background: var(--ink);
    border-bottom: 1px solid var(--ink-line);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.logo { flex: 0 0 auto; display: flex; align-items: center; }
.logo-img { height: 22px; width: auto; }

.nav-strap {
    flex: 1 1 auto;
    min-width: 0;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
    font-family: var(--font-display);
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--text-dim);
    white-space: nowrap;
    display: none;
}

@media (min-width: 1180px) {
    .nav-strap { display: block; }
}

.nav-right { flex: 0 0 auto; display: flex; align-items: center; gap: 24px; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 22px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.nav-link {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-dim);
    letter-spacing: 0.01em;
    position: relative;
    transition: color 0.3s var(--ease);
}

.nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 1px;
    background: var(--accent);
    transition: width 0.3s var(--ease);
}

.nav-link:hover { color: var(--text); }
.nav-link:hover::after { width: 100%; }

.nav-blog-btn {
    color: var(--accent);
    border: 1.5px solid rgba(201, 255, 77, 0.35);
    border-radius: 4px;
    padding: 5px 12px;
    margin: -5px 0;
}

.nav-blog-btn::after { display: none; }
.nav-blog-btn:hover, .nav-blog-btn.active {
    color: var(--accent-ink);
    background: var(--accent);
    border-color: var(--accent);
}

.lang-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-option { color: var(--text-dim); transition: color 0.3s var(--ease); }
.lang-option.active { color: var(--accent); }
.lang-divider { color: var(--text-dim); }

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    width: 24px;
    z-index: 101;
}

.mobile-menu-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--text);
    transition: all 0.3s var(--ease);
}

/* =====================================================
   BUTTONS
===================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 15px 26px;
    border-radius: 4px;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-transform: uppercase;
    transition: transform 0.3s var(--ease), background 0.3s var(--ease), color 0.3s var(--ease);
    white-space: nowrap;
    border: 1.5px solid transparent;
}

.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
}

.btn-primary:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--text); }

.btn-glass {
    background: transparent;
    border: 1.5px solid var(--ink-line-strong);
    color: var(--text);
}

.btn-glass:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--accent); border-color: var(--accent); }

.btn-ghost {
    color: var(--text-dim);
}

.btn-ghost:hover { color: var(--accent); }

/* =====================================================
   SCROLL-LINKED MOTION (continuous, driven by --p 0..1)
===================================================== */
[data-fx] { --p: 0; --pz: 0px; }

[data-fx="rise"] {
    opacity: var(--p);
    transform: translateY(calc((1 - var(--p)) * 34px + var(--pz))) scale(calc(0.96 + var(--p) * 0.04));
    filter: blur(calc((1 - var(--p)) * 5px));
}

[data-fx="rise-left"] {
    opacity: var(--p);
    transform: translateX(calc((1 - var(--p)) * -60px)) translateY(var(--pz));
    filter: blur(calc((1 - var(--p)) * 5px));
}

[data-fx="pop"] {
    opacity: var(--p);
    transform: scale(calc(0.88 + var(--p) * 0.12)) translateY(var(--pz));
    filter: blur(calc((1 - var(--p)) * 4px));
}

[data-fx="chapter-text"] {
    opacity: calc(0.45 + var(--p) * 0.55);
    transform: scale(calc(0.92 + var(--p) * 0.08));
    filter: blur(calc((1 - var(--p)) * 6px));
}

@media (prefers-reduced-motion: reduce) {
    [data-fx] { opacity: 1 !important; transform: none !important; filter: none !important; }
    [data-parallax] { --pz: 0px !important; }
}

/* =====================================================
   HERO
===================================================== */
.hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    padding: 140px 0 0;
    overflow: hidden;
    background: var(--ink);
}

.hero-portrait {
    position: absolute;
    top: 8%;
    right: -4%;
    width: min(46vw, 620px);
    opacity: 0.85;
    pointer-events: none;
    will-change: transform;
}

.hero-content {
    position: relative;
    max-width: 760px;
    padding: 0 32px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 14px;
    border: 1.5px solid var(--ink-line-strong);
    border-radius: 4px;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 32px;
}

.hero-badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    animation: pulseDot 2s ease-in-out infinite;
}

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

.hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.8rem, 7.6vw, 5.6rem);
    line-height: 0.98;
    letter-spacing: -0.03em;
    text-transform: uppercase;
}

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

.hero-role {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.2vw, 1.5rem);
    font-weight: 500;
    color: var(--text-dim);
    margin-top: 20px;
}

.hero-tagline {
    max-width: 560px;
    margin-top: 20px;
    font-size: 1.02rem;
    color: var(--text-dim);
    line-height: 1.75;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-top: 40px;
}

/* Marquee strip */
.marquee {
    position: relative;
    margin-top: 90px;
    border-top: 1.5px solid var(--ink-line);
    border-bottom: 1.5px solid var(--ink-line);
    padding: 18px 0;
    overflow: hidden;
    background: var(--ink);
}

.marquee-track {
    display: flex;
    width: max-content;
    animation: marqueeScroll 26s linear infinite;
}

.marquee-track span {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 2.6vw, 1.7rem);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    color: var(--text-dim);
    padding: 0 20px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 20px;
}

.marquee-track span::after {
    content: '\2726';
    color: var(--accent);
    font-size: 0.9rem;
}

@keyframes marqueeScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .marquee-track { animation: none; }
}

.scroll-down {
    display: none;
}

/* =====================================================
   CHAPTER DIVIDER (sticky reveal bands)
===================================================== */
.chapter {
    position: relative;
    height: 150vh;
}

.chapter-inner {
    position: sticky;
    top: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 32px;
    overflow: hidden;
}

.chapter-ink .chapter-inner { background: var(--ink); }
.chapter-accent .chapter-inner { background: var(--accent); }
.chapter-paper .chapter-inner { background: var(--paper); }

.chapter-index {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    margin-bottom: 24px;
}

.chapter-ink .chapter-index { color: var(--accent); }
.chapter-accent .chapter-index, .chapter-paper .chapter-index { color: var(--text-ink-dim); }

.chapter-title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.2rem, 7vw, 5.2rem);
    line-height: 1.04;
    letter-spacing: -0.03em;
    text-transform: uppercase;
    max-width: 1000px;
}

.chapter-ink .chapter-title { color: var(--text); }
.chapter-accent .chapter-title, .chapter-paper .chapter-title { color: var(--text-ink); }

.chapter-sub {
    margin-top: 22px;
    font-size: 1.05rem;
    max-width: 560px;
}

.chapter-ink .chapter-sub { color: var(--text-dim); }
.chapter-accent .chapter-sub, .chapter-paper .chapter-sub { color: var(--text-ink-dim); }

/* =====================================================
   SECTION HEADING
===================================================== */
.section-heading { margin-bottom: 52px; padding-top: 100px; }
.section-heading-center { text-align: center; }

.section-number {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.section-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.4vw, 3.1rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
}

.section-subtitle {
    margin-top: 16px;
    max-width: 560px;
    color: var(--text-dim);
    font-size: 1.02rem;
}

.section-heading-center .section-subtitle { margin-left: auto; margin-right: auto; }

/* =====================================================
   INDEX CARD — shared hard-edge card system
===================================================== */
.card {
    background: var(--paper);
    color: var(--text-ink);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--accent); }

.card-index {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: var(--font-display);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--text-ink-dim);
    text-transform: uppercase;
}

/* =====================================================
   STATS
===================================================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    max-width: 1000px;
    margin: 56px auto 0;
}

.stat-card {
    padding: 28px 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.stat-value {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3.2vw, 2.5rem);
    font-weight: 700;
    color: var(--text-ink);
}

.stat-value-text { font-size: 1.2rem; line-height: 1.3; }
.stat-label { color: var(--text-ink-dim); font-size: 0.88rem; }
.stat-card-text { justify-content: center; }

/* =====================================================
   PROJECTS
===================================================== */
.projects { padding: 0 0 60px; }

.projects-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.project-card {
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.project-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.project-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 700;
    text-transform: uppercase;
}

.project-links { display: flex; gap: 8px; }

.project-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 4px;
    border: 1.5px solid var(--ink);
    color: var(--text-ink);
    transition: all 0.3s var(--ease);
}

.project-link:hover { background: var(--ink); color: var(--paper); }

.project-desc { color: var(--text-ink-dim); font-size: 0.95rem; line-height: 1.7; }

.project-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.badge {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    padding: 6px 10px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
}

.badge-award { background: var(--accent); color: var(--accent-ink); }

.project-tags, .skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: auto;
}

.tag {
    font-size: 0.76rem;
    font-weight: 600;
    padding: 6px 10px;
    border-radius: 4px;
    border: 1.5px solid var(--ink);
    color: var(--text-ink);
    transition: all 0.3s var(--ease);
}

.tag:hover { background: var(--ink); color: var(--paper); }

/* =====================================================
   SKILLS
===================================================== */
.skills { padding: 0 0 60px; }

.skills-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
}

.skill-card { padding: 32px 28px; }

.skill-card-icon {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--ink);
    color: var(--accent);
    margin-bottom: 18px;
}

.skill-card-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 16px;
}

/* =====================================================
   ABOUT
===================================================== */
.about { padding: 0 0 60px; }

.about-wrapper {
    display: grid;
    grid-template-columns: 0.55fr 1fr;
    gap: 56px;
    align-items: center;
}

.about-visual {
    border: 1.5px solid var(--ink-line-strong);
    border-radius: 6px;
    overflow: hidden;
}

.about-visual img { width: 100%; display: block; }

.about-body {
    color: var(--text-dim);
    font-size: 1.08rem;
    line-height: 1.85;
    margin-bottom: 28px;
}

.about-identities {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.identity-chip {
    padding: 11px 18px;
    border-radius: 4px;
    border: 1.5px solid var(--ink-line-strong);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s var(--ease);
}

.identity-chip:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: var(--accent-ink);
}

/* =====================================================
   EXPERIENCE TIMELINE
===================================================== */
.experience { padding: 0 0 60px; }

.timeline {
    position: relative;
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 1.5px;
    background: var(--ink-line-strong);
}

.timeline-item { position: relative; }

.timeline-dot {
    position: absolute;
    left: -30px;
    top: 6px;
    width: 11px;
    height: 11px;
    border-radius: 2px;
    background: var(--accent);
}

.timeline-card { padding: 24px 26px; }

.timeline-date {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-ink-dim);
    margin-bottom: 10px;
}

.timeline-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 700;
    text-transform: uppercase;
}

.timeline-org {
    color: var(--text-ink-dim);
    font-size: 0.85rem;
    margin: 4px 0 12px;
}

.timeline-desc { color: var(--text-ink-dim); font-size: 0.92rem; line-height: 1.7; }

/* =====================================================
   AWARDS
===================================================== */
.awards { padding: 0 0 60px; }

.awards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.award-card { padding: 28px 22px; text-align: center; }

.award-amount {
    display: block;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-ink);
    margin-bottom: 12px;
}

.award-amount-badge {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 6px 12px;
    border-radius: 4px;
    background: var(--ink);
    color: var(--paper);
    display: inline-block;
    margin: 0 auto 16px;
}

.award-title { font-size: 0.96rem; font-weight: 700; margin-bottom: 6px; }
.award-project { color: var(--text-ink-dim); font-size: 0.8rem; }

/* =====================================================
   CONTACT
===================================================== */
.contact { padding: 0 0 60px; }

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

.contact-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    border: 1.5px solid var(--ink-line-strong);
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    transition: all 0.3s var(--ease);
}

.contact-link:hover { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }

/* =====================================================
   FOOTER
===================================================== */
.footer {
    position: relative;
    padding: 80px 0 32px;
    border-top: 1.5px solid var(--ink-line);
    overflow: hidden;
}

.footer-texture {
    position: absolute;
    right: -6%;
    bottom: -10%;
    width: 340px;
    opacity: 0.5;
    pointer-events: none;
    z-index: 0;
}

.footer .container { position: relative; z-index: 1; }

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}

.footer-title {
    font-family: var(--font-display);
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.footer-text { color: var(--text-dim); font-size: 0.9rem; margin-bottom: 6px; }

.footer-heading {
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
    color: var(--text-dim);
}

.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.3s var(--ease); }
.footer-links a:hover { color: var(--accent); }

.footer-bottom {
    padding-top: 28px;
    border-top: 1.5px solid var(--ink-line);
    text-align: center;
    color: var(--text-dim);
    font-size: 0.82rem;
}

/* =====================================================
   BLOG PAGE (shared)
===================================================== */
.blog-header { padding: 160px 0 60px; text-align: center; }
.blog-header-title { font-family: var(--font-display); font-size: clamp(2.4rem, 6vw, 3.6rem); font-weight: 700; text-transform: uppercase; }
.blog-header-subtitle { color: var(--text-dim); margin-top: 14px; }

.blog-list { padding-bottom: 120px; }

.blog-card {
    display: block;
    padding: 30px;
    background: var(--paper);
    color: var(--text-ink);
    border: 1.5px solid var(--ink);
    border-radius: 4px;
    transition: all 0.3s var(--ease);
}

.blog-card:hover { transform: translate(-4px, -4px); box-shadow: 6px 6px 0 var(--accent); }
.blog-card-date { color: var(--text-ink-dim); font-size: 0.82rem; }
.blog-card-title { font-family: var(--font-display); font-size: 1.4rem; margin: 10px 0; text-transform: uppercase; }
.blog-card-excerpt { color: var(--text-ink-dim); font-size: 0.95rem; line-height: 1.7; }
.blog-card-readmore { display: inline-block; margin-top: 16px; color: var(--text-ink); font-weight: 700; font-size: 0.88rem; }

.blog-post { padding: 160px 0 60px; max-width: 760px; margin: 0 auto; }
.other-posts { padding-bottom: 120px; }
.other-post-link { display: flex; justify-content: space-between; padding: 18px 0; border-bottom: 1px solid var(--ink-line); color: var(--text-dim); }
.other-post-link:hover { color: var(--accent); }
.other-posts-empty { color: var(--text-dim); }

/* Article page */
.article-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 160px 32px 60px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 60px;
    align-items: start;
}

.article-toc { position: sticky; top: 120px; }

.toc-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-dim);
    margin-bottom: 16px;
}

.article-toc ul { display: flex; flex-direction: column; gap: 12px; }
.article-toc a { color: var(--text-dim); font-size: 0.9rem; transition: color 0.3s var(--ease); }
.article-toc a:hover { color: var(--accent); }

.article-container { max-width: 680px; }
.article-date { color: var(--text-dim); font-size: 0.85rem; margin-bottom: 12px; }
.article-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4.5vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: uppercase;
    margin-bottom: 18px;
}
.article-lead { color: var(--text-dim); font-size: 1.1rem; line-height: 1.7; margin-bottom: 36px; }
.article h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    text-transform: uppercase;
    margin: 40px 0 16px;
}
.article p { color: var(--text-dim); font-size: 1rem; line-height: 1.85; margin-bottom: 18px; }
.article ul { list-style: disc; margin: 0 0 18px 22px; }
.article ul li { color: var(--text-dim); font-size: 1rem; line-height: 1.85; margin-bottom: 8px; }
.article ul li strong { color: var(--text); }

.article-bottom-nav { max-width: var(--container-width); margin: 0 auto; padding: 0 32px 100px; }

.btn-back {
    display: inline-block;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 40px;
}

.other-posts-title {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-dim);
    margin-bottom: 16px;
}

@media (max-width: 900px) {
    .article-layout { grid-template-columns: 1fr; }
    .article-toc { position: static; }
}

/* =====================================================
   RESPONSIVE
===================================================== */
@media (max-width: 1024px) {
    .about-wrapper { grid-template-columns: 1fr; gap: 36px; }
    .about-visual { max-width: 360px; }
    .projects-grid, .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .awards-grid { grid-template-columns: repeat(2, 1fr); }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-content { grid-template-columns: 1fr 1fr; }
    .hero-portrait { width: 56vw; opacity: 0.5; }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 0;
        right: -100%;
        width: 78%;
        max-width: 340px;
        height: 100vh;
        background: var(--ink);
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 26px;
        padding: 40px;
        transition: right 0.45s var(--ease);
        border-left: 1.5px solid var(--ink-line);
    }

    .nav-menu.active { right: 0; }
    .mobile-menu-toggle { display: flex; }
    .nav-right { gap: 14px; }

    .projects-grid, .skills-grid, .awards-grid { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .footer-content { grid-template-columns: 1fr; gap: 32px; }
    .hero-cta { flex-direction: column; align-items: stretch; width: 100%; }
    .hero-portrait { display: none; }
    .chapter-title { font-size: clamp(2rem, 10vw, 3rem); }
}

@media (max-width: 480px) {
    .container { padding: 0 20px; }
    .stats-grid { grid-template-columns: 1fr; }
}
