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

html, body {
  height: 100%;
  overflow: hidden;
  background: #050505;
}

/* ─── Split layout ─────────────────────────────── */

.split {
  display: flex;
  height: 100vh;
  width: 100vw;
  position: relative;
}

/* Divider line */
.split::after {
  content: '';
  position: fixed;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
  z-index: 10;
}

/* ─── Panels ───────────────────────────────────── */

.panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  background-color: #050505;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: flex 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

/* Dark overlay — lifts on hover */
.panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  transition: background 0.8s ease;
  pointer-events: none;
}

.panel:hover {
  flex: 1.08;
}

.panel:hover::after {
  background: rgba(0, 0, 0, 0.2);
}

/* ─── Labels ───────────────────────────────────── */

.panel__label {
  position: relative;
  z-index: 1;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.7rem;
  font-weight: 300;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: rgba(0, 0, 0, 0.75);
  background: rgba(255, 255, 255, 0.82);
  padding: 0.55rem 1.4rem;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.6s ease, color 0.6s ease;
  user-select: none;
}

.panel:hover .panel__label {
  background: rgba(255, 255, 255, 0.95);
  color: rgba(0, 0,0, 0.9);
}

/* ─── Grain overlay ────────────────────────────── */

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  background-size: 200px 200px;
  opacity: 0.035;
  pointer-events: none;
  z-index: 100;
}

/* ─── Mobile ───────────────────────────────────── */

@media (max-width: 768px) {
  html, body {
    overflow: hidden;
  }

  .split {
    flex-direction: column;
  }

  .split::after {
    left: 0;
    right: 0;
    top: 50%;
    bottom: auto;
    width: 100%;
    height: 1px;
  }

  .panel:hover {
    flex: 1.05;
  }
}
