:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #7a7a7a;
  --thumb-bg: #ededed;
  --max-width: 1400px;
  --gutter: 14px;
  --transition: 0.25s ease;
}

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

html, body {
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", "HelveticaNeue", Helvetica, Arial, sans-serif;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
  letter-spacing: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

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

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

button {
  font-family: inherit;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px var(--gutter);
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
}

.logo {
  font-size: 15px;
  font-weight: 500;
}

.site-nav {
  display: flex;
  gap: 28px;
}

.site-nav a {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
  transition: color var(--transition);
}

.site-nav a[aria-current="page"] {
  color: var(--fg);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--fg);
}

main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: 56px 0;
}

.section--work {
  padding-top: 16px;
}

.eyebrow {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 36px 28px;
}

.video-item {
  background: none;
  border: none;
  padding: 0;
  color: inherit;
  text-align: left;
  cursor: pointer;
  display: block;
  width: 100%;
}

.thumb-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--thumb-bg);
  overflow: hidden;
}

.thumb-wrap--bordered::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 0.5pt solid #bababa;
  pointer-events: none;
}

.thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease, filter 0.4s ease;
  filter: grayscale(20%);
}

.thumb-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0);
  transition: background var(--transition);
  color: #fff;
  pointer-events: none;
}

.play-icon {
  width: 56px;
  height: 56px;
  opacity: 0;
  transform: scale(0.85);
  transition: opacity var(--transition), transform var(--transition);
}

.video-item:hover .thumb,
.video-item:focus-visible .thumb {
  transform: scale(1.04);
  filter: grayscale(0%);
}

.video-item:hover .thumb-overlay,
.video-item:focus-visible .thumb-overlay {
  background: rgba(0, 0, 0, 0.38);
}

.video-item:hover .play-icon,
.video-item:focus-visible .play-icon {
  opacity: 1;
  transform: scale(1);
}

.video-item:focus-visible {
  outline: 1px solid var(--fg);
  outline-offset: 4px;
}

.video-meta {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.video-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.video-title {
  font-size: 13px;
  color: var(--fg);
}

.video-role {
  font-size: 13px;
  color: var(--muted);
}

.video-year {
  font-size: 13px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.video-item--loading .thumb-wrap {
  background: linear-gradient(90deg, #ededed, #f5f5f5, #ededed);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.thumb-wrap--error {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 12px;
}

.about-text {
  font-size: 16px;
  color: var(--fg);
  max-width: 60ch;
}

.contact-email {
  font-size: 16px;
  color: var(--fg);
}

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: 48px auto 0;
  padding: 40px var(--gutter);
  color: var(--muted);
  font-size: 11px;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 48px;
  animation: fade 0.2s ease;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-stage {
  width: 100%;
  max-width: 1280px;
  aspect-ratio: 16 / 9;
}

.lightbox-player {
  width: 100%;
  height: 100%;
  background: #000;
}

.lightbox-player iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: none;
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity var(--transition);
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  opacity: 0.6;
  outline: none;
}

@keyframes fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@media (max-width: 900px) {
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 28px 20px;
  }
}

@media (max-width: 640px) {
  :root {
    --gutter: 12px;
  }
  .site-header {
    padding: 22px var(--gutter);
  }
  .site-nav {
    gap: 20px;
  }
  .grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .section {
    padding: 40px 0;
  }
  .lightbox {
    padding: 12px;
  }
  .lightbox-close {
    top: 6px;
    right: 8px;
  }
}
