:root {
    --bg: #fbfbfd;
    --surface: #ffffff;
    --text: #1d1d1f;
    --text-2: #424245;
    --text-3: #6e6e73;
    --text-4: #86868b;
    --line: #d2d2d7;
    --line-soft: #e8e8ed;
    --accent: #0071e3;
    --accent-hover: #0077ed;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.47059;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.wrap {
    max-width: 1040px;
    margin: 0 auto;
    padding: 0 32px;
}

/* ---------- HERO ---------- */
.hero {
    padding: 90px 0 110px;
    border-bottom: 1px solid var(--line);
}

/* Horizontal glance bar at top of hero */
.glance-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 100px;
    padding: 12px 28px;
    gap: 36px;
    margin-bottom: 72px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.glance-item {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    white-space: nowrap;
}

.glance-item:not(:last-child)::after {
    content: "";
    position: absolute;
    right: -18px;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 16px;
    background: var(--line);
}

.glance-label {
    font-size: 11px;
    color: var(--text-3);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 500;
}

.glance-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    letter-spacing: -0.005em;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
}

.hero-intro {
    text-align: left;
}

.hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 24px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
}

.hero h1 {
    font-size: clamp(44px, 6.4vw, 76px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.04;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero .role {
    font-size: clamp(20px, 2.2vw, 24px);
    font-weight: 400;
    color: var(--text-2);
    letter-spacing: -0.012em;
    margin-bottom: 18px;
}

.hero .tagline {
    font-size: 18px;
    color: var(--text-3);
    max-width: 580px;
    margin: 0 0 36px;
    line-height: 1.55;
    font-weight: 400;
}

.hero .meta {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

/* Hero right side — Featured writing list */
.hero-blog {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 4px;
}

.hero-blog-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 0 4px;
}

.featured-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.featured-all {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: gap 0.2s ease;
}

.featured-all:hover {
    gap: 10px;
}

.hero-blog-list {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02), 0 12px 32px -16px rgba(0, 0, 0, 0.08);
}

.blog-row {
    display: block;
    padding: 18px 22px;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.2s ease;
    position: relative;
}

.blog-row:last-child {
    border-bottom: none;
}

.blog-row:hover {
    background: var(--bg);
}

.blog-row::after {
    content: "›";
    position: absolute;
    right: 22px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-4);
    font-size: 20px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.blog-row:hover::after {
    color: var(--text);
    transform: translate(3px, -50%);
}

.blog-row-tag {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 6px;
}

.blog-row h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.012em;
    margin: 0 0 6px;
    padding-right: 24px;
}

.blog-row-meta {
    display: block;
    font-size: 12.5px;
    color: var(--text-4);
    font-variant-numeric: tabular-nums;
}

.dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.18);
    flex-shrink: 0;
}

.hero .meta a,
.hero .meta span {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all 0.25s ease;
}

.hero .meta a:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

.hero .meta .primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

.hero .meta .primary:hover {
    background: #000;
    border-color: #000;
}

/* Resume split button — view + download as one unit */
.resume-split {
    display: inline-flex;
    align-items: stretch;
    border-radius: 100px;
    overflow: hidden;
    transition: transform 0.25s ease;
}

.resume-split:hover {
    transform: translateY(-1px);
}

.hero .meta .resume-split a {
    padding-top: 10px;
    padding-bottom: 10px;
    transition: background 0.2s ease, transform 0s;
    transform: none;
    margin: 0;
}

.hero .meta .resume-split a:hover {
    transform: none;
}

.resume-view {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    border-radius: 100px 0 0 100px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.18) !important;
    padding-right: 16px !important;
}

.resume-view svg {
    opacity: 0.85;
}

.resume-download {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    padding-left: 14px !important;
    padding-right: 14px !important;
    border-radius: 0 100px 100px 0 !important;
}

.resume-download svg {
    opacity: 0.9;
    transition: transform 0.25s ease;
}

.resume-download:hover svg {
    transform: translateY(2px);
}

/* ---------- SECTIONS ---------- */
section {
    padding: 120px 0;
    border-bottom: 1px solid var(--line);
}

section:last-of-type {
    border-bottom: none;
}

.section-eyebrow {
    font-size: 13px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

h2 {
    font-size: clamp(34px, 4.4vw, 52px);
    font-weight: 600;
    letter-spacing: -0.022em;
    line-height: 1.08;
    margin-bottom: 56px;
    max-width: 720px;
}

h2 .muted {
    color: var(--text-4);
}

h3 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.012em;
    color: var(--text);
    margin-bottom: 4px;
}

/* ---------- ABOUT ---------- */
.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 72px;
    align-items: start;
}

.about-left h2 {
    margin-bottom: 32px;
}

.about-left .lead {
    font-size: clamp(20px, 2.2vw, 24px);
    color: var(--text);
    line-height: 1.45;
    margin-bottom: 32px;
    font-weight: 500;
    letter-spacing: -0.012em;
    max-width: 540px;
}

.about-left p {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.72;
    margin-bottom: 22px;
    font-weight: 400;
    letter-spacing: -0.002em;
    max-width: 560px;
}

.about-left p strong {
    color: var(--text);
    font-weight: 600;
}

.focus-block {
    margin-top: 36px;
    padding-top: 28px;
    border-top: 1px solid var(--line-soft);
}

.focus-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.focus-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 28px;
    padding: 0;
}

.focus-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15.5px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
    letter-spacing: -0.005em;
}

.focus-list .arrow {
    color: var(--accent);
    font-weight: 600;
    flex-shrink: 0;
    width: 14px;
    display: inline-block;
}

@media (max-width: 480px) {
    .focus-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

.about-right {
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: sticky;
    top: 32px;
}

/* "Now" card — live status */
.now-card {
    background: var(--text);
    color: #fff;
    border-radius: 20px;
    padding: 24px 26px;
    position: relative;
    overflow: hidden;
}

.now-card::before {
    content: "";
    position: absolute;
    top: -40%;
    right: -20%;
    width: 60%;
    height: 180%;
    background: radial-gradient(ellipse at center, rgba(48, 209, 88, 0.15) 0%, transparent 60%);
    pointer-events: none;
}

.now-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
    position: relative;
}

.now-label .dot-live {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #30d158;
    box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
    animation: pulse 2.2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(48, 209, 88, 0.12);
    }
}

.now-card h4 {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.015em;
    margin-bottom: 8px;
    position: relative;
}

.now-card p {
    font-size: 14.5px;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
    margin: 0;
    position: relative;
}

/* Metric grid — 2x2 */
.metric-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.metric {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 22px;
    transition: all 0.3s ease;
}

.metric:hover {
    border-color: var(--text);
    transform: translateY(-2px);
}

.metric-num {
    font-size: 38px;
    font-weight: 600;
    letter-spacing: -0.03em;
    color: var(--text);
    line-height: 1;
    margin-bottom: 10px;
    display: flex;
    align-items: baseline;
}

.metric-num .suffix {
    font-size: 22px;
    color: var(--accent);
    margin-left: 2px;
    font-weight: 500;
}

.metric-label {
    font-size: 12.5px;
    color: var(--text-3);
    line-height: 1.4;
    letter-spacing: -0.002em;
}

/* Cert card */
.cert-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 18px 22px;
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
    position: relative;
}

.cert-card:hover {
    border-color: var(--text);
    transform: translateY(-1px);
    box-shadow: 0 8px 20px -10px rgba(0, 0, 0, 0.08);
}

.cert-text {
    flex: 1;
    min-width: 0;
}

.cert-arrow {
    color: var(--text-4);
    flex-shrink: 0;
    transition: color 0.2s ease, transform 0.2s ease;
}

.cert-card:hover .cert-arrow {
    color: var(--text);
    transform: translate(2px, -2px);
}

.cert-badge {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, #ff9500 0%, #ff6a00 100%);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px -2px rgba(255, 122, 0, 0.4);
}

.cert-title {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.005em;
    line-height: 1.25;
    margin-bottom: 3px;
}

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

/* Stack card */
.stack-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 18px;
    padding: 22px;
}

.stack-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-4);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.stack-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.chip {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    color: var(--text-2);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 12.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.chip.primary {
    background: var(--text);
    border-color: var(--text);
    color: #fff;
}

.chip:hover {
    transform: translateY(-1px);
}

/* ---------- EXPERIENCE ---------- */
.exp-list {
    display: grid;
    gap: 20px;
}

.exp-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
}

.exp-card:hover {
    border-color: var(--line);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.08);
}

.exp-card[open] {
    border-color: var(--line);
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.08);
}

.exp-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 26px 32px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    flex-wrap: wrap;
}

.exp-summary::-webkit-details-marker {
    display: none;
}

.exp-summary::marker {
    content: "";
}

.exp-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 18px;
}

.exp-title-block h3 {
    margin-bottom: 6px;
}

.exp-company {
    color: var(--text-2);
    font-size: 16px;
    font-weight: 500;
}

.exp-company .dot {
    color: var(--text-4);
    margin: 0 8px;
}

.exp-meta {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-shrink: 0;
}

.exp-when {
    color: var(--text-3);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.exp-chevron {
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--bg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
}

.exp-summary:hover .exp-chevron {
    background: var(--text);
    color: #fff;
}

.exp-card[open] .exp-chevron {
    transform: rotate(180deg);
}

.exp-body {
    padding: 0 32px 30px;
    animation: expFade 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes expFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.exp-bullets {
    margin-top: 4px;
    padding-top: 18px;
    border-top: 1px solid var(--line-soft);
    list-style: none;
    padding-left: 0;
}

.exp-bullets li {
    font-size: 15.5px;
    color: var(--text-2);
    line-height: 1.6;
    margin-bottom: 10px;
    padding-left: 22px;
    position: relative;
}

.exp-bullets li::before {
    content: "";
    position: absolute;
    left: 4px;
    top: 11px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.85;
}

.exp-bullets li:last-child {
    margin-bottom: 0;
}

.exp-bullets strong {
    color: var(--text);
    font-weight: 600;
}

/* ---------- SKILLS ---------- */
.skills-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 14px;
    align-items: start;
}

.skill-group {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.skill-group:hover {
    border-color: var(--line);
    box-shadow: 0 6px 18px -10px rgba(0, 0, 0, 0.06);
}

.skill-group[open] {
    border-color: var(--line);
    box-shadow: 0 10px 24px -12px rgba(0, 0, 0, 0.08);
}

.skill-group.cloud-group {
    grid-column: 1 / -1;
}

.skill-summary {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    cursor: pointer;
    list-style: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.skill-summary::-webkit-details-marker {
    display: none;
}

.skill-summary::marker {
    content: "";
}

.skill-summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 14px;
}

.skill-summary h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

.skill-count {
    font-size: 12px;
    color: var(--text-4);
    font-variant-numeric: tabular-nums;
    font-weight: 500;
    padding: 3px 9px;
    background: var(--bg);
    border-radius: 100px;
    letter-spacing: 0;
    text-transform: none;
}

.skill-chevron {
    color: var(--text-3);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--bg);
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease, color 0.2s ease;
    flex-shrink: 0;
}

.skill-summary:hover .skill-chevron {
    background: var(--text);
    color: #fff;
}

.skill-group[open] .skill-chevron {
    transform: rotate(180deg);
}

.skill-body {
    padding: 0 22px 22px;
    animation: expFade 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.skill-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.skill-tag {
    background: var(--bg);
    border: 1px solid var(--line-soft);
    color: var(--text-2);
    padding: 7px 13px;
    border-radius: 100px;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
    cursor: default;
    white-space: nowrap;
}

.skill-tag:hover {
    color: var(--text);
    border-color: var(--text);
    background: var(--surface);
    transform: translateY(-1px);
}

/* Cloud subgroups */
.cloud-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px 40px;
}

.cloud-subgroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cloud-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: 0.02em;
}

@media (max-width: 720px) {
    .skills-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .cloud-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---------- PROJECTS ---------- */
.project-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 40px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -12px rgba(0, 0, 0, 0.08);
    border-color: var(--line);
}

.project-card .description {
    font-size: 16px;
    color: var(--text-2);
    line-height: 1.6;
    margin-top: 12px;
}

.project-card .tech {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.project-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--accent);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    margin-top: 20px;
    transition: gap 0.2s ease;
}

.project-link:hover {
    gap: 10px;
    color: var(--accent-hover);
}

/* ---------- EDUCATION + CERT ---------- */
.edu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.edu-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 20px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.edu-card:hover {
    border-color: var(--line);
    box-shadow: 0 10px 24px -10px rgba(0, 0, 0, 0.06);
}

.edu-card .badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
    margin-bottom: 14px;
}

.edu-card .org {
    color: var(--text-2);
    font-size: 15px;
    margin-top: 8px;
}

.edu-card .when {
    color: var(--text-3);
    font-size: 14px;
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
}

.edu-card .cert-link {
    display: inline-block;
    margin-top: 14px;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
}

.edu-card .cert-link:hover {
    text-decoration: underline;
}

/* ---------- BLOG PAGE ---------- */
.blog-hero {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--line);
}

.back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--text-3);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 40px;
    transition: color 0.2s ease, gap 0.2s ease;
}

.back-home:hover {
    color: var(--text);
    gap: 10px;
}

.blog-hero .eyebrow {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-3);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 20px;
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
}

.blog-hero h1 {
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 600;
    letter-spacing: -0.028em;
    line-height: 1.05;
    margin-bottom: 24px;
    background: linear-gradient(180deg, #1d1d1f 0%, #424245 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    max-width: 760px;
}

.blog-intro {
    font-size: 19px;
    color: var(--text-3);
    line-height: 1.55;
    max-width: 620px;
    font-weight: 400;
}

.blog-section {
    padding: 80px 0 60px;
    border-bottom: 1px solid var(--line);
}

.blog-section .section-eyebrow {
    margin-bottom: 12px;
}

.blog-section > .wrap > h2 {
    margin-bottom: 48px;
}

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

.blog-card {
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 22px;
    padding: 32px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.blog-card:hover {
    transform: translateY(-3px);
    border-color: var(--text);
    box-shadow: 0 18px 36px -16px rgba(0, 0, 0, 0.12);
}

.blog-card.featured {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    border-color: var(--line);
}

.blog-card.featured::after {
    content: "Featured";
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 10px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.blog-card {
    position: relative;
}

.blog-card-tag {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card h2 {
    font-size: 22px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.018em;
    margin: 0;
    max-width: 100%;
    margin-bottom: 0;
}

.blog-card p {
    font-size: 15px;
    color: var(--text-2);
    line-height: 1.6;
    margin: 0;
    flex: 1;
}

.blog-card-meta {
    font-size: 13px;
    color: var(--text-3);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    display: flex;
    align-items: center;
    gap: 8px;
}

.blog-card-meta .dot {
    color: var(--text-4);
}

/* ---------- INDIVIDUAL POST PAGE ---------- */
.post-hero {
    padding: 56px 0 48px;
    border-bottom: 1px solid var(--line-soft);
    background: var(--surface);
}

.post-hero .back-home {
    margin-bottom: 32px;
}

.post-hero .blog-card-tag {
    display: inline-block;
    margin-bottom: 18px;
}

.post-hero h1 {
    font-size: clamp(32px, 4.4vw, 48px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.024em;
    margin: 0 0 20px;
    background: linear-gradient(180deg, #1d1d1f 0%, #2c2c2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.post-hero .article-meta {
    font-size: 14px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.post-body {
    padding: 64px 0 80px;
    background: var(--bg);
}

.post-body .article-body {
    /* uses the existing .article-body styles */
}

.post-nav {
    padding: 56px 0 80px;
    border-top: 1px solid var(--line-soft);
    background: var(--bg);
}

.post-nav-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.post-nav-link {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 22px 26px;
    background: var(--surface);
    border: 1px solid var(--line-soft);
    border-radius: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.25s ease;
}

.post-nav-link:hover {
    border-color: var(--text);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px -14px rgba(0, 0, 0, 0.1);
}

.post-nav-link.next {
    text-align: right;
}

.post-nav-link .nav-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--accent);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.post-nav-link .nav-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.35;
    letter-spacing: -0.01em;
}

.post-nav-link.empty {
    pointer-events: none;
    opacity: 0;
}

@media (max-width: 600px) {
    .post-nav-grid {
        grid-template-columns: 1fr;
    }
    .post-nav-link.next {
        text-align: left;
    }
    .post-hero {
        padding: 40px 0 36px;
    }
    .post-body {
        padding: 48px 0 60px;
    }
}

/* ---------- BLOG ARTICLES (long-form) ---------- */
.blog-articles {
    background: var(--bg);
}

.wrap-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px;
}

.blog-article {
    padding: 80px 0;
    border-bottom: 1px solid var(--line-soft);
}

.blog-article:last-child {
    border-bottom: none;
}

.blog-article:target {
    scroll-margin-top: 24px;
}

.blog-article:target .article-head h2 {
    animation: targetFlash 1.2s ease;
}

@keyframes targetFlash {
    0%, 100% { background-position: 0% 50%; }
    50% {
        text-shadow: 0 0 24px rgba(0, 113, 227, 0.12);
    }
}

.article-head {
    margin-bottom: 40px;
    padding-bottom: 32px;
    border-bottom: 1px solid var(--line-soft);
}

.article-head .blog-card-tag {
    display: inline-block;
    margin-bottom: 16px;
}

.article-head h2 {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    color: var(--text);
    line-height: 1.15;
    letter-spacing: -0.022em;
    margin: 0 0 18px;
    max-width: 100%;
    background: linear-gradient(180deg, #1d1d1f 0%, #2c2c2e 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.article-meta {
    font-size: 14px;
    color: var(--text-3);
    font-variant-numeric: tabular-nums;
}

.article-body p {
    font-size: 17.5px;
    color: var(--text-2);
    line-height: 1.72;
    margin-bottom: 22px;
    letter-spacing: -0.002em;
}

.article-body p.lead {
    font-size: 21px;
    color: var(--text);
    line-height: 1.5;
    font-weight: 500;
    margin-bottom: 32px;
    letter-spacing: -0.012em;
}

.article-body h3 {
    font-size: 24px;
    font-weight: 600;
    color: var(--text);
    line-height: 1.25;
    letter-spacing: -0.018em;
    margin: 48px 0 18px;
}

.article-body h3:first-child {
    margin-top: 0;
}

.article-body ul {
    margin: 0 0 22px;
    padding-left: 24px;
    list-style: none;
}

.article-body ul li {
    font-size: 17px;
    color: var(--text-2);
    line-height: 1.65;
    margin-bottom: 12px;
    position: relative;
    padding-left: 2px;
}

.article-body ul li::before {
    content: "";
    position: absolute;
    left: -18px;
    top: 12px;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--accent);
}

.article-body strong {
    color: var(--text);
    font-weight: 600;
}

.back-top {
    display: inline-flex;
    align-items: center;
    color: var(--accent);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    margin-top: 48px;
    padding: 10px 18px;
    border: 1px solid var(--line);
    border-radius: 100px;
    background: var(--surface);
    transition: all 0.2s ease;
}

.back-top:hover {
    border-color: var(--accent);
    transform: translateY(-1px);
}

@media (max-width: 720px) {
    .blog-hero {
        padding: 60px 0 40px;
    }
    .blog-section {
        padding: 50px 0;
    }
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }
    .blog-card {
        padding: 26px 24px;
    }
    .blog-card h2 {
        font-size: 20px;
    }
    .blog-article {
        padding: 60px 0;
    }
    .wrap-narrow {
        padding: 0 20px;
    }
    .article-head {
        margin-bottom: 32px;
        padding-bottom: 24px;
    }
    .article-body p {
        font-size: 16px;
    }
    .article-body p.lead {
        font-size: 19px;
    }
    .article-body h3 {
        font-size: 21px;
        margin: 36px 0 14px;
    }
    .article-body ul li {
        font-size: 16px;
    }
}

/* ---------- FOOTER ---------- */
footer {
    padding: 80px 0 60px;
    text-align: center;
}

footer .cta {
    font-size: clamp(28px, 4vw, 40px);
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text);
    margin-bottom: 32px;
    line-height: 1.15;
}

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

footer .links a {
    color: var(--text);
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 100px;
    border: 1px solid var(--line);
    background: var(--surface);
    transition: all 0.25s ease;
}

footer .links a:hover {
    border-color: var(--text);
    transform: translateY(-1px);
}

footer .links a.primary {
    background: var(--text);
    color: #fff;
    border-color: var(--text);
}

footer .links a.primary:hover {
    background: #000;
}

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

/* ---------- RESPONSIVE ---------- */
@media (max-width: 900px) {
    .edu-grid {
        grid-template-columns: 1fr;
    }
    .about-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .about-right {
        position: static;
    }
}

@media (max-width: 900px) {
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 48px;
    }
    .glance-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        border-radius: 20px;
        padding: 20px 24px;
        margin-bottom: 56px;
    }
    .glance-item:not(:last-child)::after {
        display: none;
    }
}

@media (max-width: 720px) {
    .wrap {
        padding: 0 20px;
    }
    .hero {
        padding: 100px 0 80px;
    }
    .detail-card {
        padding: 24px;
    }
    section {
        padding: 80px 0;
    }
    h2 {
        margin-bottom: 40px;
    }
    .about p {
        font-size: 17px;
    }
    .project-card {
        padding: 28px 24px;
    }
    .edu-card {
        padding: 26px 22px;
    }
    .exp-summary {
        padding: 22px 22px;
        gap: 12px;
    }
    .exp-body {
        padding: 0 22px 24px;
    }
    .exp-title-block {
        flex: 1 1 100%;
        order: 1;
    }
    .exp-meta {
        flex: 1 1 100%;
        order: 2;
        justify-content: space-between;
    }
    .hero .meta a,
    .hero .meta span {
        padding: 10px 16px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .metric-num {
        font-size: 32px;
    }
    h2 {
        margin-bottom: 32px;
    }
}
