/* Page-specific styles for index.html: hero, featured work cards and the
   gallery strip. Shared chrome and components live in base.css. */

/* ---------- hero ---------- */

.hero {
    padding-top: clamp(2.5rem, 7vw, 5.5rem);
}

.hero__grid {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: clamp(2rem, 5vw, 4.5rem);
    align-items: center;
}

.hero h1 {
    font-size: clamp(3rem, 8.4vw, 6.4rem);
    line-height: 0.95;
}

.hero__role {
    margin: 1rem 0 0;
    font-family: var(--font-display);
    font-weight: 500;
    font-size: clamp(1.3rem, 2.6vw, 1.9rem);
    color: var(--text-muted);
}

.cursor {
    color: var(--accent);
    animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
    50% { opacity: 0; }
}

.hero__lede {
    max-width: 52ch;
    margin: 1.75rem 0 0;
    padding-top: 1.5rem;
    border-top: 4px solid var(--accent);
    font-size: clamp(1.1rem, 1.5vw, 1.25rem);
}

.hero__actions {
    margin-top: 2rem;
}

/* The photo sits on an offset panel of the site's diagonal stripes */
.hero__portrait {
    position: relative;
    isolation: isolate;
    padding: 0 1.25rem 1.25rem 0;
}

.hero__portrait::before {
    content: "";
    position: absolute;
    inset: 1.25rem 0 0 1.25rem;
    z-index: -1;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background-image: var(--stripes);
}

.hero__portrait img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: var(--radius);
    background: var(--surface);
}

@media (max-width: 860px) {
    .hero__grid {
        grid-template-columns: 1fr;
    }

    .hero__portrait {
        width: 100%;
        max-width: 420px;
    }
}

/* ---------- featured work ---------- */

.work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.work-card {
    display: flex;
    flex-direction: column;
    padding: 0.75rem;
    text-decoration: none;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.work-card:hover {
    border-color: var(--spot);
    transform: translateY(-4px);
}

.work-card img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 12px;
}

.work-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 1.25rem 0.75rem 0.75rem;
}

.work-card h3 {
    font-size: clamp(1.6rem, 2.6vw, 2.1rem);
    font-weight: 700;
}

.work-card__body > p:not(.eyebrow) {
    margin: 0.5rem 0 1.25rem;
    color: var(--text-muted);
}

.work-card__more {
    margin-top: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--spot);
    font-weight: 700;
}

@media (max-width: 760px) {
    .work-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- gallery strip ---------- */

.photo-strip {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.photo-strip__item {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    background: var(--surface);
}

.photo-strip__item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.photo-strip__item:hover img {
    transform: scale(1.04);
}

.photo-strip__label {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.7);
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

@media (max-width: 560px) {
    .photo-strip {
        gap: 0.5rem;
    }

    .photo-strip__label {
        display: none;
    }
}
