:root {
  --bg: #0a0a0b;
  --bg-alt: #131315;
  --fg: #f2f2f0;
  --fg-dim: #a3a3a0;
  --accent: #d8ff4f;
  --border: #232325;
  --gap: 2px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  scroll-behavior: smooth;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(10,10,11,0.85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.logo {
  color: var(--fg);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.08em;
  font-size: 14px;
  white-space: nowrap;
}
.site-header nav a {
  color: var(--fg-dim);
  text-decoration: none;
  margin-left: 28px;
  font-size: 14px;
  transition: color 0.15s;
}
.site-header nav a:hover { color: var(--fg); }

@media (max-width: 560px) {
  .site-header .wrap {
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    flex-wrap: wrap;
    row-gap: 10px;
  }
  .logo { font-size: 12px; }
  .site-header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
  }
  .site-header nav a {
    margin-left: 0;
    font-size: 13px;
  }
}

/* Hero */
.hero {
  padding: 100px 0 60px;
  border-bottom: 1px solid var(--border);
}
.hero h1 {
  font-size: clamp(28px, 5vw, 48px);
  line-height: 1.15;
  max-width: 820px;
  margin: 0 0 20px;
  font-weight: 700;
}
.hero p {
  color: var(--fg-dim);
  font-size: 17px;
  max-width: 620px;
  line-height: 1.6;
}

/* Work grid */
.work { padding: 60px 0; border-top: 1px solid var(--border); }
.work h2, .services h2, .about h2, .contact h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--fg-dim);
  margin: 0 0 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--gap);
}
@media (max-width: 900px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
}

.thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  cursor: pointer;
  background: var(--bg-alt);
  border: none;
  padding: 0;
  display: block;
  width: 100%;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
  filter: saturate(0.9);
}
.thumb:hover img {
  transform: scale(1.05);
  filter: saturate(1.1);
}
.thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0,0,0,0) 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
}
.play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s;
}
.thumb:hover .play-icon { opacity: 1; }
.play-icon svg { width: 16px; height: 16px; fill: #fff; margin-left: 2px; }

.clip-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: var(--fg);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 10px;
}

/* Services */
.services { padding: 60px 0; border-top: 1px solid var(--border); }
.service-list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
@media (max-width: 800px) {
  .service-list { grid-template-columns: repeat(2, 1fr); }
}
.service {
  display: block;
  text-decoration: none;
  color: inherit;
}
.service h3 {
  font-size: 16px;
  margin: 0 0 8px;
  transition: color 0.15s;
}
.service:hover h3 { color: var(--accent); }
.service p {
  color: var(--fg-dim);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

/* Work subsections */
.work-section {
  margin-bottom: 48px;
  scroll-margin-top: 80px;
}
.work-section h3 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--fg-dim);
  margin: 0 0 16px;
}
.external-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
}
.external-icon svg { width: 11px; height: 11px; fill: #fff; }

.lightbox-inner img {
  width: 100%;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

/* About / Contact */
.about, .contact {
  padding: 60px 0;
  border-top: 1px solid var(--border);
}
.about p, .contact p {
  color: var(--fg-dim);
  max-width: 620px;
  line-height: 1.6;
}
.btn {
  display: inline-block;
  margin-top: 12px;
  padding: 12px 22px;
  border: 1px solid var(--fg);
  border-radius: 4px;
  color: var(--fg);
  text-decoration: none;
  font-size: 14px;
  transition: background 0.15s, color 0.15s;
}
.btn:hover { background: var(--fg); color: var(--bg); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 30px 0;
  color: var(--fg-dim);
  font-size: 13px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-inner {
  width: min(92vw, 1200px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.lightbox-media {
  width: 100%;
  max-height: 78vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lightbox-media video,
.lightbox-media img {
  max-width: 100%;
  max-height: 78vh;
  width: auto;
  height: auto;
  background: #000;
  display: block;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--fg);
  font-size: 34px;
  cursor: pointer;
  line-height: 1;
  z-index: 2;
}
.lightbox-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.06);
  border: none;
  color: var(--fg);
  font-size: 20px;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  z-index: 2;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.16); }
.lightbox-arrow-prev { left: 16px; }
.lightbox-arrow-next { right: 16px; }
@media (max-width: 700px) {
  .lightbox-arrow { width: 38px; height: 38px; font-size: 16px; }
  .lightbox-arrow-prev { left: 6px; }
  .lightbox-arrow-next { right: 6px; }
}

/* Thumbnail strip */
.thumb-strip {
  display: flex;
  gap: 6px;
  margin-top: 14px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
}
.thumb-strip img {
  width: 72px;
  height: 42px;
  object-fit: cover;
  border-radius: 3px;
  cursor: pointer;
  opacity: 0.5;
  flex-shrink: 0;
  border: 2px solid transparent;
  transition: opacity 0.15s, border-color 0.15s;
}
.thumb-strip img:hover { opacity: 0.8; }
.thumb-strip img.active {
  opacity: 1;
  border-color: var(--accent);
}
