@font-face {
  font-family: 'Brucey';
  src: local('Helvetica Neue'), local('Arial');
}

:root {
  --bg: #000000;
  --fg: #ffffff;
  --fg-dim: #8a8a8a;
  --fg-faint: #3a3a3a;
  --ease: cubic-bezier(0.65, 0, 0.35, 1);
}

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

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

::selection {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
  mix-blend-mode: difference;
}

.logo-mark img {
  height: 104px;
  width: auto;
  opacity: 0.95;
  transition: opacity 0.3s var(--ease);
}

.logo-mark:hover img {
  opacity: 1;
}

.site-nav {
  display: flex;
  gap: 36px;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-nav a {
  position: relative;
  padding-bottom: 4px;
}

.site-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--fg);
  transition: width 0.35s var(--ease);
}

.site-nav a:hover::after,
.site-nav a.active::after {
  width: 100%;
}

/* ---------- Intro ---------- */

.intro {
  padding: 96px 40px 120px;
  position: relative;
}

.intro-title {
  font-size: clamp(48px, 9vw, 128px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 0.94;
  text-transform: uppercase;
}

.intro-title span {
  display: block;
  overflow: hidden;
}

.intro-title em {
  font-style: normal;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
}

.intro-sub {
  margin-top: 28px;
  max-width: 520px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--fg-dim);
}

/* ---------- Work grid ---------- */

.work {
  padding: 0 0 2px;
}

.work-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 168px 40px 32px;
}

.work-row-label {
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.work-count {
  font-size: 12px;
  color: var(--fg-dim);
}

.project-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
}

.project {
  position: relative;
  width: 100%;
  aspect-ratio: 32 / 9;
  overflow: hidden;
  cursor: pointer;
  background: #0a0a0a;
}

.project.no-media {
  background: linear-gradient(135deg, #111 0%, #000 100%);
}

.project.no-media video {
  display: none;
}

.project video,
.project img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(0.35) brightness(0.75);
  transition: filter 0.6s var(--ease), transform 1.4s var(--ease);
}

.project:hover video,
.project:hover img {
  filter: grayscale(0) brightness(0.9);
  transform: scale(1.04);
}

.project-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
  background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,0.85) 100%);
  pointer-events: none;
}

.project-index {
  position: absolute;
  top: 20px;
  left: 24px;
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.1em;
}

.project-title {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-meta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-play {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
}

.project:hover .project-play {
  opacity: 1;
  transform: scale(1);
}

.project-play svg {
  width: 14px;
  height: 14px;
  fill: var(--fg);
}

@media (max-width: 860px) {
  .project {
    aspect-ratio: 16 / 9;
  }

  .work-row {
    padding-top: 128px;
  }
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0,0,0,0.97);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s var(--ease);
}

.lightbox.open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-inner {
  width: min(1100px, 90vw);
  transform: translateY(16px) scale(0.98);
  transition: transform 0.5s var(--ease);
}

.lightbox.open .lightbox-inner {
  transform: translateY(0) scale(1);
}

.lightbox video {
  width: 100%;
  max-height: 78vh;
  background: #000;
}

.lightbox-caption {
  display: flex;
  justify-content: space-between;
  padding-top: 18px;
  font-size: 13px;
  letter-spacing: 0.05em;
  color: var(--fg-dim);
}

.lightbox-close {
  position: absolute;
  top: 32px;
  right: 40px;
  font-size: 12px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.lightbox-close:hover {
  color: var(--fg);
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--fg-faint);
  font-size: 12px;
  color: var(--fg-dim);
  letter-spacing: 0.05em;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a:hover {
  color: var(--fg);
}

/* ---------- About page ---------- */

.about {
  min-height: 100vh;
  padding: 160px 40px 120px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 80px;
}

.about-photo {
  aspect-ratio: 4 / 5;
  background: #0a0a0a url('../images/portrait.jpg') center/cover no-repeat;
  filter: grayscale(1);
}

.about-title {
  font-size: clamp(32px, 4.5vw, 56px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin-bottom: 32px;
}

.about-body p {
  font-size: 16px;
  line-height: 1.75;
  color: var(--fg-dim);
  max-width: 540px;
  margin-bottom: 20px;
}

.about-body strong {
  color: var(--fg);
  font-weight: 500;
}

.about-list {
  margin-top: 56px;
}

.about-list-title {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 16px;
}

.about-list-row {
  display: flex;
  justify-content: space-between;
  padding: 14px 0;
  border-top: 1px solid var(--fg-faint);
  font-size: 14px;
}

.about-list-row:last-child {
  border-bottom: 1px solid var(--fg-faint);
}

.about-list-row span:last-child {
  color: var(--fg-dim);
}

.about-contact {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-contact a {
  font-size: 18px;
  font-weight: 500;
  width: fit-content;
  border-bottom: 1px solid var(--fg-faint);
  transition: border-color 0.3s var(--ease), color 0.3s var(--ease);
}

.about-contact a:hover {
  border-color: var(--fg);
}

@media (max-width: 860px) {
  .about {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 120px;
  }
}
