/* Portfolio homepage */
:root {
    --ink: #111a1d;
    --ink-soft: #253237;
    --paper: #f3efe6;
    --paper-deep: #e8e1d4;
    --surface: #fffdf8;
    --line: #d6cfc2;
    --muted: #657176;
    --coral: #e65b3c;
    --coral-dark: #be412a;
    --teal: #167c74;
    --violet: #6f64b6;
    --yellow: #edc55b;
    --radius-sm: 12px;
    --radius-md: 22px;
    --radius-lg: 34px;
    --shadow: 0 24px 70px rgb(17 26 29 / 12%);
    --transition: 180ms ease;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 90px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    text-rendering: optimizeLegibility;
}

body,
button {
    font-size: 16px;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 4px;
}

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 2000;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--ink);
    color: white;
    transform: translateY(-160%);
}

.skip-link:focus {
    transform: translateY(0);
}

.container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    border-bottom: 1px solid rgb(17 26 29 / 10%);
    background: rgb(243 239 230 / 90%);
    backdrop-filter: blur(18px);
}

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

.nav-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--ink);
    font-weight: 760;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--ink);
    color: var(--surface);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-link {
    color: var(--ink-soft);
    font-size: 0.9rem;
    font-weight: 680;
    text-decoration: none;
}

.nav-link:hover {
    color: var(--coral-dark);
}

.nav-contact {
    padding: 9px 16px;
    border: 1px solid var(--ink);
    border-radius: 999px;
}

.nav-contact:hover {
    background: var(--ink);
    color: white;
}

.mobile-menu-toggle {
    display: none;
    width: 44px;
    height: 44px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--ink);
    color: white;
    cursor: pointer;
}

.hero {
    position: relative;
    overflow: hidden;
    padding: 88px 0 105px;
}

.hero::before {
    position: absolute;
    top: -240px;
    right: -190px;
    width: 620px;
    height: 620px;
    border: 1px solid rgb(17 26 29 / 11%);
    border-radius: 50%;
    content: "";
    box-shadow: 0 0 0 80px rgb(17 26 29 / 2.5%), 0 0 0 160px rgb(17 26 29 / 2%);
}

.hero-grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(380px, 0.88fr);
    align-items: center;
    gap: clamp(50px, 7vw, 100px);
}

.eyebrow,
.section-label,
.project-type,
.case-number {
    margin: 0 0 20px;
    color: var(--coral-dark);
    font-size: 0.76rem;
    font-weight: 820;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero h1 {
    max-width: 790px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(3.35rem, 6.3vw, 6.55rem);
    font-weight: 500;
    letter-spacing: -0.055em;
    line-height: 0.96;
}

.hero-description {
    max-width: 680px;
    margin: 32px 0 0;
    color: var(--ink-soft);
    font-size: clamp(1.08rem, 1.6vw, 1.35rem);
    line-height: 1.65;
}

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

.button {
    display: inline-flex;
    min-height: 50px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 760;
    text-decoration: none;
    transition: transform var(--transition), background var(--transition), color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
}

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

.button-primary:hover {
    background: var(--coral-dark);
}

.button-quiet {
    border-color: var(--line);
    background: rgb(255 253 248 / 40%);
}

.button-dark {
    background: var(--ink);
    color: white;
}

.button-outline-dark {
    border-color: var(--ink);
}

.proof-strip {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin: 52px 0 0;
}

.proof-strip div {
    padding-top: 16px;
    border-top: 1px solid var(--line);
}

.proof-strip dt {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
}

.proof-strip dd {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
}

.hero-feature {
    position: relative;
    z-index: 1;
    display: block;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--ink);
    color: white;
    box-shadow: var(--shadow);
    text-decoration: none;
    transform: rotate(1.5deg);
    transition: transform 260ms ease;
}

.hero-feature:hover {
    transform: rotate(0deg) translateY(-6px);
}

.feature-window {
    margin: 14px 14px 0;
    overflow: hidden;
    border-radius: 22px;
    background: #0c1114;
    aspect-ratio: 1.28;
}

.feature-window img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
}

.feature-caption {
    padding: 28px 30px 32px;
}

.feature-caption > span:first-child {
    color: #9ab2b4;
    font-size: 0.74rem;
    font-weight: 760;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.feature-caption strong {
    display: block;
    margin-top: 8px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.7rem;
}

.feature-caption p {
    margin: 8px 0 18px;
    color: #c7d1d3;
    font-size: 0.93rem;
}

.text-link,
.project-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 780;
    text-decoration: none;
}

.section {
    padding: 110px 0;
}

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
    align-items: end;
    gap: 60px;
    margin-bottom: 52px;
}

.section-heading h2,
.background-intro h2,
.contact h2 {
    max-width: 760px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.75rem, 5vw, 5rem);
    font-weight: 500;
    letter-spacing: -0.045em;
    line-height: 1.02;
}

.section-intro {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.work-section {
    border-radius: 52px 52px 0 0;
    background: var(--surface);
}

.case-study {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: #d9e6e2;
}

.case-copy {
    padding: clamp(38px, 5vw, 70px);
}

.case-copy h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 3.6vw, 3.5rem);
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.case-copy > p:not(.case-number) {
    color: var(--ink-soft);
    font-size: 1.03rem;
}

.outcome-list {
    margin: 26px 0 34px;
    padding: 0;
    list-style: none;
}

.outcome-list li {
    position: relative;
    margin-top: 11px;
    padding-left: 25px;
}

.outcome-list li::before {
    position: absolute;
    left: 0;
    color: var(--teal);
    content: "✦";
}

.case-visual {
    min-height: 560px;
    padding: 40px 0 40px 40px;
}

.case-visual img {
    width: 100%;
    height: 100%;
    border-radius: 20px 0 0 20px;
    object-fit: cover;
    object-position: left center;
    box-shadow: -14px 18px 48px rgb(17 26 29 / 18%);
}

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

.project-card {
    display: flex;
    min-height: 450px;
    flex-direction: column;
    justify-content: space-between;
    padding: 30px;
    border-radius: var(--radius-md);
    color: white;
    text-decoration: none;
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.project-card:hover {
    transform: translateY(-7px);
    box-shadow: var(--shadow);
}

.project-card-violet { background: #6156a3; }
.project-card-coral { background: #d95137; }
.project-card-teal { background: #18746d; }

.project-index {
    align-self: flex-end;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.4rem;
    opacity: 0.45;
}

.project-type {
    color: rgb(255 255 255 / 72%);
}

.project-card h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
    font-weight: 500;
    line-height: 1.08;
}

.project-card p:not(.project-type) {
    color: rgb(255 255 255 / 86%);
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.tag-list li {
    padding: 5px 10px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 999px;
    font-size: 0.73rem;
    font-weight: 700;
}

.writing-section {
    background: var(--paper);
}

.blog-grid {
    display: grid;
    grid-template-columns: 1.35fr 1fr 1fr;
    gap: 20px;
}

.blog-card {
    display: flex;
    min-height: 390px;
    flex-direction: column;
    padding: 30px;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgb(255 253 248 / 55%);
    transition: transform var(--transition), background var(--transition);
}

.blog-card:hover {
    background: var(--surface);
    transform: translateY(-5px);
}

.blog-card-featured {
    background: var(--yellow);
    border-color: transparent;
}

.blog-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 760;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.blog-card-featured .blog-meta {
    color: rgb(17 26 29 / 62%);
}

.blog-card h3 {
    margin: 44px 0 16px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.55rem, 2.5vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1.12;
}

.blog-card h3 a {
    text-decoration: none;
}

.blog-card > p {
    display: -webkit-box;
    overflow: hidden;
    color: var(--ink-soft);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
}

.blog-card .text-link {
    margin-top: auto;
}

.section-footer {
    display: flex;
    justify-content: center;
    margin-top: 38px;
}

.loading-note {
    grid-column: 1 / -1;
    color: var(--muted);
}

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

.section-heading-light .section-intro {
    color: #aebabc;
}

.principle-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    overflow: hidden;
    border: 1px solid #344247;
    border-radius: var(--radius-md);
    background: #344247;
}

.principle-grid article {
    min-height: 330px;
    padding: 34px;
    background: var(--ink);
}

.principle-grid span {
    color: var(--coral);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 2rem;
}

.principle-grid h3 {
    margin: 90px 0 14px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.85rem;
    font-weight: 500;
}

.principle-grid p {
    margin: 0;
    color: #b6c0c2;
}

.background-section {
    background: var(--surface);
}

.background-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
    gap: clamp(55px, 9vw, 130px);
}

.background-intro > p:not(.section-label) {
    margin-top: 28px;
    color: var(--muted);
    font-size: 1.06rem;
}

.portrait-note {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-top: 40px;
    padding-top: 26px;
    border-top: 1px solid var(--line);
}

.portrait-note img {
    width: 74px;
    height: 74px;
    border-radius: 50%;
    background: #6156a3;
    object-fit: cover;
}

.portrait-note p {
    margin: 0;
    font-size: 0.87rem;
}

.experience-list article {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 25px;
    padding: 26px 0;
    border-top: 1px solid var(--line);
}

.experience-list article:last-child {
    border-bottom: 1px solid var(--line);
}

.experience-list time {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 760;
}

.experience-list h3 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.45rem;
    font-weight: 500;
}

.experience-list p {
    margin: 6px 0 0;
    color: var(--muted);
}

.credibility-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 75px;
    padding-top: 34px;
    border-top: 1px solid var(--line);
}

.credibility-strip span {
    padding: 9px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 700;
}

.contact {
    background: var(--coral);
    color: white;
}

.contact .section-label {
    color: rgb(255 255 255 / 70%);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    align-items: end;
    gap: 80px;
}

.contact-panel {
    padding: 30px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: var(--radius-md);
}

.contact-panel > p {
    margin-top: 0;
    font-size: 1.05rem;
}

.contact-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.contact-actions a,
.protected-contact {
    display: inline-flex;
    padding: 5px 0;
    border: 0;
    border-bottom: 1px solid rgb(255 255 255 / 50%);
    background: transparent;
    color: white;
    font-family: inherit;
    font-weight: 760;
    text-decoration: none;
    cursor: pointer;
}

.protected-contact.revealed {
    word-break: break-all;
}

.footer {
    padding: 26px 0;
    background: var(--ink);
    color: #afbbbd;
}

.footer-row {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    font-size: 0.8rem;
}

.footer-row p {
    margin: 0;
}

@media (max-width: 980px) {
    .hero-grid,
    .case-study,
    .background-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-feature {
        width: min(620px, 100%);
        transform: none;
    }

    .project-grid,
    .blog-grid,
    .principle-grid {
        grid-template-columns: 1fr 1fr;
    }

    .project-card:last-child,
    .blog-card:last-child,
    .principle-grid article:last-child {
        grid-column: 1 / -1;
    }

    .case-visual {
        min-height: 430px;
        padding: 0 30px 30px;
    }

    .case-visual img {
        border-radius: 18px;
    }

    .contact-grid {
        align-items: start;
        gap: 42px;
    }
}

@media (max-width: 760px) {
    .container {
        width: min(100% - 34px, 1180px);
    }

    .nav-container {
        min-height: 68px;
    }

    .nav-brand > span:last-child {
        font-size: 0.92rem;
    }

    .mobile-menu-toggle {
        display: grid;
    }

    .nav-menu {
        position: absolute;
        top: 68px;
        left: 0;
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 14px 17px 22px;
        border-bottom: 1px solid var(--line);
        background: var(--paper);
        box-shadow: 0 20px 30px rgb(17 26 29 / 10%);
    }

    .nav-menu.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 13px 10px;
        border-bottom: 1px solid var(--line);
        font-size: 1rem;
    }

    .nav-contact {
        margin-top: 10px;
        border: 0;
        border-radius: 8px;
        background: var(--ink);
        color: white;
        text-align: center;
    }

    .hero {
        padding: 64px 0 78px;
    }

    .hero-grid {
        gap: 58px;
    }

    .hero h1 {
        font-size: clamp(3.1rem, 15vw, 4.5rem);
    }

    .proof-strip {
        gap: 12px;
    }

    .proof-strip dt {
        font-size: 1.4rem;
    }

    .feature-caption {
        padding: 24px;
    }

    .section {
        padding: 78px 0;
    }

    .work-section {
        border-radius: 30px 30px 0 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-bottom: 36px;
    }

    .section-heading h2,
    .background-intro h2,
    .contact h2 {
        font-size: clamp(2.55rem, 12vw, 4rem);
    }

    .project-grid,
    .blog-grid,
    .principle-grid {
        grid-template-columns: 1fr;
    }

    .project-card:last-child,
    .blog-card:last-child,
    .principle-grid article:last-child {
        grid-column: auto;
    }

    .project-card {
        min-height: 390px;
    }

    .blog-card {
        min-height: 350px;
    }

    .principle-grid {
        gap: 1px;
    }

    .principle-grid article {
        min-height: 270px;
    }

    .principle-grid h3 {
        margin-top: 55px;
    }

    .experience-list article {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .footer-row {
        flex-direction: column;
        align-items: center;
        gap: 7px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .button {
        width: 100%;
    }

    .proof-strip {
        grid-template-columns: 1fr;
    }

    .proof-strip div {
        display: flex;
        align-items: baseline;
        gap: 10px;
    }

    .case-copy {
        padding: 34px 25px;
    }

    .case-visual {
        min-height: 300px;
        padding: 0 18px 18px;
    }

    .project-card,
    .blog-card,
    .principle-grid article,
    .contact-panel {
        padding: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
