/* ==========================================================================
   Private access portal — shown when the portfolio is not public.
   Deliberately self-contained: it must render even if the site stylesheet,
   fonts or images are unavailable.
   ========================================================================== */

@font-face { font-family: "Vidaloka"; src: url("../fonts/vidaloka-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
    --gate-ink: #0a0a0a;
    --gate-panel: #121212;
    --gate-line: #2a2724;
    --gate-text: #cfcac2;
    --gate-muted: #8b857c;
    --brass: #b08434;
    --brass-soft: #d2ad66;
    --display: "Vidaloka", Georgia, "Times New Roman", serif;
    --ui: "Poppins", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

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

body.gate {
    margin: 0; min-height: 100vh; display: grid; place-items: center; padding: 2rem 1.25rem;
    background:
        radial-gradient(ellipse 60% 50% at 50% 0%, rgba(176, 132, 52, .13), transparent 70%),
        radial-gradient(ellipse 80% 60% at 50% 120%, rgba(176, 132, 52, .07), transparent 70%),
        var(--gate-ink);
    color: var(--gate-text); font-family: var(--ui); font-size: 1rem; line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
body.gate::before {
    content: ""; position: fixed; inset: 0; pointer-events: none;
    background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .012) 0 1px, transparent 1px 3px);
}

.gate-card {
    position: relative; width: min(100%, 34rem); text-align: center;
    padding: clamp(2.25rem, 6vw, 3.5rem) clamp(1.5rem, 5vw, 3rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, .035), transparent 60%), var(--gate-panel);
    border: 1px solid var(--gate-line); border-top: 2px solid var(--brass);
    box-shadow: 0 60px 120px -60px #000;
}

.gate-seal { width: 5.5rem; height: 5.5rem; margin: 0 auto 1.75rem; object-fit: contain; display: block; }
.gate-mark {
    display: grid; place-items: center; width: 4.5rem; height: 4.5rem; margin: 0 auto 1.75rem;
    background: var(--brass); color: #141414; font-family: var(--display); font-size: 1.5rem;
}

.gate-name { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.4rem, 4vw, 1.9rem); color: #fff; line-height: 1.2; }
.gate-sub { margin: .5rem 0 0; font-size: .75rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gate-muted); }

.gate-rule { display: flex; align-items: center; gap: 1rem; margin: 2rem 0 1.5rem; color: var(--brass); }
.gate-rule::before, .gate-rule::after { content: ""; height: 1px; flex: 1; background: linear-gradient(90deg, transparent, var(--gate-line), transparent); }
.gate-rule span { font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap; }

.gate-lead { margin: 0 auto 2rem; max-width: 26rem; color: var(--gate-muted); font-size: .95rem; }
.gate-lead strong { color: var(--gate-text); font-weight: 500; }

.gate-field { display: grid; gap: .6rem; text-align: left; margin-bottom: 1.1rem; }
.gate-field label { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gate-muted); }
.gate-field input {
    width: 100%; min-height: 3.5rem; padding: 0 1.1rem; border: 1px solid var(--gate-line); border-radius: 2px;
    background: #0d0d0d; color: #fff; font-family: var(--ui); font-size: 1.15rem; letter-spacing: .22em; text-align: center;
    text-transform: uppercase;
}
.gate-field input::placeholder { color: #4d4941; letter-spacing: .22em; }
.gate-field input:focus { outline: none; border-color: var(--brass); box-shadow: 0 0 0 3px rgba(176, 132, 52, .18); }
.gate-field input.pin { letter-spacing: .5em; font-size: 1.25rem; }

.gate-btn {
    display: block; width: 100%; min-height: 3.5rem; margin-top: 1.5rem; border: 0; border-radius: 2px; cursor: pointer;
    background: var(--brass); color: #141414; font-family: var(--ui); font-size: .8rem; font-weight: 500;
    letter-spacing: .2em; text-transform: uppercase; text-decoration: none; line-height: 3.5rem;
    transition: background-color .2s;
}
.gate-btn:hover { background: var(--brass-soft); }

.gate-error {
    margin: 0 0 1.5rem; padding: .85rem 1rem; border: 1px solid #5c2b2b; border-left: 3px solid #a4232f;
    background: rgba(164, 35, 47, .1); color: #e7b9bd; font-size: .875rem; text-align: left;
}

.gate-meta { margin: 2.25rem 0 0; font-size: .68rem; letter-spacing: .16em; text-transform: uppercase; color: #5f5a52; }
.gate-meta a { color: #6f6961; }

/* Personalised invitation */
.gate-for { margin: 0 0 .35rem; font-size: .7rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gate-muted); }
.gate-guest { margin: 0; font-family: var(--display); font-weight: 400; font-size: clamp(1.6rem, 5vw, 2.3rem); color: #fff; }
.gate-org { margin: .4rem 0 0; color: var(--brass-soft); font-size: .9rem; }
.gate-terms { list-style: none; margin: 2rem 0 0; padding: 0; display: grid; gap: .6rem; text-align: left; }
.gate-terms li { display: flex; justify-content: space-between; gap: 1rem; padding-bottom: .6rem; border-bottom: 1px solid var(--gate-line); font-size: .85rem; }
.gate-terms dt, .gate-terms .k { color: var(--gate-muted); }
.gate-terms .v { color: #fff; text-align: right; }

@media (prefers-reduced-motion: no-preference) {
    .gate-card { animation: gate-in .8s cubic-bezier(.2, .7, .1, 1) both; }
    .gate-seal, .gate-mark { animation: gate-glow 4s ease-in-out infinite alternate; }
}
@keyframes gate-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes gate-glow { from { filter: drop-shadow(0 0 0 rgba(176, 132, 52, 0)); } to { filter: drop-shadow(0 0 18px rgba(176, 132, 52, .35)); } }

/* The bar shown to a guest who is inside the private site */
.access-bar {
    position: relative; z-index: 70; display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    gap: .4rem 1rem; padding: .5rem 1rem; background: var(--brass); color: #141414;
    font-family: var(--ui); font-size: .78rem; letter-spacing: .04em; text-align: center;
}
.access-bar strong { font-weight: 600; }
.access-bar form { margin: 0; }
.access-bar button {
    background: none; border: 0; padding: 0; font: inherit; color: #141414; text-decoration: underline; cursor: pointer;
}

/* Sign-in: the same gate, with an email field and a checkbox. */
.gate-field input[type="email"], .gate-field input[type="password"] {
    text-align: left; text-transform: none; letter-spacing: .02em; font-size: 1rem;
}
.gate-check {
    display: flex; align-items: center; gap: .6rem; margin-top: 1.25rem;
    font-size: .85rem; color: var(--gate-muted); cursor: pointer; text-align: left;
}
.gate-check input { width: 1rem; height: 1rem; accent-color: var(--brass); }