@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=Inter:wght@400;500;600&display=swap');

:root {
  --bg: #050506;
  --text: #f6f1e6;
  --text-muted: #c7aaa3;
  --gold: #d05a45;
  --gold-light: #ffd0c2;
  --gold-deep: #7f281f;
  --gold-grad: linear-gradient(135deg, #ffe4dc 0%, #d96b50 42%, #8f2d24 100%);
  --danger: #e0685b;
  --radius: 28px;
  --blur: 22px;

  /* the liquid glass recipe: frosted fill + bevelled rim light + soft depth */
  --glass-fill: linear-gradient(135deg, rgba(255,255,255,.22) 0%, rgba(255,255,255,.07) 35%, rgba(255,255,255,.04) 62%, rgba(190,55,40,.18) 100%);
  --glass-shadow:
    inset 0 0 0 1px rgba(255,255,255,.07),
    inset 2px 2px 2px -1px rgba(255,255,255,.65),
    inset -2px -2px 2px -1px rgba(255,105,75,.45),
    inset 0 0 34px rgba(255,255,255,.06),
    0 22px 60px -12px rgba(0,0,0,.65),
    0 2px 10px rgba(0,0,0,.4);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; min-height: 100%; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin: 0;
}
a { color: inherit; }
.muted { color: var(--text-muted); }

/* ---------- Ambient light (what the glass refracts) ---------- */

.ambient { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: var(--bg); }

/* 3 huge crimson light fields. Each gradient fades to fully transparent
   before its edge, so there is no visible circle or outline anywhere. */
.ambient i {
  position: absolute;
  z-index: 0;
  border-radius: 50%;
  will-change: transform;
}
.ambient i:nth-child(1) {
  width: 130vmax; height: 130vmax; top: -62vmax; left: -52vmax;
  background: radial-gradient(closest-side, rgba(175,18,42,.50) 0%, rgba(125,10,30,.26) 42%, rgba(80,6,20,0) 100%);
  animation: drift-a 170s ease-in-out infinite alternate;
}
.ambient i:nth-child(2) {
  width: 120vmax; height: 120vmax; bottom: -58vmax; right: -48vmax;
  background: radial-gradient(closest-side, rgba(150,14,38,.46) 0%, rgba(105,8,28,.24) 45%, rgba(70,5,18,0) 100%);
  animation: drift-b 210s ease-in-out infinite alternate;
}
.ambient i:nth-child(3) {
  width: 95vmax; height: 95vmax; top: -40vmax; right: -34vmax;
  background: radial-gradient(closest-side, rgba(200,30,55,.28) 0%, rgba(130,12,32,.15) 45%, rgba(80,6,20,0) 100%);
  animation: drift-c 250s ease-in-out infinite alternate;
}
.ambient i:nth-child(4) { display: none; }

/* dark black/crimson center: keeps the middle calm, glow lives at the edges */
.ambient::before {
  content: '';
  position: absolute; inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse 65% 60% at 50% 50%, rgba(14,2,4,.92) 0%, rgba(24,3,7,.6) 45%, rgba(5,5,6,0) 100%);
}

/* fine grain so the dark areas don't band */
.ambient::after {
  content: '';
  position: absolute; inset: 0;
  z-index: 2;
  opacity: .07;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* extremely slow, small drifts */
@keyframes drift-a { to { transform: translate(6vmax, 4vmax) scale(1.06); } }
@keyframes drift-b { to { transform: translate(-5vmax, -4vmax) scale(1.08); } }
@keyframes drift-c { to { transform: translate(-4vmax, 5vmax) scale(.96); } }
@media (prefers-reduced-motion: reduce) { .ambient i { animation: none; } }

/* ---------- Liquid glass surfaces ---------- */

.glass,
.viewing-card,
.gallery-topbar,
.empty-state,
.admin-shell,
.lightbox-dock,
.lightbox-close,
.lightbox-nav,
.client-row,
.btn-text,
.btn-glass {
  position: relative;
  isolation: isolate;
  background: var(--glass-fill);
  background-color: rgba(10, 9, 7, .36);
  -webkit-backdrop-filter: blur(var(--blur)) saturate(200%) brightness(1.08);
  backdrop-filter: blur(var(--blur)) saturate(200%) brightness(1.08);
  box-shadow: var(--glass-shadow);
  border: 0;
}

/* Chromium only: real refraction (light bends through the glass edge).
   Other browsers keep the frosted look above. Enabled by glass.js. */
html.refract .glass,
html.refract .viewing-card,
html.refract .gallery-topbar,
html.refract .empty-state,
html.refract .admin-shell,
html.refract .lightbox-dock,
html.refract .lightbox-close,
html.refract .lightbox-nav {
  -webkit-backdrop-filter: url(#lg-refract) blur(14px) saturate(200%) brightness(1.1);
  backdrop-filter: url(#lg-refract) blur(14px) saturate(200%) brightness(1.1);
}

/* specular highlight that follows the pointer */
.glass::after,
.viewing-card::after,
.gallery-topbar::after,
.empty-state::after,
.admin-shell::after,
.lightbox-dock::after,
.lightbox-close::after,
.lightbox-nav::after,
.client-row::after,
.btn-text::after,
.btn-glass::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: -1;
  background: radial-gradient(260px circle at var(--mx, 25%) var(--my, 0%), rgba(255,255,255,.26), rgba(255,255,255,0) 62%);
  opacity: .8;
  transition: opacity .3s ease;
}

/* ---------- Centered layouts (landing, login) ---------- */

.center-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.viewing-card {
  background-color: rgba(10, 9, 7, .5);
  width: 100%;
  max-width: 440px;
  text-align: center;
  padding: 52px 40px 42px;
  border-radius: 40px;
  animation: rise .7s var(--spring) both;
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(.97); } }

.viewing-card .eyebrow {
  display: inline-block;
  padding: 6px 16px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--gold-light);
  font-size: .7rem;
  letter-spacing: .26em;
  text-transform: uppercase;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,190,175,.25), inset 0 1px 1px rgba(255,255,255,.35);
}

.viewing-card h1 {
  font-size: 3rem;
  line-height: 1.04;
  margin-bottom: 12px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.viewing-card .subtitle {
  color: var(--text-muted);
  margin: 0 0 32px;
  font-size: .95rem;
}

.viewing-card form { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Form elements ---------- */

input[type="text"],
input[type="password"],
input[type="file"] {
  width: 100%;
  padding: 15px 20px;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  background: rgba(0,0,0,.32);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,255,255,.10),
    0 1px 0 rgba(255,255,255,.14);
  transition: box-shadow .25s ease, background .25s ease;
}
input::placeholder { color: rgba(177,167,143,.6); }

input[type="text"]:focus,
input[type="password"]:focus {
  outline: none;
  background: rgba(0,0,0,.42);
  box-shadow:
    inset 0 2px 8px rgba(0,0,0,.55),
    inset 0 0 0 1px rgba(255,190,175,.7),
    0 0 0 4px rgba(190,55,40,.22),
    0 0 26px rgba(190,55,40,.25);
}

input[type="file"]::file-selector-button {
  margin-right: 14px;
  padding: 7px 16px;
  border: 0;
  border-radius: 999px;
  color: var(--gold-light);
  background: rgba(255,255,255,.1);
  box-shadow: inset 0 0 0 1px rgba(255,190,175,.3);
  cursor: pointer;
}

label {
  display: block;
  margin: 0 0 8px 6px;
  text-align: left;
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.field { text-align: left; }

/* primary button: liquid gold */
button, .btn {
  position: relative;
  overflow: hidden;
  display: inline-block;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  font: 600 .95rem/1 'Inter', sans-serif;
  letter-spacing: .02em;
  color: #1b0806;
  cursor: pointer;
  background: var(--gold-grad);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.75),
    inset 0 -3px 6px rgba(90,18,12,.35),
    0 10px 28px rgba(190,55,40,.32),
    0 2px 6px rgba(0,0,0,.4);
  transition: transform .35s var(--spring), box-shadow .25s ease, filter .25s ease;
}
button::before, .btn::before {
  content: '';
  position: absolute;
  left: 8%; right: 8%; top: 2px; height: 46%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255,255,255,.55), rgba(255,255,255,0));
  pointer-events: none;
}
button:hover, .btn:hover {
  transform: translateY(-2px) scale(1.03);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 2px rgba(255,255,255,.8),
    inset 0 -3px 6px rgba(90,18,12,.35),
    0 16px 38px rgba(190,55,40,.45),
    0 2px 6px rgba(0,0,0,.4);
}
button:active, .btn:active { transform: scale(.97); }

/* secondary: clear glass */
.btn-text, .btn-glass {
  color: var(--text);
  overflow: visible;
}
.btn-text::before, .btn-glass::before { display: none; }
.btn-text:hover, .btn-glass:hover { color: var(--gold-light); filter: none; box-shadow: var(--glass-shadow); }

.btn-danger {
  color: #fff;
  background: linear-gradient(135deg, #f08c80, #c0392d);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.5), inset 0 -3px 6px rgba(90,10,5,.35), 0 10px 28px rgba(224,70,55,.3);
}

.error-message {
  padding: 12px 18px;
  border-radius: 20px;
  font-size: .9rem;
  text-align: left;
  color: #ffc2ba;
  background: rgba(224,104,91,.14);
  box-shadow: inset 0 0 0 1px rgba(224,104,91,.55);
}

/* ---------- Gallery top bar (floating glass pill) ---------- */

.gallery-topbar {
  position: sticky;
  top: 16px;
  z-index: 20;
  max-width: 1400px;
  margin: 16px auto 26px;
  width: calc(100% - 32px);
  padding: 12px 14px 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  border-radius: 999px;
  --blur: 14px;
}
.gallery-topbar h1 {
  font-size: 1.9rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.gallery-topbar .actions { display: flex; gap: 8px; align-items: center; font-size: .9rem; }
.gallery-topbar .actions a {
  padding: 11px 22px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  transition: background .25s, color .25s, transform .35s var(--spring);
}
.gallery-topbar .actions a:hover { background: rgba(255,255,255,.1); color: var(--gold-light); transform: scale(1.04); }
.gallery-topbar .actions a.primary {
  color: #1b0806;
  font-weight: 600;
  background: var(--gold-grad);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.7), inset 0 -3px 6px rgba(90,18,12,.3), 0 8px 22px rgba(190,55,40,.3);
}
.gallery-topbar .actions a.primary:hover { color: #1b0806; filter: brightness(1.06); }

/* ---------- Photo grid (masonry) ---------- */

.photo-grid {
  max-width: 1400px;
  margin: 0 auto;
  column-width: 270px;
  column-gap: 14px;
  padding: 0 16px 60px;
}

.photo-grid .cell {
  position: relative;
  display: block;
  break-inside: avoid;
  margin-bottom: 14px;
  min-height: 140px;
  border-radius: 26px;
  overflow: hidden;
  cursor: zoom-in;
  background: rgba(255,255,255,.05);
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,.08),
    0 14px 34px -8px rgba(0,0,0,.7);
  transition: transform .45s var(--spring), box-shadow .3s ease;
}
.photo-grid .cell:focus-visible,
.photo-grid .cell:hover {
  transform: translateY(-4px) scale(1.012);
  outline: none;
  box-shadow:
    inset 0 0 0 1px rgba(255,190,175,.45),
    0 22px 50px -8px rgba(0,0,0,.75),
    0 0 40px rgba(190,55,40,.2);
}
.photo-grid img {
  display: block;
  width: 100%;
  height: auto;
}

/* glass rim over each photo */
.photo-grid .cell::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 1;
  box-shadow: inset 2px 2px 2px -1px rgba(255,255,255,.5), inset -2px -2px 2px -1px rgba(255,105,75,.35);
}
/* glass expand chip on hover */
.photo-grid .cell::after {
  content: '';
  position: absolute;
  right: 14px; bottom: 14px;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ffd0c2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7'/></svg>") center / 18px no-repeat,
    linear-gradient(135deg, rgba(255,255,255,.28), rgba(45,16,13,.62));
  box-shadow: var(--glass-shadow);
  opacity: 0;
  transform: translateY(8px) scale(.85);
  transition: opacity .25s ease, transform .4s var(--spring);
}
.photo-grid .cell:hover::after,
.photo-grid .cell:focus-visible::after { opacity: 1; transform: none; }

.empty-state {
  max-width: 440px;
  margin: 90px auto;
  padding: 50px 30px;
  text-align: center;
  color: var(--text-muted);
  border-radius: 40px;
}

/* ---------- Lightbox popup ---------- */

body.lb-open { overflow: hidden; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 28px 120px;
  background: radial-gradient(circle at 50% 40%, rgba(62,18,14,.96), rgba(3,3,4,.97) 70%);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s;
}
.lightbox.open { opacity: 1; visibility: visible; }

.lightbox-frame {
  position: relative;
  padding: 8px;
  border-radius: 34px;
  background: var(--glass-fill);
  box-shadow: var(--glass-shadow), 0 40px 100px rgba(0,0,0,.75);
  transform: scale(.94) translateY(14px);
  transition: transform .5s var(--spring);
}
.lightbox.open .lightbox-frame { transform: none; }

.lightbox-frame img {
  display: block;
  max-width: min(92vw, 1400px);
  max-height: calc(100vh - 190px);
  border-radius: 27px;
  object-fit: contain;
  user-select: none;
  -webkit-user-drag: none;
}

.lightbox-close {
  position: absolute;
  top: 22px; right: 22px;
  width: 52px; height: 52px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  text-decoration: none;
  transition: transform .35s var(--spring);
}
.lightbox-close:hover { transform: scale(1.1) rotate(90deg); }

.lightbox-nav {
  position: absolute;
  top: calc(50% - 50px);
  width: 56px; height: 56px;
  padding: 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  overflow: visible;
  transition: transform .35s var(--spring);
}
.lightbox-nav::before { display: none; }
.lightbox-nav:hover { transform: scale(1.12); filter: none; box-shadow: var(--glass-shadow); }
.lightbox-nav:active { transform: scale(.94); }
.lightbox-nav.prev { left: 22px; }
.lightbox-nav.next { right: 22px; }

/* floating glass dock with counter + download */
.lightbox-dock {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 8px 8px 24px;
  border-radius: 999px;
  white-space: nowrap;
  font-size: .85rem;
  color: var(--text-muted);
}
.lightbox-dock #lightbox-counter { margin-right: 14px; letter-spacing: .14em; }
.lightbox-dock a.dl {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 24px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  color: #1b0806;
  background: var(--gold-grad);
  box-shadow: inset 0 2px 2px rgba(255,255,255,.75), inset 0 -3px 6px rgba(90,18,12,.35), 0 8px 24px rgba(190,55,40,.35);
  transition: transform .35s var(--spring), filter .25s;
}
.lightbox-dock a.dl:hover { transform: scale(1.05); filter: brightness(1.07); }

/* ---------- Admin ---------- */

.admin-shell {
  max-width: 940px;
  margin: 40px auto 80px;
  padding: 40px 38px 46px;
  border-radius: 44px;
}
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 30px;
}
.admin-header h1 {
  font-size: 2.4rem;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.admin-header > div { display: flex; gap: 10px; align-items: center; }

.client-list { display: flex; flex-direction: column; gap: 12px; }
.client-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding: 18px 24px;
  border-radius: 28px;
  transition: transform .4s var(--spring);
}
.client-row:hover { transform: scale(1.012); }
.client-row .name { font-family: 'Instrument Serif', Georgia, serif; font-size: 1.5rem; }
.client-row .meta { margin-top: 2px; font-size: .85rem; color: var(--text-muted); }
.client-row .row-actions { display: flex; gap: 8px; font-size: .9rem; }
.client-row .row-actions a {
  padding: 9px 18px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255,255,255,.07);
  box-shadow: inset 0 0 0 1px rgba(255,190,175,.22);
  transition: background .2s, color .2s;
}
.client-row .row-actions a:hover { background: rgba(255,255,255,.14); color: var(--gold-light); }

.admin-form { display: flex; flex-direction: column; gap: 18px; max-width: 420px; margin-top: 24px; }
.admin-section { margin-top: 44px; padding-top: 28px; border-top: 1px solid rgba(255,190,175,.14); }

.link-box {
  margin: 8px 0 22px;
  padding: 14px 20px;
  border-radius: 20px;
  font: .9rem ui-monospace, Menlo, Consolas, monospace;
  color: var(--gold-light);
  word-break: break-all;
  background: rgba(0,0,0,.32);
  box-shadow: inset 0 2px 8px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.09);
}

.thumb-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.thumb-list .thumb {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
}
.thumb-list img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thumb-list form { position: absolute; top: 8px; right: 8px; }
.thumb-list button {
  padding: 7px 13px;
  font-size: .75rem;
  color: var(--text);
  background: rgba(10,10,12,.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}
.thumb-list button::before { display: none; }
.thumb-list button:hover { background: var(--danger); color: #fff; }

/* ---------- Landing: project form + links ---------- */

.landing {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.landing .viewing-card { max-width: none; }
.viewing-card .subtitle + form { margin-top: -6px; }

.social-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  animation: rise .7s .15s var(--spring) both;
}
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 999px;
  color: var(--text);
  text-decoration: none;
  font-size: .9rem;
  --blur: 14px;
  transition: transform .35s var(--spring), color .2s ease;
}
.social-link svg { flex: none; }
.social-link:hover, .social-link:focus-visible { color: var(--gold-light); transform: translateY(-2px) scale(1.04); outline: none; }

footer.site-footer { text-align: center; padding: 24px; font-size: .8rem; color: var(--text-muted); }
footer.site-footer a { color: var(--text-muted); text-decoration: none; }
footer.site-footer a:hover { color: var(--gold-light); }

/* ---------- Small screens ---------- */

@media (max-width: 640px) {
  :root { --radius: 22px; }
  .viewing-card { padding: 42px 26px 34px; border-radius: 34px; }
  .viewing-card h1 { font-size: 2.4rem; }
  .gallery-topbar { padding: 12px 12px 12px 22px; border-radius: 32px; }
  .gallery-topbar h1 { font-size: 1.6rem; }
  .photo-grid { column-width: 150px; column-gap: 10px; padding: 0 10px 40px; }
  .photo-grid .cell { margin-bottom: 10px; border-radius: 20px; }
  .photo-grid .cell::after { display: none; }
  .lightbox { padding: 16px 10px 110px; }
  .lightbox-frame { border-radius: 26px; }
  .lightbox-frame img { border-radius: 20px; max-height: calc(100vh - 170px); }
  .lightbox-close { top: 14px; right: 14px; width: 46px; height: 46px; }
  .lightbox-nav { top: auto; bottom: 28px; width: 50px; height: 50px; }
  .lightbox-nav.prev { left: 12px; }
  .lightbox-nav.next { right: 12px; }
  .lightbox-dock { bottom: 28px; padding-left: 18px; }
  .lightbox-dock #lightbox-counter { display: none; }
  .admin-shell { margin: 16px 12px 60px; padding: 26px 18px 32px; border-radius: 32px; }
}

/* Fallback when backdrop-filter isn't supported */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  :root { --glass-fill: linear-gradient(135deg, rgba(52,46,34,.96), rgba(20,19,16,.96)); }
}

/* =====================================================================
   PSYCERART / EDITORIAL REDESIGN
   Restrained ink, warm paper and oxblood. Existing routes and controls
   remain intact; these are presentation-layer refinements.
   ===================================================================== */
:root{--bg:#0b0b0c;--text:#f4f1ed;--text-muted:#a7a19e;--gold:#d74b4d;--gold-light:#ffb8b3;--gold-deep:#7f252a;--gold-grad:linear-gradient(120deg,#f0b0a8,#d74b4d 58%,#8c252e);--danger:#d74b4d;--radius:16px;--blur:18px;--glass-fill:rgba(22,20,21,.88);--glass-shadow:0 24px 70px rgba(0,0,0,.28)}
body{background:#0b0b0c;color:#f4f1ed;font-family:'DM Sans',Inter,Arial,sans-serif;line-height:1.6}
h1,h2,h3{font-family:'Playfair Display',Georgia,serif;letter-spacing:-.035em}
.ambient{display:none}
.glass,.viewing-card,.gallery-topbar,.empty-state,.admin-shell,.lightbox-dock,.lightbox-close,.lightbox-nav,.client-row,.btn-text,.btn-glass{background:rgba(22,20,21,.94);backdrop-filter:blur(18px);box-shadow:0 18px 55px rgba(0,0,0,.25);border:1px solid rgba(255,255,255,.075)}
.glass::after,.viewing-card::after,.gallery-topbar::after,.empty-state::after,.admin-shell::after,.lightbox-dock::after,.lightbox-close::after,.lightbox-nav::after,.client-row::after,.btn-text::after,.btn-glass::after{display:none}
button,.btn,.gallery-topbar .actions a.primary,.lightbox-dock a.dl{background:#c83d43;color:#fff;border:1px solid #df6668;border-radius:9px;box-shadow:none;font-family:inherit;font-weight:600;letter-spacing:.01em}
button:hover,.btn:hover,.gallery-topbar .actions a.primary:hover,.lightbox-dock a.dl:hover{background:#e04c51;color:#fff;transform:translateY(-1px);filter:none}
input[type=text],input[type=password],input[type=file]{border:1px solid rgba(255,255,255,.13);border-radius:9px;background:#151416;box-shadow:none;padding:14px 16px;font-family:inherit}
input[type=text]:focus,input[type=password]:focus{outline:none;border-color:#ce5559;box-shadow:0 0 0 3px rgba(206,85,89,.13);background:#171517}
label{font-size:.68rem;letter-spacing:.13em;color:#bdb6b2}
.viewing-card{border-radius:16px;padding:44px 38px;background:#141314;max-width:460px}
.viewing-card .eyebrow{background:transparent;border:0;box-shadow:none;padding:0;color:#e16a6c;letter-spacing:.2em}
.viewing-card h1,.admin-header h1,.gallery-topbar h1{background:none;color:#f4f1ed;-webkit-text-fill-color:currentColor}
.viewing-card h1{font-size:clamp(2.4rem,5vw,3.3rem)}
.viewing-card .subtitle{color:#a7a19e}
.error-message{border-radius:8px;background:rgba(190,50,57,.12);box-shadow:inset 0 0 0 1px rgba(220,90,95,.35);color:#ffb8b3}
.gallery-topbar{top:12px;border-radius:12px;padding:14px 22px;margin:14px auto 32px}
.gallery-topbar h1{font-size:1.65rem}
.gallery-topbar .actions a{border-radius:8px}
.photo-grid{column-width:300px;column-gap:18px;padding:0 24px 72px}
.photo-grid .cell{border-radius:7px;margin-bottom:18px;box-shadow:0 10px 30px rgba(0,0,0,.22);background:#171516}
.photo-grid .cell::before{display:none}
.photo-grid .cell:hover,.photo-grid .cell:focus-visible{transform:translateY(-3px);box-shadow:0 18px 40px rgba(0,0,0,.4),0 0 0 1px rgba(218,83,88,.35)}
.empty-state{border-radius:14px}
.lightbox{background:rgba(7,7,8,.97)}
.lightbox-frame{padding:0;border-radius:5px;background:transparent;box-shadow:0 30px 90px rgba(0,0,0,.6)}
.lightbox-frame img{border-radius:3px}
.lightbox-close,.lightbox-nav{border-radius:9px;color:#fff}
.admin-shell{max-width:1040px;margin:32px auto 70px;padding:36px;border-radius:14px;background:#131213}
.admin-header{border-bottom:1px solid rgba(255,255,255,.09);padding-bottom:22px;margin-bottom:26px}
.admin-header h1{font-size:2.1rem}
.client-row{border-radius:10px;padding:18px 20px;background:#1a1819;border-color:rgba(255,255,255,.06)}
.client-row:hover{transform:translateY(-2px)}
.client-row .row-actions a{border-radius:7px;background:#252223;box-shadow:none}
.client-row .row-actions a:hover{background:#3b2224;color:#ffb8b3}
.admin-section{border-color:rgba(255,255,255,.1)}
.link-box{border-radius:8px;background:#0d0c0d;box-shadow:inset 0 0 0 1px rgba(255,255,255,.1);color:#f18c8c}
.thumb-list .thumb{border-radius:7px}
.btn-text{border-radius:8px;text-decoration:none;padding:10px 15px}

/* Purpose-built split portal */
.portal-page{min-height:100vh;background:#0b0b0c}
.portal-layout{min-height:100vh;display:grid;grid-template-columns:minmax(0,1.13fr) minmax(390px,.87fr);max-width:1800px;margin:0 auto}
.portal-story{position:relative;min-height:100vh;padding:34px clamp(30px,6vw,96px) 26px;display:flex;flex-direction:column;overflow:hidden;background:radial-gradient(ellipse at 18% 78%,rgba(112,25,31,.2),transparent 45%),#0b0b0c}
.brandbar{display:flex;align-items:center;justify-content:space-between;gap:18px;position:relative;z-index:2}
.brandmark{display:flex;align-items:center;gap:11px;text-decoration:none;color:#f4f1ed;font-size:.85rem;font-weight:700;letter-spacing:.17em}
.brand-symbol{width:34px;height:34px;display:grid;place-items:center;border:1px solid #c94c51;color:#ed7779;font-family:'Playfair Display',serif;font-size:1.25rem;letter-spacing:0}
.brand-red{color:#d65a5d}
.brand-note{font-size:.58rem;letter-spacing:.16em;color:#777173}
.story-copy{position:relative;z-index:2;margin:auto 0;padding:70px 0 44px;max-width:690px}
.overline,.access-kicker{font-size:.65rem;letter-spacing:.19em;font-weight:700;color:#d96a6d}
.overline{display:flex;align-items:center;gap:12px}
.overline-line{width:30px;height:1px;background:#d96a6d}
.story-copy h1{font-size:clamp(3.5rem,7.2vw,7.5rem);line-height:.99;font-weight:500;margin:25px 0 25px;letter-spacing:-.055em}
.story-copy h1 em,.access-content h2 em{font-weight:500;color:#d56a6d}
.story-description{max-width:410px;color:#aaa3a1;font-size:.96rem;line-height:1.9}
.story-foot{display:flex;align-items:center;gap:15px;margin-top:58px;color:#817b79;font-size:.56rem;letter-spacing:.15em}
.story-index{white-space:nowrap}.story-index i{color:#d65a5d;font-style:normal;padding:0 4px}.story-rule{height:1px;background:#393334;flex:1;max-width:100px}.story-caption{white-space:nowrap}
.visual-panel{position:absolute;width:min(40vw,530px);height:min(40vw,530px);right:-7%;bottom:8%;border:1px solid rgba(214,90,93,.16);border-radius:50%;display:grid;place-items:center;opacity:.82;pointer-events:none}
.visual-orbit{position:absolute;border:1px solid rgba(218,92,95,.2);border-radius:50%;inset:10%;transform:rotate(-24deg) scaleX(.62)}
.orbit-two{inset:22%;transform:rotate(36deg) scaleX(.74);border-color:rgba(255,255,255,.12)}
.visual-core{width:44%;height:44%;border-radius:50%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;background:radial-gradient(circle at 32% 25%,#5b2428,#211416 68%,#100e0f);box-shadow:0 0 90px rgba(174,45,51,.15),inset 0 0 0 1px rgba(255,255,255,.08);transform:rotate(-12deg)}
.core-cross{font-size:1.2rem;color:#e36a6d}.core-word{font-family:'Playfair Display',serif;font-size:clamp(1.4rem,3vw,2.5rem);line-height:.9;letter-spacing:.1em}.core-caption{font-size:.42rem;letter-spacing:.2em;color:#b7a3a3;margin-top:14px}
.visual-side-label{position:absolute;right:2%;top:22%;writing-mode:vertical-rl;font-size:.48rem;letter-spacing:.2em;color:#777071}.visual-number{position:absolute;bottom:14%;left:8%;font-size:.55rem;letter-spacing:.2em;color:#8f7778}
.story-footer{display:flex;justify-content:space-between;gap:15px;color:#716b6b;font-size:.55rem;letter-spacing:.12em;position:relative;z-index:2}
.portal-access{min-height:100vh;padding:35px clamp(26px,5vw,76px) 26px;background:#f0eeeb;color:#171516;display:flex;flex-direction:column}
.access-top{display:flex;align-items:center;gap:9px;color:#777170;font-size:.56rem;letter-spacing:.14em;white-space:nowrap}.status-dot{width:6px;height:6px;border-radius:50%;background:#c64d52;box-shadow:0 0 0 4px rgba(198,77,82,.1)}.access-line{height:1px;background:#d8d3d0;flex:1;margin:0 5px}
.access-content{width:100%;max-width:390px;margin:auto}
.access-icon{width:42px;height:42px;border:1px solid #d9d3d0;border-radius:50%;display:grid;place-items:center;margin-bottom:30px}.access-icon svg{width:18px;height:18px;stroke:#a63d42;stroke-width:1.5}
.access-kicker{color:#a84045;margin:0 0 13px;font-size:.59rem}
.access-content h2{font-size:clamp(2.35rem,4vw,3.45rem);line-height:1.06;color:#211d1d;font-weight:500;margin:0 0 16px;letter-spacing:-.04em}.access-content h2 em{color:#b8494e}
.access-description{font-size:.82rem;color:#777170;line-height:1.8;max-width:340px;margin:0 0 30px}
.access-form{display:flex;flex-direction:column;gap:17px}.access-form .field label{font-size:.57rem;letter-spacing:.15em;color:#777170;margin:0 0 8px 1px}.access-form input[type=text],.access-form input[type=password]{border:1px solid #d9d4d1;background:#e9e6e3;color:#242020;border-radius:4px;padding:15px 14px;font-size:.83rem;box-shadow:none}.access-form input::placeholder{color:#a39b98}.access-form input:focus{border-color:#b94c51;box-shadow:0 0 0 3px rgba(185,76,81,.1);background:#f7f5f3}.access-form button{width:100%;display:flex;align-items:center;justify-content:space-between;padding:16px 17px;margin-top:4px;border:0;border-radius:4px;background:#a9363c;color:#fff;font-size:.78rem;letter-spacing:.02em}.access-form button:hover{background:#bd4147}.button-arrow{font-size:1.1rem;font-weight:400}.access-help{font-size:.67rem;color:#938b88;margin:21px 0 0}.access-help span{color:#5b5150;text-decoration:underline;text-underline-offset:3px}
.portal-access .social-links{justify-content:flex-start;gap:15px;margin:22px 0 0;animation:none}.portal-access .social-link{padding:0;border:0;background:none;box-shadow:none;color:#756c69;font-size:.64rem;letter-spacing:.04em}.portal-access .social-link:hover{color:#a9363c;transform:none}
.access-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding-top:20px;border-top:1px solid #d9d4d1;color:#938b88;font-size:.52rem;letter-spacing:.12em}.access-bottom a{color:#5e5553;text-decoration:none}.access-bottom a span{color:#a9363c;margin-left:5px}
.portal-page .site-footer{display:none}
@media(max-width:900px){.portal-layout{grid-template-columns:1fr}.portal-story{min-height:520px;padding:26px 28px 22px}.story-copy{padding:75px 0 65px}.story-copy h1{font-size:clamp(3.5rem,11vw,6rem)}.visual-panel{width:380px;height:380px;right:-110px;bottom:-100px;opacity:.42}.portal-access{min-height:690px;padding:26px 28px}.access-content{margin:65px auto}.story-footer{font-size:.5rem}}
@media(max-width:520px){.brand-note{font-size:.48rem;letter-spacing:.08em}.portal-story{min-height:490px}.story-copy{padding:65px 0 75px}.story-copy h1{font-size:3.45rem}.story-description{font-size:.85rem;max-width:300px}.story-foot{margin-top:36px}.story-caption{display:none}.visual-panel{width:300px;height:300px;right:-140px;bottom:-80px}.portal-access{min-height:650px;padding:23px 22px}.access-content{margin:54px auto}.access-content h2{font-size:2.7rem}.access-bottom{font-size:.46rem}.gallery-topbar{border-radius:9px;width:calc(100% - 20px);padding:12px 14px}.gallery-topbar .actions{font-size:.75rem}.photo-grid{column-width:calc(50% - 8px);column-gap:9px;padding:0 10px 45px}.photo-grid .cell{margin-bottom:9px;border-radius:4px}.admin-shell{margin:12px 10px 40px;padding:23px 16px;border-radius:10px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* PsycerArt dark access panel refinement: keep the split layout, remove the bright ivory surface. */
.portal-access {
  background:
    radial-gradient(ellipse at 82% 12%, rgba(130, 20, 32, .16), transparent 42%),
    linear-gradient(145deg, #151112 0%, #0d0c0d 58%, #090909 100%);
  color: #f2eeee;
  border-left: 1px solid rgba(218, 65, 73, .18);
}
.portal-access .access-top { color: #a79a9a; }
.portal-access .access-line { background: rgba(255,255,255,.12); }
.portal-access .access-content h2,
.portal-access .access-content h1 { color: #f5eeee; }
.portal-access .access-form .field label { color: #b5a6a6; }
.portal-access .access-form input[type=text],
.portal-access .access-form input[type=password] {
  border: 1px solid rgba(255,255,255,.13);
  background: #191617;
  color: #f5eeee;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025);
}
.portal-access .access-form input::placeholder { color: #776d6d; }
.portal-access .access-form input:focus {
  border-color: #b94c51;
  background: #201719;
  box-shadow: 0 0 0 3px rgba(185,76,81,.16);
}
.portal-access .access-form button {
  background: linear-gradient(105deg, #a52b34, #c43b43);
  border: 1px solid rgba(255,125,130,.2);
}
.portal-access .access-form button:hover { background: linear-gradient(105deg, #bd333d, #dc4850); }
.portal-access .access-help { color: #938889; }
.portal-access .access-help span { color: #d7bfc0; }
.portal-access .social-link { color: #a89a9b; }
.portal-access .social-link:hover { color: #ff8589; }
.portal-access .access-bottom { color: #817778; }

/* =====================================================================
   PSYCERART COSPLAY / COMICCON EDITORIAL HOMEPAGE
   ===================================================================== */
.cosplay-home{background:#050506;color:#f7f3f0;overflow-x:hidden}
.cosplay-home .cosplay-bg{position:fixed;inset:0;z-index:-2;overflow:hidden;background:#050506}
.cosplay-home .cosplay-bg span{position:absolute;border-radius:50%;filter:blur(80px);opacity:.28}
.cosplay-home .cosplay-bg span:nth-child(1){width:55vw;height:55vw;left:-28vw;top:-30vw;background:#720817}
.cosplay-home .cosplay-bg span:nth-child(2){width:45vw;height:45vw;right:-20vw;top:20vh;background:#3e0610}
.cosplay-home .cosplay-bg span:nth-child(3){width:35vw;height:35vw;left:28vw;bottom:-25vw;background:#8c0c1d}
.cosplay-nav{height:78px;padding:0 clamp(22px,6vw,92px);display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:30px;position:sticky;top:0;z-index:20;background:rgba(5,5,6,.78);border-bottom:1px solid rgba(255,255,255,.07);backdrop-filter:blur(18px)}
.cosplay-logo{display:flex;flex-direction:column;text-decoration:none;line-height:1}.cosplay-logo>span{font:400 27px/1 'Playfair Display',serif;letter-spacing:.09em}.cosplay-logo>span span{color:#d91f35}.cosplay-logo small{font-size:8px;letter-spacing:.24em;color:#8f8587;margin-top:7px}
.cosplay-nav nav{display:flex;gap:34px}.cosplay-nav nav a{text-decoration:none;text-transform:uppercase;font-size:10px;letter-spacing:.22em;color:#aaa2a4;transition:.25s}.cosplay-nav nav a:hover,.cosplay-nav nav a.active{color:#fff}.cosplay-nav nav a.active{position:relative}.cosplay-nav nav a.active:after{content:'';position:absolute;left:0;right:0;bottom:-14px;height:2px;background:#e3223b;box-shadow:0 0 14px rgba(227,34,59,.7)}
.nav-login{justify-self:end;text-decoration:none;text-transform:uppercase;font-size:9px;letter-spacing:.18em;border:1px solid rgba(226,34,59,.7);padding:11px 15px;color:#eee;border-radius:2px;transition:.25s}.nav-login:hover{background:#c71830;border-color:#e62d45}.lock-mini{font-size:15px;color:#e3223b;margin-right:7px}
.cosplay-hero{min-height:calc(100vh - 78px);position:relative;display:grid;grid-template-columns:minmax(380px,.86fr) minmax(520px,1.14fr);align-items:stretch;max-width:1800px;margin:0 auto;overflow:hidden;border-bottom:1px solid rgba(255,255,255,.07)}
.hero-copy{display:flex;flex-direction:column;justify-content:center;padding:80px clamp(28px,7vw,105px) 80px;position:relative;z-index:3;background:linear-gradient(90deg,#050506 72%,rgba(5,5,6,.72) 100%)}
.hero-kicker,.section-kicker{font-size:10px;letter-spacing:.28em;color:#e32a40;font-weight:700;display:flex;align-items:center;gap:12px;margin:0}.hero-kicker span,.section-kicker span{display:inline-block;width:36px;height:1px;background:#e32a40;box-shadow:0 0 10px rgba(227,42,64,.45)}
.hero-copy h1{font-family:'Playfair Display',serif;font-size:clamp(4rem,7.2vw,7.5rem);line-height:.91;letter-spacing:-.055em;margin:27px 0 28px;font-weight:500}.hero-copy h1 em{font-style:normal;color:#e32139;font-family:'Bebas Neue',sans-serif;font-size:1.06em;letter-spacing:.015em;text-shadow:0 0 35px rgba(221,26,48,.2)}
.hero-lede{max-width:475px;color:#a7a0a2;font-size:14px;line-height:1.9;margin:0}.hero-actions{display:flex;align-items:center;gap:28px;margin-top:38px}.hero-cta{display:inline-flex;align-items:center;justify-content:space-between;gap:35px;padding:15px 18px;border:1px solid #e3223b;color:#fff;text-decoration:none;text-transform:uppercase;font-size:10px;letter-spacing:.18em;min-width:195px;transition:.25s}.hero-cta span{color:#ff5268;font-size:17px}.hero-cta:hover{background:#d51d36;box-shadow:0 0 30px rgba(213,29,54,.2)}.hero-text-link{color:#aaa1a4;text-decoration:none;text-transform:uppercase;font-size:9px;letter-spacing:.17em}.hero-text-link span{color:#e3223b;margin-left:8px}.hero-meta{display:flex;align-items:center;gap:14px;color:#6f686a;text-transform:uppercase;font-size:8px;letter-spacing:.2em;margin-top:68px}.hero-meta i{width:58px;height:1px;background:#342d2f}.hero-meta-end{margin-left:auto}
.hero-image-wrap{position:relative;min-height:calc(100vh - 78px);overflow:hidden}.hero-image{position:absolute;inset:0;background-image:linear-gradient(90deg,rgba(5,5,6,.9) 0%,rgba(5,5,6,.2) 28%,rgba(5,5,6,.02) 55%),linear-gradient(0deg,rgba(5,5,6,.55),transparent 45%),url('/images/cosplay-hero.png');background-size:cover;background-position:66% center;filter:saturate(.88) contrast(1.08);transform:scale(1.02)}.hero-image:after{content:'';position:absolute;inset:0;background:linear-gradient(110deg,transparent 45%,rgba(218,21,43,.12),transparent 70%);mix-blend-mode:screen}.hero-image-label{position:absolute;left:28px;bottom:28px;z-index:3;text-transform:uppercase;font-size:8px;letter-spacing:.2em;color:#ddd}.hero-image-label b{font-weight:500;color:#e62b40;margin-left:14px}.hero-vertical{position:absolute;right:18px;top:30%;writing-mode:vertical-rl;color:#8f8587;font-size:8px;letter-spacing:.23em}.scroll-cue{position:absolute;right:25px;bottom:38px;z-index:5;display:flex;flex-direction:column;align-items:center;gap:11px;color:#8d8587}.scroll-cue span{font-size:7px;letter-spacing:.25em;writing-mode:vertical-rl}.scroll-cue b{width:1px;height:52px;background:linear-gradient(#e3233b,transparent)}.scroll-cue small{color:#e3233b;font-size:15px}
.featured-section,.about-strip,.client-section{max-width:1800px;margin:0 auto;padding:110px clamp(24px,6vw,95px)}.section-heading{display:flex;justify-content:space-between;align-items:end;gap:30px;margin-bottom:40px}.section-heading h2,.about-grid h2,.client-intro h2{font-family:'Playfair Display',serif;font-size:clamp(3rem,5vw,5.6rem);font-weight:500;line-height:.95;letter-spacing:-.045em;margin:18px 0 0}.section-heading h2 em,.about-grid h2 em,.client-intro h2 em{color:#df243b;font-style:italic}.section-note{font-size:11px;line-height:1.8;color:#7f777a;text-align:right;text-transform:uppercase;letter-spacing:.12em;margin:0}.featured-grid{display:grid;grid-template-columns:1.12fr .88fr .88fr;gap:15px}.feature-card{height:510px;position:relative;overflow:hidden;text-decoration:none;border:1px solid rgba(255,255,255,.08);background:#100d0f}.feature-image{position:absolute;inset:0;background-image:linear-gradient(0deg,rgba(0,0,0,.82),transparent 60%);background-size:cover;background-position:center;transition:transform .7s ease,filter .7s ease}.card-a .feature-image{background-image:linear-gradient(0deg,rgba(0,0,0,.84),transparent 58%),url('/images/cosplay-hero.png');background-position:55% center}.card-b .feature-image{background-image:linear-gradient(0deg,rgba(0,0,0,.86),transparent 58%),url('/images/cosplay-hero.png');background-position:28% center;filter:hue-rotate(320deg) saturate(.75)}.card-c .feature-image{background-image:linear-gradient(0deg,rgba(0,0,0,.86),transparent 58%),url('/images/cosplay-hero.png');background-position:78% center;filter:grayscale(.45) contrast(1.1)}.feature-overlay{position:absolute;inset:0;background:linear-gradient(135deg,rgba(219,25,48,.16),transparent 45%);opacity:0;transition:.35s}.feature-card:hover .feature-image{transform:scale(1.045);filter:saturate(1.1)}.feature-card:hover .feature-overlay{opacity:1}.feature-info{position:absolute;left:25px;right:25px;bottom:24px}.feature-info span{font-size:8px;letter-spacing:.22em;color:#df6875}.feature-info h3{font-family:'Playfair Display',serif;font-weight:500;font-size:39px;line-height:.93;margin:12px 0 22px}.feature-info h3 em{font-style:italic;color:#fff}.feature-info b{font-size:8px;text-transform:uppercase;letter-spacing:.18em;color:#fff;font-weight:500}.feature-info b::after{content:'  →';color:#e3223b;font-size:13px}
.about-strip{border-top:1px solid rgba(255,255,255,.07);border-bottom:1px solid rgba(255,255,255,.07)}.about-grid{display:grid;grid-template-columns:1.3fr .7fr;gap:80px;align-items:end}.about-grid p{max-width:430px;color:#8f8789;font-size:14px;line-height:2;margin:0 0 8px}
.client-section{position:relative;display:grid;grid-template-columns:1fr 430px;gap:100px;align-items:center;min-height:720px;overflow:hidden}.client-backdrop{position:absolute;inset:15% 35% 10% -10%;background:radial-gradient(circle,rgba(170,12,34,.2),transparent 65%);pointer-events:none}.client-intro{position:relative;z-index:2}.client-intro>p:last-child{max-width:450px;color:#8e8588;line-height:1.9;font-size:14px}.client-card{position:relative;z-index:3;padding:34px;background:rgba(13,11,12,.92);border:1px solid rgba(255,255,255,.1);box-shadow:0 30px 90px rgba(0,0,0,.45)}.client-card:before{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(224,30,54,.08),transparent 35%)}.client-card-top{display:flex;align-items:center;gap:9px;color:#847a7d;font-size:8px;letter-spacing:.18em;padding-bottom:18px;border-bottom:1px solid rgba(255,255,255,.08)}.client-card-top span:last-child{margin-left:auto}.client-card .access-icon{margin:35px 0 25px;width:40px;height:40px;border:1px solid rgba(224,35,58,.4);border-radius:50%;display:grid;place-items:center}.client-card .access-icon svg{width:17px;height:17px;stroke:#e22a40;stroke-width:1.5}.client-card .access-kicker{font-size:8px;letter-spacing:.22em;color:#d94d5c;margin:0 0 10px}.client-card h3{font:500 37px/1 'Playfair Display',serif;margin:0 0 27px}.client-card h3 em{color:#e3233b}.client-card .access-form{display:flex;flex-direction:column;gap:16px}.client-card .field label{display:block;font-size:8px;letter-spacing:.18em;color:#8f8688;margin:0 0 8px}.client-card input[type=text],.client-card input[type=password]{border:1px solid rgba(255,255,255,.11);border-radius:2px;background:#080809;color:#f5eeee;padding:14px;font-size:12px;box-shadow:inset 0 1px 10px rgba(0,0,0,.5)}.client-card input::placeholder{color:#595154}.client-card input:focus{outline:none;border-color:#d82a42;box-shadow:0 0 0 3px rgba(216,42,66,.1)}.client-card button{width:100%;display:flex;align-items:center;justify-content:space-between;border:1px solid #df2a43;border-radius:2px;background:#cf1d37;color:#fff;padding:15px 16px;text-transform:uppercase;font-size:9px;letter-spacing:.18em;margin-top:3px}.client-card button:hover{background:#e12a43}.client-card .access-help{font-size:9px;color:#6f6669;margin:17px 0 0}.client-card .access-help span{color:#bbaeb0;text-decoration:underline;text-underline-offset:3px}.error-message{border:1px solid rgba(226,45,64,.5);background:rgba(226,45,64,.08);color:#ff9aa5;padding:10px;font-size:10px;margin-bottom:2px}.status-dot{width:6px;height:6px;border-radius:50%;background:#e3263e;box-shadow:0 0 0 4px rgba(227,38,62,.08)}
.cosplay-footer{max-width:1800px;margin:0 auto;padding:34px clamp(24px,6vw,95px);border-top:1px solid rgba(255,255,255,.07);display:grid;grid-template-columns:1fr 1fr 1fr;align-items:center;gap:20px;color:#6f686a}.cosplay-footer strong{font:500 20px/1 'Playfair Display',serif;color:#f4eeee;letter-spacing:.08em}.cosplay-footer strong span{color:#df243b}.cosplay-footer small{display:block;font-size:7px;letter-spacing:.2em;margin-top:6px}.cosplay-footer p{text-align:center;font-size:9px;text-transform:uppercase;letter-spacing:.18em}.cosplay-footer>span{justify-self:end;font-size:8px;letter-spacing:.15em}
@media(max-width:1000px){.cosplay-nav{grid-template-columns:1fr auto}.cosplay-nav nav{display:none}.cosplay-hero{grid-template-columns:1fr;min-height:auto}.hero-copy{min-height:650px;padding-top:120px;background:linear-gradient(90deg,#050506 0%,rgba(5,5,6,.82) 60%,rgba(5,5,6,.25))}.hero-image-wrap{position:absolute;inset:0;z-index:0;opacity:.65}.hero-copy{z-index:2}.hero-meta-end{display:none}.featured-grid{grid-template-columns:1fr 1fr}.card-a{grid-column:1/-1}.feature-card{height:430px}.about-grid,.client-section{grid-template-columns:1fr;gap:45px}.client-section{padding-top:90px;padding-bottom:90px}.client-card{max-width:520px;width:100%}}
@media(max-width:600px){.cosplay-nav{height:68px;padding:0 18px}.cosplay-logo>span{font-size:22px}.cosplay-logo small{font-size:6px}.nav-login{font-size:7px;padding:9px 10px}.hero-copy{min-height:690px;padding:90px 24px 70px}.hero-copy h1{font-size:clamp(3.5rem,17vw,5rem)}.hero-lede{font-size:12px}.hero-actions{align-items:flex-start;flex-direction:column;gap:19px}.hero-meta{margin-top:45px}.hero-image-wrap{min-height:690px}.featured-section,.about-strip,.client-section{padding:80px 20px}.section-heading{display:block}.section-note{text-align:left;margin-top:20px}.featured-grid{grid-template-columns:1fr}.card-a{grid-column:auto}.feature-card{height:430px}.about-grid h2{font-size:3.3rem}.client-card{padding:24px}.cosplay-footer{grid-template-columns:1fr;text-align:center;padding:30px 20px}.cosplay-footer p{text-align:center}.cosplay-footer>span{justify-self:center}}

/* ---------- Admin: public homepage feature picker ---------- */
.admin-featured-note {
  display:flex;
  align-items:center;
  gap:12px;
  margin:24px 0 16px;
  padding:14px 16px;
  border:1px solid rgba(224,35,58,.22);
  background:linear-gradient(135deg,rgba(224,35,58,.09),rgba(0,0,0,.16));
}
.admin-featured-dot { width:7px; height:7px; flex:0 0 7px; border-radius:50%; background:#e3263e; box-shadow:0 0 0 5px rgba(227,38,62,.08),0 0 16px rgba(227,38,62,.45); }
.admin-featured-note strong { display:block; color:#f3eeee; font-size:12px; letter-spacing:.04em; }
.admin-featured-note small { display:block; margin-top:3px; color:#958b8e; font-size:10px; }
.admin-photo-grid { grid-template-columns:repeat(auto-fill,minmax(190px,1fr)); }
.admin-photo-card { overflow:hidden; }
.admin-photo-card > img { display:block; width:100%; aspect-ratio:4/3; object-fit:cover; }
.admin-photo-controls { display:flex; align-items:flex-end; justify-content:space-between; gap:8px; padding:10px; background:rgba(5,5,6,.88); }
.admin-photo-controls form:first-child { min-width:0; flex:1; }
.admin-photo-controls label { margin:0; font-size:8px; text-transform:uppercase; letter-spacing:.13em; color:#8e8588; }
.admin-photo-controls select { display:block; width:100%; margin-top:6px; padding:8px 28px 8px 9px; border:1px solid rgba(255,255,255,.12); border-radius:2px; background:#0b0a0b; color:#eee; font:500 10px/1.2 Inter,sans-serif; }
.admin-photo-controls select:focus { outline:none; border-color:#d82a42; box-shadow:0 0 0 3px rgba(216,42,66,.1); }
.admin-photo-controls form:last-child button { white-space:nowrap; }

/* Public featured cards become real gallery highlights when selected in Admin. */
.feature-live .feature-image { background-position:center; }
.feature-live:hover .feature-image { filter:saturate(1.08) contrast(1.04); }
.feature-empty { cursor:default; border-style:dashed; border-color:rgba(255,255,255,.12); background:radial-gradient(circle at 70% 25%,rgba(176,12,34,.12),transparent 40%),#0a090a; }
.feature-empty .feature-info { opacity:.72; }
.feature-empty-mark { position:absolute; top:28px; right:28px; font:500 11px/1 'Playfair Display',serif; letter-spacing:.16em; color:#4e484a; }
.feature-empty-mark span { color:#8f1827; }
.feature-empty:before { content:''; position:absolute; width:120px; height:120px; right:8%; top:24%; border:1px solid rgba(224,35,58,.16); transform:rotate(45deg); box-shadow:0 0 70px rgba(224,35,58,.06); }
.admin-photo-card { aspect-ratio:auto; }
.admin-photo-card > img { height:auto; }
.admin-photo-controls form { position:static; }
.admin-photo-controls button { padding:7px 10px; }


.admin-save-message {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  padding: 12px 14px;
  border: 1px solid rgba(210, 20, 45, .35);
  background: rgba(210, 20, 45, .08);
  color: #f1f1f1;
  font-size: .9rem;
}
.admin-save-message span { color: #e21c3d; font-weight: 700; }

/* ---------- Public features on the homepage (any number of photos, own collections) ---------- */
.pf-collection { margin-top: 64px; }
.pf-collection:first-of-type { margin-top: 8px; }
.pf-head { display:flex; align-items:baseline; justify-content:space-between; gap:20px; margin-bottom:18px; padding-bottom:14px; border-bottom:1px solid rgba(255,255,255,.09); }
.pf-head h3 { margin:0; font-family:'Playfair Display',serif; font-weight:500; font-size:clamp(1.6rem,3vw,2.4rem); letter-spacing:-.02em; }
.pf-head h3 span { font:700 10px/1 'DM Sans',sans-serif; letter-spacing:.22em; color:#e32a40; margin-right:12px; vertical-align:middle; }
.pf-head small { font-size:9px; letter-spacing:.2em; color:#7f777a; white-space:nowrap; }
.pf-grid { column-width: 260px; column-gap: 12px; }
.pf-item { display:block; margin:0 0 12px; break-inside:avoid; position:relative; overflow:hidden; background:#100d0f; border:1px solid rgba(255,255,255,.07); cursor:zoom-in; }
.pf-item img { display:block; width:100%; height:auto; transition:transform .6s ease, filter .6s ease; }
.pf-item:hover img, .pf-item:focus-visible img { transform:scale(1.035); filter:saturate(1.1); }
.pf-item:after { content:''; position:absolute; inset:0; background:linear-gradient(135deg,rgba(219,25,48,.18),transparent 50%); opacity:0; transition:.3s; pointer-events:none; }
.pf-item:hover:after { opacity:1; }
.pf-empty { position:relative; padding:90px 20px; text-align:center; border:1px dashed rgba(255,255,255,.12); background:#0a090a; color:#8d8587; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
.pf-empty .feature-empty-mark { position:static; margin-bottom:14px; font-size:14px; }

.pf-lightbox { position:fixed; inset:0; z-index:1000; display:flex; align-items:center; justify-content:center; background:rgba(4,3,4,.94); backdrop-filter:blur(8px); }
.pf-lightbox[hidden] { display:none; }
.pf-lightbox figure { margin:0; max-width:min(92vw,1600px); display:flex; flex-direction:column; align-items:center; gap:12px; }
.pf-lightbox img { max-width:100%; max-height:calc(100vh - 110px); object-fit:contain; box-shadow:0 20px 80px rgba(0,0,0,.6); transition:opacity .2s; }
.pf-lightbox img.loading { opacity:.35; }
.pf-lightbox figcaption { font-size:10px; letter-spacing:.2em; text-transform:uppercase; color:#9a9194; }
.pf-close, .pf-nav { position:absolute; display:grid; place-items:center; width:46px; height:46px; border:1px solid rgba(255,255,255,.16); border-radius:50%; background:rgba(20,17,18,.7); color:#fff; font-size:26px; line-height:1; cursor:pointer; transition:.2s; }
.pf-close:hover, .pf-nav:hover { background:#d51d36; border-color:#d51d36; }
.pf-close { top:18px; right:18px; }
.pf-nav { top:50%; transform:translateY(-50%); }
.pf-prev { left:18px; }
.pf-next { right:18px; }
@media (max-width:600px) { .pf-grid { column-width:150px; column-gap:8px; } .pf-item { margin-bottom:8px; } .pf-nav { width:38px; height:38px; } .pf-prev { left:8px; } .pf-next { right:8px; } }

/* Admin: bulk bar, photo checkboxes, feature rows */
.bulk-bar { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:0 0 14px; padding:10px 12px; border:1px solid rgba(255,255,255,.08); background:#1a1819; position:sticky; top:0; z-index:5; }
.bulk-bar select { padding:8px 28px 8px 9px; border:1px solid rgba(255,255,255,.12); border-radius:2px; background:#0b0a0b; color:#eee; font:500 11px/1.2 Inter,sans-serif; }
.bulk-bar [data-selected-count] { font-size:11px; }
.admin-photo-card { position:relative; }
.photo-pick { position:absolute; top:8px; left:8px; z-index:3; width:20px; height:20px; accent-color:#e3263e; cursor:pointer; }
.feature-admin-row { gap:16px; }
.feature-rename { display:flex; align-items:center; gap:10px; flex:1; min-width:0; }
.feature-rename input { flex:1; min-width:0; }
.feature-admin-row .row-actions form { margin:0; }

/* ---------- Homepage feature cards + single feature page ---------- */
.featured-grid.pf-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pf-cards .feature-card { height: 470px; display: block; }
.pf-cards .feature-info h3 { font-size: clamp(1.9rem, 2.6vw, 2.4rem); overflow-wrap: anywhere; }
.pf-cards .feature-card:focus-visible { outline: 2px solid #e3223b; outline-offset: 3px; }
.pf-page { padding-top: 56px; }
.pf-back { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 34px; color: #aaa1a4; text-decoration: none; text-transform: uppercase; font-size: 9px; letter-spacing: .18em; transition: color .2s; }
.pf-back span { color: #e3223b; font-size: 15px; }
.pf-back:hover { color: #fff; }
.pf-page .section-heading h2 { overflow-wrap: anywhere; }
.pf-next-feature { display: block; margin-top: 70px; padding: 28px 0 0; border-top: 1px solid rgba(255,255,255,.09); text-decoration: none; color: #fff; }
.pf-next-feature small { display: block; font-size: 9px; letter-spacing: .22em; color: #df6875; }
.pf-next-feature span { display: block; margin-top: 10px; font-family: 'Playfair Display', serif; font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: -.02em; transition: color .2s; }
.pf-next-feature b { color: #e3223b; font-weight: 500; margin-left: 8px; transition: margin-left .25s; }
.pf-next-feature:hover b { margin-left: 16px; }
@media (max-width: 600px) { .pf-cards .feature-card { height: 400px; } .pf-page { padding-top: 40px; } }

/* ---------- Hero slideshow (public photos) ---------- */
.hero-slides { position:absolute; inset:0; background:#0a090a; }
.hero-slide { position:absolute; inset:0; margin:0; opacity:0; transition:opacity 1.3s ease; }
.hero-slide.is-active { opacity:1; z-index:1; }
.hero-slide img { display:block; width:100%; height:100%; object-fit:cover; object-position:center 28%; filter:saturate(.94) contrast(1.05); transform:scale(1.02); transition:transform 0s 1.3s; }
.hero-slide.is-active img { transform:scale(1.09); transition:transform 11s linear; }
.hero-still .hero-slide img, .hero-still .hero-slide.is-active img { transform:none; transition:none; }
.hero-shade { position:absolute; inset:0; z-index:2; pointer-events:none; background:linear-gradient(90deg,rgba(5,5,6,.92) 0%,rgba(5,5,6,.22) 28%,rgba(5,5,6,.02) 55%),linear-gradient(0deg,rgba(5,5,6,.78),transparent 42%); }
.hero-shade:after { content:''; position:absolute; inset:0; background:linear-gradient(110deg,transparent 45%,rgba(218,21,43,.12),transparent 70%); mix-blend-mode:screen; }
.hero-live .hero-image-label { z-index:4; bottom:84px; left:28px; display:flex; flex-direction:column; gap:10px; font-size:8px; }
.hero-label-kicker { font-size:8px; letter-spacing:.24em; color:#e62b40; }
.hero-label-link { display:flex; flex-direction:column; gap:8px; color:#fff; text-decoration:none; max-width:min(420px,60vw); }
.hero-label-link b { margin:0; font-family:'Playfair Display',serif; font-weight:500; font-size:clamp(1.5rem,2.4vw,2.3rem); line-height:1; letter-spacing:-.02em; text-transform:none; color:#fff; overflow-wrap:anywhere; }
.hero-label-link i { font-style:normal; font-size:9px; letter-spacing:.2em; text-transform:uppercase; color:#cfc7ca; transition:color .2s, letter-spacing .25s; }
.hero-label-link:hover i { color:#fff; letter-spacing:.26em; }
.hero-progress { position:absolute; z-index:4; left:28px; bottom:30px; display:flex; align-items:center; gap:8px; }
.hero-progress button { position:relative; width:42px; height:14px; padding:0; border:0; background:transparent; cursor:pointer; }
.hero-progress button:before { content:''; position:absolute; left:0; right:0; top:6px; height:2px; background:rgba(255,255,255,.22); }
.hero-progress button i { position:absolute; left:0; top:6px; height:2px; width:0; background:#e3223b; box-shadow:0 0 10px rgba(227,34,59,.55); }
.hero-progress button.is-active i { animation:heroFill var(--hero-interval,6500ms) linear forwards; }
.hero-still .hero-progress button.is-active i { animation:none; width:100%; }
.hero-progress button:focus-visible { outline:2px solid #e3223b; outline-offset:2px; }
.hero-count { margin-left:10px; font-size:9px; letter-spacing:.18em; color:#8d8587; }
.hero-count b { color:#fff; font-weight:500; }
@keyframes heroFill { from { width:0; } to { width:100%; } }
@media (max-width:1000px) { .hero-live .hero-image-label, .hero-progress { display:none; } }

/* Menu jumps: smooth scroll, and stop below the sticky menu bar */
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
#featured, #about, #client-access, #contact { scroll-margin-top: 78px; }

/* ---------- Contact section ---------- */
.contact-section { max-width:1800px; margin:0 auto; padding:110px clamp(24px,6vw,95px); border-bottom:1px solid rgba(255,255,255,.07); }
.contact-grid { display:grid; grid-template-columns:1.1fr .9fr; gap:clamp(36px,6vw,110px); align-items:center; }
.contact-intro h2 { font-family:'Playfair Display',serif; font-size:clamp(3rem,5vw,5.6rem); font-weight:500; line-height:.95; letter-spacing:-.045em; margin:18px 0 26px; }
.contact-intro h2 em { color:#df243b; font-style:italic; }
.contact-intro > p:not(.section-kicker) { max-width:470px; margin:0; color:#a7a0a2; font-size:14px; line-height:1.9; }
.contact-list { list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:12px; }
.contact-link { display:flex; align-items:center; gap:18px; padding:20px 22px; text-decoration:none; color:#fff; border:1px solid rgba(255,255,255,.09); background:linear-gradient(135deg,rgba(255,255,255,.035),rgba(255,255,255,.01)); transition:border-color .25s, background .25s, transform .25s; }
.contact-link:hover, .contact-link:focus-visible { border-color:#e3223b; background:linear-gradient(135deg,rgba(227,34,59,.14),rgba(227,34,59,.02)); transform:translateX(6px); outline:none; }
.contact-icon { display:grid; place-items:center; flex:0 0 46px; height:46px; border:1px solid rgba(255,255,255,.12); border-radius:50%; color:#e3223b; }
.contact-icon svg { width:20px; height:20px; }
.contact-text { display:flex; flex-direction:column; gap:5px; min-width:0; flex:1; }
.contact-text small { font-size:9px; letter-spacing:.22em; color:#8d8587; }
.contact-text b { font-weight:500; font-size:15px; letter-spacing:.01em; overflow-wrap:anywhere; }
.contact-arrow { color:#e3223b; font-size:18px; transition:transform .25s; }
.contact-link:hover .contact-arrow { transform:translate(3px,-3px); }
.contact-empty { padding:24px; border:1px dashed rgba(255,255,255,.12); color:#8d8587; font-size:12px; letter-spacing:.12em; text-transform:uppercase; }
@media (max-width:1000px) { .contact-grid { grid-template-columns:1fr; gap:40px; } .contact-section { padding-top:90px; padding-bottom:50px; } }
@media (max-width:600px) { .contact-section { padding:80px 20px 40px; } .contact-intro h2 { font-size:3.3rem; } .contact-link { padding:16px; gap:14px; } }

/* Five menu items: tighten the spacing on mid-size screens so nothing wraps */
@media (max-width: 1280px) { .cosplay-nav nav { gap: 22px; } .cosplay-nav nav a { letter-spacing: .16em; } }
