/* ─────────────────────────────────────────────
   Enzo Piquet — Portfolio
   ───────────────────────────────────────────── */

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
img, video { display: block; }
a { text-decoration: none; color: inherit; }
button { background: none; border: none; cursor: pointer; font-family: inherit; color: inherit; padding: 0; }

/* Base */
body {
  background: #fff;
  color: #000;
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* ─── Sidebar ──────────────────────────────── */
.sidebar {
  position: fixed;
  top: 0; left: 0;
  width: 190px;
  height: 100vh;
  padding: 30px 28px;
  z-index: 10;
  background: #fff;
  /* Explicit family + size so sidebar never inherits from page body */
  font-family: -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
  font-size: 12px;
}

.site-name {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  margin-bottom: 28px;
  display: block;
  line-height: 1.2;
  color: #000;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
}

.nav-parent {
  font-size: 12px;
  font-weight: 700;
  line-height: 2.15;
  display: block;
  color: #000;
  letter-spacing: 0.01em;
}

.nav-sub {
  display: block;
  font-weight: 400;
  font-size: 12px;
  line-height: 2.15;
  padding-left: 16px;
  color: #000;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
}
.nav-sub:hover  { opacity: 0.4; }
.nav-sub.active { opacity: 0.4; }

.nav-contact {
  font-size: 12px;
  font-weight: 700;
  line-height: 2.15;
  display: block;
  color: #000;
  letter-spacing: 0.01em;
  transition: opacity 0.15s;
  margin-top: 4px;
}
.nav-contact:hover  { opacity: 0.4; }
.nav-contact.active { opacity: 0.4; }

/* ─── Main Content ─────────────────────────── */
main {
  margin-left: 190px;
  padding: 80px 60px 160px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── Photo: Project Entry ─────────────────── */
.project-entry {
  width: 100%;
  max-width: 820px;
  margin-bottom: 96px;
}

/* Positioned outside the photo — bottom-right corner */
.project-entry-title {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #000;
  white-space: nowrap;
}

.slideshow {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.slideshow-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  width: 100%;
}

.s-arrow {
  font-size: 40px;
  color: #c8c8c8;
  cursor: pointer;
  user-select: none;
  width: 28px;
  flex-shrink: 0;
  text-align: center;
  line-height: 1;
  transition: color 0.15s;
}
.s-arrow:hover { color: #000; }

/* Height-based sizing: landscape photos are wider (bigger),
   portrait photos are narrower (smaller). */
/* s-main is inline-block so it shrink-wraps the image exactly —
   the title is then anchored to the photo's real right edge. */
.s-main {
  flex-shrink: 0;
  display: inline-block;
  position: relative;
}
.s-main img {
  height: min(600px, 62vh);
  width: auto;
  max-width: min(820px, 64vw);
  display: block;
  transition: opacity 0.15s ease;
}

/* Thumbnails not used in this layout */
.s-thumbs { display: none; }

/* ─── Video: Project Entry ─────────────────── */
.video-entry {
  width: 100%;
  max-width: 780px;
  margin-bottom: 96px;
}

.video-entry-title {
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0.02em;
  margin-bottom: 13px;
  color: #000;
}

/* align-items: stretch makes the screenshot grid
   match the exact height of the video player */
.video-layout {
  display: flex;
  align-items: stretch;
  gap: 10px;
}

.video-player {
  flex: 0 0 480px;
  background: #000;
  display: flex;
  align-items: flex-start;
}
.video-player video {
  width: 100%;
  display: block;
}
.video-player iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  display: block;
  border: none;
}

/* 2×2 grid stretches to video height;
   grid-template-rows: 1fr 1fr → two equal rows.
   Each img fills its cell → all 4 exactly the same height. */
.video-shots {
  flex: 1;
  min-width: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 5px;
}
.video-shots img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ─── Contact / About ──────────────────────── */

/* Wrapper keeps portrait + bio left-aligned together */
.about-section {
  width: 100%;
  max-width: 660px;
}

.contact-block {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-bottom: 52px;
}

.contact-photo {
  flex-shrink: 0;
  width: 220px;
  background: #ebebeb;
  min-height: 280px;
}
.contact-photo img {
  width: 100%;
  height: auto;
  display: block;
}

.contact-details { padding-top: 2px; }

.contact-who {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.contact-line {
  font-size: 12px;
  line-height: 1.9;
  color: #000;
}
.contact-line a {
  color: #000;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.bio-block p {
  font-size: 12px;
  line-height: 1.95;
  color: #000;
  margin-bottom: 20px;
}

/* ─── Responsive ───────────────────────────── */
@media (max-width: 1100px) {
  .s-main img { max-width: min(680px, 62vw); }
  .video-player { flex: 0 0 400px; }
}

@media (max-width: 900px) {
  .s-main img {
    height: min(500px, 58vh);
    max-width: 70vw;
  }
}

@media (max-width: 768px) {
  /* Sidebar → top nav bar */
  .sidebar {
    position: static;
    width: 100%;
    height: auto;
    padding: 18px 20px 12px;
    display: flex;
    align-items: baseline;
    gap: 20px;
    border-bottom: 1px solid #e8e8e8;
  }
  .site-name {
    font-size: 15px;
    letter-spacing: 0.18em;
    margin-bottom: 0;
    flex-shrink: 0;
  }
  .sidebar-nav {
    flex-direction: row;
    align-items: baseline;
    gap: 0;
    flex-wrap: wrap;
  }
  .nav-parent { display: none; }
  .nav-sub {
    padding-left: 0;
    margin-right: 14px;
    line-height: 1.6;
  }
  .nav-contact { margin-top: 0; }

  main {
    margin-left: 0;
    padding: 30px 16px 80px;
  }

  /* Video page */
  .video-layout { flex-direction: column; }
  .video-player { flex: auto; width: 100%; height: auto; }
  .video-player iframe { width: 100%; aspect-ratio: 16/9; height: auto; }
  .video-shots { flex: auto; width: 100%; height: auto; grid-template-rows: auto; }
  .video-shots img { height: auto; aspect-ratio: 16/9; }

  /* Contact page */
  .about-layout { flex-direction: column; gap: 30px; }
  .about-photo img { width: 180px; }
  .contact-block { flex-direction: column; align-items: flex-start; }
  .contact-photo { width: 160px; min-height: auto; }
  .about-section { max-width: 100%; }
}
