:root {
    --background: #f4f0e8;
    --card: #fffdf8;
    --text: #1e2421;
    --muted: #69706c;
    --accent: #d25b3f;
    --accent-dark: #a63e27;
    --line: rgba(30, 36, 33, 0.12);
    --shadow: 0 24px 70px rgba(45, 40, 33, 0.14);
}

* {
    box-sizing: border-box;
}

body {
    min-height: 100vh;
    margin: 0;
    display: grid;
    place-items: center;
    padding: 40px 20px;
    color: var(--text);
    background:
            radial-gradient(circle at 12% 15%, rgba(210, 91, 63, 0.13), transparent 25%),
            radial-gradient(circle at 88% 85%, rgba(48, 104, 83, 0.13), transparent 28%),
            var(--background);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.portfolio-card {
    width: min(100%, 980px);
    min-height: 570px;
    display: grid;
    grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
    overflow: hidden;
    background: var(--card);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.portrait-wrap {
    position: relative;
    min-height: 570px;
    overflow: hidden;
    background: #d8d1c7;
}

.portrait {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(0.88) contrast(1.04);
}

.portrait-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 58%, rgba(20, 24, 22, 0.42));
    pointer-events: none;
}

.photo-label {
    position: absolute;
    z-index: 1;
    left: 28px;
    bottom: 26px;
    margin: 0;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(42px, 7vw, 82px);
}

.eyebrow {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 24px;
    color: var(--accent-dark);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 36px;
    height: 2px;
    background: var(--accent);
}

h1 {
    max-width: 520px;
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    font-weight: 500;
    line-height: 0.96;
    letter-spacing: -0.055em;
}

.role {
    margin: 22px 0 0;
    color: var(--muted);
    font-size: clamp(1rem, 2vw, 1.18rem);
    font-weight: 600;
}

.divider {
    width: 100%;
    height: 1px;
    margin: 32px 0;
    background: var(--line);
}

.description {
    max-width: 520px;
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.75;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin-top: 38px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    color: #fff;
    background: var(--text);
    border-radius: 999px;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 700;
    transition: transform 180ms ease, background 180ms ease;
}

.button:hover {
    transform: translateY(-2px);
    background: var(--accent-dark);
}

.link {
    color: var(--text);
    text-decoration-color: var(--accent);
    text-underline-offset: 5px;
    font-size: 0.9rem;
    font-weight: 700;
}

.button:focus-visible,
.link:focus-visible {
    outline: 3px solid rgba(210, 91, 63, 0.35);
    outline-offset: 4px;
}

@media (max-width: 760px) {
    body {
        place-items: start center;
        padding: 18px;
    }

    .portfolio-card {
        grid-template-columns: 1fr;
        border-radius: 22px;
    }

    .portrait-wrap {
        min-height: 390px;
    }

    .content {
        padding: 44px 30px 50px;
    }

    h1 {
        font-size: clamp(2.8rem, 15vw, 4.4rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
    }
}