/* ============================================================
   .OB — Omar Barrantes Portfolio
   main.css — Shared styles for all internal project pages
   ============================================================ */

/* ── RESET & BASE
   ============================================================ */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg:    #ffffff;
  --ink:   #0b0b0b;
  --muted: rgba(11, 11, 11, 0.35);
  --line:  rgba(11, 11, 11, 0.10);
  --r:     10px;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', sans-serif;
  overflow-x: hidden;
}


/* ── NAVIGATION
   ============================================================ */
#nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 200;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0.85rem 2rem;
}

.nav-logo {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav-center-links {
  display: flex;
  gap: 2.5rem;
  list-style: none;
}

.nav-center-links a {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.nav-center-links a:hover {
  color: var(--ink);
}

.nav-right {
  display: flex;
  justify-content: flex-end;
}

.nav-back {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--ink);
  padding: 0.35rem 0.9rem;
  border-radius: 3px;
  transition: background 0.2s, color 0.2s;
}

.nav-back:hover {
  background: var(--ink);
  color: var(--bg);
}


/* ── PROJECT HEADER
   ============================================================ */
.project-header {
  margin-top: 49px;
  border-bottom: 1px solid var(--line);
}

/* Meta row — 4 columns */
.project-meta-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 2rem;
}

.meta-cell {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.meta-cell.right {
  text-align: right;
}

/* Giant title */
.project-title-block {
  padding: 1.5rem 2rem 0;
}

.project-title {
  display: block;
  font-size: clamp(4rem, 10.5vw, 11rem);
  font-weight: 800;
  line-height: 0.88;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.project-title.dim {
  color: rgba(11, 11, 11, 0.18);
}

/* Info row — 4 columns */
.project-info-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 2.5rem;
}

.info-cell {
  padding: 1.2rem 2rem;
  border-right: 1px solid var(--line);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--muted);
}

.info-cell:last-child {
  border-right: none;
}

.info-cell.large {
  font-size: 0.92rem;
  font-weight: 400;
  color: var(--ink);
  grid-column: span 2;
  line-height: 1.65;
}

.info-cell .label {
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 0.5rem;
}


/* ── PROJECT CONTENT
   ============================================================ */
.project-content {
  padding: 3rem 10rem 5rem;
}

/* Full-width image block */
.project-img {
  width: 100%;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1rem;
}

.project-img img {
  width: 100%;
  display: block;
  object-fit: cover;
}

/* Video embed — 16:9 */
.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  border-radius: var(--r);
  overflow: hidden;
  margin-bottom: 1rem;
}

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

/* Section label / numbered divider */
.content-rule {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 1rem 0;
  margin-bottom: 1.5rem;
}

.content-rule .lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.content-rule .num {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--muted);
}

/* 3-column image grid */
.img-grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.img-grid3 img {
  width: 100%;
  border-radius: var(--r);
  display: block;
  object-fit: cover;
}


/* ── NEXT PROJECT
   ============================================================ */
.next-project {
  border-top: 1px solid var(--line);
  padding: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.next-lbl {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.next-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  font-size: clamp(1.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  transition: gap 0.3s;
}

.next-link:hover {
  gap: 18px;
}

.next-link .arr {
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.3s, color 0.3s;
}

.next-link:hover .arr {
  transform: translate(5px, -5px);
  color: var(--ink);
}


/* ── FOOTER
   ============================================================ */
#footer {
  border-top: 1px solid var(--line);
}

.footer-meta-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
  padding: 0.65rem 2rem;
}

.footer-meta-cell {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.6;
}

.footer-meta-cell.right {
  text-align: right;
}

.footer-links-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}

.footer-link-cell {
  padding: 1.2rem 2rem;
  border-right: 1px solid var(--line);
}

.footer-link-cell:last-child {
  border-right: none;
}

.footer-link-cell a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: color 0.2s;
}

.footer-link-cell a:hover {
  color: var(--ink);
}

.footer-link-cell .farr {
  font-size: 0.75rem;
  opacity: 0.3;
  transition: opacity 0.2s, transform 0.2s;
}

.footer-link-cell a:hover .farr {
  opacity: 1;
  transform: translate(3px, -3px);
}

.footer-bottom {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 0.65rem 2rem;
}

.footer-bottom span {
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom span.right {
  text-align: right;
}


/* ── ANIMATIONS
   ============================================================ */
@keyframes up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.project-header {
  opacity: 0;
  animation: up 0.8s ease forwards 0.1s;
}

.project-content {
  opacity: 0;
  animation: up 0.8s ease forwards 0.35s;
}


/* ── RESPONSIVE — mobile ≤ 860px
   ============================================================ */
@media (max-width: 860px) {

  #nav {
    grid-template-columns: 1fr 1fr;
    padding: 0.85rem 1.2rem;
  }

  .nav-center-links {
    display: none;
  }

  .project-meta-top {
    grid-template-columns: 1fr 1fr;
    padding: 0.65rem 1.2rem;
  }

  .project-title-block {
    padding: 1.2rem 1.2rem 0;
  }

  .project-info-row {
    grid-template-columns: 1fr;
  }

  .info-cell {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 1rem 1.2rem;
  }

  .info-cell.large {
    grid-column: span 1;
  }

  .project-content {
    padding: 2rem 1.2rem 4rem;
  }

  .img-grid3 {
    grid-template-columns: 1fr;
  }

  .footer-meta-top,
  .footer-links-row,
  .footer-bottom {
    grid-template-columns: 1fr 1fr;
    padding: 0.65rem 1.2rem;
  }

  .footer-link-cell {
    padding: 0.9rem 1.2rem;
  }

  .next-project {
    padding: 1.5rem 1.2rem;
  }

}
