:root {
  color-scheme: light dark;
  --ease: cubic-bezier(.2,.75,.25,1);
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
  margin: 0;
  background: #0a0a0a;
  font-family: Arial, Helvetica, sans-serif;
}

.portal {
  display: flex;
  min-height: 100svh;
  overflow: hidden;
}

.world {
  position: relative;
  display: flex;
  flex: 1 1 50%;
  min-width: 0;
  padding: clamp(24px, 4vw, 72px);
  text-decoration: none;
  overflow: hidden;
  cursor: pointer;
  transition: flex .7s var(--ease), filter .5s ease, background-color .45s ease;
}

.world::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}

.world--personal {
  color: #111;
  background: #f3f1ec;
}

.world--personal::after {
  background: radial-gradient(circle at 25% 65%, rgba(255,255,255,.8), transparent 45%);
}

.world--lhi {
  color: #f5f5f2;
  background: #080808;
  border-left: 1px solid rgba(127,127,127,.28);
  font-family: "Courier New", Courier, monospace;
}

.world--lhi::after {
  background: radial-gradient(circle at 75% 35%, rgba(255,255,255,.08), transparent 40%);
}

.world__content {
  position: relative;
  z-index: 1;
  width: min(100%, 650px);
  margin: auto 0;
  transition: transform .55s var(--ease);
}

.world__eyebrow {
  margin: 0 0 clamp(24px, 5vh, 60px);
  font-size: clamp(.68rem, .8vw, .82rem);
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1, h2 {
  margin: 0;
  font-size: clamp(3.1rem, 7vw, 7.4rem);
  font-weight: 500;
  line-height: .88;
  letter-spacing: -.065em;
}

.world--lhi h2 {
  font-weight: 400;
  letter-spacing: -.075em;
}

.world__copy {
  max-width: 34rem;
  margin: clamp(28px, 5vh, 54px) 0 0;
  font-size: clamp(.95rem, 1.3vw, 1.2rem);
  line-height: 1.55;
  opacity: .72;
}

.world__action {
  display: inline-flex;
  gap: 1rem;
  align-items: center;
  margin-top: clamp(38px, 7vh, 84px);
  padding-bottom: .45rem;
  border-bottom: 1px solid currentColor;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: letter-spacing .4s var(--ease), background-color .35s ease, color .35s ease, padding .35s var(--ease);
}

.world__number,
.world__hint {
  position: absolute;
  z-index: 1;
  font-size: .65rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  opacity: .52;
}

.world__number { top: clamp(24px, 4vw, 72px); right: clamp(24px, 4vw, 72px); }
.world__hint { right: clamp(24px, 4vw, 72px); bottom: clamp(24px, 4vw, 72px); }

@media (hover: hover) and (pointer: fine) {
  .portal:has(.world:hover) .world:not(:hover) { flex-grow: .82; filter: brightness(.7) contrast(.88); }
  .world:hover { flex-grow: 1.18; }
  .world--personal:hover { background-color: #fff; }
  .world--lhi:hover { background-color: #151515; }
  .world:hover::after { opacity: 1; }
  .world:hover .world__content { transform: translateX(14px); }
  .world:hover .world__action {
    padding: .8rem 1rem;
    letter-spacing: .2em;
  }
  .world--personal:hover .world__action { background: #111; color: #fff; }
  .world--lhi:hover .world__action { background: #f5f5f2; color: #080808; }
  .world__action span { transition: transform .35s var(--ease); }
  .world:hover .world__action span { transform: translate(.35rem, -.1rem); }
}

.world:focus-visible {
  outline: 3px solid #d54b35;
  outline-offset: -6px;
  z-index: 2;
}

@media (max-width: 760px) {
  .portal { flex-direction: column; }
  .world { min-height: 50svh; padding: 26px 28px; }
  .world--lhi { border-left: 0; border-top: 1px solid rgba(127,127,127,.28); }
  .world__content { margin: auto 0; }
  .world__eyebrow { margin-bottom: 20px; }
  h1, h2 { font-size: clamp(2.7rem, 13vw, 4.6rem); line-height: .9; }
  .world__copy { margin-top: 20px; font-size: .86rem; max-width: 28rem; }
  .world__action { margin-top: 25px; }
  .world__hint { display: none; }
  .world__number { top: 24px; right: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  .world, .world::after, .world__content, .world__action, .world__action span { transition: none; }
}
