/* ---- GENERAL ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "EB Garamond", serif;
  background-color: #fffdf8;
  color: #1b1b1b;
  line-height: 1.6;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 40px 80px;
}

.logo:hover::after {
  width: 0 !important;
}

.hamburger {
  display: none;
}

.nav-links {
  display: flex;
  gap: 40px;
}

nav a {
  color: #f02800;
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  transition: opacity 0.3s ease;
}

nav a:hover {
  opacity: 0.7;
}

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

/* Global hover style for all links */
a {
  color: inherit;
  text-decoration: none;
  position: relative;
  transition: color 0.3s ease, opacity 0.3s ease;
}

a:hover {
  opacity: 0.7;
}

/* Soft underline animation */
a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 0%;
  height: 1px;
  background-color: currentColor;
  transition: width 0.3s ease;
}

a:hover::after {
  width: 100%;
}

/* ---------------- HERO SECTION ---------------- */

.hero-container {
  max-width: 1800px;
  margin: 0 auto;
  padding: 80px 80px 100px 80px;
}

.project-title {
  max-width: 800px;
  font-size: 28px;
  line-height: 1.5;
  font-weight: 500;
  margin-bottom: 80px;
}

.hero-image {
  margin: 0 auto;
  width: 100%;
  height: auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ---------------- BODY WIDTH (same as homepage) ---------------- */

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 60px 150px;
}

/* ---------------- PROJECT INFO ---------------- */

.overline {
  list-style: none;
  padding: 0;
  margin: 0 0 80px; /* gap below title & above image */
  display: flex;
  gap: 120px;
}

.overline-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overline-label {
  font-size: 20px;
  color: #a39e96;
}

.overline-desc {
  font-size: 20px;
  color: #1b1b1b;
}

/* ----- MEDIA SECTION BELOW INFO-SPLIT ----- */

.info-media-section {
  margin: 20px auto 0px;
  display: flex;
  flex-direction: column;
  gap: 10px; /* spacing between text + image */
}

/* subtitle text (same color as .overline-desc) */
.info-desc {
  font-size: 20px;
  color: #1b1b1b;
  line-height: 1.6;
  margin-top: 5px;
}

/* Full-width media container */
.info-media-figure {
  width: 100%;
  overflow: hidden;
}

/* Full width image/video */
.info-media-figure img,
.info-media-figure video {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.info-image {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0 60px;
}

.info-full-width {
  width: 100%;
  height: auto;
  display: block;
  margin: 20px 0px 0px;
}

.info-row-spaced {
  margin-top: 30px;
}

.info-media-figure .spaced-image {
  display: block;
  width: 100%;
  margin-bottom: 40px; /* adjust spacing */
}

/* ---------- TWO-COLUMN INFO SECTION ---------- */
.info-split {
  display: grid;
  gap: 60px;
}

.info-row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 20px 150px; /* row gap, column gap */
  align-items: start;
  margin-bottom: 0;
}

.info-overline {
  text-transform: none;
  font-size: 20px;
  color: #a39e96;
  display: block;
  margin-bottom: 5px;
}

.info-title {
  font-size: 20px;
  font-weight: 600;
  color: #1b1b1b;
  margin: 0 0 10px;
}

.info-body {
  font-size: 20px;
  color: #1b1b1b;
  line-height: 1.6;
  margin: 0;
  max-width: 800px;
}

/* Footer */

footer {
  width: 100%;
}

.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  padding: 40px 80px; /* full-width spacing like nav */
}

.footer p {
  color: #a39e96;
  font-size: 20px;
}

.footer-links a {
  color: #f02800;
  text-decoration: none;
  margin-left: 24px;
  font-size: 20px;
}

.footer-links a:hover {
  opacity: 0.7;
}

/* ---------------- RESPONSIVE ---------------- */

@media (max-width: 768px) {
  .container {
    padding: 0 20px;
  }

  nav {
    position: sticky;
    top: 0;
    z-index: 999;
    background: #fffdf8;
    padding: 24px 20px;
    gap: 24px;
    justify-content: space-between;
  }

  .hamburger {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
  }

  .hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #f02800;
    transition: all 0.3s ease;
  }

  .hamburger.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .hamburger.active span:nth-child(2) {
    opacity: 0;
  }

  .hamburger.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 70%;
    height: 100vh;
    background: #fffdf8;
    flex-direction: column;
    padding: 80px 32px 32px;
    gap: 32px;
    transition: right 0.3s ease;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-links.active {
    right: 0;
  }

  .nav-links a {
    font-size: 24px;
  }

  /* HERO */
  .hero-container {
    padding: 32px 20px 56px;
  }

  .project-title {
    font-size: 22px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  /* MAIN BODY WRAPPER */
  .container {
    padding: 0 20px 64px;
  }

  /* INFO SPLIT (Overview / My Role / Exploration etc.) */
  .info-split {
    gap: 20px; /* vertical gap between each info-row */
  }

  .info-row {
    grid-template-columns: 1fr; /* stack columns */
    gap: 8px; /* small gap between left/right content */
  }

  .info-row-spaced {
    margin-top: 32px; /* extra breathing room before Exploration / Branding */
  }

  .info-overline {
    font-size: 18px;
  }

  .info-title {
    font-size: 18px;
    margin-bottom: 6px;
  }

  .info-body {
    font-size: 18px;
    max-width: 100%;
  }

  /* MEDIA SECTIONS (videos / full-width images) */
  .info-media-section {
    margin: 32px 0 0; /* more top space, no extra side margin */
    gap: 8px;
  }

  .info-media-head {
    max-width: 100%;
  }

  .info-desc {
    font-size: 18px;
    line-height: 1.5;
  }

  .info-media-figure {
    width: 100%;
  }

  .info-media-figure img,
  .info-media-figure video,
  .info-full-width,
  .info-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 16px 0 40px;
  }

  /* OVERLINE LIST (if you ever use the <ul .overline> pattern) */
  .overline {
    flex-direction: column;
    gap: 8px;
    margin-bottom: 32px;
  }

  /* FOOTER MOBILE */
  .footer {
    flex-direction: row;
    align-items: flex-start;
    padding: 24px 20px 32px;
    gap: 8px;
  }

  .footer p {
    font-size: 16px;
  }

  .footer-links {
    margin-top: 16px;
  }

  .footer-links a {
    font-size: 16px;
    margin-left: 0;
    margin-right: 16px;
    display: inline-block;
  }
}
