/* v2 */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@300;400;700;900&family=Barlow:wght@300;400&display=swap');

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

:root {
  --black: #000;
  --red: #ff1a1a;
  --blue: #4169e1;
  --white: #fff;
  --gap: 3px;
  --max: 780px;
}

html, body {
  background: var(--black);
  color: var(--white);
  font-family: 'Barlow', sans-serif;
  font-weight: 300;
  min-height: 100vh;
  overflow-x: hidden;
}

/* ── PAGE WRAPPER ── */
.page-wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
}

/* ── HEADER ── */
header {
  background: var(--black);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  max-width: var(--max);
  margin: 0 auto;
}

.logo-link { display: flex; align-items: center; }

.logo {
  height: 72px;
  width: auto;
  display: block;
}

/* ── HAMBURGER ── */
.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.hamburger span {
  display: block;
  width: 28px;
  height: 3px;
  background: var(--blue);
  border-radius: 1px;
  transition: all 0.2s;
}

/* ── TOP NAV ── */
.top-nav {
  background: var(--black);
  padding: 0;
}

.top-nav-inner {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px 14px;
  max-width: var(--max);
  margin: 0 auto;
}

.top-nav a {
  color: var(--red);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: 0.08em;
  transition: opacity 0.15s;
}

.top-nav a:hover { opacity: 0.7; }

/* ── DRAWER ── */
.drawer {
  position: fixed;
  top: 0;
  right: -240px;
  width: 220px;
  height: 100vh;
  background: #0a0a0a;
  border-left: 2px solid #222;
  z-index: 200;
  display: flex;
  flex-direction: column;
  padding: 80px 30px 30px;
  gap: 28px;
  transition: right 0.3s ease;
}

.drawer.open { right: 0; }

.drawer a {
  color: var(--red);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.1em;
  transition: opacity 0.15s;
}

.drawer a:hover { opacity: 0.7; }

.overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 150;
}

.overlay.show { display: block; }

/* ── BANNER ── */
.banner-wrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0;
}

.banner-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

/* ── GRID ── */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--gap);
  padding: var(--gap);
}

.tile {
  text-decoration: none;
  display: block;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
}

.tile-thumb {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s;
}

.tile:hover .tile-thumb { transform: scale(1.03); }

.tile-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tile-title {
  position: relative;
  z-index: 2;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--white);
  background: rgba(0,0,0,0.65);
  padding: 4px 6px;
  width: 100%;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ── PROJECT PAGE ── */
.project-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 24px 16px 60px;
}

.project-page h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2.2rem;
  color: var(--red);
  letter-spacing: 0.05em;
  margin-bottom: 6px;
  line-height: 1.1;
}

.project-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 400;
  color: #666;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  margin-bottom: 20px;
}

.video-wrap {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%;
  background: #111;
  margin-bottom: 24px;
}

.video-wrap.vertical {
  padding-bottom: 177.78%;
  max-width: 380px;
}

.video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.project-description {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--white);
  margin-bottom: 24px;
}

.project-credits {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.9rem;
  color: #888;
  letter-spacing: 0.04em;
  line-height: 1.7;
  border-top: 1px solid #222;
  padding-top: 16px;
}

.back-link {
  display: inline-block;
  margin-bottom: 24px;
  color: var(--red);
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
}

.back-link:hover { opacity: 0.7; }

/* ── CATEGORY PAGES ── */
.category-header {
  padding: 20px 16px 12px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
  letter-spacing: 0.08em;
}

/* ── ABOUT / CONTACT ── */
.simple-page {
  max-width: 600px;
  margin: 0 auto;
  padding: 40px 20px 80px;
}

.simple-page h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 900;
  font-size: 2rem;
  color: var(--red);
  letter-spacing: 0.08em;
  margin-bottom: 24px;
}

.simple-page p {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--white);
  margin-bottom: 16px;
}

.simple-page a {
  color: var(--red);
  text-decoration: none;
}

.simple-page a:hover { text-decoration: underline; }

/* ── DESKTOP ── */
@media (min-width: 768px) {
  .logo { height: 80px; }
  .top-nav a { font-size: 1.3rem; }
  .tile-title { font-size: 0.85rem; }
  .video-wrap.vertical {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
  }
}
