:root {
    --background: #f8f5f1;
    --surface: #fffdfb;
    --soft-purple: #eee7f3;
    --purple: #6d4b7e;
    --light-purple: #b79ac7;
    --text: #242027;
    --muted-text: #716a73;
    --border: #dcd3df;

    --container: 1180px;
    --transition: 250ms ease;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--background);
    color: var(--text);
    font-family: "DM Sans", sans-serif;
    line-height: 1.6;
}

body.menu-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    color: inherit;
    font: inherit;
}

img {
    display: block;
    max-width: 100%;
}

.container {
    width: min(calc(100% - 48px), var(--container));
    margin-inline: auto;
}

/* NAVIGATION */

.site-header {
    position: relative;
    z-index: 100;
}

.navigation {
    min-height: 88px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.95rem;
    font-weight: 600;
}

.logo span {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    font-family: "Playfair Display", serif;
    font-style: italic;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 0.9rem;
}

.nav-links a {
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--purple);
}

.nav-links .contact-link {
    padding: 11px 18px;
    border-radius: 100px;
    background: var(--text);
    color: var(--background);
}

.nav-links .contact-link:hover {
    background: var(--purple);
    color: white;
}

.menu-button {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    background: transparent;
}

.menu-button span {
    display: block;
    width: 24px;
    height: 1px;
    margin: 7px auto;
    background: var(--text);
    transition: transform var(--transition);
}

/* TYPOGRAPHY */

.eyebrow {
    margin-bottom: 20px;
    color: var(--purple);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2 {
    font-family: "Playfair Display", serif;
    font-weight: 500;
}

h1 {
    max-width: 850px;
    font-size: clamp(3rem, 7vw, 5.8rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

h1 em,
.contact-section h2 em {
    color: var(--purple);
    font-weight: 500;
}

h2 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: -0.03em;
}

.text-link {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    padding-bottom: 5px;
    border-bottom: 1px solid var(--text);
    font-size: 0.9rem;
    font-weight: 600;
}

/* HERO */

.hero {
    padding: 100px 0 76px;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.65fr);
    gap: 70px;
    align-items: end;
}

.hero-introduction {
    padding-bottom: 6px;
}

.hero-introduction p {
    margin-bottom: 28px;
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.8;
}

/* DISCIPLINE STRIP */

.discipline-strip {
    overflow: hidden;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.discipline-track {
    display: flex;
    justify-content: center;
    gap: 36px;
    min-width: max-content;
    padding: 16px 24px;
    color: var(--muted-text);
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.discipline-track span:not(:last-child)::after {
    content: "✦";
    margin-left: 36px;
    color: var(--light-purple);
}

/* WORK SECTION */

.work-section {
    padding: 100px 0;
}

.section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
}

.section-heading p:last-child {
    max-width: 470px;
    color: var(--muted-text);
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 32px;
}

.filter-button {
    min-height: 40px;
    padding: 8px 16px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: transparent;
    cursor: pointer;
    transition:
        background var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.filter-button:hover,
.filter-button.active {
    border-color: var(--text);
    background: var(--text);
    color: var(--background);
}

/* PROJECT CARDS */

.project-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.project-card {
    grid-column: span 4;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
    transition:
        transform var(--transition),
        opacity var(--transition);
}

.project-card.project-large {
    grid-column: span 8;
}

.project-card:hover {
    transform: translateY(-5px);
}

.project-card.is-hidden {
    display: none;
}

.project-image {
    position: relative;
    min-height: 310px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 28px;
    color: white;
}

.project-number {
    position: absolute;
    top: 22px;
    left: 24px;
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.project-image-title {
    position: relative;
    z-index: 2;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1;
}

.project-image-title small {
    display: block;
    margin-top: 12px;
    font-family: "DM Sans", sans-serif;
    font-size: 0.78rem;
    font-weight: 400;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dark-text {
    color: #4e3b43;
}

/* TEMPORARY PROJECT ARTWORK */

.miso-image {
    background:
        radial-gradient(
            circle at 76% 28%,
            #dfcfea 0 10%,
            transparent 11%
        ),
        linear-gradient(
            135deg,
            #26182f,
            #725184 60%,
            #cbb4d7
        );
}

.framehouse-image {
    background:
        linear-gradient(
            135deg,
            rgba(32, 25, 22, 0.25),
            rgba(32, 25, 22, 0.7)
        ),
        linear-gradient(
            135deg,
            #c5ab91,
            #56483f
        );
}

.invitation-image {
    background:
        radial-gradient(
            circle at 70% 30%,
            #f9f0ea 0 12%,
            transparent 13%
        ),
        linear-gradient(
            135deg,
            #eadfd6,
            #c19fa9
        );
}

.gaming-image {
    background:
        radial-gradient(
            circle at 75% 28%,
            #d560bd 0 5%,
            transparent 6%
        ),
        linear-gradient(
            135deg,
            #111528,
            #34417e 55%,
            #a34e97
        );
}

.project-details {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 22px 24px 24px;
}

.project-details h3 {
    margin-bottom: 4px;
    font-size: 1rem;
    font-weight: 600;
}

.project-details p,
.project-details span {
    color: var(--muted-text);
    font-size: 0.8rem;
}

.project-details span {
    max-width: 180px;
    text-align: right;
}

.view-all-wrapper {
    margin-top: 44px;
    text-align: center;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 100px;
    background: var(--text);
    color: var(--background);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background var(--transition);
}

.primary-button:hover {
    background: var(--purple);
}

/* EXPERIENCE */

.experience-section {
    padding: 100px 0;
    background: var(--soft-purple);
}

.experience-grid {
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 90px;
}

.experience-introduction > p:last-child {
    max-width: 400px;
    margin-top: 24px;
    color: var(--muted-text);
}

.experience-item {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 32px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.experience-item:last-child {
    border-bottom: 1px solid var(--border);
}

.experience-item h3 {
    font-size: 1rem;
}

.experience-item p {
    color: var(--muted-text);
}

/* ABOUT PREVIEW */

.about-preview {
    padding: 110px 0;
}

.about-preview-grid {
    display: grid;
    grid-template-columns: 0.6fr 1.4fr;
    gap: 80px;
}

.large-paragraph {
    max-width: 850px;
    margin-bottom: 32px;
    font-family: "Playfair Display", serif;
    font-size: clamp(2rem, 4vw, 3.6rem);
    line-height: 1.2;
}

/* CONTACT */

.contact-section {
    padding: 100px 0;
    background: var(--text);
    color: var(--background);
}

.contact-section .eyebrow {
    color: var(--light-purple);
}

.contact-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.contact-section h2 {
    max-width: 800px;
    font-size: clamp(3rem, 7vw, 5.5rem);
}

.circle-button {
    flex-shrink: 0;
    width: 145px;
    height: 145px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--purple);
    color: white;
    transition:
        transform var(--transition),
        background var(--transition);
}

.circle-button:hover {
    transform: rotate(5deg) scale(1.04);
    background: #805a92;
}

/* FOOTER */

.site-footer {
    padding: 44px 0;
    background: var(--text);
    color: var(--background);
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 30px;
    align-items: center;
}

.footer-content p,
.footer-links,
.copyright {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.8rem;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a:hover {
    color: white;
}

/* SCROLL ANIMATION */

.reveal {
    opacity: 0;
    transform: translateY(25px);
    transition:
        opacity 700ms ease,
        transform 700ms ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* TABLET */

@media (max-width: 900px) {
    .hero-grid,
    .experience-grid,
    .about-preview-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .hero {
        padding-top: 70px;
    }

    .project-card,
    .project-card.project-large {
        grid-column: span 6;
    }

    .experience-item {
        grid-template-columns: 1fr;
        gap: 10px;
    }
}

/* MOBILE */

@media (max-width: 700px) {
    .container {
        width: min(calc(100% - 32px), var(--container));
    }

    .navigation {
        min-height: 74px;
    }

    .menu-button {
        display: block;
        cursor: pointer;
    }

    .nav-links {
        position: absolute;
        top: 74px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 16px;
        border: 1px solid var(--border);
        border-radius: 16px;
        background: var(--surface);
        box-shadow: 0 15px 40px rgba(42, 30, 48, 0.12);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 14px;
    }

    .nav-links .contact-link {
        margin-top: 8px;
        text-align: center;
    }

    .menu-button.active span:first-child {
        transform: translateY(4px) rotate(45deg);
    }

    .menu-button.active span:last-child {
        transform: translateY(-4px) rotate(-45deg);
    }

    .hero {
        padding: 58px 0 50px;
    }

    .hero-grid {
        gap: 32px;
    }

    .discipline-track {
        justify-content: flex-start;
    }

    .work-section,
    .experience-section,
    .about-preview,
    .contact-section {
        padding: 74px 0;
    }

    .section-heading,
    .contact-grid {
        align-items: flex-start;
        flex-direction: column;
    }

    .project-card,
    .project-card.project-large {
        grid-column: span 12;
    }

    .project-image {
        min-height: 260px;
    }

    .project-details {
        flex-direction: column;
    }

    .project-details span {
        max-width: none;
        text-align: left;
    }

    .about-preview-grid {
        gap: 14px;
    }

    .circle-button {
        width: 120px;
        height: 120px;
    }

    .footer-content {
        grid-template-columns: 1fr;
    }

    .footer-links {
        flex-wrap: wrap;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }
}

/* ==================================================
   CASE STUDY PAGES
================================================== */

.case-study-hero {
    padding: 65px 0 70px;
}

.back-link {
    display: inline-block;
    margin-bottom: 65px;
    color: var(--muted-text);
    font-size: 0.9rem;
    transition: color var(--transition);
}

.back-link:hover {
    color: var(--purple);
}

.case-study-heading {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    gap: 70px;
    align-items: end;
}

.case-study-heading h1 {
    font-size: clamp(5rem, 14vw, 11rem);
    line-height: 0.8;
}

.case-study-subtitle {
    margin-top: 32px;
    color: var(--purple);
    font-size: clamp(1.1rem, 2vw, 1.5rem);
}

.case-study-introduction {
    padding-bottom: 8px;
}

.case-study-introduction p {
    color: var(--muted-text);
    font-size: 1.08rem;
    line-height: 1.8;
}

.project-information {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin-top: 70px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.project-information span {
    display: block;
    margin-bottom: 7px;
    color: var(--muted-text);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.project-information p {
    font-size: 0.9rem;
}

/* MISO FEATURED VISUAL */

.case-study-visual {
    padding-bottom: 100px;
}

.miso-showcase {
    min-height: 650px;
    position: relative;
    display: grid;
    grid-template-columns: 0.75fr 1.5fr 0.75fr;
    gap: 40px;
    align-items: center;
    overflow: hidden;
    padding: 70px;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 75% 22%,
            rgba(224, 202, 236, 0.75),
            transparent 25%
        ),
        linear-gradient(
            135deg,
            #24172d,
            #6d4b7e 56%,
            #b79ac7
        );
    color: white;
}

.showcase-copy {
    position: relative;
    z-index: 2;
    text-align: center;
}

.showcase-copy > span {
    display: block;
    margin-bottom: 22px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.showcase-copy h2 {
    font-size: clamp(2.3rem, 4vw, 4rem);
    line-height: 1.05;
}

.showcase-copy h2 em {
    color: #e4cee9;
}

.phone-mockup {
    position: relative;
    z-index: 2;
    width: 220px;
    min-height: 445px;
    margin-inline: auto;
    padding: 9px;
    border: 3px solid rgba(255, 255, 255, 0.7);
    border-radius: 32px;
    background: #1e1523;
    box-shadow: 0 25px 55px rgba(20, 12, 24, 0.3);
}

.phone-left {
    transform: rotate(-7deg);
}

.phone-right {
    transform: rotate(7deg);
}

.phone-screen {
    min-height: 421px;
    padding: 28px 18px;
    border-radius: 23px;
    background: #f8f5f1;
    color: #29212d;
}

.mockup-label {
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
}

.mockup-balance {
    margin-top: 42px;
}

.mockup-balance small {
    display: block;
    color: #766e78;
    font-size: 0.7rem;
}

.mockup-balance strong {
    display: block;
    margin-top: 8px;
    font-size: 1.35rem;
}

.mockup-chart {
    height: 150px;
    display: flex;
    align-items: flex-end;
    gap: 10px;
    margin-top: 60px;
}

.mockup-chart span {
    flex: 1;
    border-radius: 12px 12px 3px 3px;
    background: var(--purple);
}

.mood-screen > p {
    margin-top: 60px;
    font-family: "Playfair Display", serif;
    font-size: 1.3rem;
}

.mood-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 24px;
}

.mood-options span {
    display: grid;
    place-items: center;
    padding: 12px;
    border-radius: 12px;
    background: #ebe2ef;
    font-size: 1.4rem;
}

.mood-insight {
    margin-top: 25px;
    padding: 14px;
    border-radius: 12px;
    background: #6d4b7e;
    color: white;
    font-size: 0.72rem;
    line-height: 1.5;
}

/* CASE STUDY CONTENT */

.case-study-section {
    padding: 100px 0;
    border-top: 1px solid var(--border);
}

.alternate-section {
    background: var(--surface);
}

.case-study-columns {
    display: grid;
    grid-template-columns: 0.65fr 1.35fr;
    gap: 100px;
}

.section-number {
    margin-bottom: 20px;
    color: var(--purple);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
}

.case-study-content {
    max-width: 760px;
}

.case-study-content > p {
    margin-bottom: 22px;
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.8;
}

.case-study-content .case-study-lead {
    color: var(--text);
    font-family: "Playfair Display", serif;
    font-size: clamp(1.7rem, 3vw, 2.7rem);
    line-height: 1.3;
}

/* PROBLEM LIST */

.problem-list {
    margin-top: 45px;
}

.problem-list article {
    display: grid;
    grid-template-columns: 55px 1fr;
    gap: 25px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.problem-list article:last-child {
    border-bottom: 1px solid var(--border);
}

.problem-list article > span {
    color: var(--purple);
    font-size: 0.8rem;
}

.problem-list h3 {
    margin-bottom: 8px;
    font-size: 1rem;
}

.problem-list p {
    color: var(--muted-text);
}

/* OBJECTIVES */

.objective-list {
    counter-reset: objective;
    list-style: none;
}

.objective-list li {
    position: relative;
    padding: 28px 0 28px 65px;
    border-top: 1px solid var(--border);
    color: var(--muted-text);
    font-size: 1.05rem;
    line-height: 1.8;
}

.objective-list li:last-child {
    border-bottom: 1px solid var(--border);
}

.objective-list li::before {
    counter-increment: objective;
    content: "0" counter(objective);
    position: absolute;
    top: 31px;
    left: 0;
    color: var(--purple);
    font-size: 0.8rem;
}

/* FEATURES */

.purple-section {
    background: #2b1d32;
    color: white;
}

.features-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 50px;
}

.features-heading > p {
    max-width: 450px;
    color: rgba(255, 255, 255, 0.65);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    min-height: 260px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.feature-card > span {
    display: block;
    margin-bottom: 70px;
    color: var(--light-purple);
    font-size: 0.75rem;
}

.feature-card h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.feature-card p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* PROCESS */

.process-list article {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 30px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
}

.process-list article:last-child {
    border-bottom: 1px solid var(--border);
}

.process-list span {
    color: var(--purple);
    font-weight: 600;
}

.process-list p {
    color: var(--muted-text);
}

/* TOOLS */

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
}

.tools-grid > div {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
    background: var(--background);
}

.tools-grid span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted-text);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.tools-grid strong {
    font-size: 1rem;
}

/* TESTING */

.testing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-top: 40px;
}

.testing-grid article {
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.testing-grid h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.testing-grid p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

/* OUTCOME */

.outcome-section {
    background: var(--soft-purple);
}

/* NEXT PROJECT */

.next-project {
    padding: 100px 0;
}

.next-project-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 28px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 7vw, 6rem);
    line-height: 1;
    transition: color var(--transition);
}

.next-project-link:hover {
    color: var(--purple);
}

/* CASE STUDY TABLET */

@media (max-width: 950px) {
    .case-study-heading,
    .case-study-columns {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .project-information {
        grid-template-columns: repeat(2, 1fr);
    }

    .miso-showcase {
        grid-template-columns: 1fr 1fr;
        padding: 50px 30px;
    }

    .showcase-copy {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .phone-left,
    .phone-right {
        transform: none;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .testing-grid {
        grid-template-columns: 1fr;
    }
}

/* CASE STUDY MOBILE */

@media (max-width: 650px) {
    .case-study-hero {
        padding-top: 40px;
    }

    .back-link {
        margin-bottom: 45px;
    }

    .case-study-heading h1 {
        font-size: clamp(4.5rem, 24vw, 7rem);
    }

    .project-information {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .case-study-visual {
        padding-bottom: 70px;
    }

    .miso-showcase {
        min-height: auto;
        grid-template-columns: 1fr;
        padding: 45px 20px;
    }

    .showcase-copy,
    .phone-left,
    .phone-right {
        grid-column: auto;
        grid-row: auto;
    }

    .phone-mockup {
        width: 205px;
    }

    .case-study-section {
        padding: 75px 0;
    }

    .feature-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .features-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .process-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .next-project {
        padding: 70px 0;
    }
}

/* ==================================================
   FRAMEHOUSE CASE STUDY
================================================== */

.framehouse-hero .eyebrow,
.framehouse-hero .case-study-subtitle {
    color: #856c5d;
}

.framehouse-title {
    font-size: clamp(4rem, 11vw, 9rem) !important;
}

.framehouse-featured {
    padding-bottom: 100px;
}

.framehouse-cover {
    min-height: 650px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    padding: 70px;
    border-radius: 28px;
    background:
        linear-gradient(
            110deg,
            rgba(28, 23, 21, 0.96),
            rgba(58, 45, 39, 0.72)
        ),
        linear-gradient(
            135deg,
            #bba28b,
            #332925
        );
    color: white;
}

.framehouse-cover::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -80px;
    width: 460px;
    height: 460px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 50%;
}

.framehouse-cover::after {
    content: "";
    position: absolute;
    right: 120px;
    bottom: -190px;
    width: 380px;
    height: 380px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
}

.cover-content {
    position: relative;
    z-index: 2;
    max-width: 750px;
}

.cover-content > p {
    margin-bottom: 24px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.cover-content h2 {
    font-size: clamp(2.8rem, 6vw, 5.5rem);
    line-height: 1;
}

.cover-content h2 em {
    color: #d9c3b1;
}

.camera-frame {
    position: absolute;
    inset: 35px;
    z-index: 1;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.camera-frame > span:nth-child(2) {
    position: absolute;
    top: 20px;
    left: 48px;
    font-size: 0.75rem;
    letter-spacing: 0.12em;
}

.recording-light {
    position: absolute;
    top: 23px;
    left: 24px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d74d4d;
}

.camera-frame small {
    position: absolute;
    right: 22px;
    bottom: 18px;
    color: rgba(255, 255, 255, 0.7);
}

.camera-focus {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 95px;
    height: 70px;
    transform: translate(-50%, -50%);
}

.camera-focus span {
    position: absolute;
    width: 22px;
    height: 22px;
}

.camera-focus span:nth-child(1) {
    top: 0;
    left: 0;
    border-top: 1px solid white;
    border-left: 1px solid white;
}

.camera-focus span:nth-child(2) {
    top: 0;
    right: 0;
    border-top: 1px solid white;
    border-right: 1px solid white;
}

.camera-focus span:nth-child(3) {
    bottom: 0;
    left: 0;
    border-bottom: 1px solid white;
    border-left: 1px solid white;
}

.camera-focus span:nth-child(4) {
    right: 0;
    bottom: 0;
    border-right: 1px solid white;
    border-bottom: 1px solid white;
}

/* RESPONSIBILITIES */

.framehouse-dark {
    background: #241f1d;
    color: white;
}

.framehouse-dark .section-number {
    color: #d2b9a7;
}

.framehouse-dark .features-heading > p {
    color: rgba(255, 255, 255, 0.6);
}

.framehouse-responsibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.framehouse-responsibility {
    min-height: 290px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.035);
}

.framehouse-responsibility > span {
    display: block;
    margin-bottom: 65px;
    color: #d2b9a7;
    font-size: 0.75rem;
}

.framehouse-responsibility h3 {
    margin-bottom: 14px;
    font-size: 1rem;
}

.framehouse-responsibility p {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.9rem;
}

/* ASSIGNMENT DETAILS */

.assignment-details {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 42px;
}

.assignment-details > div {
    padding: 22px;
    border: 1px solid var(--border);
    border-radius: 14px;
}

.assignment-details span {
    display: block;
    margin-bottom: 9px;
    color: var(--muted-text);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.assignment-details strong {
    font-size: 0.95rem;
}

/* EDITORIAL GALLERY */

.portfolio-gallery-section {
    padding: 100px 0;
    background: #ede8e3;
}

.gallery-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 45px;
}

.gallery-heading > p {
    max-width: 430px;
    color: var(--muted-text);
}

.editorial-gallery {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 18px;
}

.gallery-item {
    grid-column: span 5;
}

.gallery-wide {
    grid-column: span 7;
}

.gallery-tall {
    grid-row: span 2;
}

.gallery-placeholder {
    min-height: 340px;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 16px;
}

.gallery-tall .gallery-placeholder {
    min-height: 600px;
}

.gallery-one {
    background:
        linear-gradient(
            135deg,
            rgba(20, 18, 17, 0.15),
            rgba(20, 18, 17, 0.68)
        ),
        linear-gradient(135deg, #cab19c, #5b4940);
}

.gallery-two {
    background:
        linear-gradient(
            180deg,
            rgba(38, 30, 27, 0.05),
            rgba(38, 30, 27, 0.75)
        ),
        linear-gradient(135deg, #dfcbb9, #725c50);
}

.gallery-three {
    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.1),
            rgba(37, 28, 25, 0.72)
        ),
        linear-gradient(135deg, #a98c78, #3d302b);
}

.gallery-four {
    background:
        linear-gradient(
            135deg,
            rgba(24, 19, 17, 0.15),
            rgba(24, 19, 17, 0.72)
        ),
        linear-gradient(135deg, #ccb49f, #604d43);
}

.gallery-placeholder span {
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 100px;
    background: rgba(0, 0, 0, 0.15);
    color: white;
    font-size: 0.8rem;
    backdrop-filter: blur(6px);
}

.gallery-item figcaption {
    padding-top: 12px;
    color: var(--muted-text);
    font-size: 0.8rem;
}

/* SKILL TAGS */

.skill-tag-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.skill-tag-grid span {
    padding: 13px 18px;
    border: 1px solid var(--border);
    border-radius: 100px;
    background: var(--surface);
    font-size: 0.9rem;
}

.framehouse-reflection {
    background: #e3d7cd;
}

/* FRAMEHOUSE TABLET */

@media (max-width: 950px) {
    .framehouse-responsibility-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-item,
    .gallery-wide {
        grid-column: span 6;
    }
}

/* FRAMEHOUSE MOBILE */

@media (max-width: 650px) {
    .framehouse-cover {
        min-height: 560px;
        padding: 40px 30px;
    }

    .camera-frame {
        inset: 20px;
    }

    .framehouse-responsibility-grid,
    .assignment-details {
        grid-template-columns: 1fr;
    }

    .framehouse-responsibility {
        min-height: auto;
    }

    .framehouse-responsibility > span {
        margin-bottom: 40px;
    }

    .gallery-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .gallery-item,
    .gallery-wide {
        grid-column: span 12;
    }

    .gallery-tall .gallery-placeholder {
        min-height: 420px;
    }
}

/* ==================================================
   WORK PAGE
================================================== */

.work-page-hero {
    padding: 100px 0 90px;
}

.work-page-heading {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 80px;
    align-items: end;
}

.work-page-heading h1 {
    font-size: clamp(3.5rem, 8vw, 7rem);
}

.work-page-introduction {
    padding-bottom: 7px;
}

.work-page-introduction p {
    color: var(--muted-text);
    font-size: 1rem;
    line-height: 1.8;
}

.all-work-section {
    padding: 30px 0 110px;
}

.work-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--border);
}

.project-counter {
    color: var(--muted-text);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.work-filter-row .filter-buttons {
    margin-bottom: 0;
}

.work-page-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
}

.work-page-card {
    grid-column: span 5;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--surface);
}

.work-page-card.work-page-featured {
    grid-column: span 7;
}

.work-page-image {
    min-height: 390px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 28px;
    color: white;
}

.work-card-title {
    position: relative;
    z-index: 2;
}

.work-card-title h2 {
    margin-bottom: 8px;
    font-size: clamp(2.2rem, 4vw, 4rem);
}

.work-card-title p {
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.dark-card-title {
    color: #4e3b43;
}

.work-card-information {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 25px;
    padding: 22px 24px 25px;
}

.work-card-information p {
    margin-bottom: 5px;
    color: var(--muted-text);
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.work-card-information h3 {
    font-size: 1rem;
    font-weight: 600;
}

.work-card-information > span {
    padding-top: 3px;
    color: var(--muted-text);
    font-size: 0.78rem;
    text-align: right;
}

/* ADDITIONAL PROJECT ARTWORK */

.wedding-image {
    background:
        linear-gradient(
            135deg,
            rgba(81, 49, 55, 0.2),
            rgba(56, 30, 39, 0.78)
        ),
        linear-gradient(
            135deg,
            #d5b3b5,
            #75505a
        );
}

.dormbuddy-image {
    background:
        radial-gradient(
            circle at 72% 28%,
            rgba(255, 255, 255, 0.45) 0 9%,
            transparent 10%
        ),
        linear-gradient(
            135deg,
            #5b7c8d,
            #97b8bd
        );
}

.safeher-image {
    background:
        radial-gradient(
            circle at 75% 30%,
            rgba(255, 255, 255, 0.26) 0 8%,
            transparent 9%
        ),
        linear-gradient(
            135deg,
            #442a4e,
            #aa6b9d
        );
}

.branding-image {
    background:
        radial-gradient(
            circle at 24% 30%,
            #f8eee4 0 13%,
            transparent 14%
        ),
        radial-gradient(
            circle at 72% 65%,
            #be907b 0 11%,
            transparent 12%
        ),
        linear-gradient(
            135deg,
            #e8d6c8,
            #c8a89a
        );
}

/* TABLET */

@media (max-width: 900px) {
    .work-page-heading {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .work-filter-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .work-page-card,
    .work-page-card.work-page-featured {
        grid-column: span 6;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .work-page-hero {
        padding: 65px 0;
    }

    .all-work-section {
        padding-bottom: 75px;
    }

    .work-page-card,
    .work-page-card.work-page-featured {
        grid-column: span 12;
    }

    .work-page-image {
        min-height: 300px;
    }

    .work-card-information {
        flex-direction: column;
    }

    .work-card-information > span {
        text-align: left;
    }
}

/* ==================================================
   DIGITAL INVITATION CASE STUDY
================================================== */

.invitation-case-hero .eyebrow,
.invitation-case-hero .case-study-subtitle {
    color: #8c4d5c;
}

.invitation-title {
    max-width: 900px;
    font-size: clamp(4rem, 10vw, 8rem) !important;
}

.invitation-showcase-section {
    padding-bottom: 100px;
}

.invitation-showcase {
    min-height: 680px;
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 70px;
    align-items: center;
    overflow: hidden;
    padding: 80px;
    border-radius: 28px;
    background:
        radial-gradient(
            circle at 75% 20%,
            rgba(255, 245, 232, 0.3),
            transparent 24%
        ),
        linear-gradient(
            135deg,
            #581e2d,
            #823b4a 52%,
            #d7b4a4
        );
    color: white;
}

.invitation-copy {
    position: relative;
    z-index: 2;
}

.invitation-copy > p {
    margin-bottom: 25px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.invitation-copy h2 {
    font-size: clamp(2.8rem, 5vw, 5rem);
    line-height: 1.05;
}

.invitation-copy h2 em {
    color: #efd7c8;
}

.invitation-envelope {
    width: min(100%, 390px);
    height: 290px;
    position: relative;
    display: flex;
    justify-content: center;
    margin-inline: auto;
    background: #ead7c6;
    box-shadow: 0 30px 70px rgba(48, 15, 25, 0.3);
}

.invitation-envelope::before,
.invitation-envelope::after {
    content: "";
    position: absolute;
    bottom: 0;
    width: 0;
    height: 0;
    border-style: solid;
}

.invitation-envelope::before {
    left: 0;
    border-width: 145px 0 0 195px;
    border-color: transparent transparent transparent #d7bda9;
}

.invitation-envelope::after {
    right: 0;
    border-width: 145px 195px 0 0;
    border-color: transparent #cba992 transparent transparent;
}

.envelope-card {
    width: 78%;
    height: 255px;
    position: absolute;
    bottom: 55px;
    z-index: 2;
    padding: 48px 20px;
    background: #fff9f1;
    color: #6d2e3d;
    text-align: center;
}

.envelope-card > span {
    font-family: "Playfair Display", serif;
    font-size: 2.8rem;
}

.envelope-card small {
    margin-inline: 10px;
    font-size: 1rem;
}

.envelope-card p {
    margin-top: 30px;
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.envelope-flap {
    position: absolute;
    top: 0;
    z-index: 3;
    width: 0;
    height: 0;
    border-top: 140px solid #e3cbb8;
    border-right: 195px solid transparent;
    border-left: 195px solid transparent;
}

.envelope-button {
    position: absolute;
    bottom: -55px;
    z-index: 5;
    padding: 12px 20px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 100px;
    color: white;
    font-size: 0.8rem;
}

/* SOFT SECTION */

.invitation-soft-section {
    background: #f0e2dc;
}

.invitation-problem-list article {
    border-color: #d7bfb7;
}

/* DARK FEATURE SECTION */

.invitation-dark-section {
    background: #511f2c;
    color: white;
}

.invitation-dark-section .section-number {
    color: #dfb7ad;
}

.invitation-dark-section .features-heading > p {
    color: rgba(255, 255, 255, 0.65);
}

.invitation-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.invitation-feature {
    min-height: 265px;
    padding: 28px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.04);
}

.invitation-feature > span {
    display: block;
    margin-bottom: 65px;
    color: #dfb7ad;
    font-size: 0.75rem;
}

.invitation-feature h3 {
    margin-bottom: 12px;
    font-size: 1rem;
}

.invitation-feature p {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.9rem;
}

/* USER FLOW */

.invitation-flow-heading {
    margin-bottom: 45px;
}

.invitation-flow {
    display: grid;
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    gap: 18px;
    align-items: center;
}

.invitation-flow article {
    min-height: 215px;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--surface);
}

.invitation-flow article > span {
    display: block;
    margin-bottom: 50px;
    color: #8c4d5c;
    font-size: 0.75rem;
}

.invitation-flow h3 {
    margin-bottom: 8px;
}

.invitation-flow p {
    color: var(--muted-text);
    font-size: 0.88rem;
}

.flow-arrow {
    color: #8c4d5c;
    font-size: 1.2rem;
}

/* SCREEN PREVIEWS */

.invitation-screens-section {
    padding: 100px 0;
    background: #e8d6cc;
}

.invitation-screen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.invitation-screen-placeholder {
    aspect-ratio: 9 / 16;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    border-radius: 25px;
    background:
        linear-gradient(
            rgba(65, 25, 35, 0.2),
            rgba(65, 25, 35, 0.7)
        ),
        linear-gradient(135deg, #b67c83, #672838);
    color: white;
    text-align: center;
}

.screen-two {
    background:
        linear-gradient(
            rgba(255, 255, 255, 0.1),
            rgba(80, 39, 47, 0.45)
        ),
        linear-gradient(135deg, #e8d3c1, #a76c76);
}

.screen-three {
    background:
        linear-gradient(
            rgba(60, 24, 33, 0.1),
            rgba(60, 24, 33, 0.65)
        ),
        linear-gradient(135deg, #c79a8d, #703040);
}

.invitation-screen-placeholder span {
    margin-bottom: 60px;
    font-size: 0.75rem;
}

.invitation-screen-placeholder strong {
    font-family: "Playfair Display", serif;
    font-size: 2rem;
}

.invitation-screen-placeholder small {
    margin-top: 12px;
}

.invitation-screen figcaption {
    padding-top: 12px;
    color: var(--muted-text);
    font-size: 0.8rem;
}

.invitation-reflection {
    background: #f0e2dc;
}

/* TABLET */

@media (max-width: 950px) {
    .invitation-showcase {
        grid-template-columns: 1fr;
        gap: 100px;
        padding: 60px 45px 100px;
    }

    .invitation-feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .invitation-flow {
        grid-template-columns: repeat(2, 1fr);
    }

    .flow-arrow {
        display: none;
    }
}

/* MOBILE */

@media (max-width: 650px) {
    .invitation-title {
        font-size: clamp(3.5rem, 18vw, 5.5rem) !important;
    }

    .invitation-showcase {
        min-height: auto;
        padding: 50px 22px 100px;
    }

    .invitation-envelope {
        width: 290px;
        height: 220px;
    }

    .invitation-envelope::before {
        border-width: 110px 0 0 145px;
    }

    .invitation-envelope::after {
        border-width: 110px 145px 0 0;
    }

    .envelope-flap {
        border-top-width: 105px;
        border-right-width: 145px;
        border-left-width: 145px;
    }

    .envelope-card {
        height: 210px;
        bottom: 45px;
        padding-top: 35px;
    }

    .invitation-feature-grid,
    .invitation-flow,
    .invitation-screen-grid {
        grid-template-columns: 1fr;
    }

    .invitation-feature {
        min-height: auto;
    }

    .invitation-feature > span {
        margin-bottom: 40px;
    }

    .invitation-flow article {
        min-height: auto;
    }

    .invitation-flow article > span {
        margin-bottom: 35px;
    }

    .invitation-screen {
        max-width: 320px;
        margin-inline: auto;
    }
}