:root {
  --ink: #201e1d;
  --shift-left: 0vh;
  --shift-right: 1.7vh;
}

html, body {
  height: 100%;
  background: var(--ink);
}

body {
  font-family: 'Archivo', system-ui, sans-serif;
}

.portal-split {
  position: relative;
  width: 100%;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  overflow: hidden;
}

.side {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.side img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  z-index: 1;
}

.side.left img {
  transform: scale(1.12) translateY(var(--shift-left));
}

.side.right img {
  transform: scale(1.12) translateY(var(--shift-right));
}

.side::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(0deg, rgba(74, 55, 38, 0.9) 0%, rgba(74, 55, 38, 0.68) 42%, rgba(74, 55, 38, 0.22) 72%, rgba(74, 55, 38, 0.02) 100%);
}

.side::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.28s ease;
  pointer-events: none;
}

.side.left::after {
  background: rgba(196, 45, 32, 0.5);
}

.side.right::after {
  background: rgba(14, 165, 233, 0.5);
}

.side:hover::after,
.side:focus-visible::after {
  opacity: 1;
}

.side .content {
  position: relative;
  z-index: 4;
  padding: clamp(28px, 5vh, 56px) clamp(24px, 5vw, 64px);
}

.side .tag {
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 16px;
}

.side h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  font-weight: 800;
  margin: 0 0 18px;
  line-height: 1.03;
  letter-spacing: -0.02em;
}

.side p {
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  max-width: 460px;
  line-height: 1.55;
  margin: 0 0 28px;
  opacity: 0.94;
}

.side .cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.08rem;
  padding: 16px 30px;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
}

.center-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
}

.divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 1px;
  background: rgba(255, 255, 255, 0.55);
  z-index: 4;
}

.rainbow-edge {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  z-index: 7;
  background: linear-gradient(
    90deg,
    #ff2d1a 0%,
    #ff8c00 16.6%,
    #ffd400 33.3%,
    #00b34a 50%,
    #00a8d6 66.6%,
    #7a1ff0 83.3%,
    #ff2d1a 100%
  );
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  padding: 24px 40px;
  color: #fff;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.topbar .mark {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.topbar .meta {
  font-weight: 500;
  font-size: 0.82rem;
  opacity: 0.85;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

@media (max-width: 760px) {
  .portal-split {
    flex-direction: column;
    height: 100vh;
    height: 100dvh;
  }

  .side {
    flex: none;
    height: 50vh;
    height: 50dvh;
  }

  .side.left img {
    transform: scale(1.05);
    object-position: center 55%;
  }

  .side.right img {
    transform: scale(1.05);
    object-position: center 30%;
  }

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

  .topbar {
    padding: 16px 20px;
  }

  .topbar .mark {
    font-size: 1rem;
  }

  .topbar .meta {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }

  .side .content {
    padding: 16px 18px 18px;
  }

  .side .tag {
    font-size: 0.74rem;
    margin-bottom: 8px;
  }

  .side h1 {
    font-size: 1.85rem;
    margin-bottom: 8px;
  }

  .side p {
    max-width: none;
    font-size: 0.92rem;
    line-height: 1.42;
    margin-bottom: 14px;
  }

  .side .cta {
    padding: 12px 20px;
    font-size: 0.92rem;
  }

  .center-badge {
    width: 56px;
    height: 56px;
    font-size: 0.85rem;
  }
}
