/* ── Reset & Base ────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --nav-height: 48px;
  --font-main: "neue-haas-grotesk-display", sans-serif;
  --font-sans: "neue-haas-grotesk-display", sans-serif;
  --letter-spacing: 0em;
  --color-bg: #fff;
  --color-text: #111;
  --color-muted: #888;
  --slider-height: 600px;
  --transition: 0.35s ease;
}

html, body {
  height: 100%;
  font-family: "neue-haas-grotesk-display", sans-serif;
  font-weight: 500;
  font-style: normal;
  font-size: 12px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-sans);
  letter-spacing: var(--letter-spacing);
  overflow-x: hidden;
}

a {
    color: var(--color-muted);
    text-decoration: none;
}

/* ── Navigation ──────────────────────────────────── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-height);
  letter-spacing: var(--letter-spacing);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 10px;
  background: linear-gradient(
    to bottom,
    #fff 0%,
    #fff 50%,
    rgba(255, 255, 255, 0) 100%
  );
  z-index: 100;
  border-bottom: none;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.nav a {
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 1.2rem;
  transition: opacity var(--transition);
}

.nav a:hover {
  opacity: 0.45;
}

.nav-title {
  font-weight: 600;
}

.nav-about {
  font-weight: 600;
  padding-left: 6px;
}

/* ── Main / Slider ───────────────────────────────── */
.main {
  height: 100vh;   /* fallback for older browsers */
  height: 100dvh;  /* modern browsers: tracks real visible viewport */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: filter var(--transition);
}

.main.blurred {
  filter: blur(1.03rem);
}

.slider-wrap {
  position: relative;
  width: 100%;
  max-width: 1800px;
  height: var(--slider-height);
  overflow: hidden;
}

.slider {
  position: relative;
  height: 100%;
  width: 100%;
}

.slide {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
}

.slide.active {
  opacity: 1;
  pointer-events: all;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Placeholder when no real images */
.slide-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
  letter-spacing: normal;
  background-color: #cecece;
  user-select: none;
}

/* ── Click Zones ─────────────────────────────────── */

.click-zone {
  position: fixed;
  top: 0;
  bottom: 0;
  width: 50%;
  z-index: 50;
  cursor: none;
}

.click-zone.left  { left: 0; }
.click-zone.right { right: 0; }

/* Don't let click zones sit over the nav */
.nav {
  z-index: 100; /* already set, just confirming it stays above */
}

/* ── Custom Cursor Label ──────────────────────────── */

#cursor-label {
  position: fixed;
  pointer-events: none;
  z-index: 200;
  mix-blend-mode: difference;
  font-family: var(--font-sans);
  font-weight: 600;
  color: #fff;
  transform: translate(-50%, -50%);
  display: none;
}

@media (hover: none), (pointer: coarse) {
  #cursor-label {
    display: none !important;
  }
}


/* ── Slider Counter ──────────────────────────────── */
.slider-counter {
  position: fixed;
  bottom: 10px;
  left: 10px;
  right: auto;
  transform: none;
  font-size: 0.8em;
  letter-spacing: normal;
  color: var(--color-text);
  pointer-events: none;
}

/* ── Overlay ─────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(1.05rem);
  -webkit-backdrop-filter: blur(1.05rem);
  z-index: 90;
  overflow-y: auto;
  padding: calc(var(--nav-height) + 40px) 10px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--transition);
}

.overlay.open {
  opacity: 1;
  pointer-events: all;
}

.overlay-inner {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.overlay-col {
  padding: 20px 20px 20px 0;
}

.overlay-col:last-child {
  border-right: none;
}

.overlay-col-label {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.overlay-text {
  padding-top: 6px;    
  font-family: var(--font-main);
  font-size: 1rem;
  color: var(--color-text);
}

/* ── Project List ────────────────────────────────── */
.project-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.project-list a {
  display: block;
  padding: 10px 0;
  text-decoration: none;
  color: var(--color-text);
  font-family: var(--font-sans);
  font-size: 1rem;
  transition: opacity var(--transition);
}

.project-list span {
    color: var(--color-muted);
}

.project-list a:hover {
  opacity: 0.4;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
  :root {
    --slider-height: 400px;
  }

  .slider-wrap {
    max-width: 100%;
    padding: 10px;
  }

  .overlay-inner {
    grid-template-columns: 1fr;
  }

  .overlay-col {
    border-right: none;
    padding: 20px 0px;
  }

  .overlay-col:last-child {
    border-bottom: none;
  }
}