/* ==========================================================================
   components.css — Reusable UI parts
   ========================================================================== */

/* --- Hamburger button ------------------------------------------------ */
.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}
.menu-btn span {
  position: absolute;
  left: 10px;
  right: 10px;
  height: 1.5px;
  background: #fff;
  transition: transform .3s ease, opacity .3s ease, top .3s ease, background .35s ease;
}
.menu-btn span:nth-child(1) { top: 16px; }
.menu-btn span:nth-child(2) { top: 22px; }
.menu-btn span:nth-child(3) { top: 28px; }
.header.scrolled .menu-btn span { background: var(--text); }
body.menu-open .menu-btn span { background: var(--text); }
body.menu-open .menu-btn span:nth-child(1) { top: 22px; transform: rotate(45deg); }
body.menu-open .menu-btn span:nth-child(2) { opacity: 0; }
body.menu-open .menu-btn span:nth-child(3) { top: 22px; transform: rotate(-45deg); }

/* --- Outline button -------------------------------------------------- */
.btn-line {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  padding: 24px 56px;
  border: 1px solid var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 12px;
  letter-spacing: 0.2em;
  font-weight: 500;
  transition: all .3s ease;
}
.btn-line:hover { background: var(--text); color: #fff; opacity: 1; }

/* --- Image / Video slot (placeholder area) --------------------------- */
.image-slot {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #d8d4cc 0%, #a8a39a 50%, #6b6760 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.85);
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  letter-spacing: 0.3em;
}
.image-slot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 32px 32px;
}
.image-slot .image-slot-label {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.image-slot .image-slot-label::before {
  content: '';
  width: 36px;
  height: 36px;
  border: 1.5px solid currentColor;
  border-radius: 2px;
  position: relative;
}
.image-slot .image-slot-label::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  top: 8px;
  left: calc(50% - 14px);
}
.image-slot img,
.image-slot video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}

/* Aspect modifiers */
.image-slot.aspect-portrait  { aspect-ratio: 4/5; }
.image-slot.aspect-landscape { aspect-ratio: 16/10; }
.image-slot.aspect-wide      { aspect-ratio: 21/9; }

/* Tone modifiers */
.image-slot.tone-warm { background: linear-gradient(135deg, #d4c0a8 0%, #a78a60 50%, #6b5238 100%); }
.image-slot.tone-cool { background: linear-gradient(135deg, #b8c4cc 0%, #6e8090 50%, #3a4855 100%); }
.image-slot.tone-mono { background: linear-gradient(135deg, #cdcac4 0%, #8a8780 50%, #45433e 100%); }
.image-slot.tone-dark { background: linear-gradient(135deg, #3a3633 0%, #1a1714 100%); }

@media (max-width: 720px) {
  .image-slot.aspect-wide     { aspect-ratio: 4/3; }
  .image-slot.aspect-portrait { aspect-ratio: 3/4; }
  .image-slot .image-slot-label { font-size: 10px; gap: 10px; letter-spacing: 0.2em; }
}

/* --- Reveal-on-scroll animation -------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1s cubic-bezier(.2,.7,.2,1), transform 1s cubic-bezier(.2,.7,.2,1);
}
.reveal.in { opacity: 1; transform: translateY(0); }
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }
