/* Base */
* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
}

body {
  font-family: "Roboto Mono", monospace;
  background: #f5f7fb;
}

/* Split layout */
.split {
  position: relative;
  width: 100%;
  height: 100svh;
  display: flex;
  flex-direction: row;
}

/* Two halves */
.half {
  flex: 1 1 50%;
  width: 50%;

  display: flex;
  align-items: center;
  justify-content: center;

  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 800;
  font-size: clamp(2rem, 5vw, 4.25rem);
  line-height: 1;

  transition: background 0.35s ease, color 0.35s ease;
}

/* Left side */
.half--left {
  background: #ffffff;
  color: #000000;
}

/* Right side */
.half--right {
  background: #f5f7fb;
  color: #000000;
}

/* =========================================
   ART HOVER — MID-CENTURY MODERN STRIPES
   (Percent stops = no “one skinny stripe”)
   ========================================= */

:root {
  --stripe-cycle: 600px;
}

.half--left:hover {
  background: linear-gradient(
    90deg,
    #e4572e 0%,         #e4572e 8.333333%,
    #f3a712 8.333333%,  #f3a712 16.666666%,
    #a8c686 16.666666%, #a8c686 25%,
    #1b998b 25%,        #1b998b 33.333333%,
    #2e86ab 33.333333%, #2e86ab 41.666666%,
    #e76f51 41.666666%, #e76f51 50%,
    #5e548e 50%,        #5e548e 58.333333%,
    #6b705c 58.333333%, #6b705c 66.666666%,
    #d1495b 66.666666%, #d1495b 75%,
    #3d405b 75%,        #3d405b 83.333333%,
    #81b29a 83.333333%, #81b29a 91.666666%,
    #f4d35e 91.666666%, #f4d35e 100%
  );

  /* cycle width controls stripe “thickness” + loop distance */
  background-size: var(--stripe-cycle) 100%;
  animation: stripeMove 7s linear infinite;

  color: #f5f7fb;
}

@keyframes stripeMove {
  from { background-position: 0 0; }
  to   { background-position: var(--stripe-cycle) 0; }
}

/* Design side hover */
.half--right:hover {
  background: #000000;
  color: #f5f7fb;
}

/* Center Logo */
.center-logo {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);

  display: grid;
  place-items: center;

  width: clamp(60px, 6vw, 110px);
  height: clamp(60px, 6vw, 110px);

  background: #f5f7fb;
  border: none;
  border-radius: 50%;

  z-index: 1000;

  will-change: transform;
  transition: transform 0.25s ease;
}

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

/* Accessibility focus */
.half:focus-visible,
.center-logo:focus-visible {
  outline: 3px solid #3b82f6;
  outline-offset: 4px;
}

/* Mobile layout */
@media (max-width: 768px) {

  .split {
    flex-direction: column;
    height: 100svh;
  }

  .half {
    width: 100%;
    flex: 1 1 50%;
  }

  .center-logo {
    width: clamp(56px, 18vw, 120px);
    height: clamp(56px, 18vw, 120px);
  }

  :root {
    --stripe-cycle: 720px;
  }
}

/* iPhone landscape fix */
@media (max-width: 900px) and (orientation: landscape) {

  .center-logo {
    width: clamp(40px, 6vh, 80px);
    height: clamp(40px, 6vh, 80px);
  }

  .half--left:hover {
    animation: stripeMove 10s linear infinite;
  }
}