@import url('https://fonts.googleapis.com/css2?family=Anton&family=Inter:wght@400;500&family=Oswald:wght@400;500&display=swap');

:root {
  --bg-warm: #FAF8F5;
  --accent-red: #D9381E;
  --text-dark: #1E1E1E;
  --text-muted: #5A5855;
  --border-subtle: #E5E0D8;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

/* Media never wider than its container */
img,
video,
iframe,
embed,
object {
  max-width: 100%;
}

img {
  height: auto;
}

body {
  overflow-wrap: break-word;
  background-color: var(--bg-warm);
  color: var(--text-dark);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2.5rem 3rem 5rem;
}

/* Header & Navigation */
header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.brand a {
  text-decoration: none;
  display: inline-block;
}

.brand h1 {
  font-family: 'Anton', sans-serif;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  color: var(--accent-red);
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
}

.brand .subtitle {
  font-family: 'Oswald', sans-serif;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  color: var(--text-dark);
  text-transform: uppercase;
  margin-top: 0.35rem;
}

nav {
  display: flex;
  gap: 1.75rem;
  padding-top: 0.6rem;
}

nav a {
  text-decoration: none;
  color: var(--text-dark);
  font-size: 0.98rem;
  font-weight: 400;
  padding-bottom: 3px;
  border-bottom: 1.5px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

nav a:hover {
  color: var(--accent-red);
}

nav a.active {
  border-bottom-color: var(--text-dark);
}

/* Menu toggle: only shown on small screens */
.nav-toggle {
  display: none;
}

/* 3x3 Project Grid */
.project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.35rem;
}

.project-card {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #EAE5DC;
  cursor: pointer;
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

/* Taller uniform ratio on the Film page so laurels fit cleanly */
.film-grid .project-card {
  aspect-ratio: 3 / 2;
}

.film-grid .project-card img {
  height: 100%;
  object-fit: cover;
}

.project-overlay {
  position: absolute;
  inset: 0;
  background: rgba(20, 18, 16, 0.45);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem;
  opacity: 0;
  transition: opacity 0.25s ease;
  color: #FFFFFF;
}

.project-card:hover .project-overlay {
  opacity: 1;
}

.project-overlay h3 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.project-overlay p {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Lightbox Modal for Viewing Video/Details */
.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  z-index: 1000;
  overflow-y: auto;
  padding: 40px 20px;
}

.modal.open {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.modal-content {
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  position: relative;
  margin: auto;
}
.modal-info {
  padding: 28px 36px 36px;
}

.modal-info h2 {
  margin: 0 0 6px;
}

.modal-info .meta {
  margin-bottom: 18px;
}

.modal-info p {
  margin: 0;
  line-height: 1.65;
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--text-dark);
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  background: #000;
  margin-bottom: 1.25rem;
}

.video-wrapper iframe,
.video-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
}

.modal-info h2 {
  font-family: 'Oswald', sans-serif;
  text-transform: uppercase;
  font-size: 1.5rem;
  color: var(--accent-red);
}

.modal-info .meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Blog Layout */
.blog-list {
  max-width: 820px;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.blog-post {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 2.5rem;
}

.blog-post .date {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

.blog-post h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.8rem;
  text-transform: uppercase;
  margin: 0.3rem 0 0.75rem;
  color: var(--text-dark);
}

/* About Layout */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3.5rem;
  align-items: start;
  max-width: 1100px;
}

.about-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.about-text h2 {
  font-family: 'Oswald', sans-serif;
  font-size: 1.6rem;
  text-transform: uppercase;
  color: var(--accent-red);
  margin-bottom: 1rem;
}

.about-text p {
  margin-bottom: 1.2rem;
  font-size: 1.02rem;
}

.contact-box {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
}

.contact-box a {
  color: var(--accent-red);
  text-decoration: none;
  font-weight: 500;
}

/* Footer */
footer {
  margin-top: 4.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Responsive Adjustments */
@media (max-width: 960px) {
  .project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .about-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 1.5rem;
  }
  .project-grid {
    grid-template-columns: 1fr;
  }

  /* Readable text: nothing below 16px */
  body,
  .about-text p,
  .project-overlay p,
  .modal-info .meta,
  .blog-post .date,
  footer {
    font-size: 1rem;
  }

  /* Header + collapsible menu */
  header {
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 0 1rem;
    margin-bottom: 2.5rem;
  }

  .brand {
    flex: 1 1 0;
    min-width: 0;
  }

  .brand h1 {
    font-size: clamp(2.2rem, 11vw, 2.8rem);
  }

  .nav-ready .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    margin-top: 0.25rem;
    padding: 0;
    background: none;
    border: 1.5px solid var(--text-dark);
    border-radius: 2px;
    color: var(--text-dark);
    cursor: pointer;
  }

  .nav-toggle-bar {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }

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

  nav {
    flex-basis: 100%;
    flex-direction: column;
    gap: 0;
    padding-top: 0;
    margin-top: 1rem;
    border-top: 1px solid var(--border-subtle);
  }

  .nav-ready nav {
    display: none;
  }

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

  nav a {
    display: flex;
    align-items: center;
    min-height: 48px;
    padding: 0.5rem 0;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--border-subtle);
  }

  nav a.active {
    color: var(--accent-red);
    border-bottom-color: var(--border-subtle);
  }

  /* Touch screens can't hover, so keep project titles visible */
  .project-overlay {
    opacity: 1;
    background: linear-gradient(to top, rgba(20, 18, 16, 0.7) 0%, rgba(20, 18, 16, 0) 60%);
    padding: 1rem;
  }

  /* Lightbox fits the screen */
  .modal {
    padding: 0.75rem;
  }

  .modal-info {
    padding: 1.25rem 1.25rem 1.5rem;
  }

  .modal-close {
    top: 0.5rem;
    right: 0.5rem;
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
  }

  .blog-post h2 {
    font-size: 1.5rem;
  }

  footer {
    flex-direction: column;
    gap: 0.25rem;
  }
}
.blog-post p {
  margin-bottom: 1.25rem;
}

.blog-post p:last-of-type {
  margin-bottom: 0;
}