/* Portfolio stylesheet — base styles and responsive layouts */

:root {
    --paper: #f8f6f3;
    --ink: #252129;
    --muted: #625e65;
    --accent: #71577c;
    --line: #ded8df;
    --serif: Georgia,"Times New Roman",serif;
    --sans: system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
}

* {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 16px/1.65 var(--sans);
}

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

a:hover {
    color: var(--accent);
}

button,summary {
    cursor: pointer;
    font: inherit;
}

button:focus-visible,a:focus-visible,summary:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 5px;
}

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

.wrap {
    width: min(1180px,calc(100% - 96px));
    margin-inline: auto;
}

header {
    position: sticky;
    top: 0;
    background: var(--paper);
    z-index: 5;
    border-bottom: 1px solid var(--line);
}

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

.brand {
    font: 30px var(--serif);
    white-space: nowrap;
}

nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
}

#menu {
    display: none;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #382d40;
    color: white;
    padding: 12px 20px;
    border: 1px solid #382d40;
    border-radius: 3px;
    font-size: 14px;
    font-weight: 600;
}

.button:hover {
    background: var(--accent);
    color: white;
}

.outline {
    background: transparent;
    color: var(--ink);
    border-color: var(--accent);
}

.hero {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 56px;
    align-items: center;
    padding-block: 78px 64px;
}

.eyebrow {
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .15em;
    text-transform: uppercase;
    color: var(--accent);
    margin: 0 0 22px;
}

h1,h2,h3 {
    font-family: var(--serif);
    font-weight: 400;
    line-height: 1.08;
    letter-spacing: -.035em;
    margin: 0 0 24px;
}

h1 {
    font-size: clamp(2.6rem, 4.2vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.035em;
}

h2 {
    font-size: clamp(36px,4vw,58px);
}

h3 {
    font-size: 28px;
    margin-bottom: 10px;
}

em {
    color: var(--accent);
    font-weight: 400;
}

.lead {
    font-size: 19px;
    line-height: 1.6;
}

.small {
    font-size: 13px;
    color: var(--muted);
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 28px 0;
}

.portrait {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: contain;
    object-position: center 30%;
    filter: grayscale(1);
    max-width: 520px;
    height: auto;
    transform: scale(1.12);
    transform-origin: center bottom;
    background: transparent;
    border-radius: 0;
}

.metrics {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    padding-block: 34px 46px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.metrics div {
    padding: 0 24px;
    border-left: 1px solid var(--line);
}

.metrics div:first-child {
    padding-left: 0;
    border: 0;
}

.metrics strong {
    font: 48px var(--serif);
    color: var(--accent);
}

.metrics p {
    font-size: 14px;
    margin: 6px 0;
    color: var(--muted);
}

.section {
    padding-block: 96px;
}

.split {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: clamp(40px,8vw,120px);
    align-items: start;
}

.split+.split {
    border-top: 1px solid var(--line);
}

p {
    margin: 0 0 18px;
}

.pillars p {
    margin: 0 0 24px;
    font-size: 1rem;
    line-height: 1.65;
    margin-bottom: 24px;
}

.pillars b {
    display: block;
    font-weight: 600;
    font-size: 1.25rem;
    line-height: 1.4;
    margin-bottom: 6px;
}

.timeline article {
    padding: 24px 0;
    margin: 0 0 24px;
    border-bottom: 1px solid var(--line);
}

.timeline article:last-child {
    border: 0;
    margin: 0;
    padding: 0;
    padding-bottom: 0;
}

.timeline span,.articles span {
    font-size: 12px;
    color: var(--accent);
    display: block;
    margin-bottom: 10px;
}

.timeline p {
    margin: 0;
    color: var(--muted);
}

.timeline article:first-child {
    padding-top: 0;
}

.timeline article span {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.timeline article h3 {
    font-size: 1.5rem;
    line-height: 1.25;
    margin: 0 0 10px;
}

.timeline article p {
    font-size: 1rem;
    line-height: 1.65;
    margin: 0;
}

.link {
    color: var(--accent);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

.work {
    background: #efebef;
}

.feature {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 50px;
    align-items: center;
    margin-top: 38px;
}

.feature img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    filter: grayscale(1);
}

.feature h3 {
    font-size: clamp(32px,3.5vw,48px);
}

.controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 24px 0;
    color: var(--muted);
    font-size: 13px;
}

.controls button {
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 50%;
    width: 44px;
    height: 44px;
    margin-left: 8px;
    color: var(--accent);
}

.case-index {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 12px;
}

.case-index button {
    background: transparent;
    text-align: left;
    border: 0;
    border-top: 3px solid #D9D4DD;
    padding: 12px 0;
    color: #77717D;
    font-size: 13px;
    line-height: 1.5;
    border-radius: 0;
    font-weight: 400;
    cursor: pointer;
    transition: border-color 0.2s ease,
        color 0.2s ease;
}

.case-index button:hover {
    border-top-color: #A89BB5;
    color: #28262B;
}

.case-index button.active,
.case-index button[aria-pressed="true"] {
    color: #28262B;
    font-weight: 600;
    border-top-color: #79678F;
}

.case-index button:focus-visible {
    outline: 2px solid #79678F;
    outline-offset: 4px;
}

.articles article {
    border-bottom: 1px solid var(--line);
    padding: 18px 0;
}

.articles h3 {
    font-size: 25px;
}

.articles details {
    padding: 24px 0;
}

.articles summary {
    color: var(--accent);
    font-weight: 600;
}

.articles details p {
    margin-top: 16px;
}

.contact {
    text-align: center;
    border-top: 1px solid var(--line);
}

.contact p:not(.eyebrow) {
    max-width: 650px;
    margin-inline: auto;
}

.contact .actions {
    justify-content: center;
}

footer {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    border-top: 1px solid var(--line);
    padding-block: 24px;
    font-size: 13px;
    color: var(--muted);
}

.skip {
    position: absolute;
    left: -9999px;
}

.skip:focus {
    left: 12px;
    top: 12px;
    z-index: 10;
    background: white;
    padding: 10px;
}

[hidden] {
    display: none !important;
}

.hero .lead {
    font-size: 1.125rem;
    line-height: 1.65;
    max-width: 580px;
}

@media (max-width:900px) {
    .wrap {
        width: calc(100% - 48px);
    }

    .hero {
        gap: 28px;
    }

    .nav nav {
        gap: 14px;
    }

    .split {
        gap: 36px;
    }

    .section {
        padding-block: 72px;
    }

}

@media (max-width:700px) {
    .wrap {
        width: calc(100% - 40px);
    }

    .nav {
        min-height: 64px;
    }

    .brand {
        font-size: 26px;
    }

    #menu {
        display: block;
        background: none;
        border: 1px solid var(--line);
        padding: 8px 14px;
    }

    nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 20px;
        flex-direction: column;
        align-items: stretch;
        border-bottom: 1px solid var(--line);
    }

    nav.open {
        display: flex;
    }

    .hero,.split,.feature {
        grid-template-columns: 1fr;
    }

    .hero {
        padding-block: 48px 32px;
        gap: 28px;
    }

    .portrait {
        aspect-ratio: 5/4;
    }

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

    .metrics div {
        padding: 0 14px;
    }

    .metrics div:nth-child(odd) {
        border: 0;
        padding-left: 0;
    }

    .metrics strong {
        font-size: 40px;
    }

    .section {
        padding-block: 56px;
    }

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

    .case-index button {
        padding: 10px 0;
    }

    .feature {
        gap: 24px;
    }

    .lead {
        font-size: 17px;
    }

    footer {
        flex-direction: column;
        gap: 6px;
    }

}

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

}

@media (max-width: 768px) {
    .hero h1 {
        font-size: clamp(2.2rem, 7vw, 3.2rem);
        line-height: 1.1;
    }

    .hero .lead {
        font-size: 1rem;
        line-height: 1.6;
    }

    .hero .portrait {
        width: 85%;
        max-width: 380px;
        transform: none;
        margin: 0 auto;
    }

}

