body,
html {
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  font-family: "Rubik", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  justify-content: center;
  width: 100%;
  scroll-behavior: smooth;
}

hr {
  margin-left: 10%;
  margin-right: 10%;
}

/* --- Navbar --- */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 10%;
  border-bottom: 1px solid #eaeaea;
}

.nav-left {
  display: flex;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #0f172a;
}

.brand-name {
  font-family: "MuseoModerno", sans-serif;
  font-optical-sizing: auto;
  font-size: 52px;
  font-weight: 500;
  line-height: 80%;
  letter-spacing: -3.5px;
  text-transform: uppercase;
}

.nav-icon {
  width: 100px;
  padding-left: 26%;
  height: auto;
  object-fit: contain;
}

.nav-right {
  display: flex;
  align-items: center;
}

.nav-links {
  display: flex;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  text-decoration: none;
  color: #1a1a1a;
  font-weight: 200;
  font-size: 0.95rem;
  padding: 0.5rem 0;
  transition: color 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: #3048EA;
  transition: width 0.25s ease;
}

.nav-links a:hover {
  color: #3048EA;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 8px;
  margin-left: auto;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px 0;
  background: #111;
  transition: transform 0.25s ease, opacity 0.2s ease;
}

/* --- Responsive --- */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-block;
    position: relative;
    z-index: 1101;
    width: 48px;
    height: 48px;
    padding: 0;
  }

  html.nav-open .nav-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
  }

  .nav-toggle .bar {
    width: 30px;
    height: 3px;
    margin: 6px 0;
  }

  .nav-right {
    position: static;
  }

  .nav-links {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    background: rgba(255, 255, 255, 0.98);
    z-index: 1100;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.35s ease, opacity 0.35s ease;
  }

  html.nav-open .nav-links {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a {
    font-size: 1.5rem;
    font-weight: 600;
  }

  /* Turn hamburger into X when open */
  html.nav-open .nav-toggle .bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
  }

  html.nav-open .nav-toggle .bar:nth-child(2) {
    opacity: 0;
  }

  html.nav-open .nav-toggle .bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
  }
}

/* --- About --- */
#about {

  width: 80%;
  height: auto;
  display: flex;
  flex-direction: row;
  margin: 2% 4%;
  margin-left: 11%;
  display: none;

}

.intro {

  display: flex;
  flex-direction: column;
  border: solid 1px black;
  width: 20%;
  padding: 1% 2%;
  border-radius: 20px;
  height: auto;
}

.intro h1 {

  font-weight: 200;
}

.intro h2 {
  margin-top: 0;
  font-weight: 200;

}

.intro h3 {
  font-weight: 500;
  margin-top: 10%;
  font-size: 2rem;

}

.intro p {
  font-weight: 100;
  font-size: 1.3rem;
  margin-bottom: 2%;
  line-height: 3.5vh;
  color: rgb(62, 62, 62);
}

.intro2 {

  display: flex;
  flex-direction: column;
  width: 63%;
  padding: .5% 2%;
  border-radius: 4;
  height: auto;
  margin-left: 4%;
}

.introduction p {

  font-weight: 100;
  margin-bottom: 6vh;
  line-height: 3.5vh;
}


.contact-cards {
  display: flex;
  flex-direction: column;
  gap: 3%;
  margin-top: 5%;
  align-items: center;
}

.card-row1 {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-bottom: 5%;
  gap: 10%;
}

.card-row2 {
  width: 100%;
  display: flex;
  flex-direction: row;
  margin-bottom: 5%;
  gap: 10%;
}

.contact-card {
  background-color: #3048EA;
  color: #FFFFFF;
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  width: 50%;
  height: auto;
  border: 2px solid #ffffff;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.contact-card i {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

.contact-card p {
  margin: 0;
  margin-top: 6%;
  font-size: 1rem;
  font-weight: 100;
}

.contact-card:hover {
  background-color: #FFFFFF;
  color: #3048EA;
  border: 2px solid #3048EA;
}

.contact-card:hover i {
  color: #3048EA;
}


/* --- Work --- */

.main-header {
  max-width: 80%;
  width: 100%;
  margin-left: 11%;
  margin-top: 3%;
  margin-bottom: 4%;
  font-size: 52px;
  font-weight: 500;
  line-height: 80%;
  letter-spacing: -3.5px;
  text-transform: uppercase;
}

#work {
  margin-top: 6%;
  margin-bottom: 2%;
}

.projects {
  max-width: 80%;
  width: 100%;
  margin: 0 auto 2%;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: center;
  gap: 4%;
  text-decoration: none;
}

.project-card {
  display: flex;
  flex-direction: column;
  width: 30%;
}

.project-card h1 {

  font-size: clamp(1rem, 2.5vw, 1.4rem);
  margin-bottom: 10px;
  height: 4vh;
  text-decoration: none;
}

.project-card p {
  margin: 0;
  font-size: 1rem;
  font-weight: 100;
  color: #797979;
}

.project-card h4 {
  background-color: #ffffff;
  border: solid 1px #3048EA;
  color: #3048EA;
  border-radius: 20px;
  padding: 10px 15px;
  width: fit-content;
  margin-top: 10px;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 4%;
}

.project-card img {

  width: 100%;
  height: 27vh;
  border-radius: 10px;
  overflow: hidden;
  object-fit: cover;

}

.project-card a,
.project-card a:visited {
  text-decoration: none;
  color: inherit;
}

.project-card a:hover,
.project-card a:focus {
  text-decoration: none;
}

.project-card:hover {
  transform: scale(1.05);
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover h1,
.project-card:hover p {
  color: #3048EA;
}

.project-card:hover h4 {
  background-color: #3048EA;
  color: white;
  transition: transform 0.3s ease, background-color 0.3s ease;
}

.project-card:hover img {
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

footer {
  background-color: #f8f8f8;
  border-top: 2px solid #000000;
  margin-top: 10vh;
}

.site-footer .footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.site-footer h3 {
  margin: 0 0 0.75rem 0;
  font-weight: 600;
  color: #1a1a1a;
}

.site-footer p {
  margin: 0.25rem 0;
  color: #4a4a4a;
}

.footer-links,
.social-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li,
.social-links li {
  margin: 0.35rem 0;
}

.site-footer a {
  color: #1a1a1a;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.site-footer a:hover {
  color: #3048EA;
  border-color: #3048EA;
}

.footer-bottom {
  text-align: center;
  padding: 0.75rem 1rem 1.5rem;
  color: #6a6a6a;
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .site-footer .footer-inner {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .nav-links {
    gap: 1.25rem;
  }

  .nav-icon {
    width: 28px;
    height: 28px;
  }

  .projects,
  .explorations {
    flex-direction: column;
    align-items: center;
  }

  .project-card,
  .explore-card,
  .explore-card-2 {
    width: 90%;
    margin-bottom: 20px;
  }

  .main-header {
    max-width: 90%;
    width: 100%;
  }
}












/* Page container */
.container {
  width: 100%;
  margin: 0 auto;
}

/* Hero section: image left, details right */
.project-hero {
  display: flex;
  justify-content: center;
}

.project-hero {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  background: #ffffff;
  margin-bottom: 5vh;
}

.hero-image {

  width: 65%;
  height: 60vh;
  border-radius: 12px;
  object-fit: cover;
  background: #eee;
}

.project-hero .details {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 1rem 1.25rem;
  background: #ffffff;
  min-width: 300px;
  max-width: 300px;
}

.detail-section {
  border-top: 1px solid #e5e7eb;
  padding: 0.85rem 0;
}

.detail-label {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.35rem;
}

.detail-value {
  font-size: 0.98rem;
  color: #111827;
}

.detail-list {
  margin: 0;
  padding-left: 1rem;
}

.detail-list li {
  margin: 0.25rem 0;
}

/* detail blocks */
/* (Replaced old .detail-title rule with new detail block rules above) */



/* Typographic hierarchy */
.h-lite {
  font-weight: 200;
  margin: 2.5rem auto 0.5rem;
  max-width: 78%;
}

.h-strong {
  font-weight: 700;
  margin: 0.75rem auto 0.5rem;
  max-width: 78%;
}

/* Section with hr and text block */
.section {
  margin: 1rem 0 4rem;
}

.section .rule {
  margin: 0.5rem auto 1rem;
  width: 78%;
  border: none;
  border-top: 1px solid #e5e7eb;
}

.section .content {
  max-width: 78%;
  margin: 0 auto;
  color: #374151;
  line-height: 1.7;
  font-weight: 300;
}

/* Full-bleed image blocks */
.full-bleed {
  width: 100%;
  margin: 3rem 0;
}

.full-bleed .block {
  width: 100%;
  min-height: 55vh;
  background: #f3f4f6;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

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

/* Video block */
.video-bleed .block {
  background: #000;
  /* contrast behind video */
}

.project-video {
  width: 100%;
  height: auto;
  max-height: 78vh;
  display: block;
  background: #000;
}

@media (prefers-reduced-motion: reduce) {
  .project-video {
    animation: none !important;
  }
}

/* In-page constrained image grid */
.image-grid {
  max-width: 80%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.image-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

/* Portrait-first image block for tall images */
.image-block {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  max-width: 80%;
  margin: 2rem auto;
}

.image-block .frame {
  width: 100%;
  /* default 3:4 portrait ratio */
  aspect-ratio: 3 / 4;
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  display: grid;
  place-items: center;
}

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

/* When you want to show full image without cropping */
.image-block.contain .frame img {
  object-fit: contain;
  background: #fff;
}

/* Narrower column to sit nicely beside text if needed */
.image-block.narrow {
  max-width: 60%;
}

/* Optional caption */
.image-block .caption {
  font-size: 0.95rem;
  color: #4b5563;
  line-height: 1.5;
  text-align: center;
}

/* Grid variant for multiple portrait tiles */
.image-grid-portrait {
  max-width: 80%;
  margin: 2rem auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.image-grid-portrait .tile {
  background: #f3f4f6;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  /* portrait */
  display: grid;
  place-items: center;
}

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

.image-grid-portrait.contain .tile img {
  object-fit: contain;
  background: #fff;
}

/* Scroll progress bar under navbar */
.navbar .scroll-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  pointer-events: none;
}

.navbar .scroll-progress__bar {
  width: 0%;
  height: 100%;
  background: #3048EA;
}

/* Back to Top button */
.back-to-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #111827;
  color: #ffffff;
  border: none;
  display: grid;
  place-items: center;
  font-size: 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s ease, transform .25s ease, visibility .25s;
  z-index: 1000;
}

.back-to-top:focus {
  outline: 2px solid #3048EA;
  outline-offset: 2px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Mobile */
@media (max-width: 1024px) {
  .project-hero {
    grid-template-columns: 1fr;
    padding: 1.25rem 5%;
  }

  .project-hero .details {
    position: static;
    padding: 1rem;
  }

  .h-lite,
  .h-strong,
  .section .content,
  .section .rule {
    max-width: 90%;
    width: 100%;
  }

  .image-grid {
    max-width: 90%;
    grid-template-columns: 1fr;
  }
}