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

html, body {
    height: 100%;
    width: 100%;
}

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

/* ---------- Design tokens ---------- */
:root {
    --color-bg: #EFE3CC;
    --color-text: #1A1210;
    --color-text-muted: #6B4A42;
    --color-accent: #7A1F2B;
    --color-border: #C9B896;
    --color-photo-tint: #140A08;

    --font-display: "Space Grotesk", sans-serif;
    --font-body: "Inter", sans-serif;
}

body {
    background: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.5;
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 55% 45%;
}

.hero__text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.65rem;
    padding: 4rem clamp(1.5rem, 6vw, 5rem);
}

.hero__job {
    font-family: var(--font-body);
    font-weight: 500;
    color: var(--color-accent);
    font-size: 1.05rem;
}

.hero__name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.hero__tagline {
    max-width: 42ch;
    color: var(--color-text-muted);
    font-size: 1.1rem;
    line-height: 1.4;
}

.hero__photo {
    position: relative;
    overflow: hidden;
}

.hero__photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, var(--color-photo-tint) 100%),
                linear-gradient(90deg, var(--color-accent) 0%, transparent 12%);
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: sepia(10%) saturate(110%) contrast(105%);
}

.hero__scroll {
    position: absolute;
    left: clamp(1.5rem, 6vw, 5rem);
    bottom: 2.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.85rem;
}

.hero__scroll-line {
    width: 1px;
    height: 2.5rem;
    background: var(--color-border);
    position: relative;
    overflow: hidden;
}

.hero__scroll-line::after {
    content: "";
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-accent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%   { top: -100%; }
    50%  { top: 0; }
    100% { top: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .hero__scroll-line::after {
        animation: none;
        top: 0;
    }
}

/* ---------- Navbar ---------- */
.navbar {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem clamp(1.5rem, 6vw, 5rem);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
}

.navbar__logo a {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-text);
    text-decoration: none;
}

.navbar__menu {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.navbar__menu a {
    color: var(--color-text-muted);
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

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

/* ---------- Responsive: stack on smaller screens ---------- */
@media (max-width: 800px) {
    .hero {
        grid-template-columns: 1fr;
        grid-template-rows: 45vh 1fr;
    }

    .hero__photo {
        order: -1;
    }

    .hero__photo::after {
        background: linear-gradient(180deg, transparent 60%, var(--color-photo-tint) 100%);
    }

    .hero__text {
        padding: 2.5rem 1.5rem 5rem;
        gap: 1rem;
    }

    .hero__scroll {
        left: 1.5rem;
        bottom: 1.5rem;
    }

    .navbar {
        padding: 0.9rem 1.5rem;
    }

    .navbar__menu {
        gap: 1.1rem;
    }

    .navbar__menu a {
        font-size: 0.85rem;
    }
}
