/* JeVo Play gallery
   Neutral chrome so each experiment brings its own colour.
   Radius rule: buttons are pills, containers 20px. Theme follows the visitor's system setting. */

:root {
    --bg: #f3f3f4;
    --surface: #fbfbfc;
    --stage: #eaeaec;
    --ink: #0e0e12;
    --ink-2: #474752;
    --ink-3: #62626d;
    --line: #dfdfe4;
    --shadow: 0 1px 2px rgb(14 14 18 / .05), 0 24px 48px -24px rgb(14 14 18 / .22);
    --r: 20px;
    --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
    --wrap: 1240px;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #08080c;
        --surface: #111117;
        --stage: #1a1a21;
        --ink: #ececf1;
        --ink-2: #a6a6b1;
        --ink-3: #878793;
        --line: #23232c;
        --shadow: 0 1px 2px rgb(0 0 0 / .5), 0 28px 56px -24px rgb(0 0 0 / .7);
    }
}

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

body {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    font-family: var(--font);
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
ol, ul { list-style: none; }

:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap {
    width: 100%;
    max-width: var(--wrap);
    margin-inline: auto;
    padding-inline: 20px;
}

/* === HEADER === */
.top-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 68px;
}

.mark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}
.mark img { border-radius: 8px; }
.mark-jevo {
    font-family: 'Orbitron', var(--font);
    font-weight: 700;
    font-size: .95rem;
    letter-spacing: .12em;
}
.mark-play {
    font-size: 1rem;
    font-weight: 500;
    color: var(--ink-3);
    margin-left: -2px;
}

.top-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .9375rem;
    color: var(--ink-2);
    text-decoration: none;
}
.top-link:hover { color: var(--ink); }

/* === INTRO === */
.intro { padding-block: clamp(40px, 6vw, 80px) clamp(32px, 4vw, 52px); }
.intro h1 {
    max-width: 15ch;
    font-size: clamp(2.4rem, 5vw, 3.8rem);
    font-weight: 650;
    line-height: 1.02;
    letter-spacing: -0.04em;
    text-wrap: balance;
}
.intro p {
    max-width: 46ch;
    margin-top: 22px;
    font-size: 1.1875rem;
    color: var(--ink-2);
    text-wrap: pretty;
}

/* === GALLERY === */
.gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 56px 32px;
    padding-bottom: clamp(72px, 10vw, 128px);
}

.exp { display: grid; gap: 24px; }

/* The newest experiment is featured across the full width */
.gallery > li:first-child { grid-column: 1 / -1; }
.gallery > li:first-child .exp {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    gap: clamp(32px, 5vw, 64px);
    align-items: center;
}

.exp-preview {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    border-radius: var(--r);
    border: 1px solid var(--line);
    background: var(--stage);
    box-shadow: var(--shadow);
    --scale: .5;
}
.exp-preview img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.exp-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 1440px;
    height: 900px;
    border: 0;
    transform: scale(var(--scale));
    transform-origin: 0 0;
    pointer-events: none;
    opacity: 0;
}
.exp-preview.is-live iframe { opacity: 1; }

@media (prefers-reduced-motion: no-preference) {
    .exp-preview { transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease; }
    .exp-preview:hover { transform: translateY(-3px); }
    .exp-preview iframe { transition: opacity .5s ease; }
}

.exp-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    font-size: .875rem;
    color: var(--ink-3);
}

.exp h2 {
    margin-top: 10px;
    font-size: clamp(1.6rem, 2.6vw, 2.2rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.03em;
}
.exp h2 a { text-decoration: none; }
.exp h2 a:hover { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 2px; }

.exp-desc { margin-top: 12px; color: var(--ink-2); max-width: 42ch; }

.try-title {
    margin-top: 26px;
    font-size: .875rem;
    font-weight: 600;
}
.try {
    display: grid;
    gap: 6px;
    margin-top: 10px;
    font-size: .9375rem;
    color: var(--ink-2);
}
.try li {
    display: grid;
    grid-template-columns: 14px 1fr;
    gap: 10px;
    align-items: baseline;
}
.try li::before {
    content: "";
    width: 14px;
    height: 1px;
    background: var(--ink-3);
    transform: translateY(-4px);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    min-height: 48px;
    padding: 0 22px;
    border-radius: 999px;
    background: var(--ink);
    color: var(--bg);
    font-size: 1rem;
    font-weight: 550;
    text-decoration: none;
    white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn i { font-size: 1.1em; }

@media (prefers-reduced-motion: no-preference) {
    .btn { transition: opacity .2s ease, transform .08s ease; }
    .btn i { transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
    .btn:hover i { transform: translateX(3px); }
}
.btn:hover { opacity: .88; }

.exp-note { margin-top: 18px; font-size: .8125rem; color: var(--ink-3); }

@media (max-width: 900px) {
    .gallery { grid-template-columns: 1fr; }
    .gallery > li:first-child .exp { grid-template-columns: 1fr; }
}

/* === FOOTER === */
.foot { margin-top: auto; border-top: 1px solid var(--line); }
.foot-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    padding-block: 24px 28px;
    font-size: .875rem;
    color: var(--ink-3);
}
.foot a { text-decoration: none; }
.foot a:hover { color: var(--ink); }
