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

:root {
  --bg: #54463A;
  --fg: #ffffff;
  --fg-dim: rgba(255,255,255,0.55);
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --nav-h: 110px;
}

html { background: var(--bg); color: var(--fg); font-family: var(--font); }
body { min-height: 100vh; background: var(--bg); }
a { color: inherit; text-decoration: none; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px 0 50px;
  background: var(--bg);
  z-index: 100;
}

.nav-logo img {
  width: 25vw;
  max-width: 340px;
  height: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 32px;
  list-style: none;
}

.nav-links a {
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-dim);
  transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active { color: var(--fg); }

/* ── PAGE WRAPPER ── */
main { padding-top: var(--nav-h); }

/* ── GRIDS ── */
.grid { display: grid; background: var(--bg); }

/* Homepage — dense mixed wall */
.grid--home {
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
}

/* Work pages — Adi-style 10px gap */
.grid--work {
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 41px 50px;
}

/* ── TILE ── */
.tile {
  position: relative;
  overflow: hidden;
  display: block;
  background: #2a2220;
  cursor: pointer;
}

.tile--16x9 { aspect-ratio: 16/9; }
.tile--4x3  { aspect-ratio: 4/3; }
.tile--1x1  { aspect-ratio: 1/1; }
.tile--16x18 { aspect-ratio: 8/9; }
.tile--9x16 { aspect-ratio: 9/16; }

.tile--wide { grid-column: span 2; }
.tile--tall  { grid-row: span 2; aspect-ratio: unset; }
.tile--tall { grid-row: span 2; }
.tile--wide3 { grid-column: span 3; }

.tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.25,0,0,1);
}

.tile:hover img { transform: scale(1.04); }

/* ── OVERLAY ── */
.tile-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,0.3);
  transition: background 0.3s ease;
}

.tile:hover .tile-overlay { background: rgba(0,0,0,0.55); }

.tile-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.5;
  color: #fff;
  margin-bottom: 5px;
}

.tile-credits {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-align: center;
  color: rgba(255,255,255,0.6);
}

/* Homepage — text hidden, reveals on hover */
.grid--home .tile-overlay { background: rgba(0,0,0,0); }
.grid--home .tile-overlay .tile-title,
.grid--home .tile-overlay .tile-credits {
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.grid--home .tile:hover .tile-overlay { background: rgba(0,0,0,0.5); }
.grid--home .tile:hover .tile-overlay .tile-title,
.grid--home .tile:hover .tile-overlay .tile-credits {
  opacity: 1;
  transform: translateY(0);
}

/* ── PLACEHOLDER ── */
.tile-placeholder {
  width: 100%;
  height: 100%;
  background: #2a2220;
}

/* ── PROJECT PAGE ── */
.project-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 60px 28px 80px;
}

.project-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  margin-bottom: 32px;
}

.project-video iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

.project-meta h1 {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.project-meta p {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--fg-dim);
}

/* ── CONTACT ── */
.contact-wrap {
  max-width: 500px;
  margin: 120px auto;
  padding: 0 28px;
}

.contact-wrap h1 {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
  margin-bottom: 24px;
}

.contact-wrap a {
  display: block;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  transition: color 0.2s;
}

.contact-wrap a:hover { color: var(--fg-dim); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid--home { grid-template-columns: repeat(4, 1fr); }
  .tile--wide3 { grid-column: span 2; }
}

@media (max-width: 768px) {
  :root { --nav-h: auto; }
  nav {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px 20px;
    gap: 16px;
    height: auto;
    position: relative;
  }
  .nav-logo img {
    width: 60vw;
    max-width: 280px;
  }
  .nav-links {
    gap: 24px;
  }
  .nav-links a {
    font-size: 11px;
  }
  main { padding-top: 0; }
  .grid--home { grid-template-columns: repeat(2, 1fr); gap: 3px; }
  .grid--work { grid-template-columns: repeat(2, 1fr); padding: 12px; gap: 8px; }
  .tile--wide { grid-column: span 1; }
  .tile--wide3 { grid-column: span 2; }
}

@media (max-width: 480px) {
  .nav-logo img { width: 70vw; }
  .nav-links { gap: 16px; }
  .grid--work { grid-template-columns: 1fr; }
}
