@import url('https://fonts.googleapis.com/css2?family=Inter+Tight:wght@400;500;600&display=swap');

:root {
    --background: #f4f4f0;
    --text: #111111;
    --muted: #6f6f6a;
    --line: #c8c8c1;
}

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

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "Inter Tight", Arial, sans-serif;
    font-size: 16px;
    line-height: 1.4;
}

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

a:hover {
    opacity: 0.5;
}

.site-nav {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 100;

    width: 100%;
    padding: 22px 28px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    background: rgba(244, 244, 240, 0.92);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.wordmark {
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

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

.nav-links a {
    font-size: 0.8rem;
}

main {
    width: 100%;
}


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

.hero {
    min-height: 100vh;
    padding: 120px 28px 40px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);
}

.hero-meta {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-meta span:nth-child(2) {
    text-align: center;
}

.hero-meta span:nth-child(3) {
    text-align: right;
}

.hero h1 {
    max-width: 1400px;

    font-size: clamp(4.8rem, 10vw, 10rem);
    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.hero-bottom {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: end;
}

.hero-bottom > p {
    max-width: 520px;

    color: var(--muted);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    line-height: 1.35;
}

.hero-links {
    display: flex;
    justify-content: flex-end;
    gap: 28px;
}

.hero-links a {
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
}


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

.work,
.about,
.credentials,
.contact {
    padding: 28px;
    border-bottom: 1px solid var(--line);
}

.section-heading {
    padding-bottom: 18px;

    display: flex;
    justify-content: space-between;

    border-bottom: 1px solid var(--line);

    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}


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

.project {
    padding: 34px 0;

    display: grid;
    grid-template-columns: 80px minmax(0, 1fr) 240px;
    gap: 34px;

    border-bottom: 1px solid var(--line);
}

.project:last-child {
    border-bottom: none;
}

.project-number {
    font-size: 0.82rem;
}

.project-type {
    margin-bottom: 10px;

    color: var(--muted);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.project h2 {
    max-width: 900px;

    font-size: clamp(2.5rem, 5vw, 5.8rem);
    font-weight: 500;
    line-height: 0.94;
    letter-spacing: -0.06em;
}

.project-description {
    max-width: 660px;
    margin-top: 28px;

    color: var(--muted);
    font-size: 1rem;
    line-height: 1.5;
}

.project-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;

    color: var(--muted);
    font-size: 0.86rem;
}

.project-details a {
    margin-top: auto;

    color: var(--text);
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
}


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

.about-grid {
    padding: 70px 0 110px;

    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.about-grid h2 {
    font-size: clamp(3.5rem, 7vw, 8rem);
    font-weight: 500;
    line-height: 0.88;
    letter-spacing: -0.07em;
    text-transform: uppercase;
}

.about-copy {
    max-width: 620px;

    display: flex;
    flex-direction: column;
    gap: 28px;

    color: var(--muted);
    font-size: clamp(1.2rem, 2vw, 1.8rem);
    line-height: 1.35;
}


/* ========================================
   CREDENTIALS
======================================== */

.credential-row {
    min-height: 90px;
    padding: 20px 0;

    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;

    border-bottom: 1px solid var(--line);
}

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

.credential-row p:first-child {
    font-size: clamp(1.25rem, 2vw, 2rem);
}

.credential-row p:last-child {
    color: var(--muted);
    text-align: right;
}


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

.contact {
    min-height: 75vh;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.contact h2 {
    margin: 100px 0;

    font-size: clamp(4rem, 9vw, 10rem);
    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.contact-links {
    display: flex;
    gap: 30px;
}

.contact-links a {
    border-bottom: 1px solid var(--text);
    padding-bottom: 3px;
}


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

footer {
    padding: 22px 28px;

    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

footer p:nth-child(2) {
    text-align: center;
}

footer p:nth-child(3) {
    text-align: right;
}


/* ========================================
   THESIS CASE STUDY
======================================== */

.case-study-page {
    background: var(--background);
    color: var(--text);
}


/* ========================================
   CASE STUDY HERO
======================================== */

.case-hero {
    min-height: 100vh;
    padding: 120px 28px 50px;

    display: flex;
    flex-direction: column;

    border-bottom: 1px solid var(--line);
}

.case-kicker {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;

    margin-bottom: 90px;

    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.case-kicker span:nth-child(2) {
    text-align: center;
}

.case-kicker span:nth-child(3) {
    text-align: right;
}

.case-hero h1 {
    max-width: 1500px;

    font-size: clamp(4.2rem, 9vw, 9.5rem);
    font-weight: 500;
    line-height: 0.84;
    letter-spacing: -0.075em;
    text-transform: uppercase;
}

.case-intro {
    display: grid;
    grid-template-columns: 1.35fr 1fr;
    gap: 80px;
    align-items: start;

    margin-top: 100px;
}

.case-intro-large {
    max-width: 760px;

    font-size: clamp(1.8rem, 3.2vw, 3.8rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.case-summary {
    max-width: 600px;
}

.case-summary p,
.case-body-copy p,
.result-explanation p {
    color: var(--muted);
    font-size: clamp(1rem, 1.35vw, 1.3rem);
    line-height: 1.5;
}

.case-summary p + p,
.case-body-copy p + p,
.result-explanation p + p {
    margin-top: 24px;
}

.case-meta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;

    margin-top: 90px;
    padding-top: 18px;

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

.case-meta-grid p {
    margin: 0;
}

.case-meta-label {
    margin-bottom: 9px !important;

    color: var(--muted);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


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

.case-section {
    padding: 100px 28px;
    border-bottom: 1px solid var(--line);
}

.case-section-label {
    display: grid;
    grid-template-columns: 80px 1fr;

    margin-bottom: 90px;

    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-two-column {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.case-two-column h2 {
    max-width: 800px;

    font-size: clamp(3.3rem, 6.2vw, 7.5rem);
    font-weight: 500;
    line-height: 0.87;
    letter-spacing: -0.067em;
    text-transform: uppercase;
}

.case-body-copy {
    max-width: 680px;
}


/* ========================================
   LARGE STATEMENT SECTIONS
======================================== */

.case-statement {
    padding: 120px 28px;
    border-bottom: 1px solid var(--line);
}

.statement-label {
    margin-bottom: 75px;

    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-statement blockquote {
    max-width: 1450px;

    font-size: clamp(3rem, 6.6vw, 8rem);
    font-weight: 500;
    line-height: 0.93;
    letter-spacing: -0.065em;
}

.reflection-section blockquote {
    max-width: 1500px;
    font-size: clamp(2.6rem, 5.2vw, 6.5rem);
}


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

.process-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);

    margin-top: 100px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.process-step {
    min-height: 340px;
    padding: 20px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--line);
}

.process-step:last-child {
    border-right: none;
}

.process-number {
    margin-bottom: auto;

    color: var(--muted);
    font-size: 0.76rem;
}

.process-step h3 {
    margin-bottom: 14px;

    font-size: clamp(1.35rem, 2vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
}

.process-step p:last-child {
    color: var(--muted);
    line-height: 1.5;
}


/* ========================================
   DARK ENVIRONMENTAL DATA SECTION
======================================== */

.case-section-dark {
    background: #111111;
    color: #f4f4f0;
    border-bottom-color: #494944;
}

.case-section-dark .case-section-label,
.case-section-dark .case-body-copy p {
    color: #b7b7b0;
}

.metric-list {
    margin-top: 100px;
    border-top: 1px solid #494944;
}

.metric-row {
    display: grid;
    grid-template-columns: 80px 1.5fr 1fr;
    gap: 30px;
    align-items: center;

    padding: 24px 0;

    border-bottom: 1px solid #494944;
}

.metric-row h3 {
    font-size: clamp(1.5rem, 2.6vw, 3.2rem);
    font-weight: 500;
    letter-spacing: -0.04em;
}

.metric-row p:first-child,
.metric-row p:last-child {
    color: #b7b7b0;
}

.metric-row p:last-child {
    text-align: right;
}


/* ========================================
   MODEL FLOW
======================================== */

.model-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 16px;
    align-items: center;

    margin-top: 100px;
}

.model-flow div {
    min-height: 180px;
    padding: 20px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    border: 1px solid var(--line);
}

.model-flow div span {
    color: var(--muted);
    font-size: 0.76rem;
}

.model-flow div p {
    font-size: clamp(1.1rem, 1.6vw, 1.5rem);
    font-weight: 500;
    line-height: 1.1;
}

.flow-arrow {
    color: var(--muted);
    font-size: 1.5rem;
}


/* ========================================
   RESULTS
======================================== */

.results-section {
    background: #e6e6df;
}

.results-hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 24px;
}

.result-primary,
.result-card {
    border: 1px solid var(--text);
}

.result-primary {
    min-height: 520px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-value {
    font-size: clamp(6rem, 14vw, 15rem);
    font-weight: 500;
    line-height: 0.76;
    letter-spacing: -0.09em;
}

.result-caption {
    max-width: 500px;

    font-size: clamp(1.4rem, 2.3vw, 2.5rem);
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.035em;
}

.result-secondary {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 24px;
}

.result-card {
    min-height: 248px;
    padding: 28px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.result-card p:last-child {
    max-width: 380px;

    color: var(--muted);
    font-size: 1rem;
    line-height: 1.45;
}

.result-value-small {
    font-size: clamp(4rem, 7vw, 8rem);
    font-weight: 500;
    line-height: 0.8;
    letter-spacing: -0.075em;
}

.result-explanation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;

    margin-top: 70px;
}


/* ========================================
   BUSINESS IMPACT
======================================== */

.impact-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);

    margin-top: 100px;

    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.impact-grid article {
    min-height: 350px;
    padding: 22px;

    display: flex;
    flex-direction: column;

    border-right: 1px solid var(--line);
}

.impact-grid article:last-child {
    border-right: none;
}

.impact-grid article > p:first-child {
    margin-bottom: auto;

    color: var(--muted);
    font-size: 0.76rem;
}

.impact-grid h3 {
    margin-bottom: 14px;

    font-size: clamp(1.6rem, 2.6vw, 3rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.impact-grid article > p:last-child {
    max-width: 380px;

    color: var(--muted);
    line-height: 1.5;
}


/* ========================================
   FINAL CASE STUDY LINKS
======================================== */

.case-links-section {
    padding: 100px 28px;

    background: #111111;
    color: #f4f4f0;
}

.case-links-section > p {
    margin-bottom: 70px;

    color: #b7b7b0;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.case-links {
    display: flex;
    flex-direction: column;
}

.case-links a {
    padding: 24px 0;

    border-top: 1px solid #494944;

    font-size: clamp(2rem, 4.3vw, 5.2rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.055em;
}

.case-links a:last-child {
    border-bottom: 1px solid #494944;
}


/* ========================================
   TABLET + MOBILE
======================================== */

@media (max-width: 900px) {

    .site-nav {
        padding: 18px;
    }

    .nav-links {
        gap: 14px;
    }

    .hero {
        min-height: 90vh;
        padding: 100px 18px 28px;
    }

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

    .hero-meta span:nth-child(2) {
        text-align: right;
    }

    .hero-meta span:nth-child(3) {
        display: none;
    }

    .hero h1 {
        font-size: clamp(4rem, 19vw, 7rem);
    }

    .hero-bottom {
        grid-template-columns: 1fr;
    }

    .hero-links {
        justify-content: flex-start;
        flex-wrap: wrap;
        gap: 18px;
    }

    .work,
    .about,
    .credentials,
    .contact {
        padding: 18px;
    }

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

    .project-details {
        grid-column: 2;
        margin-top: 12px;
    }

    .project-details a {
        margin-top: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        padding: 55px 0 80px;
    }

    .credential-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .credential-row p:last-child {
        text-align: left;
    }

    .contact {
        min-height: 65vh;
    }

    .contact h2 {
        margin: 80px 0;
        font-size: clamp(3.5rem, 16vw, 7rem);
    }

    footer {
        padding: 18px;
        grid-template-columns: 1fr;
        gap: 5px;
    }

    footer p:nth-child(2),
    footer p:nth-child(3) {
        text-align: left;
    }

    .case-hero {
        padding: 100px 18px 40px;
    }

    .case-kicker {
        grid-template-columns: 1fr 1fr;
        row-gap: 8px;

        margin-bottom: 65px;
    }

    .case-kicker span:nth-child(2) {
        text-align: right;
    }

    .case-kicker span:nth-child(3) {
        display: none;
    }

    .case-hero h1 {
        font-size: clamp(3.7rem, 14vw, 7rem);
    }

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

        margin-top: 65px;
    }

    .case-meta-grid {
        grid-template-columns: 1fr 1fr;
        gap: 35px 20px;

        margin-top: 65px;
    }

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

    .case-section-label {
        grid-template-columns: 50px 1fr;
        margin-bottom: 65px;
    }

    .case-two-column {
        grid-template-columns: 1fr;
        gap: 45px;
    }

    .case-statement {
        padding: 85px 18px;
    }

    .statement-label {
        margin-bottom: 55px;
    }

    .process-grid {
        grid-template-columns: 1fr;
        margin-top: 70px;
        border-bottom: none;
    }

    .process-step {
        min-height: 230px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .case-section-dark .process-step {
        border-bottom-color: #494944;
    }

    .metric-list {
        margin-top: 70px;
    }

    .metric-row {
        grid-template-columns: 50px 1fr;
        gap: 16px;
    }

    .metric-row p:last-child {
        grid-column: 2;
        text-align: left;
    }

    .model-flow {
        grid-template-columns: 1fr;
        margin-top: 70px;
    }

    .flow-arrow {
        justify-self: center;
        transform: rotate(90deg);
    }

    .results-hero,
    .result-explanation {
        grid-template-columns: 1fr;
    }

    .result-primary {
        min-height: 420px;
    }

    .impact-grid {
        grid-template-columns: 1fr;
        margin-top: 70px;
        border-bottom: none;
    }

    .impact-grid article {
        min-height: 280px;
        border-right: none;
        border-bottom: 1px solid var(--line);
    }

    .case-links-section {
        padding: 75px 18px;
    }
}


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

@media (max-width: 600px) {

    .hero h1 {
        font-size: clamp(3.5rem, 18vw, 5.5rem);
    }

    .hero-bottom > p {
        font-size: 1.05rem;
    }

    .project {
        grid-template-columns: 28px 1fr;
    }

    .project h2 {
        font-size: clamp(2.4rem, 11vw, 4rem);
    }

    .about-grid h2 {
        font-size: clamp(3.2rem, 15vw, 5rem);
    }

    .contact h2 {
        font-size: clamp(3.3rem, 15vw, 5.5rem);
    }

    .case-hero h1 {
        font-size: clamp(3.4rem, 15vw, 5.3rem);
    }

    .case-intro-large {
        font-size: clamp(1.8rem, 9vw, 3rem);
    }

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

    .case-two-column h2 {
        font-size: clamp(3rem, 14vw, 5rem);
    }

    .case-statement blockquote {
        font-size: clamp(2.7rem, 12vw, 4.8rem);
    }

    .reflection-section blockquote {
        font-size: clamp(2.5rem, 11vw, 4.3rem);
    }

    .result-primary,
    .result-card {
        padding: 18px;
    }

    .result-value {
        font-size: clamp(5rem, 25vw, 8rem);
    }

    .result-value-small {
        font-size: clamp(4rem, 20vw, 6.5rem);
    }

    .case-links a {
        font-size: clamp(2rem, 10vw, 3.5rem);
    }
}
