/* ============================================================
   Homepage custom overlay + Felium Mono font
   Loaded LAST so it wins the cascade.
   ============================================================ */

@font-face {
    font-family: 'FeliumMono';
    src: url('fonts/FeliumMonoDemo-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* Apply Felium Mono to all text */
html, body, button, input, select, textarea,
a, p, span, div, li, nav, h1, h2, h3, h4, h5, h6 {
    font-family: 'FeliumMono', monospace !important;
}

/* ---- Hide the original theme chrome (kept in DOM, just hidden) ---- */
header.header,
.menu_container.mobile,
.desktop > a.main_logo,
.mobile > a.main_logo,
#website_footer .logo {
    display: none !important;
}

/* ============================================================
   New overlay: top bar + centered logo + social icons
   All fixed, sitting on top of the running photo slider.
   ============================================================ */

.home_overlay {
    position: fixed;
    inset: 0;
    z-index: 9000;
    pointer-events: none; /* let clicks fall through to the slider */
}
.home_overlay a { pointer-events: auto; } /* except real links */

/* ---- Menu: horizontal row, left of the centered logo (logo's centre line) ---- */
.home_topbar {
    position: fixed;
    top: clamp(1.2rem, 2.5vw, 2rem);
    left: clamp(1.2rem, 3vw, 2.5rem);
    right: auto;
    z-index: 9100;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1rem;
}
.home_topbar a {
    color: #fff;
    text-decoration: none;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    white-space: nowrap; /* keep "Studio rent" on one line */
    /* subtle glass pill so text is legible over light OR dark slides */
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    padding: 0.5em 0.95em;
    border-radius: 999px;
    transition: background 0.25s ease;
}
.home_topbar a:hover { background: rgba(0, 0, 0, 0.5); }

/* ---- Centered logo ---- */
.home_logo_center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9050;
    width: min(265px, 46vw);
    pointer-events: none;
    color: #fff;
}
.home_logo_center .brandmark { width: 100%; background-color: #fff; }

/* ---- Social icons: horizontal row, right of the centered logo (logo's centre line) ---- */
.home_social {
    position: fixed;
    top: clamp(1.2rem, 2.5vw, 2rem);
    right: clamp(1.2rem, 3vw, 2.5rem);
    left: auto;
    z-index: 9100;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    align-items: center;
}
.home_social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    color: #fff;
    /* subtle glass circle so icons are visible over light OR dark slides */
    background: rgba(0, 0, 0, 0.32);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border-radius: 50%;
    transition: background 0.25s ease, transform 0.25s ease;
}
.home_social a:hover { background: rgba(0, 0, 0, 0.5); transform: translateY(-2px); }
.home_social svg {
    width: 20px;
    height: 20px;
    display: block;
    fill: currentColor;
}

/* Tablets: tighten the corner rows a little */
@media screen and (min-width: 641px) and (max-width: 1024px) {
    .home_topbar, .home_social { gap: 0.6rem; }
    .home_topbar a { font-size: 0.8rem; padding: 0.45em 0.7em; }
    .home_social a { width: 34px; height: 34px; }
    .home_social svg { width: 17px; height: 17px; }
}

/* ---- Mobile ---- */
@media screen and (max-width: 640px) {
    /* back to top menu + bottom socials on phones */
    .home_topbar {
        top: 0; left: 0; right: 0; transform: none;
        flex-direction: row; justify-content: center; align-items: center;
        gap: 0.5rem; padding: 0.9rem 0.7rem;
    }
    .home_topbar a { font-size: 0.72rem; letter-spacing: 0.03em; padding: 0.55em 0.7em; }
    .home_logo_center { width: 35vw; }
    .home_social {
        top: auto; bottom: 1.2rem; left: 0; right: 0; transform: none;
        flex-direction: row; justify-content: center; gap: 0.9rem;
    }
    .home_social a { width: 44px; height: 44px; }
}
@media screen and (max-width: 360px) {
    .home_topbar { gap: 0.4rem; }
    .home_topbar a { font-size: 0.64rem; letter-spacing: 0.02em; padding: 0.5em 0.55em; }
}

/* ============================================================
   Shared: recolorable logo + page nav (used on about + contact)
   ============================================================ */

/* Logo tinted by the current text color (mask uses the wordmark's alpha) */
.brandmark {
    display: block;
    /* must match media/logo-white.png (1400x462) or the mask letterboxes
       and leaves empty bands around the wordmark */
    aspect-ratio: 1400 / 462;
    background-color: currentColor;
    -webkit-mask: url('/media/logo-white.png') center / contain no-repeat;
    mask: url('/media/logo-white.png') center / contain no-repeat;
}

/* Menu bar shared by the About and Contact pages.
   Items sit in tinted pills, echoing the homepage overlay menu. */
.page_nav { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }
.page_nav a {
    color: currentColor;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
    opacity: 0.9;
    white-space: nowrap;
    /* --chip/--chip2 are defined per page; rgba fallbacks keep this working
       even where color-mix() is unavailable. */
    background: var(--chip2, rgba(0, 0, 0, 0.14));
    padding: 0.5em 0.9em;
    border-radius: 999px;
    transition: background 0.25s ease, opacity 0.2s ease;
}
.page_nav a:hover,
.page_nav a.active { opacity: 1; background: var(--chip3, rgba(0, 0, 0, 0.26)); }

@media (max-width: 480px) {
    .page_nav { gap: 0.45rem; }
    .page_nav a { font-size: 0.72rem; letter-spacing: 0.04em; padding: 0.45em 0.7em; }
}

/* ---- Tinted backing for text content on the About/Contact pages ----
   Each page overrides these with its own theme tint. */
:root {
    --chip:  rgba(0, 0, 0, 0.09);
    --chip2: rgba(0, 0, 0, 0.14);
    --chip3: rgba(0, 0, 0, 0.24);
}
.chip {
    background: var(--chip2, rgba(0, 0, 0, 0.14));
    border-radius: 999px;
    padding: 0.4em 0.8em;
}
.panel {
    background: var(--chip, rgba(0, 0, 0, 0.09));
    border-radius: 14px;
    padding: 1rem 1.15rem;
}

/* ============================================================
   Snow-particle overlay canvas (About + Contact)
   Particles are drawn by js/snow.js in the page's font colour.
   ============================================================ */
.grain {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}
