:root {
    --bg: #f8f8f6;
    --surface: #ffffff;
    --text: #171717;
    --muted: #6b6b6b;
    --border: #e5e5e2;
    --accent: #171717;
    --max-width: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

.container {
    width: min(100% - 40px, var(--max-width));
    margin: 0 auto;
}


/* =========================
   NAVBAR
========================= */

.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(248, 248, 246, 0.92);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
}

.nav-container {
    height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-size: 24px;
    font-weight: 800;
}

.logo span {
    opacity: 0.4;
}

.nav-links {
    display: flex;
    gap: 32px;
}

.nav-links a {
    color: var(--muted);
    font-size: 14px;
}

.nav-links a:hover {
    color: var(--text);
}

.nav-button {
    border: 1px solid var(--text);
    padding: 9px 16px;
    border-radius: 999px;
    font-size: 14px;
}


/* =========================
   HERO
========================= */

.hero {
    padding: 120px 0 100px;
}

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

.eyebrow {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 18px;
}

.hero h1 {
    font-size: clamp(48px, 7vw, 82px);
    line-height: 0.98;
    letter-spacing: -0.05em;
    max-width: 850px;
}

.hero h1 span {
    display: block;
    color: var(--muted);
}

.hero-description {
    max-width: 650px;
    color: var(--muted);
    font-size: 18px;
    margin-top: 28px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 34px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 21px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
}

.button.primary {
    background: var(--text);
    color: white;
}

.button.secondary {
    border: 1px solid var(--border);
    background: white;
}

.hero-card {
    background: var(--text);
    color: white;
    padding: 36px;
    border-radius: 24px;
}

.hero-card-label {
    font-size: 11px;
    letter-spacing: 0.12em;
    opacity: 0.6;
    margin-bottom: 28px;
}

.hero-card h3 {
    font-size: 27px;
    line-height: 1.2;
}

.hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.hero-tags span {
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    padding: 6px 11px;
    font-size: 12px;
}


/* =========================
   SECTIONS
========================= */

.section {
    padding: 110px 0;
}

.section-heading {
    max-width: 700px;
    margin-bottom: 55px;
}

.section-heading h2 {
    font-size: clamp(36px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.section-heading > p:last-child {
    margin-top: 20px;
    color: var(--muted);
}


/* =========================
   PROJECTS
========================= */

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

.project-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 24px;
    overflow: hidden;
}

.project-card.featured {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
}

.project-image {
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 38px;
    font-weight: 800;
    letter-spacing: -0.04em;
    text-align: center;
}

.project-card:not(.featured) .project-image {
    min-height: 250px;
}

.gbenda-image {
    background: #dfe8e0;
}

.focus-image {
    background: #e8e2d8;
}

.divineconnection-image {
    background: #e0e4eb;
}

.project-content {
    padding: 34px;
}

.project-type {
    font-size: 11px;
    letter-spacing: 0.1em;
    font-weight: 700;
    color: var(--muted);
}

.project-content h3 {
    font-size: 32px;
    margin: 12px 0;
}

.project-content > p:not(.project-type) {
    color: var(--muted);
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 22px 0;
}

.project-tags span {
    background: #f1f1ef;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
}

.project-link {
    font-size: 14px;
    font-weight: 700;
}


/* =========================
   PROCESS
========================= */

.approach-section {
    background: var(--text);
    color: white;
}

.approach-section .eyebrow,
.approach-section .section-heading > p:last-child {
    color: #999;
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #333;
}

.process-card {
    background: var(--text);
    padding: 30px;
    min-height: 250px;
}

.process-card > span {
    font-size: 12px;
    color: #888;
}

.process-card h3 {
    font-size: 24px;
    margin: 45px 0 12px;
}

.process-card p {
    color: #999;
    font-size: 14px;
}


/* =========================
   ABOUT
========================= */

.about-grid {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 100px;
}

.about-grid h2 {
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -0.04em;
}

.about-content {
    color: var(--muted);
    font-size: 17px;
}

.about-content p + p {
    margin-top: 20px;
}

.about-highlights {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 45px;
}

.about-highlights div {
    border-top: 1px solid var(--border);
    padding-top: 15px;
}

.about-highlights strong {
    display: block;
    font-size: 28px;
    color: var(--text);
}

.about-highlights span {
    font-size: 12px;
}


/* =========================
   SKILLS
========================= */

.skills-section {
    border-top: 1px solid var(--border);
}

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

.skill-card {
    padding: 28px;
    background: white;
    border: 1px solid var(--border);
    border-radius: 18px;
}

.skill-card h3 {
    margin-bottom: 10px;
}

.skill-card p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   EDUCATION
========================= */

.education-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
}

.education-item h3 {
    font-size: 20px;
}

.education-item p {
    color: var(--muted);
    font-size: 14px;
}

.education-item > span {
    color: var(--muted);
    font-size: 13px;
}


/* =========================
   CONTACT
========================= */

.contact-section {
    background: #e9e9e5;
    padding: 130px 0;
}

.contact-content {
    text-align: center;
    max-width: 800px;
}

.contact-content h2 {
    font-size: clamp(42px, 6vw, 70px);
    line-height: 1;
    letter-spacing: -0.05em;
}

.contact-content > p:not(.eyebrow) {
    color: var(--muted);
    margin: 25px auto 30px;
    max-width: 500px;
}

.contact-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
}


/* =========================
   FOOTER
========================= */

footer {
    border-top: 1px solid var(--border);
}

.footer-content {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--muted);
    font-size: 13px;
}

.footer-content div {
    display: flex;
    gap: 20px;
}


/* =========================
   CASE STUDIES
========================= */

.case-hero {
    padding: 100px 0 70px;
}

.back-link {
    display: inline-block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 70px;
}

.case-hero h1 {
    font-size: clamp(60px, 10vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.06em;
    margin-bottom: 30px;
}

.case-subtitle {
    max-width: 700px;
    font-size: 22px;
    color: var(--muted);
}

.case-meta {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    padding-top: 25px;
}

.case-meta div {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.case-meta span {
    font-size: 10px;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-weight: 700;
}

.case-meta strong {
    font-size: 14px;
}


/* =========================
   CASE STUDY VISUAL
========================= */

.case-visual {
    padding-bottom: 100px;
}

.product-showcase {
    min-height: 550px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(50px, 8vw, 100px);
    font-weight: 800;
    letter-spacing: -0.06em;
}

.gbenda-showcase {
    background: #dfe8e0;
}


/* =========================
   CASE STUDY SECTIONS
========================= */

.case-section {
    padding: 90px 0;
}

.case-section.alt {
    background: #eeeeeb;
}

.case-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 70px;
    align-items: start;
}

.case-grid h2,
.case-section > .container > h2 {
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.15;
    letter-spacing: -0.035em;
    max-width: 700px;
    margin-bottom: 24px;
}

.case-text {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.case-text p {
    margin: 0 0 20px;
}

.case-text p + p {
    margin-top: 20px;
}


/* =========================
   ROLE
========================= */

.role-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: #d5d5d2;
    margin-top: 55px;
}

.role-card {
    background: #eeeeeb;
    padding: 30px;
    min-height: 250px;
}

.role-card span {
    font-size: 12px;
    color: var(--muted);
}

.role-card h3 {
    margin-top: 50px;
    margin-bottom: 12px;
    font-size: 22px;
}

.role-card p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   DECISION CARDS
========================= */

.decision-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 55px;
}

.decision-card {
    background: white;
    padding: 30px;
    border-radius: 18px;
}

.decision-card h3 {
    margin-bottom: 10px;
}

.decision-card p {
    color: var(--muted);
}


/* =========================
   USER FLOW
========================= */

.flow {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 55px;
    overflow-x: auto;
    padding-bottom: 10px;
}

.flow > div:not(.flow-arrow) {
    min-width: 180px;
    padding: 25px;
    background: #eeeeeb;
    border-radius: 16px;
}

.flow span {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 10px;
}

.flow strong {
    font-size: 16px;
}

.flow-arrow {
    color: var(--muted);
}


/* =========================
   VALIDATION
========================= */

.validation-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    margin-top: 55px;
}

.validation-grid h3 {
    margin-bottom: 10px;
}

.validation-grid p {
    color: var(--muted);
}


/* =========================
   LEARNING
========================= */

.learning-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 55px;
}

.learning-grid > div {
    border-top: 1px solid #d0d0cd;
    padding-top: 20px;
}

.learning-grid h3 {
    font-size: 20px;
    margin-bottom: 12px;
}

.learning-grid p {
    color: var(--muted);
    font-size: 14px;
}


/* =========================
   TECHNOLOGY
========================= */

.case-tech {
    padding: 70px 0;
    border-top: 1px solid var(--border);
}

.tech-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tech-list span {
    background: #eeeeeb;
    padding: 9px 14px;
    border-radius: 999px;
    font-size: 12px;
}


/* =========================
   SCREENSHOT GRID
========================= */

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.screenshot-card {
    background: #f5f5f5;
    border-radius: 20px;
    padding: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.screenshot-card img {
    display: block;
    width: 100%;
    max-width: 220px;
    height: auto;
    border-radius: 12px;
}


/* =========================
   TABLET
========================= */

@media (max-width: 850px) {

    .nav-links {
        display: none;
    }

    .hero {
        padding: 80px 0;
    }

    .hero-grid,
    .project-card.featured,
    .about-grid {
        grid-template-columns: 1fr;
    }

    .hero-grid {
        gap: 50px;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .project-card.featured {
        grid-column: span 1;
    }

    .process-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .section {
        padding: 80px 0;
    }

    .case-meta {
        grid-template-columns: repeat(2, 1fr);
    }

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

    .role-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .learning-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .screenshot-card img {
        max-width: 200px;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 600px) {

    .container {
        width: min(100% - 28px, var(--max-width));
    }

    .nav-button {
        display: none;
    }

    .hero h1 {
        font-size: 48px;
    }

    .hero-actions,
    .contact-actions {
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .process-grid,
    .skills-grid {
        grid-template-columns: 1fr;
    }

    .about-highlights {
        grid-template-columns: 1fr;
    }

    .education-item {
        align-items: flex-start;
        gap: 15px;
        flex-direction: column;
    }

    .footer-content {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 20px 0;
    }

    .case-hero {
        padding: 70px 0 50px;
    }

    .case-hero h1 {
        font-size: 60px;
    }

    .case-subtitle {
        font-size: 18px;
    }

    .case-meta {
        grid-template-columns: 1fr 1fr;
    }

    .product-showcase {
        min-height: 350px;
    }

    .case-section {
        padding: 75px 0;
    }

    .case-grid {
        gap: 20px;
    }

    .case-grid h2,
    .case-section > .container > h2 {
        font-size: 38px;
        line-height: 1.15;
    }

    .case-text {
        font-size: 16px;
        line-height: 1.75;
    }

    .role-grid,
    .decision-grid,
    .validation-grid {
        grid-template-columns: 1fr;
    }

    .screenshot-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .screenshot-card {
        padding: 16px;
    }

    .screenshot-card img {
        max-width: 240px;
    }
    .divineconnection-image span {
        width: 100%;
        text-align: center;
    }
}
