@font-face {
  font-family: 'FFFlauta';
  src: url('FFFlauta-200.otf') format('opentype');
  font-display: swap;
}

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

:root {
  --bg: #0a0a0b;
  --surface: #131315;
  --surface-soft: #1a1a1d;
  --text: #f5f5f4;
  --text-dim: rgba(245,245,244,.62);
  --text-faint: rgba(245,245,244,.34);
  --border: rgba(255,255,255,.09);
  --border2: rgba(255,255,255,.18);
  --discord: #5865F2;
  --ease: cubic-bezier(.22,.68,0,1);
}

html { scroll-behavior: smooth; background: var(--bg); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, system-ui, sans-serif;
  -webkit-tap-highlight-color: transparent;
}

::selection { background: var(--text); color: var(--bg); }
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border2); border-radius: 8px; }

:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -60px; left: 12px; z-index: 3000;
  background: var(--text); color: var(--bg);
  padding: 10px 18px; border-radius: 8px; font-size: 13px; font-weight: 700;
  transition: top .2s var(--ease);
}
.skip-link:focus { top: 12px; }

.vignette {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(ellipse 130% 110% at 50% 45%, transparent 55%, rgba(0,0,0,.6) 100%);
}

.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(10,10,11,.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform .35s var(--ease);
}
.site-header.hide { transform: translateY(-100%); }

.header-row {
  max-width: 1600px; margin: 0 auto;
  display: flex; align-items: center; gap: 24px;
  padding: 14px 24px;
}

.brand { display: flex; align-items: center; gap: 9px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; letter-spacing: .01em; flex-shrink: 0; }
.brand-mark { width: 24px; height: 24px; color: var(--text); }

.main-nav { display: flex; gap: 22px; flex-shrink: 0; }
.main-nav a { color: var(--text-dim); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color .2s; }
.main-nav a:hover { color: var(--text); }

.search-form {
  flex: 1; max-width: 460px; margin: 0 auto;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 99px; padding: 9px 16px;
}
.search-icon { width: 16px; height: 16px; color: var(--text-faint); flex-shrink: 0; }
.search-form input {
  flex: 1; min-width: 0; background: none; border: none; outline: none;
  color: var(--text); font-size: 13.5px; font-family: inherit;
}
.search-form input::placeholder { color: var(--text-faint); }
.icon-mini {
  display: flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border: none; background: none; color: var(--text-dim);
  cursor: pointer; border-radius: 6px; flex-shrink: 0; transition: color .2s, background .2s;
}
.icon-mini svg { width: 15px; height: 15px; }
.icon-mini:hover { color: var(--text); background: rgba(255,255,255,.08); }

.header-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.text-link { color: var(--text-dim); text-decoration: none; font-size: 13.5px; font-weight: 600; transition: color .2s; }
.text-link:hover { color: var(--text); }
.btn-pill-solid {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--text); color: var(--bg);
  text-decoration: none; font-size: 13px; font-weight: 700;
  padding: 9px 20px; border-radius: 99px;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn-pill-solid:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(0,0,0,.35); }

@media (max-width: 900px) { .main-nav { display: none; } }
@media (max-width: 700px) { .search-form { display: none; } .text-link { display: none; } }

.gallery-intro {
  max-width: 1600px; margin: 0 auto;
  padding: 46px 24px 20px;
  position: relative; z-index: 2;
}
.intro-text h1 {
  font-family: 'FFFlauta', sans-serif;
  font-size: clamp(36px, 6vw, 58px);
  letter-spacing: -.01em;
  margin-bottom: 8px;
}
.intro-text p { font-size: 13.5px; color: var(--text-dim); max-width: 520px; }

.gallery-controls {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-top: 28px; flex-wrap: wrap;
}

.tabs { display: flex; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 99px; padding: 4px; }
.tab {
  border: none; background: none; color: var(--text-dim);
  font-size: 12.5px; font-weight: 600; padding: 8px 16px;
  border-radius: 99px; cursor: pointer; transition: background .25s var(--ease), color .25s var(--ease);
}
.tab.active { background: var(--text); color: var(--bg); }
.tab:not(.active):hover { color: var(--text); }

.control-icons { display: flex; gap: 8px; align-items: center; }

.sort-btn {
  display: flex; align-items: center; gap: 7px;
  height: 38px; padding: 0 16px 0 14px;
  border-radius: 99px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); font-size: 12.5px; font-weight: 600; cursor: pointer;
  transition: all .25s var(--ease); white-space: nowrap;
}
.sort-btn svg { width: 15px; height: 15px; flex-shrink: 0; }
.sort-btn:hover { color: var(--text); border-color: var(--border2); }
.sort-btn.is-active { background: var(--text); color: var(--bg); border-color: transparent; }

.icon-btn {
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-dim); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all .25s var(--ease); flex-shrink: 0;
}
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--text); color: var(--bg); border-color: transparent; }

.popover {
  position: fixed;
  background: var(--surface-soft); border: 1px solid var(--border2);
  border-radius: 14px; padding: 14px; min-width: 190px;
  box-shadow: 0 20px 50px rgba(0,0,0,.6);
  z-index: 9999;
}
.popover[hidden] { display: none; }
.popover-label { display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--text-faint); margin-bottom: 10px; }
.segmented { display: flex; background: var(--bg); border-radius: 99px; padding: 3px; }
.seg { flex: 1; border: none; background: none; color: var(--text-dim); font-size: 12px; font-weight: 600; padding: 7px 0; border-radius: 99px; cursor: pointer; transition: background .2s, color .2s; }
.seg.active { background: var(--text); color: var(--bg); }

.results-count { margin-top: 16px; font-size: 11.5px; color: var(--text-faint); }

.gallery { max-width: 1600px; margin: 0 auto; padding: 0 24px 60px; position: relative; z-index: 2; }

.masonry { columns: 5 240px; column-gap: 8px; }
.masonry[data-density="compact"] { columns: 7 170px; column-gap: 6px; }

.tile {
  position: relative; overflow: hidden;
  border-radius: 8px; margin-bottom: 8px;
  break-inside: avoid; cursor: pointer;
  background: var(--surface);
  aspect-ratio: 3 / 4;
}
.tile[hidden] { display: none; }

.tile img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0; transition: opacity .4s var(--ease); }
.tile img.loaded { opacity: 1; }
.tile:hover img.loaded { transform: scale(1.03); transition: transform .4s var(--ease), opacity .4s var(--ease); }

.tile-plate {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  font-size: 9.5px; font-variant-numeric: tabular-nums; letter-spacing: .04em;
  color: rgba(255,255,255,.75); background: rgba(0,0,0,.4);
  padding: 3px 8px; border-radius: 99px; pointer-events: none;
}

@media (max-width: 1024px) { .masonry { columns: 3 190px; } .masonry[data-density="compact"] { columns: 4 150px; } }
@media (max-width: 640px) { .masonry { columns: 2 150px; column-gap: 6px; } .masonry[data-density="compact"] { columns: 2 130px; } .tile { border-radius: 6px; margin-bottom: 6px; } }

.eyebrow {
  display: inline-block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 14px; font-weight: 700;
}

.process {
  max-width: 1100px; margin: 0 auto; padding: 90px 24px;
  border-top: 1px solid var(--border); text-align: center; position: relative; z-index: 2;
}
.process h2 { font-family: 'FFFlauta', sans-serif; font-size: clamp(28px, 5vw, 44px); margin-bottom: 40px; }
.process-list { list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; text-align: left; }
.process-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 26px 20px; }
.num { font-family: 'FFFlauta', sans-serif; font-size: 26px; color: var(--text-faint); }
.process-list h3 { font-size: 16px; margin: 12px 0 6px; }
.process-list p { font-size: 12.5px; color: var(--text-dim); line-height: 1.6; }

@media (max-width: 900px) { .process-list { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .process-list { grid-template-columns: 1fr; } }

.contact {
  max-width: 720px; margin: 0 auto; padding: 90px 24px 140px;
  text-align: center; border-top: 1px solid var(--border);
  position: relative; z-index: 2;
}
.contact h2 { font-family: 'FFFlauta', sans-serif; font-size: clamp(28px, 5vw, 44px); margin-bottom: 12px; }
.contact > p { font-size: 13.5px; color: var(--text-dim); margin-bottom: 32px; }

.discord-cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--discord); color: #fff; text-decoration: none;
  font-weight: 700; font-size: 14px; padding: 16px 32px; border-radius: 99px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.discord-cta svg { width: 19px; height: 19px; }
.discord-cta:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(88,101,242,.4); }

.response-note { margin-top: 14px !important; font-size: 11px; color: var(--text-faint); }

.services-list {
  list-style: none; display: grid; grid-template-columns: repeat(4,1fr); gap: 10px;
  margin: 44px 0 56px; text-align: left;
}
.services-list li { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 18px 14px; display: flex; flex-direction: column; gap: 8px; }
.services-list svg { width: 20px; height: 20px; color: var(--text-dim); }
.services-list strong { font-size: 12.5px; }
.services-list span { font-size: 10.5px; color: var(--text-dim); }

@media (max-width: 700px) { .services-list { grid-template-columns: 1fr 1fr; } }

.faq { text-align: left; }
.faq h3 { font-size: 15px; margin-bottom: 16px; text-align: center; }
.faq details { border-bottom: 1px solid var(--border); padding: 16px 4px; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; font-size: 13.5px; font-weight: 600; color: var(--text); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 18px; color: var(--text-dim); transition: transform .25s var(--ease); margin-left: 12px; flex-shrink: 0; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { font-size: 12.5px; color: var(--text-dim); line-height: 1.7; margin-top: 10px; }

.site-footer { border-top: 1px solid var(--border); text-align: center; padding: 50px 24px 130px; position: relative; z-index: 2; }
.footer-brand { font-family: 'FFFlauta', sans-serif; font-size: 18px; margin-bottom: 18px; }
.footer-links { display: flex; justify-content: center; gap: 20px; margin-bottom: 22px; }
.footer-links a { color: var(--text-dim); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.footer-socials { display: flex; justify-content: center; gap: 10px; margin-bottom: 26px; }
.footer-socials a { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all .25s var(--ease); }
.footer-socials a svg { width: 15px; height: 15px; }
.footer-socials a:hover { background: var(--text); color: var(--bg); border-color: transparent; }
.footer-credits { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.footer-credit-chip { display: flex; align-items: center; gap: 6px; padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); text-decoration: none; }
.footer-credit-chip img { width: 16px; height: 16px; object-fit: contain; border-radius: 4px; }
.footer-credit-chip span { font-size: 9.5px; color: var(--text-dim); }
.footer-copy { font-size: 10px; color: var(--text-faint); }

.quick-nav {
  position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%);
  z-index: 800; display: flex; align-items: center; gap: 4px;
  background: rgba(19,19,21,.8); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border2); border-radius: 99px; padding: 6px;
  box-shadow: 0 20px 50px rgba(0,0,0,.5);
}
.quick-nav a { color: var(--text-dim); text-decoration: none; font-size: 12.5px; font-weight: 600; padding: 10px 16px; border-radius: 99px; transition: color .2s, background .2s; }
.quick-nav a:hover { color: var(--text); background: rgba(255,255,255,.06); }
.quick-nav-cta { background: var(--text) !important; color: var(--bg) !important; }
.quick-nav-cta:hover { background: #fff !important; }

@media (max-width: 560px) {
  .quick-nav a:not(.quick-nav-cta) { display: none; }
  .quick-nav-cta { padding: 12px 22px; }
}

.lightbox { display: none; position: fixed; inset: 0; z-index: 2500; background: rgba(4,4,5,.96); backdrop-filter: blur(10px); align-items: center; justify-content: center; flex-direction: column; padding: 20px; }
.lightbox.open { display: flex; }
.lb-img { max-width: 88vw; max-height: 78vh; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.6); opacity: 0; transition: opacity .3s var(--ease); }
.lb-img.loaded { opacity: 1; }
.lb-spinner {
  position: absolute; width: 34px; height: 34px;
  border: 3px solid rgba(255,255,255,.15); border-top-color: #fff;
  border-radius: 50%; animation: spin .8s linear infinite;
}
.lb-spinner[hidden] { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.lb-caption { display: none; align-items: center; gap: 10px; margin-top: 18px; font-size: 12px; color: rgba(255,255,255,.7); max-width: 88vw; text-align: center; justify-content: center; }
.lb-caption img { width: 20px; height: 20px; object-fit: contain; border-radius: 5px; }
.lb-caption a { color: #fff; text-decoration: underline; text-underline-offset: 2px; }
.lb-caption strong { color: #fff; }
.lb-close, .lb-arrow { position: absolute; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #fff; border-radius: 12px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .25s; }
.lb-close svg, .lb-arrow svg { width: 18px; height: 18px; }
.lb-close:hover, .lb-arrow:hover { background: rgba(255,255,255,.2); }
.lb-close { top: 22px; right: 22px; width: 44px; height: 44px; }
.lb-arrow { top: 50%; transform: translateY(-50%); width: 52px; height: 66px; }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
