:root {
    --bg: #000;
    --fg: #e8e8e8;
    --mut: #8a8a8a;
    --line: #202020;
    --panel: #0a0a0a;
    --acc: #f1e7d3;
    --err: #ff6b6b;
    --ok: #7bd88f;
    --pad: clamp(18px, 4vw, 48px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--bg); }
body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font: 300 16px/1.65 "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}
main { flex: 1; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
::selection { background: #fff; color: #000; }
:focus-visible { outline: 1px solid var(--acc); outline-offset: 3px; }

/* ---------- navigation ---------- */
.nav {
    position: fixed; inset: 0 0 auto 0; z-index: 30;
    display: flex; justify-content: space-between; align-items: center;
    padding: 20px var(--pad);
    background: linear-gradient(#000 0%, rgba(0, 0, 0, 0) 100%);
}
.brand { font-size: 12px; letter-spacing: .34em; text-transform: uppercase; font-weight: 400; }
.nav nav { display: flex; gap: clamp(14px, 3vw, 34px); }
.nav nav a { font-size: 12px; letter-spacing: .22em; text-transform: uppercase; color: var(--mut); transition: color .25s; }
.nav nav a:hover { color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: grid; place-items: center; text-align: center; overflow: hidden; }
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-text { position: relative; padding: 0 var(--pad); }
.hero h1 {
    margin: 0; font-weight: 200; text-transform: uppercase;
    font-size: clamp(30px, 6.6vw, 84px); letter-spacing: .4em; margin-right: -.4em; line-height: 1.15;
}
.hero p { margin: 22px 0 0; color: var(--mut); letter-spacing: .3em; text-transform: uppercase; font-size: clamp(11px, 1.4vw, 14px); }
.hero-cta { margin-top: 48px; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.scroll {
    position: absolute; bottom: 28px; left: 50%; width: 1px; height: 54px; background: linear-gradient(#fff, transparent);
    animation: drip 2.6s ease-in-out infinite;
}
@keyframes drip { 0%, 100% { opacity: .15; transform: scaleY(.5); transform-origin: top; } 50% { opacity: .8; transform: scaleY(1); } }

/* ---------- layout helpers ---------- */
.wrap { width: 100%; max-width: 1500px; margin: 0 auto; padding: 0 var(--pad); }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--mut); }
.small { font-size: 13px; }
section.wrap { padding-top: 110px; padding-bottom: 40px; }
section.page-top { padding-top: 130px; }
h2 { font-weight: 300; font-size: 12px; letter-spacing: .38em; text-transform: uppercase; color: var(--mut); margin: 0 0 36px; text-align: center; }
.page-title { font-weight: 200; font-size: clamp(26px, 4vw, 46px); letter-spacing: .22em; text-transform: uppercase; margin: 0 0 18px; text-align: center; }
.prose p { margin: 0 0 1.2em; color: #cfcfcf; }
.mail { font-size: 20px; letter-spacing: .06em; border-bottom: 1px solid #444; padding-bottom: 2px; }
.mail:hover { border-color: #fff; }

/* ---------- buttons & forms ---------- */
.btn {
    display: inline-block; cursor: pointer; font: inherit; font-size: 12px; letter-spacing: .24em; text-transform: uppercase;
    color: #000; background: #fff; border: 1px solid #fff; padding: 14px 28px; transition: background .25s, color .25s, border-color .25s;
}
.btn:hover { background: transparent; color: #fff; }
.btn.ghost { background: transparent; color: #fff; border-color: #555; }
.btn.ghost:hover { border-color: #fff; background: #fff; color: #000; }
.btn.small { padding: 8px 14px; font-size: 11px; letter-spacing: .16em; }
.btn.danger { background: transparent; color: var(--err); border-color: #5a2626; }
.btn.danger:hover { background: var(--err); color: #000; border-color: var(--err); }
input[type=text], input[type=password], input[type=email], input[type=date], select, textarea {
    width: 100%; font: inherit; color: var(--fg); background: #050505; border: 1px solid #2a2a2a; border-radius: 0; padding: 12px 14px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: #777; }
.err { color: var(--err); font-size: 14px; }
.mail.small { font-size: 13px; }

/* ---------- contact form ---------- */
.contact-form { display: grid; gap: 20px; margin-top: 30px; }
.contact-form label { display: grid; gap: 8px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); }
.contact-form .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.contact-form textarea { resize: vertical; min-height: 140px; }
.contact-form label.check { display: flex; align-items: flex-start; gap: 12px; text-transform: none; letter-spacing: 0; font-size: 14px; line-height: 1.5; color: #cfcfcf; }
.contact-form label.check input { width: 18px; height: 18px; margin-top: 3px; flex: none; accent-color: #fff; }
.contact-form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.contact-form p { margin: 0; }
.contact-form a { border-bottom: 1px solid #444; }
.thanks { text-align: center; font-size: 18px; margin: 40px 0; color: var(--acc); }
@media (max-width: 640px) { .contact-form .grid2 { grid-template-columns: 1fr; } }

/* ---------- album cards ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 14px; }
.card-album { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #0b0b0b; }
.card-album img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .92; }
.card-album:hover img { transform: scale(1.04); opacity: 1; }
.card-album .cap {
    position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px; display: flex; flex-direction: column; gap: 2px;
    background: linear-gradient(transparent, rgba(0, 0, 0, .85));
}
.card-album b { font-weight: 300; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.card-album small { color: var(--mut); letter-spacing: .12em; font-size: 12px; }
.private-hint { margin: 90px 0 30px; text-align: center; color: var(--mut); }

/* ---------- access page ---------- */
.access { max-width: 560px; margin: 0 auto; padding: 170px var(--pad) 60px; text-align: center; }
.access form { margin-top: 34px; display: grid; gap: 22px; justify-items: center; }
.code-input {
    text-align: center; font-size: clamp(20px, 5vw, 30px); letter-spacing: .3em; text-transform: uppercase; padding: 18px 10px;
    background: transparent !important; border: 0 !important; border-bottom: 1px solid #555 !important; max-width: 520px;
}
.code-input:focus { border-bottom-color: #fff !important; }
.code-input::placeholder { color: #333; }

/* ---------- album ---------- */
.album-head { max-width: 760px; margin: 0 auto 50px; text-align: center; }
.album-head .meta { color: var(--mut); letter-spacing: .18em; text-transform: uppercase; font-size: 12px; margin: 0 0 26px; }
.rows { display: flex; flex-wrap: wrap; gap: 6px; }
.rows::after { content: ""; flex-grow: 999999999; }
.ph { position: relative; display: block; background: #0b0b0b; flex-grow: calc(var(--r) * 100); flex-basis: calc(var(--r) * 230px); cursor: zoom-in; overflow: hidden; }
.ph i { display: block; padding-bottom: calc(100% / var(--r)); }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1), opacity .4s; opacity: .94; }
.ph:hover img { transform: scale(1.03); opacity: 1; }
.back { margin: 70px 0 30px; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--mut); }
.back a:hover { color: #fff; }

/* ---------- lightbox ---------- */
.lb { position: fixed; top: 0; left: 0; right: 0; height: 100vh; height: 100dvh; z-index: 100; background: #000; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.lb[hidden] { display: none; }
.lb-stage { position: relative; min-height: 0; overflow: hidden; }
/* The photo fills a fixed box inside the stage and is scaled to fit it (never enlarged, never cut off). */
.lb-stage img { position: absolute; top: 56px; bottom: 8px; left: 60px; right: 60px; width: calc(100% - 120px); height: calc(100% - 64px); object-fit: scale-down; user-select: none; }
.lb button { position: absolute; background: none; border: 0; color: #fff; cursor: pointer; font: inherit; opacity: .6; transition: opacity .2s; padding: 14px; }
.lb button:hover { opacity: 1; }
.lb-close { top: 8px; right: 12px; font-size: 30px; line-height: 1; }
.lb-prev, .lb-next { top: 50%; transform: translateY(-50%); font-size: 34px; line-height: 1; }
.lb-prev { left: 4px; } .lb-next { right: 4px; }
.lb-info { padding: 10px var(--pad) 22px; text-align: center; max-width: 900px; margin: 0 auto; width: 100%; }
.lb-info b { display: block; font-weight: 300; letter-spacing: .2em; text-transform: uppercase; font-size: 13px; }
.lb-info p { margin: 4px 0 0; color: #bbb; font-size: 14px; }
.lb-info small { display: block; margin-top: 6px; color: var(--mut); font-size: 12px; letter-spacing: .06em; }
.lb a.lb-dl {
    position: absolute; top: 14px; right: 62px; z-index: 2; font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
    color: #fff; border: 1px solid #555; padding: 8px 14px; opacity: .85; transition: background .2s, color .2s, border-color .2s;
}
.lb a.lb-dl:hover { background: #fff; color: #000; border-color: #fff; opacity: 1; }
.lb-count { position: absolute; top: 20px; left: 22px; font-size: 12px; letter-spacing: .2em; color: var(--mut); }

/* ---------- cookie notice ---------- */
.cc {
    position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 90;
    width: min(920px, calc(100% - 28px)); background: #0c0c0c; border: 1px solid #333; padding: 18px 22px;
    display: flex; gap: 22px; align-items: center; justify-content: space-between; flex-wrap: wrap;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .8);
}
.cc p { margin: 0; flex: 1 1 380px; font-size: 14px; line-height: 1.55; color: #d0d0d0; }
.cc p a { border-bottom: 1px solid #555; }
.cc form { display: flex; gap: 10px; flex: none; }
.consent-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 28px 0; }
.status { margin-top: 36px; }

/* ---------- cookies page ---------- */
.cookie-table { overflow-x: auto; margin-top: 34px; }
.cookie-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.cookie-table th { text-align: left; font-weight: 400; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mut); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.cookie-table td { padding: 14px 12px; border-bottom: 1px solid #111; vertical-align: top; color: #cfcfcf; }
code { font: 13px/1.4 ui-monospace, Consolas, monospace; letter-spacing: .06em; background: #111; padding: 2px 7px; border: 1px solid #222; }

/* ---------- about ---------- */
.about-grid { display: grid; gap: 50px; max-width: 760px; margin: 40px auto 0; }
.about-grid.has-photo { max-width: 1100px; grid-template-columns: minmax(240px, 380px) 1fr; align-items: start; }
.portrait { margin: 0; }
.portrait img { width: 100%; height: auto; }
#about .prose, .about-text { text-align: center; }
.about-text h2.left { text-align: center; margin: 44px 0 16px; }
.about-cta { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 44px; }
@media (max-width: 760px) { .about-grid.has-photo { grid-template-columns: 1fr; } }

/* ---------- legal pages ---------- */
.legal .prose h2 { text-align: left; font-size: 12px; margin: 38px 0 12px; }
.legal .prose p, .legal .prose li { color: #cfcfcf; font-size: 15px; }
.legal .prose ul { padding-left: 20px; }
.legal .prose a { border-bottom: 1px solid #555; }
.todo { color: #e6b450; background: #1a1405; border: 1px dashed #594519; padding: 0 6px; }

/* ---------- footer ---------- */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding: 34px var(--pad); color: #555; font-size: 12px; letter-spacing: .12em; border-top: 1px solid #111; margin-top: 80px; }
.foot a:hover { color: #fff; }

@media (max-width: 640px) {
    .nav nav a:nth-child(2) { display: none; }
    .cc form { width: 100%; } .cc form .btn { flex: 1; }
    .lb-stage img { left: 8px; right: 8px; width: calc(100% - 16px); }
    .lb-prev, .lb-next { display: none; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
