:root {
    --bg-color: #f5f5f0;
    --text-primary: #1a1a1a;
    --text-secondary: #8c8c8c;
    --card-shadow: rgba(0, 0, 0, 0.1);
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/fonts/SpaceGrotesk-Medium.ttf") format("truetype");
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "Space Grotesk";
    src: url("/fonts/SpaceGrotesk-Bold.ttf") format("truetype");
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-style: normal;
}

@font-face {
    font-family: "Inter";
    src: url("/fonts/InterVariable-Italic.ttf") format("truetype-variations");
    font-weight: 100 900;
    font-style: italic;
}

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

html,
body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    font-family: "Suisse Intl", "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
}

a,
p {
    text-decoration: none;
    color: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-transform: uppercase;
}

img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
}

nav,
footer {
    position: fixed;
    left: 0;
    width: 100%;
    padding: 2.5em 3em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    pointer-events: none;
}

@media (max-width: 768px) {
    nav, footer {
        padding: 1.5em 2em;
    }
    
    .brand p, .nav-links p, .footer-center p, .footer-left p {
        display: none;
    }
}

nav *,
footer * {
    pointer-events: auto;
}

nav {
    top: 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75em;
}

.brand a {
    font-weight: 700;
    letter-spacing: 0.05em;
}

.dot {
    width: 4px;
    height: 4px;
    background-color: var(--text-primary);
    border-radius: 50%;
}

.nav-links p {
    color: var(--text-secondary);
}

footer {
    bottom: 0;
}

footer a {
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: opacity 0.3s ease;
}

footer a:hover {
    opacity: 0.6;
}

.footer-center p {
    color: var(--text-secondary);
}

.container {
    position: relative;
    width: 100%;
    height: 100vh;
    /* changed from 100svh for compatibility */
    overflow: hidden;
}

.gallery-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-style: preserve-3d;
    perspective: 2000px;
    will-change: transform;
}

.gallery {
    position: relative;
    width: 600px;
    height: 600px;
    display: flex;
    justify-content: center;
    align-items: center;
    transform-origin: center;
    will-change: transform;
}

@media (max-width: 768px) {
    .gallery {
        width: 400px;
        height: 400px;
    }
}

.card {
    position: absolute;
    width: 45px;
    height: 60px;
    border-radius: 4px;
    transform-origin: center;
    will-change: transform;
    transform-style: preserve-3d;
    backface-visibility: visible;
    overflow: hidden;
}

.title-container {
    position: fixed;
    bottom: 25%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 42px;
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0% 100%);
}

.title-container p {
    position: absolute;
    width: 100%;
    text-align: center;
    font-size: 42px;
    /* Slightly larger */
    font-weight: 500;
    letter-spacing: -0.03em;
    font-family: "Space Grotesk", sans-serif;
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .title-container p {
        font-size: 28px;
    }
    .title-container {
        bottom: 15%;
    }
}

.word {
    position: relative;
    display: inline-block;
    will-change: transform;
}

.mobile-hint {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 100;
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.6;
    pointer-events: none;
    transition: opacity 0.5s ease;
    text-align: center;
    width: 200px; /* Constrain width for better centering of multiple words */
}

@media (max-width: 768px) {
    .mobile-hint {
        display: block;
    }
}
@font-face{font-family:Heavy;src:url('../../assets/heavy.otf')}@font-face{font-family:Light;src:url('../../assets/light.otf')}body{background:#f8f8f4;font-family:Light,Arial,sans-serif}.title-container{height:auto;min-height:95px;bottom:7%;padding:8px 20px}.title-container p{font-family:Heavy,Arial;font-size:clamp(20px,3.4vw,36px);line-height:1.4}.card{border:0;padding:0;background:transparent;cursor:pointer}.card:focus-visible{outline:3px solid #939f24;outline-offset:4px}.preview-back{position:absolute;right:25px;top:25px;z-index:200;background:#f8f8f4;border:1px solid #aaa;padding:10px 18px;border-radius:24px;opacity:0;pointer-events:none;font:14px Light}.preview-active .preview-back{opacity:1;pointer-events:auto}.mobile-hint{position:absolute}.word{display:inline-block}.title-container p{position:relative}.title-container .meta{font:12px Light;display:block;letter-spacing:.15em;margin-bottom:8px}nav,footer{display:none}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}.preview-active .card:focus-visible{outline:none}.preview-back:focus-visible{outline:2px solid #939f24;outline-offset:3px}

.preview-active .card img{object-fit:contain;background:#f8f8f4}.preview-active .card{overflow:hidden}

.entry-slot{position:absolute;width:0;height:0;display:flex;align-items:center;justify-content:center;transform-style:preserve-3d}.card{border-radius:4px;clip-path:inset(0 round 4px)}.card img{border-radius:inherit;transition:border-radius .6s;display:block}
