:root {
  --bg: #0e1014;
  --panel: #171a21;
  --text: #e8e6e1;
  --muted: #9aa3b2;
  --accent: #c48a10;
  --line: #2a3140;
  --max: 1100px;
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #e0a82a; }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 16, 20, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.logo {
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  font-size: 0.95rem;
}
.logo span { color: var(--accent); }
.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 600;
}
.nav a:hover,
.nav a.active { color: var(--text); }

/* hero */
.hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
}
.hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.hero p {
  margin: 0 0 18px;
  max-width: 52ch;
  color: var(--muted);
  font-size: 1.05rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent);
  color: #111;
}
.btn-primary:hover { background: #e0a82a; color: #111; }
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: transparent;
}
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }

/* sections */
section { padding: 40px 0; }
section h2 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  letter-spacing: 0.02em;
}
.section-lead {
  margin: 0 0 22px;
  color: var(--muted);
  max-width: 60ch;
}

/* grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
}
.card {
  background: var(--panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
}
.card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  background: #222;
}
.card .cap {
  padding: 10px 12px 12px;
  font-size: 0.88rem;
  color: var(--muted);
}
.job {
  margin: 0 0 36px;
}
.job h3 {
  margin: 0 0 12px;
  font-size: 1.08rem;
  font-weight: 650;
}
.job .grid .card,
.job-view .grid .card {
  cursor: pointer;
  border: 0;
  padding: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

.album-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}
a.album {
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  min-height: 220px;
}
a.album:hover { border-color: var(--accent); }
a.album img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  background: #222;
}
a.album span {
  display: block;
  padding: 12px 14px 14px;
  font-weight: 650;
  font-size: 0.95rem;
}
a.album small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.78rem;
}
.job-view,
.cat-view {
  display: none;
  padding: 0 0 40px;
}
.job-view:target,
.cat-view:target { display: block; }
.job-view h2,
.cat-view h2 { margin: 0 0 16px; }
.back { margin: 0 0 10px; }
.back a { font-weight: 650; color: var(--muted); }
.back a:hover { color: var(--accent); }
.home-layer { display: block; padding: 0 0 40px; }
body:has(.cat-view:target) .home-layer,
body:has(.job-view:target) .home-layer { display: none; }
body:has(.job-view:target) .cat-view { display: none; }
a.album.cat-tile img { height: 170px; }
a.album.cat-tile span { font-size: 1.05rem; }

/* facebook */
.fb-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  overflow: hidden;
  display: flex;
  justify-content: center;
  width: 100%;
}
.fb-frame {
  width: 500px;
  height: 700px;
  border: 0;
  display: block;
}
@media (min-width: 701px) {
  .fb-wrap {
    min-height: 1190px;
  }
  .fb-frame {
    transform: scale(1.7);
    transform-origin: top center;
  }
}
.fb-open {
  text-align: center;
  margin: 14px 0 0;
}
.fb-fallback {
  color: var(--muted);
  font-size: 0.95rem;
  padding: 8px;
}
.fb-fallback a { font-weight: 650; }

/* two col */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 28px;
  align-items: start;
}
@media (max-width: 800px) {
  .split { grid-template-columns: 1fr; }
}

/* contact */
.contact-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.contact-list li {
  margin: 0 0 12px;
  padding: 12px 14px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
}
.contact-list strong {
  display: block;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 2px;
}

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0 36px;
  color: var(--muted);
  font-size: 0.88rem;
}
.site-footer .inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

/* lightbox — framed photo + click-through */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 14, 0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
  padding: 48px 72px 56px;
}
.lb.open { display: flex; }
.lb-stage {
  position: relative;
  max-width: min(1100px, 100%);
  max-height: 86vh;
}
.lb-stage img {
  display: block;
  max-width: min(1100px, 86vw);
  max-height: 78vh;
  border: 6px solid #fff;
  border-radius: 2px;
  box-shadow: 0 8px 32px rgba(0,0,0,.45);
  background: #111;
  cursor: pointer;
}
.lb-close,
.lb-prev,
.lb-next {
  position: absolute;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 0;
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.lb-close { top: 12px; right: 16px; font-size: 1.8rem; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb-close:hover,
.lb-prev:hover,
.lb-next:hover { background: rgba(196, 138, 16, 0.9); color: #111; }
.lb-meta {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 48px;
  text-align: center;
  color: #d8dce4;
  font-size: 0.88rem;
  font-weight: 600;
  pointer-events: none;
}
.lb-share {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  z-index: 2;
}
.share-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  font-size: 0.82rem;
}
.share-bar span {
  color: var(--muted);
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.share-bar a {
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  font-weight: 650;
}
.share-bar a:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lb-share .share-bar a {
  background: rgba(0,0,0,.45);
  border-color: rgba(255,255,255,.25);
  color: #fff;
}
.lb-share .share-bar span { color: #c5cad3; }
.site-footer .inner {
  flex-wrap: wrap;
}
.site-footer .share-bar { width: 100%; margin-top: 6px; }
@media (max-width: 700px) {
  .lb { padding: 56px 12px 48px; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
}

.site-credit {
  margin: 10px 0 0;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #6a7386;
  text-align: center;
}

.site-credit a { color: #8a93a6; text-decoration: none; }
.site-credit a:hover { color: var(--gold); }

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
}
.pager-btn {
  background: #1b1f29;
  color: #f3f1ea;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
}
.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
}
.pager-btn:not(:disabled):hover { border-color: var(--gold); color: var(--gold); }
.album[hidden] { display: none !important; }

.fb-mobile {
  display: none;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
}
.fb-mobile p { margin: 0 0 14px; color: var(--muted); }
@media (max-width: 700px) {
  .fb-desktop,
  .fb-wrap.fb-desktop,
  .fb-frame {
    display: none !important;
    height: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
  }
  .fb-mobile { display: block; }
}