.hero {
    position: relative;
    min-height: 42vh;
    display: grid;
    align-items: center;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.22), transparent 24%),
        radial-gradient(circle at right top, rgba(107, 15, 26, 0.12), transparent 26%),
        linear-gradient(180deg, #f8f3ee 0%, #efe3d8 100%);
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.04));
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 4.2rem 0 3.6rem;
    text-align: center;
}

.hero-title-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.4rem 1.6rem;
}

.hero h1 {
    margin: 0;
    font-size: clamp(3rem, 6vw, 5rem);
    line-height: 1;
    color: #201616;
    text-wrap: balance;
    letter-spacing: -0.03em;
}

.hero-divider {
    width: min(100%, 320px);
    height: 1px;
    margin: 0.85rem auto 0.9rem;
    background: linear-gradient(90deg, transparent, rgba(107, 15, 26, 0.55), transparent);
}

.hero-subtitle {
    margin: 0 auto;
    max-width: 700px;
    font-size: clamp(1.05rem, 1.9vw, 1.35rem);
    color: #5a4341;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.gallery {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.2rem;
    margin-top: 1.2rem;
    position: relative;
    z-index: 2;
    align-items: start;
}

.gallery-card {
    margin: 0;
    overflow: hidden;
    width: min(100%, 360px);
    justify-self: center;
    border-radius: var(--radius);
    background: linear-gradient(180deg, #faf6f2, #f2e8df);
    box-shadow: var(--shadow);
    aspect-ratio: 4 / 5;
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    padding: 2rem;
    background: linear-gradient(180deg, #faf6f2, #f2e8df);
    color: var(--accent);
    font-size: 1.45rem;
    font-weight: 700;
    text-align: center;
    border: 2px dashed rgba(107, 15, 26, 0.22);
}

.home-overview {
    padding-top: 2.6rem;
}

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

.home-feature-card {
    padding: 1.25rem 1.35rem;
    border: 1px solid rgba(107, 15, 26, 0.1);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 10px 22px rgba(36, 20, 14, 0.07);
}

.home-feature-card-wide {
    grid-column: 1 / -1;
}

.home-feature-card h3 {
    margin: 0 0 0.65rem;
    color: var(--accent);
    font-size: 1.3rem;
}

.home-feature-card p {
    margin: 0;
    line-height: 1.72;
    font-size: 1rem;
}

.profile-links {
    margin-top: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 280px));
    justify-content: center;
    gap: 0.85rem;
}

.social-profile-heading {
    margin: 1.35rem 0 0.85rem;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 500;
    text-align: center;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(107, 15, 26, 0.14);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(15, 15, 15, 0.96), rgba(30, 18, 20, 0.96));
    box-shadow: 0 10px 22px rgba(36, 20, 14, 0.12);
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-card:hover,
.profile-card:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px rgba(36, 20, 14, 0.16);
}

.profile-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    background: rgba(107, 15, 26, 0.24);
    color: #ffffff;
    font-size: 1.35rem;
    flex-shrink: 0;
}

.profile-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    color: #ffffff;
}

.profile-copy strong {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.1;
}

.profile-copy span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.88rem;
}

@media (max-width: 900px) {
    .home-card-grid {
        grid-template-columns: 1fr;
    }

    .gallery {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .hero {
        min-height: 34vh;
    }

    .hero-content {
        padding: 3.2rem 0 2.8rem;
    }

    .hero-title-wrap {
        padding: 1.4rem 1.1rem;
    }

    .profile-links {
        grid-template-columns: 1fr;
    }
}
