/* ==========================================================================
   Home — Explore. One tile per work: its name, one line, a way in, and a
   picture of it. The detail lives on each work's own site. The tiles carry
   the page's colour; Mint's lime stays on Mint's tile.
   ========================================================================== */

:root {
    --mint-night: #050605;
    --planet-night: #050a1f;
    --tile-on-dark: #f4f6fb;
    --tile-on-dark-2: rgba(244, 246, 251, 0.66);
}

.mh-explore { padding-top: clamp(48px, 7vw, 96px); }

.mh-explore-head { max-width: 40rem; }
.mh-explore-head .lead { margin-top: 18px; }

.mh-bento {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: clamp(36px, 5vw, 60px);
}

/* Every tile is one link: copy on top, the work's picture filling the
   bottom, and a single way in to the work's own site. */
.mh-tile {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: clamp(480px, 46vw, 580px);
    overflow: hidden;
    padding: clamp(36px, 4.4vw, 56px) clamp(24px, 3vw, 40px) 0;
    border-radius: var(--r-xl);
    color: var(--tile-on-dark);
    text-align: center;
    box-shadow: var(--lift-2);
    transition: transform 0.3s var(--ease);
}

.mh-tile:hover { transform: translateY(-2px); }

.mh-tile-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.mh-tile-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--tile-on-dark-2);
}

.mh-tile-kicker img {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.mh-tile-name {
    display: block;
    margin-top: 14px;
    font-size: clamp(40px, 4.6vw, 60px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mh-tile-line {
    display: block;
    max-width: 24em;
    margin-top: 14px;
    font-size: clamp(17px, 1.5vw, 20px);
    line-height: 1.45;
    color: var(--tile-on-dark-2);
    text-wrap: balance;
}

.mh-tile-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px 22px;
    margin-top: 26px;
}

.mh-tile-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 500;
    color: var(--tile-on-dark);
}

.mh-tile-link span { transition: transform 0.24s var(--ease); }
.mh-tile:hover .mh-tile-link span { transform: translateX(3px); }

/* Mint */

.mh-tile-mint {
    background:
        radial-gradient(80% 50% at 50% 0%, rgba(189, 254, 58, 0.12), transparent 65%),
        var(--mint-night);
}

/* The app's own night background is the tile's background: the crop keeps
   only the ring and what can go, has no frame, and fades into the tile, so
   the tile reads as one picture. */
.mh-tile-shot {
    width: 122%;
    max-width: none;
    height: auto;
    margin: auto 0 clamp(16px, 2.6vw, 32px);
    -webkit-mask-image:
        linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    -webkit-mask-composite: source-in;
    mask-image:
        linear-gradient(to right, transparent, #000 5%, #000 95%, transparent),
        linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
    mask-composite: intersect;
}

/* The Planet: a slowly turning night globe and who is around right now. */

.mh-tile-planet {
    background:
        radial-gradient(70% 45% at 50% 100%, rgba(91, 130, 255, 0.26), transparent 70%),
        var(--planet-night);
}

.mh-live i {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--planet-live);
    animation: mh-pulse 2.4s var(--ease) infinite;
}

@keyframes mh-pulse {
    0% { box-shadow: 0 0 0 0 rgba(110, 231, 183, 0.55); }
    70%, 100% { box-shadow: 0 0 0 8px rgba(110, 231, 183, 0); }
}

/* An equirectangular night texture scrolled across a circle reads as a
   turning globe once it is shaded; one loop is two globe widths. */
.mh-globe {
    width: min(86%, 380px);
    aspect-ratio: 1;
    margin-top: auto;
    transform: translateY(22%);
    border-radius: 50%;
    background: url("earth-night.jpg") 0 50% / auto 100% repeat-x, #070d2a;
    box-shadow:
        inset -30px -16px 60px rgba(0, 0, 0, 0.88),
        inset 14px 8px 30px rgba(150, 180, 255, 0.18),
        0 0 0 1px rgba(160, 185, 255, 0.10),
        0 0 100px rgba(80, 120, 255, 0.30);
    animation: mh-spin 90s linear infinite;
}

@keyframes mh-spin {
    to { background-position: 200% 50%; }
}

.mh-planet-now {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(5, 10, 31, 0.72);
    font-size: 13px;
    white-space: nowrap;
    color: var(--planet-live);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

/* ------------------------------------------------------------- Responsive */

@media (max-width: 860px) {
    .mh-bento { grid-template-columns: 1fr; }
    .mh-tile { min-height: 0; }
    .mh-tile-shot { width: 118%; margin-top: 28px; }
    .mh-globe { width: min(70%, 300px); margin-top: 36px; transform: translateY(30%); }
}
