*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --white: #ffffff;
    --cream: #faf9f7;
    --stone: #f0eeeb;
    --warm-gray: #ddd8d2;
    --border: rgba(44, 44, 44, 0.08);
    --text: #1e1e1e;
    --text-muted: #7a7570;
    --accent: #1a5f4a;
    --accent-dark: #144a3a;
    --gold: #c9a227;
    --radius-sm: 10px;
    --radius-md: 14px;
    --radius-lg: 18px;
    --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.09), 0 4px 12px rgba(0, 0, 0, 0.05);
    --ease: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-out: cubic-bezier(0, 0, 0.2, 1);
}

html {
    height: 100%;
}

body {
    min-height: 100%;
    font-family: "Source Sans 3", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text);
    background: var(--cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.landing,
.location-detail {
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(26, 95, 74, 0.06), transparent),
        linear-gradient(180deg, var(--cream) 0%, var(--stone) 100%);
}

.page {
    min-height: 100dvh;
    max-width: 1080px;
    margin: 0 auto;
    padding: clamp(1rem, 2.5vw, 1.75rem) clamp(1rem, 3vw, 2rem);
    display: flex;
    flex-direction: column;
    gap: clamp(1rem, 2.5vh, 1.5rem);
}

/* ── Header ── */
.header {
    flex-shrink: 0;
    animation: fadeDown 0.6s var(--ease-out) both;
}

.header-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: clamp(0.75rem, 1.8vh, 1rem);
}

.logo-mark {
    width: 100%;
    max-width: 720px;
    height: clamp(130px, 21vh, 210px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(0.65rem, 1.5vw, 1rem) clamp(1rem, 2.5vw, 1.5rem);
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}

.logo-mark:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.logo-img--main {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.coming-soon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin: 0;
    padding: 0.55rem 1.35rem;
    font-size: clamp(0.95rem, 2vw, 1.15rem);
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--white);
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-dark) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    box-shadow:
        var(--shadow-sm),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    animation: fadeDown 0.6s var(--ease-out) 0.08s both;
}

.coming-soon__dot {
    flex-shrink: 0;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 2px rgba(201, 162, 39, 0.35);
    animation: pulse-dot 2.4s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.65; transform: scale(0.92); }
}

/* ── Main ── */
.main {
    flex: 1;
    display: flex;
    align-items: flex-start;
    min-height: 0;
    animation: fadeUp 0.6s var(--ease-out) 0.12s both;
}

.logo-grid {
    list-style: none;
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(0.55rem, 1.2vw, 0.75rem);
}

.logo-card {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100px;
    padding: 0.85rem 0.75rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-xs);
    transition:
        transform 0.25s var(--ease),
        box-shadow 0.25s var(--ease),
        border-color 0.25s var(--ease);
    animation: cardReveal 0.5s var(--ease-out) calc(0.15s + var(--delay, 0) * 0.03s) both;
}

.logo-card:hover {
    transform: translateY(-3px);
    border-color: rgba(26, 95, 74, 0.18);
    box-shadow: var(--shadow-md);
}

.logo-card-link {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 68px;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    outline: none;
}

.logo-card-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 8px;
}

.logo-card .logo-img {
    display: block;
    width: auto;
    height: auto;
    max-width: 92%;
    max-height: 64px;
    object-fit: contain;
    transition: transform 0.25s var(--ease);
}

.logo-card:hover .logo-img {
    transform: scale(1.03);
}

/* ── Location detail ── */
.location-detail .main {
    justify-content: center;
    align-items: center;
}

.location-main {
    flex-direction: column;
    align-items: center;
    gap: clamp(1rem, 2vh, 1.5rem);
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    padding: 0.5rem 1rem;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-xs);
    transition:
        background 0.2s var(--ease),
        color 0.2s var(--ease),
        box-shadow 0.2s var(--ease),
        transform 0.2s var(--ease);
}

.back-link:hover {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent);
    box-shadow: var(--shadow-sm);
    transform: translateY(-1px);
}

.back-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Footer ── */
.footer {
    flex-shrink: 0;
    text-align: center;
    padding-top: clamp(0.75rem, 1.5vh, 1rem);
    border-top: 1px solid var(--warm-gray);
    animation: fadeUp 0.6s var(--ease-out) 0.2s both;
}

.footer p {
    font-size: 0.75rem;
    color: var(--text-muted);
    letter-spacing: 0.02em;
}

/* ── Image states ── */
.logo-img {
    opacity: 0;
    transition: opacity 0.35s var(--ease);
}

.logo-img.is-loaded {
    opacity: 1;
}

.logo-img.has-error {
    opacity: 0.35;
    filter: grayscale(1);
}

/* ── Animations ── */
@keyframes fadeDown {
    from { opacity: 0; transform: translateY(-12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardReveal {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .logo-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 640px) {
    .page {
        padding: 0.875rem 1rem;
        gap: 0.875rem;
    }

    .logo-mark {
        height: clamp(110px, 24vw, 165px);
        border-radius: var(--radius-md);
    }

    .coming-soon {
        font-size: 0.875rem;
        padding: 0.5rem 1.1rem;
    }

    .logo-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .logo-card {
        min-height: 88px;
        padding: 0.7rem 0.55rem;
    }

    .logo-card .logo-img {
        max-height: 54px;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
