﻿:root {
    --blue: #4F7FFF;
    --blue-light: #EEF3FF;
    --blue-dark: #3466E0;
    --black: #111111;
    --gray: #666666;
    --gray-light: #999999;
    --bg: #FFFFFF;
    --bg-soft: #F8F7F4;
    --border: #EBEBEB;
    --radius: 16px;
    --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
    --sidebar-w: 220px;
    --content-max: 800px;
}

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

html { scroll-behavior: smooth; }

body {
    font-family: 'DM Sans', sans-serif;
    background: var(--bg);
    color: var(--black);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ── NAVBAR ── */
nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    height: 64px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 80px;
    transition: transform var(--transition);
}
nav.hidden { transform: translateY(-100%); }

.nav-logo {
    font-family: 'Playfair Display', serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    letter-spacing: -0.02em;
}

.nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
}
.nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray);
    text-decoration: none;
    transition: color var(--transition);
}
.nav-links a:hover { color: var(--blue); }

.nav-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--blue) !important;
    border: 1.5px solid var(--blue);
    padding: 7px 18px;
    border-radius: 100px;
    transition: all var(--transition) !important;
}
.nav-cta:hover { background: var(--blue); color: #fff !important; }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 4px;
}
.hamburger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--black);
    border-radius: 2px;
    transition: all var(--transition);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 64px; left: 0; right: 0;
    background: #fff;
    border-bottom: 1px solid var(--border);
    z-index: 99;
    padding: 16px 0;
}
.mobile-menu.open { display: block; }
.mobile-menu a {
    display: block;
    padding: 14px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
    text-decoration: none;
    border-bottom: 1px solid var(--border);
}
.mobile-menu a:last-child { border-bottom: none; }

/* ── HERO ── */
.hero {
    padding: 160px 80px 40px;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--blue-light);
    color: var(--blue);
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 28px;
    letter-spacing: 0.01em;
}
.hero-tag::before {
    content: '';
    width: 7px; height: 7px;
    background: var(--blue);
    border-radius: 50%;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%,100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.8); }
}

.hero-photo {
    position: absolute;
    top: 220px;
    right: 80px;
    width: 300px;
    height: 380px;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.12);
    transform: rotate(3deg);
    animation: floatPhoto 5s ease-in-out infinite;
}
.hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}
@keyframes floatPhoto {
    0%, 100% { transform: rotate(3deg) translateY(0px); }
    50% { transform: rotate(3deg) translateY(-10px); }
}

.hero h1 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(48px, 7vw, 82px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.03em;
    color: var(--black);
    max-width: 700px;
    margin-bottom: 24px;
}

.hero h1 em {
    font-style: italic;
    color: var(--blue);
}

.hero-sub {
    font-size: 18px;
    font-weight: 400;
    color: var(--gray);
    line-height: 1.6;
    max-width: 480px;
    margin-bottom: 40px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.btn-primary {
    background: var(--blue);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(79,127,255,0.3); }

.btn-outline {
    border: 1.5px solid var(--border);
    color: var(--black);
    font-family: 'DM Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    padding: 14px 32px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition);
    display: inline-block;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.hero-value {
    margin-top: 40px;
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 24px 0;
    padding-top: 40px;
    border-top: 1px solid var(--border);
}
.hero-value > div:not(.hero-value-divider) {
    flex: 1;
    min-width: 120px;
    padding: 0 20px;
}
.hero-value > div:not(.hero-value-divider):first-child {
    padding-left: 0;
}
.hero-value p {
    font-size: 14px;
    color: var(--gray-light);
    font-weight: 400;
}
.hero-value strong {
    font-size: 15px;
    color: var(--black);
    font-weight: 600;
    display: block;
}
.hero-value-divider {
    width: 1px;
    height: 36px;
    background: var(--border);
    flex-shrink: 0;
}

/* ── SECTION LABEL ── */
.section-label {
    font-size: 16px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 20px;
}

.section-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--black);
    margin-bottom: 48px;
}

/* ── WORKS ── */
.projects {
    padding: 60px 80px 100px;
    max-width: 1200px;
    margin: 0 auto;
}

.projects-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 56px;
    flex-wrap: wrap;
    gap: 16px;
}
.projects-header .section-title { margin-bottom: 0; }

.projects-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.project-card {
    text-decoration: none;
    color: inherit;
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform var(--transition);
}
.project-card:hover { transform: translateY(-4px); }
.project-card:hover .card-img-wrap { box-shadow: 0 20px 60px rgba(0,0,0,0.1); }

.card-img-wrap {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--blue-light);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow var(--transition);
}
.card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.project-card:hover .card-img-wrap img { transform: scale(1.04); }

.card-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #EEF3FF 0%, #dce8ff 100%);
}
.card-img-placeholder svg { opacity: 0.3; }

.card-meta {
    padding: 24px 4px 8px;
}

.card-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
}
.tag {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--blue);
    background: var(--blue-light);
    padding: 4px 10px;
    border-radius: 100px;
}

.card-title {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}

.card-desc {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 16px;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.card-location {
    font-size: 13px;
    color: var(--gray-light);
    font-weight: 400;
}
.card-arrow {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: var(--bg-soft);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.project-card:hover .card-arrow {
    background: var(--blue);
}
.project-card:hover .card-arrow svg path { stroke: #fff; }

/* full-width card */
.project-card.full { grid-column: 1 / -1; }
.project-card.full .card-img-wrap { aspect-ratio: 21/8; }

/* ── SKILLS / TABS ── */
.skills-section {
    background: var(--bg-soft);
    padding: 60px 80px;
}
.skills-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.tabs-nav {
    display: flex;
    gap: 4px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 40px;
}
.tab-btn {
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
    background: none;
    border: none;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 8px 8px 0 0;
}
.tab-btn:hover { color: var(--blue); background: var(--blue-light); }
.tab-btn.active { color: var(--blue); border-bottom-color: var(--blue); background: var(--blue-light); }

.tab-panel { display: none; }
.tab-panel.active { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; align-items: start; animation: tabFade 0.3s ease; }
@keyframes tabFade {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.tab-left {
    position: sticky;
    top: 100px;
}
.tab-big-icon {
    font-size: 48px;
    margin-bottom: 16px;
    display: block;
}
.tab-left h3 {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--black);
    margin-bottom: 12px;
}
.tab-left p {
    font-size: 15px;
    color: var(--gray);
    line-height: 1.7;
}

.tab-items { display: flex; flex-direction: column; }
.tab-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px 0;
    border-bottom: 1px solid var(--border);
}
.tab-item:last-child { border-bottom: none; }
.tab-item-num {
    font-family: 'Playfair Display', serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    min-width: 24px;
    margin-top: 2px;
}
.tab-item-body strong {
    font-size: 14px;
    font-weight: 600;
    color: var(--black);
    display: block;
    margin-bottom: 4px;
}
.tab-item-body span {
    font-size: 13px;
    color: var(--gray);
}

.tools-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 40px;
}
.tool-tag {
    font-size: 13px;
    font-weight: 500;
    color: var(--gray);
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    background: #fff;
    transition: all var(--transition);
}
.tool-tag:hover { color: var(--blue); border-color: var(--blue); }

@media (max-width: 768px) {
    .tab-panel.active { grid-template-columns: 1fr; gap: 24px; }
    .tab-left { position: static; }
    .tab-btn { padding: 10px 14px; font-size: 13px; }
}

/* ── ABOUT ── */
.about-section {
    padding: 100px 80px;
    max-width: 1200px;
    margin: 0 auto;
}
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: stretch;
}
.about-img {
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 32px 80px rgba(0,0,0,0.22), 0 8px 24px rgba(0,0,0,0.12);
    min-height: 400px;
}
.about-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    position: absolute;
    inset: 0;
}
.about-content .section-title { margin-bottom: 20px; }
.about-bio {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.75;
    margin-bottom: 36px;
}
.values-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 40px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.value-item {
    display: flex;
    align-items: center;
    gap: 14px;
}
.value-dot {
    width: 8px;
    height: 8px;
    background: var(--blue);
    border-radius: 50%;
    flex-shrink: 0;
}
.value-item p {
    font-size: 15px;
    font-weight: 500;
    color: var(--black);
}
.value-item span {
    font-size: 14px;
    font-weight: 400;
    color: var(--gray);
}

.about-social {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}
.about-social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: var(--black);
    text-decoration: none;
    border: 1.5px solid var(--border);
    background: var(--bg-soft);
    padding: 9px 20px;
    border-radius: 100px;
    transition: all var(--transition);
}
.about-social-link:hover { color: #fff; background: var(--blue); border-color: var(--blue); }

/* ── CONNECT ── */
.connect-section {
    background: var(--black);
    padding: 100px 80px;
    text-align: center;
}
.connect-inner { max-width: 700px; margin: 0 auto; }
.connect-section .section-label { color: #7090ff; }
.connect-section h2 {
    font-family: 'Playfair Display', serif;
    font-size: clamp(36px, 5vw, 60px);
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.03em;
    line-height: 1.1;
    margin-bottom: 20px;
}
.connect-section h2 em { font-style: italic; color: var(--blue); }
.connect-section p { font-size: 16px; color: #888; line-height: 1.6; margin-bottom: 40px; }
.connect-email {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: clamp(20px, 3vw, 30px);
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid var(--blue);
    padding-bottom: 4px;
    transition: color var(--transition);
    margin-bottom: 48px;
}
.connect-email:hover { color: var(--blue); }

.social-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 32px;
}
.social-link {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    text-decoration: none;
    border: 1px solid #555;
    background: #222;
    padding: 9px 20px;
    border-radius: 100px;
    transition: all var(--transition);
}
.social-link:hover { background: var(--blue); border-color: var(--blue); }

/* ── FOOTER ── */
footer {
    background: var(--black);
    border-top: 1px solid #222;
    padding: 24px 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
footer p { font-size: 13px; color: #555; }
.footer-logo {
    font-family: 'Playfair Display', serif;
    font-size: 16px;
    color: #444;
    text-decoration: none;
}

/* ── FADE IN ANIMATION ── */
.fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in:nth-child(4) { transition-delay: 0.3s; }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
    nav { padding: 0 40px; }
    .hero { padding: 140px 40px 40px; }
    .hero h1 { font-size: 56px; }
    .hero-photo { right: 40px; width: 240px; height: 320px; }
    .projects { padding: 60px 40px 80px; }
    .skills-section { padding: 80px 40px; }
    .skills-grid { grid-template-columns: repeat(2, 1fr); }
    .about-section { padding: 80px 40px; }
    .about-grid { gap: 48px; }
    .connect-section { padding: 80px 40px; }
    footer { padding: 24px 40px; }
}

@media (max-width: 768px) {
    html, body { overflow-x: hidden; max-width: 100vw; }

    nav { padding: 0 20px; }
    .nav-links { display: none; }
    .hamburger { display: flex; }
    .hero { padding: 100px 20px 32px; max-width: 100%; }

    .hero-photo {
      position: relative;
      top: auto; right: auto;
      width: 180px; height: 220px;
      margin: 0 auto 28px;
      transform: none;
      animation: none;
      border-radius: 32px;
    }
    .hero h1 { font-size: 40px; }
    .hero-sub { font-size: 16px; }
    .hero-value {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 20px;
    }
    .hero-value > div:not(.hero-value-divider) { padding: 0; }
    .hero-value > div:not(.hero-value-divider):first-child { padding-left: 0; }
    .hero-value-divider { display: none; }

    .projects { padding: 32px 20px 60px; }
    .projects-header { flex-direction: column; align-items: flex-start; }
    .projects-grid { grid-template-columns: 1fr; }
    .project-card.full { grid-column: 1; }
    .project-card.full .card-img-wrap { aspect-ratio: 16/10; }

    .skills-section { padding: 60px 20px; }
    .skills-grid { grid-template-columns: 1fr; }
    .tools-row { flex-wrap: wrap; }

    .about-section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 32px; }
    .about-img { height: 380px; min-height: unset; }

    .connect-section { padding: 60px 20px; }
    footer { padding: 20px; flex-direction: column; gap: 12px; text-align: center; }
}

/* -- Project page styles -- */
.nav-project-links {
    display: flex; gap: 0; list-style: none;
    background: var(--bg-soft);
    border-radius: 100px;
    padding: 4px;
    border: 1px solid var(--border);
}
.nav-project-links a {
    font-size: 13px; font-weight: 500;
    color: var(--gray); text-decoration: none;
    padding: 7px 16px;
    border-radius: 100px;
    transition: all var(--transition);
    display: block;
}
.nav-project-links a:hover, 
.nav-project-links a.active {
    background: #fff;
    color: var(--blue);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.nav-back {
    font-size: 13px; font-weight: 500;
    color: var(--gray); text-decoration: none;
    display: flex; align-items: center; gap: 6px;
    transition: color var(--transition);
}
.nav-back:hover { color: var(--blue); }

/* ── MOBILE PILL NAV ── */
.mobile-pill-nav {
    display: none;
    position: sticky;
    top: 64px;
    z-index: 90;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    padding: 10px 20px;
    overflow-x: auto;
    scrollbar-width: none;
    gap: 8px;
    white-space: nowrap;
}
.mobile-pill-nav::-webkit-scrollbar { display: none; }
.mobile-pill-nav a {
    display: inline-block;
    font-size: 13px; font-weight: 500;
    color: var(--gray); text-decoration: none;
    border: 1px solid var(--border);
    padding: 7px 16px;
    border-radius: 100px;
    transition: all var(--transition);
}
.mobile-pill-nav a.active,
.mobile-pill-nav a:hover {
    background: var(--blue);
    color: #fff;
    border-color: var(--blue);
}

/* ── PAGE LAYOUT ── */
.page-wrapper {
    display: flex;
    padding-top: 64px;
    min-height: 100vh;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

/* ── SIDEBAR ── */
.sidebar {
    width: var(--sidebar-w);
    flex-shrink: 0;
    position: sticky;
    top: 80px;
    height: calc(100vh - 80px);
    padding: 48px 0 48px 48px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-self: flex-start;
}
.sidebar a {
    font-size: 14px; font-weight: 500;
    color: var(--gray-light);
    text-decoration: none;
    padding: 8px 16px;
    border-left: 2px solid transparent;
    transition: all var(--transition);
    display: flex; align-items: center; gap: 10px;
}
.sidebar a:hover { color: var(--black); }
.sidebar a.active {
    color: var(--blue);
    border-left-color: var(--blue);
    font-weight: 600;
}
.sidebar-num {
    font-size: 11px; color: var(--border);
    font-weight: 600; font-family: 'Playfair Display', serif;
    transition: color var(--transition);
}
.sidebar a.active .sidebar-num { color: var(--blue-light); }
.sidebar a:hover .sidebar-num { color: var(--gray-light); }

/* ── MAIN CONTENT ── */
.main-content {
    flex: 1;
    min-width: 0;
    padding: 60px 80px 120px 60px;
}

/* ── SECTION SHARED ── */
.cs-section {
    padding-top: 48px;
    border-top: 1px solid var(--border);
    margin-top: 48px;
}
.cs-section:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}

.cs-label {
    font-size: clamp(14px, 1.8vw, 18px);
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 8px;
    display: block;
    line-height: 1.05;
}

.cs-label--small {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    line-height: normal;
}
.cs-label--dark {
    color: var(--black);
}

.cs-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(16px, 2vw, 22px);
    font-weight: 600;
    letter-spacing: -0.01em;
    line-height: 1.3;
    color: var(--black);
    margin-bottom: 24px;
}

.cs-text {
    font-size: 16px;
    color: var(--gray);
    line-height: 1.8;
    margin-bottom: 32px;
}

.cs-sub {
    font-family: 'Playfair Display', serif;
    font-size: 22px;
    font-weight: 600;
    color: var(--black);
    margin: 48px 0 16px;
    letter-spacing: -0.01em;
}

/* ── HERO SECTION ── */
.project-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: clamp(40px, 6vw, 72px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.0;
    color: var(--black);
    margin-bottom: 32px;
}
.project-hero-title em {
    font-style: italic;
    color: var(--blue);
}

.meta-row {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 48px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.meta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--gray-light);
    margin-bottom: 4px;
}
.meta-value {
    font-size: 15px;
    font-weight: 600;
    color: var(--black);
}

/* ── IMAGE PLACEHOLDER ── */
.img-placeholder {
    width: 100%;
    background: linear-gradient(135deg, #EEF3FF 0%, #dce8ff 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 24px 0;
}
.img-placeholder.h-lg { height: 440px; }
.img-placeholder.h-md { height: 320px; }
.img-placeholder.h-sm { height: 220px; }
.img-placeholder.h-xs { height: 160px; }

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

.img-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.5;
}
.img-placeholder-inner span {
    font-size: 13px;
    color: var(--blue);
    font-weight: 500;
}

/* ── PROJECT COVER IMAGE ── */
.project-cover {
    margin: 32px -80px 32px 0;
    border-radius: 16px;
    overflow: hidden;
}
.project-cover-img {
    width: 100%;
    height: auto;
    display: block;
}

/* ── TWO IMAGE GRID ── */
.two-img-grid {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
}
.two-img-item {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 12px;
}
.img-figure {
    margin: 0;
}
.img-caption {
    margin-top: 8px;
    font-size: 13px;
    color: #888;
    text-align: center;
}

/* ── TWO COLUMNS ── */
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin: 24px 0;
}
.col-card {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 28px;
}
.col-card h4 {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--blue);
    margin-bottom: 12px;
}
.col-card p { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* ── RESPONSIBILITIES LIST ── */
.resp-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 16px 0;
}
.resp-list li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 15px;
    color: var(--gray);
    line-height: 1.5;
}
.resp-list li::before {
    content: '→';
    color: var(--blue);
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ── PAIN POINTS CARDS ── */
.cards-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin: 24px 0;
}
.pain-card {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid var(--border);
    transition: border-color var(--transition);
}
.pain-card:hover { border-color: var(--blue); }
.pain-icon {
    width: 40px; height: 40px;
    background: var(--blue-light);
    border-radius: 10px;
    font-size: 0 !important;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    margin-bottom: 16px;
}
.pain-card h4 { font-size: 17px; font-weight: 600; color: var(--black); margin-bottom: 8px; }
.pain-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }
.pain-list { list-style: disc; padding-left: 18px; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.pain-list li { font-size: 13px; color: var(--gray); line-height: 1.5; }

/* ── PERSONAS ── */
.personas-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    margin: 24px 0;
}
.pov-card {
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    border-color: #4F7FFF !important;
}
.pov-card:hover {
    box-shadow: 0 8px 32px rgba(0,0,0,0.11);
    transform: translateY(-2px);
}
.hmw-card {
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}
.hmw-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}
.hmw-card p strong {
    color: #333333 !important;
}
.persona-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 40px;
}
.persona-head {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}
.persona-avatar {
    width: 52px; height: 52px;
    border-radius: 50%;
    background: var(--blue);
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    color: #fff;
}
.persona-photo {
    width: 52px; height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.persona-name { font-size: 22px; font-weight: 700; color: var(--black); }
.persona-body { display: flex; flex-direction: column; gap: 20px; margin-top: 4px; }
.persona-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.persona-cols .persona-section + .persona-section { margin-top: 0; }
.persona-list {
    list-style: none; padding: 0; margin: 6px 0 0;
    display: flex; flex-direction: column; gap: 6px;
}
.persona-list li { font-size: 14px; color: var(--gray); line-height: 1.5; padding-left: 14px; position: relative; }
.persona-list li::before { content: "·"; position: absolute; left: 0; color: var(--blue); font-weight: 700; }
.persona-tech { border-top: 1px solid rgba(79,127,255,0.15); padding-top: 16px; }
.tech-row { display: flex; align-items: center; gap: 12px; margin: 8px 0 6px; }
.tech-dots { display: flex; gap: 5px; }
.dot {
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--blue-light);
    border: 1.5px solid var(--blue);
}
.dot.filled { background: var(--blue); }
.dot.half { background: linear-gradient(90deg, var(--blue) 50%, var(--blue-light) 50%); }
.tech-label { font-size: 13px; font-weight: 600; color: var(--blue); }
@media (max-width: 600px) { .persona-cols { grid-template-columns: 1fr; } }
.persona-info { font-size: 13px; color: var(--gray); }
.persona-quote {
    font-family: 'Playfair Display', serif;
    font-style: italic;
    font-size: 15px;
    color: var(--black);
    margin-bottom: 16px;
    line-height: 1.6;
}
.persona-section h5 {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #3E7C6B;
    margin-bottom: 6px;
}
.persona-section p { font-size: 13px; color: var(--gray); line-height: 1.5; }
.persona-section + .persona-section { margin-top: 14px; }

/* ── USABILITY FINDINGS ── */
.finding-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
    margin-bottom: 16px;
}
.finding-label {
    font-size: 13px; font-weight: 600;
    text-transform: uppercase; letter-spacing: 0.08em;
    margin-bottom: 6px;
}
.finding-before .finding-label { color: #E0786A; }
.finding-after .finding-label { color: #5BB98C; }
.finding-text { font-size: 14px; color: var(--gray); line-height: 1.5; }
.finding-arrow {
    color: var(--blue);
    font-size: 20px;
    flex-shrink: 0;
}

/* ── DESIGN SYSTEM ── */
.palette-row {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}
.color-block-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 20px 0;
}
.color-block {
    border-radius: 12px;
    padding: 20px 24px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #fff;
}
.color-block-hex {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.color-block-desc {
    font-size: 13px;
    opacity: 0.92;
    line-height: 1.4;
}
.swatch {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.swatch-circle {
    width: 88px; height: 88px;
    border-radius: 50%;
    border: 1px solid var(--border);
    box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}
.swatch span { font-size: 12px; color: var(--gray); font-weight: 600; }

.type-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 20px 0;
}
.type-showcase-multi {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}
.btn-cards-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 20px 0;
    max-width: 80%;
}
.btn-card {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    border: 1px solid #efefef;
}
.btn-card .type-meta {
    font-size: 16px;
    font-weight: 700;
    color: #005CA9;
    text-transform: none;
    letter-spacing: 0;
    font-family: inherit;
}
.btn-card-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
}
.btn-size-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
.btn-size-label {
    font-size: 10px;
    color: var(--gray);
}
.ds-btn {
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    padding: 10px 16px;
    white-space: nowrap;
}
.ds-btn-primary { background: #D32F2F; color: #fff; }
.ds-btn-secondary { background: #005CA9; color: #fff; }
.ds-btn-ghost { background: transparent; color: #005CA9; border: 1.5px solid #005CA9; }
.ds-btn-added { background: #14752A; color: #fff; }
.ds-btn-hover { background: #b71c1c; color: #fff; }
.ds-btn-disabled { background: #e0e0e0; color: #aaa; cursor: not-allowed; }
.ds-btn-sm { padding: 10px 16px; font-size: 12px; }
.ds-btn-md { padding: 12px 20px; font-size: 13px; width: 100%; }
.ds-btn-lg { padding: 18px 20px; font-size: 15px; }
.ds-btn-full { width: 100%; }
.type-scale {
    background: var(--bg-soft);
    border-radius: 16px;
    padding: 28px;
    margin: 20px 0;
}
.type-scale-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}
.type-scale-num {
    font-size: 56px;
    font-weight: 700;
    color: #e0e0e0;
    line-height: 1;
}
.type-scale-title {
    font-size: 28px;
    font-weight: 700;
    color: #005CA9;
    line-height: 1.1;
}
.type-scale-sub {
    font-size: 13px;
    font-weight: 600;
    color: #D32F2F;
}
.type-table {
    width: 100%;
    border-collapse: collapse;
}
.type-table th {
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #005CA9;
    padding: 10px 12px;
    border-bottom: 2px solid #e8e8e8;
}
.type-table td {
    padding: 14px 12px;
    font-size: 14px;
    color: var(--black);
    border-bottom: 1px solid #efefef;
}
.type-row-bold td:first-child {
    font-weight: 700;
}
.type-row-semi td:first-child {
    font-weight: 600;
}
.type-card {
    background: var(--bg-soft);
    border-radius: 12px;
    padding: 24px;
}
.type-card .type-sample-h {
    font-family: 'Playfair Display', serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--black);
    margin-bottom: 4px;
}
.type-card .type-sample-b {
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
}
.type-card .type-meta {
    font-size: 11px;
    color: var(--blue);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 12px;
}

.mockup-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 24px 0;
}
.mockup-item {
    aspect-ratio: 9/16;
    background: linear-gradient(160deg, #EEF3FF, #dce8ff);
    border-radius: var(--radius);
    display: flex; align-items: center; justify-content: center;
    font-size: 32px;
    opacity: 0.8;
}

/* ── OUTCOME METRICS ── */
.metrics-row {
    display: flex;
    gap: 0;
    margin: 32px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}
.metric {
    flex: 1;
    text-align: center;
    padding: 32px 20px;
    border-right: 1px solid var(--border);
}
.metric:last-child { border-right: none; }
.metric-num {
    font-family: 'Playfair Display', serif;
    font-size: 48px;
    font-weight: 700;
    color: var(--blue);
    letter-spacing: -0.03em;
    line-height: 1;
    margin-bottom: 8px;
}
.metric-label { font-size: 13px; color: var(--gray-light); line-height: 1.4; }

/* ── NEXT PROJECT ── */
.next-project {
    margin-top: 80px;
    padding-top: 60px;
    border-top: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.next-project p { font-size: 13px; color: var(--gray-light); font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.next-project h3 { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 600; color: var(--black); }
.next-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--blue);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition);
    white-space: nowrap;
}
.next-btn:hover { background: var(--blue-dark); transform: translateX(4px); }

/* ── LIGHTBOX ── */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
  object-fit: contain;
}

/* ── PROTOTYPE BUTTON ── */
.prototype-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid var(--blue);
    color: var(--blue);
    font-size: 14px;
    font-weight: 600;
    padding: 12px 28px;
    border-radius: 100px;
    text-decoration: none;
    transition: all var(--transition);
    margin-top: 16px;
}
.prototype-btn:hover { background: var(--blue); color: #fff; }

/* ── FADE IN ── */
.fade-in { opacity: 0; transform: translateY(20px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }

/* ── CARD ANIMATE ── */
.card-animate,
.testear-card,
.testear-summary-col,
.cs-quote,
.pov-card,
.pain-card,
.col-card {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.card-animate.visible,
.testear-card.visible,
.testear-summary-col.visible,
.cs-quote.visible,
.pov-card.visible,
.pain-card.visible,
.col-card.visible { opacity: 1; transform: translateY(0); }

/* ── RESPONSIVE ── */
@media (max-width: 1100px) {
    nav { padding: 0 40px; }
    .sidebar { padding: 48px 0 48px 32px; }
    .main-content { padding: 60px 48px 100px 40px; }
    .project-cover { margin: 32px -48px 32px 0; }
}

@media (max-width: 900px) {
    .nav-project-links { display: none; }
    .project-page .hamburger { display: flex; }
    .sidebar { display: none; }
    .mobile-pill-nav { display: flex; }
    .page-wrapper { flex-direction: column; }
    .main-content { padding: 40px 40px 80px; max-width: 100%; }
    .project-cover { margin: 32px -40px 32px 0; }
    .cards-3 { grid-template-columns: 1fr; }
    .personas-grid { grid-template-columns: 1fr; }
    .two-col { grid-template-columns: 1fr; }
    .finding-card { grid-template-columns: 1fr; gap: 12px; }
    .finding-arrow { display: none; }
    .type-showcase { grid-template-columns: 1fr; }
    .mockup-grid { grid-template-columns: repeat(2, 1fr); }
    .metrics-row { flex-direction: column; }
    .metric { border-right: none; border-bottom: 1px solid var(--border); }
    .metric:last-child { border-bottom: none; }
    .next-project { flex-direction: column; gap: 24px; align-items: flex-start; }
}

@media (max-width: 600px) {
    nav { padding: 0 20px; }
    .main-content { padding: 32px 20px 60px; }
    .project-cover { margin: 32px 0; }
    .project-hero-title { font-size: 36px; }
    .meta-row { gap: 20px; }
    .mockup-grid { grid-template-columns: 1fr; }
    .img-placeholder.h-lg { height: 260px; }
    .img-placeholder.h-md { height: 200px; }
}

/* -- Extracted inline styles -- */
.projects-header-cta {
font-size: 14px;
padding: 10px 24px;
}

.skills-title {
margin-bottom: 16px;
}

.skills-intro {
font-size: 16px;
color: var(--gray);
line-height: 1.7;
max-width: 600px;
margin-bottom: 48px;
}

.tools-row-spread {
justify-content: space-between;
}

.tool-tag-fill {
flex: 1;
text-align: center;
}

.about-user-emphasis {
font-style: italic;
color: var(--blue);
}

.no-top-margin {
margin-top: 0;
}

.swatch-black {
background: #111111;
}

.swatch-blue {
background: #4F7FFF;
}

.swatch-blue-light {
background: #EEF3FF;
}

.swatch-soft {
background: #F8F7F4;
border: 1px solid #ebebeb;
}

.swatch-white {
background: #FFFFFF;
border: 1px solid #ebebeb;
}

.type-body-heading {
font-size: 18px;
font-weight: 500;
color: var(--black);
margin-bottom: 6px;
}

/* ── TABLES ── */
.cs-table-wrapper { overflow-x: auto; margin: 16px 0 24px; }
.cs-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    color: var(--black);
}
.cs-table th {
    background: var(--bg-soft);
    font-weight: 600;
    text-align: left;
    padding: 11px 14px;
    border-bottom: 2px solid var(--border);
    white-space: nowrap;
}
.cs-table td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--border);
    vertical-align: top;
    line-height: 1.55;
}
.cs-table tr:last-child td { border-bottom: none; }

/* ── TESTEAR ── */
.cs-quote {
    background: var(--bg-soft);
    border-left: 3px solid var(--blue);
    border-radius: 8px;
    padding: 18px 22px;
    margin: 8px 0 24px;
}
.testear-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 20px 0;
}
.testear-card {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 20px;
}
.testear-card-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}
.testear-check { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.testear-name { font-size: 15px; font-weight: 600; color: var(--black); margin: 0 0 2px; }
.testear-age { font-size: 12px; color: var(--gray); margin: 0; }
.testear-quote {
    font-size: 13px;
    color: var(--gray);
    line-height: 1.65;
    font-style: italic;
    margin: 0;
    border-left: 2px solid var(--border);
    padding-left: 12px;
}
.testear-summary {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0;
}
.testear-summary-col {
    border-radius: 12px;
    padding: 20px 24px;
}
.testear-ok { background: #f0faf4; border: 1px solid #b6e4c8; }
.testear-warn { background: #fffbf0; border: 1px solid #f0dfa0; }
.testear-summary-title {
    font-size: 14px;
    font-weight: 700;
    margin: 0 0 12px;
    color: var(--black);
}
.testear-list {
    list-style: disc;
    padding-left: 18px;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.testear-list li { font-size: 13px; color: var(--gray); line-height: 1.55; }

@media (max-width: 640px) {
    .testear-cards { grid-template-columns: 1fr; }
    .testear-summary { grid-template-columns: 1fr; }
}
