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

h1, h2, h3, h4, h5, h6 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

html, body {
  background: #000;
  color: #fff;
  font-family: Helvetica, "Helvetica Neue", Arial, sans-serif;
  font-weight: 400;
  font-size: 20px;
  letter-spacing: -0.5px;
  line-height: 1.3;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ============ HEADER ============ */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
  padding: 16px;
  pointer-events: none;
}

header a,
header button {
  pointer-events: auto;
}

.header-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.logo {
  grid-column: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo img {
  height: 56px;
  width: auto;
  border-radius: 0;
  display: block;
}

@media (max-width: 520px) {
  .logo img { height: 44px; }
}

nav {
  grid-column: 3;
  justify-self: end;
  display: flex;
  gap: 24px;
  font-size: 20px;
  letter-spacing: -0.5px;
}

nav a {
  color: #888;
  transition: color 0.12s;
}

nav a:hover,
nav a.active {
  color: #fff;
}

/* ============ HAMBURGER / MOBILE NAV ============ */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  grid-column: 3;
  justify-self: end;
}

.menu-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  background: #888;
  margin: 5px 0;
  transition: background 0.12s, transform 0.2s ease, opacity 0.15s;
}

.menu-toggle:hover .bar {
  background: #fff;
}

.menu-toggle.open .bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
  background: #fff;
}
.menu-toggle.open .bar:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open .bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
  background: #fff;
}

.mobile-nav {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.96);
  z-index: 49;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  color: #888;
  font-size: 32px;
  letter-spacing: -0.5px;
  text-decoration: none;
  transition: color 0.12s;
  padding: 16px 40px;
  min-height: 56px;
  display: flex;
  align-items: center;
}

.mobile-nav a:hover,
.mobile-nav a.active {
  color: #fff;
}

/* ============ REEL HERO ============ */
.reel-hero {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: #000;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, border-radius;
  pointer-events: none;
}

.reel-hero video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.reel-spacer {
  height: 100vh;
}

body.home {
  background: #fff;
}

/* ============ WORK INDEX ============ */
.work-grid {
  position: relative;
  z-index: 10;
  background: transparent;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  padding: 4px;
}

.project-card {
  display: block;
  position: relative;
}

.thumb {
  aspect-ratio: 4 / 5;
  background: #222;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  transition: opacity 0.18s;
}

.thumb img,
.thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.thumb::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 45%;
  background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0));
  pointer-events: none;
  z-index: 1;
}

.project-card:hover .thumb {
  opacity: 0.88;
}

.project-meta {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 2;
}

.project-meta .title {
  color: #fff;
}

.project-meta .cat {
  color: #bbb;
  margin-left: 16px;
}

/* ============ PROJECT PAGE ============ */
.hero {
  padding: 0 4px 4px;
}

.hero-img {
  aspect-ratio: 16 / 9;
  background: #1f1f1f;
  border-radius: 12px;
}

.project-title {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
  padding: 40px 16px 24px;
}

.project-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding: 24px 16px 64px;
}

.project-intro .desc p {
  margin-bottom: 1em;
  max-width: 52ch;
}

.project-intro .roles {
  color: #9a9a9a;
  font-family: "Courier New", Courier, monospace;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-intro .roles h4 {
  color: #666;
  margin-bottom: 10px;
  font-weight: 400;
  font-family: inherit;
  font-size: 15px;
  letter-spacing: 0;
  line-height: 0.9;
  text-transform: uppercase;
}

.project-intro .roles ul {
  list-style: none;
  margin-bottom: 28px;
}

.project-intro .roles li {
  padding: 2px 0;
}

.media-row {
  display: grid;
  gap: 4px;
  padding: 0 4px 4px;
}

.media-row.one {
  grid-template-columns: 1fr;
}

.media-row.two {
  grid-template-columns: repeat(2, 1fr);
}

.media-row.three {
  grid-template-columns: repeat(3, 1fr);
}

.media-row .box {
  aspect-ratio: 4 / 3;
  background: #1f1f1f;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}

.media-row.three .box {
  aspect-ratio: 1 / 1;
}

.media-row .box img,
.media-row .box video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

.hero-img {
  overflow: hidden;
}

.hero-img img,
.hero-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0;
}

/* Aperture page: body images size to natural aspect; hero stays locked 16:9 */
body.project-aperture .media-row .box {
  aspect-ratio: auto !important;
  height: auto;
}

body.project-aperture .media-row .box img,
body.project-aperture .media-row .box video {
  width: 100%;
  height: auto;
  object-fit: fill;
}

body.project-aperture .media-row.two {
  align-items: start;
}

.big-img {
  margin: 0 4px 4px;
  aspect-ratio: 16 / 9;
  background: #242424;
  border-radius: 12px;
}

.more-projects-label {
  color: #666;
  padding: 72px 16px 16px;
}

.more-projects {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
  padding: 0 4px 4px;
}

/* ============ TEXT PAGES (Services / Info / Contact) ============ */
.page {
  padding: 120px 16px 120px;
}

.page h1 {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.5px;
  margin-bottom: 48px;
}

.page-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  column-gap: 48px;
  row-gap: 0;
  max-width: 1400px;
}

.page-grid h2,
.page-grid > .content {
  border-top: 1px solid #2a2a2a;
  padding-top: 20px;
  padding-bottom: 40px;
}

.page-grid h2 {
  color: #666;
  font-weight: 400;
}

.page-grid .content p {
  margin-bottom: 1em;
  max-width: 62ch;
}

.page-grid .content ul {
  list-style: none;
}

.page-grid .content li {
  padding: 16px 0;
  display: flex;
  justify-content: space-between;
  gap: 24px;
}

.page-grid .content li .muted {
  color: #666;
}

.contact-links a {
  display: block;
  padding: 10px 0;
  color: #fff;
  transition: color 0.12s;
}

.contact-links a:hover {
  color: #888;
}

/* ============ FOOTER ============ */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 16px;
  display: flex;
  justify-content: space-between;
  color: #888;
  font-family: "Courier New", Courier, monospace;
  font-size: 14px;
  letter-spacing: 0;
  background: transparent;
  pointer-events: none;
  z-index: 40;
}

footer span {
  pointer-events: auto;
}

body {
  padding-bottom: 56px;
}

/* ============ RESPONSIVE ============ */
@media (max-width: 640px) {
  nav {
    display: none;
  }
  .menu-toggle {
    display: block;
  }
}

@media (max-width: 800px) {
  .work-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  nav {
    gap: 14px;
  }
  .project-intro {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .page-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .more-projects {
    grid-template-columns: 1fr;
  }
  .media-row.three {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 520px) {
  .work-grid {
    grid-template-columns: 1fr;
  }
}
