:root {
    --background: oklch(97.5% .012 85);
    --foreground: oklch(22% .02 60);
    --muted-foreground: oklch(48% .03 60);
    --primary: oklch(55% .11 60);
    --card: oklch(99% .008 85);
    --secondary: oklch(94% .025 80);
    --border: oklch(88% .02 80);
    --radius: .5rem;
    --max-width: 72rem;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: "Manrope", system-ui, sans-serif;
    background: var(--background);
    color: var(--foreground);
    -webkit-font-smoothing: antialiased;
}

h1, h2, .initials, .name {
    font-family: "Fraunces", Georgia, serif;
}

main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

.hero {
    padding: 4rem 0 3rem;
}

@media (min-width: 768px) {
    .hero { padding: 5rem 0 4rem; }
}

.eyebrow {
    margin: 0;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--primary);
    opacity: 0;
    animation: fade-up .6s ease forwards .05s;
}

h1 {
    margin: 1.5rem 0 0;
    font-weight: 600;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.05;
    opacity: 0;
    animation: fade-up .6s ease forwards .15s;
}

.lead {
    margin: 1.5rem 0 0;
    max-width: 36rem;
    font-size: 1.125rem;
    color: var(--muted-foreground);
    opacity: 0;
    animation: fade-up .6s ease forwards .25s;
}

.companies {
    padding-bottom: 5rem;
}

.companies h2 {
    margin: 0 0 2rem;
    font-size: .8rem;
    font-family: "Manrope", system-ui, sans-serif;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .3em;
    color: var(--muted-foreground);
    opacity: 0;
    animation: fade-up .6s ease forwards .35s;
}

.grid {
    display: grid;
    grid-template-columns: 1fr;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--card);
}

@media (min-width: 640px) {
    .grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
    .grid { grid-template-columns: repeat(4, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: var(--card);
    padding: 2.5rem 1.5rem;
    text-align: center;
    text-decoration: none;
    color: inherit;
    border-bottom: 1px solid var(--border);
    opacity: 0;
    animation: fade-up .5s ease forwards;
    transition: background-color .2s ease;
}

.grid .card:nth-child(1) { animation-delay: .4s; }
.grid .card:nth-child(2) { animation-delay: .46s; }
.grid .card:nth-child(3) { animation-delay: .52s; }
.grid .card:nth-child(4) { animation-delay: .58s; }
.grid .card:nth-child(5) { animation-delay: .64s; }
.grid .card:nth-child(6) { animation-delay: .7s; }
.grid .card:nth-child(7) { animation-delay: .76s; }
.grid .card:nth-child(8) { animation-delay: .82s; }

.grid .card:last-child { border-bottom: none; }

@media (min-width: 640px) {
    .card { border-right: 1px solid var(--border); }
    .grid .card:nth-child(2n) { border-right: none; }
    .grid .card:nth-last-child(-n+2) { border-bottom: none; }
}

@media (min-width: 1024px) {
    .card { border-right: 1px solid var(--border); }
    .grid .card:nth-child(2n) { border-right: 1px solid var(--border); }
    .grid .card:nth-child(4n) { border-right: none; }
    .grid .card:nth-last-child(-n+4) { border-bottom: none; }
}

.card:hover {
    background: var(--secondary);
}

.card:hover .visit {
    opacity: 1;
    transform: translateY(0);
}

.card:hover .initials {
    transform: scale(1.08);
}

.initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    border: 2px solid var(--primary);
    color: var(--primary);
    font-size: 1.5rem;
    transition: transform .2s ease;
}

.name {
    font-size: 1.25rem;
}

.category {
    margin-top: .25rem;
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .15em;
    color: var(--muted-foreground);
}

.visit {
    font-size: .875rem;
    color: var(--primary);
    opacity: 0;
    transform: translateY(2px);
    transition: opacity .2s ease, transform .2s ease;
}

footer {
    border-top: 1px solid var(--border);
    padding: 2rem 1.5rem;
    text-align: center;
    font-size: .875rem;
    color: var(--muted-foreground);
}

@keyframes fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .eyebrow, h1, .lead, .companies h2, .card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    .card:hover .visit,
    .card:hover .initials {
        transition: none;
    }
}
