:root {
  --night: #080a0f;
  --night-soft: #11151e;
  --white: #ffffff;
  --paper: #f3f1ea;
  --yellow: #e8e200;
  --red: #ef001d;
  --blue: #102fc9;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--night);
}

body {
  min-width: 0;
  min-height: 100svh;
  margin: 0;
  color: var(--white);
  background: var(--night);
  font-family: Arial, Helvetica, sans-serif;
}

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  color: var(--night);
  background: var(--white);
  transform: translateY(-180%);
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.hero {
  position: relative;
  min-height: clamp(280px, 38vh, 430px);
  overflow: hidden;
  padding: 1.5rem clamp(1.2rem, 4vw, 4.5rem) 2rem;
  background:
    linear-gradient(90deg, transparent 49.9%, rgba(255,255,255,0.08) 50%, transparent 50.1%),
    var(--night);
}

.hero__topline {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.motion-control {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0;
  border: 0;
  color: rgba(255,255,255,0.68);
  background: transparent;
  font: inherit;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.motion-control__symbol {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255,255,255,0.38);
  color: var(--white);
  letter-spacing: -0.22em;
}

.motion-control:hover,
.motion-control:focus-visible {
  color: var(--white);
}

.hero__copy {
  position: relative;
  z-index: 4;
  width: min(100%, 1100px);
  margin: clamp(2.5rem, 7vh, 5rem) auto 0;
  text-align: center;
}

.hero h1 {
  margin: 0;
  text-wrap: balance;
  font-size: clamp(2.8rem, 7.2vw, 7.2rem);
  font-weight: 900;
  line-height: 0.83;
  letter-spacing: -0.075em;
}

.brand-signal {
  width: 180px;
  height: 44px;
  margin: 1.35rem auto 0;
  display: block;
  color: var(--yellow);
}

.brand-signal svg {
  width: 180px;
  height: 44px;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-signal__base {
  opacity: 0.72;
}

.brand-signal__trace {
  stroke: var(--white);
  stroke-width: 3;
  stroke-dasharray: 34 236;
  stroke-dashoffset: 0;
  filter: drop-shadow(0 0 5px rgba(239, 255, 0, 0.7));
  animation: signal-trace 3.2s linear infinite;
}

.hero__domain {
  margin: 0.15rem 0 0;
  color: var(--white);
  font-family: Impact, "Arial Black", Arial, sans-serif;
  font-size: clamp(1.45rem, 3vw, 3.4rem);
  font-style: italic;
  line-height: 1;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.hero__domain > * {
  display: inline-block;
}

.hero__domain strong {
  margin-inline: 0.035em;
  color: var(--yellow);
  font: inherit;
  font-weight: 900;
}

main {
  background: var(--night);
}

.selector {
  min-height: min(640px, 64vh);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 10px;
  background: var(--night);
}

.choice {
  --accent: var(--white);
  position: relative;
  min-width: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  overflow: hidden;
  overflow: clip;
  color: #111111;
  background: #efeee9;
  text-decoration: none;
  isolation: isolate;
}

.choice--roske {
  --accent: #bab500;
  background: #f5f2df;
}

.choice--naundorf {
  --accent: var(--red);
  background: #f0efeb;
}

.choice--bkm {
  --accent: var(--blue);
  background: #e9ecf7;
}

.choice__sweep {
  position: absolute;
  inset-block: 0;
  left: 0;
  z-index: -1;
  width: 38%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  transform: translateX(-125%) skewX(-14deg);
}

.choice.is-active .choice__sweep {
  animation: panel-sweep 4.8s cubic-bezier(0.45, 0, 0.2, 1) forwards;
}

.choice__logo-area {
  min-height: 0;
  display: grid;
  place-items: center;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1rem, 3.8vw, 4rem) 1.5rem;
}

.choice__logo {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: min(43vh, 390px);
  object-fit: contain;
  transform: translateY(0) scale(1);
  transition: transform 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice__logo--roske {
  height: min(24vw, 280px);
}

.choice__logo--naundorf {
  height: min(25vw, 295px);
}

.choice__logo--bkm {
  height: min(24vw, 280px);
}

.choice.is-active .choice__logo {
  transform: translateY(-9px) scale(1.035);
}

.choice__bottom {
  position: relative;
  height: 158px;
  min-height: 158px;
  display: grid;
  grid-template-rows: minmax(2.5rem, auto) 24px;
  align-content: center;
  gap: 1.1rem;
  padding: 1.5rem clamp(1.2rem, 2.6vw, 2.5rem);
  border-top: 1px solid rgba(0,0,0,0.15);
}

.choice__bottom::before {
  position: absolute;
  top: -3px;
  left: 0;
  width: 22%;
  height: 6px;
  content: "";
  background: var(--accent);
  transition: width 900ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.choice.is-active .choice__bottom::before {
  width: 100%;
}

.choice__name {
  max-width: 25rem;
  text-wrap: balance;
  font-size: clamp(1rem, 1.45vw, 1.35rem);
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.choice__go {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: #555;
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateX(-1rem);
  transition: opacity 450ms ease 250ms, transform 450ms ease 250ms;
}

.choice.is-active .choice__go,
.choice:hover .choice__go,
.choice:focus-visible .choice__go {
  opacity: 1;
  transform: translateX(0);
}

.choice__go svg {
  width: 78px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 1.5;
  stroke-linecap: square;
  stroke-linejoin: miter;
}

.choice:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -3px;
}

.route {
  height: 64px;
  display: flex;
  align-items: center;
  padding-inline: clamp(1.2rem, 4vw, 4.5rem);
  background: var(--night-soft);
}

.route__track {
  position: relative;
  width: 100%;
  height: 1px;
  background: rgba(255,255,255,0.2);
}

.route__track i {
  --position: 0%;
  position: absolute;
  top: -4px;
  left: var(--position);
  width: 9px;
  height: 9px;
  background: var(--white);
  transform: translateX(-50%) rotate(45deg);
  transition: left 900ms cubic-bezier(0.2, 0.8, 0.2, 1), background-color 500ms ease;
}

.selector[data-active="1"] + .route .route__track i {
  --position: 50%;
  background: var(--red);
}

.selector[data-active="2"] + .route .route__track i {
  --position: 100%;
  background: var(--blue);
}

.footer {
  min-height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1.2rem, 4vw, 4.5rem);
  color: rgba(255,255,255,0.48);
  background: var(--night);
  font-size: 0.72rem;
}

.footer nav {
  display: flex;
  gap: 1.5rem;
}

.footer a {
  text-underline-offset: 0.25em;
  text-decoration-color: transparent;
}

.footer a:hover,
.footer a:focus-visible {
  color: var(--white);
  text-decoration-color: currentColor;
}

.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes signal-trace {
  to { stroke-dashoffset: -270; }
}

@keyframes panel-sweep {
  0% { transform: translateX(-125%) skewX(-14deg); }
  100% { transform: translateX(380%) skewX(-14deg); }
}

@media (min-width: 1920px) and (min-height: 1200px) {
  .hero {
    min-height: clamp(480px, 32vh, 680px);
  }

  .hero__copy {
    width: min(100%, 1400px);
  }

  .hero h1 {
    font-size: clamp(7.2rem, 5.4vw, 9rem);
  }

  .hero__domain {
    font-size: clamp(3.4rem, 2vw, 4.2rem);
  }

  .selector {
    min-height: max(640px, calc(68svh - 134px));
  }

  .choice__logo--roske,
  .choice__logo--bkm {
    height: clamp(280px, 18vh, 420px);
  }

  .choice__logo--naundorf {
    height: clamp(295px, 19vh, 440px);
  }
}

@media (max-width: 899px), (max-width: 1099px) and (orientation: portrait) {
  .hero {
    min-height: 330px;
  }

  .hero h1 {
    line-height: 0.92;
  }

  .selector,
  .selector[data-active="1"],
  .selector[data-active="2"] {
    display: grid;
    grid-template-columns: 1fr;
  }

  .choice {
    min-height: 34rem;
  }

  .choice__logo {
    max-height: 330px;
  }

  .choice__logo--roske,
  .choice__logo--naundorf {
    height: auto;
    width: min(60%, 300px);
  }

  .choice__logo--bkm {
    height: auto;
    width: min(45%, 225px);
  }

  .choice__go {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 520px) {
  .motion-control__text {
    display: none;
  }

  .hero {
    min-height: 310px;
  }

  .hero__copy {
    margin-top: 3.4rem;
  }

  .hero h1 {
    font-size: clamp(1.75rem, 9.1vw, 3rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
  }

  .choice {
    min-height: 30rem;
  }

  .choice__bottom {
    height: auto;
    min-height: 142px;
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
