/* Jules Arkauer — Portfolio */

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

html, body {
  font-family: 'EB Garamond', Times, serif;
  font-size: 14px;
  line-height: 16px;
  color: #000;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

body { padding: 16px; }

a { color: #848484; text-decoration: none; }
a:hover { color: #000; }

img { display: block; max-width: 100%; }

/* ── wrapper ─────────────────────────────────────── */

.wrapper { max-width: 900px; margin: 0 auto; }

/* ── fixed menu — full viewport width ────────────── */

#menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: #fff;
  z-index: 100;
  border-bottom: 1px solid #e8e8e8;
}

.menu-inner {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 16px;
}

.site-name { color: #000; font-size: 14px; }
.site-name:hover { color: #000; }

.nav-links { display: flex; gap: 24px; }
.nav-links a { font-size: 13px; }
.nav-links a.active { color: #000; }

/* ── content ─────────────────────────────────────── */

.content { margin-top: 52px; padding-top: 24px; }

/* ── home — fullscreen cycling video ─────────────── */

body.home {
  padding: 0;
  overflow: hidden;
  height: 100vh;
}

.home-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.home-nav .site-name { color: #fff; font-size: 14px; }
.home-nav .site-name:hover { color: rgba(255,255,255,0.6); }

.home-nav .nav-links a { color: #fff; font-size: 13px; }
.home-nav .nav-links a:hover { color: rgba(255,255,255,0.6); }

.hero-wrap {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: #000;
}

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

@media (max-width: 600px) {
  .hero-wrap video {
    object-fit: contain;
  }
}

/* ── works grid ──────────────────────────────────── */

.works-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 56px 24px;
  padding-bottom: 80px;
}

.work-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.work-item-thumb {
  width: 100%;
  overflow: hidden;
  background: #f0f0f0;
}

.work-item-thumb img,
.work-item-thumb video,
.work-item-thumb canvas {
  width: 100%;
  height: auto;
  display: block;
  transition: opacity 0.25s;
}

.work-item-link:hover .work-item-thumb img,
.work-item-link:hover .work-item-thumb video,
.work-item-link:hover .work-item-thumb canvas { opacity: 0.82; }

.work-item-title {
  margin-top: 8px;
  font-size: 13px;
  color: #000;
}

.work-item-meta {
  margin-top: 2px;
  font-size: 13px;
  color: #848484;
}

/* ── project sub-pages ───────────────────────────── */

.back-link {
  display: inline-block;
  font-size: 13px;
  color: #848484;
  margin-bottom: 40px;
}
.back-link:hover { color: #000; }

.project-header { margin-bottom: 56px; }

.project-page-title {
  font-size: 14px;
  font-weight: normal;
  color: #000;
  margin-bottom: 4px;
}

.project-page-meta {
  font-size: 13px;
  color: #848484;
  margin-bottom: 28px;
}

.project-description {
  max-width: 440px;
  font-size: 14px;
  line-height: 22px;
  color: #000;
}

.project-description p { margin-bottom: 16px; }

.project-section { margin-bottom: 72px; }

.section-label {
  font-size: 13px;
  color: #848484;
  margin-bottom: 14px;
}

/* project page video */
.project-page-video {
  width: 100%;
  display: block;
  background: #111;
  max-height: 580px;
}

/* pdf embed */
.pdf-embed {
  width: 100%;
  border: none;
  display: block;
}

/* ── image layout: editorial grid (Forged / Vinnie) ─ */
/* 2-col, natural proportions, tight gap             */

.editorial-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.editorial-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.editorial-grid img:hover { opacity: 0.82; }

/* ── image layout: side-by-side rows (Nouvan) ─────── */

.row-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.row-grid img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.row-grid img:hover { opacity: 0.82; }

/* ── image layout: tight 3-col (What's in my bag) ── */

.tight-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.tight-3col img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.tight-3col img:hover { opacity: 0.82; }

/* ── image layout: compact 2-col (experience photos) */

.compact-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.compact-2col img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.compact-2col img:hover { opacity: 0.82; }

/* ── poster grid 3×2 ─────────────────────────────── */

.poster-grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.poster-grid-3col canvas,
.poster-grid-3col img {
  width: 100%;
  height: auto;
  display: block;
}

.poster-grid-3col iframe {
  width: 100%;
  height: 360px;
  border: none;
  display: block;
  pointer-events: none;
}

/* ── letterbox video crop ────────────────────────── */
/* Crops black bars from embedded-letterbox videos    */

.letterbox-crop {
  position: relative;
  overflow: hidden;
  /* aspect-ratio matches visible content area */
  aspect-ratio: 2.5 / 1;
  width: 100%;
  background: #000;
}

.letterbox-crop video {
  position: absolute;
  width: 100%;
  height: auto;
  top: 50%;
  left: 0;
  transform: translateY(-50%);
}

/* ── flipbook ─────────────────────────────────────── */

.flipbook-wrap {
  width: 100%;
  background: #f9f9f9;
}

.flipbook-canvas {
  display: block;
  width: 100%;
  height: auto;
}

.flipbook-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 12px 0;
  border-top: 1px solid #efefef;
}

.flipbook-controls button {
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 14px;
  color: #848484;
  padding: 4px 8px;
}

.flipbook-controls button:hover { color: #000; }
.flipbook-controls button:disabled { color: #ccc; cursor: default; }

.flipbook-counter {
  font-size: 13px;
  color: #848484;
  min-width: 60px;
  text-align: center;
}

/* ── about ───────────────────────────────────────── */

.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
  align-items: start;
}

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

.about-text { max-width: 560px; }

.about-text h1 {
  font-size: 14px;
  font-weight: normal;
  margin-bottom: 24px;
  color: #000;
}

.about-text p {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 20px;
}

.contact-section { margin-top: 48px; }

.contact-section p {
  font-size: 13px;
  line-height: 22px;
  color: #848484;
}

.contact-section p:first-child {
  color: #000;
}

.contact-section a { font-size: 13px; }

/* ── lightbox ────────────────────────────────────── */

#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #000;
  z-index: 200;
  cursor: pointer;
}

#lightbox.open { display: flex; align-items: center; justify-content: center; }

#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  cursor: default;
  display: block;
}

#lb-close {
  position: absolute;
  top: 16px;
  right: 16px;
  color: #848484;
  font-size: 13px;
  cursor: pointer;
  z-index: 10;
}

#lb-close:hover { color: #fff; }

#lb-prev, #lb-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: #848484;
  font-size: 13px;
  cursor: pointer;
  padding: 16px;
  z-index: 10;
  background: none;
  border: none;
}

#lb-prev { left: 0; }
#lb-next { right: 0; }
#lb-prev:hover, #lb-next:hover { color: #fff; }

#lb-caption {
  position: absolute;
  bottom: 16px;
  left: 16px;
  color: #848484;
  font-size: 13px;
}

/* ── footer ──────────────────────────────────────── */

footer {
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
  font-size: 13px;
  color: #848484;
}
