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

html, body {
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #fff;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  color: #000;
  cursor: default;
}

/* ── Name ── */
.name {
  position: fixed;
  bottom: 20px;
  left: 30px;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
  z-index: 100;
  user-select: none;
}

.name a {
  color: inherit;
  text-decoration: none;
}

/* ── Gallery ── */
.gallery {
  position: fixed;
  inset: 0;
  display: flex;
  overflow: hidden;
  background: transparent;
}

.gallery-inner {
  display: flex;
  height: 100%;
  will-change: transform;
  transition: transform 1.2s cubic-bezier(0.77, 0, 0.18, 1);
}

/* ── Slide ── */
.slide {
  flex: 0 0 100vw;
  height: 100%;
  overflow: hidden;
  position: relative;
  padding: 20px 30px 60px;
}

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

/* ── Menu ── */
.menu-btn {
  position: fixed;
  bottom: 20px;
  right: 30px;
  z-index: 100;
  background: none;
  border: none;
  cursor: pointer;
  font-family: 'Times New Roman', Times, serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #000;
  padding: 0;
  user-select: none;
}

.menu-popup {
  position: fixed;
  bottom: 48px;
  right: 30px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background-color: rgba(255,255,255,0.9);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  padding: 20px 24px;
}

.menu-popup.open {
  opacity: 1;
  pointer-events: all;
  transform: translateY(0);
}

.menu-popup a {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  text-transform: none;
  color: #000;
  text-decoration: none;
  opacity: 0.5;
  transition: opacity 0.2s;
}

.menu-popup a:hover {
  opacity: 1;
}

/* ── Arrow buttons ── */
.arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 50;
  background: none;
  border: none;
  cursor: pointer;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
  color: #000;
}

.arrow.prev { left: 12px; }
.arrow.next { right: 12px; }

body:hover .arrow { opacity: 0.2; }
.arrow:hover { opacity: 1 !important; }

/* ── Fade in ── */
body {
  animation: fadeIn 0.8s ease forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Mobile ── */
@media (max-width: 768px) {
  body { cursor: auto; }
  .cursor { display: none; }
  .name { left: 24px; bottom: 24px; }
  .arrow { display: none; }
}
