/* ============================================
   RESET
   ============================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background: #ffffff;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: #111111;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

/* ============================================
   HEADER
   ============================================ */
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 32px 48px 0;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.header-left,
.header-right {
  display: flex;
  align-items: baseline;
}

.name {
  font-weight: 400;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: inherit;
  color: inherit;
  background: none;
  border: none;
  padding: 0;
  cursor: default;
}

.name.is-active {
  cursor: pointer;
}

.tagline,
.email {
  opacity: 0;
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity 0.25s ease, max-width 0.4s ease;
}

.email {
  cursor: pointer;
}

.header-right {
  gap: 8px;
}

.contact-label {
  cursor: pointer;
}

.site-header:hover .tagline,
.site-header:hover .email {
  opacity: 1;
  max-width: 400px;
}

/* ============================================
   STAGE — the white plane the book sits on
   ============================================ */
.stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 72px 24px 40px;
}

/* ============================================
   BOOK VIEWER
   ============================================ */
.book-viewer {
  position: relative;
  width: min(94vw, 1500px);
  aspect-ratio: 4 / 3; /* matches your book spread photos — update if yours differ */
}

.book-viewer img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* A quick, sharp crossfade when the image swaps — not a page
     turn, just enough to avoid a jarring instant pop. Set to 0s
     if you'd rather it be an instant hard cut. */
  transition: opacity 0.07s ease;
}

.book-viewer img.is-swapping {
  opacity: 0;
}

/* ============================================
   CLICK ZONES
   Invisible halves over the book. Cursor changes
   give a subtle hint that they're clickable.
   ============================================ */
.zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 50%;
  background: transparent;
  border: none;
  cursor: pointer;
}

.zone-left {
  left: 0;
  cursor: w-resize;
}

.zone-right {
  right: 0;
  cursor: e-resize;
}

.zone:disabled {
  cursor: default;
  pointer-events: none;
}

/* ============================================
   INDEX HOTSPOTS
   Invisible buttons sitting exactly over each
   project title on the index page. The container
   only accepts clicks while the index page is
   showing (toggled in script.js) — otherwise
   clicks pass through to the normal zone-left /
   zone-right navigation underneath.
   ============================================ */
.index-hotspots {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none; /* enabled per-button in script.js when mapped + on the index page */
}

.index-hotspot {
  position: absolute;
  background: transparent;
  border: none;
  padding: 0;
  cursor: default;
}

.index-hotspot.is-active {
  cursor: pointer;
  pointer-events: auto;
}

/* ============================================
   PAGE INDICATOR
   ============================================ */
.page-indicator {
  margin-top: 20px;
  font-size: 11px;
  color: #6b6a66;
  letter-spacing: 0.05em;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 640px) {
  .site-header {
    padding: 24px 20px 0;
    flex-direction: column;
    gap: 4px;
  }

  .stage {
    padding: 40px 16px 32px;
  }
}
